/* ============================================================
   FDTRC SCHOOL — Dark Editorial Theme
   Palette inspired by dark data-dashboard aesthetics:
   ink navy base, warm cream text, cyan/amber/rust accents
   ============================================================ */

:root {
    /* base layers */
    --ink-page:   #040C16;
    --ink-panel:  #07101D;
    --ink-field:  #08101C;
    --ink-raised: #0A1424;

    /* text */
    --cream:      #FAF8F4;
    --text-soft:  rgba(200, 225, 255, .78);
    --text-mute:  rgba(200, 225, 255, .66);
    --text-faint: rgba(200, 225, 255, .55);

    /* accents */
    --cyan:   #00C8E8;
    --cyan-soft: rgba(0, 200, 232, .12);
    --amber:  #FAA80F;
    --rust:   #C0572A;

    /* hairlines */
    --line-soft: rgba(200, 225, 255, .06);
    --line-mid:  rgba(200, 225, 255, .12);
    --line-bright: rgba(200, 225, 255, .22);

    /* type */
    --font-head: "Playfair Display", Georgia, serif;
    --font-body: "Barlow", system-ui, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;

    --radius: 16px;
    --ease-out: cubic-bezier(.6, .6, 0, 1);
}

/* ---------- base ---------- */

html { scroll-behavior: smooth; }

body.fdtrc-dark {
    background-color: var(--ink-page);
    color: var(--text-soft);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.fdtrc-dark a { color: var(--cyan); text-decoration: none; transition: color .25s var(--ease-out); }
.fdtrc-dark a:hover { color: #5ee5fa; }

.fdtrc-dark img { max-width: 100%; }

.fdtrc-dark ::selection { background: rgba(0, 200, 232, .3); color: var(--cream); }

.fdtrc-dark h1, .fdtrc-dark h2, .fdtrc-dark h3, .fdtrc-dark h4 {
    color: var(--cream);
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: -.01em;
}

/* ---------- generic section bits ---------- */

.fd-section { position: relative; padding: 96px 0; }
.fd-section--tight { padding: 64px 0; }

.fd-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px;
    text-transform: uppercase; letter-spacing: .18em;
    color: var(--amber); margin-bottom: 18px;
}
.fd-eyebrow::before {
    content: ""; width: 28px; height: 1px; background: var(--amber); display: inline-block;
}

.fd-title { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.15; margin-bottom: 18px; }

.fd-lead { color: var(--text-mute); font-size: 17px; max-width: 640px; }

.fd-center { text-align: center; }
.fd-center .fd-lead { margin-left: auto; margin-right: auto; }
.fd-center .fd-eyebrow::before { display: none; }
.fd-center .fd-eyebrow::after {
    content: ""; width: 28px; height: 1px; background: var(--amber); display: inline-block;
}

/* ---------- topbar ---------- */

.fd-topbar {
    background: rgba(7, 16, 29, .9);
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--text-faint);
    position: relative; z-index: 50;
}
.fd-topbar .fd-topbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 8px 0; flex-wrap: wrap;
}
.fd-topbar a { color: var(--text-mute); }
.fd-topbar a:hover { color: var(--cyan); }
.fd-topbar i { color: var(--cyan); margin-right: 6px; }
.fd-topbar-item { white-space: nowrap; }

.fd-pill-open {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cyan-soft); color: var(--cyan) !important;
    border: 1px solid rgba(0, 200, 232, .35);
    border-radius: 999px; padding: 3px 14px;
    font-family: var(--font-mono); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .14em;
}
.fd-pill-open .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cyan); animation: fdPulse 2s infinite;
}

/* ---------- navbar ---------- */

.fd-navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(4, 12, 22, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.fd-navbar.is-scrolled {
    background: rgba(4, 12, 22, .92);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.fd-brand { display: flex; align-items: center; gap: 12px; }
.fd-brand img.fd-logo { height: 46px; width: 46px; border-radius: 50%; border: 1px solid var(--line-mid); }
.fd-brand img.fd-wordmark { height: 30px; width: auto; }
.fd-brand-name {
    font-family: var(--font-head); font-weight: 700; font-size: 21px;
    color: var(--cream); line-height: 1.1;
}
.fd-brand-sub {
    font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-faint);
}

.fd-navbar .navbar-nav .nav-link,
.fd-navbar .nav-item > .nav-link {
    color: var(--text-soft);
    font-weight: 500; font-size: 15px;
    padding: 10px 12px !important;
    position: relative;
}
.fd-navbar .nav-link::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px;
    height: 1px; background: var(--amber);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s ease;
}
.fd-navbar .nav-link:hover { color: var(--cream); }
.fd-navbar .nav-link:hover::after { transform: scaleX(1); }
.fd-navbar .nav-link.active { color: var(--cyan); }
.fd-navbar .nav-link.active::after { transform: scaleX(1); background: var(--cyan); }
.fd-navbar .nav-link.active .fd-dd-ic { color: var(--cyan); }
.fd-navbar .dropdown-item.active, .fd-navbar .dropdown-item:active {
    background: rgba(0, 200, 232, .1); color: var(--cyan);
}
.fd-navbar .fd-dd-ic {
    font-size: 9.5px; margin-left: 7px; vertical-align: 2px;
    color: var(--text-faint);
    transition: transform .3s var(--ease-out), color .3s;
    display: inline-block;
}
.fd-navbar .nav-item.dropdown:hover .fd-dd-ic,
.fd-navbar .dropdown-toggle.show .fd-dd-ic {
    color: var(--cyan); transform: rotate(180deg);
}

.fd-navbar .dropdown-menu {
    background: var(--ink-panel);
    border: 1px solid var(--line-mid);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
    padding: 8px;
    margin-top: 10px;
}
.fd-navbar .dropdown-item {
    color: var(--text-soft); font-size: 14.5px;
    border-radius: 8px; padding: 9px 14px;
    display: flex; align-items: center;
}
.fd-navbar .dropdown-item i {
    width: 18px; margin-right: 10px; font-size: 12px;
    color: var(--cyan); text-align: center; flex: 0 0 18px;
}
.fd-navbar .dropdown-item:hover { background: rgba(0, 200, 232, .08); color: var(--cyan); }
.fd-navbar .dropdown-item:hover i { color: var(--amber); }
.fd-navbar .dropdown-divider { border-color: var(--line-mid); }

.fd-navbar .navbar-toggler {
    border: 1px solid var(--line-mid); color: var(--cream);
    padding: 6px 10px; font-size: 18px;
}
.fd-navbar .navbar-toggler:focus { box-shadow: 0 0 0 2px rgba(0, 200, 232, .35); }

.fd-nav-actions { display: flex; align-items: center; gap: 10px; }
.fd-mini-btn {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-mute); border: 1px solid var(--line-mid);
    border-radius: 999px; padding: 7px 16px; background: transparent;
    transition: .3s var(--ease-out); cursor: pointer;
}
.fd-mini-btn:hover { color: var(--amber); border-color: rgba(250, 168, 15, .5); }

/* ---------- glowing box button (conic border beam) ---------- */

.fd-glow-box {
    isolation: isolate; overflow: hidden; border-radius: 999px;
    display: inline-block; position: relative;
}
.fd-glow-box .fd-gb-animations,
.fd-glow-box .fd-gb-borders-masker {
    position: absolute; inset: 0; pointer-events: none;
    opacity: 0; transition: opacity .8s ease;
}
.fd-glow-box.fd-glow-always .fd-gb-animations,
.fd-glow-box.fd-glow-always .fd-gb-borders-masker,
.fd-glow-box:hover .fd-gb-animations,
.fd-glow-box:hover .fd-gb-borders-masker { opacity: 1; }

.fd-glow-box .fd-gb-animations *,
.fd-glow-box .fd-gb-borders {
    position: absolute; left: 50%; top: 50%; width: 200%; padding-top: 200%;
    transform: translate(-50%, -50%);
    background-image: conic-gradient(from 0 at 50% 50%,
        rgba(0, 200, 232, .9) 0deg, rgba(0, 200, 232, 0) 60deg,
        rgba(0, 200, 232, 0) 310deg, rgba(0, 200, 232, .9) 360deg);
    background-position: center; background-repeat: no-repeat;
    animation: fdBorderTurn var(--beam-speed, 4s) infinite linear;
}
.fd-glow-box .fd-gb-borders { animation-name: fdBorderTurnT; }

.fd-glow-box .fd-gb-glow { filter: blur(10px); opacity: .35; }

.fd-glow-box .fd-gb-borders-masker {
    border-radius: 999px; padding: 1.5px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}

.fd-glow-btn {
    position: relative; z-index: 1;
    display: inline-flex; align-items: center; gap: 10px;
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(0, 200, 232, .22) 0%, rgba(0, 200, 232, 0) 100%), rgba(255, 255, 255, .05);
    border: 1px solid var(--line-mid);
    border-radius: 999px; color: var(--cream);
    font-weight: 600; font-size: 15px;
    padding: 12px 28px; cursor: pointer;
    transition: .3s var(--ease-out);
}
.fd-glow-btn:hover { color: var(--cream); border-color: rgba(0, 200, 232, .4); }
.fd-glow-btn i { color: var(--cyan); }

