/* =========================================================
   NEW THEME · Editorial SaaS / Premium Education
   Keeps existing class names, upgrades visual system
========================================================= */

:root,
[data-theme="light"] {
    --font: "Inter", "Segoe UI", Arial, sans-serif;

    --wrap: min(1180px, calc(100% - 32px));

    --tx-xs: 0.78rem;
    --tx-sm: 0.94rem;
    --tx-base: 1rem;
    --tx-lg: 1.2rem;

    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-7: 1.75rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;

    --r-sm: 0.5rem;
    --r-md: 0.85rem;
    --r-lg: 1.15rem;
    --r-xl: 1.5rem;
    --r-2xl: 1.9rem;
    --r-full: 999px;

    --bg: #f6f4ef;
    --surface: #fdfcf9;
    --surface-2: #ffffff;
    --surface-3: #f1ede6;
    --text: #1f2933;
    --text-muted: #5f6b76;
    --text-faint: #8f98a1;

    --primary: #0d6b63;
    --primary-h: #0a564f;
    --primary-tint: #dceeea;
    --primary-hl: #e8f5f2;
    --primary-glow: rgba(13, 107, 99, 0.16);

    --green: #2f7d4a;
    --success: #2f7d4a;
    --success-hl: #dff1e5;

    --warning: #9a5b19;
    --warning-hl: #f8e8d1;

    --danger: #c54c4c;
    --danger-hl: #f9e1e1;

    --blue-soft: #e1ecfb;
    --violet-soft: #ece6fb;
    --rose-soft: #f8e4ea;
    --gold-soft: #f8efcf;
    --mint-soft: #def2ea;

    --border: rgba(31, 41, 51, 0.10);
    --divider: rgba(31, 41, 51, 0.08);

    --sh-xs: 0 8px 18px rgba(25, 35, 45, 0.04);
    --sh-sm: 0 14px 34px rgba(25, 35, 45, 0.06);
    --sh-md: 0 22px 52px rgba(25, 35, 45, 0.09);
    --sh-lg: 0 28px 70px rgba(25, 35, 45, 0.12);

    --ease: 220ms cubic-bezier(.16, 1, .3, 1);
    --h-nav: 82px;
}

[data-theme="dark"] {
    --bg: #141715;
    --surface: #191d1b;
    --surface-2: #202522;
    --surface-3: #262d29;
    --text: #edf2ef;
    --text-muted: #b0bbb5;
    --text-faint: #7f8a84;

    --primary: #63b8aa;
    --primary-h: #469889;
    --primary-tint: rgba(99, 184, 170, 0.12);
    --primary-hl: rgba(99, 184, 170, 0.16);
    --primary-glow: rgba(99, 184, 170, 0.18);

    --green: #78c08d;
    --success: #78c08d;
    --success-hl: rgba(120, 192, 141, 0.14);

    --warning: #e2b76d;
    --warning-hl: rgba(226, 183, 109, 0.14);

    --danger: #ea8d8d;
    --danger-hl: rgba(234, 141, 141, 0.14);

    --blue-soft: rgba(128, 170, 235, 0.12);
    --violet-soft: rgba(151, 138, 225, 0.12);
    --rose-soft: rgba(227, 149, 175, 0.12);
    --gold-soft: rgba(212, 184, 95, 0.12);
    --mint-soft: rgba(99, 184, 170, 0.12);

    --border: rgba(255, 255, 255, 0.10);
    --divider: rgba(255, 255, 255, 0.06);

    --sh-xs: 0 8px 16px rgba(0, 0, 0, 0.18);
    --sh-sm: 0 16px 32px rgba(0, 0, 0, 0.24);
    --sh-md: 0 22px 48px rgba(0, 0, 0, 0.32);
    --sh-lg: 0 28px 70px rgba(0, 0, 0, 0.38);
}

/* ── Shared Layout Helpers ─────────────────────────── */
.wrap {
    width: var(--wrap);
    margin-inline: auto;
}

