/* ==========================================================================
   Agri Optional — White + Dark Green Theme (Compact & Scannable)
   ========================================================================== */

:root {
    --green:        #0C3B0E;
    --green-mid:    #1A5C1D;
    --green-hover:  #082C0A;
    --green-pale:   #EBF4EB;
    --gold:         #E8A020;
    --gold-dark:    #C8861A;
    --gold-pale:    #FEF9EE;
    --bg:           #FAFAF7;
    --white:        #FFFFFF;
    --text:         #1A1A1A;
    --text-mid:     #444444;
    --text-muted:   #757575;
    --border:       #E0E0D8;
    --radius:       8px;     /* Tightened radius */
    --radius-lg:    16px;    /* Tightened radius */
    --shadow-sm:    0 2px 8px rgba(0, 0, 0, 0.05); /* Softer, tighter shadow */
    --shadow-md:    0 6px 16px rgba(0, 0, 0, 0.08); /* Softer, tighter shadow */
    --transition:   all 0.2s ease-in-out; /* Faster, snappier transition */
}

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

html { 
    scroll-behavior: smooth; 
    font-size: 15px; /* CRITICAL: Reduced base font size slightly to scale everything down */
}

body {
    font-family: 'Lato', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6; /* Tighter line height */
    padding-bottom: 50px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--text);
}

a { 
    color: var(--green-mid); 
    text-decoration: none; 
    transition: var(--transition); 
}

a:hover { 
    color: var(--green); 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* ==========================================================================
   ANNOUNCEMENT BAR
   ========================================================================== */
.announcement-bar {
    background: var(--green);
    color: white;
    text-align: center;
    padding: 8px 16px; /* Tighter padding */
    font-size: 0.85rem;
    font-weight: 700;
}

.announcement-bar a { 
    color: var(--gold); 
    text-decoration: underline; 
    transition: opacity 0.2s;
}

.announcement-bar a:hover {
    opacity: 0.8;
}

.announcement-bar span { 
    opacity: 0.6; 
    font-weight: 400; 
    margin: 0 8px; 
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem; /* Smaller logo text */
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}

.nav-brand .brand-icon { 
    font-size: 1.5rem; 
}

.nav-brand img { 
    height: 36px; /* Smaller logo image */
    width: auto; 
    border-radius: 6px; 
    object-fit: contain; 
}

.nav-brand strong { 
    color: var(--gold-dark); 
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.nav-links a {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: var(--text-mid);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover, 
.nav-links a.active {
    background: var(--green-pale);
    color: var(--green);
}

.btn-nav {
    background: var(--green) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    margin-left: 8px;
}

.btn-nav:hover { 
    background: var(--green-hover) !important; 
    box-shadow: var(--shadow-sm) !important;
}

.nav-toggle { 
    display: none; 
    background: none; 
    border: none; 
    font-size: 1.5rem; 
    cursor: pointer; 
    color: var(--green); 
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px; /* Tighter padding */
    border-radius: var(--radius);
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem; /* Smaller text */
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    gap: 6px;
}

.btn-primary { 
    background: var(--green); 
    color: white; 
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover { 
    background: var(--green-hover); 
    transform: translateY(-1px); 
    box-shadow: var(--shadow-md); 
}

.btn-gold { 
    background: var(--gold); 
    color: var(--text); 
    box-shadow: var(--shadow-sm);
}

.btn-gold:hover { 
    background: var(--gold-dark); 
    color: white; 
    transform: translateY(-1px); 
    box-shadow: var(--shadow-md);
}

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

.btn-outline:hover { 
    background: var(--green); 
    color: white; 
}

.btn-outline-white { 
    background: transparent; 
    border: 2px solid rgba(255,255,255,0.8); 
    color: white; 
}

.btn-outline-white:hover { 
    background: white; 
    color: var(--green);
}

.btn-lg { 
    padding: 14px 32px; 
    font-size: 1rem; 
    border-radius: 8px; 
}

.btn-sm { 
    padding: 8px 16px; 
    font-size: 0.85rem; 
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, #061008 0%, #0C3B0E 50%, #0E2E10 100%);
    color: white;
    padding: 70px 20px 60px; /* Reduced vertical padding */
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1140px; /* Constrained width */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(232,160,32,0.15);
    border: 1px solid rgba(232,160,32,0.4);
    color: var(--gold);
    padding: 6px 14px; /* Tighter padding */
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero h1 { 
    font-size: clamp(2rem, 4vw, 3rem); /* Scaled down the fluid typography */
    color: white; 
    margin-bottom: 16px; 
    line-height: 1.15; 
    letter-spacing: -0.2px;
}

.hero h1 span { 
    color: var(--gold); 
}

.hero h1 em { 
    color: var(--gold); 
    font-style: normal; 
}

.hero p { 
    font-size: 1.05rem; /* Smaller paragraph text */
    opacity: 0.9; 
    max-width: 600px; 
    margin-bottom: 32px; 
    font-weight: 400; 
    line-height: 1.6;
}

.hero-cta { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section { padding: 60px 20px; } /* Reduced vertical padding */
.section-alt { background: var(--white); }
.container { max-width: 1140px; margin: 0 auto; }

.section-header { 
    text-align: center; 
    margin-bottom: 40px; /* Tighter spacing */
}

.section-header h2 { 
    font-size: clamp(1.8rem, 3vw, 2.2rem); /* Scaled down */
    margin-bottom: 12px; 
    letter-spacing: -0.2px;
}

.section-header p { 
    color: var(--text-muted); 
    font-size: 1rem; 
    max-width: 580px; 
    margin: 0 auto; 
}

.section-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    font-size: 0.8rem; 
    font-weight: 800; 
    letter-spacing: 1px; 
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 16px; 
    margin-bottom: 12px; 
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } /* Reduced gap */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px; /* Tighter padding inside cards */
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
}

.card:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-4px); /* Subtler lift */
    border-color: var(--green-pale);
}

.card-icon {
    width: 48px; /* Smaller icons */
    height: 48px;
    background: var(--green-pale);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem; /* Scaled down icon size */
    margin-bottom: 16px;
}

.card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 8px; 
}

.card p { 
    color: var(--text-muted); 
    font-size: 0.9rem; /* Smaller text inside cards */
    margin-bottom: 16px;
    flex-grow: 1; 
    line-height: 1.5;
}

.card-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag.gold { 
    background: var(--gold-pale); 
    color: var(--gold-dark); 
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--green);
    font-weight: 700;
    transition: var(--transition);
}

