/* আল-হিকমাহ্ ইনস্টিটিউট — ওয়েবসাইট (alhikmahinstitute.online)
   রং লোগো থেকে: রয়্যাল নীল, আকাশি, সোনালি; সব রং/ছায়া/কোণা এখানে token-এ।
   ফন্ট (Owner-এর অনুরোধ ২০২৬-১১-২৫): মেনু সুলেমান লিপি (বড় ও মোটা), শিরোনাম হিন্দ শিলিগুড়ি, লেখা আনেক বাংলা, উদ্ধৃতি তিরো বাংলা। */

/* সুলেমান লিপি — Google Fonts-এ নেই, তাই নিজের কাছে (SIL Open Font License; বাংলা + ইংরেজি অক্ষরে ছাঁটা WOFF2) */
@font-face {
  font-family: 'SolaimanLipi';
  src:
    local('SolaimanLipi'),
    url('../fonts/solaimanlipi.woff2') format('woff2');
  font-display: swap;
}

:root {
  --royal-950: #070d33;
  --royal-900: #0c1547;
  --royal-800: #141f63;
  --royal-700: #1d2b86;
  --royal-600: #2a3aa6;
  --sky-500: #2a9bd8;
  --sky-100: #e4f3fc;
  --gold-600: #b8891f;
  --gold-500: #d4a537;
  --gold-400: #e6c068;
  --gold-100: #f8edd0;
  --green-600: #138a4e;
  --green-100: #e2f4ea;
  --red-600: #c8312f;

  --paper: #fbf8f1;
  --surface: #ffffff;
  --surface-2: #f4f1e8;
  --ink: #161a35;
  --ink-2: #3c4263;
  --muted: #6a7090;
  --line: #e5e0d2;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(12, 21, 71, 0.06), 0 4px 14px rgba(12, 21, 71, 0.06);
  --shadow-2: 0 10px 30px rgba(12, 21, 71, 0.12);
  --shadow-3: 0 24px 60px rgba(7, 13, 51, 0.28);

  /* প্রথমে 'Noto Sans Bengali' — শুধু বাংলা অঙ্কের ছোট ফাইল (index.html-এ text=০–৯), বাকি অক্ষর পরের ফন্ট থেকে */
  --font-body: 'Noto Sans Bengali', 'Anek Bangla', 'Hind Siliguri', 'Nirmala UI', system-ui, sans-serif;
  --font-head: 'Noto Sans Bengali', 'Hind Siliguri', 'Nirmala UI', system-ui, sans-serif;
  --font-menu: 'SolaimanLipi', 'Hind Siliguri', 'Nirmala UI', sans-serif;
  --font-quote: 'Tiro Bangla', 'Hind Siliguri', serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --wrap: 1180px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

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

a {
  color: var(--royal-700);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.5em;
  color: var(--royal-900);
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.ar {
  font-family: var(--font-arabic);
  direction: rtl;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--gold-500);
  color: var(--royal-950);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- বোতাম ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem var(--font-body);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500) 55%, var(--gold-600));
  color: var(--royal-950);
  box-shadow: 0 8px 24px rgba(212, 165, 55, 0.35);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-royal {
  background: var(--royal-800);
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 31, 99, 0.25);
}

.btn-outline {
  border-color: var(--royal-700);
  color: var(--royal-800);
  background: transparent;
}

.btn-green {
  background: var(--green-600);
  color: #fff;
}

/* ---------- উপরের পাতলা ফালি ---------- */
.topbar {
  background: var(--royal-950);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.86rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
}

.topbar a {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar a:hover {
  color: var(--gold-400);
}

.topbar-links {
  display: flex;
  gap: 22px;
}

.topbar-note {
  color: var(--gold-400);
  font-weight: 600;
}

/* ---------- মেনু ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* backdrop-filter নয় — তাতে ভেতরের ফোনের মেনু (position: fixed) পর্দা নয়, মেনুর মাপে আটকে যেত */
  background: rgba(251, 248, 241, 0.97);
  border-bottom: 1px solid transparent;
  transition:
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 6px 24px rgba(12, 21, 71, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--royal-900);
  margin-right: auto;
}