.section {
    padding-block: clamp(4rem, 7vw, 6.5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .95rem;
    border-radius: var(--r-full);
    font-size: var(--tx-xs);
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-tint);
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
    margin-bottom: var(--sp-4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}

.eyebrow svg {
    flex-shrink: 0;
}

.sec-head {
    max-width: 46rem;
}

.sec-head h2 {
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.08;
    color: var(--text);
    margin-bottom: var(--sp-3);
}

.sec-head p {
    font-size: var(--tx-base);
    color: var(--text-muted);
    max-width: 58ch;
    line-height: 1.75;
}

/* scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ── HERO ───────────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4.5rem, 8vw, 7.5rem);
    background:
        radial-gradient(circle at 12% 22%, rgba(13,107,99,.09), transparent 26%),
        radial-gradient(circle at 88% 16%, rgba(201,168,103,.10), transparent 24%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent 80%),
        var(--bg);
    border-bottom: 1px solid var(--divider);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(127, 138, 132, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(127, 138, 132, 0.05) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 88%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
    gap: clamp(2rem, 5vw, 4.2rem);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .55rem 1rem .55rem .7rem;
    border-radius: var(--r-full);
    font-size: var(--tx-xs);
    font-weight: 800;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    margin-bottom: var(--sp-5);
    box-shadow: var(--sh-xs);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 15%, transparent);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 16%, transparent); }
    50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--green) 4%, transparent); }
}

.hero-title {
    font-size: clamp(2.55rem, 4.6vw, 4.35rem);
    font-weight: 900;
    letter-spacing: -.05em;
    line-height: 1.02;
    color: var(--text);
    margin-bottom: var(--sp-5);
    max-width: 11ch;
}

.hero-title span {
    color: var(--primary);
    position: relative;
}

.hero-title span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: .08em;
    width: 100%;
    height: .24em;
    background: color-mix(in srgb, var(--primary) 20%, transparent);
    z-index: -1;
    border-radius: 999px;
}

.hero-sub {
    font-size: 1.04rem;
    color: var(--text-muted);
    max-width: 54ch;
    line-height: 1.8;
    margin-bottom: var(--sp-8);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-bottom: var(--sp-8);
}

.btn-prim,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 3.3rem;
    padding-inline: 1.45rem;
    border-radius: var(--r-full);
    font-size: var(--tx-sm);
    font-weight: 800;
    color: #fff;
    background: var(--primary);
    border: 1px solid transparent;
    box-shadow: 0 14px 28px var(--primary-glow);
    transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.btn-prim:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    background: var(--primary-h);
    box-shadow: 0 20px 34px var(--primary-glow);
}

.btn-prim:active,
.btn-submit:active {
    transform: translateY(0);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 3.3rem;
    padding-inline: 1.3rem;
    border-radius: var(--r-full);
    font-size: var(--tx-sm);
    font-weight: 700;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    box-shadow: var(--sh-xs);
    transition: background var(--ease), transform var(--ease), border-color var(--ease), color var(--ease);
}

.btn-ghost:hover {
    background: var(--primary-tint);
    border-color: color-mix(in srgb, var(--primary) 22%, transparent);
    color: var(--primary);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    padding-top: .35rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding-right: var(--sp-5);
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: .25rem;
    right: 0;
    width: 1px;
    height: 2.3rem;
    background: var(--divider);
}

.stat-num {
    font-size: clamp(1.7rem, 2.8vw, 2.45rem);
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--text);
    line-height: 1;
}

.stat-num span {
    color: var(--primary);
}

.stat-lbl {
    font-size: var(--tx-xs);
    color: var(--text-faint);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Hero card stack */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-stack {
    position: relative;
    width: 100%;
    max-width: 430px;
}

.card-stack::before,
.card-stack::after {
    content: "";
    position: absolute;
    inset: auto 22px -14px 22px;
    height: 100%;
    border-radius: calc(var(--r-xl) + 4px);
    background: color-mix(in srgb, var(--surface-2) 80%, var(--primary-tint));
    border: 1px solid var(--border);
    z-index: 0;
}

.card-stack::after {
    inset: auto 40px -28px 40px;
    opacity: .7;
}

.mockcard {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 86%, var(--primary-tint)));
    border: 1px solid var(--border);
    border-radius: var(--r-2xl);
    box-shadow: var(--sh-md);
    padding: var(--sp-6);
    overflow: hidden;
}

.mockcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 42%);
    pointer-events: none;
}

.mockcard-top {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}

