/* ==========================================================================
   জামিয়া দারুত তালিম বাংলাদেশ — main.css
   Hand-written design system. No Bootstrap, no plugins.
   Signature motif: the "minar" (minaret) — dome + spire — used on cards,
   section ornaments, icon chips and image arches.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --maroon: #442525;
  --maroon-deep: #2e1717;
  --maroon-soft: #5a3434;
  --gold: #e5b830;
  --gold-deep: #c79c1d;
  --cream: #faf7f0;
  --sand: #f1e9d8;
  --ink: #3c2b2b;
  --muted: #8d7878;
  --white: #fff;

  --f-display: 'Baloo Da', 'Hind Siliguri', sans-serif;
  --f-body: 'Hind Siliguri', sans-serif;
  --f-arabic: 'Amiri', serif;
  --f-arabic-display: 'Aref Ruqaa', serif;

  /* signature asymmetric radius (minar-arch corner) */
  --r-xy: 14px 0 14px 0;
  --r-yx: 0 14px 0 14px;
  /* mihrab arch (dome-topped) radius */
  --r-arch: 50% 50% 14px 14px / 40% 40% 14px 14px;
  /* pill radius for buttons & badges (modern capsule shape) */
  --r-pill: 999px;
  /* uniform soft radius for blog & featured cards (no asymmetric corners) */
  --r-card: 16px;
  /* calligraphic right arrow (stroke icon, recoloured via mask + currentColor) */
  --ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cg fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 10 Q 13 7 24 10'/%3E%3Cpath d='M19 4.5 Q 25.5 7.5 27.5 10 Q 25.5 12.5 19 15.5'/%3E%3C/g%3E%3C/svg%3E");
  --shadow-sm: 0 2px 10px rgba(46, 23, 23, .08);
  --shadow-md: 0 12px 32px rgba(46, 23, 23, .16);
  --ease: cubic-bezier(.4, 0, .2, 1);

  /* gold mosque ornament (dome + two minarets + crescent) under section titles */
  --orn-minar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 40'%3E%3Cg fill='%23e5b830'%3E%3Cpath d='M0 31 H52 V33 H0 Z'/%3E%3Cpath d='M148 31 H200 V33 H148 Z'/%3E%3Cpath d='M60 29 L63 32 L60 35 L57 32 Z'/%3E%3Cpath d='M140 29 L143 32 L140 35 L137 32 Z'/%3E%3Cpath d='M74.5 33 V15 H79.5 V33 Z'/%3E%3Cpath d='M72.8 14 H81.2 V16.5 H72.8 Z'/%3E%3Cpath d='M73.5 12.5 L77 6.5 L80.5 12.5 Z'/%3E%3Ccircle cx='77' cy='4.6' r='1.3'/%3E%3Cpath d='M120.5 33 V15 H125.5 V33 Z'/%3E%3Cpath d='M118.8 14 H127.2 V16.5 H118.8 Z'/%3E%3Cpath d='M119.5 12.5 L123 6.5 L126.5 12.5 Z'/%3E%3Ccircle cx='123' cy='4.6' r='1.3'/%3E%3Cpath d='M86 33 C86 24 91 20.5 96.5 16.5 Q100 13.8 100 10 Q100 13.8 103.5 16.5 C109 20.5 114 24 114 33 Z'/%3E%3Cpath d='M99.3 7 H100.7 V10 H99.3 Z'/%3E%3Cpath d='M101.8 1.2 A2.8 2.8 0 1 0 101.8 6 A3.6 3.6 0 1 1 101.8 1.2 Z'/%3E%3C/g%3E%3C/svg%3E");
  /* subtle 8-point star tiles */
  --pat-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 10 42 30 62 36 42 42 36 62 30 42 10 36 30 30 Z' fill='none' stroke='rgba(229,184,48,.055)' stroke-width='1.4'/%3E%3C/svg%3E");
  --pat-star-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 10 42 30 62 36 42 42 36 62 30 42 10 36 30 30 Z' fill='none' stroke='rgba(68,37,37,.05)' stroke-width='1.4'/%3E%3C/svg%3E");
  /* sweeping curve divider under hero / page banners: a soft gold echo wave
     behind the cream curve, with a small dome bump at the center (minar nod) */
  --curve: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0 24 C360 84 1080 84 1440 24 V100 H0 Z' fill='%23e5b830' fill-opacity='.38'/%3E%3Cpath d='M0 40 C300 90 560 97 690 95 C706 74 734 74 750 95 C880 97 1140 90 1440 40 V100 H0 Z' fill='%23faf7f0'/%3E%3C/svg%3E");
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--cream);
  /* clip, not hidden: hidden turns body into a scroll container and kills
     position:sticky on the nav; clip crops the same without doing that */
  overflow-x: hidden;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--maroon); text-decoration: none; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }
a:hover { color: var(--gold-deep); }
/* Baloo Da ships a single weight — synthetic bold makes Bengali unreadable */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.4; margin: 0 0 .5em; color: var(--maroon); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
::selection { background: var(--gold); color: var(--maroon-deep); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
[dir="rtl"], .txt-rtl { font-family: var(--f-arabic); }

/* ---------- 3. Legacy utility layer (keeps old markup working) ---------- */
.f1 { font-family: var(--f-display); font-weight: 400; }
.f2 { font-family: var(--f-body); }
.f3 { font-family: var(--f-body); }
.f4 { font-family: var(--f-arabic-display); }
.f5 { font-family: var(--f-arabic); }
.c-1 { color: var(--gold) !important; }
.c-2 { color: var(--maroon) !important; }
.c-3 { color: var(--muted) !important; }
.cw { color: #fff !important; }
.cw-6 { color: rgba(255,255,255,.72) !important; }
.bg-c-1 { background: var(--gold) !important; }
.bg-c-2 { background: var(--maroon) !important; }
.bg-cw { background: #fff !important; }
.fw-3 { font-weight: 300; }
.fn-wb { font-style: normal; }
/* flaticon.css hardcodes 20px on ::before — let glyphs follow the element size like Font Awesome does */
[class^="flaticon-"]::before, [class*=" flaticon-"]::before { font-size: inherit !important; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
.text-uppercase { text-transform: uppercase; }
.pull-left { float: left; }
.pull-right { float: right; }
.clr, .clearfix::after { content: ""; display: block; clear: both; }
.clearfix::after { content: ""; }
.pos-r { position: relative; }
.list-inline { list-style: none; padding: 0; margin: 0; }
.list-inline > li { display: inline-block; }
.g-table { display: flex; }
.d-middle { margin: auto; width: 100%; }

/* spacing */
.sp-lg { padding-top: 96px; padding-bottom: 96px; }
.sp-md { padding-top: 72px; padding-bottom: 72px; }
.sp-sm { padding-top: 48px; padding-bottom: 48px; }
.sp-xs { padding-top: 28px; padding-bottom: 28px; }
.spt-sm { padding-top: 48px; } .spt-xs { padding-top: 28px; }
.spb-md { padding-bottom: 72px; } .spb-sm { padding-bottom: 48px; } .spb-xs { padding-bottom: 28px; }
.p-20 { padding: 20px; } .p-10-y { padding-top: 10px; padding-bottom: 10px; } .p-20-y { padding-top: 20px; padding-bottom: 20px; }
.pb-10 { padding-bottom: 10px; } .pb-20 { padding-bottom: 20px; }
.pt-10 { padding-top: 10px; } .pt-20 { padding-top: 20px; }
.mt-20 { margin-top: 20px; } .mt-30 { margin-top: 30px; } .mt-50 { margin-top: 50px; }
.sp-xs-x { padding-left: 8px; padding-right: 8px; }
.epd-x, .epd-x-l, .epd-x-r { padding-left: 0; padding-right: 0; }
@media (max-width: 767px) {
  .sp-lg { padding-top: 64px; padding-bottom: 64px; }
  .sp-md { padding-top: 52px; padding-bottom: 52px; }
}

/* responsive visibility (legacy) */
@media (min-width: 768px) { .visible-xs { display: none !important; } }
@media (max-width: 767px) { .hidden-xs { display: none !important; } }
.visible-sm { display: none; }
@media (min-width: 768px) and (max-width: 991px) { .visible-sm { display: block; } }

/* ---------- 4. Grid shim (replaces Bootstrap grid) ---------- */
.container { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.container-fluid { width: 100%; padding-left: 16px; padding-right: 16px; }
.row { display: flex; flex-wrap: wrap; margin-left: -14px; margin-right: -14px; }
.row > * { min-width: 0; }
[class*="col-"] { position: relative; width: 100%; padding-left: 14px; padding-right: 14px; }
/* float only inside explicit clearfix/legacy text boxes — never elsewhere
   (blanket floating broke in-flow widgets like the contact map) */
.clearfix > [class*="col-"], .global-text-box > [class*="col-"] { float: left; }
.row > [class*="col-"] { float: none; }
.contact-summary { float: none; }

.col-xs-6 { width: 50%; }
.col-xs-12 { width: 100%; }
@media (min-width: 768px) {
  .col-sm-1{width:8.3333%}.col-sm-2{width:16.6667%}.col-sm-3{width:25%}.col-sm-4{width:33.3333%}
  .col-sm-5{width:41.6667%}.col-sm-6{width:50%}.col-sm-7{width:58.3333%}.col-sm-8{width:66.6667%}
  .col-sm-9{width:75%}.col-sm-10{width:83.3333%}.col-sm-11{width:91.6667%}.col-sm-12{width:100%}
  .col-sm-offset-0{margin-left:0}.col-sm-offset-1{margin-left:8.3333%}.col-sm-offset-2{margin-left:16.6667%}
}
@media (min-width: 992px) {
  .col-md-1{width:8.3333%}.col-md-2{width:16.6667%}.col-md-3{width:25%}.col-md-4{width:33.3333%}
  .col-md-5{width:41.6667%}.col-md-6{width:50%}.col-md-7{width:58.3333%}.col-md-8{width:66.6667%}
  .col-md-9{width:75%}.col-md-10{width:83.3333%}.col-md-11{width:91.6667%}.col-md-12{width:100%}
  .col-md-offset-0{margin-left:0}.col-md-offset-1{margin-left:8.3333%}.col-md-offset-2{margin-left:16.6667%}
}
@media (min-width: 1200px) {
  .col-lg-8{width:66.6667%}.col-lg-10{width:83.3333%}
  .col-lg-offset-1{margin-left:8.3333%}.col-lg-offset-2{margin-left:16.6667%}
}

/* ---------- 5. Buttons (signature flipped-corner shape + shine sweep) ---------- */
.btn, .btn-read-more, .g-btn-sm, .g-btn-lg, .p-read-more, .btn-f, .slider-btn-2 {
  position: relative;
  overflow: hidden;
  display: inline-block;
  /* Hind Siliguri leaves extra space under the glyphs — compensate */
  padding: 11px 30px 7px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.6;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  transition: all .35s var(--ease);
}
/* shine sweep */
.btn::after, .btn-read-more::after, .g-btn-sm::after, .g-btn-lg::after,
.p-read-more::after, .btn-f::after, .slider-btn-2::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
  pointer-events: none;
}
.btn:hover::after, .btn-read-more:hover::after, .g-btn-sm:hover::after, .g-btn-lg:hover::after,
.p-read-more:hover::after, .btn-f:hover::after, .slider-btn-2:hover::after { left: 130%; }

.btn-round-xy { border-radius: var(--r-pill); }
.btn-round-yx { border-radius: var(--r-pill); }
.btn-round-top, .btn-round-tl { border-radius: 14px 14px 0 0; }
.btn-round-br { border-radius: 0 0 14px 14px; }

.btn-read-more, .p-read-more, .btn-gold {
  background: var(--gold);
  color: var(--maroon-deep);
  border-radius: var(--r-pill);
}
.btn-read-more:hover, .p-read-more:hover, .btn-gold:hover {
  background: var(--maroon);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-maroon, .g-btn-lg.bg-c-2 {
  background: var(--maroon) !important;
  color: var(--gold);
  border-radius: var(--r-pill);
}
.btn-maroon:hover, .g-btn-lg.bg-c-2:hover { background: var(--gold) !important; color: var(--maroon-deep); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.65);
  border-radius: var(--r-pill);
  backdrop-filter: blur(3px);
}
.btn-ghost:hover { background: #fff; color: var(--maroon); transform: translateY(-2px); }
.g-btn-sm { padding: 8px 22px 4px; font-size: 15px; }
.g-btn-sm.bg-c-1, .g-btn-lg.bg-c-1 { color: var(--maroon-deep); border-radius: var(--r-pill); }
.g-btn-sm.bg-c-1:hover, .g-btn-lg.bg-c-1:hover { background: var(--gold-deep) !important; }
.slider-btn-2 { background: var(--gold); color: var(--maroon-deep); border-radius: var(--r-pill); }
.slider-btn-2:hover { background: #fff; color: var(--maroon); }

/* ---------- 5b. Opt-in pill modifiers ---------- */
/* .btn-arrow — adds a calligraphic right arrow that nudges forward on hover.
   The shine sweep already owns ::after, so the arrow lives on ::before and is
   re-ordered last via flex. The mask lets it inherit the button's text colour. */
.btn-arrow { display: inline-flex; align-items: center; gap: .55em; }
.btn-arrow::before {
  content: "";
  order: 2; /* sit after the label */
  width: 1.55em; height: 1em;
  margin-top: -.08em; /* align to the text's optical centre */
  background-color: currentColor;
  -webkit-mask: var(--ico-arrow) center / contain no-repeat;
          mask: var(--ico-arrow) center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.btn-arrow:hover::before { transform: translateX(.28em); }

/* .badge-dot — leading status dot on any badge/chip; add .is-live to pulse it.
   Pairs with the pill badges (.hero-kicker, .source, .real-tag, .btn-date …). */
.badge-dot::before {
  content: "";
  display: inline-block;
  width: .5em; height: .5em;
  margin-right: .55em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  position: relative;
  top: -.08em;
}
.badge-dot.is-live::before {
  background: var(--gold);
  animation: dot-pulse 1.8s var(--ease) infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,184,48,.55); }
  70%  { box-shadow: 0 0 0 .55em rgba(229,184,48,0); }
  100% { box-shadow: 0 0 0 0 rgba(229,184,48,0); }
}

/* ---------- 6. Section headings with mosque ornament ---------- */
.section-h1 {
  position: relative;
  display: block;
  width: 100%; /* stays centered even as a flex child inside .row */
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 400;
  margin-bottom: 44px;
  padding-bottom: 50px;
}
.section-h1 span { background: none !important; padding: 0; }
.section-h1::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 200px;
  height: 40px;
  background: var(--orn-minar) no-repeat center / contain;
}
.section-h1.ss-light { color: #fff !important; }

/* arch-shaped icon chip — used for big section icons */
.icon-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 124px;
  height: 124px;
  margin: 0 auto 20px;
  font-size: 62px;
  color: var(--gold);
  background:
    radial-gradient(circle at 50% 30%, rgba(229,184,48,.22), rgba(229,184,48,.04) 70%);
  border: 1px solid rgba(229,184,48,.55);
  border-radius: var(--r-arch);
  transition: all .45s var(--ease);
}

/* ---------- 7. Header ---------- */
.top-bar {
  background: var(--maroon-deep);
  padding: 8px 0;
}
.top-bar .welcome {
  margin: 0;
  font-size: 19px;
  letter-spacing: 1px;
  color: var(--gold) !important;
}

.header-middle { background: var(--cream) var(--pat-star-dark); border-bottom: 1px solid rgba(68,37,37,.08); }
.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
}
.brand { text-align: center; }
.brand img { width: 84px; transition: transform .4s var(--ease); }
.brand a:hover img { transform: translateY(-4px); }
.brand .brand-name {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 400;
  color: var(--maroon);
  margin-top: 4px;
}
.h-info { display: flex; align-items: center; gap: 14px; font-size: 15px; line-height: 1.6; text-align: left; }
.h-info .h-icon {
  flex: none;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon);
  color: var(--gold);
  font-size: 18px;
  border-radius: var(--r-arch);
  transition: all .35s var(--ease);
}
.h-info:hover .h-icon { background: var(--gold); color: var(--maroon); }
.h-info a, .h-info span.t { display: block; color: var(--muted); }
.h-info a:hover { color: var(--maroon); }
.h-info div > a:first-of-type,
.h-info div > span:first-of-type {font-weight: bold;}
@media (max-width: 991px) {
  .header-grid { justify-content: center; }
  .h-info { display: none; } /* keep mobile header light: brand only */
}

/* main nav — position:sticky: never leaves the flow, so no jump when it pins */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--maroon);
}
.main-nav.is-stuck { box-shadow: 0 6px 24px rgba(46,23,23,.35); }
.nav-flex { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 14px 6px;
}
.nav-toggle .t-btn { display: block; width: 26px; height: 3px; background: var(--gold); margin: 5px 0; border-radius: 2px; transition: all .3s var(--ease); }
.nav-toggle[aria-expanded="true"] .t-btn:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .t-btn:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .t-btn:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav-menu a {
  position: relative;
  display: block;
  padding: 16px 18px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
  font-size: 16.5px;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 18px; right: 18px; bottom: 9px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s var(--ease);
}
.nav-menu a:hover, .nav-menu li.active a { color: var(--gold); }
.nav-menu li.active a::after, .nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta { flex: none; margin-left: 14px; }
.nav-info-mobile { display: none; }
@media (max-width: 991px) {
  .nav-toggle { display: block; order: 1; }
  .nav-cta { order: 3; margin-left: 14px; }
  .nav-menu {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease);
  }
  .nav-flex { flex-wrap: wrap; }
  .nav-menu.open { max-height: 640px; padding-bottom: 14px; }
  .nav-menu a { padding: 11px 6px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav-menu a::after { display: none; }
  /* contact info at the bottom of the mobile menu */
  .nav-info-mobile { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
  .nav-info-mobile a, .nav-info-mobile .nim-addr { display: block; padding: 6px; font-size: 15px; color: rgba(255,255,255,.78); border: 0; }
  .nav-info-mobile a:hover { color: var(--gold); }
  .nav-info-mobile .fa { color: var(--gold); width: 20px; margin-right: 6px; text-align: center; }
}

/* ---------- 8. Hero slider (replaces Revolution Slider) ----------
   Slides are stacked in one grid cell: the hero keeps a constant height
   (the tallest slide / fixed on desktop) and slides genuinely cross-fade. */
.hero { position: relative; overflow: hidden; display: grid; background: var(--maroon-deep); }
@media (min-width: 992px) {
  .hero { height: clamp(560px, 86vh, 780px); }
}
.hero-slide {
  grid-area: 1 / 1;
  position: relative;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  pointer-events: none;
  transition: opacity 1.3s var(--ease), visibility 1.3s;
  display: flex;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; pointer-events: auto; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  /* slow zoom both ways: never snaps back, just drifts under the crossfade */
  transform: scale(1.12);
  transition: transform 8s linear;
  will-change: transform;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(36,16,16,.92) 0%, rgba(46,23,23,.62) 48%, rgba(46,23,23,.28) 100%);
}
.hero-slide.align-center::before { background: radial-gradient(ellipse at center, rgba(36,16,16,.5) 0%, rgba(36,16,16,.88) 100%); }
.hero-slide.align-right::before { background: linear-gradient(-100deg, rgba(36,16,16,.92) 0%, rgba(46,23,23,.62) 48%, rgba(46,23,23,.28) 100%); }
.hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  padding-top: 100px;
  padding-bottom: 140px;
}
.hero-slide.align-center .hero-content { text-align: center; }
.hero-slide.align-right .hero-content { text-align: right; }
.hero-kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.7;
  padding: 7px 22px 3px;
  margin-bottom: 22px;
  border: 1px solid rgba(229,184,48,.55);
  border-radius: var(--r-pill);
  background: rgba(229,184,48,.12);
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
  max-width: 640px;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0,0,0,.35);
}
.hero-slide.align-center .hero-title { margin-left: auto; margin-right: auto; }
.hero-slide.align-right .hero-title { margin-left: auto; }
.hero-title .c-1 { color: var(--gold) !important; }
.hero-text {
  max-width: 600px;
  color: rgba(255,255,255,.88);
  font-size: clamp(15px, 1.6vw, 18px);
  margin: 16px 0 30px;
}
.hero-slide.align-center .hero-text { margin-left: auto; margin-right: auto; }
.hero-slide.align-right .hero-text { margin-left: auto; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-slide.align-center .hero-actions { justify-content: center; }
.hero-slide.align-right .hero-actions { justify-content: flex-end; }

/* staggered caption entrance */
.hero-slide .hero-kicker, .hero-slide .hero-title,
.hero-slide .hero-text, .hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.hero-slide.is-active .hero-kicker { opacity: 1; transform: none; transition-delay: .3s; }
.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: .55s; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; transition-delay: .8s; }
.hero-slide.is-active .hero-actions { opacity: 1; transform: none; transition-delay: 1.05s; }

/* sweeping curve divider at hero bottom */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(48px, 8vw, 92px);
  background: var(--curve) no-repeat bottom / 100% 100%;
  z-index: 5;
  pointer-events: none;
}
/* when the dark calligraphy band follows, swap the cream wave for a tall
   dark fade so the hero photo dissolves into the band (kills the hard seam);
   the band top is maroon-deep too, so the two become one continuous niche.
   Sits at z-index 5, below the dots/arrows (z-index 6). */