.brand img {
  width: 56px;
  height: 56px;
}

.brand-name {
  display: grid;
  line-height: 1.2;
}

.brand-name strong {
  font-family: var(--font-head);
  font-size: 1.22rem;
  font-weight: 800;
}

.brand-name span {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--sky-500);
  font-weight: 600;
  font-family: system-ui, sans-serif;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  color: var(--ink-2);
  font-family: var(--font-menu);
  font-size: 1.14rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  transition:
    color 150ms ease,
    background 150ms ease;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--royal-800);
  background: var(--gold-100);
}

.nav .btn {
  margin-left: 8px;
  min-height: 44px;
  padding: 8px 18px;
  color: #fff;
}

.nav .btn:hover {
  background: var(--royal-700);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--royal-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- হিরো ---------- */
.hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(42, 155, 216, 0.28), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(212, 165, 55, 0.18), transparent 60%),
    linear-gradient(160deg, var(--royal-900), var(--royal-950) 70%);
  overflow: hidden;
  isolation: isolate;
}

.pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23e6c068' stroke-width='1.2'%3E%3Cpath d='M48 8l11.7 28.3L88 48 59.7 59.7 48 88 36.3 59.7 8 48l28.3-11.7z'/%3E%3Crect x='28' y='28' width='40' height='40' transform='rotate(45 48 48)'/%3E%3Crect x='28' y='28' width='40' height='40'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3Cpath d='M0 0l20 20M96 0L76 20M0 96l20-20M96 96L76 76'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
  padding-top: 72px;
  padding-bottom: 150px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid rgba(230, 192, 104, 0.45);
  border-radius: 999px;
  color: var(--gold-400);
  font-size: 0.92rem;
  font-weight: 600;
  background: rgba(212, 165, 55, 0.08);
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(212, 165, 55, 0.25);
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.2vw, 3.9rem);
  font-weight: 800;
  margin: 22px 0 6px;
  letter-spacing: -0.01em;
}

.hero h1 .gold {
  background: linear-gradient(90deg, var(--gold-400), #f6dc94 50%, var(--gold-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-en {
  font: 600 0.95rem system-ui, sans-serif;
  letter-spacing: 0.32em;
  color: var(--sky-500);
  margin-bottom: 18px;
}

.hero-lead {
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 34em;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 30px;
}

.hero-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
}

.hero-chips .icon {
  color: var(--gold-400);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.emblem {
  position: relative;
  justify-self: center;
  width: min(420px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

/* লোগো প্রায় পুরো emblem জুড়ে, চারপাশে সাদা বর্ডার (Owner-এর অনুরোধ) — সাদা গোল পুরো emblem, লোগো তার ৯০% */
.emblem::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fff, #f3efe4 70%);
  box-shadow:
    0 0 0 10px rgba(230, 192, 104, 0.18),
    0 0 0 22px rgba(230, 192, 104, 0.08),
    var(--shadow-3);
}

.emblem::after {
  content: '';
  position: absolute;
  inset: -7%;
  border-radius: 50%;
  border: 1px dashed rgba(230, 192, 104, 0.5);
  animation: spin 80s linear infinite;
}

.emblem picture,
.emblem img {
  position: relative;
  width: 90%;
  z-index: 1;
}

.emblem picture img {
  width: 100%;
}

.emblem-badge {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--royal-900);
  box-shadow: var(--shadow-2);
  font-size: 0.85rem;
  line-height: 1.35;
}

.emblem-badge strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
}

/* কোণে — লোগোর গোলের বাইরের ফাঁকা জায়গায়, যেন লোগোর লেখা না ঢাকে */
.emblem-badge.one {
  left: -10%;
  bottom: 0;
  border-left: 4px solid var(--gold-500);
}

.emblem-badge.two {
  right: -10%;
  top: 0;
  border-left: 4px solid var(--green-600);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- এক নজরে সংখ্যা ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -96px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}