.mockcard-icon {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 1rem;
    background: var(--primary-hl);
    display: grid;
    place-items: center;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
}

.mockcard-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.mockcard-sub {
    font-size: var(--tx-xs);
    color: var(--text-faint);
    margin-top: .15rem;
}

.progress-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prog-item label {
    display: flex;
    justify-content: space-between;
    font-size: var(--tx-xs);
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: .42rem;
}

.prog-track {
    height: 8px;
    background: color-mix(in srgb, var(--text) 7%, transparent);
    border-radius: var(--r-full);
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: var(--r-full);
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 72%, #d4bb78));
    transition: width 1.2s cubic-bezier(.16,1,.3,1);
    width: 0%;
}

.float-badge {
    position: absolute;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 1.15rem;
    box-shadow: var(--sh-sm);
    padding: .82rem 1.05rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: var(--tx-xs);
    font-weight: 800;
    color: var(--text);
    animation: floatY 4.2s ease-in-out infinite;
    z-index: 3;
}

@keyframes floatY {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.float-badge.badge-a {
    top: -1rem;
    right: -1rem;
    animation-delay: .4s;
}

.float-badge.badge-b {
    bottom: -1rem;
    left: -1rem;
    animation-delay: 1.2s;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
}

.badge-dot.red {
    background: var(--danger);
}

/* ── EXAM PILLS ─────────────────────────────────────── */
.exam-pills-wrap {
    padding-block: clamp(1.4rem, 3vw, 2.2rem);
    border-bottom: 1px solid var(--divider);
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.exam-pills-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: center;
    justify-content: center;
}

.ep {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .48rem .95rem;
    border-radius: var(--r-full);
    font-size: var(--tx-xs);
    font-weight: 800;
    letter-spacing: .05em;
    border: 1px solid transparent;
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    cursor: default;
    white-space: nowrap;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.ep:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.ep-lsat  { background: var(--violet-soft); color: #5942a8; border-color: rgba(89,66,168,.15); }
.ep-lnat  { background: var(--rose-soft); color: #9d4f66; border-color: rgba(157,79,102,.16); }
.ep-gre   { background: var(--blue-soft); color: #2b5f9e; border-color: rgba(43,95,158,.16); }
.ep-gmat  { background: var(--mint-soft); color: #1f6b57; border-color: rgba(31,107,87,.16); }
.ep-ielts { background: var(--gold-soft); color: #8b6118; border-color: rgba(139,97,24,.18); }
.ep-toefl { background: color-mix(in srgb, var(--primary-tint) 82%, white); color: var(--primary); border-color: rgba(13,107,99,.16); }
.ep-cat   { background: #efe8dc; color: #735633; border-color: rgba(115,86,51,.16); }
.ep-act   { background: #f6e8e7; color: #9b5a56; border-color: rgba(155,90,86,.16); }
.ep-mcat  { background: #e5f0ee; color: #32665c; border-color: rgba(50,102,92,.16); }
.ep-sat   { background: #ebe8f7; color: #584e97; border-color: rgba(88,78,151,.16); }
.ep-pte   { background: #f7ece4; color: #9b653d; border-color: rgba(155,101,61,.16); }
.ep-oet   { background: #e4f2ed; color: #336a58; border-color: rgba(51,106,88,.16); }

/* ── EXAM STRIP ─────────────────────────────────────── */
.exam-strip {
    background: linear-gradient(90deg, var(--primary-h), var(--primary));
    padding: .95rem 0;
    overflow: hidden;
    position: relative;
}

.exam-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 40px 100%;
    pointer-events: none;
}

.strip-track {
    display: flex;
    gap: var(--sp-8);
    align-items: center;
    white-space: nowrap;
    animation: marquee 28s linear infinite;
    width: max-content;
}

.strip-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.strip-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.92);
    font-size: var(--tx-sm);
    font-weight: 700;
    padding: 0 var(--sp-4);
    border-right: 1px solid rgba(255,255,255,.15);
    flex-shrink: 0;
}

.strip-item .new-tag {
    font-size: var(--tx-xs);
    background: rgba(255,255,255,.16);
    padding: .16rem .5rem;
    border-radius: var(--r-full);
    font-weight: 800;
    letter-spacing: .04em;
}

.strip-sep {
    color: rgba(255,255,255,.25);
    font-size: .9rem;
}

/* ── LATEST NEWS ────────────────────────────────────── */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 32px;
    align-items: stretch;
}

.news-card {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    box-shadow: var(--sh-xs);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    overflow: hidden;
    cursor: pointer;
}

.news-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #d5b36a));
    opacity: .9;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--sh-md);
    border-color: color-mix(in srgb, var(--primary) 24%, transparent);
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
    font-weight: 700;
}

.priority-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex: 0 0 8px;
    background: var(--text-faint);
}

.priority-dot.high { background: var(--danger); }
.priority-dot.medium { background: var(--primary); }
.priority-dot.low { background: var(--green); }

.news-title {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 52px;
}

.news-body {
    margin: 0;
    font-size: .93rem;
    line-height: 1.78;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
    min-height: 102px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.news-link svg {
    transition: transform .25s ease;
}

.news-card:hover .news-link svg {
    transform: translateX(4px);
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    font-size: 14px;
    border: 1px dashed var(--border);
    border-radius: 22px;
    background: var(--surface);
}

/* Large tablet */
@media (max-width: 1199px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .news-card {
        padding: 18px;
        border-radius: 18px;
    }

    .news-title {
        font-size: 1rem;
        min-height: auto;
    }

    .news-body {
        -webkit-line-clamp: 3;
        min-height: auto;
    }
}

.story-card {
    height: 100%;
}

/* ── EXPERTISE ──────────────────────────────────────── */
.exp-grid,
.exp-static-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px,100%),1fr));
    gap: var(--sp-5);
    margin-top: var(--sp-8);
}

.exp-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
    box-shadow: var(--sh-xs);
    transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 55%);
    opacity: 0;
    transition: opacity var(--ease);
    pointer-events: none;
}

.exp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}