.hero:has(+ .calligraphy)::after {
  bottom: 0;
  height: clamp(150px, 19vw, 280px);
  background: linear-gradient(to bottom,
    rgba(46,23,23,0) 0%, rgba(46,23,23,.5) 42%, var(--maroon-deep) 88%);
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  width: 46px; height: 56px;
  border: 0;
  background: rgba(46,23,23,.45);
  color: var(--gold);
  font-size: 26px;
  transition: background .3s var(--ease);
}
.hero-arrow:hover { background: var(--gold); color: var(--maroon-deep); }
.hero-arrow.prev { left: 0; border-radius: 0 14px 14px 0; }
.hero-arrow.next { right: 0; border-radius: 14px 0 0 14px; }
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 46px; /* clears the gold echo of the curve divider */
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-dots button {
  width: 12px; height: 12px;
  padding: 0;
  border: 2px solid var(--gold);
  background: transparent;
  border-radius: 50% 50% 50% 0; /* tiny dome */
  transform: rotate(-45deg);
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.hero-dots button.is-active { background: var(--gold); transform: rotate(-45deg) scale(1.25); }
@media (max-width: 767px) {
  .hero-arrow { display: none; }
}

/* ---------- 9. Minar cards (the signature shape — original behavior) ---------- */
.about-items { padding-top: 64px; }
.about-item { width: 86%; max-width: 320px; margin: 0 auto 96px; }
.ai-inner {
  display: block;
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  background: var(--maroon);
  border: 3px dashed #fff;
  border-top-color: transparent;
  border-bottom-color: transparent;
  transition: all .4s var(--ease);
}
/* dome ball */
.ai-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 40%;
  transform: translateX(-50%);
  width: 90px; height: 90px;
  border-radius: 100%;
  background: var(--maroon);
  opacity: 0;
  visibility: hidden;
  transition: all .4s var(--ease);
}
/* spire */
.ai-inner::after {
  content: "";
  position: absolute;
  z-index: -3;
  left: 50%;
  bottom: 80%;
  transform: translateX(-50%);
  border-left: 20px solid transparent;
  border-right: 20px solid transparent;
  border-bottom: 40px solid var(--maroon);
  opacity: 0;
  visibility: hidden;
  transition: all .4s var(--ease);
}
.ai-inner:hover, .ai-inner:focus-visible {
  background: var(--gold);
  border: 3px dashed transparent;
  border-bottom: 3px dashed #fff;
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
}
.ai-inner:hover::before, .ai-inner:focus-visible::before {
  bottom: 73%;
  background: var(--gold);
  opacity: 1;
  visibility: visible;
}
.ai-inner:hover::after, .ai-inner:focus-visible::after {
  bottom: calc(100% + 10px);
  border-bottom-color: var(--gold);
  opacity: 1;
  visibility: visible;
  transition-delay: .2s; /* delay only on the way in */
}
.ai-inner .about-title {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 17.5px;
  line-height: 1.75;
  color: #fff;
  transition: color .4s var(--ease);
}
.ai-inner:hover .about-title { color: var(--maroon); }
.ai-inner [class*="flaticon-"], .ai-inner [class*="fa-"] { display: block; font-size: 52px; line-height: 1; color: var(--gold); margin-bottom: 20px; transition: all .3s var(--ease); }
.ai-inner .i-about-2 { position: absolute; top: 0; left: 0; right: 0; opacity: 0; visibility: hidden; }
.ai-inner:hover .i-about-1 { opacity: 0; visibility: hidden; }
.ai-inner:hover .i-about-2 { opacity: 1; visibility: visible; top: 30px; color: var(--maroon); transition-delay: .2s; }
@media (max-width: 991px) { .about-item { margin-bottom: 80px; } .about-items { padding-top: 48px; } }

.m-txt { font-size: 18px; line-height: 2; }

/* ---------- 10. Dark photo sections (cc-camera / divisions / quote / books) ---------- */
.bg-lg { position: relative; z-index: 1; background-size: cover; background-position: center; background-repeat: no-repeat; }
.bg-lg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(140deg, rgba(40,19,19,.94), rgba(68,37,37,.86));
}

.cc-camera { background-image: url(/assets/images/bg-lg/05.jpg); }
.cc-camera .cctv-h1 { color: #fff !important; font-weight: 400; font-size: clamp(20px, 3vw, 30px); margin-bottom: 14px; }
.cc-camera .icon-chip { width: 92px; height: 92px; font-size: 38px; margin-bottom: 26px; }

.divisions { background-image: url(/assets/images/bg-lg/01.jpg); }
.books { background-image: url(/assets/images/bg-lg/02.jpg); }
.quote { background-image: url(/assets/images/bg-lg/03.jpg); }
.footer-middle { background: var(--maroon-deep) var(--pat-star); }

/* ---------- 11. Cultural / blog-preview cards ----------
   Inset thumbnail with a mihrab-arch top (the signature shape); a dashed gold
   ring traces the arch on hover — same treatment as the board portraits. */
.cult-area { margin-bottom: 28px; }
.cult-single {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(68,37,37,.09);
  border-radius: var(--r-xy);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease),
              border-radius .45s var(--ease), border-color .45s var(--ease);
}
.cult-single:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-radius: var(--r-yx); border-color: rgba(199,156,29,.55); }
.cult-img-box { position: relative; padding: 12px 12px 0; }
.cult-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50% 50% 12px 12px / 30% 30% 12px 12px; /* mihrab arch */
}
.cult-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--ease); }
.cult-single:hover .cult-thumb img { transform: scale(1.07); }
.cult-thumb::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: 2;
  border: 1px dashed rgba(199,156,29,0);
  border-radius: inherit;
  transition: border-color .45s var(--ease);
  pointer-events: none;
}
.cult-single:hover .cult-thumb::after { border-color: rgba(199,156,29,.85); }
.cult-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--gold);
  background: rgba(46,23,23,.55);
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.cult-single:hover .cult-hover { opacity: 1; }
.btn-date {
  position: absolute;
  left: 26px;
  bottom: -13px;
  z-index: 2;
  padding: 5px 16px 2px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.cult-txt-box { display: flex; flex-direction: column; flex: 1; padding: 30px 24px 24px; }
.cult-title { font-size: 21px; font-weight: 400; line-height: 1.5; }
.cult-title:hover { color: var(--gold-deep); }
.cult-txt-box h2 { margin-bottom: 8px; }
.cult-info { margin-bottom: 10px; }
.cult-icon { display: inline-block; margin-right: 14px; font-size: 14px; color: var(--muted); }
.cult-icon .fa { color: var(--gold-deep); margin-right: 4px; }
.cult-summary {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* equal text height across the row */
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* read-more pins to the card bottom so buttons line up across the row */
.cult-txt-box .btn-read-more { float: none; align-self: flex-end; margin-top: auto; }

/* nasheed / video panel */
.blog-v-single {
  position: relative;
  overflow: hidden;
  margin-top: 56px;
  border-radius: 50% 50% 14px 14px / 18% 18% 14px 14px; /* wide dome top */
  background: var(--maroon-deep) url(/assets/images/bg-lg/04.jpg) center / cover;
  z-index: 1;
}
.blog-v-single::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(40,19,19,.9), rgba(68,37,37,.8)); }
/* display couplet — each <p> must stay on one line at every width (so the pair
   always reads as exactly two lines). vw-driven size keeps a constant fill ratio
   across viewports; nowrap guarantees no wrap, the low floor prevents overflow on
   the narrowest phones, the ceiling caps it on large monitors. */
.arabic-txt { font-family: var(--f-arabic-display); font-size: clamp(20px, 6vw, 60px); white-space: nowrap; color: #fff !important; line-height: 2; margin-bottom: 4px; }
.play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px; height: 78px;
  margin-top: 24px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold) !important;
  font-size: 26px;
  background: rgba(229,184,48,.12);
  transition: all .35s var(--ease);
  position: relative;
  z-index: 2;
}
.play-btn::before { position: relative; left: 3px; }
.play-btn:hover { background: var(--gold); color: var(--maroon-deep) !important; transform: scale(1.1); box-shadow: 0 0 0 12px rgba(229,184,48,.15); }
.bg-bubbles { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; z-index: 0; overflow: hidden; }
.bg-bubbles li {
  position: absolute;
  bottom: -80px;
  width: 26px; height: 26px;
  background: rgba(229,184,48,.1);
  border-radius: 50% 50% 50% 0;
  animation: bubble 22s linear infinite;
}
.bg-bubbles li:nth-child(1){left:8%}
.bg-bubbles li:nth-child(2){left:18%;width:50px;height:50px;animation-delay:2s;animation-duration:16s}
.bg-bubbles li:nth-child(3){left:28%;animation-delay:4s}
.bg-bubbles li:nth-child(4){left:38%;width:40px;height:40px;animation-duration:20s}
.bg-bubbles li:nth-child(5){left:50%;animation-delay:1s}
.bg-bubbles li:nth-child(6){left:60%;width:60px;height:60px;animation-delay:3s}
.bg-bubbles li:nth-child(7){left:70%;width:36px;height:36px;animation-delay:7s}
.bg-bubbles li:nth-child(8){left:80%;animation-delay:5s;animation-duration:26s}
.bg-bubbles li:nth-child(9){left:88%;width:20px;height:20px;animation-delay:6s}
.bg-bubbles li:nth-child(10){left:44%;width:30px;height:30px;animation-delay:9s}
@keyframes bubble { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(-620px) rotate(360deg); opacity: 0; } }

/* video modal */
.video-modal { border: 0; padding: 0; background: transparent; max-width: min(900px, 92vw); width: 100%; }
.video-modal::backdrop { background: rgba(20, 8, 8, .85); }
.video-modal .vm-frame { position: relative; padding-top: 56.25%; border-radius: var(--r-xy); overflow: hidden; box-shadow: var(--shadow-md); }
.video-modal iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal .vm-close { position: absolute; top: -42px; right: 0; background: none; border: 0; color: var(--gold); font-size: 30px; }