.stat {
  padding: 28px 22px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--royal-800);
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- সাধারণ অংশ ---------- */
.section {
  padding: 96px 0;
}

.section.tint {
  background: var(--surface-2);
}

.section-head {
  max-width: 720px;
  margin: 0 auto 52px;
  text-align: center;
}

.section-head.left {
  margin-left: 0;
  text-align: left;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-600);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.kicker::before,
.kicker::after {
  content: '';
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head.left .kicker::after {
  display: none;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.55rem);
}

.section-head p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

/* পরিচিতি */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.about-text p {
  color: var(--ink-2);
  font-size: 1.08rem;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 30px;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list .icon {
  color: var(--green-600);
  margin-top: 4px;
}

.quote-card {
  position: relative;
  padding: 42px 36px 34px;
  border-radius: var(--r-xl);
  background: linear-gradient(155deg, var(--royal-800), var(--royal-950));
  color: #fff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  isolation: isolate;
}

.quote-card .pattern {
  opacity: 0.08;
}

.quote-mark {
  font-family: var(--font-head);
  font-size: 5rem;
  line-height: 0.6;
  color: var(--gold-500);
}

.quote-card blockquote {
  margin: 12px 0 20px;
  font-family: var(--font-quote);
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
  line-height: 1.6;
}

.quote-card .note {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
}

.quote-card .note .icon {
  color: var(--gold-400);
  width: 1.6em;
  height: 1.6em;
}

/* বিভাগের কার্ড */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--royal-800);
  background: linear-gradient(140deg, var(--gold-100), #fff);
  border: 1px solid var(--gold-400);
}

.card-icon .icon {
  width: 30px;
  height: 30px;
}

.card h3 {
  font-size: 1.4rem;
}

.card ul {
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}

.card li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.card li::before {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 0.65em;
  transform: rotate(45deg);
  background: var(--gold-500);
  border-radius: 2px;
}

.card.featured {
  background: linear-gradient(160deg, var(--royal-800), var(--royal-950));
  color: #fff;
  border-color: transparent;
}

.card.featured h3 {
  color: #fff;
}

.card.featured ul {
  color: rgba(255, 255, 255, 0.86);
}

.card.featured .card-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(230, 192, 104, 0.5);
  color: var(--gold-400);
}

.card-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--royal-950);
}

/* হাদিসের ফালি */
.verse {
  position: relative;
  padding: 88px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(120deg, var(--royal-950), var(--royal-800) 50%, var(--royal-950));
  overflow: hidden;
  isolation: isolate;
}

.verse .pattern {
  opacity: 0.09;
  mask-image: none;
  -webkit-mask-image: none;
}

.verse .ar {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.7;
  color: var(--gold-400);
  margin: 0 0 14px;
}

.verse p {
  font-family: var(--font-quote);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  margin-bottom: 6px;
}

.verse cite {
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
}

/* হিফজ */
.hifz-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.hifz-badge {
  position: relative;
  aspect-ratio: 1;
  width: min(380px, 100%);
  margin: 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: radial-gradient(circle, #fff 55%, var(--gold-100));
  border: 2px solid var(--gold-400);
  box-shadow:
    0 0 0 14px rgba(230, 192, 104, 0.15),
    var(--shadow-2);
}

.hifz-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 9vw, 5.4rem);
  line-height: 1;
  color: var(--royal-800);
}

.hifz-badge span {
  display: block;
  font-size: 1.15rem;
  color: var(--ink-2);
  font-weight: 600;
}

.hifz-badge em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--gold-600);
  font-weight: 700;
}

.feature-list {
  display: grid;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.feature-list .num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(140deg, var(--royal-700), var(--royal-900));
}

/* কেন আল-হিকমাহ্ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.why {
  padding: 26px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.why:hover {
  border-color: var(--gold-400);
  transform: translateY(-4px);
}

.why .icon {
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  color: var(--royal-700);
}

.why h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.5;
}

/* নিবিড় যত্ন */
.care-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.care {
  padding: 30px 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border-top: 5px solid var(--gold-500);
  box-shadow: var(--shadow-1);
}

