/* ==========================================================================
   AgriOptional.in — "FIELD ALMANAC" Design System  v2.0
   Botanical ink on archival paper · harvest gold · contour-line motif
   --------------------------------------------------------------------------
   IMPORTANT: All class names & structural rules from v1 are preserved.
   Only the visual language + interactions changed. Logic untouched.
   ========================================================================== */

:root {
    /* Brand core (legacy names kept — inline page styles depend on them) */
    --green:        #0B3D20;            /* botanical ink */
    --green-mid:    #15602F;
    --green-hover:  #072B16;
    --green-pale:   #E8F1E5;
    --gold:         #D9A33C;            /* harvest gold */
    --gold-dark:    #A87A1F;
    --gold-pale:    #FBF3DF;
    --bg:           #F7F5EC;            /* archival paper */
    --white:        #FFFFFF;
    --text:         #18241C;
    --text-mid:     #3E4A41;
    --text-muted:   #6E7A6F;
    --border:       #E3E1D4;

    /* New tokens */
    --ink:          #0A1A10;            /* deepest green-black */
    --leaf:         #3F8F4F;            /* fresh leaf accent  */
    --paper-deep:   #F0EDDF;
    --radius:       10px;
    --radius-lg:    18px;
    --radius-xl:    26px;
    --shadow-sm:    0 1px 2px rgba(10,26,16,.05), 0 2px 8px rgba(10,26,16,.05);
    --shadow-md:    0 4px 10px rgba(10,26,16,.06), 0 14px 34px rgba(10,26,16,.10);
    --shadow-lg:    0 10px 24px rgba(10,26,16,.10), 0 30px 70px rgba(10,26,16,.16);
    --shadow-gold:  0 8px 24px rgba(217,163,60,.35);
    --transition:   all .25s cubic-bezier(.4,0,.2,1);
    --ease-spring:  cubic-bezier(.34,1.56,.64,1);

    /* Type */
    --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
    --font-body:    'Inter', 'Lato', system-ui, sans-serif;

    /* Signature motifs (inline SVG) */
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    --contours: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='600' viewBox='0 0 900 600' fill='none'%3E%3Cg stroke='%23D9A33C' stroke-width='1' opacity='0.16'%3E%3Cpath d='M120 300c0-110 110-180 240-180s260 60 260 170-90 190-250 190S120 410 120 300Z'/%3E%3Cpath d='M170 300c0-85 88-140 195-140s210 48 210 132-72 150-202 150-203-58-203-142Z'/%3E%3Cpath d='M222 298c0-62 66-102 146-102s156 36 156 98-54 112-151 112-151-46-151-108Z'/%3E%3Cpath d='M275 296c0-40 44-66 96-66s102 24 102 64-36 74-99 74-99-32-99-72Z'/%3E%3Cpath d='M330 294c0-20 22-32 44-32s48 12 48 30-18 36-46 36-46-16-46-34Z'/%3E%3Cpath d='M620 470c60-10 160-6 220 40'/%3E%3Cpath d='M600 510c70-16 190-10 260 44'/%3E%3Cpath d='M20 120c80-40 180-50 260-24'/%3E%3Cpath d='M0 80c90-50 210-64 310-30'/%3E%3Cpath d='M700 60c60 20 120 70 140 130'/%3E%3Cpath d='M760 30c66 26 130 86 150 156'/%3E%3C/g%3E%3C/svg%3E");
}

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

html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    padding-bottom: 50px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.18;
    color: var(--text);
    letter-spacing: -0.01em;
    font-weight: 600;
}

::selection { background: var(--gold); color: var(--ink); }

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

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

/* Thin elegant scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #C9C6B4; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

:focus-visible { outline: 3px solid rgba(217,163,60,.7); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   ANNOUNCEMENT BAR — gold thread on deep ink
   ========================================================================== */