@keyframes fdBorderTurn  { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
@keyframes fdBorderTurnT { 0% { transform: translate(-50%, -50%) rotate(0); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }

/* ---------- secondary / ghost buttons ---------- */

.fd-ghost-btn {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--line-bright); border-radius: 999px;
    color: var(--text-soft); font-weight: 500; font-size: 15px;
    padding: 12px 26px; transition: .3s var(--ease-out);
}
.fd-ghost-btn:hover { color: var(--cream); border-color: var(--cyan); background: rgba(0, 200, 232, .06); }

/* ---------- hero ---------- */

.fd-hero {
    position: relative; overflow: hidden;
    padding: 90px 0 70px;
    background:
        radial-gradient(60% 45% at 50% -5%, rgba(0, 200, 232, .10), transparent 60%),
        radial-gradient(40% 35% at 85% 110%, rgba(250, 168, 15, .05), transparent 60%),
        var(--ink-page);
}
/* dot grid — railway style */
.fd-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(200, 225, 255, .08) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
    pointer-events: none;
}
/* sweeping light rays — harness/railway style */
.fd-hero .fd-ray {
    position: absolute; top: -40%; height: 180%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 200, 232, .55), transparent);
    pointer-events: none;
}
.fd-hero .fd-ray--a { left: 18%; animation: fdRaySweep 9s linear infinite; }
.fd-hero .fd-ray--b { left: 52%; animation: fdRaySweep 13s linear infinite 3s; }
.fd-hero .fd-ray--c { left: 84%; animation: fdRaySweep 11s linear infinite 6s; }

@keyframes fdRaySweep {
    0%   { transform: translateY(-30%); opacity: 0; }
    15%  { opacity: 1; }
    60%  { opacity: .7; }
    100% { transform: translateY(60%); opacity: 0; }
}

.fd-hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid var(--line-mid); border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-mute); padding: 7px 18px; margin-bottom: 26px;
}
.fd-hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); animation: fdPulse 2s infinite; }

.fd-hero h1 {
    font-size: clamp(42px, 6.5vw, 76px);
    line-height: 1.04; margin-bottom: 10px;
}
.fd-hero h1 .accent {
    background: linear-gradient(92deg, var(--cyan) 0%, #7ee7f9 45%, var(--amber) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.fd-hero-tag {
    font-family: var(--font-head); font-style: italic;
    color: var(--text-soft); font-size: clamp(17px, 2vw, 21px);
    margin-bottom: 22px;
}
.fd-hero-meta { color: var(--text-faint); font-size: 15px; margin-bottom: 30px; }
.fd-hero-meta i { color: var(--cyan); margin-right: 6px; }

.fd-hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.fd-hero-stats {
    display: flex; gap: 36px; flex-wrap: wrap;
    border-top: 1px solid var(--line-soft);
    margin-top: 44px; padding-top: 26px;
}
.fd-stat .num {
    font-family: var(--font-mono); font-weight: 600;
    font-size: 34px; color: var(--cream); line-height: 1;
}
.fd-stat .num em { color: var(--amber); font-style: normal; }
.fd-stat .lbl {
    font-family: var(--font-mono); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .16em;
    color: var(--text-faint); margin-top: 8px;
}

/* hero visual */
.fd-hero-visual { position: relative; }
.fd-hero-visual .frame {
    position: relative; border-radius: 24px; overflow: hidden;
    border: 1px solid var(--line-mid);
    box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
}
.fd-hero-visual .frame img { display: block; width: 100%; height: 420px; object-fit: cover; }
.fd-hero-visual .frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(200deg, rgba(4, 12, 22, 0) 55%, rgba(4, 12, 22, .65));
}
.fd-hero-visual .halo {
    position: absolute; inset: -8%; z-index: -1;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 200, 232, .16), transparent 70%);
    filter: blur(10px);
    animation: fdHalo 7s ease-in-out infinite alternate;
}
@keyframes fdHalo { from { transform: scale(1); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }

.fd-chip {
    position: absolute; display: flex; align-items: center; gap: 12px;
    background: rgba(7, 16, 29, .9); border: 1px solid var(--line-mid);
    backdrop-filter: blur(10px);
    border-radius: 14px; padding: 12px 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.fd-chip .ic {
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--cyan-soft); color: var(--cyan); font-size: 16px;
}
.fd-chip .t1 { font-family: var(--font-mono); font-size: 13px; color: var(--cream); font-weight: 600; }
.fd-chip .t2 { font-size: 12px; color: var(--text-faint); }
.fd-chip--a { left: -26px; bottom: 34px; animation: fdFloat 5.5s ease-in-out infinite; }
.fd-chip--b { right: -18px; top: 30px; animation: fdFloat 6.5s ease-in-out infinite 1.2s; }

@keyframes fdFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.fd-socials { display: flex; gap: 12px; margin-top: 26px; }
.fd-socials a {
    width: 40px; height: 40px; border-radius: 10px;
    border: 1px solid var(--line-mid);
    display: grid; place-items: center;
    color: var(--text-mute); font-size: 16px;
    transition: .3s var(--ease-out);
}
.fd-socials a:hover { color: var(--cyan); border-color: rgba(0, 200, 232, .45); transform: translateY(-3px); }

/* ---------- notice marquee (railway style) ---------- */

.fd-notice-strip {
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: rgba(0, 200, 232, .04);
    overflow: hidden; position: relative;
}
.fd-notice-strip .track {
    display: flex; gap: 0; width: max-content;
    animation: fdMarquee 38s linear infinite;
}
.fd-notice-strip:hover .track { animation-play-state: paused; }
.fd-notice-strip .item {
    display: inline-flex; align-items: center; gap: 12px;
    white-space: nowrap; padding: 13px 34px;
    color: var(--text-mute); font-size: 14.5px;
}
.fd-notice-strip .item i { color: var(--amber); font-size: 12px; }
.fd-notice-strip .item a { color: var(--cyan); font-weight: 600; margin-left: 8px; }
.fd-notice-label {
    position: absolute; left: 0; top: 0; bottom: 0; z-index: 2;
    display: flex; align-items: center;
    background: var(--amber); color: #201303;
    font-family: var(--font-mono); font-weight: 600; font-size: 12px;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 0 22px;
}
@keyframes fdMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ---------- spotlight cards (magical borders) ---------- */

.fd-spot-zone { position: relative; }

.fd-spot-card {
    position: relative; height: 100%;
    background: linear-gradient(180deg, rgba(169, 163, 194, .16), rgba(169, 163, 194, .04));
    border-radius: var(--radius);
    padding: 1px;                       /* 1px rim = the "border" the light leaks through */
    transition: transform .4s var(--ease-out);
}
.fd-spot-card:hover { transform: translateY(-4px); }
.fd-spot-card .inner {
    position: relative; z-index: 2; height: 100%;
    background: var(--ink-panel); border-radius: calc(var(--radius) - 1px);
    padding: 30px 28px;
    display: flex; flex-direction: column;
}
.fd-spot-card::before, .fd-spot-card::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    opacity: 0; transition: opacity .5s; pointer-events: none;
}
/* soft light ON the card face */
.fd-spot-card::before {
    background: radial-gradient(520px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 200, 232, .07), transparent 40%);
    z-index: 15;
}
/* bright light showing through the 1px rim */
.fd-spot-card::after {
    background: radial-gradient(520px circle at var(--mouse-x) var(--mouse-y),
        rgba(0, 200, 232, .45), transparent 40%);
    z-index: 1;
}
.fd-spot-card:hover::before, .fd-spot-card:hover::after { opacity: 1; }

.fd-spot-card .ic {
    width: 52px; height: 52px; border-radius: 14px;
    display: grid; place-items: center;
    background: var(--cyan-soft); color: var(--cyan);
    font-size: 21px; margin-bottom: 20px;
}
.fd-spot-card h3, .fd-spot-card h5 {
    font-family: var(--font-body); font-weight: 600; font-size: 18px;
    color: var(--cream); margin-bottom: 10px; letter-spacing: 0;
}
.fd-spot-card p { color: var(--text-faint); font-size: 14.5px; margin: 0; }

/* ---------- popular teachers ---------- */

.fd-teacher-card .inner { padding: 0; overflow: hidden; }
.fd-teacher-card .t-photo {
    height: 230px; overflow: hidden; position: relative;
    border-bottom: 1px solid var(--line-soft);
    background: var(--ink-field); cursor: zoom-in;
}
/* blurred backdrop of the same photo fills the frame — full face stays visible */
.fd-teacher-card .t-photo::before {
    content: ""; position: absolute; inset: -12%;
    background-image: var(--img); background-size: cover; background-position: center;
    filter: blur(16px) brightness(.5); transform: scale(1.12);
}
.fd-teacher-card .t-photo img {
    position: relative; z-index: 1;
    width: 100%; height: 100%; object-fit: contain;
    transition: transform .6s var(--ease-out), filter .6s;
}
.fd-teacher-card:hover .t-photo img { transform: scale(1.04); }
.fd-teacher-card .t-photo::after {
    content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(7, 16, 29, .55));
}
.fd-teacher-card h5 { margin: 18px 16px 2px; text-align: center; }
.fd-teacher-card .t-sub {
    color: var(--amber) !important; text-align: center;
    font-family: var(--font-mono); font-size: 11.5px;
    text-transform: uppercase; letter-spacing: .14em;
    margin: 0 16px 4px;
}
.fd-teacher-card .t-qual { text-align: center; font-size: 13px; margin: 0 16px 20px; }

/* ---------- our toppers (podium) ---------- */

