/* ============================================================
   দারুস সালাম নূরানী মাদরাসা — Master Stylesheet
   Professional, fully responsive design system (green + gold)
   ============================================================ */

:root {
  --primary: #0b5a38;
  --primary-dark: #07381f;
  --primary-light: #0e7a4d;
  --primary-soft: #eaf5ef;
  --accent: #d4a23c;
  --accent-light: #f0c96a;
  --accent-dark: #b8862a;
  --dark: #12241a;
  --ink: #22332a;
  --muted: #65776b;
  --bg: #f6faf7;
  --bg-soft: #ecf5ef;
  --card: #ffffff;
  --line: #dde9e1;
  --shadow-sm: 0 2px 12px rgba(12, 61, 40, .07);
  --shadow: 0 14px 34px rgba(12, 61, 40, .13);
  --shadow-lg: 0 30px 70px rgba(12, 61, 40, .18);
  --radius: 16px;
  --radius-lg: 26px;
  --grad: linear-gradient(135deg, #0b5a38 0%, #0e7a4d 55%, #128a52 100%);
  --grad-gold: linear-gradient(135deg, #d4a23c 0%, #f0c96a 50%, #b8862a 100%);
  --font: 'Hind Siliguri', 'Noto Sans Bengali', 'Segoe UI', system-ui, sans-serif;
  --header-h: 118px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; } /* prevent off-screen drawers/animations from creating horizontal scroll */
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: clip;   /* hard-clip any horizontally-overflowing animated marquees/carousels */
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
.container { width: min(1280px, 92%); margin-inline: auto; }
section { padding: 88px 0; }

/* ---------- Section headers ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.sec-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212, 162, 60, .14); color: var(--accent-dark);
  font-weight: 700; font-size: .82rem; letter-spacing: 1px;
  padding: 7px 18px; border-radius: 40px; margin-bottom: 16px; text-transform: uppercase;
}
.sec-tag::before, .sec-tag::after { content: ""; width: 18px; height: 2px; background: var(--accent); border-radius: 2px; }
.sec-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--dark); line-height: 1.3; }
.sec-title span { color: var(--primary-light); }
.sec-sub { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.sec-left .sec-head { text-align: left; margin-inline: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; border-radius: 60px; font-weight: 700; font-size: 1rem;
  transition: .35s ease; position: relative; overflow: hidden; z-index: 1;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 24px rgba(11,90,56,.32); }
.btn-primary::after { content:""; position:absolute; inset:0; z-index:-1; background: var(--grad-gold); opacity:0; transition:.35s; }
.btn-primary:hover { transform: translateY(-3px); color:#1c2305; box-shadow: 0 16px 34px rgba(212,162,60,.42); }
.btn-primary:hover::after { opacity: 1; }
.btn-gold { color:#1c2305; background: var(--grad-gold); box-shadow: 0 10px 24px rgba(212,162,60,.4); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(212,162,60,.55); }
.btn-ghost { color: var(--primary); border: 2px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color:#fff; transform: translateY(-3px); }
.btn-outline { color:#fff; border: 2px solid rgba(255,255,255,.55); }
.btn-outline:hover { background:#fff; color: var(--primary); transform: translateY(-3px); }
.btn-sm { padding: 9px 20px; font-size: .88rem; }

/* ============================================================
   HEADER  (solid, sticky, professional)
   ============================================================ */
.site-header { display: contents; } /* transparent wrapper: lets the sticky navbar travel the whole page */

/* scrolling notice bar (top of website) — stays in normal flow, scrolls away */
.notice-bar { background: var(--grad-gold); color: #1c2305; overflow: hidden; display: flex; align-items: center; width: 100%; max-width: 100%; }
.notice-bar-label { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; background: #1c2305; color: #fff; font-weight: 800; font-size: .82rem; padding: 9px 16px; position: relative; z-index: 2; box-shadow: 2px 0 8px rgba(0,0,0,.12); letter-spacing: 1px; white-space: nowrap; }
.notice-bar-label svg { width: 17px; height: 17px; color: var(--accent-light); }
.notice-marquee { flex: 1; overflow: hidden; position: relative; min-width: 0; contain: layout paint; }
.notice-track { display: inline-flex; align-items: center; gap: 44px; padding-left: 24px; white-space: nowrap; animation: noticemove 32s linear infinite; will-change: transform; max-width: none; }
.notice-track:hover { animation-play-state: paused; }
@keyframes noticemove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.notice-track a { font-size: .92rem; font-weight: 700; display: inline-flex; align-items: center; gap: 9px; }
.notice-track a::before { content: "•"; color: var(--primary-dark); font-size: 1.1rem; }
.notice-track a:hover { color: var(--primary-dark); text-decoration: underline; }

/* top utility bar — stays in normal flow, scrolls away */
.topbar { background: var(--primary-dark); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; opacity: .92; }
.topbar a:hover { opacity: 1; color: var(--accent-light); }
.topbar svg { width: 14px; height: 14px; }
.topbar-l, .topbar-r { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.topbar-social { display: flex; gap: 6px; }
.topbar-social a { width: 26px; height: 26px; border-radius: 8px; background: rgba(255,255,255,.1); justify-content: center; }
.topbar-social a:hover { background: var(--accent); color:#1c2305; }

/* main navbar — this ONE is sticky; it sticks to the top after the topbar scrolls past */
.navbar { position: sticky; top: 0; z-index: 140; background: #fff; box-shadow: 0 1px 0 rgba(12,61,40,.06); transition: box-shadow .35s; }
.navbar.scrolled { box-shadow: 0 10px 30px rgba(12,61,40,.14); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; } /* constant height = no layout shift, no loop */

.brand { display: flex; align-items: center; gap: 13px; }
.brand-img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center; border: 3px solid var(--accent); background: #fff; box-shadow: 0 4px 14px rgba(12,61,40,.16); }
.brand h1 { font-size: 1.28rem; color: var(--dark); font-weight: 800; line-height: 1.15; }
.brand p { font-size: .74rem; color: var(--muted); letter-spacing: .2px; line-height: 1.4; }

.menu { display: flex; align-items: center; gap: 0; flex: 0 0 auto; min-width: 0; }
.menu > li { white-space: nowrap; }
/* give the menu the horizontal center of the navbar, fill remaining space between brand and CTA */
.nav-inner .menu { }
.nav-actions { flex-shrink: 0; }
.menu > li > a {
  display: block; color: var(--ink); font-weight: 600; padding: 10px 10px;
  border-radius: 9px; font-size: .92rem; position: relative; transition: .25s; white-space: nowrap;
}
.menu > li > a:hover, .menu > li > a.active { color: var(--primary); background: var(--primary-soft); }
.menu .has-drop > a { display: flex; align-items: center; gap: 4px; }
.menu .has-drop > a .chev { width: 13px; height: 13px; transition: .25s; flex-shrink: 0; }
.has-drop:hover > a .chev { transform: rotate(180deg); }

/* dropdown */
.has-drop { position: relative; }
.dropdown {
  position: absolute; top: 112%; left: 0; min-width: 250px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  padding: 10px; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .28s; z-index: 60; border-top: 3px solid var(--accent);
}
.has-drop:hover .dropdown, .has-drop:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; transition: .25s; }
.dropdown a:hover { background: var(--primary-soft); color: var(--primary); padding-left: 20px; }
.dropdown a svg { width: 17px; height: 17px; color: var(--accent-dark); flex-shrink: 0; }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); place-items: center; transition: .3s; }
.nav-toggle:hover { background: var(--primary); color: #fff; }
.nav-toggle svg { width: 26px; height: 26px; }

/* scrolled hide desktop cta on small */
.nav-cta-desktop { white-space: nowrap; }

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 300; background: var(--primary-dark);
  display: flex; flex-direction: column; padding: 22px;
  transform: translateX(100%); transition: .4s cubic-bezier(.77,0,.18,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mobile-menu-head .mm-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.mobile-menu-head img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid var(--accent); object-fit: cover; }
.mobile-menu-head h2 { font-size: 1.1rem; }
.mobile-menu-head p { font-size: .72rem; color: var(--accent-light); }
.mobile-close { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.mobile-close svg { width: 24px; height: 24px; }
.mobile-menu nav { margin-top: 22px; overflow-y: auto; }
.mobile-menu nav a { display: block; color: #fff; padding: 13px 8px; font-size: 1.12rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.09); }
.mobile-menu nav a:hover { color: var(--accent-light); padding-left: 14px; }
.mobile-cta { margin-top: auto; display: flex; gap: 12px; }

/* ============================================================
   HERO  (robust gradient + background image, single column)
   ============================================================ */
.hero {
  position: relative; display: flex; align-items: center; min-height: 92vh;
  color: #fff; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7,56,31,.85) 0%, rgba(7,56,31,.7) 50%, rgba(7,56,31,.92) 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
/* dark gradient overlay over the hero background image */
.hero-overlay { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(7,45,28,.55) 0%, rgba(7,45,28,.45) 45%, rgba(5,35,22,.85) 100%);
}
.hero-pattern { position: absolute; inset: 0; z-index: 2; opacity: .14; pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(240,201,106,.5) 2px, transparent 3px),
    radial-gradient(circle at 34% 64%, rgba(240,201,106,.35) 2px, transparent 3px),
    radial-gradient(circle at 56% 18%, rgba(240,201,106,.45) 2px, transparent 3px),
    radial-gradient(circle at 78% 52%, rgba(240,201,106,.35) 2px, transparent 3px),
    radial-gradient(circle at 92% 30%, rgba(240,201,106,.45) 2px, transparent 3px),
    radial-gradient(circle at 48% 86%, rgba(240,201,106,.3) 2px, transparent 3px);
  background-size: 96px 96px;
}
.hero .container { position: relative; z-index: 3; text-align: center; padding: 120px 0 150px; display: flex; flex-direction: column; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(6px); padding: 9px 20px; border-radius: 40px; font-size: .9rem; font-weight: 600; margin-bottom: 24px; }
.hero-badge svg { width: 18px; height: 18px; color: var(--accent-light); }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.18; margin-bottom: 22px; max-width: 900px; }
.hero h1 span { color: var(--accent-light); }
.hero .lead { font-size: 1.15rem; opacity: .96; max-width: 720px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 46px; margin-top: 46px; justify-content: center; }
.hero-stat h3 { font-size: 2rem; font-weight: 800; color: var(--accent-light); }
.hero-stat p { font-size: .88rem; opacity: .88; }

.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 4; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }
.scroll-cue { position: absolute; bottom: 100px; left: 5%; color: #fff; font-size: .72rem; letter-spacing: 2px; display: flex; align-items: center; gap: 10px; writing-mode: vertical-rl; z-index: 4; }
.scroll-cue::after { content:""; width:2px; height:38px; background: var(--accent-light); animation: scrollline 1.8s ease-in-out infinite; }
@keyframes scrollline { 0%,100%{transform:scaleY(.4);transform-origin:top} 50%{transform:scaleY(1)} }

/* ============================================================
   INNER PAGE HERO (title banner) — calligraphy bg + overlay
   ============================================================ */
.page-hero {
  position: relative; color: #fff; padding: 120px 0 78px; overflow: hidden;
  background:
    radial-gradient(circle at 88% 22%, rgba(240,201,106,.25), transparent 30%),
    linear-gradient(135deg, #07381f 0%, #0b5a38 52%, #0e7a4d 100%);
}
/* full-bleed calligraphy background */
.page-hero-calligraphy { position: absolute; inset: 0; z-index: 0; opacity: .35; overflow: hidden; }
.page-hero-calligraphy img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* dark overlay over the calligraphy for text readability */
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(5,45,28,.9) 0%, rgba(5,45,28,.72) 45%, rgba(5,45,28,.55) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .crumbs { display: flex; gap: 10px; align-items: center; font-size: .92rem; opacity: .92; margin-bottom: 16px; font-weight: 600; flex-wrap: wrap; }
.page-hero .crumbs a:hover { color: var(--accent-light); }
.page-hero .crumbs svg { width: 15px; height: 15px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.25; }
.page-hero p { max-width: 680px; margin-top: 12px; opacity: .92; font-size: 1.02rem; }

/* ============================================================
   TICKER  /  STATS  /  CTA  /  ADMISSION
   ============================================================ */
.ticker { background: var(--grad-gold); color: #1c2305; padding: 11px 0; overflow: hidden; font-weight: 700; }
.ticker-track { display: flex; gap: 40px; width: max-content; animation: tick 30s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: .94rem; }
.ticker-track span svg { width: 18px; height: 18px; }
@keyframes tick { to { transform: translateX(-50%); } }

.stats-band { background: var(--grad); color: #fff; border-radius: var(--radius-lg); padding: 52px 38px; position: relative; overflow: hidden; }
.stats-band::before { content:""; position:absolute; right:-60px; top:-60px; width:220px; height:220px; border-radius:50%; background: rgba(240,201,106,.15); }
.stats-band::after { content:""; position:absolute; left:-40px; bottom:-80px; width:180px; height:180px; border-radius:50%; background: rgba(255,255,255,.08); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; position: relative; z-index: 1; }
.stat h2 { font-size: 2.5rem; font-weight: 800; color: #fff; }
.stat h2 span { color: var(--accent-light); }
.stat p { opacity: .9; }

.cta { background: var(--grad-gold); border-radius: var(--radius-lg); padding: 50px 40px; text-align: center; position: relative; overflow: hidden; color:#1c2305; }
.cta::before, .cta::after { content:""; position:absolute; border-radius:50%; }
.cta::before { width:180px; height:180px; background: rgba(255,255,255,.22); top:-80px; left:-40px; }
.cta::after { width:140px; height:140px; background: rgba(7,64,42,.1); bottom:-60px; right:-30px; }
.cta h2 { font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: 12px; }
.cta p { margin-bottom: 22px; font-weight: 600; }
.cta .btn { position: relative; z-index: 1; }

.admission { background: var(--grad); border-radius: var(--radius-lg); padding: 56px 48px; color:#fff; position: relative; overflow: hidden; }
.admission::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 90% 10%, rgba(240,201,106,.25), transparent 40%); }
.admission .split { position: relative; z-index: 1; }
.admission h2 { font-size: clamp(1.7rem,3vw,2.5rem); margin-bottom: 14px; }
.admission p { opacity: .94; margin-bottom: 22px; }
.admission-steps { display: grid; gap: 16px; }
.admission-step { display: flex; gap: 16px; align-items: flex-start; }
.admission-step .num { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--grad-gold); color:#1c2305; display: grid; place-items: center; font-weight: 800; }
.admission-step strong { display: block; }
.admission-step p { font-size: .9rem; margin: 0; }

/* ============================================================
   COMPONENT CARDS
   ============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }

.feature { background: var(--card); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); position: relative; overflow: hidden; transition: .4s; }
.feature::before { content:""; position:absolute; top:0; left:0; width:100%; height:4px; background: var(--grad-gold); transform: scaleX(0); transform-origin:left; transition:.4s; }
.feature:hover { box-shadow: var(--shadow); }
.feature:hover::before { transform: scaleX(1); }
.feature-icon { width: 62px; height: 62px; border-radius: 17px; margin: 0 auto 18px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); transition: .4s; }
.feature-icon svg { width: 30px; height: 30px; }
.feature:hover .feature-icon { background: var(--grad); color: #fff; } /* color change only, no position change */
.feature:hover .feature-icon svg { transform: none; }
.feature h3 { font-size: 1.16rem; margin-bottom: 9px; color: var(--dark); }
.feature p { color: var(--muted); font-size: .94rem; }
/* centered icon-feature cards (icon + text centered, color-only hover) */
.feature.center { text-align: center; }
.feature.center h3, .feature.center p { text-align: center; }
.feature.center .feature-icon { margin-inline: auto; }
.feature.center .about-points { text-align: left; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual { position: relative; }
.about-visual-main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.about-visual-main img { width: 100%; height: 440px; object-fit: cover; }
.about-visual::before { content:""; position:absolute; inset:-20px 20px 20px -20px; border-radius: var(--radius-lg); border: 3px dashed var(--accent); z-index:-1; }
.exp-badge { position:absolute; bottom:-24px; right:-18px; background: var(--grad); color:#fff; border-radius: 20px; padding: 22px 26px; box-shadow: var(--shadow-lg); text-align:center; }
.exp-badge h3 { font-size: 2.3rem; color: var(--accent-light); }
.exp-badge p { font-size: .88rem; }
.about-points { margin: 22px 0; display: grid; gap: 13px; }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points li svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.about-points li strong { color: var(--dark); }

/* departments */
.dept { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: .4s; color: #fff; aspect-ratio: 4/4.6; }
.dept:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.dept img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: .6s; }
.dept:hover img { transform: scale(1.08); }
.dept-overlay { position:absolute; inset:0; background: linear-gradient(to top, rgba(7,40,27,.95) 0%, rgba(7,40,27,.42) 50%, transparent 80%); display:flex; flex-direction:column; justify-content:flex-end; padding:26px; }
.dept-overlay .tag { display:inline-block; background: var(--grad-gold); color:#1c2305; font-weight:700; font-size:.78rem; padding:5px 14px; border-radius:30px; width:fit-content; margin-bottom:12px; }
.dept-overlay h3 { font-size:1.35rem; margin-bottom:8px; }
.dept-overlay p { font-size:.9rem; opacity:.9; margin-bottom:12px; }

.dept-overlay a { display:inline-flex; align-items:center; gap:8px; font-weight:700; color: var(--accent-light); }
.dept-overlay a svg { width:18px; height:18px; transition:transform .3s; }
.dept-overlay a:hover svg { transform: translateX(5px); }

/* teachers */
.teacher { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); overflow: hidden; transition: .4s; text-align: center; position: relative; }
.teacher:hover { transform: translateY(-9px); box-shadow: var(--shadow); }
.teacher-img { aspect-ratio: 1/1.05; overflow: hidden; position: relative; }
.teacher-img img { width:100%; height:100%; object-fit: cover; object-position: top; transition:.5s; filter: saturate(.95) contrast(1.02); }
.teacher:hover .teacher-img img { transform: scale(1.07); }
.teacher-body { padding: 20px 18px 24px; }
.teacher-body h3 { font-size: 1.12rem; color: var(--dark); }
.teacher-body p { color: var(--primary); font-weight: 600; font-size: .88rem; }
.teacher-social { position:absolute; top:14px; right:14px; display:flex; flex-direction:column; gap:8px; }
.teacher-social a { width:36px; height:36px; border-radius:50%; background:#fff; color:var(--primary); display:grid; place-items:center; box-shadow:var(--shadow-sm); opacity:0; transform:translateX(20px); transition:.4s; }
.teacher:hover .teacher-social a { opacity:1; transform:translateX(0); }
.teacher-social a:hover { background: var(--primary); color:#fff; }
.teacher-social a:nth-child(2){transition-delay:.08s}
.teacher-social a:nth-child(3){transition-delay:.16s}
.teacher-social svg { width:16px; height:16px; }

/* testimonials */
.testi-scroll { display:flex; gap:26px; overflow-x:auto; padding-bottom:14px; scrollbar-width:none; -ms-overflow-style:none; cursor:grab; }
.testi-scroll::-webkit-scrollbar { display:none; }
.testi-scroll::-webkit-scrollbar-thumb { background: var(--accent); border-radius:20px; }
.testi-scroll:hover { animation-play-state: paused; }
.testi { flex:0 0 360px; scroll-snap-align:start; background: var(--card); border-radius: var(--radius); padding:30px; box-shadow: var(--shadow-sm); border:1px solid var(--line); position:relative; }
.testi-quote { position:absolute; top:-18px; left:26px; width:46px; height:46px; border-radius:50%; background:var(--grad-gold); color:#1c2305; display:grid; place-items:center; }
.testi-quote svg { width:22px; height:22px; }
.testi p { color: var(--ink); font-size:.96rem; margin-bottom:22px; }
.testi-foot { display:flex; align-items:center; gap:14px; }
.testi-foot img { width:52px; height:52px; border-radius:50%; object-fit:cover; border:3px solid var(--accent-light); }
.testi-foot strong { color:var(--dark); font-size:1rem; display:block; }
.testi-foot span { font-size:.82rem; color:var(--muted); }
.testi-stars { color:var(--accent); margin-top:4px; letter-spacing:2px; font-size:.85rem; }

/* gallery + lightbox */
.gallery-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.gallery-item { position:relative; border-radius:16px; overflow:hidden; cursor:pointer; box-shadow:var(--shadow-sm); aspect-ratio:4/3; }
.gallery-item.tall { aspect-ratio:4/4.6; grid-row:span 2; }
.gallery-item img { width:100%; height:100%; object-fit:cover; transition:.5s; }
.gallery-item:hover img { transform:scale(1.1); }
.gallery-item-c { position:absolute; inset:0; background:linear-gradient(to top, rgba(7,40,27,.82), transparent 60%); opacity:0; transition:.35s; display:flex; align-items:flex-end; padding:20px; color:#fff; font-weight:600; }
.gallery-item:hover .gallery-item-c { opacity:1; }
.lightbox { position:fixed; inset:0; z-index:400; background:rgba(5,25,17,.94); display:none; align-items:center; justify-content:center; padding:30px; }
.lightbox.open { display:flex; }
.lightbox img { max-width:90%; max-height:85vh; border-radius:12px; box-shadow:var(--shadow-lg); }
.lightbox .lb-close,.lightbox .lb-prev,.lightbox .lb-next { position:absolute; width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,.12); color:#fff; display:grid; place-items:center; font-size:1.6rem; transition:.3s; }
.lightbox .lb-close:hover,.lightbox .lb-prev:hover,.lightbox .lb-next:hover { background:var(--accent); color:#1c2305; }
.lightbox .lb-close { top:24px; right:24px; }
.lightbox .lb-prev { left:24px; top:50%; transform:translateY(-50%); }
.lightbox .lb-next { right:24px; top:50%; transform:translateY(-50%); }

/* notices */
.notice-list { display:grid; gap:14px; }
.notice-item { display:flex; align-items:center; gap:18px; background:var(--card); border:1px solid var(--line); border-radius:16px; padding:17px 22px; transition:.3s; box-shadow:var(--shadow-sm); }
.notice-item:hover { border-color:var(--accent); transform:translateX(8px); box-shadow:var(--shadow); }
.notice-date { flex-shrink:0; width:60px; text-align:center; background:var(--primary-soft); border-radius:12px; padding:8px; color:var(--primary); }
.notice-date b { font-size:1.55rem; display:block; line-height:1; }
.notice-date span { font-size:.76rem; font-weight:700; }
.notice-item h4 { color:var(--dark); font-size:1.02rem; }
.notice-item p { font-size:.85rem; color:var(--muted); }
.notice-item .mid { flex:1; }
.notice-item .badge { font-size:.74rem; font-weight:700; padding:4px 12px; border-radius:30px; white-space:nowrap; }
.badge.new { background:#fdecec; color:#c0392b; }
.badge.live { background:#e7f7ec; color:#128a52; }
.notice-item .arr { color:var(--accent-dark); }
.notice-item .arr svg { width:22px; height:22px; }

/* timeline */
.timeline { position:relative; max-width:820px; margin:0 auto; }
.timeline::before { content:""; position:absolute; left:50%; top:0; bottom:0; width:3px; background:var(--line); transform:translateX(-50%); }
.tl-item { position:relative; width:50%; padding:0 44px 50px; }
.tl-item:nth-child(odd){ left:0; text-align:right; }
.tl-item:nth-child(even){ left:50%; }
.tl-item .dot { position:absolute; top:4px; width:18px; height:18px; border-radius:50%; background:var(--accent); border:4px solid var(--bg); box-shadow:0 0 0 3px var(--accent); }
.tl-item:nth-child(odd) .dot { right:-9px; }
.tl-item:nth-child(even) .dot { left:-9px; }
.tl-year { display:inline-block; background:var(--grad); color:#fff; padding:5px 16px; border-radius:30px; font-weight:700; margin-bottom:12px; }
.tl-body { background:var(--card); border:1px solid var(--line); padding:22px; border-radius:16px; box-shadow:var(--shadow-sm); text-align:left; }
.tl-body h4 { color:var(--dark); margin-bottom:6px; }
.tl-body p { color:var(--muted); font-size:.92rem; }

/* accordion */
.acc-item { background:var(--card); border:1px solid var(--line); border-radius:14px; margin-bottom:12px; overflow:hidden; box-shadow:var(--shadow-sm); }
.acc-head { width:100%; text-align:left; display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 24px; font-weight:700; color:var(--dark); font-size:1.04rem; }
.acc-head .acc-ic { width:32px; height:32px; flex-shrink:0; border-radius:50%; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; transition:.3s; }
.acc-head .acc-ic svg { width:18px; height:18px; }
.acc-item.open .acc-head { color:var(--primary); }
.acc-item.open .acc-ic { background:var(--grad); color:#fff; transform:rotate(45deg); }
.acc-body { max-height:0; overflow:hidden; transition:max-height .4s ease; }
.acc-body-inner { padding:0 24px 22px; color:var(--muted); }

/* contact */
.contact-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-bottom:44px; }
.contact-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:30px; text-align:center; box-shadow:var(--shadow-sm); transition:.35s; }
.contact-card:hover { transform:translateY(-8px); box-shadow:var(--shadow); border-color:var(--accent); }
.contact-card .ic { width:64px; height:64px; margin:0 auto 16px; border-radius:16px; background:var(--grad); color:#fff; display:grid; place-items:center; }
.contact-card .ic svg { width:30px; height:30px; }
.contact-card h4 { color:var(--dark); margin-bottom:6px; }
.contact-card p { color:var(--muted); font-size:.94rem; }
.contact-wrap { display:grid; grid-template-columns:1fr 1fr; gap:30px; align-items:start; }
.contact-form { background:var(--card); border:1px solid var(--line); border-radius:var(--radius-lg); padding:38px; box-shadow:var(--shadow-sm); }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.field { margin-bottom:16px; }
.field label { display:block; font-weight:600; margin-bottom:7px; color:var(--dark); font-size:.92rem; }
.field input,.field textarea,.field select { width:100%; padding:13px 16px; border:1.5px solid var(--line); border-radius:12px; background:var(--bg); transition:.3s; color:var(--ink); }
.field input:focus,.field textarea:focus,.field select:focus { border-color:var(--primary); background:#fff; outline:none; box-shadow:0 0 0 4px rgba(11,90,56,.1); }
.field textarea { min-height:120px; resize:vertical; }
.map-wrap { border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-sm); border:1px solid var(--line); }
.map-wrap iframe { width:100%; height:100%; min-height:420px; border:0; display:block; }

/* donation methods */
.pay-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:22px; }
.pay-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:26px; box-shadow:var(--shadow-sm); transition:.35s; text-align:center; }
.pay-card:hover { transform:translateY(-8px); box-shadow:var(--shadow); border-color:var(--accent); }
.pay-logo { width:72px; height:72px; margin:0 auto 14px; border-radius:18px; display:grid; place-items:center; color:#fff; font-weight:800; font-size:1.4rem; }
.pay-logo.bkash { background:#e2136e; }
.pay-logo.nagad { background:#f6921e; }
.pay-logo.rocket { background:#8c3494; }
.pay-logo.bank { background:var(--grad); }
.pay-card h3 { margin-bottom:4px; }
.pay-num { font-size:1.3rem; font-weight:800; color:var(--primary); letter-spacing:.5px; margin:6px 0; }
.pay-note { font-size:.82rem; color:var(--muted); }
.pay-card .btn { margin-top:12px; }

/* results table */
.table-wrap { overflow-x:auto; background:var(--card); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-sm); }
table.results { width:100%; border-collapse:collapse; min-width:560px; }
table.results thead th { background:var(--grad); color:#fff; padding:14px 16px; text-align:left; font-size:.95rem; white-space:nowrap; }
table.results tbody td { padding:13px 16px; border-bottom:1px solid var(--line); font-size:.94rem; }
table.results tbody tr:nth-child(even){ background:var(--bg); }
table.results tbody tr:hover{ background:var(--primary-soft); }
.pill { display:inline-block; padding:4px 14px; border-radius:30px; font-size:.8rem; font-weight:700; background:var(--primary-soft); color:var(--primary); white-space:nowrap; }
.pill.gold { background:rgba(212,162,60,.16); color:var(--accent-dark); }

/* achievement highlight card */
.ach-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.ach-card { background:var(--card); border:1px solid var(--line); border-radius:var(--radius); padding:30px 26px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden; transition:.35s; }
.ach-card::after { content:""; position:absolute; bottom:0; left:0; width:100%; height:4px; background:var(--grad-gold); }
.ach-card:hover { transform:translateY(-8px); box-shadow:var(--shadow); }
.ach-card .ach-ic { width:56px; height:56px; flex-shrink:0; border-radius:14px; background:var(--primary-soft); color:var(--primary); display:grid; place-items:center; margin-bottom:16px; }
.ach-card .ach-ic svg { width:28px; height:28px; }
.ach-card h3 { font-size:1.12rem; margin-bottom:6px; }
.ach-card p { font-size:.9rem; color:var(--muted); }

/* icon-left (horizontal) feature card for staff etc. */
.feature.h-icon { display:flex; align-items:center; gap:18px; text-align:left; }
.feature.h-icon .feature-icon { margin:0; flex-shrink:0; border-radius:14px; }
.feature.h-icon h3 { margin-bottom:3px; text-align:left; }
.feature.h-icon p { text-align:left; margin:0; }
.feature.h-icon:hover .feature-icon { transform:translateY(-3px); }

/* faq intro strip */
.faq-note { display:flex; gap:16px; align-items:flex-start; background:var(--primary-soft); border:1px solid var(--line); border-left:4px solid var(--accent); border-radius:14px; padding:22px 24px; margin-top:34px; }
.faq-note svg { width:26px; height:26px; color:var(--primary); flex-shrink:0; margin-top:3px; }
.faq-note h4 { color:var(--dark); margin-bottom:4px; }
.faq-note p { color:var(--muted); font-size:.93rem; }

/* chips */
.chip-row { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-bottom:42px; }
.chip { padding:10px 22px; border-radius:40px; border:1.5px solid var(--line); background:var(--card); font-weight:600; color:var(--ink); cursor:pointer; transition:.25s; }
.chip:hover,.chip.active { background:var(--grad); color:#fff; border-color:transparent; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color:#d3e0d6; padding-top:64px; position:relative; overflow:hidden; }
.footer::before { content:""; position:absolute; top:0; left:0; width:100%; height:4px; background:var(--grad-gold); }
.footer-grid { display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:38px; padding-bottom:48px; }
.footer h3 { color:#fff; font-size:1.08rem; margin-bottom:18px; position:relative; padding-bottom:11px; }
.footer h3::after { content:""; position:absolute; bottom:0; left:0; width:40px; height:3px; background:var(--accent); border-radius:3px; }
.footer-about img { width:74px; height:74px; border-radius:50%; border:3px solid var(--accent); background:#fff; margin-bottom:15px; object-fit:cover; object-position:center; }
.footer-about p { font-size:.92rem; line-height:1.8; }
.footer-social { display:flex; gap:10px; margin-top:16px; }
.footer-social a { width:40px; height:40px; border-radius:12px; background:rgba(255,255,255,.06); display:grid; place-items:center; transition:.3s; }
.footer-social a:hover { background:var(--accent); color:#1c2305; transform:translateY(-4px); }
.footer-social svg { width:18px; height:18px; }
.footer-links li { margin-bottom:11px; }
.footer-links a { display:inline-flex; align-items:center; gap:8px; font-size:.92rem; transition:.25s; }
.footer-links a svg { width:15px; height:15px; color:var(--accent); }
.footer-links a:hover { color:var(--accent-light); padding-left:6px; }
.footer-contact li { display:flex; gap:12px; margin-bottom:15px; font-size:.92rem; }
.footer-contact svg { width:20px; height:20px; color:var(--accent); flex-shrink:0; margin-top:3px; }
.footer-banner { background:var(--grad); border-radius:16px; padding:20px; margin-bottom:28px; display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; }
.footer-banner h3 { color:#fff; margin:0; padding:0; font-size:1.18rem; }
.footer-banner h3::after { display:none; }
.footer-banner p { margin:4px 0 0; opacity:.9; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding:20px 0; text-align:center; font-size:.87rem; }
.footer-bottom a { color:var(--accent-light); }

/* ============================================================
   MISC
   ============================================================ */
.to-top { position:fixed; bottom:24px; right:24px; width:50px; height:50px; border-radius:13px; background:var(--grad); color:#fff; display:grid; place-items:center; box-shadow:var(--shadow-lg); opacity:0; visibility:hidden; transform:translateY(20px); transition:.35s; z-index:120; }
.to-top.show { opacity:1; visibility:visible; transform:none; }
.to-top:hover { background:var(--grad-gold); color:#1c2305; }
.to-top svg { width:24px; height:24px; }
.scroll-progress { position:fixed; top:0; left:0; height:4px; width:0; background:var(--grad-gold); z-index:500; }

.preloader { position:fixed; inset:0; z-index:2000; background:#fff; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; transition:opacity .5s, visibility .5s; }
.preloader.hide { opacity:0; visibility:hidden; }
.preloader .ring { position:relative; width:104px; height:104px; display:grid; place-items:center; }
.preloader .ring::before { content:""; position:absolute; inset:0; border-radius:50%; border:3px solid var(--primary-soft); border-top-color:var(--accent); animation:spin 1s linear infinite; }
.preloader img { width:70px; height:70px; border-radius:50%; object-fit:cover; object-position:center; position:relative; z-index:1; }
.preloader .txt { color:var(--primary); font-weight:700; font-size:.95rem; letter-spacing:.5px; }
@keyframes spin { to { transform:rotate(360deg); } }

[data-reveal] { opacity:0; transform:translateY(38px); transition:opacity .8s cubic-bezier(.25,.6,.3,1), transform .8s cubic-bezier(.25,.6,.3,1); }
[data-reveal].revealed { opacity:1; transform:none; }
[data-reveal="left"] { transform:translateX(-50px); }
[data-reveal="right"] { transform:translateX(50px); }
[data-reveal="zoom"] { transform:scale(.86); }
[data-reveal].revealed { transform:none; }
[data-delay="1"]{transition-delay:.1s}[data-delay="2"]{transition-delay:.2s}[data-delay="3"]{transition-delay:.3s}[data-delay="4"]{transition-delay:.4s}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1300px) {
  .menu, .nav-cta-desktop { display: none; }
  .nav-toggle { display: grid; }
  .navbar .nav-actions { gap: 8px; }
}
/* shrink menu text slightly on large screens so it never overflows the navbar */
@media (min-width: 1301px) {
  .menu > li > a { padding-left: 8px; padding-right: 8px; font-size: .87rem; }
  .brand h1 { font-size: 1.16rem; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .ach-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { padding: 100px 0 130px; }
  .hero-stats { gap: 34px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .admission .split { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .timeline::before { left: 8px; }
  .tl-item { width:100%; left:0 !important; padding-left:44px; padding-right:0; text-align:left; }
  .tl-item .dot { left:0 !important; right:auto !important; }
}

@media (max-width: 720px) {
  .topbar-l .hide-sm { display: none; }
  .brand h1 { font-size: 1.08rem; }
  .brand p { font-size: .66rem; }
  .brand-img { width: 46px; height: 46px; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .grid-4, .grid-3, .grid-2, .stats-grid, .contact-cards, .ach-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .feature.h-icon { flex-direction: row; }
  .hero .container { padding: 100px 0 120px; }
  .hero h1 { font-size: 1.9rem; }
  .hero .lead { font-size: 1.02rem; }
  .hero-stats { grid-template-columns: repeat(2,1fr); gap: 24px; }
  .scroll-cue { display: none; }
  .page-hero { padding: 100px 0 62px; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero-calligraphy { opacity: .28; }
  .admission, .cta, .contact-form { padding: 32px 22px; }
  .stats-band { padding: 38px 20px; }
  .exp-badge { right: 8px; padding: 16px 18px; }
  .testi { flex-basis: 300px; }
}