.announcement-bar {
    background:
        linear-gradient(90deg, rgba(217,163,60,.12), transparent 30%, transparent 70%, rgba(217,163,60,.12)),
        var(--ink);
    color: #F3EFDF;
    text-align: center;
    padding: 9px 16px;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-bottom: 1px solid rgba(217,163,60,.35);
    position: relative;
}

.announcement-bar a {
    color: var(--gold);
    text-decoration: none;
    border-bottom: 1px solid rgba(217,163,60,.5);
    padding-bottom: 1px;
    transition: var(--transition);
}
.announcement-bar a:hover { color: #F1C46A; border-bottom-color: #F1C46A; }
.announcement-bar span { opacity: .45; font-weight: 400; margin: 0 8px; }

/* ==========================================================================
   NAVBAR — frosted paper, condenses on scroll
   ========================================================================== */
.navbar {
    background: rgba(252, 251, 245, .82);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(11,61,32,.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .3s ease, background .3s ease;
}

.navbar.scrolled {
    background: rgba(252, 251, 245, .94);
    box-shadow: 0 1px 0 rgba(11,61,32,.06), 0 10px 30px rgba(10,26,16,.08);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    transition: height .3s ease;
}
.navbar.scrolled .nav-container { height: 54px; }

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}
.nav-brand .brand-icon { font-size: 1.5rem; }
.nav-brand img { height: 38px; width: auto; border-radius: 8px; object-fit: contain; transition: transform .3s var(--ease-spring); }
.nav-brand:hover img { transform: rotate(-3deg) scale(1.04); }
.nav-brand strong { color: var(--gold-dark); }

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

.nav-links a {
    padding: 7px 11px;
    border-radius: 8px;
    font-size: .84rem;
    color: var(--text-mid);
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
}

/* travelling ink underline */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 11px; right: 11px; bottom: 3px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: transparent; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.btn-nav {
    background: var(--green) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 9px 20px !important;
    border-radius: 999px !important;
    margin-left: 8px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 14px rgba(11,61,32,.28);
    transition: var(--transition) !important;
}
.btn-nav::after { display: none !important; }
.btn-nav:hover {
    background: var(--green-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(11,61,32,.34) !important;
}

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

/* ==========================================================================
   BUTTONS — tactile, with a light-sweep on the primary actions
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

/* light sweep */
.btn-primary::before, .btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -80%;
    width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .55s ease;
    pointer-events: none;
}
.btn-primary:hover::before, .btn-gold:hover::before { left: 130%; }

.btn-primary {
    background: linear-gradient(160deg, var(--green-mid) 0%, var(--green) 60%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 18px rgba(11,61,32,.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 12px 28px rgba(11,61,32,.38);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(160deg, #E9B856 0%, var(--gold) 55%, #C8922C 100%);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), var(--shadow-gold);
}
.btn-gold:hover {
    transform: translateY(-2px);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 14px 32px rgba(217,163,60,.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,61,32,.25); }

.btn-outline-white {
    background: rgba(255,255,255,.06);
    border: 1.5px solid rgba(255,255,255,.55);
    color: #fff;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn-outline-white:hover { background: #fff; color: var(--green); border-color: #fff; transform: translateY(-2px); }

.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

.btn:active { transform: translateY(0) scale(.98); }

/* ==========================================================================
   HERO — the field at dusk: layered light, drifting contour lines, grain
   ========================================================================== */
.hero {
    background:
        radial-gradient(1100px 520px at 85% -10%, rgba(63,143,79,.32), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(217,163,60,.14), transparent 55%),
        linear-gradient(150deg, #06150B 0%, #0B3D20 58%, #0A2E18 100%);
    color: #fff;
    padding: 96px 20px 84px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* drifting contour-map linework — soil & water conservation, literally */
.hero::before {
    content: '';
    position: absolute;
    inset: -12%;
    background-image: var(--contours);
    background-size: 900px 600px;
    opacity: .9;
    animation: contourDrift 60s linear infinite alternate;
    z-index: -1;
    pointer-events: none;
}

/* paper grain */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: overlay;
    opacity: .6;
    z-index: -1;
    pointer-events: none;
}

@keyframes contourDrift {
    from { transform: translate3d(-2%, -1%, 0) scale(1); }
    to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: center;
}

/* Left column: existing hero text content */
.hero-left { min-width: 0; }

/* Right column: glass announcement panel */
.hero-announce {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 20px;
    padding: 22px 20px;
    animation: riseIn .9s .55s cubic-bezier(.22,1,.36,1) both;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.2) transparent;
}
.hero-announce::-webkit-scrollbar { width: 4px; }
.hero-announce::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.announce-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.announce-header-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(217,163,60,.6);
    animation: seedPulse 2.4s ease-out infinite;
    flex-shrink: 0;
}

.announce-item {
    padding: 11px 13px;
    border-radius: 12px;
    margin-bottom: 9px;
    border-left: 3px solid transparent;
    position: relative;
}
.announce-item:last-child { margin-bottom: 0; }
.announce-item.type-info    { background: rgba(100,180,255,.13); border-color: rgba(100,180,255,.55); }
.announce-item.type-success { background: rgba(80,200,120,.13);  border-color: rgba(80,200,120,.55); }
.announce-item.type-warning { background: rgba(255,190,60,.13);  border-color: rgba(255,190,60,.55); }

.announce-item-title {
    font-size: .84rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.3;
}
.announce-item-body {
    font-size: .78rem;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
}

.announce-empty {
    text-align: center;
    padding: 24px 0;
    color: rgba(255,255,255,.35);
    font-size: .82rem;
}

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 32px; }
    .hero-announce { max-height: 260px; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(217,163,60,.1);
    border: 1px solid rgba(217,163,60,.45);
    color: #F0CE85;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .14em;
    margin-bottom: 22px;
    text-transform: uppercase;
    animation: riseIn .7s .05s cubic-bezier(.22,1,.36,1) both;
}
.hero-badge::before {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(217,163,60,.6);
    animation: seedPulse 2.4s ease-out infinite;
}
@keyframes seedPulse {
    0%   { box-shadow: 0 0 0 0 rgba(217,163,60,.55); }
    70%  { box-shadow: 0 0 0 9px rgba(217,163,60,0); }
    100% { box-shadow: 0 0 0 0 rgba(217,163,60,0); }
}

.hero h1 {
    font-size: clamp(2.5rem, 5.4vw, 4rem);
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.08;
    letter-spacing: -0.022em;
    font-weight: 600;
    max-width: 850px;
    animation: riseIn .8s .15s cubic-bezier(.22,1,.36,1) both;
}

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

/* the italic word — gold, with a hand-drawn harvest underline */
.hero h1 em {
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
    position: relative;
    white-space: nowrap;
}
.hero h1 em::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -.06em;
    height: .14em;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10C60 3 150 2 297 7' stroke='%23D9A33C' stroke-width='5' stroke-linecap='round' fill='none' opacity='0.85'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    transform-origin: left;
    animation: drawStroke 1s .8s cubic-bezier(.22,1,.36,1) both;
}
@keyframes drawStroke {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

.hero p {
    font-size: 1.1rem;
    color: rgba(243,239,223,.85);
    max-width: 620px;
    margin-bottom: 36px;
    font-weight: 400;
    line-height: 1.7;
    animation: riseIn .8s .3s cubic-bezier(.22,1,.36,1) both;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: riseIn .8s .45s cubic-bezier(.22,1,.36,1) both;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SECTIONS & GRIDS
   ========================================================================== */
.section { padding: 84px 20px; position: relative; }
.section-alt {
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.container { max-width: 1140px; margin: 0 auto; }

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

.section-header h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 14px;
    letter-spacing: -0.018em;
}

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

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold-dark);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    padding: 5px 0;
    border-radius: 0;
    margin-bottom: 14px;
    position: relative;
}
/* almanac rule marks either side of the tag */
.section-tag::before, .section-tag::after {
    content: '';
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold));
}
.section-tag::after { background: linear-gradient(90deg, var(--gold), transparent); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* ==========================================================================
   CARDS — paper specimens with a gold seed-bead that grows on hover
   ========================================================================== */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease-spring), box-shadow .35s ease, border-color .35s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