.card-link:hover { 
    color: var(--green-mid); 
    gap: 8px; 
}

/* ==========================================================================
   SYLLABUS
   ========================================================================== */
.syllabus-grid-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; } /* Reduced gap */

.syllabus-wrap { 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.syllabus-head {
    padding: 16px 20px; /* Tighter padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.syllabus-head.p1 { background: #F4F9F4; border-bottom: 2px solid #C8E0C8; } 
.syllabus-head.p2 { background: #F8F4FA; border-bottom: 2px solid #E0C8E0; } 

.syllabus-title { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.05rem; 
    font-weight: 700; 
}

.syllabus-title.p1 { color: var(--green); }
.syllabus-title.p2 { color: #6A1B9A; }

.syllabus-badge { 
    padding: 4px 12px; 
    border-radius: 16px; 
    font-size: 0.8rem; 
    font-weight: 700; 
}

.syllabus-badge.p1 { 
    background: var(--white); 
    color: var(--green); 
    border: 1px solid #C8E0C8; 
}

.syllabus-badge.p2 { 
    background: var(--white); 
    color: #6A1B9A; 
    border: 1px solid #E0C8E0; 
}

.syllabus-row {
    display: flex;
    flex-direction: row !important; /* Force side-by-side on mobile */
    align-items: flex-start; /* Align to top */
    gap: 16px; 
    padding: 16px; 
    border-bottom: 1px solid var(--border);
}

.syllabus-icon { 
    font-size: 1.5rem; 
    flex-shrink: 0; /* Prevents icon from getting squished */
    width: 28px; /* Fixed width */
    margin-top: 2px; 
}
}