.fd-topper-card { overflow: visible; }
.fd-topper-card .inner { padding: 30px 22px 26px; text-align: center; align-items: center; }
.fd-topper-card .rank-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 20;
    font-family: var(--font-mono); font-weight: 600; font-size: 13px;
    border-radius: 999px; padding: 5px 16px;
    border: 1px solid var(--line-mid); background: var(--ink-raised); color: var(--cream);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.fd-topper-card .rank-badge.r1 { background: var(--amber); border-color: var(--amber); color: #201303; }
.fd-topper-card .avatar {
    width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px;
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--cream);
    background:
        linear-gradient(var(--ink-raised), var(--ink-raised)) padding-box,
        linear-gradient(135deg, var(--cyan), rgba(0, 200, 232, .15)) border-box;
    border: 2px solid transparent;
}
.fd-topper-card .crown { color: var(--amber); font-size: 22px; margin-bottom: 8px; animation: fdFloat 4s ease-in-out infinite; }
.fd-topper-card h5 { font-family: var(--font-body); font-size: 17px; margin-bottom: 4px; }
.fd-topper-card .t-class {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em;
    text-transform: uppercase; color: var(--text-faint) !important;
    margin-bottom: 14px !important;
}
.fd-topper-card .t-marks {
    font-family: var(--font-mono); font-weight: 600; font-size: 30px;
    color: var(--cyan); line-height: 1;
    border-top: 1px dashed var(--line-bright); padding-top: 16px; width: 100%;
}
/* rank 1 — gold highlight */
.fd-topper-first {
    background: linear-gradient(180deg, rgba(250, 168, 15, .35), rgba(250, 168, 15, .06));
    box-shadow: 0 24px 60px rgba(250, 168, 15, .08);
}
.fd-topper-first .t-marks { color: var(--amber); }
.fd-topper-first .avatar {
    background:
        linear-gradient(var(--ink-raised), var(--ink-raised)) padding-box,
        linear-gradient(135deg, var(--amber), rgba(250, 168, 15, .2)) border-box;
}

/* ---------- testimonials ---------- */

.fd-testi-card .inner { padding: 30px 26px; }
.fd-testi-card .quote-ic { color: var(--amber); font-size: 24px; margin-bottom: 16px; }
.fd-testi-card .t-quote {
    font-family: var(--font-head); font-style: italic;
    color: var(--text-soft) !important; font-size: 16px; line-height: 1.65;
    margin-bottom: 22px !important; flex-grow: 1;
}
.fd-testi-card .t-by .n { color: var(--cream); font-weight: 600; font-size: 15px; }
.fd-testi-card .t-by .p {
    font-family: var(--font-mono); font-size: 12px; color: var(--text-faint);
    letter-spacing: .08em; margin-top: 4px;
}
.fd-testi-card .t-by .p i { color: var(--cyan); margin-right: 6px; }

/* ---------- about split ---------- */

.fd-about-img { position: relative; }
.fd-about-img img.main {
    width: 100%; height: 460px; object-fit: cover;
    border-radius: 20px; border: 1px solid var(--line-mid);
}
.fd-about-img .years-badge {
    position: absolute; right: -14px; bottom: 32px;
    background: var(--amber); color: #201303;
    border-radius: 16px; padding: 18px 24px; text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
    animation: fdFloat 6s ease-in-out infinite;
}
.fd-about-img .years-badge .n { font-family: var(--font-mono); font-weight: 600; font-size: 34px; line-height: 1; }
.fd-about-img .years-badge .l { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }

.fd-check { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.fd-check li { display: flex; gap: 10px; align-items: baseline; color: var(--text-mute); font-size: 15px; }
.fd-check li i { color: var(--cyan); font-size: 13px; }
.fd-check li .mono { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }

/* ---------- cta band ---------- */

.fd-cta-band {
    position: relative; overflow: hidden;
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    background:
        radial-gradient(80% 140% at 50% 120%, rgba(0, 200, 232, .14), transparent 60%),
        var(--ink-panel);
    padding: 72px 0; text-align: center;
}
.fd-cta-band::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 90px);
    pointer-events: none;
}
.fd-cta-band h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.fd-cta-band p { color: var(--text-mute); max-width: 560px; margin: 0 auto 32px; }
.fd-cta-band .row-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- founder message ---------- */

.fd-founder { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center; }
.fd-founder .photo {
    border-radius: 20px; overflow: hidden; border: 1px solid var(--line-mid);
    position: relative; height: 340px;
}
.fd-founder .photo img { width: 100%; height: 100%; object-fit: cover; }
.fd-founder blockquote {
    font-family: var(--font-head); font-style: italic;
    font-size: clamp(19px, 2.4vw, 25px); line-height: 1.55; color: var(--cream);
    border-left: 3px solid var(--amber); padding-left: 26px; margin: 0 0 22px;
}
.fd-founder .who .n { color: var(--cream); font-weight: 600; font-size: 17px; }
.fd-founder .who .r { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }

/* ---------- facilities split ---------- */

.fd-feat-list { display: grid; gap: 14px; }
.fd-feat-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--ink-panel); border: 1px solid var(--line-soft);
    border-radius: 14px; padding: 18px 20px;
    transition: border-color .3s var(--ease-out), transform .3s var(--ease-out);
}
.fd-feat-item:hover { border-color: rgba(0, 200, 232, .35); transform: translateX(6px); }
.fd-feat-item .ic {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--cyan-soft); color: var(--cyan); font-size: 17px;
}
.fd-feat-item h6 { color: var(--cream); font-family: var(--font-body); font-weight: 600; margin: 2px 0 4px; }
.fd-feat-item p { color: var(--text-faint); font-size: 13.5px; margin: 0; }

.fd-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fd-photo-grid figure {
    position: relative; border-radius: 14px; overflow: hidden;
    border: 1px solid var(--line-mid); margin: 0; height: 180px;
}
.fd-photo-grid figure:first-child { grid-column: 1 / -1; height: 220px; }
.fd-photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.fd-photo-grid figure:hover img { transform: scale(1.06); }
.fd-photo-grid figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 26px 16px 12px; font-size: 13px; color: var(--cream);
    background: linear-gradient(transparent, rgba(4, 12, 22, .9));
    font-family: var(--font-mono); letter-spacing: .06em;
}

/* ---------- stats band ---------- */

.fd-stats-band {
    border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
    background: var(--ink-panel); padding: 56px 0;
}
.fd-stats-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.fd-stats-band .num {
    font-family: var(--font-mono); font-weight: 600;
    font-size: clamp(34px, 4.5vw, 52px); color: var(--cyan); line-height: 1;
}
.fd-stats-band .lbl {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--text-faint); margin-top: 10px;
}

/* ---------- gallery teaser ---------- */

.fd-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fd-gallery-grid a {
    position: relative; display: block; height: 220px;
    border-radius: 14px; overflow: hidden; border: 1px solid var(--line-mid);
}
.fd-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .6s; }
.fd-gallery-grid a:hover img { transform: scale(1.07); filter: brightness(1.08); }
.fd-gallery-grid .cap {
    position: absolute; inset: auto 0 0 0; padding: 30px 16px 14px;
    color: var(--cream); font-size: 13.5px;
    background: linear-gradient(transparent, rgba(4, 12, 22, .88));
}
.fd-gallery-grid .cap i { color: var(--cyan); margin-right: 8px; }

/* ---------- contact cards ---------- */

.fd-contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fd-contact-card {
    background: var(--ink-panel); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 26px 22px; text-align: center;
    transition: border-color .3s, transform .3s var(--ease-out);
}
.fd-contact-card:hover { border-color: rgba(0, 200, 232, .35); transform: translateY(-4px); }
.fd-contact-card .ic {
    width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--cyan-soft); color: var(--cyan); font-size: 19px;
}
.fd-contact-card h6 { color: var(--cream); font-family: var(--font-body); font-weight: 600; margin-bottom: 6px; }
.fd-contact-card p, .fd-contact-card a { color: var(--text-faint); font-size: 14px; margin: 0; display: block; }
.fd-contact-card a:hover { color: var(--cyan); }

/* ---------- footer ---------- */