/* gold bead → grows into full top rule */
.card::before {
    content: '';
    position: absolute;
    top: 0; left: 26px;
    width: 34px; height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--gold), #E9B856);
    transition: width .45s cubic-bezier(.22,1,.36,1), left .45s cubic-bezier(.22,1,.36,1);
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: rgba(217,163,60,.45);
}
.card:hover::before { width: calc(100% - 0px); left: 0; }

.card-icon {
    width: 52px;
    height: 52px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.9), transparent 55%),
        var(--green-pale);
    border: 1px solid rgba(11,61,32,.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 18px;
    transition: transform .35s var(--ease-spring), background .3s ease;
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.08); }

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

.card p {
    color: var(--text-muted);
    font-size: .92rem;
    margin-bottom: 18px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-tag {
    display: inline-block;
    background: var(--green-pale);
    color: var(--green);
    font-size: .68rem;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
    border: 1px solid rgba(11,61,32,.1);
}

.card-tag.gold  { background: var(--gold-pale); color: var(--gold-dark); border-color: rgba(168,122,31,.25); }
.card-tag.green { background: var(--green-pale); color: var(--green); }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: .92rem;
    color: var(--green);
    font-weight: 700;
    transition: var(--transition);
    position: relative;
}
.card-link:hover { color: var(--gold-dark); gap: 11px; }

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