.syllabus-name { 
    font-weight: 700; 
    font-size: 0.95rem; 
    color: var(--text); 
    margin-bottom: 2px; 
}

.syllabus-desc { 
    font-size: 0.85rem; /* Smaller description text */
    color: var(--text-muted); 
    line-height: 1.4;
}

/* ==========================================================================
   ABOUT / MENTOR & QUIZ CTA
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; } /* Reduced gap */
.paper-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.mentor-card {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px 32px; /* Tighter padding */
    text-align: center;
    box-shadow: var(--shadow-md);
}

.mentor-card h2 { color: white; font-size: 2rem; margin-bottom: 12px; letter-spacing: -0.5px;}

.mentor-card p { 
    opacity: 0.9; 
    font-size: 1.05rem; 
    max-width: 580px; 
    margin: 0 auto 24px; 
}

.mentor-features { 
    display: flex; 
    gap: 20px; 
    justify-content: center; 
    flex-wrap: wrap; 
    margin-bottom: 24px; 
}

.mentor-feat { display: flex; align-items: center; gap: 6px; font-size: 0.95rem; font-weight: 600;}

.quiz-cta-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px; /* Tighter padding */
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.quiz-cta-box h2 { font-size: 1.6rem; margin-bottom: 8px; }
.quiz-cta-box h2 span { color: var(--green); }

.quiz-cta-box p { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin-bottom: 16px; 
}

.quiz-list { 
    list-style: none; 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
}

.quiz-list li { 
    display: flex; 
    gap: 8px; 
    font-size: 0.95rem; 
    color: var(--text-mid); 
    align-items: center;
}

.quiz-right { text-align: center; }

/* ==========================================================================
   NOTES PAGE & VIDEOS PAGE
   ========================================================================== */
.notes-grid { display: grid; gap: 16px; }

.note-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.note-card:hover { 
    border-color: var(--green-pale); 
    box-shadow: var(--shadow-md); 
    transform: translateY(-2px);
}

.note-icon { font-size: 2rem; flex-shrink: 0; color: var(--green); }
.note-info { flex: 1; }
.note-info h3 { font-size: 1.05rem; margin-bottom: 2px; }
.note-info p { color: var(--text-muted); font-size: 0.9rem; }
.note-action { flex-shrink: 0; }

.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 20px; 
}

.video-card { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    overflow: hidden; 
    box-shadow: var(--shadow-sm); 
    transition: var(--transition); 
}

.video-card:hover { 
    box-shadow: var(--shadow-md); 
    transform: translateY(-4px); 
    border-color: var(--green-pale);
}

.video-thumbnail { 
    position: relative; 
    width: 100%;
    padding-bottom: 56.25%; /* Strict 16:9 Aspect Ratio */
    height: 0;
    background: #000; 
    border-radius: inherit;
    overflow: hidden;
}

.video-thumbnail iframe { 
    position: absolute; 
    top: 0;
    left: 0; 
    width: 100% !important; 
    height: 100% !important; 
    border: none; 
}

.video-info { padding: 16px; }
.video-info h3 { font-size: 1.05rem; margin-bottom: 6px; line-height: 1.3;}
.video-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   QUIZ PAGE
   ========================================================================== */
