/* ═══════════════════════════════════════════════════════
   বিদ্যাসিন্ধু — Editorial / Institutional Design System
   Palette: Ink Navy · Warm Paper · Antique Gold
   ═══════════════════════════════════════════════════════ */
:root {
  --font-bn: 'Hind Siliguri', sans-serif;
  --font-en: 'Sora', sans-serif;
  --font-serif: 'Noto Serif Bengali', serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1200px;
}

[data-theme="light"] {
  --ink: #0a0a0a;
  --ink-2: #161616;
  --bg: #ffffff;
  --paper: #f5f5f5;
  --surface: #ffffff;
  --border: #e4e4e4;
  --border-ink: rgba(255, 255, 255, 0.12);
  --text: #141414;
  --text-soft: #616161;
  --gold: #1a1a1a;
  --gold-soft: #ececec;
  --red: #c8102e;
  --red-deep: #a30d24;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] {
  --ink: #050505;
  --ink-2: #121212;
  --bg: #0c0c0c;
  --paper: #121212;
  --surface: #161616;
  --border: #2a2a2a;
  --border-ink: rgba(255, 255, 255, 0.1);
  --text: #f2f2f2;
  --text-soft: #9c9c9c;
  --gold: #f5f5f5;
  --gold-soft: #dedede;
  --red: #e5273a;
  --red-deep: #c8102e;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-bn);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-bn); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }

h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.35; font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }

/* ═══════════ PRELOADER (white, logo draw + letters slide together) ═══════════ */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: transparent;
  transition: visibility 0s 1.3s;
}
.pl-curtain { position: absolute; left: 0; right: 0; height: 50%; background: #ffffff; z-index: -1; transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1); }
.pl-curtain-top { top: 0; }
.pl-curtain-bottom { bottom: 0; }
.preloader.done { pointer-events: none; visibility: hidden; }
.preloader.done .pl-curtain-top { transform: translateY(-101%); }
.preloader.done .pl-curtain-bottom { transform: translateY(101%); }
.preloader.done .pl-inner { opacity: 0; transform: scale(0.97); }
.pl-inner { text-align: center; color: #141414; transition: opacity 0.4s, transform 0.4s; padding: 0 24px; }

/* Emblem: rotating orbit ring + drawn logo + orbiting sparks */
.pl-emblem { position: relative; width: 128px; height: 128px; margin: 0 auto 26px; }
.pl-orbit { position: absolute; inset: 0; width: 100%; height: 100%; animation: plSpin 9s linear infinite; }
.pl-orbit-ring {
  fill: none; stroke: #c8102e; stroke-width: 1;
  stroke-dasharray: 4 9; opacity: 0;
  animation: plFade 0.9s ease 0.4s forwards;
}
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-spark {
  position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: #c8102e; top: 50%; left: 50%; margin: -2.5px;
  opacity: 0;
}
.pl-spark-1 { animation: plOrbit 3.6s linear 1.3s infinite; }
.pl-spark-2 { animation: plOrbit 3.6s linear 2.2s infinite; width: 3px; height: 3px; margin: -1.5px; }
.pl-spark-3 { animation: plOrbitRev 4.6s linear 1.7s infinite; width: 4px; height: 4px; margin: -2px; background: #141414; }
.pl-spark-4 { animation: plOrbitRev 4.6s linear 3s infinite; width: 3px; height: 3px; margin: -1.5px; }
@keyframes plOrbit {
  0% { opacity: 0; transform: rotate(0deg) translateX(64px); }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: rotate(360deg) translateX(64px); }
}
@keyframes plOrbitRev {
  0% { opacity: 0; transform: rotate(360deg) translateX(64px); }
  8% { opacity: 0.8; }
  92% { opacity: 0.8; }
  100% { opacity: 0; transform: rotate(0deg) translateX(64px); }
}

/* Logo: open book drawn line-by-line in red */
.pl-logo { position: absolute; inset: 16px; animation: plLogoIn 0.6s var(--ease) both, plBreathe 3.2s ease-in-out 2.2s infinite; }
@keyframes plBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.pl-logo svg { width: 100%; height: 100%; overflow: visible; }
.pl-draw path {
  fill: none; stroke: #c8102e; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: plDraw 1s var(--ease) forwards;
}
.pl-draw .pl-p1 { animation-delay: 0.15s; }
.pl-draw .pl-p2 { animation-delay: 0.35s; }
.pl-draw .pl-p3 { animation-delay: 0.75s; animation-duration: 0.7s; }
.pl-draw .pl-p4 { animation-delay: 1.05s; animation-duration: 0.5s; stroke-width: 3.4; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plLogoIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Letters: slide in side-by-side from the sides, converge to center */
.pl-name {
  font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 2.9rem); font-weight: 800;
  letter-spacing: 0.02em; color: #c8102e;
  display: flex; justify-content: center; align-items: baseline;
}
.pl-letter { display: inline-block; opacity: 0; filter: blur(6px); animation: plConverge 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.pl-letter:nth-child(1) { transform: translateX(-46px); animation-delay: 1.5s; }
.pl-letter:nth-child(2) { transform: translateX(-18px); animation-delay: 1.64s; }
.pl-letter:nth-child(3) { transform: translateX(18px); animation-delay: 1.78s; }
.pl-letter:nth-child(4) { transform: translateX(46px); animation-delay: 1.92s; }
@keyframes plConverge { to { opacity: 1; transform: translateX(0); filter: blur(0); } }
@keyframes plFade { to { opacity: 1; } }

/* Red rule expands under the name */
.pl-rule { width: 0; height: 2px; margin: 16px auto 0; background: #c8102e; animation: plRule 0.7s var(--ease) 2.25s forwards; }
@keyframes plRule { to { width: 64px; } }

.pl-tag {
  font-family: var(--font-en); font-size: 0.66rem; letter-spacing: 0.34em;
  color: #8a8a8a; margin-top: 14px;
  opacity: 0; animation: plFade 0.8s ease 2.45s forwards;
}
.pl-bar { width: 210px; height: 2px; margin: 26px auto 0; background: #ebebeb; border-radius: 2px; overflow: hidden; opacity: 0; animation: plFade 0.5s ease 1.4s forwards; }
.pl-bar-fill { display: block; height: 100%; width: 0%; background: #c8102e; transition: width 0.3s ease; }
.pl-meta {
  width: 210px; margin: 10px auto 0; display: flex; justify-content: space-between; align-items: baseline;
  opacity: 0; animation: plFade 0.5s ease 1.55s forwards;
}
.pl-step { font-size: 0.78rem; color: #8a8a8a; }
.pl-pct { font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.1em; color: #c8102e; font-weight: 600; }
.pl-quote { font-size: 0.95rem; color: #6b6b6b; margin-top: 20px; opacity: 0; animation: plFade 0.8s ease 2.6s forwards; }

body.loading { overflow: hidden; }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; font-size: 1rem; font-weight: 600;
  border: none; cursor: pointer; border-radius: 4px;
  transition: all 0.3s var(--ease); white-space: nowrap; line-height: 1.4;
}
.btn-lg { padding: 17px 38px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-gold { background: #c8102e; color: #fff; }
.btn-gold:hover { background: #a30d24; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(200, 16, 46, 0.5); }
.btn-solid { background: var(--ink); color: #f5f5f5; }
[data-theme="dark"] .btn-solid { background: #f5f5f5; color: #0c0c0c; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(14, 27, 46, 0.5); }
.btn-ghost { background: transparent; color: #f5f5f5; border: 1px solid rgba(245, 245, 245, 0.4); }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-line { background: transparent; color: #f5f5f5; border: 1px solid rgba(245, 245, 245, 0.5); padding: 12px 26px; }
.btn-line:hover { background: #f5f5f5; color: #0a0a0a; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ═══════════ TOPBAR ═══════════ */
.topbar { background: var(--ink); color: rgba(245, 245, 245, 0.75); font-size: 0.84rem; position: relative; z-index: 101; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; gap: 16px; }
.topbar i { color: var(--red); margin-right: 7px; font-size: 0.78rem; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-div { width: 1px; height: 14px; background: rgba(245, 245, 245, 0.2); }
.topbar a:hover { color: #fff; }

/* ═══════════ NAVBAR ═══════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s, background 0.4s;
}
.navbar.scrolled { box-shadow: 0 8px 30px -12px rgba(14, 27, 46, 0.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 46px; height: 46px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--font-serif); font-weight: 800; font-size: 1.4rem;
  border-radius: 4px; border: 1px solid var(--red);
}
[data-theme="light"] .brand-mark { background: var(--red); border-color: var(--red); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.01em; color: var(--red); }
.brand-text small { font-family: var(--font-en); font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 0.97rem; color: var(--text-soft); position: relative; padding: 4px 0; transition: color 0.25s; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1.5px; background: var(--red); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 0.92rem; font-weight: 600;
  transition: all 0.3s var(--ease);
}
.icon-btn:hover { border-color: var(--text); color: var(--text); background: var(--paper); }
.menu-btn { display: none; }
.nav-cta { padding: 12px 26px; font-size: 0.95rem; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; background: #0a0a0a; color: #f5f5f5; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; filter: grayscale(1) contrast(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10, 10, 10, 0.97) 25%, rgba(10, 10, 10, 0.82) 60%, rgba(10, 10, 10, 0.6));
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 60px; align-items: center;
  padding-top: 110px; padding-bottom: 120px;
}
.hero-kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(245, 245, 245, 0.85); margin-bottom: 26px;
}
.k-line { width: 44px; height: 1px; background: var(--red); }
.hero-title {
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800; line-height: 1.28; letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-title .gold { color: var(--red); }
.hero-sub { font-size: clamp(1rem, 1.8vw, 1.16rem); color: rgba(245, 245, 245, 0.72); max-width: 540px; margin-bottom: 40px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-panel {
  background: rgba(245, 245, 245, 0.045);
  border: 1px solid rgba(245, 245, 245, 0.14);
  border-top: 3px solid var(--red);
  padding: 34px 32px;
}
.hp-label { font-family: var(--font-en); font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: rgba(245, 245, 245, 0.6); margin-bottom: 22px; }
.hp-row { display: flex; align-items: baseline; gap: 16px; padding: 15px 0; border-bottom: 1px solid rgba(245, 245, 245, 0.1); }
.hp-row:last-of-type { border-bottom: none; }
.hp-row strong { font-family: var(--font-serif); font-size: 2rem; font-weight: 800; min-width: 108px; }
.hp-row strong span { color: var(--red); }
.hp-row > span { font-size: 0.92rem; color: rgba(245, 245, 245, 0.65); }
.hp-foot { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(245, 245, 245, 0.1); font-size: 0.87rem; color: rgba(245, 245, 245, 0.7); }
.hp-foot i { color: var(--red); margin-right: 8px; }

.hero-strip { position: relative; z-index: 2; border-top: 1px solid rgba(245, 245, 245, 0.12); background: rgba(6, 6, 6, 0.6); backdrop-filter: blur(8px); }
.hs-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 26px; padding-top: 18px; padding-bottom: 18px; }
.hs-inner span { font-size: 0.88rem; color: rgba(245, 245, 245, 0.7); font-weight: 500; }
.hs-inner i { color: var(--red); margin-right: 9px; font-size: 0.82rem; }

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 110px 0; }
.section-paper { background: var(--paper); }
.section-ink { background: var(--ink); color: #f5f5f5; }
.sec-head { margin-bottom: 64px; }
.sec-no {
  font-family: var(--font-en); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--red);
  margin-bottom: 18px;
}
.sec-no.light { color: var(--red); }
.sec-title-row { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end; }
.sec-desc { color: var(--text-soft); font-size: 1.02rem; padding-bottom: 6px; }
.section-ink .sec-desc { color: rgba(245, 245, 245, 0.65); }

/* ═══════════ WHY ═══════════ */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-left: 1px solid var(--border);
}
.why-item {
  position: relative; padding: 42px 36px 38px;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg); transition: background 0.35s var(--ease);
}
.why-item:hover { background: var(--paper); }
.w-no { position: absolute; top: 30px; right: 32px; font-family: var(--font-en); font-size: 0.78rem; color: var(--border); font-weight: 600; transition: color 0.3s; }
.why-item:hover .w-no { color: var(--red); }
.why-item > i { font-size: 1.5rem; color: var(--red); margin-bottom: 22px; display: block; }
.why-item h3 { font-size: 1.18rem; margin-bottom: 10px; }
.why-item p { color: var(--text-soft); font-size: 0.95rem; }

/* ═══════════ PROGRAMS ═══════════ */
.prog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.prog-card {
  background: rgba(245, 245, 245, 0.04);
  border: 1px solid rgba(245, 245, 245, 0.13);
  padding: 46px 44px; transition: all 0.35s var(--ease);
}
.prog-card:hover { border-color: var(--red); transform: translateY(-5px); }
.pc-tag { font-family: var(--font-en); font-size: 0.64rem; letter-spacing: 0.3em; color: var(--red); font-weight: 600; }
.pc-head h3 { font-size: 1.75rem; margin: 12px 0 12px; }
.pc-head p { color: rgba(245, 245, 245, 0.62); font-size: 0.96rem; margin-bottom: 28px; }
.pc-list { list-style: none; margin-bottom: 32px; }
.pc-list li { padding: 11px 0 11px 26px; position: relative; color: rgba(245, 245, 245, 0.82); border-bottom: 1px solid rgba(245, 245, 245, 0.09); font-size: 0.99rem; }
.pc-list li:last-child { border-bottom: none; }
.pc-list li::before { content: '—'; position: absolute; left: 0; color: var(--red); }
.pc-details { max-height: 0; overflow: hidden; transition: max-height 0.6s var(--ease), margin 0.4s; }
.pc-details.open { max-height: 320px; margin-top: 26px; }
.pc-details p { padding: 22px 24px; border-left: 2px solid var(--red); background: rgba(245, 245, 245, 0.05); color: rgba(245, 245, 245, 0.75); font-size: 0.93rem; line-height: 2.1; }

/* ═══════════ TEACHERS ═══════════ */
.teachers-grid { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.teacher-row {
  display: flex; align-items: center; gap: 26px; width: 100%; text-align: left;
  padding: 24px 18px; background: transparent; border: none;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: all 0.3s var(--ease); color: var(--text);
}
.teacher-row:hover { background: var(--paper); padding-left: 30px; }
.t-avatar {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--font-serif);
  font-size: 1.15rem; font-weight: 700; color: #f5f5f5;
}
.av-1 { background: #1a1a1a; } .av-2 { background: #333333; } .av-3 { background: #c8102e; }
.av-4 { background: #4d4d4d; } .av-5 { background: #a30d24; } .av-6 { background: #262626; }
.t-main { display: flex; flex-direction: column; min-width: 220px; }
.t-main strong { font-family: var(--font-serif); font-size: 1.14rem; }
.t-main em { font-style: normal; font-size: 0.86rem; color: var(--red); font-weight: 600; }
.t-meta { flex: 1; color: var(--text-soft); font-size: 0.92rem; }
.t-arrow { color: var(--border); transition: all 0.3s; font-size: 0.95rem; }
.teacher-row:hover .t-arrow { color: var(--red); transform: translateX(6px); }

/* ═══════════ RESULTS ═══════════ */
.results-section { padding: 96px 0; }
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(245, 245, 245, 0.14); border: 1px solid rgba(245, 245, 245, 0.14); }
.counter-box { background: var(--ink); text-align: center; padding: 52px 20px; transition: background 0.3s; }
.counter-box:hover { background: var(--ink-2); }
.counter-box strong { display: block; font-family: var(--font-serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; color: var(--red); line-height: 1.2; }
.counter-box span { color: rgba(245, 245, 245, 0.6); font-size: 0.93rem; }

/* ═══════════ REVIEWS ═══════════ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.review { position: relative; padding: 40px 36px; background: var(--surface); border: 1px solid var(--border); }
.review::before {
  content: '\\201C'; position: absolute; top: 14px; left: 28px;
  font-family: var(--font-serif); font-size: 4.6rem; line-height: 1;
  color: var(--red); opacity: 0.35;
}
.review p { position: relative; color: var(--text-soft); font-size: 0.99rem; margin-bottom: 26px; padding-top: 18px; }
.review footer { border-top: 1px solid var(--border); padding-top: 18px; }
.review footer strong { display: block; font-family: var(--font-serif); font-size: 1.02rem; }
.review footer span { font-size: 0.84rem; color: var(--red); font-weight: 500; }
.video-review { margin-top: 44px; text-align: center; }
.vr-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 36px; background: transparent;
  border: 1px solid var(--border); color: var(--text);
  font-size: 1rem; font-weight: 600; cursor: pointer; border-radius: 4px;
  transition: all 0.3s var(--ease);
}
.vr-btn i { color: var(--red); }
.vr-btn:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }

/* ═══════════ GALLERY ═══════════ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.g-item { position: relative; overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; border-radius: 2px; }
.g-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: transform 0.7s var(--ease), filter 0.5s; }
.g-item:hover img { filter: grayscale(0); }
.g-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 22px 18px; color: #f5f2ea; font-weight: 500; font-size: 0.95rem;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.88), transparent);
  opacity: 0; transform: translateY(8px); transition: all 0.4s var(--ease);
}
.g-item:hover img { transform: scale(1.06); }
.g-item:hover figcaption { opacity: 1; transform: translateY(0); }

/* ═══════════ LIGHTBOX ═══════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  background: rgba(8, 8, 8, 0.95);
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
  padding: 40px;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox figure { max-width: min(1000px, 82vw); text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; object-fit: contain; margin: 0 auto; border: 1px solid rgba(245, 245, 245, 0.15); }
.lightbox figcaption { color: rgba(245, 245, 245, 0.8); margin-top: 16px; font-size: 0.98rem; }
.lb-close, .lb-nav {
  background: transparent; border: 1px solid rgba(245, 245, 245, 0.3);
  color: #f5f5f5; width: 48px; height: 48px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; transition: all 0.3s; flex-shrink: 0;
}
.lb-close { position: absolute; top: 26px; right: 26px; }
.lb-close:hover, .lb-nav:hover { border-color: var(--red); color: var(--red); }

/* ═══════════ NOTICE + ROUTINE ═══════════ */
.nr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.nr-title { margin-bottom: 32px; }
.notice-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.notice-item { display: flex; gap: 22px; padding: 22px 6px; border-bottom: 1px solid var(--border); transition: background 0.3s, padding 0.3s var(--ease); }
.notice-item:hover { background: var(--paper); padding-left: 14px; }
.n-date { flex-shrink: 0; width: 58px; text-align: center; border-right: 2px solid var(--red); padding-right: 16px; }
.n-date strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--red); line-height: 1.15; }
.n-date span { font-size: 0.76rem; color: var(--text-soft); }
.notice-item h4 { font-size: 1.05rem; margin-bottom: 4px; }
.notice-item p { font-size: 0.9rem; color: var(--text-soft); }
.n-new {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-family: var(--font-bn); font-size: 0.66rem; font-weight: 700;
  padding: 2px 10px; background: var(--red); color: #fff; border-radius: 2px;
}

.routine-tabs { display: flex; gap: 0; margin-bottom: 24px; border: 1px solid var(--border); width: fit-content; border-radius: 4px; overflow: hidden; }
.r-tab { padding: 11px 32px; font-size: 0.95rem; font-weight: 600; cursor: pointer; background: transparent; border: none; color: var(--text-soft); transition: all 0.3s; }
.r-tab.active { background: var(--red); color: #fff; }
.routine-wrap { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.routine-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: var(--surface); }
.routine-table.hidden { display: none; }
.routine-table th {
  text-align: left; padding: 15px 20px;
  font-family: var(--font-en); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: var(--ink); color: #f5f5f5; font-weight: 600;
}
[data-theme="dark"] .routine-table th { background: #1c1c1c; }
.routine-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.routine-table tr:last-child td { border-bottom: none; }
.routine-table tbody tr:hover { background: var(--paper); }
.routine-table td:first-child { font-weight: 600; color: var(--text); }
.exam-cell { color: var(--red) !important; font-weight: 600; }

/* ═══════════ ADMISSION ═══════════ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(245, 242, 234, 0.14); border: 1px solid rgba(245, 242, 234, 0.14); margin-bottom: 60px; }
.step { background: var(--ink); padding: 36px 32px; transition: background 0.3s; }
.step:hover { background: var(--ink-2); }
.step span { font-family: var(--font-en); font-size: 0.64rem; letter-spacing: 0.28em; text-transform: uppercase; color: #e5273a; font-weight: 600; }
.step h4 { font-size: 1.25rem; margin: 12px 0 8px; }
.step p { font-size: 0.92rem; color: rgba(245, 242, 234, 0.6); }

.admission-form {
  background: rgba(245, 242, 234, 0.04);
  border: 1px solid rgba(245, 242, 234, 0.14);
  border-top: 3px solid #c8102e;
  padding: 48px 46px; max-width: 860px; margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 9px; color: rgba(245, 242, 234, 0.85); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 16px; border-radius: 3px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(245, 242, 234, 0.18); color: #f5f2ea;
  font-family: var(--font-bn); font-size: 0.98rem;
  transition: border-color 0.25s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(245, 242, 234, 0.35); }
.form-group select option { background: #161616; color: #f5f5f5; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #e5273a; }
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.83rem; color: rgba(245, 242, 234, 0.5); margin-top: 16px; }

/* ═══════════ FAQ ═══════════ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 24px 6px; cursor: pointer; font-weight: 600; font-size: 1.06rem;
  font-family: var(--font-serif); list-style: none; user-select: none;
  transition: color 0.25s;
}
.faq-item summary:hover { color: var(--red); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { color: var(--red); transition: transform 0.35s var(--ease); font-size: 0.8rem; flex-shrink: 0; }
.faq-item[open] summary i { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--red); }
.faq-body { padding: 0 6px 26px; color: var(--text-soft); font-size: 0.98rem; max-width: 90%; }

/* ═══════════ CONTACT ═══════════ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: stretch; }
.contact-cards { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.contact-card {
  display: flex; align-items: center; gap: 20px; width: 100%; text-align: left;
  padding: 21px 8px; border: none; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text); cursor: pointer; font-family: var(--font-bn);
  transition: all 0.3s var(--ease);
}
.contact-card.static { cursor: default; }
.contact-card:not(.static):hover { background: var(--surface); padding-left: 16px; }
.contact-card > i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem; color: var(--red); border: 1px solid var(--border); flex-shrink: 0; transition: all 0.3s; }
.contact-card:not(.static):hover > i { background: #c8102e; border-color: #c8102e; color: #ffffff; }
.contact-card h4 { font-size: 1.04rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-soft); }
.c-arrow { margin-left: auto; color: var(--border); transition: all 0.3s; }
.contact-card:not(.static):hover .c-arrow { color: var(--red); transform: translateX(5px); }
.map-wrap { border: 1px solid var(--border); border-radius: 2px; overflow: hidden; min-height: 440px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 440px; border: 0; filter: grayscale(0.35) saturate(0.85); }
[data-theme="dark"] .map-wrap iframe { filter: invert(0.88) hue-rotate(180deg) saturate(0.6); }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--ink); color: rgba(245, 242, 234, 0.7); padding-top: 76px; }
.footer .brand-mark { background: transparent; }
.footer .brand-text strong { color: #e5273a; }
.footer-inner { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 44px; padding-bottom: 60px; }
.footer-brand p { font-size: 0.94rem; margin: 22px 0 24px; max-width: 320px; color: rgba(245, 242, 234, 0.55); }
.socials { display: flex; gap: 10px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(245, 242, 234, 0.22);
  color: rgba(245, 242, 234, 0.65); cursor: pointer; font-size: 0.95rem;
  transition: all 0.3s var(--ease);
}
.social-btn:hover { border-color: #e5273a; color: #ffffff; background: rgba(229, 39, 58, 0.12); transform: translateY(-3px); }
.footer-col h5 { font-family: var(--font-en); font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: #e5273a; margin-bottom: 22px; font-weight: 600; }
.footer-col a { display: block; padding: 6px 0; color: rgba(245, 242, 234, 0.6); font-size: 0.95rem; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: #ffffff; padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(245, 242, 234, 0.1); padding: 22px 0; font-size: 0.82rem; color: rgba(245, 242, 234, 0.4); }
.fb-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.fb-inner span:last-child { font-family: var(--font-en); letter-spacing: 0.18em; font-size: 0.68rem; }

/* ═══════════ FLOATING WA ═══════════ */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.7rem; color: #fff;
  background: #1fa855;
  box-shadow: 0 12px 30px -8px rgba(31, 168, 85, 0.55);
  transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.1); }

/* ═══════════ LIVE VISITORS BADGE ═══════════ */
.live-visitors {
  position: fixed; bottom: 32px; left: 28px; z-index: 90;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 100px;
  background: var(--bg); border: 1px solid var(--border);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.35);
  font-size: 0.82rem; color: var(--text-soft);
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.live-visitors.show { opacity: 1; transform: translateY(0); }
.lv-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #c8102e; flex-shrink: 0;
  animation: lvPulse 1.8s ease-out infinite;
}
@keyframes lvPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(200, 16, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); }
}
.lv-text strong { color: var(--red); font-weight: 700; display: inline-block; min-width: 1em; text-align: center; transition: opacity 0.25s, transform 0.25s; }
.lv-text strong.switching { opacity: 0; transform: translateY(-6px); }
@media (max-width: 640px) {
  .live-visitors { bottom: 24px; left: 16px; padding: 8px 13px; font-size: 0.76rem; }
}

/* ═══════════ MODALS ═══════════ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg); width: 100%; max-width: 440px;
  padding: 46px 42px; position: relative; border-top: 3px solid var(--red);
  transform: translateY(26px); transition: transform 0.45s var(--ease);
  box-shadow: var(--shadow); max-height: 88vh; overflow-y: auto;
}
.modal.open .modal-box { transform: translateY(0); }
.teacher-modal-box { max-width: 520px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 50%;
  color: var(--text-soft); cursor: pointer; transition: all 0.3s;
}
.modal-close:hover { color: var(--red); border-color: var(--red); }
.modal-kicker { font-family: var(--font-en); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--red); font-weight: 600; margin-bottom: 10px; }
.modal-box h3 { font-size: 1.55rem; margin-bottom: 12px; }
.modal-desc { color: var(--text-soft); font-size: 0.95rem; margin-bottom: 26px; }
.portal-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.portal-form input {
  padding: 14px 16px; border-radius: 3px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); font-family: var(--font-bn); font-size: 0.97rem;
}
.portal-form input:focus { outline: none; border-color: var(--red); }
.modal-note { font-size: 0.8rem; color: var(--text-soft); margin-top: 16px; text-align: center; }

/* Teacher modal */
.tm-head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding-right: 30px; }
.tm-avatar { width: 74px; height: 74px; font-size: 1.5rem; }
.tm-head h3 { font-size: 1.45rem; margin-bottom: 2px; }
.tm-subject { color: var(--red); font-weight: 600; font-size: 0.92rem; }
.tm-body { margin-bottom: 28px; }
.tm-row { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.tm-row span { font-size: 0.82rem; color: var(--text-soft); font-weight: 600; padding-top: 2px; }
.tm-row p { font-size: 0.96rem; }
.tm-quote {
  margin-top: 22px; padding: 18px 22px; border-left: 2px solid var(--red);
  background: var(--paper); color: var(--text-soft); font-size: 0.94rem; font-style: italic;
}

/* ═══════════ TOAST ═══════════ */
.toast {
  position: fixed; bottom: 104px; left: 50%; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #f5f2ea; border-left: 3px solid #e5273a;
  padding: 15px 28px; font-weight: 500; font-size: 0.94rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: all 0.4s var(--ease); z-index: 400; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════ REVEAL ═══════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .portal-btn span { display: none; }
  .hero-content { grid-template-columns: 1fr; gap: 44px; padding-top: 80px; padding-bottom: 90px; }
  .hero-panel { max-width: 460px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .sec-title-row { grid-template-columns: 1fr; gap: 16px; }
  .topbar-right span:last-child { display: none; }
  .topbar-div { display: none; }
}
@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .prog-grid, .nr-grid, .contact-grid { grid-template-columns: 1fr; }
  .nr-grid { gap: 64px; }
  .counters, .steps { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .admission-form { padding: 36px 26px; }
  .teacher-row { flex-wrap: wrap; gap: 14px 18px; }
  .t-meta { flex-basis: 100%; padding-left: 78px; margin-top: -8px; }
  .nav-links.mobile-open {
    display: flex; flex-direction: column; position: fixed; top: 80px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 24px 30px; gap: 18px; box-shadow: var(--shadow); z-index: 99;
  }
  .prog-card { padding: 36px 28px; }
  .hs-inner { justify-content: flex-start; }
  .lb-nav { display: none; }
  .topbar { display: none; }
}
@media (max-width: 520px) {
  .why-grid, .gallery-grid, .footer-inner, .counters, .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .brand-text small { display: none; }
  .tm-row { grid-template-columns: 1fr; gap: 2px; }
  .t-meta { display: none; }
}