.syllabus-wrap {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
    transition: box-shadow .3s ease, transform .3s ease;
}
.syllabus-wrap:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.syllabus-head {
    padding: 18px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.syllabus-head.p1 { background: linear-gradient(180deg, #F2F8F0, #ECF4E9); border-bottom: 2px solid #C4DCC2; }
.syllabus-head.p2 { background: linear-gradient(180deg, #F8F3FA, #F3EBF6); border-bottom: 2px solid #DCC4DE; }

.syllabus-title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; }
.syllabus-title.p1 { color: var(--green); }
.syllabus-title.p2 { color: #6A1B9A; }

.syllabus-badge { padding: 4px 13px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.syllabus-badge.p1 { background: var(--white); color: var(--green); border: 1px solid #C4DCC2; }
.syllabus-badge.p2 { background: var(--white); color: #6A1B9A; border: 1px solid #DCC4DE; }

.syllabus-row {
    display: flex;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
    transition: background .2s ease, padding-left .2s ease;
}
.syllabus-row:hover { background: var(--bg); padding-left: 24px; }

.syllabus-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 28px;
    margin-top: 2px;
}

.syllabus-name { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 2px; }
.syllabus-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.45; }

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

.mentor-card {
    background:
        radial-gradient(800px 360px at 90% -20%, rgba(63,143,79,.4), transparent 60%),
        linear-gradient(150deg, #0A2E18 0%, var(--green) 70%);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 52px 36px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.mentor-card::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: var(--contours);
    background-size: 900px 600px;
    opacity: .7;
    z-index: -1;
}
.mentor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: overlay;
    opacity: .5;
    z-index: -1;
}

.mentor-card h2 { color: #fff; font-size: 2.1rem; margin-bottom: 12px; letter-spacing: -.02em; }

.mentor-card p {
    color: rgba(243,239,223,.85);
    font-size: 1.05rem;
    max-width: 580px;
    margin: 0 auto 26px;
}

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

.mentor-feat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .95rem;
    font-weight: 600;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    padding: 8px 16px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.mentor-feat .material-symbols-rounded { color: var(--gold); }

.quiz-cta-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.quiz-cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green) 0%, var(--leaf) 40%, var(--gold) 100%);
}

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

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

.quiz-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.quiz-list li { display: flex; gap: 9px; font-size: .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-left: 4px solid transparent;
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease-spring), box-shadow .3s ease, border-color .3s ease;
}

.note-card:hover {
    border-color: var(--border);
    border-left-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px) translateX(2px);
}

.note-icon { font-size: 2rem; flex-shrink: 0; color: var(--green); transition: transform .3s var(--ease-spring); }
.note-card:hover .note-icon { transform: scale(1.12) rotate(-4deg); }
.note-info { flex: 1; }
.note-info h3 { font-size: 1.08rem; margin-bottom: 3px; }
.note-info p { color: var(--text-muted); font-size: .9rem; }
.note-action { flex-shrink: 0; }

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

.video-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease-spring), box-shadow .35s ease, border-color .35s ease;
}

