/* ======== MODERN EDUCATIONAL THEME ======== */
:root {
    /* Primary Color Palette - Vibrant Blues & Purples */
    --primary-color: #6366f1; /* Indigo-500 */
    --primary-dark: #4f46e5; /* Indigo-600 */
    --primary-light: #a5b4fc; /* Indigo-300 */
    --primary-glow: rgba(99, 102, 241, 0.4);
    
    /* Accent Colors */
    --accent-color: #ec4899; /* Pink-500 */
    --accent-secondary: #f59e0b; /* Amber-500 */
    --success-color: #10b981; /* Emerald-500 */
    --warning-color: #f59e0b; /* Amber-500 */
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-light: #f8fafc; /* Slate-50 */
    --bg-dark: #0f172a; /* Slate-900 */
    --bg-glass: rgba(255, 255, 255, 0.8);
    
    /* Text Colors */
    --text-dark: #0f172a; /* Slate-900 */
    --text-medium: #334155; /* Slate-700 */
    --text-light: #64748b; /* Slate-500 */
    --text-white: #ffffff;
    
    /* Borders & Shadows */
    --border-color: #e2e8f0; /* Slate-200 */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(99, 102, 241, 0.2);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Spacing & Sizing */
    --border-radius: 20px;
    --border-radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ======== ANIMATIONS ======== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ======== BASE STYLES ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Sinhala', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding-top: 80px;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    animation: fadeIn 0.6s ease-out;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    animation: slideInUp 0.6s ease-out;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 60px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    animation: slideInUp 0.7s ease-out;
}

/* ======== BUTTONS ======== */
.btn {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: translateY(-2px);
}