.fd-footer {
    border-top: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(0, 200, 232, .03), transparent 30%), var(--ink-panel);
    padding: 70px 0 0; position: relative; overflow: hidden;
}
.fd-footer h6 {
    font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--cream); margin-bottom: 20px;
}
.fd-footer .brand-line { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.fd-footer .brand-line img { height: 44px; width: 44px; border-radius: 50%; border: 1px solid var(--line-mid); }
.fd-footer .brand-line .n { font-family: var(--font-head); font-weight: 700; color: var(--cream); font-size: 20px; }
.fd-footer p, .fd-footer li { color: var(--text-faint); font-size: 14.5px; }
.fd-footer ul { list-style: none; padding: 0; margin: 0; }
.fd-footer ul li { margin-bottom: 10px; }
.fd-footer ul a { color: var(--text-faint); position: relative; transition: .25s; }
.fd-footer ul a::before {
    content: ""; display: inline-block; width: 0; height: 1px;
    background: var(--cyan); margin-right: 0; vertical-align: middle;
    transition: .25s var(--ease-out);
}
.fd-footer ul a:hover { color: var(--cyan); }
.fd-footer ul a:hover::before { width: 12px; margin-right: 8px; }
.fd-footer .info li { display: flex; gap: 10px; margin-bottom: 12px; }
.fd-footer .info li i { color: var(--cyan); margin-top: 4px; }
.fd-footer .motto {
    font-family: var(--font-head); font-style: italic;
    color: var(--amber); font-size: 15px; margin-top: 14px;
}
.fd-footer .bottom {
    border-top: 1px solid var(--line-soft); margin-top: 50px;
    padding: 22px 0; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: 12.5px; color: var(--text-faint);
    align-items: center;
}
.fd-legal { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.fd-legal a {
    color: var(--text-faint); padding: 4px 12px; border-radius: 999px;
    border: 1px solid transparent; transition: .25s var(--ease-out);
}
.fd-legal a:hover { color: var(--cyan); border-color: rgba(0, 200, 232, .3); }

/* ---- polish: glowing badge, topper photos, testimonial marquee, footer gold hairline ---- */

.fd-hero-badge {
    border-color: rgba(250, 168, 15, .5);
    background: linear-gradient(90deg, rgba(250, 168, 15, .12), rgba(0, 200, 232, .07));
    box-shadow: 0 0 24px rgba(250, 168, 15, .14);
}
.fd-hero-badge b { color: var(--amber); font-weight: 600; }
html.light-mode .fd-hero-badge { box-shadow: 0 4px 18px rgba(215, 128, 0, .14); }

.fd-topper-card .avatar img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block;
}

.fd-testi-marquee {
    overflow: hidden; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fd-testi-marquee .track {
    display: flex; gap: 22px; width: max-content;
    animation: fdTestiScroll 42s linear infinite;
}
.fd-testi-marquee:hover .track { animation-play-state: paused; }
.fd-testi-item { width: 360px; flex: 0 0 360px; }
.fd-testi-item .fd-testi-card { height: 100%; }
@keyframes fdTestiScroll {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}
@media (max-width: 575px) { .fd-testi-item { width: 82vw; flex-basis: 82vw; } }
@media (prefers-reduced-motion: reduce) {
    .fd-testi-marquee .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.fd-footer .bottom {
    border-top: none; position: relative; padding-top: 24px;
}
.fd-footer .bottom::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber) 25%, var(--amber) 75%, transparent);
}

.fd-edit-hint {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--amber); margin: 0 0 14px;
    display: flex; align-items: center; gap: 14px;
}
.fd-edit-hint a { color: var(--cyan); text-decoration: none; border-bottom: 1px dashed var(--cyan); }
.fd-edit-hint a:hover { color: var(--cyan-strong); }

/* ---- light rays on every page banner (was hero-only) ---- */
.fd-ray {
    position: absolute; top: -40%; height: 180%; width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 200, 232, .55), transparent);
    pointer-events: none;
}
.fd-ray--a { left: 18%; animation: fdRaySweep 9s linear infinite; }
.fd-ray--b { left: 52%; animation: fdRaySweep 13s linear infinite 3s; }
.fd-ray--c { left: 84%; animation: fdRaySweep 11s linear infinite 6s; }

/* full-page rays: fixed behind content, run from top to footer.
   body becomes a stacking context so z-index:-1 rays sit above the body
   background but truly BELOW all normal content (no lines over photos). */
body { position: relative; z-index: 0; }
.fd-page-rays {
    position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
.fd-page-rays .fd-ray { top: -10%; height: 120%; }
html.light-mode .fd-page-rays .fd-ray {
    background: linear-gradient(180deg, transparent, rgba(0, 140, 175, .30), transparent);
}

/* ---- scholarship highlights ---- */
.fd-scholar-free {
    display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap;
    text-align: center; border-radius: var(--radius); padding: 26px 30px; margin: 0 auto 46px; max-width: 920px;
    background: linear-gradient(90deg, rgba(250, 168, 15, .14), rgba(0, 200, 232, .10));
    border: 1px solid rgba(250, 168, 15, .4);
    box-shadow: 0 0 34px rgba(250, 168, 15, .12);
    position: relative; overflow: hidden;
}
.fd-scholar-free::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(250, 168, 15, .12) 50%, transparent 60%);
    animation: fdShine 3.5s linear infinite;
}
.fd-scholar-free > i { font-size: 34px; color: var(--amber); }
.fd-scholar-free h3 { font-family: var(--font-head); color: var(--cream); margin: 0; font-size: clamp(22px, 3vw, 30px); }
.fd-scholar-free h3 b { color: var(--amber); }
.fd-scholar-free p { margin: 0; color: var(--text-mute); font-size: 14.5px; }
.fd-scholar-free .fd-ghost-btn { margin: 0; }

.fd-scholar-callout {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    border: 1px solid rgba(250, 168, 15, .35); border-left: 3px solid var(--amber);
    background: rgba(250, 168, 15, .07); border-radius: 12px;
    padding: 15px 20px; margin: 0 auto 36px; max-width: 920px;
    color: var(--text-mute); font-size: 14.5px;
}
.fd-scholar-callout > i { color: var(--amber); font-size: 22px; flex-shrink: 0; }
.fd-scholar-callout b { color: var(--cream); }
.fd-scholar-callout .accent { color: var(--amber); font-weight: 600; }
.fd-scholar-callout a { color: var(--cyan); margin-left: auto; white-space: nowrap; font-weight: 600; }
.fd-scholar-callout a:hover { color: var(--cyan-strong); }

.fd-topper-card .sch-badge {
    position: absolute; top: 14px; right: 14px; z-index: 3;
    font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em;
    padding: 5px 11px; border-radius: 999px;
    background: var(--cyan); border: 1px solid var(--cyan); color: #02262d;
}
.fd-topper-card .sch-note {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em;
    color: var(--cyan); margin-top: 8px;
}
html.light-mode .fd-scholar-free { box-shadow: 0 8px 26px rgba(215, 128, 0, .14); }
html.light-mode .fd-scholar-callout { background: rgba(215, 128, 0, .06); }
@keyframes fdShine { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* editor: hint that photos are click-to-replace */
#editor img, #editor3 img {
    cursor: copy; outline: 2px dashed transparent; outline-offset: 3px; transition: outline-color .2s;
}
#editor img:hover, #editor3 img:hover { outline-color: rgba(0, 200, 232, .55); }

/* google translate widget — dark topbar pill */
#google_translate_element { display: inline-flex; align-items: center; }
.goog-te-gadget-simple {
    background: rgba(255, 255, 255, .04) !important;
    border: 1px solid var(--line-mid) !important;
    border-radius: 999px !important; padding: 5px 12px !important;
    font-family: var(--font-mono) !important;
    display: inline-flex !important; align-items: center; gap: 6px;
}
.goog-te-gadget-simple img { display: none !important; }
.goog-te-gadget-simple .goog-te-menu-value { color: var(--cyan) !important; text-decoration: none !important; }
.goog-te-gadget-simple .goog-te-menu-value span {
    color: var(--cream) !important; font-size: 12px; letter-spacing: .04em; border: none !important;
}
.goog-te-gadget-simple .goog-te-menu-value span:last-child { color: var(--cyan) !important; }
html.light-mode .goog-te-gadget-simple { background: rgba(255, 255, 255, .8) !important; }
html.light-mode .goog-te-gadget-simple .goog-te-menu-value span { color: #14212b !important; }
html.light-mode .goog-te-gadget-simple .goog-te-menu-value span:last-child { color: #0aa8c4 !important; }

/* google translate injects a top banner that pushes the page down — suppress it */
body { top: 0 !important; margin-top: 0 !important; }
html { margin-top: 0 !important; }
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
div#google_translate_element2 { display: none !important; visibility: hidden !important; height: 0 !important; }
.goog-te-menu-value:hover span { color: var(--cyan) !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

/* custom language selector pill (topbar) */
.fd-lang-sel {
    appearance: none; -webkit-appearance: none;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line-mid); border-radius: 999px;
    color: var(--cream); font-family: var(--font-mono); font-size: 12px;
    padding: 5px 30px 5px 12px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6'%3E%3Cpath d='M1 1l3.5 3.5L8 1' fill='none' stroke='%2300c8e8' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center;
    transition: .25s var(--ease-out);
}
.fd-lang-sel:hover, .fd-lang-sel:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 12px rgba(0, 200, 232, .18); }
.fd-lang-sel option { background: var(--ink-panel); color: var(--cream); }
html.light-mode .fd-lang-sel { background-color: rgba(255, 255, 255, .8); color: #14212b; }
html.light-mode .fd-lang-sel option { background: #fff; color: #14212b; }
.fd-footer .mono-kv b { color: var(--text-soft); font-weight: 500; }

/* ---------- floating enquire ---------- */

.fd-enquire {
    position: fixed; right: 22px; bottom: 22px; z-index: 200;
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--cyan); color: #03242b !important;
    font-weight: 600; font-size: 14.5px;
    border-radius: 999px; padding: 13px 24px;
    box-shadow: 0 14px 40px rgba(0, 200, 232, .35);
    transition: .3s var(--ease-out);
}
.fd-enquire:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 200, 232, .45); }
.fd-enquire .dot { width: 8px; height: 8px; border-radius: 50%; background: #03242b; animation: fdPulse 1.6s infinite; }

.fd-whatsapp-float {
    position: fixed; right: 24px; bottom: 80px; z-index: 200;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: #25D366; color: #fff !important; font-size: 24px;
    box-shadow: 0 14px 40px rgba(37, 211, 102, .4);
    transition: .3s var(--ease-out); text-decoration: none !important;
}
.fd-whatsapp-float::before {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, .5);
    animation: fdPulseRing 2.2s infinite;
}
.fd-whatsapp-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 20px 50px rgba(37, 211, 102, .5); }
@keyframes fdPulseRing {
    0%   { transform: scale(.9); opacity: .8; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
}

/* ---------- scroll reveal (authkit style) ---------- */

[data-fd-reveal] {
    opacity: 0; transform: translateY(26px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 90ms);
}
[data-fd-reveal].is-in { opacity: 1; transform: translateY(0); }

/* ---------- keyframes shared ---------- */

@keyframes fdPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0, 200, 232, .5); }
    70%  { box-shadow: 0 0 0 9px rgba(0, 200, 232, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 200, 232, 0); }
}