.video-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
    border-color: rgba(217,163,60,.4);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;       /* strict 16:9 */
    height: 0;
    background: var(--ink);
    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: 18px; }
.video-info h3 { font-size: 1.06rem; margin-bottom: 6px; line-height: 1.32; }
.video-info p { color: var(--text-muted); font-size: .9rem; }

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

.quiz-progress-bar {
    height: 7px;
    background: var(--paper-deep);
    border-radius: 99px;
    margin-bottom: 26px;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--green-mid), var(--leaf) 70%, var(--gold));
    border-radius: 99px;
    transition: width .5s cubic-bezier(.22,1,.36,1);
}

.quiz-question-num {
    font-size: .78rem;
    color: var(--gold-dark);
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
}

.quiz-question {
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 26px;
    line-height: 1.42;
}

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

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

.quiz-option:hover {
    border-color: rgba(11,61,32,.35);
    background: var(--bg);
    transform: translateX(3px);
}

.quiz-option.selected {
    border-color: var(--green);
    background: var(--green-pale);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--green);
}

.quiz-option.correct { border-color: #2E7D32; 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: 26px;
}

.result-score {
    font-size: 4rem;
    font-weight: 600;
    color: var(--green);
    font-family: var(--font-display);
    line-height: 1;
}

.result-level {
    display: inline-block;
    padding: 9px 26px;
    border-radius: 999px;
    font-weight: 700;
    margin: 18px 0;
    font-size: 1rem;
}

/* ==========================================================================
   AUTH FORMS
   ========================================================================== */
.auth-wrapper {
    min-height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
        radial-gradient(700px 380px at 110% -10%, rgba(63,143,79,.1), transparent 60%),
        var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 38px 34px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--leaf) 50%, var(--gold));
}

.auth-card h2 { margin-bottom: 6px; font-size: 1.65rem; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 26px; font-size: .95rem; }

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

.form-group label {
    display: block;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 7px;
    color: var(--text-mid);
    letter-spacing: .01em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .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 4px rgba(21,96,47,.12);
}

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

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

.alert {
    padding: 13px 17px;
    border-radius: var(--radius);
    font-size: .9rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-left-width: 4px !important;
}

.alert-error   { background: #FFF0F0; color: #B3261E; border: 1px solid #F3C3C0; }
.alert-success { background: var(--green-pale); color: var(--green); border: 1px solid #B9D4B4; }

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

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

.dash-avatar {
    width: 84px;
    height: 84px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,.85), transparent 60%),
        var(--green-pale);
    color: var(--green);
    border: 2px solid rgba(11,61,32,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 16px;
    box-shadow: 0 6px 18px rgba(11,61,32,.12);
}

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

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

.dash-badge {
    display: block;
    text-align: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: .02em;
}

.badge-pending     { background: var(--gold-pale); color: var(--gold-dark); border: 1px solid rgba(168,122,31,.25); }
.badge-approved    { background: var(--green-pale); color: var(--green); border: 1px solid rgba(11,61,32,.18); }
.badge-not-applied { background: var(--paper-deep); color: var(--text-muted); border: 1px solid var(--border); }

.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: 26px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow .3s ease;
}
.dash-card:hover { box-shadow: var(--shadow-md); }