.btn-login {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-login:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-large {
    font-size: 1.3rem;
    padding: 18px 40px;
}

/* ======== HEADER / NAVIGATION ======== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.nav-link {
    color: var(--text-medium);
    font-weight: 600;
    padding: 10px 20px;
    transition: var(--transition);
    border-radius: 50px;
    display: block;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link.active,
.nav-link:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.08);
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-buttons {
    display: flex;
    gap: 12px;
}

.nav-toggle {
    display: none; /* <-- FIX 1: Hide on Desktop */
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* ======== DROPDOWN MENU ======== */
.dropdown {
    position: relative;
}

.dropdown .nav-link {
    padding-right: 35px;
}

.dropdown-icon {
    font-size: 0.7em;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    z-index: 101;
    margin-top: 10px;
    animation: slideInUp 0.3s ease;
}

.dropdown-content a {
    color: var(--text-dark);
    padding: 14px 20px;
    display: block;
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-content a:hover {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding-left: 25px;
}

.dropdown-content .all-courses {
    border-top: 1px solid var(--border-color);
    font-weight: 700;
    background: rgba(99, 102, 241, 0.05);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ======== HERO SECTION ======== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--gradient-hero);
    padding: 80px 60px;
    border-radius: var(--border-radius);
    margin-bottom: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
    animation: float 6s ease-in-out infinite;
}

.hero-content {
    flex-basis: 55%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.8rem;
    color: var(--text-white);
    margin-bottom: 25px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.hero-title span {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-image {
    flex-basis: 40%;
    position: relative;
    z-index: 1;
}

.hero-image img {
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    border-radius: var(--border-radius);
    animation: float 4s ease-in-out infinite;
}

/* ======== FEATURES SECTION ======== */
.features {
    margin-bottom: 80px;
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

.feature-card::after {
    content: "✓";
    display: block;
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    color: white;
    font-size: 2.5rem;
    line-height: 70px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

/* ======== COURSE CARDS ======== */
.course-grid-preview,
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 35px;
}

.course-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-card-img {
    transform: scale(1.05);
}

.course-card-content {
    padding: 30px;
}

.course-card-tag {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: var(--shadow-sm);
}

.course-card-title {
    font-size: 1.6rem;
    margin: 20px 0 15px 0;
    color: var(--text-dark);
    font-weight: 700;
}

.course-card-desc {
    color: var(--text-light);
    margin-bottom: 25px;
    line-height: 1.7;
}

/* ======== PRICING SECTION ======== */
.pricing {
    background: var(--bg-white);
    padding: 80px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border: 3px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(236, 72, 153, 0.05) 100%);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: "⭐ ජනප්‍රියයි (POPULAR)";
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 8px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: var(--shadow-md);
}

.pricing-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.pricing-card .pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 30px 0;
}

.pricing-card .pricing-price span {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
    line-height: 2.5;
    text-align: left;
}

.pricing-card ul li {
    padding-left: 30px;
    position: relative;
    color: var(--text-medium);
}

.pricing-card ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.pricing-card .btn {
    width: 100%;
}

/* ======== COURSES PAGE ======== */
.courses-page {
    padding: 40px 0;
}

.course-filters {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-white), var(--bg-white)), var(--gradient-primary);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.course-filters label {
    font-weight: 700;
    color: var(--text-dark);
}

.course-filters select {
    padding: 14px 24px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-size: 1rem;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.course-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ======== ABOUT PAGE ======== */
.about-container {
    display: flex;
    gap: 60px;
    align-items: center;
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.about-image {
    flex-basis: 40%;
}

.about-image img {
    border-radius: 50%;
    border: 8px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
}

.about-content {
    flex-basis: 60%;
}

.about-content h2 {
    font-size: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    font-weight: 900;
}

.about-content h4 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-medium);
}

/* ======== CONTACT PAGE ======== */
.contact-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 30px;
    font-weight: 800;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-info-wrapper p {
    margin-bottom: 25px;
    color: var(--text-medium);
}

.contact-info-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-info-item h4 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.contact-icon {
    font-size: 1.3rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* ======== FOOTER ======== */
.footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    background: var(--gradient-hero);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -150px;
}

.footer p {
    opacity: 0.95;
    font-size: 1.1rem;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .nav {
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%; /* FIX: Initially position far left to hide it fully */
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        display: flex; /* FIX: Ensure it is a flex container on mobile, then rely on 'left' property */
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px;
        border-radius: 0;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--gradient-primary);
        color: var(--text-white);
    }

    .nav-buttons {
        display: none;
    }

    .nav-toggle {
        display: block; /* FIX: Show on Mobile */
    }

    .dropdown {
        position: static;
    }

    .dropdown-content {
        position: static;
        display: none;
        box-shadow: none;
        background: rgba(248, 250, 252, 0.95);
        margin-top: 10px;
    }
    
    .dropdown:hover .dropdown-content { /* FIX: Disable :hover on mobile */
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown .nav-link {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .dropdown-icon {
        position: static;
        transform: none;
        margin-left: 8px;
    }

    .hero {
        flex-direction: column-reverse;
        padding: 40px 30px;
        text-align: center;
    }

    .hero-content {
        flex-basis: 100%;
    }

    .hero-image {
        margin-bottom: 30px;
        flex-basis: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .course-grid-preview,
    .course-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.popular {
        transform: scale(1);
    }

    .course-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .about-container {
        flex-direction: column;
        padding: 30px;
    }

    .about-content {
        text-align: center;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 30px;
    }

    .btn-large {
        font-size: 1.1rem;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .pricing-card {
        padding: 35px 25px;
    }

    .pricing-card .pricing-price {
        font-size: 2.5rem;
    }

    .feature-card {
        padding: 30px 20px;
    }
}

/* ======== SMOOTH SCROLL ======== */
html {
    scroll-behavior: smooth;
}

/* ======== SELECTION STYLE ======== */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}

/* ======== SCROLLBAR STYLING ======== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ======== ADDITIONAL PROFESSIONAL STYLES ======== */

/* Hero Stats */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
    margin-bottom: 8px;
}

.hero-stats .stat-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Feature Icons */
.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

/* Course Card Links */
.course-card-link {
    text-decoration: none;
    display: block;
}

.course-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.course-card-content .btn {
    width: 100%;
    margin-top: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    margin-bottom: 60px;
    box-shadow: var(--shadow-md);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 35px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.testimonial-stars {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1.1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Sections */
.cta-section {
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 80px 40px;
    border-radius: var(--border-radius);
    margin-bottom: 60px;
    text-align: center;
}

.cta-section .section-title {
    color: var(--text-white);
    background: none;
    -webkit-text-fill-color: var(--text-white);
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
}

.cta-final {
    background: var(--gradient-accent);
    padding: 80px 40px;
    border-radius: var(--border-radius);
    text-align: center;
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.cta-final::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    left: -200px;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 20px;
    font-weight: 900;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 35px;
}

/* Footer Enhanced */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding: 0 20px 40px;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    text-align: center;
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 20px;
        justify-content: center;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section ul {
        text-align: center;
    }
    
    .course-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ======== CONTACT PAGE STYLES ======== */

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    padding: 80px 20px 60px;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header .section-title {
    color: var(--text-white);
    background: none;
    -webkit-text-fill-color: var(--text-white);
    margin-bottom: 15px;
}

.page-header .section-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.2rem;
}

/* Contact Methods Grid */
.contact-methods {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-method-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 3px solid transparent;
}

.contact-method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.contact-method-card.whatsapp-card {
    border-color: #25D366;
}

.contact-method-card.whatsapp-card:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.05), rgba(37, 211, 102, 0.1));
}