.exp-card:hover::before {
    opacity: 1;
}

.exp-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    background: var(--primary-hl);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.exp-name {
    font-size: var(--tx-base);
    font-weight: 800;
    color: var(--text);
}

.exp-desc {
    font-size: var(--tx-xs);
    color: var(--text-muted);
    line-height: 1.7;
    flex-grow: 1;
}

.exp-tag {
    display: inline-flex;
    align-items: center;
    font-size: var(--tx-xs);
    font-weight: 800;
    color: var(--primary);
    padding: .28rem .7rem;
    background: var(--primary-tint);
    border-radius: var(--r-full);
    border: 1px solid color-mix(in srgb, var(--primary) 14%, transparent);
    align-self: flex-start;
}

/* ── CONTACT SECTION ────────────────────────────────── */
.contact-section {
    background:
        radial-gradient(circle at 100% 0%, rgba(13,107,99,.07), transparent 28%),
        var(--surface);
    border-top: 1px solid var(--divider);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
    margin-top: var(--sp-10);
}

.postcard {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 92%, #18352f), #10231f);
    color: #fff;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--sh-md);
    position: sticky;
    top: calc(var(--h-nav) + 1.5rem);
}

.postcard-illustration {
    width: 100%;
    display: block;
    background: rgba(255,255,255,.03);
    position: relative;
    overflow: hidden;
}

.postcard-illustration::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 38px 100%;
    pointer-events: none;
}

.postcard-illustration-link {
    display: block;
    width: 100%;
    line-height: 0;
    text-decoration: none;
}

.postcard-illustration-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    opacity: .94;
}

.postcard-body {
    padding: 24px;
}

.postcard-title {
    font-size: var(--tx-lg);
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: var(--sp-2);
    color: #fff;
}

.postcard-desc {
    font-size: var(--tx-sm);
    color: rgba(255,255,255,.76);
    line-height: 1.75;
    margin-bottom: var(--sp-5);
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.ci-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    font-size: var(--tx-sm);
    color: rgba(255,255,255,.78);
}

.ci-icon {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .95rem;
    background: rgba(255,255,255,.10);
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}

.ci-text strong {
    display: block;
    color: #fff;
    font-weight: 700;
    font-size: var(--tx-xs);
    margin-bottom: .2rem;
}

.ci-text span {
    font-size: var(--tx-xs);
    color: rgba(255,255,255,.72);
}