.dash-card h3 {
    font-size: 1.12rem;
    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: 18px 16px;
    text-align: center;
    transition: transform .25s var(--ease-spring), border-color .25s ease;
}
.stat-box:hover { transform: translateY(-3px); border-color: rgba(217,163,60,.5); }

.stat-box .num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--green);
    line-height: 1.2;
}

.stat-box .lbl { font-size: .78rem; color: var(--text-muted); font-weight: 600; letter-spacing: .03em; }

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

table.results-table th {
    background: var(--bg);
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    color: var(--text-mid);
    border-bottom: 2px solid var(--border);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

table.results-table td { padding: 11px 14px; border-bottom: 1px solid var(--border); }
table.results-table tr { transition: background .15s ease; }
table.results-table tbody tr:hover { background: var(--bg); }

.score-pill { display: inline-block; padding: 4px 13px; border-radius: 999px; font-size: .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: #FFF0F0; color: #B3261E; }

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

.topic-pill {
    padding: 7px 18px;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-mid);
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(10,26,16,.04);
}

.topic-pill:hover {
    border-color: var(--green);
    color: var(--green);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.topic-pill.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 6px 16px rgba(11,61,32,.3);
}

/* ==========================================================================
   PAGE HERO — inner pages get a quieter cut of the field
   ========================================================================== */
.page-hero {
    background:
        radial-gradient(800px 360px at 90% -30%, rgba(63,143,79,.28), transparent 60%),
        linear-gradient(140deg, #06150B 0%, var(--green) 80%);
    color: #fff;
    padding: 56px 20px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: -15%;
    background-image: var(--contours);
    background-size: 900px 600px;
    opacity: .75;
    z-index: -1;
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--grain);
    mix-blend-mode: overlay;
    opacity: .55;
    z-index: -1;
    pointer-events: none;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 10px;
    letter-spacing: -0.018em;
    animation: riseIn .7s .05s cubic-bezier(.22,1,.36,1) both;
}

.page-hero p {
    color: rgba(243,239,223,.82);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
    animation: riseIn .7s .18s cubic-bezier(.22,1,.36,1) both;
}

/* ==========================================================================
   STICKY CONTACT BAR
   ========================================================================== */
#stickyContact {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: rgba(10,26,16,.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 9px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    box-shadow: 0 -8px 28px rgba(10,26,16,.3);
    border-top: 1px solid rgba(217,163,60,.3);
    flex-wrap: wrap;
    font-weight: 600;
    font-size: .9rem;
}

/* ==========================================================================
   FOOTER — the field at night, contour lines faint in the dark
   ========================================================================== */
.site-footer {
    background:
        radial-gradient(900px 400px at 80% 0%, rgba(63,143,79,.14), transparent 60%),
        #060F09;
    color: rgba(243,239,223,.66);
    padding: 72px 20px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-top: 3px solid var(--gold);
}
.site-footer::before {
    content: '';
    position: absolute;
    inset: -10%;
    background-image: var(--contours);
    background-size: 900px 600px;
    opacity: .5;
    z-index: -1;
    pointer-events: none;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(243,239,223,.1);
    position: relative;
}

.footer-brand .brand-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: #F3EFDF;
    margin-bottom: 8px;
    display: block;
}

.footer-brand .brand-text strong { color: var(--gold); }
.footer-brand p { font-size: .87rem; margin-top: 8px; opacity: .82; line-height: 1.6; }
.footer-brand a { color: rgba(243,239,223,.9); }
.footer-brand a:hover { color: var(--gold); }

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-body);
    font-size: .74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--gold);
    margin-bottom: 18px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 11px; }