.care:nth-child(2) {
  border-top-color: var(--sky-500);
}

.care:nth-child(3) {
  border-top-color: var(--green-600);
}

.care h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
}

.care ul {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}

.care li {
  display: flex;
  gap: 10px;
}

.care li .icon {
  color: var(--green-600);
  margin-top: 5px;
}

.care-note {
  margin: 32px auto 0;
  max-width: 640px;
  text-align: center;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-600);
  font-weight: 600;
}

/* অ্যাপ */
.app-section {
  position: relative;
  color: #fff;
  background: linear-gradient(150deg, var(--royal-900), var(--royal-950));
  overflow: hidden;
  isolation: isolate;
}

.app-section .section-head h2,
.app-section h3 {
  color: #fff;
}

.app-section .section-head p {
  color: rgba(255, 255, 255, 0.8);
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 56px;
  align-items: center;
}

.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 32px;
}

.app-feature {
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.app-feature .icon {
  width: 30px;
  height: 30px;
  color: var(--gold-400);
  margin-bottom: 10px;
}

.app-feature h3 {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.app-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.phone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 14px;
  border-radius: 40px;
  background: #0b0f2a;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.12),
    var(--shadow-3);
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #f3f5fb;
  color: var(--ink);
  font-size: 0.86rem;
}

.phone-top {
  padding: 18px 18px 14px;
  background: linear-gradient(140deg, var(--royal-700), var(--royal-900));
  color: #fff;
}

.phone-top small {
  opacity: 0.8;
}

.phone-top strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
}

.phone-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.phone-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(12, 21, 71, 0.06);
}

.phone-card b {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.phone-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}

.pill.ok {
  background: var(--green-100);
  color: var(--green-600);
}

.pill.gold {
  background: var(--gold-100);
  color: var(--gold-600);
}

.pill.sky {
  background: var(--sky-100);
  color: #1b78ad;
}

/* ভর্তি */
.admission {
  position: relative;
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(230, 192, 104, 0.35), transparent 60%),
    linear-gradient(140deg, var(--royal-800), var(--royal-950));
  color: #fff;
  box-shadow: var(--shadow-3);
  overflow: hidden;
  isolation: isolate;
}

.admission h2 {
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
}

.admission p {
  color: rgba(255, 255, 255, 0.85);
}

.admission .hero-actions {
  margin-top: 26px;
}

.docs {
  padding: 26px 28px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.docs h3 {
  color: var(--gold-400);
  font-size: 1.15rem;
}

.docs ul {
  display: grid;
  gap: 10px;
}

.docs li {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
}

.docs .icon {
  color: var(--gold-400);
  margin-top: 5px;
}

/* আগামীর পথে */
.future-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.future {
  display: flex;
  gap: 20px;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px dashed var(--gold-400);
}

.future .card-icon {
  flex: none;
  margin: 0;
}

.future h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}

