:root {
            --primary: #9FE2BF;
            --primary-light: #D1F2EB;
            --accent: #FF7F50;
            --accent-light: #FFE4D6;
            --dark: #3A506B;
            --light: #FFF8F0;
            --text: #3A3A3A;
            --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: var(--light);
            color: var(--text);
            overflow-x: hidden;
            line-height: 1.6;
        }

        h1, h2, h3, h4, h5 {
            font-family: 'Merriweather', serif;
            font-weight: 700;
            line-height: 1.3;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        section {
            padding: 100px 0;
            position: relative;
        }

        .btn {
            display: inline-block;
            padding: 14px 32px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            text-align: center;
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .btn-primary {
            background: var(--accent);
            color: white;
            box-shadow: 0 8px 20px rgba(255, 127, 80, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 25px rgba(255, 127, 80, 0.4);
        }

        .btn-outline {
            background: transparent;
            color: var(--accent);
            border: 2px solid var(--accent);
        }

        .btn-outline:hover {
            background: rgba(255, 127, 80, 0.1);
        }

        /* Header Styles */
        .main-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            padding: 25px 0;
            transition: var(--transition);
            background: rgba(255, 248, 240, 0.95);
            backdrop-filter: blur(10px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        }

        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            text-decoration: none;
        }

        .logo-icon {
            width: 42px;
            height: 42px;
            background: var(--primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.5rem;
            font-weight: 700;
            margin-right: 12px;
            transform: rotate(10deg);
        }

        .logo-text {
            font-family: 'Merriweather', serif;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--dark);
        }

        .logo-text span {
            color: var(--accent);
        }

        .nav-menu {
            display: flex;
            list-style: none;
        }

        .nav-item {
            margin: 0 15px;
            position: relative; /* Added for dropdown positioning */
        }

        .nav-link {
            color: var(--text);
            text-decoration: none;
            font-weight: 500;
            font-size: 1.1rem;
            position: relative;
            padding: 5px 0;
            transition: var(--transition);
        }

        .nav-link:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: var(--transition);
        }

        .nav-link:hover:after {
            width: 100%;
        }

        .nav-link:hover {
            color: var(--accent);
        }

        /* Dropdown Styles */
        .nav-item.has-sub .sub-menu {
            display: none; /* Hidden by default */
            position: absolute;
            top: 100%; /* Position below the parent nav item */
            left: 0;
            background: white;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
            list-style: none;
            padding: 10px 0;
            min-width: 160px;
            border-radius: 8px;
            opacity: 0;
            transform: translateY(10px);
            transition: opacity 0.3s ease, transform 0.3s ease;
            pointer-events: none; /* Prevents interaction when hidden */
        }

        .nav-item.has-sub.active .sub-menu {
            display: block; /* Shown when active */
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto; /* Allows interaction when active */
        }

        .sub-menu li {
            margin: 0;
        }

        .sub-menu a {
            color: var(--text);
            padding: 10px 20px;
            display: block;
            text-decoration: none;
            font-weight: 400;
            font-size: 1rem;
            transition: background-color 0.2s ease, color 0.2s ease;
        }

        .sub-menu a:hover {
            background-color: var(--primary-light);
            color: var(--dark);
        }


        .mobile-toggle {
            display: none;
            font-size: 1.5rem;
            color: var(--dark);
            cursor: pointer;
        }

        /* Mobile Navigation Overlay */
        .mobile-nav-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(255, 255, 255, 0.98); /* Semi-transparent white background */
            z-index: 1050; /* Higher than header to cover it */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transform: translateX(100%); /* Initially off-screen to the right */
            transition: transform var(--transition); /* Smooth slide-in/out */
            opacity: 0; /* Initially hidden */
            pointer-events: none; /* Prevent interaction when hidden */
        }

        .mobile-nav-overlay.active {
            transform: translateX(0); /* Slide in when active */
            opacity: 1; /* Fully visible when active */
            pointer-events: auto; /* Allow interaction when active */
        }

        .mobile-nav-close {
            position: absolute;
            top: 30px;
            right: 30px;
            font-size: 2rem;
            color: var(--dark);
            cursor: pointer;
            z-index: 1060; /* Ensure close button is clickable */
        }

       
        /* Hero Section */
        .hero {
            padding: 180px 0 120px;
            background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
            overflow: hidden;
        }

        .hero-content {
            position: relative;
            z-index: 2;
            max-width: 650px;
        }

        .hero-content h1 {
            font-size: 3.8rem;
            margin-bottom: 25px;
            color: var(--dark);
            line-height: 1.2;
        }

        .hero-content h1 span {
            color: var(--accent);
            position: relative;
            display: inline-block;
        }

        .hero-content p {
            font-size: 1.3rem;
            margin-bottom: 40px;
            color: var(--text);
            max-width: 550px;
        }

        .hero-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 50px;
        }

        .hero-features {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
        }

        .hero-feature {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.7);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 18px 25px;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
        }

        .hero-feature:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
        }

        .hero-feature i {
            font-size: 1.8rem;
            margin-right: 15px;
            color: var(--accent);
            background: var(--accent-light);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-feature div {
            font-size: 1.1rem;
            font-weight: 500;
        }

        /* Organic Shapes */
        .shape {
            position: absolute;
            border-radius: 50%;
            filter: blur(30px);
            opacity: 0.7;
            z-index: 0;
            animation: float 12s ease-in-out infinite;
        }

        .shape-1 {
            width: 400px;
            height: 400px;
            background: var(--primary);
            top: 10%;
            right: 10%;
            animation-delay: 0s;
        }

        .shape-2 {
            width: 300px;
            height: 300px;
            background: var(--accent);
            bottom: 10%;
            right: 20%;
            animation-delay: 2s;
        }

        .shape-3 {
            width: 250px;
            height: 250px;
            background: var(--primary-light);
            top: 30%;
            left: 5%;
            animation-delay: 4s;
        }

        /* Features Section */
        .features {
            background: white;
        }

        .section-header {
            text-align: center;
            margin-bottom: 80px;
        }

        .section-subtitle {
            display: inline-block;
            color: var(--accent);
            font-weight: 600;
            font-size: 1.1rem;
            margin-bottom: 15px;
            letter-spacing: 2px;
            position: relative;
        }

        .section-subtitle:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 3px;
            background: var(--accent);
            border-radius: 3px;
        }

        .section-header h2 {
            font-size: 2.8rem;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .section-header p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto;
            color: #666;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 40px;
        }

        .feature-card {
            background: white;
            border-radius: 25px;
            padding: 40px 30px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .feature-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: var(--primary-light);
            z-index: -1;
            transition: var(--transition);
            border-radius: 25px;
        }

        .feature-card:hover:before {
            height: 100%;
        }

        .feature-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        }

        .feature-icon {
            width: 80px;
            height: 80px;
            background: rgba(159, 226, 191, 0.2);
            border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
            font-size: 2.2rem;
            color: var(--primary);
            transition: var(--transition);
        }

        .feature-card:hover .feature-icon {
            transform: scale(1.1) rotate(5deg);
            background: white;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .feature-card h3 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: var(--dark);
        }

        .feature-card p {
            color: #666;
            transition: var(--transition);
        }

        .feature-card:hover p {
            color: var(--text);
        }

        /* Courses Section */
        .courses {
            background: linear-gradient(to bottom, white 0%, var(--primary-light) 100%);
        }

        .courses-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 50px;
        }

        .courses-header h2 {
            font-size: 2.8rem;
            color: var(--dark);
            max-width: 500px;
        }

        .courses-header p {
            font-size: 1.2rem;
            color: #666;
            max-width: 500px;
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 40px;
        }

        .course-card {
            background: white;
            border-radius: 25px;
            overflow: hidden;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            position: relative;
            z-index: 1;
        }

        .course-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
        }

        .course-image {
            height: 200px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            position: relative;
            overflow: hidden;
        }

        .course-image:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C40,80 60,0 100,100 L100,0 Z" fill="rgba(255,255,255,0.2)"/></svg>');
            background-size: cover;
        }

        .course-tag {
            position: absolute;
            top: 20px;
            right: 20px;
            background: var(--accent);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .course-content {
            padding: 30px;
        }

        .course-content h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--dark);
        }

        .course-content p {
            margin-bottom: 25px;
            color: #666;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 25px;
            font-weight: 500;
            color: var(--accent);
        }

        .course-actions {
            text-align: center;
        }

        /* CTA Section */
        .cta {
            background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
            color: white;
            text-align: center;
            border-radius: 30px;
            margin: 0 20px;
            overflow: hidden;
            position: relative;
            z-index: 1;
        }

        .cta:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C30,100 70,0 100,100 L100,0 Z" fill="rgba(255,255,255,0.1)"/></svg>');
            background-size: cover;
            z-index: -1;
        }

        .cta h2 {
            font-size: 3rem;
            margin-bottom: 20px;
        }

        .cta p {
            font-size: 1.3rem;
            max-width: 700px;
            margin: 0 auto 40px;
            opacity: 0.9;
        }

        .cta .btn {
            background: white;
            color: var(--accent);
            font-weight: 700;
            padding: 16px 45px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .cta .btn:hover {
            transform: translateY(-5px) scale(1.05);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        }

        /* Footer */
        .main-footer {
            background: var(--dark);
            color: white;
            padding: 80px 0 40px;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 60px;
        }

        .footer-about h3 {
            font-size: 1.8rem;
            margin-bottom: 20px;
            color: white;
        }

        .footer-about p {
            color: #CBD5E1;
            margin-bottom: 25px;
        }

        .social-links {
            display: flex;
            gap: 15px;
        }

        .social-links a {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            color: white;
            font-size: 1.2rem;
            transition: var(--transition);
        }

        .social-links a:hover {
            background: var(--accent);
            transform: translateY(-5px);
        }

        .footer-links h4 {
            font-size: 1.3rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
            margin-top: 19px;
        }

        .footer-links h4:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--accent);
            border-radius: 3px;
        }

        .footer-links ul {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 12px;
        }

        .footer-links a {
            color: #CBD5E1;
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--accent);
            padding-left: 5px;
        }

        .copyright {
            text-align: center;
            padding-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: #94A3B8;
            font-size: 0.9rem;
        }

        /* Animations */
        @keyframes float {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(5deg); }
            100% { transform: translateY(0px) rotate(0deg); }
        }

        @keyframes morph {
            0% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
            50% { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
            100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
        }

        .morph {
            animation: morph 8s ease-in-out infinite;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            .hero-content h1 {
                font-size: 3.2rem;
            }
            
            .courses-header {
                flex-direction: column;
                text-align: center;
                gap: 20px;
            }
        }

        @media (max-width: 768px) {
            .mobile-toggle {
                display: block;
            }

            .nav-menu {
                position: fixed;
                top: 90px;
                left: -100%;
                width: 80%;
                height: calc(100vh - 90px);
                background: white;
                flex-direction: column;
                align-items: center;
                padding-top: 40px;
                transition: var(--transition);
                box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-item {
                margin: 20px 0;
            }

            .hero-buttons {
                flex-direction: column;
                gap: 15px;
            }

            .hero-content h1 {
                font-size: 2.8rem;
            }

            .section-header h2 {
                font-size: 2.2rem;
            }
        }

        @media (max-width: 576px) {
            .hero {
                padding: 150px 0 80px;
            }

            .hero-content h1 {
                font-size: 2.4rem;
            }

            .courses-grid,
            .features-grid {
                grid-template-columns: 1fr;
            }

            .cta h2 {
                font-size: 2.2rem;
            }
        }
/* Login Section Styles */
.login-section {
    padding: 150px 0 80px; /* Adjust top padding to clear fixed header */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px); /* Adjust based on footer height */
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    box-sizing: border-box;
}

.login-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 50; /* Ensure it's above background elements */
    margin: auto;
}