.footer-links a {
    color: rgba(243,239,223,.66);
    font-size: .9rem;
    transition: color .2s ease, padding-left .25s cubic-bezier(.22,1,.36,1);
    position: relative;
}
.footer-links a:hover { color: var(--gold); padding-left: 8px; }

.footer-contact p { font-size: .9rem; margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.footer-contact a { color: rgba(243,239,223,.66); transition: color .2s; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
    max-width: 1140px;
    margin: 0 auto;
    padding: 22px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(243,239,223,.38);
    position: relative;
}

/* ==========================================================================
   MISC
   ========================================================================== */
.empty-state {
    text-align: center;
    padding: 64px 20px;
    color: var(--text-muted);
    background:
        radial-gradient(500px 200px at 50% 0%, rgba(217,163,60,.06), transparent 70%),
        var(--bg);
    border-radius: var(--radius-lg);
    border: 1.5px dashed var(--border);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 12px; color: #C9C6B4; }

code {
    background: var(--paper-deep);
    padding: 3px 7px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: .85rem;
    color: var(--green-mid);
}

/* ── Scroll reveal (applied by main.js — no markup changes needed) ──────── */
.fa-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1);
    transition-delay: var(--fa-delay, 0ms);
    will-change: opacity, transform;
}
.fa-reveal.fa-in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .fa-reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   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: 34px; }
    .paper-grid { grid-template-columns: 1fr; }
    .quiz-cta-box { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
    .quiz-cta-box ul { align-items: center; }
    .footer-container { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero { padding: 72px 20px 60px; }
}

@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::after { display: none; }
    .nav-links a:hover,
    .nav-links a.active {
        color: var(--green);
        background: transparent;
        border-bottom-color: var(--gold);
    }
    .nav-links .btn-nav {
        background: var(--green);
        color: #fff;
        border-radius: 999px;
        padding: 6px 14px;
        margin: 4px 4px;
        font-size: .75rem;
        border-bottom: none;
    }
    .desktop-only-nav { display: none !important; }

    .section { padding: 56px 16px; }
    .section-header { margin-bottom: 36px; }

    .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
    .form-row { grid-template-columns: 1fr; gap: 12px; }

    .quiz-wrapper { padding: 26px 18px; }
    .auth-card { padding: 28px 20px; }

    .hero { padding: 60px 18px 52px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn { width: 100%; }

    .note-card { flex-direction: column; align-items: flex-start; gap: 12px; }
    .note-card:hover { transform: translateY(-3px); }
    .mentor-features { flex-direction: column; align-items: stretch; }
    .mentor-feat { justify-content: center; }

    .footer-container { grid-template-columns: 1fr; gap: 26px; }

    #stickyContact { gap: 8px; padding: 8px 12px; font-size: .85rem; }
    #stickyContact > span { display: none; }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Permanently Visible)
   ========================================================================== */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 13px 24px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 18px rgba(37, 211, 102, .42);
    z-index: 9999;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: transform .25s var(--ease-spring), box-shadow .25s ease;
}

.floating-contact:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 12px 28px rgba(37, 211, 102, .55);
    color: #fff;
}

@media (max-width: 640px) {
    .floating-contact {
        bottom: 40px;
        right: 20px;
        padding: 16px;
        border-radius: 50%;
    }
    .floating-contact .contact-text { display: none; }
    .floating-contact svg { width: 28px; height: 28px; }
}

/* ═══ Dashboard: Subject Pie Grid (compact reading progress) ═══ */
.subject-pie-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 10px;
}

.subject-pie {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    transition: transform .2s var(--ease-spring), box-shadow .2s ease, border-color .2s ease;
}

.subject-pie:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: rgba(217,163,60,.5);
}

.pie-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pie-hole {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 800;
    color: var(--text);
}

.pie-label {
    font-size: .74rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.pie-count { font-size: .7rem; color: var(--text-muted); font-weight: 600; }

@media (max-width: 992px) { .subject-pie-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .subject-pie-grid { grid-template-columns: repeat(2, 1fr); } }