/* ---------- modals (dark restyle) ---------- */

.fd-modal .modal-content {
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: 18px; color: var(--text-soft);
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
}
.fd-modal .modal-header { border-bottom: 1px solid var(--line-soft); }
.fd-modal .modal-title { color: var(--cream); font-family: var(--font-head); }
.fd-modal .btn-close { filter: invert(1); opacity: .7; }
.fd-modal .form-control {
    background: var(--ink-field); border: 1px solid var(--line-mid);
    color: var(--cream);
}
.fd-modal .form-control:focus {
    background: var(--ink-field); color: var(--cream);
    border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0, 200, 232, .15);
}
.fd-modal .form-control::placeholder { color: var(--text-faint); }
.fd-modal label { color: var(--text-mute); font-size: 13px; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.fd-modal .logo-circle {
    height: 110px; width: 110px; border-radius: 50%;
    border: 2px solid var(--line-mid); object-fit: cover;
}

/* admin editor mode */
.fd-editor-wrap {
    background: var(--ink-panel); border: 1px dashed rgba(250, 168, 15, .5);
    border-radius: var(--radius); padding: 26px; margin: 30px 0;
    color: var(--text-soft);
}
.fd-editor-wrap [contenteditable] {
    background: var(--ink-field); border-radius: 10px;
    padding: 20px; outline: 1px dashed rgba(0, 200, 232, .35);
    color: var(--text-soft); min-height: 200px;
}
.fd-editor-wrap .btn-success { background: var(--cyan); border-color: var(--cyan); color: #03242b; font-weight: 600; }
.fd-editor-wrap .btn-success:hover { background: #2fd4ef; }

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
    .fd-section { padding: 70px 0; }
    .fd-hero { padding: 60px 0 50px; }
    .fd-hero-visual { margin-top: 40px; }
    .fd-hero-visual .frame img { height: 320px; }
    .fd-founder { grid-template-columns: 1fr; }
    .fd-founder .photo { max-width: 320px; }
    .fd-stats-band .grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
    .fd-contact-grid { grid-template-columns: repeat(2, 1fr); }
    .fd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .fd-navbar .navbar-collapse {
        background: var(--ink-panel); border: 1px solid var(--line-mid);
        border-radius: 14px; padding: 14px; margin-top: 12px;
    }
    .fd-nav-actions { padding: 10px 0 4px; flex-wrap: wrap; }
    .fd-topbar .fd-topbar-item--addr { display: none; }
    .fd-chip--a { left: 6px; }
    .fd-chip--b { right: 6px; }
}

@media (max-width: 575.98px) {
    .fd-check { grid-template-columns: 1fr; }
    .fd-contact-grid, .fd-gallery-grid { grid-template-columns: 1fr; }
    .fd-hero-stats { gap: 22px; }
    .fd-topbar-inner { justify-content: center; }
    .fd-photo-grid { grid-template-columns: 1fr; }
}

/* ---------- page banner (inner pages — different from home hero) ---------- */

.fd-page-banner {
    position: relative; overflow: hidden; text-align: center;
    padding: 84px 0 64px;
    background:
        radial-gradient(55% 90% at 50% 120%, rgba(250, 168, 15, .10), transparent 65%),
        radial-gradient(70% 50% at 50% -20%, rgba(0, 200, 232, .12), transparent 60%),
        var(--ink-panel);
    border-bottom: 1px solid var(--line-soft);
}
.fd-page-banner::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(90deg, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 90px);
    -webkit-mask-image: linear-gradient(180deg, transparent, #000);
    mask-image: linear-gradient(180deg, transparent, #000);
    pointer-events: none;
}
.fd-page-banner .fd-ray { position: absolute; top: -30%; height: 160%; }

/* compact inner-page banner + animated grid lines */
.fd-page-banner--mini { padding: 52px 0 40px; }
.fd-page-banner--mini h1 { font-size: clamp(30px, 4.5vw, 46px); margin: 12px 0 10px; }
.fd-page-banner--mini .fd-lead { font-size: 15.5px; max-width: 600px; }
.fd-page-banner--mini .fd-banner-chips { margin-top: 20px; }

/* animated blueprint grid + gliding lines */
.fd-banner-grid {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
    background-image:
        linear-gradient(var(--line-soft) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 20%, transparent 100%);
}
.fd-banner-grid .scan-x,
.fd-banner-grid .scan-y {
    position: absolute; display: block;
}
/* glowing dash gliding along a horizontal grid line */
.fd-banner-grid .scan-x {
    top: 44px; left: 0; height: 1px; width: 180px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 232, .85), transparent);
    animation: fdScanX 7s linear infinite;
}
.fd-banner-grid .scan-x--2 {
    top: 132px; width: 120px; animation-duration: 11s; animation-delay: 2.5s;
    background: linear-gradient(90deg, transparent, rgba(250, 168, 15, .7), transparent);
}
/* glowing dash gliding down a vertical grid line */
.fd-banner-grid .scan-y {
    left: 66%; top: 0; width: 1px; height: 110px;
    background: linear-gradient(180deg, transparent, rgba(0, 200, 232, .7), transparent);
    animation: fdScanY 9s linear infinite 1s;
}
@keyframes fdScanX { 0% { transform: translateX(-20vw); } 100% { transform: translateX(115vw); } }
@keyframes fdScanY { 0% { transform: translateY(-160%); } 100% { transform: translateY(120vh); } }

.fd-page-banner h1 {
    font-size: clamp(38px, 6vw, 62px); margin: 14px 0 16px;
}
.fd-page-banner h1 .accent {
    background: linear-gradient(92deg, var(--amber), #ffd584 55%, var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.fd-page-banner .fd-lead { max-width: 560px; }

.fd-breadcrumb {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-faint);
    border: 1px solid var(--line-mid); border-radius: 999px;
    padding: 7px 18px; background: rgba(255, 255, 255, .03);
}
.fd-breadcrumb a { color: var(--text-mute); }
.fd-breadcrumb a:hover { color: var(--cyan); }
.fd-breadcrumb i { font-size: 10px; color: var(--amber); }
.fd-breadcrumb span { color: var(--amber); }

.fd-banner-chips { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.fd-banner-chips .chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line-mid); border-radius: 999px;
    background: rgba(7, 16, 29, .7);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
    color: var(--text-mute); padding: 8px 18px;
}
.fd-banner-chips .chip i { color: var(--amber); }

/* ---------- session head ---------- */

.fd-session-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; margin-bottom: 26px;
}
.fd-session-count {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--cyan);
    border: 1px solid rgba(0, 200, 232, .3); border-radius: 999px;
    background: var(--cyan-soft); padding: 6px 16px;
}

/* ---------- topper table ---------- */

.fd-topper-table-wrap {
    background: linear-gradient(180deg, rgba(169, 163, 194, .14), rgba(169, 163, 194, .04));
    border: 1px solid var(--line-mid); border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.fd-topper-table { width: 100%; border-collapse: collapse; }
.fd-topper-table thead th {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .16em; text-transform: uppercase;
    color: var(--text-faint); text-align: left;
    padding: 16px 22px;
    background: rgba(4, 12, 22, .55);
    border-bottom: 1px solid var(--line-mid);
}
.fd-topper-table tbody td {
    padding: 16px 22px; vertical-align: middle;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-soft); font-size: 15px;
    transition: background .25s;
}
.fd-topper-table tbody tr:last-child td { border-bottom: none; }
.fd-topper-table tbody tr:hover td { background: rgba(0, 200, 232, .045); }
.fd-topper-table tbody tr.row-first td { background: rgba(250, 168, 15, .05); }
.fd-topper-table tbody tr.row-first:hover td { background: rgba(250, 168, 15, .09); }

.fd-topper-table .col-rank { width: 90px; }
.fd-topper-table .col-marks { width: 110px; text-align: right; }
.fd-topper-table .col-class { width: 110px; }