/* ---------- 12. Divisions cards ---------- */
.divition-items { padding-top: 10px; }
.div-item-area { margin-bottom: 28px; }
.div-item {
  height: 100%;
  padding: 38px 24px 34px;
  background: rgba(250,247,240,.05);
  border: 1px solid rgba(229,184,48,.4);
  border-radius: 30px 0 30px 0;
  backdrop-filter: blur(2px);
  transition: all .45s var(--ease);
}
.div-item:hover {
  border-color: var(--gold);
  border-radius: 0 30px 0 30px;
  background: rgba(229,184,48,.1);
  transform: translateY(-6px);
}
.div-item .di-icon { line-height: 1; }
.div-item .icon-chip { width: 96px; height: 96px; font-size: 40px; }
/* the rub-el-hizb star glyph is drawn thin — thicken its stroke */
.icon-chip.flaticon-rub-el-hizb::before { -webkit-text-stroke: 1.6px currentColor; }
.div-item:hover .icon-chip {
  background: var(--gold);
  color: var(--maroon-deep);
  border-radius: 50%;
  box-shadow: 0 0 0 10px rgba(229,184,48,.18);
}
.div-item .di-title { color: #fff; font-size: 23px; }
.div-item .di-title:hover { color: var(--gold); }
.div-item .di-txt { color: rgba(255,255,255,.84) !important; font-size: 16px; margin: 10px 0 22px; }

/* ---------- 13. Carousel (scroll-snap, replaces Owl) ---------- */
.carousel { position: relative; }
.car-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 2px 18px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 calc(25% - 18px); scroll-snap-align: start; min-width: 0; }
@media (max-width: 1080px) { .car-item { flex-basis: calc(33.333% - 16px); } }
@media (max-width: 767px) { .car-item { flex-basis: calc(50% - 12px); } }
@media (max-width: 479px) { .car-item { flex-basis: 100%; } }
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px; height: 44px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--maroon);
  color: var(--gold);
  font-size: 20px;
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow-sm);
  transition: all .3s var(--ease);
}
.car-btn:hover { background: var(--gold); color: var(--maroon-deep); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
@media (max-width: 600px) { .car-btn.prev { left: 4px; } .car-btn.next { right: 4px; } }

/* board / teachers */
.teacher { text-align: center; }
.teacher-img {
  display: block;
  position: relative;
  overflow: hidden;
  background: var(--sand) var(--pat-star-dark);
  border: 1px solid rgba(68,37,37,.12);
  border-radius: var(--r-arch); /* mihrab arch */
  transition: all .45s var(--ease);
}
.teacher-img::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed rgba(199,156,29,0);
  border-radius: inherit;
  transition: border-color .45s var(--ease);
  pointer-events: none;
}
.teacher-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.teacher:hover .teacher-img { border-color: var(--gold); box-shadow: var(--shadow-md); }
.teacher:hover .teacher-img::after { border-color: rgba(199,156,29,.8); }
.teacher:hover .teacher-img img { transform: scale(1.05); }
.teacher-info { padding-top: 16px; }
.teacher-name { font-family: var(--f-display); font-size: 19px; color: var(--maroon); margin-bottom: 2px; }
.teacher-pos { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- 14. Counters (library facts) ---------- */
.single-fact { position: relative; padding: 26px 10px; }
.single-fact .t-icon { font-size: 46px; line-height: 1; color: var(--gold); display: block; margin-bottom: 16px; transition: transform .35s var(--ease); }
/* hand-drawn line icons: one shared 2.2 stroke so all four categories match */
.single-fact svg.t-icon { width: 52px; height: 52px; margin-left: auto; margin-right: auto; }
.single-fact:hover .t-icon { transform: translateY(-5px); }
.fact-num, .numscroller { font-family: var(--f-display); font-size: clamp(34px, 4.4vw, 52px); color: #fff; line-height: 1.2; }
.fact-title { color: var(--gold); font-size: 17px; font-weight: 400; letter-spacing: 2px; margin-top: 6px; }
.fact-container:not(:first-child) .single-fact::before {
  content: "";
  position: absolute;
  left: 0; top: 24%;
  height: 52%;
  width: 1px;
  background: linear-gradient(transparent, rgba(229,184,48,.5), transparent);
}
@media (max-width: 991px) { .fact-container:nth-child(odd) .single-fact::before { display: none; } }

/* ---------- 15. Resource links ---------- */
.source-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.single-source a, .source-grid a {
  display: inline-block;
  padding: 13px 30px 9px;
  background: #fff;
  border: 1px solid rgba(68,37,37,.16);
  border-radius: var(--r-pill);
  font-weight: 600;
  color: var(--maroon);
  box-shadow: var(--shadow-sm);
  transition: all .35s var(--ease);
}
.single-source a:hover, .source-grid a:hover {
  background: var(--maroon);
  color: var(--gold);
  transform: translateY(-4px);
}

/* ---------- 16. Quote fader (replaces owl quote slider) ---------- */
.quote-box { max-width: 880px; margin: 0 auto; }
.fader { position: relative; }
.fader .fade-item { display: none; }
.fader .fade-item.is-active { display: block; animation: fadeUp .9s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.fade-dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.fade-dots button {
  width: 11px; height: 11px;
  padding: 0;
  border: 2px solid var(--gold);
  background: transparent;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  transition: all .3s var(--ease);
}
.fade-dots button.is-active { background: var(--gold); }
.single-quote { position: relative; padding-top: 40px; }
.single-quote::before {
  content: "\201D";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: serif;
  font-size: 110px;
  line-height: 1;
  color: var(--gold);
  opacity: .55;
}
.quote-txt { color: rgba(255,255,255,.92); font-size: clamp(17px, 2vw, 21px); line-height: 2; margin-bottom: 6px; }
.quote-h1 { color: var(--gold); font-size: 20px; margin-top: 22px; }
.quote-h1::before { content: "— "; }

/* ---------- 17. Footer ---------- */
.footer-top { background: var(--sand) var(--pat-star-dark); padding: 28px 0; border-top: 1px solid rgba(68,37,37,.08); }
.footer-top .subs { color: var(--maroon) !important; font-size: 19px; font-weight: 600; margin: 0; line-height: 1.7; }
.subscriber { display: flex; max-width: 420px; margin-left: auto; }
.subscriber input {
  flex: 1;
  min-width: 0;
  border: 2px solid var(--maroon);
  border-right: 0;
  background: var(--cream);
  padding: 10px 18px 7px;
  border-radius: 14px 0 0 0;
  outline: none;
}
.subscriber .btn-sbs {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--maroon);
  background: var(--maroon);
  color: var(--gold);
  width: 58px;
  border-radius: 0 0 14px 0;
  font-size: 17px;
  transition: background .3s var(--ease);
}
.subscriber .btn-sbs:hover { background: var(--maroon-deep); }
.subscriber .subs-icon-2 { display: none; }
@media (max-width: 991px) {
  .footer-top { text-align: center; }
  .subscriber { margin: 16px auto 0; }
}

.footer-middle { color: rgba(255,255,255,.75); }
.footer-middle .footer-title {
  position: relative;
  color: var(--gold) !important;
  font-weight: 400;
  font-size: 22px;
  padding-bottom: 14px;
  margin-bottom: 22px;
}
.footer-middle .footer-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 2px; background: var(--gold); }
.footer-middle ul { list-style: none; margin: 0; padding: 0; }
.footer-middle ul li { padding: 6px 0; }
.footer-middle ul li::before { display: inline-block; margin-right: 8px; color: var(--gold); font-size: 13px; }
.footer-middle li a, .footer-middle li span { color: rgba(255,255,255,.78) !important; }
.footer-middle li .f-ico { color: var(--gold) !important; margin-right: 6px; }
.footer-middle li a:hover { color: var(--gold) !important; }
.footer-name { color: var(--gold); font-weight: 400; font-size: 22px; }
.footer-logo-part img { width: 86px; margin: 6px 0 14px; }
.footer-about-txt { font-size: 15.5px; color: rgba(255,255,255,.7) !important; }
.tbr-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: rgba(229,184,48,.14);
  border: 1px solid rgba(229,184,48,.4);
  border-radius: 50% 50% 50% 0;
  transition: all .3s var(--ease);
}
.tbr-social a:hover { background: var(--gold); border-radius: 0 50% 50% 50%; }
.tbr-social a:hover .fa { color: var(--maroon-deep) !important; }
.footer-col { margin-bottom: 36px; }