.future p {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- ফুটার ---------- */
.site-footer {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  background: var(--royal-950);
  overflow: hidden;
  isolation: isolate;
}

.site-footer .pattern {
  opacity: 0.05;
  mask-image: none;
  -webkit-mask-image: none;
}

.footer-cta {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.footer-cta h2 {
  color: #fff;
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.footer-cta p {
  margin: 4px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.footer-brand .logo-badge {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(230, 192, 104, 0.35);
}

.footer-brand .logo-badge img {
  width: 64px;
  height: 64px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.3rem;
}

.site-footer h3 {
  color: var(--gold-400);
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: var(--gold-400);
}

.footer-links {
  display: grid;
  gap: 8px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-list .icon {
  color: var(--gold-400);
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.footer-bottom .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ফোনে ভাসমান বোতাম */
.float-actions {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.float-actions a {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-2);
}

.float-actions .wa {
  background: #1fa855;
}

.float-actions .call {
  background: var(--royal-700);
}

.float-actions .icon {
  width: 26px;
  height: 26px;
}

/* হিরোতে নিজের কল বোতাম আছে — ভাসমান বোতাম আসে একটু নামার পরে (JS না থাকলে সবসময়) */
.js .float-actions {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.js .float-actions.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* ধীরে ভেসে ওঠা (JS থাকলে) */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- ছোট পর্দা ---------- */
/* মাঝারি পর্দায় emblem কলাম ভরে থাকে — ব্যাজ বেশি বাইরে গেলে পাতা চওড়া হয়ে যেত */
@media (max-width: 1199px) {
  .emblem-badge.one {
    left: -2%;
    bottom: -3%;
  }

  .emblem-badge.two {
    right: -2%;
    top: -4%;
  }
}

@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav a {
    padding: 8px 9px;
  }
}

/* ফোনের মতো ☰ মেনু — বড় সুলেমান লিপির ৮ ঘরের মেনু ১১৮০-এর নিচে এক লাইনে আঁটে না */
@media (max-width: 1180px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 86vw);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 96px 20px 24px;
    background: var(--surface);
    box-shadow: var(--shadow-3);
    /* বন্ধ অবস্থায় পর্দার ডানে ঠেলে নয় (তাতে পাতা চওড়া হয়ে যেত) — কেটে লুকানো */
    visibility: hidden;
    clip-path: inset(0 0 0 100%);
    -webkit-clip-path: inset(0 0 0 100%);
    transition:
      clip-path 260ms ease,
      -webkit-clip-path 260ms ease,
      visibility 0s linear 260ms;
    z-index: 60;
  }

  .nav a {
    padding: 12px 16px;
    border-radius: var(--r-sm);
  }

  .nav .btn {
    margin: 12px 0 0;
  }

  .nav.open {
    visibility: visible;
    clip-path: inset(0);
    -webkit-clip-path: inset(0);
    transition:
      clip-path 260ms ease,
      -webkit-clip-path 260ms ease,
      visibility 0s;
  }

  /* মেনুর (z-index 50) নিচে, পাতার বাকি সবকিছুর উপরে */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(7, 13, 51, 0.45);
    z-index: 45;
  }

  .menu-toggle {
    position: relative;
    z-index: 61;
  }
}

@media (max-width: 960px) {
  .hero .wrap,
  .about-grid,
  .hifz-grid,
  .app-grid,
  .admission {
    grid-template-columns: 1fr;
  }

  .hero .wrap {
    padding-top: 48px;
    gap: 36px;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-chips,
  .hero-actions {
    justify-content: center;
  }

  .emblem {
    width: min(340px, 86%);
  }

  .cards-3,
  .care-grid {
    grid-template-columns: 1fr;
  }

  .future-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .admission {
    padding: 40px 28px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .topbar-links a:not(:first-child) {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-features {
    grid-template-columns: 1fr;
  }

  .footer-cta .wrap {
    flex-direction: column;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .brand-name strong {
    font-size: 1.08rem;
  }

  .emblem-badge {
    font-size: 0.78rem;
    padding: 8px 12px;
  }

  .emblem-badge strong {
    font-size: 0.92rem;
  }

  .emblem-badge.one {
    left: -3%;
    bottom: -4%;
  }

  .emblem-badge.two {
    right: -3%;
    top: -4%;
  }

  .future {
    flex-direction: column;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (min-width: 1181px) {
  .float-actions {
    display: none;
  }
}

/* পুরনো ব্রাউজার (aspect-ratio নেই) — গোল লোগো ও হিফজের বৃত্ত যেন চ্যাপ্টা না হয় */
@supports not (aspect-ratio: 1) {
  .emblem {
    height: 380px;
  }

  .hifz-badge {
    height: 340px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =====================================================================
   ধাপ ২ — ভেতরের পাতা, স্লাইডার, গ্যালারি
   ===================================================================== */

/* ---------- ভেতরের পাতার মাথা ---------- */
.page-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(42, 155, 216, 0.25), transparent 60%),
    linear-gradient(160deg, var(--royal-900), var(--royal-950) 75%);
  overflow: hidden;
  isolation: isolate;
}

.page-hero .wrap {
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.6vw, 3rem);
  margin: 14px 0 8px;
}

.page-hero p {
  max-width: 44em;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  margin: 0;
}

.crumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
}

.crumbs a {
  color: var(--gold-400);
}

/* ---------- স্লাইডার ---------- */
.showcase {
  padding-top: 72px;
}

.slider {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--royal-950);
  box-shadow: var(--shadow-3);
  outline-offset: 6px;
}

.slider-track {
  position: relative;
  aspect-ratio: 16 / 8;
}

.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 900ms ease,
    visibility 0s linear 900ms;
}

.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 900ms ease;
  z-index: 1;
}

.slide img,
.slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.slide.is-active img {
  animation: kenburns 9s ease-out both;
}

@keyframes kenburns {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.slide video {
  position: absolute;
  inset: 0;
  z-index: 2;
  object-fit: contain;
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  gap: 2px;
  padding: 80px 32px 70px;
  color: #fff;
  background: linear-gradient(0deg, rgba(7, 13, 51, 0.88), rgba(7, 13, 51, 0.4) 60%, transparent);
  pointer-events: none;
}

.slide.playing figcaption,
.slide.playing .slide-play {
  display: none;
}

.slide figcaption strong {
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.6vw, 1.75rem);
  line-height: 1.35;
}

.slide figcaption span {
  color: rgba(255, 255, 255, 0.82);
}

.slide-tag {
  justify-self: start;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--royal-950);
  font-size: 0.8rem;
  font-weight: 700;
}

.slide-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.play-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.2),
    var(--shadow-3);
  position: relative;
  transition: transform 180ms ease;
}

.play-icon::after {
  content: '';
  position: absolute;
  left: 36px;
  top: 27px;
  border-left: 22px solid var(--royal-800);
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
}

.slide-play:hover .play-icon {
  transform: scale(1.08);
}

.slider-ctrl {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px;
  pointer-events: none;
}

.slider-ctrl > * {
  pointer-events: auto;
}

.slider-dots {
  display: flex;
  gap: 8px;
  margin-right: auto;
  flex-wrap: wrap;
}

.slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition:
    width 200ms ease,
    background 200ms ease;
}