.login-card .logo-container {
    margin-bottom: 30px;
}

.login-card .login-logo-text {
    font-family: 'Merriweather', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    display: block;
}

.login-card .login-logo-text span {
    color: var(--accent);
}

.login-card .message-box {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0; /* Hidden by default for fade-in */
    transition: opacity 0.5s ease-in-out;
}

.login-card .message-box.active {
    opacity: 1; /* Fade in when active */
}

.login-card .success-message {
    background-color: #D4EDDA; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #C3E6CB;
}

.login-card .error-message {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
    border: 1px solid #F5C6CB;
}

/* Form Styles */
.login-form .form-group-custom {
    margin-bottom: 25px;
    text-align: left;
}

.login-form label {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.login-form .input-field {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.login-form .input-field::placeholder {
    color: #A0A0A0;
}

.login-form .input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(159, 226, 191, 0.2);
    outline: none;
}

.login-form .help-block {
    display: block;
    margin-top: 8px;
    color: #FF7F50; /* Accent color for errors */
    font-size: 0.95rem;
}

.login-form .checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align checkbox to the left */
    margin-bottom: 25px;
}

.login-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.login-form .checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    width: 20px;
    height: 20px;
    accent-color: var(--accent); /* Styles the checkbox itself */
}

.login-form .login-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 15px;
    margin-bottom: 20px;
}