.quiz-wrapper {
    max-width: 700px; /* Narrower width */
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.quiz-progress-bar { 
    height: 6px; 
    background: var(--border); 
    border-radius: 3px; 
    margin-bottom: 24px; 
    overflow: hidden; 
}

.quiz-progress-fill { 
    height: 100%; 
    background: var(--green); 
    border-radius: 3px; 
    transition: width 0.4s ease; 
}

.quiz-question-num { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    margin-bottom: 8px; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-question { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.25rem; 
    margin-bottom: 24px; 
    line-height: 1.4; 
}

.quiz-options { display: grid; gap: 12px; }

.quiz-option { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 16px; 
    border: 2px solid var(--border); 
    border-radius: var(--radius); 
    cursor: pointer; 
    transition: var(--transition); 
    font-size: 0.95rem; 
}

.quiz-option:hover { 
    border-color: var(--green-pale); 
    background: var(--bg); 
}

.quiz-option.selected { 
    border-color: var(--green); 
    background: var(--green-pale); 
    font-weight: 700; 
}

.quiz-option.correct { border-color: #4CAF50; background: #E8F5E9; }
.quiz-option.wrong { border-color: #E53935; background: #FFEBEE; }

.quiz-option input[type="radio"] { 
    accent-color: var(--green); 
    width: 18px; 
    height: 18px; 
}

.quiz-nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 24px; 
}

.result-score { 
    font-size: 3.5rem; 
    font-weight: 700; 
    color: var(--green); 
    font-family: 'Playfair Display', serif; 
}

.result-level { 
    display: inline-block; 
    padding: 8px 24px; 
    border-radius: 20px; 
    font-weight: 700; 
    margin: 16px 0; 
    font-size: 1rem; 
}

/* ==========================================================================
   AUTH FORMS
   ========================================================================== */
.auth-wrapper { 
    min-height: calc(100vh - 60px); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    padding: 32px 20px; 
    background: var(--bg); 
}

.auth-card { 
    width: 100%; 
    max-width: 420px; /* Constrained width */
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 32px; 
    box-shadow: var(--shadow-md); 
}

.auth-card h2 { margin-bottom: 6px; font-size: 1.6rem; }

.auth-card .subtitle { 
    color: var(--text-muted); 
    margin-bottom: 24px; 
    font-size: 0.95rem; 
}

.form-group { margin-bottom: 16px; }

.form-group label { 
    display: block; 
    font-size: 0.9rem; 
    font-weight: 700; 
    margin-bottom: 6px; 
    color: var(--text-mid); 
}

.form-group input,
.form-group select,
.form-group textarea { 
    width: 100%; 
    padding: 10px 14px; 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    font-family: 'Lato', sans-serif; 
    font-size: 0.95rem; 
    background: var(--bg); 
    color: var(--text); 
    transition: var(--transition); 
    outline: none; 
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { 
    border-color: var(--green-mid); 
    background: var(--white); 
    box-shadow: 0 0 0 3px rgba(26,92,29,0.15); 
}

.form-group textarea { 
    resize: vertical; 
    min-height: 80px; 
}

.form-row { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 16px; 
}

.alert { 
    padding: 12px 16px; 
    border-radius: var(--radius); 
    font-size: 0.9rem; 
    margin-bottom: 20px; 
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-error { background: #FFEBEE; color: #C62828; border: 1px solid #FFCDD2; }
.alert-success { background: var(--green-pale); color: var(--green); border: 1px solid #A8C8A8; }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dashboard-grid { 
    display: grid; 
    grid-template-columns: 260px 1fr; /* Constrained sidebar */
    gap: 32px; 
}

.dash-sidebar { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    height: fit-content; 
    box-shadow: var(--shadow-sm); 
}

.dash-avatar { 
    width: 80px; 
    height: 80px; 
    background: var(--green-pale); 
    color: var(--green);
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 2.5rem; 
    margin: 0 auto 16px; 
}

.dash-sidebar h3 { text-align: center; margin-bottom: 4px; font-size: 1.1rem; }

.dash-sidebar .email { 
    text-align: center; 
    color: var(--text-muted); 
    font-size: 0.85rem; 
    margin-bottom: 20px; 
}

.dash-badge { 
    display: block; 
    text-align: center; 
    padding: 6px 14px; 
    border-radius: 16px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    margin-bottom: 24px; 
}

.badge-pending { background: var(--gold-pale); color: var(--gold-dark); }
.badge-approved { background: var(--green-pale); color: var(--green); }
.badge-not-applied { background: #F5F5F5; color: var(--text-muted); }

.dash-main { display: flex; flex-direction: column; gap: 24px; }

.dash-card { 
    background: var(--white); 
    border: 1px solid var(--border); 
    border-radius: var(--radius-lg); 
    padding: 24px; 
    box-shadow: var(--shadow-sm); 
}

.dash-card h3 { 
    font-size: 1.1rem; 
    margin-bottom: 16px; 
    padding-bottom: 12px; 
    border-bottom: 1px solid var(--border); 
}

.stat-row { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 16px; 
    margin-bottom: 20px; 
}

.stat-box { 
    background: var(--bg); 
    border: 1px solid var(--border); 
    border-radius: var(--radius); 
    padding: 16px; 
    text-align: center; 
}

.stat-box .num { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: var(--green); 
}

.stat-box .lbl { font-size: 0.8rem; color: var(--text-muted); }

table.results-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 0.9rem; 
}

table.results-table th { 
    background: var(--bg); 
    padding: 10px 14px; 
    text-align: left; 
    font-weight: 700; 
    color: var(--text-mid); 
    border-bottom: 2px solid var(--border);
}

table.results-table td { 
    padding: 10px 14px; 
    border-bottom: 1px solid var(--border); 
}

.score-pill { 
    display: inline-block; 
    padding: 4px 12px; 
    border-radius: 10px; 
    font-size: 0.8rem; 
    font-weight: 700; 
}

.score-high { background: var(--green-pale); color: var(--green); }
.score-mid { background: var(--gold-pale); color: var(--gold-dark); }
.score-low { background: #FFEBEE; color: #C62828; }

/* ==========================================================================
   TOPIC PILLS
   ========================================================================== */
.topic-filter { 
    display: flex; 
    gap: 10px; 
    flex-wrap: wrap; 
    margin-bottom: 24px; 
}

.topic-pill { 
    padding: 6px 16px; 
    border: 1px solid var(--border); 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    cursor: pointer; 
    transition: var(--transition); 
    background: var(--white); 
    color: var(--text-mid); 
    text-decoration: none; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.topic-pill:hover, 
.topic-pill.active { 
    background: var(--green); 
    color: white; 
    border-color: var(--green); 
    box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   PAGE HERO
   ========================================================================== */
.page-hero { 
    background: linear-gradient(120deg, #061008 0%, #0C3B0E 100%); 
    color: white; 
    padding: 40px 20px; 
    text-align: center; 
}

.page-hero h1 { 
    color: white; 
    font-size: clamp(1.8rem, 3vw, 2.4rem); 
    margin-bottom: 8px; 
    letter-spacing: -0.2px;
}

.page-hero p { 
    opacity: 0.85; 
    max-width: 560px; 
    margin: 0 auto; 
    font-size: 1rem;
}

/* ==========================================================================
   STICKY CONTACT BAR
   ========================================================================== */
#stickyContact {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: var(--green);
    color: white;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    flex-wrap: wrap;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { 
    background: #060E07; 
    color: rgba(255,255,255,0.7); 
    padding: 60px 20px 0; 
}

.footer-container { 
    max-width: 1140px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr; 
    gap: 32px; 
    padding-bottom: 32px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
}

.footer-brand .brand-text { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.3rem; 
    color: white; 
    margin-bottom: 8px;
    display: block;
}

.footer-brand .brand-text strong { color: var(--gold); }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; opacity: 0.8; line-height: 1.5;}
.footer-brand a { color: rgba(255,255,255,0.9); }
.footer-brand a:hover { color: var(--gold); }

.footer-links h4 { 
    font-family: 'Lato', sans-serif; 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: white; 
    margin-bottom: 16px; 
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: color 0.2s;}
.footer-links a:hover { color: var(--gold); }

.footer-contact h4 { 
    font-family: 'Lato', sans-serif; 
    font-size: 0.8rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: white; 
    margin-bottom: 16px; 
}

.footer-contact p { font-size: 0.9rem; margin-bottom: 10px; display: flex; align-items: center; gap: 6px;}
.footer-contact a { color: rgba(255,255,255,0.7); transition: color 0.2s;}
.footer-contact a:hover { color: var(--gold); }

.footer-bottom { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 20px 0; 
    text-align: center; 
    font-size: 0.8rem; 
    color: rgba(255,255,255,0.4); 
}

/* ==========================================================================
   MISC
   ========================================================================== */
.empty-state { 
    text-align: center; 
    padding: 60px 20px; 
    color: var(--text-muted); 
    background: var(--bg);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.empty-state .icon { 
    font-size: 3rem; 
    margin-bottom: 12px; 
    color: var(--border);
}

code { 
    background: #f0f0ea; 
    padding: 3px 6px; 
    border-radius: 4px; 
    font-family: monospace; 
    font-size: 0.85rem; 
    color: var(--green-mid);
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    .grid-3 { grid-template-columns: 1fr 1fr; gap: 20px;}
    .grid-4 { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 20px;}
    .stat-row { grid-template-columns: 1fr 1fr; }
    .syllabus-grid-wrap { grid-template-columns: 1fr; gap: 20px;}
    .about-grid { grid-template-columns: 1fr; gap: 32px;}
    .paper-grid { grid-template-columns: 1fr; }
    .quiz-cta-box { grid-template-columns: 1fr; text-align: center; padding: 24px;}
    .quiz-cta-box ul { align-items: center; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px;}
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        height: auto;
        min-height: 50px;
        align-items: center;
        padding: 0 10px;
    }
    .nav-brand { padding: 6px 0; }
    .nav-brand img { height: 36px !important; }
    .nav-toggle { display: none !important; }
    .nav-links {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0;
        padding: 0 0 6px 0;
        margin: 0;
        border-top: 1px solid var(--border);
        order: 3;
        list-style: none;
    }
    .nav-links::-webkit-scrollbar { display: none; }
    .nav-links li { flex-shrink: 0; list-style: none; }
    .nav-links a {
        display: block;
        padding: 8px 12px;
        font-size: .78rem;
        font-weight: 700;
        white-space: nowrap;
        border-radius: 0;
        color: var(--text-mid);
        border-bottom: 2.5px solid transparent;
        transition: all .15s;
    }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--green);
        background: transparent;
        border-bottom-color: var(--green);
    }
    .nav-links .btn-nav {
        background: var(--green);
        color: #fff;
        border-radius: 5px;
        padding: 6px 14px;
        margin: 4px 4px;
        font-size: .75rem;
        border-bottom: none;
    }
    .desktop-only-nav { display: none !important; }

    .section { padding: 40px 16px; }
    
    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 16px;}
    .form-row { grid-template-columns: 1fr; gap: 12px;}
    
    .quiz-wrapper { padding: 24px 16px; }
    .auth-card { padding: 24px 16px; }
    
    .hero-cta { flex-direction: column; width: 100%;}
    .hero-cta .btn { width: 100%; }
    
    .note-card { flex-direction: column; align-items: flex-start; gap: 12px;}
    .mentor-features { flex-direction: column; align-items: flex-start; padding-left: 16px;}
    
    .footer-container { grid-template-columns: 1fr; gap: 24px; }
    
    #stickyContact { gap: 8px; padding: 8px 12px; font-size: 0.85rem;}
    #stickyContact > span { display: none; }
}
/* ==========================================================================
   FLOATING CONTACT BUTTON
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Class added by Javascript on scroll */
/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Permanently Visible)
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366; /* Official WhatsApp Green */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.floating-contact:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* Mobile adjustments - Raised higher so it doesn't get hidden by the browser menu */
@media (max-width: 640px) {
    .floating-contact {
        bottom: 40px; /* Raised significantly for mobile */
        right: 20px;
        padding: 16px; /* Perfect circle */
        border-radius: 50%;
    }
    .floating-contact .contact-text {
        display: none; /* Hide text, keep only the icon */
    }
    .floating-contact svg {
        width: 28px;
        height: 28px;
    }
}