.contact-method-card.email-card {
    border-color: var(--primary-color);
}

.contact-method-card.email-card:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(99, 102, 241, 0.1));
}

.contact-method-card.support-card {
    border-color: var(--accent-color);
}

.contact-method-card.support-card:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(236, 72, 153, 0.1));
}

.method-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-method-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-method-card p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.contact-method-card .btn {
    width: 100%;
}

/* Main Contact Section */
.contact-main {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.form-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--border-color);
}

.form-header h3 {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 800;
}

.form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.label-icon {
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn-large {
    width: 100%;
    margin-top: 10px;
}

.form-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* Form Status Messages */
.form-status {
    margin-top: 20px;
}

.status-message {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    text-align: center;
    animation: slideInUp 0.3s ease;
}

.status-message.loading {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border: 2px solid var(--primary-light);
}

.status-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 2px solid #dc2626;
}

/* Contact Info Sidebar */
.contact-info-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.sidebar-card:hover {
    box-shadow: var(--shadow-md);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.sidebar-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Detail Cards */
.contact-detail-card {
    text-align: center;
    border: 2px solid var(--border-color);
}

.contact-detail-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
}

.contact-detail-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-detail-card h4 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.contact-detail-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.contact-detail-card .contact-link {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: var(--transition);
}

.contact-detail-card .contact-link:hover {
    color: var(--primary-dark);
    transform: scale(1.05);
}

.availability {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 10px;
}