.copyright { background: #241010; padding: 18px 0; font-size: 14.5px; }
.copyright-txt { margin: 0; color: rgba(255,255,255,.65) !important; }
.copyright a { color: var(--gold); }
.site-map li { padding-left: 14px; }
.site-map a { color: rgba(255,255,255,.65) !important; }
.site-map a:hover { color: var(--gold) !important; }
@media (max-width: 767px) {
  .copyright { text-align: center; }
  .site-map { float: none !important; margin-top: 8px; }
}

/* back to top */
.back2Top {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 950;
  width: 46px; height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--maroon-deep);
  font-size: 22px;
  border-radius: 50% 50% 0 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.back2Top.show { display: flex; }
.back2Top:hover { background: var(--maroon); color: var(--gold); }

/* ---------- 18. Inner-page banners (other-page-heading) ---------- */
.other-page-heading {
  position: relative;
  z-index: 1;
  min-height: 320px;
  display: flex;
  background-size: cover;
  background-position: center;
}
.other-page-heading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(40,19,19,.8), rgba(68,37,37,.68));
}
.other-page-heading::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: clamp(36px, 6vw, 64px);
  background: var(--curve) no-repeat bottom / 100% 100%;
  pointer-events: none;
}
.heading-container { width: 100%; display: flex; }
.main-heading { margin: auto; padding: 90px 16px 70px; width: 100%; }
.heading-txt { font-size: clamp(30px, 5vw, 44px); font-weight: 400; color: #fff !important; margin-bottom: 8px; }
.op-path li { color: var(--gold); font-size: 16px; }
.op-path li + li::before { content: "\2022"; margin: 0 12px; color: rgba(255,255,255,.6); }
.op-path li a { color: rgba(255,255,255,.85); }
.op-path li a:hover { color: var(--gold); }

.op-blog { background-image: url(/assets/images/other-pages/01.jpg); }
.op-about { background-image: url(/assets/images/other-pages/02.jpg); background-position: top center; }
.op-div { background-image: url(/assets/images/other-pages/03.jpg); background-position: center top; }
.op-principal { background-image: url(/assets/images/other-pages/04.jpg); background-position: top right; }
.op-add { background-image: url(/assets/images/other-pages/05.png); }
.op-contact { background-image: url(/assets/images/other-pages/06.png); }

/* ---------- 19. Generic content pages ---------- */
.global-text-box { margin-bottom: 10px; }
.global-h2 {
  position: relative;
  font-size: 27px;
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.global-h2::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 56px; height: 3px;
  background: var(--gold);
  border-radius: 3px;
}
.global-text { font-size: 18px; color: var(--ink) !important; }
.global-list { padding-left: 0; list-style: none; }
.global-list li { position: relative; padding: 6px 0 6px 30px; font-size: 17.5px; color: var(--ink) !important; }
.global-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 11px; height: 11px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.ad-info { list-style: none; padding: 18px 20px; margin-bottom: 22px; background: #fff; border: 1px solid rgba(68,37,37,.1); border-left: 4px solid var(--gold); border-radius: var(--r-xy); box-shadow: var(--shadow-sm); }
.ad-info li { padding: 3px 0; font-size: 17px; color: var(--ink) !important; }

/* admission fee tables */
.ad-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ad-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid rgba(68,37,37,.12);
  border-radius: var(--r-xy);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 8px;
}
.ad-table th, .ad-table td {
  padding: 12px 16px;
  font-size: 17px;
  text-align: center;
  border-bottom: 1px solid rgba(68,37,37,.08);
  white-space: nowrap;
}
.ad-table thead th {
  background: var(--maroon);
  color: var(--white) !important;
  font-weight: 600;
}
.ad-table tbody th {
  background: var(--sand);
  color: var(--ink) !important;
  text-align: right;
  font-weight: 600;
}
.ad-table tbody td { color: var(--ink) !important; }
.ad-table tbody tr:nth-child(even) td { background: var(--cream); }
.ad-table tbody tr:hover td { background: rgba(229,184,48,.12); }
.ad-table tr.ad-total th,
.ad-table tr.ad-total td {
  background: var(--gold);
  color: var(--maroon-deep) !important;
  font-weight: 700;
  border-bottom: 0;
}
.ad-table tr:last-child th, .ad-table tr:last-child td { border-bottom: 0; }

/* divisions detail page media rows */
.div-img img {
  width: 100%;
  border-radius: 50% 50% 14px 14px / 16% 16% 14px 14px;
  border: 1px solid rgba(68,37,37,.12);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

/* principal — layered circular portrait frame */
.principal-img {
  position: relative;
  display: inline-block;
  margin: 14px 0 0 14px;
}
.principal-img::before {
  /* offset sand disc behind */
  content: "";
  position: absolute;
  top: -14px; left: -14px; right: 14px; bottom: 14px;
  background: var(--sand) var(--pat-star-dark);
  border: 1px solid rgba(68,37,37,.12);
  border-radius: 50%;
}
.principal-img::after {
  /* dashed gold ring floating over the offset */
  content: "";
  position: absolute;
  inset: -7px 7px 7px -7px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  pointer-events: none;
  animation: ringSpin 40s linear infinite;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
.principal-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  border: 6px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(199,156,29,.55), var(--shadow-md);
  background: var(--sand);
}
/* mosque badge sitting on the ring — maroon disc, gold glyph.
   The flaticon set is hairline stroke art, so at badge size the glyph reads
   thin and faded: text-stroke fattens the strokes and a soft gold glow lifts
   it off the maroon without changing the palette. */
.principal-img .p-badge {
  position: absolute;
  z-index: 2;
  right: 2%;
  bottom: 2%;
  width: 70px; height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: var(--maroon);
  color: var(--gold);
  -webkit-text-stroke: 1px var(--gold);
  border: 3px solid var(--cream);
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow-md);
}
.principal-name { font-size: 32px; margin-bottom: 14px; }

/* education timeline: year badge + degree + institute */
.degree-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.degree-timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(229,184,48,.15));
}
.degree-timeline li { position: relative; padding: 0 0 18px 36px; }
.degree-timeline li:last-child { padding-bottom: 0; }
.degree-timeline li::before {
  content: "";
  position: absolute;
  left: 1px; top: 9px;
  width: 14px; height: 14px;
  background: var(--cream);
  border: 3px solid var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.degree-timeline .dt-year {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 15px;
  color: var(--maroon-deep);
  background: var(--gold);
  border-radius: var(--r-pill);
  padding: 2px 12px 0;
  margin-right: 10px;
}
.degree-timeline .dt-degree { font-weight: 600; color: var(--maroon); }
.degree-timeline .dt-inst { display: block; font-size: 15.5px; color: var(--muted); }
/* legacy single-line fallback */
.principal-pos span { display: inline-block; background: var(--sand); border-radius: var(--r-pill); padding: 6px 18px 2px; color: var(--maroon-soft) !important; }

/* ---------- 20. Blog listing ---------- */
.featured-post { padding-top: 28px; }
.featured-area { margin-bottom: 28px; }
.featured-single {
  position: relative;
  z-index: 1;
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--r-card);
  background-size: cover;
  background-position: center;
}
.featured-single::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(40,19,19,.86), rgba(40,19,19,.72)); }
.f-bg-1 { background-image: url(/assets/images/blog-banner/03.jpg) !important; }
.f-bg-2 { background-image: url(/assets/images/blog/blog-home/02.jpg) !important; }
.tag-feature {
  position: absolute;
  top: 18px; left: 18px;
  background: var(--gold);
  color: var(--maroon-deep);
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 14px 1px;
  border-radius: var(--r-pill);
}
.featured-single .post-preview { padding: 56px 14px 10px; }
.featured-title { display: inline-block; color: #fff; font-size: clamp(21px, 2.6vw, 28px); font-weight: 600; }
.featured-title:hover { color: var(--gold); }
.featured-info-box { color: rgba(255,255,255,.8); }
.fi-single { color: var(--gold); font-size: 14.5px; margin-right: 4px; }
.fi-single:hover { color: #fff; }
.fi-icon { margin-right: 5px; }
.f-summary { margin: 12px 0 18px; font-size: 16px; }

.single-post {
  background: #fff;
  border: 1px solid rgba(68,37,37,.09);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin-bottom: 30px;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.single-post:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-information { width: 230px; padding-right: 24px; }
.post-information .user-img { display: block; margin-bottom: 14px; overflow: hidden; border-radius: 50% 50% 12px 12px / 26% 26% 12px 12px; }
.post-information .user-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .5s var(--ease); }
.post-information .user-img:hover img { transform: scale(1.06); }
.pi-area { display: block; font-size: 14px; padding: 2px 0; }
.post-prev { width: calc(100% - 230px); }
@media (max-width: 600px) {
  .post-information, .post-prev { width: 100%; padding-right: 0; float: none; }
}
.post-title { font-size: 24px; }
.post-title:hover { color: var(--gold-deep) !important; }
.post-summary { font-size: 16px; margin: 10px 0 16px; }
.p-tag-area { padding-top: 14px; margin-top: 14px; border-top: 1px dashed rgba(68,37,37,.18); }
.post-tag { margin-right: 10px; font-size: 14px; }
.post-tag a:hover { color: var(--gold-deep) !important; }

.blog-pages { padding-top: 10px; }
.blog-pages li { margin: 0 4px; }
.blog-pages a {
  display: inline-block;
  min-width: 42px;
  padding: 7px 10px 3px;
  background: #fff;
  border: 1px solid rgba(68,37,37,.16);
  border-radius: 10px;
  font-weight: 600;
  transition: all .3s var(--ease);
}
.blog-pages a.active, .blog-pages a:hover { background: var(--maroon); color: var(--gold); border-color: var(--maroon); }

/* ---------- 21. Sidebar ---------- */
@media (min-width: 992px) {
  .g_side_bar { position: sticky; top: 76px; align-self: flex-start; }
}
.g_side_bar .row { display: block; margin: 0; }
.g_side_bar form.search { display: flex; }
.g_side_bar .search input {
  flex: 1;
  min-width: 0;
  padding: 10px 16px 7px;
  border: 1px solid rgba(68,37,37,.18);
  border-right: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  outline: none;
  float: none;
}
.g_side_bar .search input:focus { border-color: var(--gold-deep); }
.g_side_bar .search button {
  width: 52px;
  border: 0;
  background: var(--maroon);
  color: var(--gold);
  border-radius: 0 12px 12px 0;
  float: none;
  transition: background .3s var(--ease);
}
.g_side_bar .search button:hover { background: var(--gold); color: var(--maroon-deep); }
.aside-title {
  position: relative;
  font-size: 21px;
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.aside-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 3px; background: var(--gold); border-radius: 3px; }
.aside-li { list-style: none; padding: 0; margin: 0; }
.aside-li li { border-bottom: 1px dashed rgba(68,37,37,.14); }
.aside-li a { display: block; padding: 9px 0 6px; font-size: 15.5px; color: var(--ink); }
.aside-li a:hover { color: var(--gold-deep); padding-left: 4px; }
.aside-icon { color: var(--gold-deep); margin-right: 8px; }
.all-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.real-tag {
  display: inline-block;
  padding: 4px 14px 1px;
  background: #fff;
  border: 1px solid rgba(68,37,37,.16);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--maroon-soft);
  transition: all .3s var(--ease);
}
.real-tag:hover { background: var(--maroon); color: var(--gold); }

/* ---------- 22. Single post pages (legacy markup) ---------- */
/* flex so the sidebar can stick on single posts too (floats can't stick) */
.page-content { background: transparent !important; display: flex; flex-wrap: wrap; align-items: flex-start; }
.page-content > [class*="col-"] { float: none; }
.multi-post { border-bottom: 2px solid rgba(68,37,37,.12); }
.multi-post li a {
  display: inline-block;
  padding: 10px 22px 6px;
  font-weight: 600;
  border-radius: 14px 14px 0 0;
  background: rgba(68,37,37,.06);
}
.multi-post li.active a { background: var(--maroon); color: var(--gold) !important; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeUp .5s var(--ease); }
.blog-banner img { width: 100%; border-radius: var(--r-xy); box-shadow: var(--shadow-sm); }
.single-post-title { font-size: clamp(27px, 3.4vw, 35px); margin-top: 24px; }
.arab-title { text-align: right; }
.sp-i-area { padding-bottom: 6px; }
.sp-i { display: inline-block; margin-right: 18px; color: var(--muted); font-size: 15.5px; }
.sp-i a { color: var(--maroon-soft); font-weight: 600; }
.sp-content {
  background: #fff !important;
  border: 1px solid rgba(68,37,37,.09);
  border-radius: var(--r-xy);
  padding: 30px clamp(18px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}
.sp-text-1 { font-size: 18px; line-height: 2.05; }
[dir="rtl"] .sp-text-1, .sp-text-1.txt-rtl { font-size: 20px; line-height: 2.2; }
.sp-quote {
  background: var(--sand) var(--pat-star-dark);
  border-right: 4px solid var(--gold);
  border-left: 4px solid var(--gold);
  border-radius: var(--r-xy);
  padding: 22px 28px;
  margin-bottom: 24px;
}
.spq-txt { font-size: 18.5px; font-weight: 500; color: var(--maroon); margin: 0; }
.source { display: inline-block; background: var(--maroon); color: #fff; border-radius: var(--r-pill); padding: 8px 24px 5px; }
.source strong.cw { color: var(--gold) !important; }

/* reference screenshot grid (post pages) */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.ref-grid a { display: block; overflow: hidden; border-radius: var(--r-xy); border: 1px solid rgba(68,37,37,.14); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.ref-grid a:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ref-grid img { width: 100%; }
.inner-heading { padding: 9px 18px 5px; border-radius: var(--r-pill); font-size: 19px; }
.inner-list li { padding: 4px 0; }
.inner-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); }

/* ---------- 23. Contact ---------- */
/* themed Leaflet map */
.contact-map-area { position: relative; clear: both; }
#site-map { width: 100%; height: 440px; z-index: 1; background: #e8e6e1; }
.map-pin { filter: drop-shadow(0 6px 10px rgba(46,23,23,.5)); }
#site-map .leaflet-popup-content-wrapper {
  background: var(--cream) var(--pat-star-dark);
  color: var(--ink);
  border: 2px solid var(--gold);
  border-radius: var(--r-xy);
  box-shadow: var(--shadow-md);
}
#site-map .leaflet-popup-content { margin: 16px 20px 12px; font-family: var(--f-body); }
#site-map .leaflet-popup-tip { background: var(--gold); }
.map-popup h4 { font-size: 19px; margin: 0 0 4px; color: var(--maroon); }
.map-popup p { margin: 0; font-size: 14.5px; color: var(--muted); }
/* close button floats just outside the top-right corner */
#site-map .leaflet-popup-close-button {
  top: -13px !important;
  right: -13px !important;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--maroon) !important;
  color: var(--gold) !important;
  font: 700 16px/1 sans-serif;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: all .25s var(--ease);
}
#site-map .leaflet-popup-close-button:hover { background: var(--gold) !important; color: var(--maroon) !important; }

/* contact info cards — permanent minar shape (original design) */
.info-item-area { background-image: url(/assets/images/other-pages/07.jpg); }
.info-item-area .container { padding-top: 20px; display: flex; flex-wrap: wrap; }
.info-item { margin-top: 60px; float: none; }
.itxt {
  position: relative;
  z-index: 1;
  background: var(--maroon);
  border-top-left-radius: 50%;
  border-top-right-radius: 50%;
  border-bottom: 1px dashed rgba(0,0,0,.8);
  padding: 44px 18px 26px;
  transition: transform .35s var(--ease);
}
/* dome ball */
.itxt::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 65%;
  transform: translateX(-50%);
  width: 50%;
  height: 50%;
  border-radius: 100%;
  background: inherit;
}
/* spire */
.itxt::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 110%;
  transform: translateX(-50%);
  border-left: 30px solid transparent;
  border-right: 30px solid transparent;
  border-bottom: 30px solid var(--maroon);
}
.itxt:hover { transform: translateY(-6px); }
.info-icon {
  display: inline-block;
  font-size: 30px;
  width: 80px; height: 80px;
  line-height: 80px !important;
  border-radius: 100%;
  background: rgba(255,255,255,.6);
  color: var(--maroon) !important;
  box-shadow: inset 3px -3px 5px rgba(0,0,0,.5);
  margin-bottom: 20px;
}
.i-bolb { font-weight: 600; font-size: 19px; color: #fff !important; margin-bottom: 2px; }
.i-light { margin: 0; font-weight: 300; }

.contact-us-form { max-width: 860px; margin: 0 auto; }
.contact-input, .contact-text { position: relative; margin-bottom: 22px; }
.contact-input input, .contact-text textarea {
  width: 100%;
  padding: 14px 48px 10px 20px;
  background: #fff;
  border: 1px solid rgba(68,37,37,.18);
  border-radius: var(--r-xy);
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.contact-text textarea { min-height: 170px; resize: vertical; }
.contact-input input:focus, .contact-text textarea:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(229,184,48,.18); }
.titan-icon { position: absolute; right: 32px; top: 15px; color: var(--muted); }
.contact-us-form button[type="submit"] { border: 0; margin-left: 14px; }
#form-dialogue .text-success { color: #2e7d32; font-weight: 600; }
#form-dialogue .text-danger { color: #c62828; font-weight: 600; }

/* ---------- 24. allpages helpers ---------- */
.btn-previw {
  display: inline-block;
  margin: 6px 8px 6px 0;
  padding: 10px 24px 6px;
  background: #fff;
  border: 1px solid rgba(68,37,37,.16);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.btn-previw:hover { background: var(--maroon); color: var(--gold); }

/* ---------- 24b. Calligraphy showpiece (Surah Al-'Alaq 96:1) ----------
   A gold-on-maroon ayah that "writes itself" right-to-left when scrolled
   into view: ghost guide -> ink wipe + travelling pen-nib glint -> gold
   shimmer. The motion is gated behind .is-drawn (added by site.js) and is
   fully neutralised under prefers-reduced-motion. */
.sr-only, .calli-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.calligraphy {
  position: relative;
  overflow: hidden;
  margin-top: -1px; /* kill the sub-pixel seam against the hero */
  /* tall top band so the long-corded lanterns hang clear of the stage below */
  padding: clamp(210px, 23.5vw, 300px) 0 clamp(96px, 11vw, 150px);
  background:
    radial-gradient(125% 95% at 50% 40%, var(--maroon-soft) 0%, var(--maroon-deep) 52%, #1a0b0b 100%);
  isolation: isolate;
}
/* top: dark fade so the hero dissolves seamlessly into the band */
.calligraphy::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0;
  height: clamp(70px, 10vw, 130px); z-index: 0; pointer-events: none;
  background: linear-gradient(to bottom, var(--maroon-deep), rgba(46,23,23,0));
}
/* bottom: the signature cream wave, now transitioning into the About section */
.calligraphy::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(48px, 8vw, 92px); z-index: 6; pointer-events: none;
  background: var(--curve) no-repeat bottom / 100% 100%;
}
/* faint 8-point-star tiling, same motif as the rest of the site */
.calli-veil { position: absolute; inset: 0; z-index: 0; background: var(--pat-star); opacity: .9; pointer-events: none; }
/* breathing radial halo behind the letters */
.calli-glow {
  position: absolute; left: 50%; top: 48%; z-index: 0;
  width: min(960px, 130%); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(229,184,48,.22), rgba(229,184,48,0) 62%);
  pointer-events: none;
  animation: calliBreathe 7.5s ease-in-out infinite;
}
@keyframes calliBreathe {
  0%, 100% { opacity: .6; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%, -50%) scale(1.12); }
}