.slider-dot.active {
  width: 30px;
  background: var(--gold-400);
}

.slider-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(7, 13, 51, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.slider-btn:hover {
  background: var(--gold-500);
  color: var(--royal-950);
}

.slider-btn.prev .icon {
  transform: rotate(180deg);
}

.showcase-more {
  text-align: center;
  margin: 28px 0 0;
}

/* ---------- গ্যালারি ---------- */
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font: 600 0.98rem var(--font-body);
  cursor: pointer;
}

.chip.active {
  background: var(--royal-800);
  border-color: var(--royal-800);
  color: #fff;
}

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

.gallery-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: var(--royal-950);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-thumb:hover img {
  transform: scale(1.05);
}

.gallery-thumb .play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
}

.gallery-thumb .play-icon::after {
  left: 27px;
  top: 20px;
  border-left-width: 17px;
  border-top-width: 12px;
  border-bottom-width: 12px;
}

.gallery-thumb .slide-tag {
  position: absolute;
  left: 12px;
  top: 12px;
}

.gallery-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}

.gallery-info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--royal-900);
}

.gallery-info span {
  font-size: 0.88rem;
  color: var(--muted);
}

.gallery-dl {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--royal-900);
  font-weight: 600;
  font-size: 0.9rem;
}

.gallery-dl:hover {
  background: var(--gold-400);
}

/* lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px 70px;
  background: rgba(5, 9, 33, 0.94);
}

.lightbox.open {
  display: flex;
}

.lb-figure {
  margin: 0;
  max-width: 1200px;
  width: 100%;
  display: grid;
  gap: 14px;
}

.lb-media img,
.lb-media video {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #000;
}

.lb-cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
}

.lb-cap strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.lb-cap span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.lb-close,
.lb-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lb-close {
  top: 16px;
  right: 16px;
}

.lb-prev {
  left: 12px;
  top: 50%;
}

.lb-prev .icon {
  transform: rotate(180deg);
}

.lb-next {
  right: 12px;
  top: 50%;
}

.lb-nav[hidden] {
  display: none;
}

/* ---------- নেতৃত্ব ও বাণী ---------- */
.leaders {
  display: grid;
  gap: 28px;
}

.leader {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 34px;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.leader-id {
  text-align: center;
}

.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-400);
  background: linear-gradient(150deg, var(--royal-700), var(--royal-950));
  box-shadow:
    0 0 0 6px var(--gold-100),
    0 0 0 8px var(--gold-400);
}

.leader-id strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.12rem;
  color: var(--royal-900);
  line-height: 1.4;
}

.leader-id span {
  color: var(--gold-600);
  font-weight: 600;
}

.leader blockquote {
  margin: 0;
  color: var(--ink-2);
}

.leader blockquote p:last-child {
  margin-bottom: 0;
}

.leader .quote-mark {
  font-size: 3.6rem;
  line-height: 0.5;
  margin-top: 6px;
}

/* শিক্ষকমণ্ডলী */
.team {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.member {
  padding: 24px 16px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
}

.member .avatar {
  width: 76px;
  height: 76px;
  font-size: 1.6rem;
  box-shadow:
    0 0 0 4px var(--gold-100),
    0 0 0 5px var(--gold-400);
}

.member strong {
  display: block;
  font-family: var(--font-head);
  color: var(--royal-900);
  line-height: 1.4;
}

.member span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- দিনের রুটিন (timeline) ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  max-width: 820px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 112px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--gold-400), var(--sky-500));
}

.tl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 28px;
  align-items: center;
}

.tl time {
  text-align: right;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--royal-800);
}

.tl div {
  position: relative;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}

.tl div::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px var(--gold-100);
}