.login-form .link-text {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure it respects text-align */
}

.login-form .link-text:hover {
    text-decoration: underline;
}

.login-form .link-text-center {
    text-align: center; /* Center the "Not registered?" text */
    margin-top: 15px;
    color: var(--text);
    font-size: 1rem;
}

.login-form .link-text-center a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-form .link-text-center a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for login page */
@media (max-width: 576px) {
    .login-section {
        padding: 120px 20px 60px; /* Adjust padding for smaller screens */
    }

    .login-card {
        padding: 30px 25px;
    }

    .login-card .login-logo-text {
        font-size: 1.8rem;
    }

    .login-form .input-field {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .login-form .login-btn {
        font-size: 1.1rem;
        padding: 14px;
    }
}
/* Register Section Styles */
.register-section {
    padding: 150px 0 80px; /* Adjust top padding to clear fixed header */
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    min-height: 100vh; /* Ensure it takes full viewport height */
    display: flex;
    flex-direction: column; /* Stack header and card vertically */
    align-items: center; /* Center horizontally */
    justify-content: center; /* Center vertically if content allows */
    box-sizing: border-box; /* Include padding in height calculation */
}

.register-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px; /* Wider card for more form fields */
    text-align: center;
    position: relative;
    z-index: 50;
    margin-top: 30px; /* Space between section header and card */
    margin-bottom: 30px; /* Space between card and footer */
    box-sizing: border-box;
    margin: auto;
}

/* Row and Column for form layout */
.register-card .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px; /* Compensate for col padding */
}

.register-card .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px; /* Spacing between columns */
    margin-bottom: 20px; /* Space between rows */
}

/* Form Group consistency */
.register-card .form-group-custom {
    text-align: left;
    margin-bottom: 0; /* Handled by col-md-6 margin-bottom */
}