/* floating gold motes */
.calli-motes { position: absolute; inset: 0; z-index: 1; margin: 0; padding: 0; list-style: none; overflow: hidden; pointer-events: none; }
.calli-motes li {
  position: absolute; bottom: -8%;
  width: 7px; height: 7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,247,218,.95), rgba(229,184,48,.35) 60%, transparent 72%);
  opacity: 0;
  animation: calliMote linear infinite;
}
.calli-motes li:nth-child(1){left:6%; animation-duration:15s; animation-delay:0s}
.calli-motes li:nth-child(2){left:15%; width:4px; height:4px; animation-duration:19s; animation-delay:3s}
.calli-motes li:nth-child(3){left:24%; animation-duration:13s; animation-delay:6s}
.calli-motes li:nth-child(4){left:33%; width:5px; height:5px; animation-duration:21s; animation-delay:1.5s}
.calli-motes li:nth-child(5){left:42%; animation-duration:16s; animation-delay:8s}
.calli-motes li:nth-child(6){left:50%; width:9px; height:9px; animation-duration:24s; animation-delay:4s}
.calli-motes li:nth-child(7){left:59%; width:4px; height:4px; animation-duration:14s; animation-delay:10s}
.calli-motes li:nth-child(8){left:68%; animation-duration:18s; animation-delay:2s}
.calli-motes li:nth-child(9){left:77%; width:5px; height:5px; animation-duration:22s; animation-delay:7s}
.calli-motes li:nth-child(10){left:86%; animation-duration:17s; animation-delay:5s}
.calli-motes li:nth-child(11){left:93%; width:4px; height:4px; animation-duration:20s; animation-delay:11s}
.calli-motes li:nth-child(12){left:38%; width:6px; height:6px; animation-duration:23s; animation-delay:13s}
@keyframes calliMote {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  12%  { opacity: 1; }
  85%  { opacity: .9; }
  100% { transform: translateY(-78vh) scale(1); opacity: 0; }
}

/* the mihrab-arch stage */
.calli-stage {
  position: relative; z-index: 2;
  max-width: 1000px; margin: 0 auto;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px) clamp(48px, 6vw, 78px);
  border: 1px solid rgba(229,184,48,.26);
  border-radius: 50% 50% 18px 18px / 16% 16% 18px 18px; /* wide dome top (minar nod) */
  background: linear-gradient(rgba(46,23,23,.38), rgba(20,8,8,.18));
  box-shadow: inset 0 0 70px rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.28);
}
/* mosque ornament closing the stage, matching the section headings */
.calli-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%);
  width: 180px; height: 36px;
  background: var(--orn-minar) no-repeat center / contain;
  opacity: .9;
}

.calli-kicker {
  margin: 0 0 8px;
  font-family: var(--f-display);
  font-size: clamp(14px, 1.6vw, 17px);
  letter-spacing: 2px;
  color: rgba(250,247,240,.78);
}

/* the calligraphy itself: ghost guide + gold "ink" stacked */
.calli-art {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin: 14px auto 24px;
}
/* ambient float (replaces the old pointer parallax) — starts after write-on */
.is-drawn .calli-art { animation: calliFloat 9s ease-in-out 3.4s infinite; }
@keyframes calliFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.calli-line {
  display: block;
  margin: 0;
  font-family: var(--f-arabic-display), var(--f-arabic);
  font-size: clamp(38px, 9vw, 104px);
  /* roomy line box: Aref Ruqaa's tall/low marks (hamza, kasra) must sit INSIDE
     the box, or background-clip:text has no gradient there and they render as
     ghost stroke only with no gold fill */
  line-height: 2.05;
  font-weight: 700;
}
/* faint outlined "pencil guide" — always present */
.calli-ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(229,184,48,.32);
  text-stroke: 1px rgba(229,184,48,.32);
}
/* the gold ink, clipped to a right-to-left writing reveal */
.calli-ink {
  position: absolute; inset: 0;
  color: transparent;
  background: linear-gradient(100deg,
    var(--gold-deep) 0%, var(--gold) 26%, #fff6d8 50%, var(--gold) 74%, var(--gold-deep) 100%);
  background-size: 220% 100%;
  background-position: 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(229,184,48,.35));
  /* negative top/bottom/right keep the glow and the tall/low glyph marks
     (hamza, kasra) inside the clip — only the left edge wipes the reveal */
  clip-path: inset(-45% -12% -45% 100%); /* hidden: reveal grows from the right */
}
.is-drawn .calli-ink {
  animation:
    calliWipe 2.5s var(--ease) .35s forwards,
    /* alternate + ease-in-out: the sheen eases to a stop off-glyph and
       reverses, so each loop joins the next seamlessly (no position snap) */
    calliShimmer 7s ease-in-out 3s infinite alternate;
}
@keyframes calliWipe {
  from { clip-path: inset(-45% -12% -45% 100%); }
  to   { clip-path: inset(-45% -12% -45% -12%); } /* negative left keeps the trailing glow uncut */
}
@keyframes calliShimmer {
  0%   { background-position: 130% 0; }
  100% { background-position: -130% 0; }
}

/* the travelling pen-nib glint, sweeping right-to-left with the ink */
.calli-nib {
  position: absolute; top: -4%; bottom: -4%; right: 0;
  width: 16px;
  background: radial-gradient(closest-side, rgba(255,248,222,.95), rgba(229,184,48,.45) 45%, transparent 72%);
  filter: blur(2px);
  opacity: 0; pointer-events: none;
}
.is-drawn .calli-nib { animation: calliNib 2.5s var(--ease) .35s forwards; }
@keyframes calliNib {
  0%   { right: -3%; opacity: 0; }
  14%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

.calli-trans {
  max-width: 620px; margin: 4px auto 0;
  font-size: clamp(17px, 2.1vw, 22px);
  color: rgba(250,247,240,.92);
}

/* ---- hanging mosque lanterns (fanoos): the hero -> band threshold garland ----
   an SVG modelled on the ornate brass fanoos, hung at five staggered depths/
   sizes on thin gold cords (see _includes/calligraphy.html). */
.calli-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.calli-lamps { position: absolute; inset: 0; z-index: 3; pointer-events: none; }

/* a tight, full-length cluster pushed into the right corner (the left stays open
   above the centred calligraphy), like the top-right grouping in the reference.
   Long, irregular cord drops give the staggered hanging look; the tall top band
   keeps even the lowest lantern clear of the stage below. */
.calli-lamp-wrap { position: absolute; top: var(--drop); transform: translateX(-50%); }
.calli-lamp-wrap.l1 { left: 89%; --drop: clamp(96px, 11vw, 168px); width: clamp(56px, 6.8vw, 84px); } /* feature: largest, longest cord */
.calli-lamp-wrap.l2 { left: 86%; --drop: clamp(44px, 5vw, 84px);   width: clamp(40px, 4.4vw, 52px); } /* hung highest (cluster's left) */
.calli-lamp-wrap.l3 { left: 92%; --drop: clamp(80px, 9vw, 140px);  width: clamp(46px, 5.2vw, 62px); } /* medium */
.calli-lamp-wrap.l4 { left: 98%; --drop: clamp(70px, 8vw, 124px);  width: clamp(38px, 4.2vw, 50px); } /* trailing */
.calli-lamp-wrap.l5 { left: 95%; --drop: clamp(58px, 6.6vw, 104px); width: clamp(42px, 4.8vw, 56px); } /* mid */

/* the cord: a thin gold line drawn down from the band's top edge to the ring */
.calli-lamp-wrap::before {
  content: ""; position: absolute; left: 50%; bottom: 100%;
  width: 1px; height: var(--drop); margin-bottom: -1px;
  background: linear-gradient(to bottom, rgba(229,184,48,0), var(--gold) 40%, var(--gold-deep));
  transform: translateX(-50%) scaleY(0); transform-origin: top center;
}
.is-drawn .calli-lamp-wrap::before { animation: lampCord .7s var(--ease) forwards; }
@keyframes lampCord { to { transform: translateX(-50%) scaleY(1); } }

.calli-lamp { display: block; width: 100%; height: auto; overflow: visible;
  transform-box: fill-box; transform-origin: 50% 0; }
/* each sways at its own pace so they never move in lockstep */
.is-drawn .l1 .calli-lamp { animation: lampSway 5.5s ease-in-out 1.7s infinite; }
.is-drawn .l2 .calli-lamp { animation: lampSway 6.6s ease-in-out 2.1s infinite; }
.is-drawn .l3 .calli-lamp { animation: lampSway 5s   ease-in-out 1.3s infinite; }
.is-drawn .l4 .calli-lamp { animation: lampSway 7.2s ease-in-out 2.6s infinite; }
.is-drawn .l5 .calli-lamp { animation: lampSway 6s   ease-in-out 1s   infinite; }
/* starts and ends at the resting angle (0deg) so the infinite loop eases in
   from where the lantern hangs — no snap when the sway kicks in after the delay */
@keyframes lampSway {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(2.4deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(-2.4deg); }
  100% { transform: rotate(0deg); }
}

/* gold outline strokes: ring, collars, rim lines */
.lamp-line, .lamp-ring {
  stroke: var(--gold-deep); stroke-width: 1.8; fill: rgba(229,184,48,.12);
  stroke-linejoin: round; stroke-linecap: round; opacity: 0;
}
.lamp-ring { fill: none; }
/* glassy filigree domes (top cap + inverted base) */
.lamp-dome {
  stroke: var(--gold); stroke-width: 2; fill: rgba(229,184,48,.14);
  stroke-linejoin: round; opacity: 0;
}
/* the wide protruding shoulder bands — brass plates */
.lamp-band {
  stroke: var(--gold); stroke-width: 2; fill: rgba(229,184,48,.2);
  stroke-linejoin: round; opacity: 0;
}
/* main lantern body */
.lamp-body {
  stroke: var(--gold); stroke-width: 2; fill: rgba(229,184,48,.07);
  stroke-linejoin: round; opacity: 0;
  transform-box: fill-box; transform-origin: 50% 0;
}
/* frosted side panels + the lit centre window */
.lamp-frost {
  stroke: rgba(229,184,48,.5); stroke-width: 1.2; fill: rgba(250,247,240,.12);
  stroke-linejoin: round; opacity: 0;
}
.lamp-panel {
  stroke: rgba(229,184,48,.75); stroke-width: 1.3; fill: rgba(255,224,140,.26);
  stroke-linejoin: round; opacity: 0;
}
/* vertical brass posts between panels */
.lamp-post { stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; fill: none; opacity: 0; }
/* thin gold filigree ribs (lattice arcs, scallops, belt) */
.lamp-rib { stroke: rgba(229,184,48,.5); stroke-width: 1; fill: none; opacity: 0; }
/* set jewels (soft sapphire accents, as on the brass dome) */
.lamp-gem { fill: rgba(86,134,196,.62); stroke: rgba(229,184,48,.6); stroke-width: .8; opacity: 0; }
/* filled gold finials (onion crown + pointed drop) */
.lamp-finial { fill: var(--gold); opacity: 0; }

.is-drawn .lamp-line, .is-drawn .lamp-ring { animation: lampFade .7s var(--ease) .6s forwards; }
.is-drawn .lamp-dome   { animation: lampFade .7s var(--ease) .5s forwards; }
.is-drawn .lamp-band   { animation: lampFade .7s var(--ease) .55s forwards; }
.is-drawn .lamp-body   { animation: lampBodyIn .8s var(--ease) .55s forwards; }
.is-drawn .lamp-frost  { animation: lampFade .8s var(--ease) .7s forwards; }
.is-drawn .lamp-panel  { animation: lampFade .8s var(--ease) .85s forwards; }
.is-drawn .lamp-post   { animation: lampFade .7s var(--ease) .7s forwards; }
.is-drawn .lamp-rib    { animation: lampFade .7s var(--ease) .8s forwards; }
.is-drawn .lamp-gem    { animation: lampFade .7s var(--ease) .9s forwards; }
.is-drawn .lamp-finial { animation: lampFade .7s var(--ease) .45s forwards; }
@keyframes lampFade { to { opacity: 1; } }
@keyframes lampBodyIn { from { opacity: 0; transform: scaleY(.55); } to { opacity: 1; transform: none; } }

/* the light core + halo fade in, then breathe (opacity vs transform — no clash) */
.lamp-halo, .lamp-core { opacity: 0; transform-box: fill-box; transform-origin: 50% 50%; }
.is-drawn .lamp-halo { animation: lampFade 1s var(--ease) .85s forwards, lampPulse 4.2s ease-in-out 1.9s infinite; }
.is-drawn .lamp-core { animation: lampFade .9s var(--ease) 1s forwards, lampPulse 3.4s ease-in-out 2s infinite; }
@keyframes lampPulse { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.12); } }