.note-line {
  max-width: 820px;
  margin: 22px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- ছক ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.table th,
.table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.table thead th {
  background: var(--royal-800);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
}

.table tbody tr:nth-child(even) {
  background: var(--surface-2);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table .num {
  text-align: right;
  white-space: nowrap;
}

.table tr.total td {
  font-weight: 700;
  color: var(--royal-900);
  background: var(--gold-100);
}

.table-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- ধাপ ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  position: relative;
  padding: 30px 22px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}

.step-no {
  position: absolute;
  top: -18px;
  left: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--royal-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.97rem;
}

/* দুই কলামের তালিকা-কার্ড */
.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.info-list {
  display: grid;
  gap: 10px;
  color: var(--ink-2);
}

.info-list li {
  display: flex;
  gap: 10px;
}

.info-list .icon {
  color: var(--green-600);
  margin-top: 5px;
}

/* ---------- যোগাযোগ ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}

.contact-card .card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.contact-card h3 {
  font-size: 1.15rem;
}

.contact-card a {
  font-weight: 600;
}

.map {
  margin-top: 28px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- ছোট পর্দা (ধাপ ২-এর অংশ) ---------- */
@media (max-width: 1080px) {
  .team {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 34px;
  }
}

@media (max-width: 960px) {
  .gallery-grid,
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .leader {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cards-2 {
    grid-template-columns: 1fr;
  }

  .slider-track {
    aspect-ratio: 16 / 10;
  }

  .map {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 720px) {
  .slider {
    border-radius: var(--r-lg);
  }

  .slider-track {
    aspect-ratio: 4 / 3.4;
  }

  .slide figcaption {
    padding: 60px 18px 62px;
  }

  .slider-ctrl {
    padding: 0 14px;
    bottom: 14px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .play-icon {
    width: 68px;
    height: 68px;
  }

  .play-icon::after {
    left: 28px;
    top: 21px;
    border-left-width: 18px;
    border-top-width: 13px;
    border-bottom-width: 13px;
  }

  .gallery-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    row-gap: 34px;
  }

  .team {
    grid-template-columns: repeat(2, 1fr);
  }

  .leader {
    padding: 26px 22px;
  }

  .timeline::before {
    left: 74px;
  }

  .tl {
    grid-template-columns: 62px 1fr;
    gap: 24px;
  }

  .tl time {
    font-size: 0.86rem;
  }

  .tl div::before {
    left: -18px;
  }

  .lightbox {
    padding: 70px 10px 20px;
  }

  .lb-nav {
    top: auto;
    bottom: 16px;
  }

  .lb-cap {
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 60px;
  }
}

@supports not (aspect-ratio: 1) {
  .slider-track {
    height: 56vw;
    max-height: 600px;
  }

  .gallery-thumb {
    height: 220px;
  }

  .map {
    height: 420px;
  }
}

/* ---------- ধাপ ২: বাকি অংশ ---------- */
.why-grid.quran-steps {
  grid-template-columns: repeat(4, 1fr);
}

.why p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
}

.break {
  overflow-wrap: anywhere;
}

.install-steps {
  margin-bottom: 28px;
}

.install-steps li {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

.qr-card {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 340px;
  padding: 28px;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-3);
}

.qr-card img {
  width: 100%;
  max-width: 280px;
  height: auto;
}

.qr-card span {
  color: var(--royal-900);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 1080px) {
  .why-grid.quran-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .why-grid.quran-steps {
    grid-template-columns: 1fr;
  }
}

.table th:first-child,
.table td:first-child {
  min-width: 9.5em;
}

.table thead th.num {
  white-space: normal;
}

/* Google Drive-এর লিংক (হোমের স্লাইডারের নিচে ও গ্যালারির উপরে) */
.showcase-more {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.drive-card {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  padding: 20px 24px;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(135deg, var(--royal-700), var(--royal-900));
  box-shadow: var(--shadow-2);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.drive-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
}

.drive-icon {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--royal-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
}

.drive-icon .icon {
  width: 28px;
  height: 28px;
}

.drive-text {
  flex: 1;
  display: grid;
  gap: 4px;
}

.drive-text strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
}

.drive-text span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.drive-go {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--gold-400);
}

@media (max-width: 600px) {
  .drive-card {
    flex-wrap: wrap;
    padding: 18px;
  }

  .drive-go {
    width: 100%;
    justify-content: flex-end;
  }
}

.nowrap {
  white-space: nowrap;
}

.showcase-more .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

/* ---------- পরিচালনা পর্ষদ ---------- */
.board-top {
  grid-template-columns: repeat(3, minmax(0, 260px));
  justify-content: center;
}

.member.lead {
  border-color: var(--gold-400);
  box-shadow: var(--shadow-2);
  background: linear-gradient(180deg, var(--gold-100), var(--surface) 60%);
}

.member.lead .avatar {
  width: 96px;
  height: 96px;
  font-size: 2rem;
}

.member.lead span {
  font-weight: 700;
}

.board-stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.board-stats div {
  min-width: 180px;
  padding: 16px 26px;
  border-radius: var(--r-lg);
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, var(--royal-700), var(--royal-900));
}

.board-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gold-400);
}

.share-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.share-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 600;
  color: var(--royal-900);
  line-height: 1.35;
}

.share-av {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gold-400);
  background: linear-gradient(135deg, var(--royal-700), var(--royal-900));
}

@media (max-width: 1080px) {
  .share-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .board-top {
    grid-template-columns: minmax(0, 300px);
  }

  .share-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .share-list {
    grid-template-columns: 1fr;
  }
}

/* ৯ ঘরের মেনু: শব্দ ভাঙবে না; মাঝারি পর্দায় ঘরের ফাঁক কম */
.nav a,
.brand-name strong {
  white-space: nowrap;
}

@media (min-width: 1181px) and (max-width: 1400px) {
  .nav {
    gap: 2px;
  }

  .nav a {
    padding: 8px 8px;
  }

  .nav .btn {
    padding: 8px 16px;
  }
}

@media (max-width: 420px) {
  .board-stats div {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
  }
}