.register-card .form-group-custom label {
    display: block;
    font-size: 1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.register-card .input-field {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-card .input-field::placeholder {
    color: #A0A0A0;
}

.register-card .input-field:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(159, 226, 191, 0.2);
    outline: none;
}

.register-card .textarea-field {
    min-height: 100px; /* Adjust height for textarea */
    resize: vertical; /* Allow vertical resizing */
}

.register-card .btn.register-btn {
    width: auto; /* Allow button to size based on content */
    padding: 16px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 15px;
    margin-top: 20px; /* Space above button */
    margin-bottom: 20px; /* Space below button */
    display: inline-block; /* Ensure button is centered with text-align */
}
/* Form Group consistency - default to left for inputs */
.register-card .form-group-custom {
    text-align: left; /* Default for input labels and fields */
    margin-bottom: 0; /* Handled by col-md-6 margin-bottom */
}

/* Specific rule to center the button and its related link */
.register-card .form-group-custom.text-center {
    text-align: center; /* This will center inline/inline-block children */
}
/* Error Message Styling (reusing existing message-box classes) */
.register-card .message-box {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 1; /* Always visible for validation errors on form submission */
    text-align: left;
}

.register-card .error-message {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
    border: 1px solid #F5C6CB;
}

.register-card .error-message ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.register-card .error-message li {
    margin-bottom: 5px;
}

/* Link text for login */
.register-card .link-text-center {
    text-align: center;
    margin-top: 15px;
    color: var(--text);
    font-size: 1rem;
}

.register-card .link-text-center a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-card .link-text-center a:hover {
    text-decoration: underline;
}

/* Responsive adjustments for register page */
@media (max-width: 768px) {
    .register-card {
        padding: 30px;
        max-width: 90%; /* Adjust max-width for smaller tablets */
    }

    .register-card .col-md-6 {
        flex: 0 0 100%; /* Stack columns on smaller screens */
        max-width: 100%;
        padding: 0 5px;
    }

    .register-card .input-field,
    .register-card .textarea-field {
        font-size: 1rem;
        padding: 12px 15px;
    }
}

@media (max-width: 576px) {
    .register-section {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .register-card {
        padding: 25px;
    }

    .register-card .row {
        margin: 0; /* Remove negative margin on small screens */
    }

    .register-card .col-md-6 {
        padding: 0; /* Remove padding on columns for full width */
        margin-bottom: 15px;
    }

    .register-card .btn.register-btn {
        width: 100%; /* Full width button on mobile */
        padding: 14px;
        font-size: 1.1rem;
    }

    .register-card .message-box {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}
/* About Page Specific Styles */

/* Hero About Section */
.hero-about {
    padding: 180px 0 100px; /* Adjust top padding for fixed header */
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255, 255, 255, 0.8) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-about .hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-about h1 {
    font-size: 4.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.2;
}

.hero-about p {
    font-size: 1.3rem;
    color: var(--text);
    max-width: 700px;
    margin: 0 auto;
}

/* Highlight colors for text spans */
.highlight-accent {
    color: var(--accent);
}

.highlight-primary {
    color: var(--primary);
}

/* Mission Section */
.mission {
    background: #fef8f0;
    padding: 100px 0;
}

.mission-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.mission-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    text-align: left;
}

.mission-text p:not(:last-child) {
    margin-bottom: 20px;
}

.mission-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mission-feature-card {
    background: #FFF;
    border-radius: 20px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.mission-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.mission-feature-card .mission-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.mission-feature-card h3 {
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.mission-feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Values Section */
.values {
    background: linear-gradient(to bottom, white 0%, var(--primary-light) 100%);
    padding: 100px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-card {
    background: white;
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.value-card .value-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent);
    margin: 0 auto 25px;
}

.value-card h3 {
    font-size: 1.7rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 1rem;
    color: #666;
}

/* Team Section */
.team {
    background: var(--light);
    padding: 100px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background: white;
    border-radius: 25px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex; /* Use flex for internal layout */
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.team-img-placeholder {
    width: 120px;
    height: 120px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 25px;
    overflow: hidden; /* For future images */
}

/* If you use actual images, apply this: */
/* .team-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
} */


.team-card h3 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.team-card .role {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.team-card p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows paragraph to take up available space */
}

.team-social {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--dark);
    font-size: 1rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

.btn-outline-alt {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 10px 25px; /* Adjust button padding */
}

.btn-outline-alt:hover {
    background: var(--dark);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA About Section */
.cta-about {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    text-align: center;
    border-radius: 30px;
    margin: 50px 20px 100px; /* Adjust margin for section positioning */
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding: 80px 30px; /* Adjust internal padding */
}

.cta-about:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C30,100 70,0 100,100 L100,0 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
    z-index: -1;
}

.cta-about .cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-about h2 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-about p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 40px;
    opacity: 0.9;
}

.cta-about .btn.btn-primary {
    background: white;
    color: var(--accent);
    font-weight: 700;
    padding: 16px 45px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* margin-bottom: 20px; This was causing an issue previously */
}

.cta-about .btn.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}


/* Responsive Design for About Page */
@media (max-width: 992px) {
    .hero-about h1 {
        font-size: 3.5rem;
    }
    .mission-content-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .mission-text {
        text-align: center;
        max-width: 90%;
    }
    .values-grid, .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .cta-about h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .hero-about {
        padding: 150px 0 80px;
    }
    .hero-about h1 {
        font-size: 3rem;
    }
    .hero-about p {
        font-size: 1.1rem;
    }
    .mission-features-grid, .values-grid, .team-grid {
        grid-template-columns: 1fr; /* Stack cards vertically on smaller screens */
    }
    .mission-text {
        max-width: 100%; /* Allow full width */
    }
    .value-card, .team-card {
        max-width: 350px; /* Constrain individual card width */
        margin-left: auto;
        margin-right: auto;
    }
    .cta-about {
        margin: 40px 15px 80px;
        padding: 60px 20px;
    }
    .cta-about h2 {
        font-size: 2.2rem;
    }
    .cta-about p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-about h1 {
        font-size: 2.5rem;
    }
    .hero-about p {
        font-size: 1rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .mission-feature-card, .value-card, .team-card {
        padding: 25px;
    }
    .mission-feature-card h3, .value-card h3, .team-card h3 {
        font-size: 1.4rem;
    }
    .team-img-placeholder {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
}
/* Contact Page Specific Styles */

/* Main content wrapper for spacing */
.main-contact-content {
    padding: 60px 0; /* Adjust general spacing for sections */
    background-color: var(--light);
}

/* Contact Info & Stats Section Layout */
.contact-info-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center; /* Center items when they wrap */
    padding-bottom: 60px; /* Space before map section */
}

/* Info Card */
.info-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    flex: 1; /* Allow it to grow */
    min-width: 320px; /* Minimum width before wrapping */
    max-width: 550px; /* Max width for larger screens */
    text-align: left;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.info-card h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-card h2 i {
    color: var(--primary);
    font-size: 2.5rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr; /* Stack items by default */
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: flex-start; /* Align icon and content to top */
    gap: 20px;
}

.info-item .info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.info-item .info-content h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 5px;
}

.info-item .info-content p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    flex: 1; /* Allow it to grow */
    min-width: 320px; /* Minimum width before wrapping */
    max-width: 550px; /* Max width for larger screens */
    display: flex;
    align-items: center; /* Vertically center the grid within its flex container */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    width: 100%; /* Ensure grid takes full width of its container */
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-card .stat-title {
    font-size: 1.1rem;
    color: var(--dark);
    font-weight: 500;
}

/* Floating animation for stat cards */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.stat-card.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Map Section */
.map-section {
    padding-top: 60px; /* Space after info/stats section */
    padding-bottom: 60px;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    height: 500px; /* Fixed height for the map */
    width: 100%;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive Design for Contact Page */
@media (max-width: 992px) {
    .contact-info-stats {
        flex-direction: column;
        align-items: center;
    }
    .info-card, .stats-section {
        max-width: 90%; /* Allow cards to take more width */
    }
    .info-card h2 {
        font-size: 2rem;
    }
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .main-contact-content {
        padding: 40px 0;
    }
    .info-card {
        padding: 30px;
    }
    .info-card h2 {
        font-size: 1.8rem;
        flex-direction: column; /* Stack icon and text */
        gap: 10px;
        text-align: center;
    }
    .info-card h2 i {
        font-size: 2rem;
    }
    .contact-info-grid {
        gap: 20px;
    }
    .info-item .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
    .info-item .info-content h3 {
        font-size: 1.3rem;
    }
    .info-item .info-content p {
        font-size: 0.9rem;
    }
    .stats-grid {
        grid-template-columns: 1fr; /* Stack stats cards vertically */
        gap: 20px;
    }
    .stat-card {
        padding: 25px;
    }
    .map-container {
        height: 400px; /* Adjust map height for smaller screens */
    }
}

@media (max-width: 576px) {
    .main-contact-content {
        padding: 20px 0;
    }
    .info-card {
        border-radius: 20px;
        padding: 25px;
    }
    .info-card h2 {
        font-size: 1.6rem;
    }
    .info-item .info-content h3 {
        font-size: 1.2rem;
    }
    .info-item .info-content p {
        font-size: 0.85rem;
    }
    .stat-card .stat-number {
        font-size: 2.2rem;
    }
    .stat-card .stat-title {
        font-size: 1rem;
    }
    .map-container {
        height: 300px; /* Further reduce map height for mobile */
        border-radius: 20px;
    }
}
/* ... (Existing CSS from previous updates) ... */

/* Courses Section Styles (General for all course listings) */
.courses.section {
    padding: 100px 0;
    background: linear-gradient(to bottom, var(--light) 0%, var(--primary-light) 100%);
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Responsive grid */
    gap: 40px; /* Space between cards */
    justify-content: center; /* Center cards in the grid */
}

.course-card {
    background: white;
    border-radius: 25px;
    overflow: hidden; /* Ensures inner elements respect border-radius */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    display: flex;
    flex-direction: column; /* Stack header and body */
    height: 100%; /* Ensure cards in a row have same height */
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.course-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 25px 30px;
    color: white;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.course-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 C40,80 60,0 100,100 L100,0 Z" fill="rgba(255,255,255,0.2)"/></svg>');
    background-size: cover;
    z-index: -1;
}

.course-header h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin-bottom: 0;
    color: white; /* Ensure text color is white on gradient */
}

.course-body {
    padding: 30px;
    flex-grow: 1; /* Allows body to expand and fill space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes button to bottom */
}

.course-body p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit description to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-features {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    border-top: 1px solid #eee; /* Subtle separator */
    padding-top: 20px;
}

.course-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--dark);
}

.course-features li i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px; /* Align icons */
}