/* thin the cluster on smaller screens so the corner stays uncluttered */
@media (max-width: 720px) { .calli-lamp-wrap.l4, .calli-lamp-wrap.l5 { display: none; } }
@media (max-width: 460px) { .calli-lamp-wrap.l3 { display: none; } }

/* gentle entrance for the framing text (reuses the .reveal observer) */
@media (prefers-reduced-motion: reduce) {
  .calli-glow, .calli-motes li { animation: none; }
  .calli-glow { opacity: .8; }
  .calli-ink { clip-path: inset(-45% -12% -45% -12%); animation: none; }
  .calli-nib { display: none; }
  .calli-stage { transform: none; }
  .calli-art { transform: none; animation: none; }
  .calli-lamp { animation: none; }
  .calli-lamp-wrap::before { transform: translateX(-50%) scaleY(1); }
  .lamp-line, .lamp-ring, .lamp-dome, .lamp-band, .lamp-body, .lamp-frost, .lamp-panel,
  .lamp-post, .lamp-rib, .lamp-gem, .lamp-finial, .lamp-halo, .lamp-core { opacity: 1; animation: none; transform: none; }
}

/* site-wide: a slow gold sheen across the header Basmala */
.top-bar .welcome strong {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 40%, #fff4cf 50%, var(--gold) 60%, var(--gold-deep) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* alternate + ease-in-out so the loop joins seamlessly (no position snap) */
  animation: basmalaShine 8s ease-in-out infinite alternate;
}
@keyframes basmalaShine { 0% { background-position: 130% 0; } 100% { background-position: -130% 0; } }
@media (prefers-reduced-motion: reduce) { .top-bar .welcome strong { animation: none; } }

/* ---------- 25. Reveal-on-scroll (only hidden when JS is available) ---------- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* sections on cream get the faint star pattern */
.about, .teachers, .re-source, .cultural-goods { background: var(--cream) var(--pat-star-dark); }
.cc-camera, .books { text-align: center; }

/* ==========================================================================
   26. About page — reuses the minar motif (icon-chips, arch cards, ornaments)
   ========================================================================== */
.ab-section { background: var(--cream) var(--pat-star-dark); }

/* small gold kicker above a heading */
.ab-eyebrow {
  display: inline-block;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ab-eyebrow::before { content: "\2014"; margin-right: 8px; color: var(--gold); }

/* intro: lead text beside an "at a glance" aside card */
.ab-intro { display: grid; grid-template-columns: 1.65fr 1fr; gap: 44px; align-items: start; }
.ab-lead-first { font-size: 19px; }
.ab-lead-first::first-line { color: var(--maroon); }

.at-glance {
  position: sticky;
  top: 24px;
  background: var(--maroon) var(--pat-star);
  border: 1px solid rgba(229,184,48,.35);
  border-radius: var(--r-yx);
  padding: 30px 28px 24px;
  box-shadow: var(--shadow-md);
}
.at-glance h3 {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--gold) !important;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(229,184,48,.25);
}
.ag-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,.12); }
.ag-row:last-child { border-bottom: 0; }
.ag-ico {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--gold);
  background: rgba(229,184,48,.1);
  border: 1px solid rgba(229,184,48,.4);
  border-radius: 50% 50% 50% 0;
  transition: all .4s var(--ease);
}
.at-glance:hover .ag-ico { background: var(--gold); color: var(--maroon-deep); }
.ag-meta { display: flex; flex-direction: column; line-height: 1.5; }
.ag-k { font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,.55); }
.ag-v { font-family: var(--f-display); font-size: 17px; color: #fff; }

@media (max-width: 860px) {
  .ab-intro { grid-template-columns: 1fr; gap: 32px; }
  .at-glance { position: static; }
}

/* mission: a centered mihrab-style callout with a domed icon chip */
.ab-mission-sec { background: var(--sand) var(--pat-star-dark); }
.ab-mission {
  position: relative;
  max-width: 900px;
  margin: 28px auto 0;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(68,37,37,.1);
  border-radius: var(--r-arch);
  padding: 58px 44px 46px;
  box-shadow: var(--shadow-md);
}
.ab-mission-ico {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  margin: 0;
  font-size: 40px;
  background: var(--maroon);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.ab-mission-label {
  display: block;
  font-family: var(--f-display);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 16px 0 16px;
}
.ab-mission-txt {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.75;
  color: var(--maroon);
  margin: 0;
}

/* --- About page: manual per-icon stroke tuning (edit the px values) --- */

/* "এক নজরে" card */
/* .ag-ico.flaticon-crescent-moon-on-top-of-minaret::before { -webkit-text-stroke: 0px currentColor; } */
.ag-ico.flaticon-quran-rehal::before                     { -webkit-text-stroke: .3px currentColor; }
/* .ag-ico.flaticon-shelf-full::before                      { -webkit-text-stroke: 0px currentColor; } */
.ag-ico.flaticon-placeholder::before                     { -webkit-text-stroke: .3px currentColor; }

/* mission */
.ab-mission-ico.flaticon-mosque-and-minaret::before      { -webkit-text-stroke: 1px currentColor; }

/* বৈশিষ্ট্য feature cards */
.ab-features .flaticon-adhan-call-to-pray::before        { -webkit-text-stroke: 1px currentColor; }
/* .ab-features .flaticon-shelf-full::before                { -webkit-text-stroke: 0px currentColor; } */
/* .ab-features .flaticon-book::before                      { -webkit-text-stroke: 0px currentColor; } */
.ab-features .flaticon-praying-hands::before             { -webkit-text-stroke: 1px currentColor; }
.ab-features .flaticon-minbar::before                    { -webkit-text-stroke: 1px currentColor; }
/* .ab-features .flaticon-technology::before                { -webkit-text-stroke: 0px currentColor; } */

/* অবস্থান / পরিচালনা cards */
/* .ab-card-ico.flaticon-placeholder-1::before              { -webkit-text-stroke: 0px currentColor; } */
/* .ab-card-ico.flaticon-islamic-mosque::before             { -webkit-text-stroke: 0px currentColor; } */

/* roster headers */
/* .rc-ico.flaticon-prayer-beads::before                    { -webkit-text-stroke: 0px currentColor; } */
/* .rc-ico.flaticon-mosque-domes::before                    { -webkit-text-stroke: 0px currentColor; } */

/* features grid reuses .div-item / .icon-chip — only the dark backdrop differs */
.ab-features { background-image: url(/assets/images/bg-lg/02.jpg); }
.ab-features .di-title { font-size: 22px; }

/* location & management: two arch-cornered cards with arch icon chips */
.ab-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.ab-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(68,37,37,.1);
  border-radius: var(--r-xy);
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.ab-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(229,184,48,.5); }
.ab-card-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 66px; height: 66px;
  margin-bottom: 20px;
  font-size: 30px;
  color: var(--gold);
  background: radial-gradient(circle at 50% 30%, rgba(229,184,48,.22), rgba(229,184,48,.04) 70%);
  border: 1px solid rgba(229,184,48,.5);
  border-radius: var(--r-arch);
  transition: all .4s var(--ease);
}
.ab-card:hover .ab-card-ico { background: var(--gold); color: var(--maroon-deep); border-radius: 50%; box-shadow: 0 0 0 8px rgba(229,184,48,.16); }
@media (max-width: 768px) { .ab-info-grid { grid-template-columns: 1fr; } }

/* boards: roster cards with a gold-topped header and minar bullet list */
.ab-boards.bg-lg-soft { background: var(--cream) var(--pat-star-dark); }
.ab-roster-col { margin-bottom: 28px; }
.roster-card {
  height: 100%;
  background: #fff;
  border: 1px solid rgba(68,37,37,.1);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-xy);
  padding: 26px 30px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.roster-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.rc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid rgba(68,37,37,.08); }