.enquiry-form-wrap {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: var(--sp-8);
    box-shadow: var(--sh-sm);
}

.form-head {
    margin-bottom: var(--sp-6);
}

.form-head h3 {
    font-size: var(--tx-lg);
    font-weight: 900;
    color: var(--text);
    letter-spacing: -.03em;
}

.form-head p {
    font-size: var(--tx-sm);
    color: var(--text-muted);
    margin-top: var(--sp-2);
    line-height: 1.7;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: .48rem;
    margin-bottom: var(--sp-4);
}

.f-group label {
    font-size: var(--tx-xs);
    font-weight: 800;
    color: var(--text);
    letter-spacing: .05em;
    text-transform: uppercase;
}

.f-group label span {
    color: var(--danger);
    margin-left: .2rem;
}

.f-input,
.f-select,
.f-textarea {
    width: 100%;
    padding: .92rem 1rem;
    border-radius: .95rem;
    font-size: var(--tx-sm);
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    outline: none;
    transition: border-color var(--ease), box-shadow var(--ease), background var(--ease), transform var(--ease);
    font-family: var(--font);
}

.f-input::placeholder,
.f-textarea::placeholder {
    color: var(--text-faint);
}

.f-input:focus,
.f-select:focus,
.f-textarea:focus {
    border-color: color-mix(in srgb, var(--primary) 65%, transparent);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--surface-2);
}

.f-textarea {
    resize: vertical;
    min-height: 132px;
    line-height: 1.65;
}

.f-select {
    appearance: none;
    cursor: pointer;
}

.form-success {
    text-align: center;
    padding: var(--sp-10) var(--sp-4);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-4);
}

.success-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--success-hl);
    display: grid;
    place-items: center;
    color: var(--green);
}

.form-success h3 {
    font-size: var(--tx-lg);
    font-weight: 900;
    color: var(--text);
}

.form-success p {
    font-size: var(--tx-sm);
    color: var(--text-muted);
    max-width: 34ch;
}

.error-list {
    background: var(--danger-hl);
    border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.error-list p {
    font-size: var(--tx-xs);
    color: var(--danger);
    font-weight: 700;
    margin-bottom: .35rem;
}

.error-list p:last-child {
    margin-bottom: 0;
}

/* ── STORIES ────────────────────────────────────────── */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 24px;
}

.story-link-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--sh-xs);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.story-link-wrap:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

.story-media {
    aspect-ratio: 16/9;
    background: var(--surface-3);
    overflow: hidden;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-media-fallback,
.story-avatar {
    display: grid;
    place-items: center;
    font-weight: 700;
}

.story-media-fallback {
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: var(--text-muted);
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    flex: 1;
}

.story-top,
.story-meta,
.story-author {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    background: var(--primary-tint);
    color: var(--primary);
}

.story-title {
    font-size: 1.12rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text);
}

.story-quote {
    color: var(--text-muted);
    line-height: 1.78;
    margin: 0;
    flex-grow: 1;
}

.story-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--text);
    color: var(--surface-2);
    flex-shrink: 0;
}

.story-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-info .name {
    font-weight: 700;
    color: var(--text);
}

.story-info .exam,
.story-date {
    font-size: .88rem;
    color: var(--text-muted);
}

.story-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--primary);
}

/* ═════════════════════════════════════
   SECTION 4 · OUR EXPERTISE
═════════════════════════════════════ */
.expertise-section {
    position: relative;
}

.expertise-main-box {
    margin-top: 34px;
    padding: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 90%, var(--primary-tint)));
    border: 1px solid var(--border);
    box-shadow: var(--sh-sm);
}

.expertise-box-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.expertise-mini-card {
    min-height: 185px;
    padding: 22px 20px;
    border-radius: 20px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    box-shadow: var(--sh-xs);
    border: 1px solid transparent;
}

.expertise-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-md);
    border-color: rgba(255,255,255,.2);
}

.expertise-box-title {
    margin: 0 0 12px;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;
    color: var(--text);
}

.expertise-box-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.expertise-box-link:hover {
    color: var(--primary);
}

.expertise-box-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 4px;
    border-radius: 6px;
}

.expertise-box-desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: color-mix(in srgb, var(--text) 82%, var(--text-muted));
}