.course-features li span {
    font-weight: 600;
    color: var(--accent); /* Highlight values */
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-top: 15px;
    border-top: 1px dashed #eee; /* Dashed separator */
    font-size: 1.1rem;
    font-weight: 500;
}

.course-meta span:first-child {
    color: var(--text);
}

.course-meta span:last-child {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.3rem;
}

.course-actions {
    text-align: center;
    margin-top: auto; /* Pushes actions to the bottom of the card */
}

.course-actions .btn {
    width: 100%; /* Full width button */
    padding: 14px 25px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Session Messages Specific Styling for Courses Page */
.sessionmodal {
    margin-top: 30px; /* Space from header */
    margin-bottom: 30px; /* Space before content */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.5s ease-in-out;
}

.sessionmodal.active {
    opacity: 1; /* Visible when active */
}

/* Responsive adjustments for Courses Page */
@media (max-width: 992px) {
    .courses-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
    .course-header h3 {
        font-size: 1.6rem;
    }
    .course-body p {
        font-size: 0.95rem;
    }
    .course-meta span:last-child {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .courses.section {
        padding: 80px 0;
    }
    .courses-grid {
        grid-template-columns: 1fr; /* Stack courses vertically on mobile */
        max-width: 400px; /* Limit single column width */
        margin-left: auto;
        margin-right: auto;
    }
    .course-card {
        padding-bottom: 20px; /* Add padding at bottom for stacked cards */
    }
    .course-header {
        padding: 20px;
    }
    .course-header h3 {
        font-size: 1.5rem;
    }
    .course-body {
        padding: 25px;
    }
    .course-actions .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .courses.section {
        padding: 60px 0;
    }
    .courses-grid {
        gap: 25px;
    }
    .course-header h3 {
        font-size: 1.4rem;
    }
    .course-body p {
        font-size: 0.9rem;
    }
    .course-features li {
        font-size: 0.9rem;
    }
    .course-meta span:last-child {
        font-size: 1.1rem;
    }
}
/* Cart Section Styles */
.cart-section {
    padding: 80px 0; /* Adjusted padding to prevent overlap with fixed header and provide good spacing */
    background: var(--light);
}

.cart-content-wrapper {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 30px; /* Space below messages/hero */
    overflow-x: auto; /* Enable horizontal scroll for table on small screens */
}

.cart-table-container {
    width: 100%;
    /* overflow-x: auto; Handled by parent wrapper */
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: separate; /* Allows for rounded corners on cells/rows */
    border-spacing: 0; /* Remove default table spacing */
    margin-bottom: 20px;
    min-width: 600px; /* Ensure table doesn't collapse too much on small screens */
}

.cart-table th,
.cart-table td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.cart-table th {
    background-color: var(--primary-light);
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table tbody tr:last-child td {
    border-bottom: none; /* No border for the last row in tbody */
}

.cart-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Subtle zebra striping */
}

.cart-table tbody td {
    color: var(--text);
    font-size: 1rem;
}

.cart-table tfoot td {
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    border-top: 2px solid var(--primary-light);
}

.cart-table .text-right {
    text-align: right;
}

.cart-table .text-left {
    text-align: left;
}

.cart-actions {
    text-align: right; /* Align buttons to the right */
    padding-top: 20px;
    padding-bottom: 10px;
}

.cart-summary-actions {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Space between buttons */
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cart-summary-actions .btn {
    padding: 14px 28px;
    font-size: 1.1rem;
    border-radius: 12px;
    min-width: 220px; /* Ensure buttons have a minimum width */
}

.btn-danger {
    background-color: #DC3545; /* Red color for remove */
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.btn-danger:hover {
    background-color: #C82333;
    transform: translateY(-2px);
}

.btn-danger i {
    margin-right: 5px;
}

/* Empty Cart Message */
.empty-cart-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: var(--dark);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.empty-cart-message .alert-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: text-decoration 0.3s ease;
}

.empty-cart-message .alert-link:hover {
    text-decoration: underline;
}

/* Session Messages (reusing existing styles, ensuring visibility) */
.message-box {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0; /* Hidden by default for fade-in */
    transition: opacity 0.5s ease-in-out;
}

.message-box.active {
    opacity: 1; /* Fade in when active */
}

.success-message {
    background-color: #D4EDDA; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #C3E6CB;
}

.error-message {
    background-color: #F8D7DA; /* Light red */
    color: #721C24; /* Dark red */
    border: 1px solid #F5C6CB;
}

.info-message {
    background-color: #D1ECF1; /* Light blue */
    color: #0C5460; /* Dark blue */
    border: 1px solid #BEE5EB;
}

/* Responsive Design for Cart Page */
@media (max-width: 992px) {
    .cart-summary-actions {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .cart-summary-actions .btn {
        width: 100%;
        max-width: 300px; /* Constrain button width */
    }
}

@media (max-width: 768px) {
    .cart-section {
        padding: 60px 0;
    }
    .cart-content-wrapper {
        padding: 20px;
        border-radius: 20px;
    }
    .cart-table th,
    .cart-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    .cart-table tfoot td {
        padding: 15px;
        font-size: 1rem;
    }
    .cart-table .btn-danger {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    .empty-cart-message {
        padding: 40px 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .cart-section {
        padding: 40px 0;
    }
    .cart-content-wrapper {
        border-radius: 15px;
        padding: 15px;
    }
    .cart-table {
        min-width: 500px; /* Keep minimum width to avoid extreme scrunching */
    }
    .cart-table th,
    .cart-table td {
        padding: 10px;
        font-size: 0.85rem;
    }
    .cart-table .btn-danger {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    .cart-summary-actions .btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}
/* My Orders Section Styles */
.orders-section {
    padding: 80px 0; /* Adjusted padding to prevent overlap with fixed header and provide good spacing */
    background: var(--light);
}

.orders-table-container {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: 30px; /* Space below hero/messages */
    overflow-x: auto; /* Enable horizontal scroll for table on small screens */
}

.orders-table {
    width: 100%;
    border-collapse: separate; /* Allows for rounded corners on cells/rows */
    border-spacing: 0; /* Remove default table spacing */
    margin-bottom: 20px;
    min-width: 700px; /* Ensure table doesn't collapse too much on small screens */
}

.orders-table th,
.orders-table td {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.orders-table th {
    background-color: var(--primary-light);
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.orders-table tbody tr:last-child td {
    border-bottom: none; /* No border for the last row in tbody */
}

.orders-table tbody tr:nth-child(even) {
    background-color: #f9f9f9; /* Subtle zebra striping */
}

.orders-table tbody td {
    color: var(--text);
    font-size: 1rem;
}

.orders-table .course-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orders-table .course-list li {
    margin-bottom: 5px;
    line-height: 1.4;
    color: var(--dark);
}

.orders-table .course-list li:last-child {
    margin-bottom: 0;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    color: white;
}

.status-badge-completed {
    background-color: #28A745; /* Green for completed */
}

.status-badge-pending {
    background-color: #FFC107; /* Yellow for pending */
    color: #333; /* Darker text for better contrast on yellow */
}

/* Action Button in table */
.orders-table .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.orders-table .btn-primary {
    background-color: var(--accent);
    color: white;
    border: none;
}

.orders-table .btn-primary:hover {
    background-color: #E66C3C; /* Slightly darker accent */
    transform: translateY(-2px);
}

.orders-table .btn-primary i {
    margin-right: 5px;
}

/* Empty Orders Message */
.empty-orders-message {
    text-align: center;
    padding: 60px 20px;
    font-size: 1.3rem;
    color: var(--dark);
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Responsive Design for Orders Page */
@media (max-width: 992px) {
    .orders-table-container {
        padding: 25px;
    }
    .orders-table th,
    .orders-table td {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    .orders-table .status-badge {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    .orders-table .btn {
        font-size: 0.85rem;
        padding: 7px 12px;
    }
}

@media (max-width: 768px) {
    .orders-section {
        padding: 60px 0;
    }
    .orders-table-container {
        padding: 20px;
        border-radius: 20px;
        min-width: unset; /* Allow table to shrink on very small screens, rely on overflow-x */
    }
    
    /* Make table responsive by stacking cells on small screens (mobile-first approach) */
    .orders-table, .orders-table tbody, .orders-table tr, .orders-table td {
        display: block;
        width: 100%;
    }

    .orders-table thead {
        display: none; /* Hide table headers on small screens */
    }

    .orders-table tr {
        margin-bottom: 20px;
        border: 1px solid #f0f0f0;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    }
    .orders-table tbody tr:nth-child(even) {
        background-color: white; /* Reset zebra striping for stacked cards */
    }

    .orders-table td {
        border-bottom: 1px solid #eee;
        text-align: right; /* Align content to the right */
        position: relative;
        padding-left: 50%; /* Make space for data-label */
        font-size: 0.9rem;
    }

    .orders-table td:last-child {
        border-bottom: none;
    }

    .orders-table td:before {
        content: attr(data-label); /* Display header text using data-label attribute */
        position: absolute;
        left: 15px;
        width: calc(50% - 30px);
        white-space: nowrap;
        font-weight: 600;
        color: var(--dark);
        text-align: left;
    }

    .orders-table .course-list {
        text-align: right; /* Ensure list items are aligned right */
    }

    .orders-table .course-list li {
        text-align: right; /* Explicitly align li text right */
    }

    .empty-orders-message {
        padding: 40px 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .orders-section {
        padding: 40px 0;
    }
    .orders-table-container {
        padding: 15px;
        border-radius: 15px;
    }
    .orders-table td {
        padding: 10px 15px;
        padding-left: 45%; /* Adjust padding for data-label */
        font-size: 0.85rem;
    }
    .orders-table td:before {
        left: 10px;
        width: calc(45% - 20px);
        font-size: 0.8rem;
    }
    .orders-table .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}
/* Thank You Section Styles */
.thankyou-section {
    padding: 100px 0; /* Adjust padding to provide good spacing */
    background: var(--light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px); /* Adjust based on header and footer height */
}

.thankyou-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    padding: 50px 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto; /* Center the card horizontally */
}

.thankyou-icon {
    font-size: 5rem; /* Large icon size */
    color: var(--primary); /* Use primary color for success icon */
    margin-bottom: 30px;
    animation: bounceIn 0.8s ease-out; /* Simple bounce animation */
}

.thankyou-card h2 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.thankyou-card p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.thankyou-card .btn.btn-primary {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Bounce In Animation */
@keyframes bounceIn {
    0% {
        transform: scale(0.1);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design for Thank You Page */
@media (max-width: 768px) {
    .thankyou-section {
        padding: 80px 0;
        min-height: calc(100vh - 120px);
    }
    .thankyou-card {
        padding: 40px 25px;
        border-radius: 20px;
    }
    .thankyou-icon {
        font-size: 4rem;
        margin-bottom: 25px;
    }
    .thankyou-card h2 {
        font-size: 2rem;
    }
    .thankyou-card p {
        font-size: 1rem;
    }
    .thankyou-card .btn.btn-primary {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .thankyou-section {
        padding: 60px 0;
        min-height: calc(100vh - 100px);
    }
    .thankyou-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    .thankyou-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }
    .thankyou-card h2 {
        font-size: 1.8rem;
    }
    .thankyou-card p {
        font-size: 0.95rem;
    }
    .thankyou-card .btn.btn-primary {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}
/* Dynamic Page Content Section */
.get-info {
    padding: 80px 0;
    background: #fff;
}

.get-info h1,
.get-info h2,
.get-info h3,
.get-info h4,
.get-info h5,
.get-info h6 {
    font-family: 'Merriweather', serif;
    color: var(--dark);
    line-height: 1.3;
    margin-bottom: 20px;
    margin-top: 30px;
}

.get-info h1 {
    font-size: 2.5rem;
}

.get-info h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-light);
    padding-bottom: 10px;
}

.get-info h3 {
    font-size: 1.6rem;
}

.get-info p {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.get-info ul,
.get-info ol {
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text);
}

.get-info ul li,
.get-info ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.get-info ul li::before {
    content: "\f00c"; /* Font Awesome checkmark icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
    color: var(--primary);
}

.get-info a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.get-info a:hover {
    color: var(--dark);
    text-decoration: underline;
}

.get-info img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.get-info strong {
    color: var(--dark);
    font-weight: 600;
}

.get-info table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.get-info table,
.get-info th,
.get-info td {
    border: 1px solid #e9e9e9;
}

.get-info th,
.get-info td {
    padding: 12px 15px;
    text-align: left;
}

.get-info th {
    background-color: var(--primary-light);
    color: var(--dark);
    font-weight: 600;
}

.get-info tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .get-info {
        padding: 60px 0;
    }
    .get-info h1 {
        font-size: 2rem;
    }
    .get-info h2 {
        font-size: 1.6rem;
    }
    .get-info h3 {
        font-size: 1.4rem;
    }
}
/* Navigation Active State */
.nav-menu .nav-item .nav-link.active,
.mobile-nav-list .active {
    position: relative;
    color: var(--dark); /* or any color you prefer for active link */
    font-weight: 600;
}

/* Add a bold underline for the active state */
.nav-menu .nav-item .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Adjust this value to control the distance from the text */
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background-color: var(--accent); /* Use your accent color for the underline */
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Style for the badge on the cart icon */
.nav-link .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 50%;
    line-height: 1;
}

/* Hover state for links */
.nav-menu .nav-item .nav-link:hover {
    color: var(--dark);
}

.nav-menu .nav-item .nav-link:hover::after {
    width: 60%;
}
/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: -100%; /* Initially hide off-screen */
    width: 100%;
    height: 100vh;
    background: white; /* Match your page background */
    z-index: 999; /* Ensure it is on top of all other content */
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: left 0.4s ease-in-out;
    overflow-y: auto; /* Allow scrolling for long menus */
}

.mobile-nav-overlay.active {
    left: 0; /* Slide in */
}

.mobile-nav-close {
    font-size: 1.8rem;
    color: var(--dark);
    position: absolute;
    top: 25px;
    right: 30px;
    cursor: pointer;
}

.mobile-nav-list {
    list-style: none;
    padding: 60px 0 0 0;
    margin: 0;
    text-align: left;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list a {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--accent);
}