.rc-ico {
  flex: 0 0 auto;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  color: var(--gold);
  background: var(--maroon);
  border-radius: 50% 50% 50% 0;
  box-shadow: var(--shadow-sm);
}
.rc-head h2 { margin: 0; font-size: 23px; color: var(--maroon); }
.roster-list { list-style: none; padding: 0; margin: 0; }
.roster-list li { position: relative; padding: 10px 0 10px 28px; font-size: 17px; color: var(--ink); border-bottom: 1px dashed rgba(68,37,37,.08); }
.roster-list li:last-child { border-bottom: 0; }
.roster-list li::before {
  content: "";
  position: absolute;
  left: 3px; top: 18px;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.roster-list-role .rl-role { display: block; font-size: 13px; letter-spacing: .5px; color: var(--muted); }
.roster-list-role .rl-name { font-family: var(--f-display); font-size: 17.5px; color: var(--maroon); }

/* ============================================================
   29. Blog/sidebar gutter, related slider, post-nav, search UI
   (added with the _posts + live-search refactor)
   ============================================================ */

/* --- wider gutter between blog content and the sidebar --- */
@media (min-width: 992px) {
  .post-area, .single-post-area { padding-right: 40px; }
}

/* --- related posts slider (reuses [data-carousel]) --- */
.related-posts { margin-top: 46px; padding-top: 30px; border-top: 1px dashed rgba(68,37,37,.18); }
.rp-title { font-size: 24px; margin-bottom: 22px; position: relative; padding-left: 16px; }
.rp-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--gold); }
.rp-carousel .car-track { gap: 20px; }
.rp-card {
  flex: 0 0 calc(33.333% - 14px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid rgba(68,37,37,.10);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
@media (max-width: 991px) { .rp-card { flex-basis: calc(50% - 10px); } }
@media (max-width: 600px) { .rp-card { flex-basis: 85%; } }
.rp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.rp-thumb { display: block; overflow: hidden; }
.rp-thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.rp-card:hover .rp-thumb img { transform: scale(1.06); }
.rp-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.rp-meta { color: var(--muted); font-size: 13.5px; }
.rp-meta .fa { color: var(--gold-deep); margin-right: 5px; }
.rp-name { font-size: 18px; line-height: 1.5; color: var(--maroon); font-weight: 400; }
.rp-card:hover .rp-name { color: var(--gold-deep); }

/* --- previous / next post bar (distinct from the slider) --- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav-link {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 22px;
  background: var(--sand) var(--pat-star-dark);
  border: 1px solid rgba(68,37,37,.12);
  border-radius: var(--r-card);
  transition: border-color .3s var(--ease);
}
.post-nav-link.is-empty { background: transparent; border: 0; }
.post-nav-link.next { text-align: right; }
.post-nav-link:hover { border-color: var(--gold-deep); }
.pn-dir { font-size: 13.5px; color: var(--gold-deep); font-weight: 600; }
.pn-dir .fa { margin: 0 4px; }
.pn-title { font-size: 18px; font-weight: 400; }
.post-nav-link:hover .pn-title { color: var(--gold-deep) !important; }

/* --- nav search button + floating search bar --- */
.nav-search-btn {
  flex: none; width: 40px; height: 40px;
  order: 2; margin-left: auto;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.10); color: #fff; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.nav-search-btn:hover { background: var(--gold); color: var(--maroon-deep); }
.nav-cta { order: 3; }

.floating-search {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(30,15,15,.55); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  opacity: 0; transition: opacity .3s var(--ease);
}
.floating-search[hidden] { display: none; }
.floating-search.is-open { opacity: 1; }
.fs-inner {
  width: min(680px, 92vw); margin-top: 14vh;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-md);
  overflow: hidden;
  transform: translateY(-24px) scale(.98);
  transition: transform .32s var(--ease);
}
.floating-search.is-open .fs-inner { transform: translateY(0) scale(1); }
.fs-form {
  position: relative; display: flex; align-items: center;
  padding: 10px 10px 10px 22px;
}
.fs-icon { color: var(--gold-deep); font-size: 18px; }
.fs-input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 18px; padding: 12px 14px 9px; background: transparent; color: var(--ink); }
.fs-close {
  width: 42px; height: 42px; flex: none; border: 0; cursor: pointer;
  background: var(--maroon); color: #fff; border-radius: 50%; font-size: 22px; line-height: 1;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.fs-close:hover { background: var(--gold); color: var(--maroon-deep); }

/* --- search dropdown (design #1) --- */
.search-wrap { position: relative; }
.search-dropdown[hidden] { display: none; }
.search-dropdown {
  display: flex; flex-direction: column;
  border-top: 1px solid rgba(68,37,37,.12);
}
.sd-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 8px; max-height: 52vh; }
.sd-group { padding: 6px 6px 10px; }
.sd-head { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; color: var(--maroon-deep); background: var(--sand); margin: 0 0 6px; padding: 6px 12px 5px; border-radius: 8px; font-weight: 700; }
.sd-item { display: block; padding: 9px 12px; border-radius: 10px; transition: background .2s var(--ease); }
.sd-item:hover, .sd-item.sd-active { background: var(--sand); }
.sd-title { display: block; font-size: 16px; color: var(--maroon); }
.sd-sum { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sd-empty { padding: 20px; text-align: center; color: var(--muted); }
.sd-all { flex: none; display: block; text-align: center; padding: 13px; border-top: 1px solid rgba(68,37,37,.10); background: var(--cream); color: var(--gold-deep); font-weight: 600; }
.sd-all:hover { color: var(--maroon); }
.sd-all .fa { margin-left: 4px; }

/* --- search results page (design #2) --- */
.search-page-form { display: flex; max-width: 620px; margin: 0 auto 14px; }
.search-page-input {
  flex: 1; min-width: 0;
  border: 1px solid rgba(68,37,37,.18); border-right: 0;
  border-radius: var(--r-pill) 0 0 var(--r-pill);
  padding: 13px 22px 10px; font-size: 17px; outline: 0; background: #fff;
}
.search-page-input:focus { border-color: var(--gold-deep); }
.search-page-btn {
  flex: none; align-self: stretch;
  border: 0; border-radius: 0 var(--r-pill) var(--r-pill) 0;
  padding: 0 26px; font-size: 17px; cursor: pointer;
  background: var(--gold); color: var(--maroon-deep);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.search-page-btn:hover { background: var(--gold-deep); color: var(--maroon-deep); }
.search-status { text-align: center; color: var(--muted); margin: 6px 0 26px; }
.search-results-page { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 700px) { .search-results-page { grid-template-columns: 1fr; } }
.srp-card {
  display: flex; flex-direction: column; gap: 8px; padding: 22px 24px;
  background: #fff; border: 1px solid rgba(68,37,37,.10);
  border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.srp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.srp-type { align-self: flex-start; background: var(--sand); color: var(--maroon-soft); font-size: 12.5px; font-weight: 700; padding: 3px 12px 1px; border-radius: var(--r-pill); }
.srp-title { font-size: 21px; font-weight: 400; }
.srp-card:hover .srp-title { color: var(--gold-deep) !important; }
.srp-sum { color: var(--ink); font-size: 15.5px; line-height: 1.8; }
.srp-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.srp-tag { background: rgba(68,37,37,.06); color: var(--maroon-soft); font-size: 13px; padding: 3px 12px 1px; border-radius: var(--r-pill); }
.srp-empty { padding: 40px 0; text-align: center; grid-column: 1 / -1; }

/* ---------- 30. Restructured footer (grid + council strip) ---------- */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr 1.3fr;
  gap: 56px;
}
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }
.footer-brand { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-brand img { width: 64px; height: auto; }
.footer-about .footer-name { font-size: 21px; line-height: 1.3; }
.footer-about-txt { font-size: 15px; line-height: 1.95; color: rgba(255,255,255,.7) !important; text-align: justify; }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--maroon-deep) !important; transform: translateY(-3px); }
/* new footer lists: drop the inherited empty ::before marker, use our own */
.footer-links li::before, .footer-posts li::before, .footer-contact li::before, .fc-list li::before { content: none; }
.footer-links li { padding: 7px 0; }
.footer-links a::before { content: "\203A"; color: var(--gold); margin-right: 9px; font-weight: 700; }
.footer-posts li { padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.footer-posts li:last-child { border-bottom: 0; }
.footer-posts a { display: block; line-height: 1.55; }
.fp-date { display: block; font-size: 12.5px; color: var(--gold) !important; opacity: .85; margin-top: 3px; }
.footer-contact li { display: flex; align-items: baseline; gap: 9px; padding: 8px 0; line-height: 1.7; }
.footer-contact li .f-ico { flex: none; width: 18px; text-align: center; margin: 0; }
.footer-council { margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.10); }
.fc-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.fc-list li { display: flex; align-items: baseline; gap: 7px; color: rgba(255,255,255,.82) !important; font-size: 15px; }
.fc-list li .fa { color: var(--gold); }
.fc-role { font-style: normal; font-size: 12.5px; color: var(--gold); opacity: .85; }

/* ============================================================
   31. 404 page — "lost under the crescent" night-sky scene
   ============================================================ */
.error-page {
  position: relative;
  background: var(--maroon-deep) var(--pat-star);
  color: #fff;
  text-align: center;
  padding: clamp(64px, 14vh, 150px) 0 clamp(90px, 16vh, 180px);
  overflow: hidden;
}
.error-page::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 50% 30%, rgba(229,184,48,.14), transparent 58%);
  pointer-events: none;
}
.ep-inner {
  position: relative; z-index: 3; max-width: 660px; margin: 0 auto;
  animation: epUp .8s var(--ease) both;
}
.ep-code {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(96px, 25vw, 250px); line-height: 1; color: var(--gold);
  display: inline-flex; align-items: center; justify-content: center; gap: clamp(8px, 2.5vw, 28px);
  filter: drop-shadow(0 12px 36px rgba(229,184,48,.22));
  animation: epFloat 6s ease-in-out infinite;
}
/* the middle "0" rendered as a glowing crescent moon */
.ep-moon {
  position: relative;
  width: .64em; height: .64em; border-radius: 50%;
  box-shadow: inset -.17em .05em 0 0 var(--gold), 0 0 .12em rgba(229,184,48,.55);
  animation: epGlow 4.5s ease-in-out infinite;
}
.ep-moon-star {
  position: absolute; top: .04em; right: -.02em;
  width: .12em; height: .12em; background: #fff; border-radius: 50%;
  box-shadow: 0 0 .12em .03em rgba(255,255,255,.9);
  animation: epTwinkle 2.6s ease-in-out infinite;
}
.ep-title { font-size: clamp(26px, 5vw, 42px); color: #fff; margin: 14px 0 10px; }
.ep-text { font-size: clamp(16px, 2.2vw, 18.5px); color: rgba(255,255,255,.78); line-height: 1.95; margin: 0 auto 32px; max-width: 33em; }
.ep-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* twinkling stars */
.ep-star {
  position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%;
  background: #fff; opacity: 0;
  box-shadow: 0 0 8px 2px rgba(255,255,255,.55);
  animation: epTwinkle 3.2s ease-in-out infinite;
}
.ep-star.s1 { top: 16%; left: 12%; animation-delay: .0s; }
.ep-star.s2 { top: 26%; left: 82%; animation-delay: .6s; width: 4px; height: 4px; }
.ep-star.s3 { top: 60%; left: 8%;  animation-delay: 1.1s; width: 5px; height: 5px; }
.ep-star.s4 { top: 70%; left: 88%; animation-delay: 1.7s; }
.ep-star.s5 { top: 12%; left: 50%; animation-delay: 2.2s; width: 4px; height: 4px; }
.ep-star.s6 { top: 44%; left: 92%; animation-delay: .9s; width: 4px; height: 4px; }
.ep-star.s7 { top: 50%; left: 4%;  animation-delay: 2.6s; }
/* soft moonlit horizon at the bottom */
.ep-dunes {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1;
  background: radial-gradient(60% 120% at 50% 100%, rgba(229,184,48,.18), transparent 70%);
  pointer-events: none;
}
@keyframes epFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes epGlow {
  0%, 100% { box-shadow: inset -.17em .05em 0 0 var(--gold), 0 0 .12em rgba(229,184,48,.45); }
  50%      { box-shadow: inset -.17em .05em 0 0 var(--gold), 0 0 .30em rgba(229,184,48,.95); }
}
@keyframes epTwinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .95; transform: scale(1); } }
@keyframes epUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ep-code, .ep-moon, .ep-moon-star, .ep-star, .ep-inner { animation: none !important; }
  .ep-star { opacity: .55; }
}