.rank-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-weight: 600; font-size: 13px;
    border-radius: 999px; padding: 6px 14px;
    border: 1px solid var(--line-mid); color: var(--text-mute);
    background: var(--ink-raised);
}
.rank-pill.medal-gold   { background: var(--amber); border-color: var(--amber); color: #201303; }
.rank-pill.medal-silver { background: #c9d4e3; border-color: #c9d4e3; color: #1c2a3a; }
.rank-pill.medal-bronze { background: #c98a5a; border-color: #c98a5a; color: #2c1503; }

.t-student { display: flex; align-items: center; gap: 14px; }
.fd-topper-table .t-avatar {
    width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
    border: 2px solid rgba(0, 200, 232, .35); flex: 0 0 46px;
}
.fd-topper-table .t-avatar-init {
    display: grid; place-items: center;
    font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--cream);
    background: var(--ink-raised);
}
.fd-topper-table tr.row-first .t-avatar-init { border-color: rgba(250, 168, 15, .6); }
.fd-topper-table .t-name { color: var(--cream); font-weight: 600; }
.fd-topper-table .col-father { color: var(--text-faint) !important; }
.fd-topper-table .t-score {
    font-family: var(--font-mono); font-weight: 600; font-size: 17px; color: var(--cyan);
}
.fd-topper-table tr.row-first .t-score { color: var(--amber); }

/* keep session-head accents strong inside legacy wrapper */
.fd-session-head .fd-eyebrow { color: var(--amber); }
.fd-session-head .fd-title .accent {
    background: linear-gradient(92deg, var(--amber), #ffd584 55%, var(--cyan));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.fd-session-head .fd-session-count {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--cyan);
    border: 1px solid rgba(0, 200, 232, .3); border-radius: 999px;
    background: var(--cyan-soft); padding: 6px 16px; display: inline-block;
}

@media (max-width: 767.98px) {
    .fd-page-banner { padding: 60px 0 46px; }
    .fd-topper-table thead th, .fd-topper-table tbody td { padding: 12px 14px; font-size: 13.5px; }
    .fd-topper-table .col-father { display: none; }
    .t-avatar { width: 38px; height: 38px; flex-basis: 38px; }
    .fd-topper-table-wrap { overflow-x: auto; }
    .fd-topper-table { min-width: 480px; }
}

/* ---------- achievement cards (DB content) ---------- */

.fd-ach-card {
    height: 100%; overflow: hidden;
    background: var(--ink-panel);
    border: 1px solid var(--line-mid); border-radius: var(--radius);
    transition: transform .4s var(--ease-out), border-color .3s;
}
.fd-ach-card:hover { transform: translateY(-5px); border-color: rgba(0, 200, 232, .4); }
.fd-ach-card .img { height: 210px; overflow: hidden; position: relative; }
.fd-ach-card .img img {
    width: 100% !important; height: 100% !important; object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.fd-ach-card:hover .img img { transform: scale(1.06); }
.fd-ach-card .cap { padding: 20px 22px 24px; }
.fd-ach-card .cap .chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-mono); font-size: 10.5px;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--amber); background: rgba(250, 168, 15, .1);
    border: 1px solid rgba(250, 168, 15, .35); border-radius: 999px;
    padding: 4px 12px; margin-bottom: 12px;
}
.fd-ach-card h5 {
    color: var(--cream) !important; font-family: var(--font-body);
    font-weight: 600; font-size: 17px; margin-bottom: 8px;
}
.fd-ach-card p { color: var(--text-faint) !important; font-size: 14px; margin: 0; }

/* ---------- fee structure tables (DB content) ---------- */

.fd-fee-h {
    color: var(--cream) !important; font-family: var(--font-body);
    font-weight: 600; font-size: 20px; margin: 0 0 18px;
    display: flex; align-items: center; gap: 12px;
}
.fd-fee-h i { color: var(--cyan); font-size: 18px; }
.fd-fee-h small { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); letter-spacing: .1em; }

.fd-fee-table-wrap {
    background: linear-gradient(180deg, rgba(169, 163, 194, .14), rgba(169, 163, 194, .04));
    border: 1px solid var(--line-mid); border-radius: var(--radius);
    overflow-x: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.fd-fee-table { width: 100%; min-width: 780px; border-collapse: collapse; }
.fd-fee-table thead th {
    font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--text-faint); text-align: center;
    padding: 15px 16px; background: rgba(4, 12, 22, .55);
    border-bottom: 1px solid var(--line-mid); white-space: nowrap;
}
.fd-fee-table thead tr.grp th {
    color: var(--cyan); font-size: 12.5px;
    border-bottom: 1px solid var(--line-mid);
}
.fd-fee-table thead tr.sub th {
    color: var(--text-faint); font-size: 10.5px; padding: 10px 14px;
}
.fd-fee-table tbody td {
    padding: 14px 16px; text-align: center;
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--font-mono); font-size: 14px; color: var(--text-soft);
    white-space: nowrap; transition: background .25s;
}
.fd-fee-table tbody tr:last-child td { border-bottom: none; }
.fd-fee-table tbody tr:hover td { background: rgba(0, 200, 232, .045); }
.fd-fee-table td.tl {
    text-align: left; font-family: var(--font-body); font-weight: 600;
    color: var(--cream); white-space: normal; min-width: 180px;
}
.fd-fee-table th.tl { text-align: left; }
.fd-fee-table .tag {
    display: inline-block; font-family: var(--font-mono); font-weight: 500;
    font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
    color: var(--cyan); border: 1px solid rgba(0, 200, 232, .35);
    border-radius: 999px; padding: 2px 10px; margin-left: 8px; vertical-align: middle;
}
.fd-fee-table td.na { color: rgba(200, 225, 255, .3); }
.fd-fee-table td.tot {
    color: var(--amber); font-weight: 600;
    background: rgba(250, 168, 15, .06);
    border-left: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft);
}

.fd-fee-notes { display: grid; gap: 12px; margin-top: 26px; }
.fd-fee-notes .note {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--ink-panel); border: 1px solid var(--line-soft);
    border-left: 3px solid var(--amber);
    border-radius: 12px; padding: 14px 18px;
    font-size: 14px; color: var(--text-mute);
}
.fd-fee-notes .note i { color: var(--amber); margin-top: 3px; }
.fd-fee-notes .note b { color: var(--cream); font-weight: 600; }

/* ---------- rich content pieces (DB pages: school etc.) ---------- */