/* Social Card */
.social-card {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.social-card h4 {
    color: var(--text-white);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    font-weight: 700;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* FAQ Section */
.contact-faq {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.faq-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.faq-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.faq-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.faq-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .page-header {
        padding: 60px 20px 40px;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
    
    .form-header h3 {
        font-size: 1.5rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info-sidebar {
        order: -1;
    }
}

/* ======== ABOUT PAGE STYLES ======== */

/* About Teacher Section */
.about-teacher-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    background: var(--bg-white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
}

.image-wrapper {
    position: relative;
}

.image-wrapper img {
    border-radius: 50%;
    border: 8px solid var(--primary-light);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 350px;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    animation: float 3s ease-in-out infinite;
}

.badge-icon {
    font-size: 1.3rem;
}

.about-header {
    margin-bottom: 30px;
}

.about-header h2 {
    font-size: 2.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: 900;
}

.about-header h4 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.credentials {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.credential-badge {
    background: var(--bg-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.credential-badge:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.highlight-text {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--text-dark);
}

/* Stats Showcase */
.stats-showcase {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius);
    text-align: center;
}

.stats-showcase .section-title {
    color: var(--text-white);
    background: none;
    -webkit-text-fill-color: var(--text-white);
    margin-bottom: 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    border-radius: var(--border-radius-sm);
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-8px);
}

.stat-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

/* Teaching Method */
.teaching-method {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.method-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.method-card:hover::before {
    transform: scaleX(1);
}

.method-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(99, 102, 241, 0.1);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.method-card h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.method-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Qualifications Timeline */
.qualifications {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.timeline {
    max-width: 800px;
    margin: 50px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
}

.timeline-item {
    display: flex;
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
}

.timeline-marker {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow-md);
    z-index: 1;
}

.timeline-content {
    flex-grow: 1;
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--primary-color);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.timeline-date {
    display: block;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.timeline-content p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Mission & Vision */
.mission-vision {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.mission-card,
.vision-card {
    padding: 50px 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.mission-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border: 3px solid var(--primary-light);
}

.vision-card {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
    border: 3px solid #f9a8d4;
}

.mission-card:hover,
.vision-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mv-icon {
    font-size: 4rem;
    margin-bottom: 25px;
}

.mission-card h3,
.vision-card h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.mission-card p,
.vision-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* Why Choose Us */
.why-choose-us {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

/* Responsive About Page */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }
    
    .about-image {
        text-align: center;
    }
    
    .image-wrapper img {
        max-width: 250px;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .about-header h4 {
        font-size: 1.1rem;
    }
    
    .credentials {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .method-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-card,
    .vision-card {
        padding: 30px 20px;
    }
    
    .mv-icon {
        font-size: 3rem;
    }
}

/* ======== PRICING PAGE STYLES ======== */

/* Pricing Toggle */
.pricing-toggle-section {
    max-width: 600px;
    margin: 0 auto 60px;
    text-align: center;
}

.pricing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-white);
    padding: 15px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
}

.toggle-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.save-badge {
    background: var(--gradient-accent);
    color: var(--text-white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-left: 8px;
    font-weight: 700;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.4s;
    border-radius: 50px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

/* Pricing Main Section */
.pricing-main {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.pricing-main .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.pricing-main .pricing-card {
    background: var(--bg-white);
    padding: 50px 35px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    border: 3px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* Plan Badges */
.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.popular-badge {
    background: var(--gradient-accent);
}

.best-value-badge {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

/* Price Styling */
.pricing-price-wrapper {
    text-align: center;
    margin: 30px 0;
}

.pricing-main .pricing-price {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.original-price {
    font-size: 1.5rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 10px;
    opacity: 0.6;
}

.price-period {
    display: block;
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 8px;
}

.savings-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 10px;
}

.plan-description {
    text-align: center;
    color: var(--text-medium);
    font-size: 1rem;
    margin-bottom: 30px;
}

/* Plan Features List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.plan-features li {
    padding: 12px 0;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.feature-disabled {
    opacity: 0.4;
}

.feature-disabled .feature-icon {
    background: var(--border-color);
    color: var(--text-light);
}

.btn-block {
    width: 100%;
    margin-top: 20px;
}

.plan-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 15px;
    font-weight: 500;
}

/* Popular Plan Highlight */
.popular-plan {
    border-color: var(--accent-color);
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.03), rgba(236, 72, 153, 0.08));
}

/* Comparison Table */
.comparison-table-section {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.comparison-table thead {
    background: var(--gradient-primary);
    color: var(--text-white);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.comparison-table th {
    font-weight: 700;
    font-size: 1.1rem;
}

.comparison-table td {
    color: var(--text-medium);
}

.comparison-table tbody tr:hover {
    background: var(--bg-light);
}

.popular-column {
    background: rgba(236, 72, 153, 0.05);
    font-weight: 600;
    color: var(--text-dark);
}

/* Payment Methods */
.payment-methods {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.payment-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.payment-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.payment-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.payment-card p {
    color: var(--text-light);
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.pricing-faq .faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.pricing-faq .faq-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.pricing-faq .faq-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.pricing-faq .faq-card h3 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 700;
}

.pricing-faq .faq-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Pricing Testimonials */
.pricing-testimonials {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 60px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
}

/* Responsive Pricing Page */
@media (max-width: 768px) {
    .pricing-toggle {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .pricing-main .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-plan {
        transform: scale(1);
    }
    
    .pricing-main .pricing-price {
        font-size: 2.5rem;
    }
    
    .comparison-table-wrapper {
        overflow-x: scroll;
    }
    
    .comparison-table {
        min-width: 600px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-faq .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== COURSES PAGE STYLES ======== */

/* Course Stats */
.course-stats {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.stats-grid-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.stat-inline {
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-inline .stat-icon {
    font-size: 2.5rem;
}

.stat-inline .stat-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    line-height: 1;
}

.stat-inline .stat-text {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Enhanced Course Filters */
.course-filters-enhanced {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 30px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
    color: var(--text-light);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 45px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Course Count */
.course-count {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.course-count span {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 1rem;
}

/* Enhanced Course Grid */
.course-grid-enhanced {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 35px;
}

.course-card-enhanced {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.course-card-enhanced:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.course-card-enhanced.coming-soon {
    opacity: 0.8;
}

.course-card-enhanced.coming-soon:hover {
    opacity: 1;
}

/* Course Badges */
.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

.available-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: var(--text-white);
}

.coming-soon-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--text-white);
}

/* Course Header */
.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.grade-9-tag {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.grade-10-tag {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.grade-8-tag {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    font-size: 0.9rem;
}

.rating-number {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Course Meta Enhanced */
.course-meta-enhanced {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 15px 0;
}

.course-meta-enhanced .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 600;
}

.meta-icon {
    font-size: 1.1rem;
}

/* Course Footer */
.course-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.course-students {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Learning Path */
.learning-path {
    max-width: 1200px;
    margin: 80px auto;
    padding: 60px 20px;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.path-timeline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.path-step {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    min-width: 200px;
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.path-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.3rem;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-sm);
}

.step-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.step-content p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.step-courses {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
}

.path-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Responsive Courses Page */
@media (max-width: 768px) {
    .stats-grid-inline {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }
    
    .stat-inline .stat-icon {
        font-size: 2rem;
    }
    
    .stat-inline .stat-number {
        font-size: 1.5rem;
    }
    
    .course-filters-enhanced {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .course-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .course-meta-enhanced {
        flex-direction: column;
        gap: 10px;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .course-footer .btn-sm {
        width: 100%;
    }
    
    .path-timeline {
        flex-direction: column;
    }
    
    .path-arrow {
        transform: rotate(90deg);
    }
}

/* =========================================
   1. LOGIN PAGE STYLES (from login.html)
   ========================================= */
.login-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.login-container {
    max-width: 450px;
    margin: 60px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.login-container .form-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-container .form-header h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.login-container .form-group {
    margin-bottom: 20px;
}

.login-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.login-container .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
}

.login-container .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.alert-error {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 12px;
    border-radius: var(--border-radius-sm);
    margin-top: 15px;
    text-align: center;
    display: none;
}

.btn-login-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.signup-link a {
    font-weight: 700;
}

/* Password Toggle Specific Styles */
.password-wrapper {
    position: relative;
}
.password-wrapper input {
    padding-right: 45px; 
}
.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light); 
    padding: 0 5px;
    z-index: 10;
    transition: color 0.2s;
}
.toggle-password-btn:hover {
     color: var(--primary-color);
}

/* =========================================
   2. SIGNUP PAGE STYLES (from signup_new.html)
   ========================================= */
.signup-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.signup-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.signup-info {
    position: sticky;
    top: 100px;
}

.signup-info h2 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.signup-info p {
    font-size: 1.1rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 30px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-white);
    border-radius: var(--border-radius-sm);
    margin-bottom: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.benefit-text {
    flex-grow: 1;
}

.benefit-text h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
    font-weight: 700;
}

.benefit-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.signup-form-wrapper {
    background: var(--bg-white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

.signup-form-wrapper .form-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--border-color);
}

.signup-form-wrapper .form-header h3 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.signup-form-wrapper .form-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 35px 0 25px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--border-color);
}

.section-divider span {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.signup-form-wrapper .form-group {
    margin-bottom: 25px;
}

.signup-form-wrapper .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.signup-form-wrapper .label-icon {
    font-size: 1.1rem;
}

.signup-form-wrapper .form-group input,
.signup-form-wrapper .form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
    transition: var(--transition);
    background: var(--bg-white);
}

.signup-form-wrapper .form-group input:focus,
.signup-form-wrapper .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.signup-form-wrapper .form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.password-strength {
    margin-top: 10px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.parent-info-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
    padding: 20px;
    border-radius: var(--border-radius-sm);
    border-left: 4px solid var(--accent-color);
    margin-top: 20px;
}

.parent-info-box h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.parent-info-box p {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 12px;
    cursor: pointer;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.checkbox-label:hover {
    background: rgba(99, 102, 241, 0.05);
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-family: 'Noto Sans Sinhala', 'Inter', sans-serif;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.login-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid var(--border-color);
}

.login-link p {
    color: var(--text-medium);
    font-size: 1rem;
}

.login-link a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.login-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.loading-overlay,
.message-box {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.loading-overlay {
    background: rgba(0, 0, 0, 0.7);
}

.loading-overlay.active,
.message-box.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.message-box {
    background: rgba(0, 0, 0, 0.5);
}

.message-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 500px;
    animation: slideInUp 0.3s ease;
}

.message-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.message-content.success h3 {
    color: var(--success-color);
}

.message-content.error h3 {
    color: #dc2626;
}

.message-content p {
    color: var(--text-medium);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.message-content button {
    padding: 12px 30px;
    background: var(--gradient-primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.message-content button:hover {
    transform: translateY(-2px);
}

@media (max-width: 968px) {
    .signup-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .signup-info {
        position: static;
    }
    
    .signup-form-wrapper {
        padding: 30px 20px;
    }
}


/* =========================================
   3. ADMIN TOOL STYLES (from creat account new 01.html)
   ========================================= */

.admin-body { /* Used to avoid conflict with existing body selector in main.css */
    font-family: 'Noto Sans Sinhala', 'Poppins', sans-serif; 
    background-color: #f1f5f9;
    margin: 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.admin-container {
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.admin-container h1 {
    color: #0e7490;
    text-align: center;
    margin-bottom: 2rem;
}
.action-btn {
    background-color: #0891b2;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s;
    width: 100%;
}
.action-btn:hover:not(:disabled) {
    background-color: #0e7490;
}
.action-btn:disabled {
    background-color: #94a3b8;
    cursor: not-allowed;
}
.admin-container .form-group {
    margin-bottom: 1.5rem;
}
.admin-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}
.admin-container .form-group input,
.admin-container .form-group textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    box-sizing: border-box;
    font-family: 'Poppins', monospace;
}
.admin-container .form-group textarea {
     height: 200px;
}
#creation-log {
    margin-top: 1.5rem;
    font-weight: 600;
    text-align: left;
    line-height: 1.6;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 6px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: 'Poppins', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}
.log-success { color: #059669; }
.log-error { color: #dc2626; font-weight: 700; }
.log-info { color: #64748b; }
#login-status {
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    color: #dc2626;
}
.back-link {
    display: block;
    text-align: center;
    margin-top: 2rem;
    color: #0e7490;
    font-weight: 500;
    text-decoration: none;
}
/* =========================================
   COURSES PAGE SPECIFIC STYLES (Share/Loyalty Section)
   ========================================= */
.share-loyalty-section {
    padding: 40px 20px;
    background-color: #e0f2f7; /* Light Cyan */
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.share-loyalty-section .section-title {
    color: #0891b2;
    font-size: 2rem;
    margin-bottom: 10px;
}

.share-loyalty-section .section-subtitle {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 25px;
}

.share-loyalty-section input[type="text"] {
    font-family: 'Inter', monospace;
}

.share-loyalty-section button {
    white-space: nowrap;
}

/* Style for the compact Share Button */
.btn-share {
    background-color: #ec4899; /* Accent Color */
    color: white;
    padding: 8px 15px; /* Smaller padding */
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s;
    margin-right: 10px; /* Space from other buttons */
    display: none; /* Hidden by default, shown by JS when logged in */
}

.btn-share:hover {
    background-color: #db2777; /* Darker accent on hover */
}
}