/* individual colors */
.card-lsat  { background: linear-gradient(180deg, #ede9fe, #ddd7f9); }
.card-lnat  { background: linear-gradient(180deg, #f7e4e2, #f3d2ce); }
.card-gre   { background: linear-gradient(180deg, #deecfb, #cfe1f7); }
.card-gmat  { background: linear-gradient(180deg, #def3e5, #cdebd8); }
.card-ielts { background: linear-gradient(180deg, #fbf0d3, #f5e1ac); }
.card-toefl { background: linear-gradient(180deg, #f4e7f7, #e9d6f0); }
.card-mcat  { background: linear-gradient(180deg, #dcf3f1, #c7ebea); }
.card-cat   { background: linear-gradient(180deg, #f9e5e6, #f3d0d3); }

[data-theme="dark"] .card-lsat,
[data-theme="dark"] .card-lnat,
[data-theme="dark"] .card-gre,
[data-theme="dark"] .card-gmat,
[data-theme="dark"] .card-ielts,
[data-theme="dark"] .card-toefl,
[data-theme="dark"] .card-mcat,
[data-theme="dark"] .card-cat {
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border-color: var(--border);
}

/* ── Pricing Section ───────────────────────────────── */
.pricing-section {
    background: var(--bg);
}

.pricing-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin: 0 auto 40px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 5px;
    width: fit-content;
    box-shadow: var(--sh-xs);
}

.ptog-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all 180ms ease;
}

.ptog-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 18px var(--primary-glow);
}

.save-badge {
    background: var(--gold-soft);
    color: var(--warning);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 9999px;
}

.ptog-btn.active .save-badge {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.pricing-grid {
    width: 33%;
}

.plans-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

.plans-group.hidden {
    display: none;
}

.plan-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
    box-shadow: var(--sh-xs);
}

.plan-card:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-4px);
}

.plan-featured {
    border-color: color-mix(in srgb, var(--primary) 34%, transparent);
    box-shadow: 0 18px 44px var(--primary-glow);
}

.plan-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 16px;
    border-radius: 9999px;
    white-space: nowrap;
}

.plan-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.plan-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 14px;
    background: var(--primary-hl);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.plan-name {
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
}

.plan-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.6;
}

.plan-price-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-original {
    font-size: 13px;
    color: var(--text-faint);
    text-decoration: line-through;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.plan-currency {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 4px;
}

.plan-amount {
    font-size: 42px;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    letter-spacing: -.04em;
}

.plan-period {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.plan-billed-note {
    font-size: 12px;
    color: var(--text-muted);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 0;
    margin: 0;
}

.pf-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.65;
}

.pf-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--success-hl);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.plan-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    margin-top: auto;
    transition: all 180ms ease;
}

.plan-cta-primary {
    background: var(--primary);
    color: #fff;
}

.plan-cta-primary:hover {
    background: var(--primary-h);
}

.plan-cta-ghost {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid color-mix(in srgb, var(--primary) 50%, transparent);
}

.plan-cta-ghost:hover {
    background: var(--primary-hl);
}

.pricing-note {
    text-align: center;
    margin-top: 28px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1199px) {
    .expertise-box-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .expertise-main-box {
        padding: 22px;
    }

    .expertise-box-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: 13ch;
    }

    .hero-visual {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .postcard {
        position: static;
    }
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        gap: var(--sp-5);
    }

    .stat-item {
        padding-right: 0;
    }

    .stat-item::after {
        display: none;
    }

    .enquiry-form-wrap {
        padding: var(--sp-5);
    }

    .sec-head h2 {
        font-size: 1.7rem;
    }

    .stories-grid {
        grid-template-columns: 1fr;
    }

    .exam-pills-inner {
        gap: .45rem;
    }

    .pricing-toggle-wrap {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 8px;
    }

    .ptog-btn {
        width: 100%;
        justify-content: center;
    }

    .plan-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
}

@media (max-width: 575px) {
    .expertise-main-box {
        padding: 18px;
        border-radius: 20px;
    }

    .expertise-box-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .expertise-mini-card {
        min-height: auto;
        padding: 18px 16px;
        border-radius: 16px;
    }

    .hero {
        padding-block: 4rem 5rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-prim,
    .btn-ghost,
    .btn-submit {
        width: 100%;
    }
}