.fd-title .accent2, .fd-session-head .fd-title .accent2 {
    background: linear-gradient(92deg, var(--cyan), #7ee7f9 50%, var(--amber));
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
html.light-mode .fd-title .accent2, html.light-mode .fd-session-head .fd-title .accent2 {
    background: linear-gradient(92deg, #0088A6, #005E75 50%, var(--amber));
    -webkit-background-clip: text; background-clip: text;
}

.fd-feat-tall { height: 100%; align-items: flex-start; }
.fd-feat-tall .ic { width: 50px; height: 50px; flex-basis: 50px; font-size: 20px; }
.fd-feat-tall h6 { font-size: 17px; }

.fd-facts-band {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: var(--radius); padding: 30px 26px; text-align: center;
}
.fd-facts-band .num {
    font-family: var(--font-mono); font-weight: 600;
    font-size: clamp(22px, 3vw, 34px); color: var(--cyan); line-height: 1.1;
    word-break: break-all;
}
.fd-facts-band .num span { color: var(--amber); }
.fd-facts-band .lbl {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase; color: var(--text-faint); margin-top: 8px;
}

.fd-inline-cta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 22px; flex-wrap: wrap;
    background:
        radial-gradient(120% 200% at 0% 100%, rgba(0, 200, 232, .10), transparent 55%),
        var(--ink-panel);
    border: 1px solid var(--line-mid); border-left: 3px solid var(--cyan);
    border-radius: var(--radius); padding: 30px 34px;
}
.fd-inline-cta h4 { font-family: var(--font-body); font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.fd-inline-cta p { color: var(--text-mute); margin: 0; font-size: 15px; }
html.light-mode .fd-inline-cta {
    background: radial-gradient(120% 200% at 0% 100%, rgba(0, 136, 166, .08), transparent 55%), var(--ink-panel);
}

.fd-fac-chips { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.fd-fac-chips .chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line-mid); border-radius: 999px;
    background: var(--ink-panel);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
    color: var(--text-mute); padding: 8px 16px;
    transition: .25s var(--ease-out);
}
.fd-fac-chips .chip i { color: var(--cyan); }
.fd-fac-chips .chip:hover { border-color: rgba(0, 200, 232, .4); color: var(--cream); transform: translateY(-2px); }

.fd-fac-img {
    border-radius: 18px; overflow: hidden; position: relative;
    border: 1px solid var(--line-mid);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.fd-fac-img img { display: block; width: 100%; height: 300px; object-fit: cover; transition: transform .6s var(--ease-out); }
.fd-fac-img:hover img { transform: scale(1.05); }
.fd-fac-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(200deg, transparent 55%, rgba(4, 12, 22, .4));
}
html.light-mode .fd-fac-img { box-shadow: 0 20px 50px rgba(12, 27, 46, .14); }

.fd-sub-title {
    color: var(--cream) !important; font-family: var(--font-head);
    font-weight: 700; font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px;
}
.fd-check-1col { grid-template-columns: 1fr; }
.fd-check-1col li { font-size: 14.5px; }
.fd-legacy .fd-lead b { color: var(--cream); font-weight: 600; }

@media (max-width: 767.98px) {
    .fd-facts-band { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}

/* ---------- image lightbox (click-to-zoom) ---------- */

.fd-lightbox {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(2, 6, 12, .92); backdrop-filter: blur(10px);
    display: grid; place-items: center; padding: 28px;
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease-out);
}
.fd-lightbox.open { opacity: 1; pointer-events: auto; }
.fd-lightbox img {
    max-width: min(92vw, 920px); max-height: 82vh;
    border-radius: 14px; border: 1px solid var(--line-mid);
    box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
    transform: scale(.92); transition: transform .3s var(--ease-out);
}
.fd-lightbox.open img { transform: scale(1); }
.fd-lightbox .lb-cap {
    position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 13px; letter-spacing: .1em;
    color: var(--text-soft); text-align: center;
    background: rgba(7, 16, 29, .85); border: 1px solid var(--line-mid);
    border-radius: 999px; padding: 8px 20px; white-space: nowrap;
    max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
.fd-lightbox .lb-close {
    position: absolute; top: 18px; right: 22px;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line-bright); background: rgba(7, 16, 29, .7);
    color: var(--cream); font-size: 17px; cursor: pointer;
    display: grid; place-items: center; transition: .25s;
}
.fd-lightbox .lb-close:hover { color: var(--amber); border-color: var(--amber); transform: rotate(90deg); }

/* ---------- photo gallery page ---------- */

.gallery-img {
    cursor: zoom-in; border-radius: 14px;
    aspect-ratio: 1; object-fit: cover; width: 100%;
    border: 1px solid var(--line-soft); background: var(--ink-field);
    transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
}
.gallery-img:hover {
    transform: scale(1.04); z-index: 2; position: relative;
    border-color: rgba(0, 200, 232, .5);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.gallery-skeleton {
    aspect-ratio: 1; border-radius: 14px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(90deg, var(--ink-field) 25%, var(--ink-raised) 50%, var(--ink-field) 75%);
    background-size: 200% 100%;
    animation: gallery-shimmer 1.2s infinite;
}
@keyframes gallery-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.fd-modal-content {
    background: var(--ink-panel) !important;
    border: 1px solid var(--line-mid); border-radius: 18px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
}
.fd-close-btn {
    position: absolute; top: 14px; right: 16px; z-index: 10;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--line-bright); background: rgba(7, 16, 29, .7);
    color: var(--cream); font-size: 15px; cursor: pointer;
    display: grid; place-items: center; transition: .25s;
}
.fd-close-btn:hover { color: var(--amber); border-color: var(--amber); transform: rotate(90deg); }
.fd-modal-img {
    width: 100%; max-height: 72vh; object-fit: contain;
    border-radius: 12px;
}
.fd-nav-arrow {
    position: relative; z-index: 5; flex: 0 0 44px;
    width: 44px; height: 44px; margin: 0 10px;
    border-radius: 50%; border: 1px solid var(--line-bright);
    background: rgba(7, 16, 29, .7); color: var(--cream);
    font-size: 15px; cursor: pointer;
    display: grid; place-items: center; transition: .25s;
}
.fd-nav-arrow:hover { color: var(--cyan); border-color: var(--cyan); }
.thumb-img {
    height: 64px; width: 100px; object-fit: cover; cursor: pointer;
    border-radius: 8px; border: 2px solid transparent; opacity: .65;
    transition: .25s;
}
.thumb-img:hover { opacity: 1; }
.thumb-img.active { border-color: var(--cyan); opacity: 1; }
.thumb-container {
    display: flex; overflow: hidden; position: relative;
    max-width: 340px; margin: auto;
}
.thumb-inner { display: flex; transition: transform .3s var(--ease-out); }
.arrow-thumb {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(4, 12, 22, .75); color: var(--cream);
    border: none; z-index: 10; height: 100%; padding: 0 10px; font-size: 11px;
    transition: .25s;
}
.arrow-thumb:hover { color: var(--cyan); }
.arrow-thumb.left { left: 0; border-radius: 0 8px 8px 0; }
.arrow-thumb.right { right: 0; border-radius: 8px 0 0 8px; }

.fd-debug-box {
    background: rgba(250, 168, 15, .06); border: 2px solid rgba(250, 168, 15, .5);
    padding: 16px; margin-bottom: 24px; font-size: 13px; overflow: auto;
    border-radius: 12px; color: var(--text-soft);
}
.fd-debug-box a { color: var(--amber); }
.fd-debug-box pre { white-space: pre-wrap; word-break: break-all; color: var(--text-soft); }

/* ---------- video gallery page ---------- */

.fd-video-stage {
    max-width: 860px; margin: 0 auto;
    border-radius: 18px; padding: 6px;
    background: linear-gradient(135deg, rgba(0, 200, 232, .35), rgba(250, 168, 15, .2));
}
.fd-video-frame {
    border-radius: 13px; overflow: hidden; background: var(--ink-field);
    aspect-ratio: 16 / 9;
    display: grid; place-items: center;
}
.fd-video-frame iframe { width: 100%; height: 100%; border: 0; }
.fd-video-placeholder { position: relative; width: 100%; height: 100%; }
.fd-video-placeholder img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.fd-video-placeholder > i { font-size: 64px; color: var(--cyan); margin: auto; }
.fd-video-placeholder .hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
    color: var(--cream); background: rgba(4, 12, 22, .75);
    border: 1px solid var(--line-mid); border-radius: 999px; padding: 8px 18px;
    display: inline-flex; gap: 9px; align-items: center; white-space: nowrap;
}
.fd-video-placeholder .hint i { color: var(--amber); }

.fd-video-card {
    width: 100%; min-height: 132px; padding: 18px;
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
    gap: 12px; text-align: left;
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: 14px; cursor: pointer;
    transition: .3s var(--ease-out);
}
.fd-video-card .play-ic {
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: 13px;
    color: var(--cyan); border: 1px solid rgba(0, 200, 232, .4);
    background: rgba(0, 200, 232, .08); transition: .3s;
}
.fd-video-card .v-title {
    font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
    color: var(--cream); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd-video-card:hover, .fd-video-card.is-active {
    border-color: rgba(0, 200, 232, .5); transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
}
.fd-video-card:hover .play-ic, .fd-video-card.is-active .play-ic {
    background: var(--cyan); color: #03242B; border-color: var(--cyan);
}
.fd-video-card.is-active { border-color: var(--cyan); }

/* ---------- notice board ---------- */

.fd-notice-board {
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.fd-notice-item {
    display: flex; align-items: flex-start; gap: 18px;
    padding: 22px 26px; border-bottom: 1px solid var(--line-soft);
    position: relative; transition: background .25s;
}
.fd-notice-item:last-child { border-bottom: none; }
.fd-notice-item:hover { background: rgba(0, 200, 232, .04); }
.fd-notice-item .n-icon {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 42px;
    display: grid; place-items: center; font-size: 15px;
    color: var(--amber); background: rgba(250, 168, 15, .1);
    border: 1px solid rgba(250, 168, 15, .3);
}
.fd-notice-item .n-body { flex: 1; min-width: 0; }
.fd-notice-item .n-body p {
    color: var(--text-soft); font-size: 15.5px; line-height: 1.65; margin: 0;
}
.fd-notice-item .n-file {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 10px;
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em;
    text-transform: uppercase; color: var(--cyan);
    border: 1px solid rgba(0, 200, 232, .35); border-radius: 999px;
    padding: 5px 14px; text-decoration: none; transition: .25s;
}
.fd-notice-item .n-file:hover { background: rgba(0, 200, 232, .1); color: var(--cream); }
.fd-notice-item .n-num {
    font-family: var(--font-mono); font-size: 13px;
    color: var(--text-faint); flex: 0 0 auto; margin-top: 4px;
}

/* ---------- contact enquiry ---------- */

.fd-enquiry {
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: var(--radius); padding: 34px 36px;
}
.fd-enquiry h3 { font-family: var(--font-head); font-weight: 700; color: var(--cream); margin-bottom: 6px; }
.fd-enquiry > p { color: var(--text-mute); font-size: 14.5px; margin-bottom: 22px; }
.fd-form .form-control {
    background: var(--ink-field); border: 1px solid var(--line-mid);
    color: var(--cream); border-radius: 10px; padding: 12px 16px; font-size: 14.5px;
}
.fd-form .form-control::placeholder { color: var(--text-faint); }
.fd-form .form-control:focus {
    background: var(--ink-field); color: var(--cream);
    border-color: rgba(0, 200, 232, .55); box-shadow: 0 0 0 .25rem rgba(0, 200, 232, .12);
}
button.fd-glow-btn { border: none; font: inherit; cursor: pointer; }

.fd-map-frame {
    border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line-mid); box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
    line-height: 0;
}
.fd-map-frame iframe { filter: grayscale(.35) saturate(1.05); }

/* ---------- parent portal auth pages ---------- */

.fd-auth-card {
    max-width: 470px; margin: 0 auto;
    background: var(--ink-panel); border: 1px solid var(--line-mid);
    border-radius: var(--radius); padding: 40px 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .4); text-align: center;
}
.fd-auth-card .lock-ic {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
    display: grid; place-items: center; font-size: 24px;
    color: var(--cyan); background: rgba(0, 200, 232, .09);
    border: 1px solid rgba(0, 200, 232, .35);
}
.fd-auth-card h3 {
    font-family: var(--font-head); font-weight: 700;
    color: var(--cream); margin-bottom: 8px;
}
.fd-auth-card .hint-text { color: var(--text-mute); font-size: 14.5px; margin-bottom: 24px; }

.fd-alert {
    display: flex; gap: 12px; align-items: flex-start; text-align: left;
    background: rgba(250, 168, 15, .08); border: 1px solid rgba(250, 168, 15, .4);
    border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
    color: var(--text-soft); font-size: 13.5px; line-height: 1.5;
}
.fd-alert i { color: var(--amber); margin-top: 2px; }
.fd-alert b { color: var(--cream); }

.fd-form .input-ic { position: relative; }
.fd-form .input-ic > i {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--text-faint); font-size: 15px; pointer-events: none; z-index: 2;
}
.fd-form .input-ic .form-control { padding-left: 46px; }
.fd-form select.form-control {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300C8E8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center;
}
.fd-form select.form-control option { background: var(--ink-panel); color: var(--cream); }

.fd-branch-btn {
    width: 100%; display: flex; align-items: center; gap: 14px;
    background: var(--ink-field); border: 1px solid var(--line-mid);
    border-radius: 12px; padding: 17px 20px;
    color: var(--cream); font-family: var(--font-body);
    font-weight: 600; font-size: 15.5px; text-align: left;
    cursor: pointer; transition: .25s var(--ease-out);
}
.fd-branch-btn i:first-child { color: var(--cyan); font-size: 17px; }
.fd-branch-btn i:last-child { color: var(--text-faint); font-size: 13px; }
.fd-branch-btn:hover {
    border-color: rgba(0, 200, 232, .55); transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.fd-branch-btn:hover i:last-child { color: var(--cyan); transform: translateX(3px); }

/* ---------- 404 ---------- */

.fd-404 .code {
    font-family: var(--font-head); font-weight: 800; line-height: 1;
    font-size: clamp(90px, 18vw, 160px);
    background: linear-gradient(135deg, var(--cyan) 0%, var(--amber) 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    margin-bottom: 18px;
}

/* ---------- legacy DB pages (other ?page= routes) ---------- */

.fd-legacy { padding: 48px 0 80px; }
.fd-legacy h1, .fd-legacy h2, .fd-legacy h3,
.fd-legacy h4, .fd-legacy h5, .fd-legacy h6 { color: var(--cream) !important; }
.fd-legacy p, .fd-legacy div, .fd-legacy span, .fd-legacy li { color: var(--text-soft); }
.fd-legacy .bg-light, .fd-legacy .bg-white, .fd-legacy .bg-primary {
    background: var(--ink-panel) !important;
}
.fd-legacy .section-title h1 { color: var(--cream) !important; }
.fd-legacy .text-primary { color: var(--cyan) !important; }
.fd-legacy .btn-primary {
    background: var(--cyan); border-color: var(--cyan); color: #03242b;
}
.fd-legacy .btn-secondary { background: var(--ink-raised); border-color: var(--line-mid); }
.fd-legacy img { border-radius: 12px; }
.fd-legacy .owl-carousel .testimonial-item { background: var(--ink-panel) !important; }
.fd-legacy a:not(.btn) { color: var(--cyan); }

/* ---------- reduced motion ---------- */

/* ============================================================
   LIGHT MODE — toggled by .light-mode on <html>
   ============================================================ */

html.light-mode {
    --ink-page:   #F2F6FB;
    --ink-panel:  #FFFFFF;
    --ink-field:  #EDF2F8;
    --ink-raised: #E4ECF5;
    --cream:      #0C1B2E;
    --text-soft:  rgba(12, 27, 46, .82);
    --text-mute:  rgba(12, 27, 46, .64);
    --text-faint: rgba(12, 27, 46, .5);
    --cyan:       #0088A6;
    --cyan-soft:  rgba(0, 136, 166, .1);
    --amber:      #B97700;
    --rust:       #B04A24;
    --line-soft:  rgba(12, 27, 46, .07);
    --line-mid:   rgba(12, 27, 46, .14);
    --line-bright:rgba(12, 27, 46, .28);
    color-scheme: light;
}

html.light-mode body.fdtrc-dark { background-color: var(--ink-page); }

/* topbar + navbar */
html.light-mode .fd-topbar { background: #FFFFFF; }
html.light-mode .fd-navbar {
    background: rgba(255, 255, 255, .8);
}
html.light-mode .fd-navbar.is-scrolled {
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 30px rgba(12, 27, 46, .08);
}
html.light-mode .fd-navbar .dropdown-menu { box-shadow: 0 24px 60px rgba(12, 27, 46, .16); }
html.light-mode .fd-navbar .navbar-collapse { background: #FFFFFF; }

/* hero */
html.light-mode .fd-hero {
    background:
        radial-gradient(60% 45% at 50% -5%, rgba(0, 136, 166, .08), transparent 60%),
        radial-gradient(40% 35% at 85% 110%, rgba(185, 119, 0, .05), transparent 60%),
        var(--ink-page);
}
html.light-mode .fd-hero::before {
    background-image: radial-gradient(rgba(12, 27, 46, .09) 1px, transparent 1px);
}
html.light-mode .fd-hero .fd-ray {
    background: linear-gradient(180deg, transparent, rgba(0, 136, 166, .4), transparent);
}
html.light-mode .fd-hero-badge { background: rgba(255, 255, 255, .7); }
html.light-mode .fd-hero h1 .accent {
    background: linear-gradient(92deg, #0088A6 0%, #005E75 45%, var(--amber) 100%);
    -webkit-background-clip: text; background-clip: text;
}
html.light-mode .fd-hero-visual .frame { box-shadow: 0 30px 70px rgba(12, 27, 46, .18); }
html.light-mode .fd-chip { background: rgba(255, 255, 255, .92); box-shadow: 0 14px 40px rgba(12, 27, 46, .14); }

/* buttons */
html.light-mode .fd-glow-btn {
    background: radial-gradient(107.5% 107.5% at 50% 215%, rgba(0, 136, 166, .14) 0%, rgba(0, 136, 166, 0) 100%), rgba(255, 255, 255, .75);
}
html.light-mode .fd-ghost-btn:hover { background: rgba(0, 136, 166, .07); }

/* notice strip */
html.light-mode .fd-notice-strip { background: rgba(0, 136, 166, .05); }

/* spotlight cards — same rim trick works on light */
html.light-mode .fd-spot-card {
    background: linear-gradient(180deg, rgba(120, 140, 170, .35), rgba(120, 140, 170, .12));
    box-shadow: 0 14px 40px rgba(12, 27, 46, .06);
}

/* about / features */
html.light-mode .fd-feat-item { box-shadow: 0 8px 26px rgba(12, 27, 46, .05); }

/* cta band */
html.light-mode .fd-cta-band {
    background:
        radial-gradient(80% 140% at 50% 120%, rgba(0, 136, 166, .09), transparent 60%),
        var(--ink-panel);
}

/* stats band */
html.light-mode .fd-stats-band { background: var(--ink-panel); }

/* gallery captions sit on photos — keep dark overlay, fine */

/* topper + fee tables */
html.light-mode .fd-topper-table-wrap,
html.light-mode .fd-fee-table-wrap {
    background: #FFFFFF; box-shadow: 0 18px 50px rgba(12, 27, 46, .08);
}
html.light-mode .fd-topper-table thead th,
html.light-mode .fd-fee-table thead th { background: rgba(12, 27, 46, .05); }
html.light-mode .rank-pill { background: var(--ink-raised); }
html.light-mode .fd-topper-card .avatar {
    background:
        linear-gradient(var(--ink-raised), var(--ink-raised)) padding-box,
        linear-gradient(135deg, var(--cyan), rgba(0, 136, 166, .15)) border-box;
}
html.light-mode .fd-session-head .fd-title .accent,
html.light-mode .fd-page-banner h1 .accent {
    background: linear-gradient(92deg, var(--amber), #8A5A00 55%, var(--cyan));
    -webkit-background-clip: text; background-clip: text;
}

/* page banner */
html.light-mode .fd-page-banner {
    background:
        radial-gradient(55% 90% at 50% 120%, rgba(185, 119, 0, .08), transparent 65%),
        radial-gradient(70% 50% at 50% -20%, rgba(0, 136, 166, .1), transparent 60%),
        var(--ink-panel);
}
html.light-mode .fd-breadcrumb { background: rgba(255, 255, 255, .65); }
html.light-mode .fd-banner-chips .chip { background: rgba(255, 255, 255, .8); }

/* teacher photo gradient overlay stays dark-on-image — fine */

/* contact cards */
html.light-mode .fd-contact-card { box-shadow: 0 10px 30px rgba(12, 27, 46, .05); }

/* footer */
html.light-mode .fd-footer {
    background: linear-gradient(180deg, rgba(0, 136, 166, .04), transparent 30%), var(--ink-panel);
}

/* floating enquire */
html.light-mode .fd-enquire { color: #03242B !important; box-shadow: 0 14px 40px rgba(0, 136, 166, .35); }

/* modals */
html.light-mode .fd-modal .btn-close { filter: none; }
html.light-mode .fd-modal .modal-content { box-shadow: 0 40px 100px rgba(12, 27, 46, .25); }

/* editor wrap */
html.light-mode .fd-editor-wrap [contenteditable] { outline-color: rgba(0, 136, 166, .35); }

/* theme toggle button */
.fd-theme-toggle {
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    border: 1px solid var(--line-mid); background: transparent;
    color: var(--text-mute); font-size: 14px; cursor: pointer;
    transition: .3s var(--ease-out); flex: 0 0 32px;
}
.fd-theme-toggle:hover { color: var(--amber); border-color: rgba(250, 168, 15, .5); }
.fd-theme-toggle .ic-moon { display: none; }
html.light-mode .fd-theme-toggle .ic-moon { display: inline; }
html.light-mode .fd-theme-toggle .ic-sun { display: none; }

/* smooth theme transition (body only — avoids overriding component transitions) */
body.fdtrc-dark { transition: background-color .35s ease, color .35s ease; }

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