/* ==========================================================================
   Dawat-e-Islami Bangladesh — components.css
   ========================================================================== */

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn {
  --btn-pad-y: .86rem;
  --btn-pad-x: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: var(--control-h);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: 999px;
  font-family: var(--font-bn-body);
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.15;
  border: 2px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), background-color var(--dur-base), background-position: var(--dur-slow) var(--ease-out), color var(--dur-base), border-color var(--dur-base);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
  opacity: .56;
  box-shadow: none;
}

/* Three-tier button system: emerald primary, contextual outline, text link.
   Every filled emerald primary uses the Noor shimmer and double pulse waves. */
.btn--primary,
.btn--emerald-pulse,
.btn--gold-sweep,
.btn--noor-pop {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    linear-gradient(108deg, transparent 22%, rgba(255, 255, 255, .46) 49%, transparent 76%) no-repeat,
    linear-gradient(135deg, #1d9871, var(--emerald-600));
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  color: var(--ivory-50);
  border-color: rgba(255, 255, 255, .72);
  box-shadow: 0 0 0 7px rgba(27, 138, 102, .14), 0 13px 24px rgba(6, 46, 36, .22);
  animation: btnNoorSweep 3.9s ease-in-out infinite, btnNoorHalo 4.6s ease-in-out infinite;
}
.btn--primary::before,
.btn--emerald-pulse::before,
.btn--gold-sweep::before,
.btn--noor-pop::before,
.btn--primary::after,
.btn--emerald-pulse::after,
.btn--gold-sweep::after,
.btn--noor-pop::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1.5px solid rgba(27, 138, 102, .44);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform: scale(.86);
  animation: btnNoorWave 3.4s cubic-bezier(.18, .72, .28, 1) infinite;
}
.btn--primary::after,
.btn--emerald-pulse::after,
.btn--gold-sweep::after,
.btn--noor-pop::after {
  border-color: rgba(27, 138, 102, .3);
  animation-delay: -1.7s;
}
.btn--primary:hover, .btn--primary:focus-visible,
.btn--emerald-pulse:hover, .btn--emerald-pulse:focus-visible,
.btn--gold-sweep:hover, .btn--gold-sweep:focus-visible,
.btn--noor-pop:hover, .btn--noor-pop:focus-visible {
  color: var(--ivory-50);
  box-shadow: 0 0 0 9px rgba(27, 138, 102, .2), 0 19px 30px rgba(6, 46, 36, .28);
  transform: translateY(-3px) scale(1.025);
}
.btn--primary > *, .btn--emerald-pulse > *, .btn--gold-sweep > *, .btn--noor-pop > * { position: relative; z-index: 1; }

.btn--secondary,
.btn--emerald-outline {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--emerald-600);
  border-radius: 999px;
  color: var(--emerald-600);
  background:
    linear-gradient(105deg, transparent 0%, transparent 38%, rgba(15, 133, 94, .28) 50%, transparent 62%, transparent 100%) no-repeat,
    transparent;
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  animation: btnOutlineSweep 4.8s ease-in-out infinite;
}
.btn--secondary:hover, .btn--secondary:focus-visible,
.btn--emerald-outline:hover, .btn--emerald-outline:focus-visible {
  background-color: var(--emerald-600);
  color: var(--ivory-50);
  box-shadow: 0 12px 24px -16px rgba(6, 46, 36, .72);
  transform: translateY(-3px);
}
.on-dark .btn--secondary,
.btn--shimmer-outline,
.btn--khidmah-outline {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold-300);
  border-radius: 999px;
  background:
    linear-gradient(105deg, transparent 0%, transparent 37%, rgba(255, 243, 194, .48) 50%, transparent 63%, transparent 100%) no-repeat,
    rgba(6, 46, 36, .12);
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  color: var(--gold-300);
  animation: btnOutlineSweep 4.8s ease-in-out infinite;
}
.on-dark .btn--secondary::before,
.btn--shimmer-outline::before,
.btn--khidmah-outline::before {
  display: none;
}
.on-dark .btn--secondary:hover, .on-dark .btn--secondary:focus-visible,
.btn--shimmer-outline:hover, .btn--shimmer-outline:focus-visible,
.btn--khidmah-outline:hover, .btn--khidmah-outline:focus-visible {
  background-color: rgba(232, 213, 162, .17);
  color: var(--ivory-50);
  box-shadow: 0 13px 24px rgba(2, 39, 30, .28);
  transform: translateY(-3px);
}
.on-dark .btn--secondary > *, .btn--shimmer-outline > *, .btn--khidmah-outline > * { position: relative; z-index: 1; }

/* Khidmah Gold Outline — premium secondary action for dark call-to-action sections. */
.btn--khidmah-outline,
.about-cta .btn,
.page-cta .btn,
.department-page-cta .btn {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--gold-300);
  border-radius: 999px;
  background:
    linear-gradient(105deg, transparent 0%, transparent 37%, rgba(255, 243, 194, .48) 50%, transparent 63%, transparent 100%) no-repeat,
    rgba(232, 213, 162, .08);
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(6, 46, 36, .18), 0 8px 18px rgba(2, 39, 30, .17);
  animation: btnKhidmahSweep 4.8s ease-in-out infinite;
}
.btn--khidmah-outline::before,
.about-cta .btn::before,
.page-cta .btn::before,
.department-page-cta .btn::before { display: none; }
.btn--khidmah-outline:hover, .btn--khidmah-outline:focus-visible,
.about-cta .btn:hover, .about-cta .btn:focus-visible,
.page-cta .btn:hover, .page-cta .btn:focus-visible,
.department-page-cta .btn:hover, .department-page-cta .btn:focus-visible {
  background-color: rgba(232, 213, 162, .17);
  color: var(--ivory-50);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 232, .1), 0 13px 24px rgba(2, 39, 30, .28);
  transform: translateY(-3px);
}
.btn--khidmah-outline > *, .about-cta .btn > *, .page-cta .btn > *, .department-page-cta .btn > * { position: relative; z-index: 1; }

@keyframes btnKhidmahSweep { 0%, 62%, 100% { background-position: 150% 0, 0 0; } 84% { background-position: -50% 0, 0 0; } }
@keyframes btnOutlineSweep { 0%, 60%, 100% { background-position: 150% 0, 0 0; } 84% { background-position: -50% 0, 0 0; } }
@keyframes btnNoorSweep {
  0%, 58%, 100% { background-position: 150% 0, 0 0; }
  79% { background-position: -50% 0, 0 0; }
}
@keyframes btnNoorHalo {
  0%, 58%, 100% { box-shadow: 0 0 0 7px rgba(27, 138, 102, .14), 0 13px 24px rgba(6, 46, 36, .22); }
  70% { box-shadow: 0 0 0 14px rgba(27, 138, 102, 0), 0 15px 27px rgba(6, 46, 36, .25); }
}
@keyframes btnNoorWave {
  0% { opacity: .48; transform: scale(.88); }
  74%, 100% { opacity: 0; transform: scale(1.5); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--khidmah-outline, .about-cta .btn, .page-cta .btn,
  .department-page-cta .btn, .btn--primary, .btn--secondary, .btn--emerald-outline,
  .on-dark .btn--secondary, .btn--shimmer-outline, .btn--khidmah-outline, .btn--emerald-pulse,
  .btn--gold-sweep, .btn--noor-pop,
  .btn--primary::before, .btn--emerald-pulse::before, .btn--gold-sweep::before, .btn--noor-pop::before,
  .btn--primary::after, .btn--emerald-pulse::after, .btn--gold-sweep::after, .btn--noor-pop::after { animation: none !important; }
}

/* Donation CTAs usually receive the gold outline treatment above.  The Noor
   variant intentionally takes precedence only where it is explicitly added. */
.about-cta .btn--noor-pop,
.page-cta .btn--noor-pop {
  overflow: visible;
  isolation: isolate;
  color: var(--ivory-50);
  border-color: rgba(255, 255, 255, .72);
  background:
    linear-gradient(108deg, transparent 22%, rgba(255, 255, 255, .46) 49%, transparent 76%) no-repeat,
    linear-gradient(135deg, #1d9871, var(--emerald-600));
  background-size: 250% 100%, 100% 100%;
  background-position: 150% 0, 0 0;
  box-shadow: 0 0 0 7px rgba(27, 138, 102, .14), 0 13px 24px rgba(6, 46, 36, .22);
  animation: btnNoorSweep 3.9s ease-in-out infinite, btnNoorHalo 4.6s ease-in-out infinite;
}
.about-cta .btn--noor-pop::before,
.page-cta .btn--noor-pop::before { display: block; }
.about-cta .btn--noor-pop:hover,
.about-cta .btn--noor-pop:focus-visible,
.page-cta .btn--noor-pop:hover,
.page-cta .btn--noor-pop:focus-visible {
  color: var(--ivory-50);
  transform: translateY(-3px) scale(1.025);
  box-shadow: 0 0 0 9px rgba(27, 138, 102, .2), 0 19px 30px rgba(6, 46, 36, .28);
}

.btn--ghost {
  min-height: auto;
  background: transparent;
  border-color: transparent;
  color: var(--forest-950);
  padding-inline: 0;
  border-radius: 0;
  position: relative;
}
.on-dark .btn--ghost { color: var(--ivory-50); }
.on-dark .btn--ghost:hover, .on-dark .btn--ghost:focus-visible { color: var(--gold-300); }
.btn--ghost::after {
  content: "";
  position: absolute; left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width var(--dur-base) var(--ease-standard);
}
.btn--ghost:hover::after, .btn--ghost:focus-visible::after { width: 100%; }

.btn--sm { --btn-pad-y: .55rem; --btn-pad-x: 1.2rem; min-height: 42px; font-size: .86rem; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------
   Mihrab-arch frame component (hero portrait / about portrait)
   -------------------------------------------------------------------- */
.arch-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-width: 420px;
}
.arch-frame__img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: url(#mihrabClip);
}
.arch-frame__outline {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  pointer-events: none;
}
.arch-frame__outline use {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.6;
}
.arch-frame__wipe {
  position: absolute; inset: 0;
  background: var(--forest-950);
  clip-path: url(#mihrabClip);
  transform-origin: left center;
}

/* --------------------------------------------------------------------
   YouTube facade — click-to-load video card (About section)
   Loads only a thumbnail image until clicked, then swaps in the real
   iframe — keeps the page light instead of shipping YouTube's JS upfront.
   -------------------------------------------------------------------- */
.yt-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--forest-950);
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-lg);
}
.yt-facade__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.yt-facade:hover .yt-facade__thumb,
.yt-facade:focus-visible .yt-facade__thumb { transform: scale(1.05); }
.yt-facade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 43, 33, .55), rgba(10, 43, 33, 0) 48%);
  pointer-events: none;
}
.yt-facade__badge {
  position: absolute; left: 1rem; top: 1rem;
  background: rgba(10, 43, 33, .78);
  color: var(--ivory-50);
  font-family: var(--font-en-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .4rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 205, 151, .35);
}
.yt-facade__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6), 0 14px 30px rgba(10, 43, 33, .4);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.yt-facade__play svg { width: 28px; height: 28px; margin-left: 3px; color: var(--emerald-600); }
.yt-facade:hover .yt-facade__play,
.yt-facade:focus-visible .yt-facade__play {
  transform: translate(-50%, -50%) scale(1.08);
  background: linear-gradient(160deg, var(--emerald-500), var(--forest-800));
}
.yt-facade:hover .yt-facade__play svg,
.yt-facade:focus-visible .yt-facade__play svg { color: var(--ivory-50); }
.yt-facade__frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------
   Feature highlights strip
   -------------------------------------------------------------------- */
.feature-strip {
  position: relative;
  background: linear-gradient(120deg, var(--forest-950), var(--forest-800) 60%, var(--forest-950));
  border: 1px solid rgba(201, 154, 67, .5);
  border-radius: var(--radius-lg);
  padding: 1.4rem .5rem;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.feature-strip::before {
  content: "";
  position: absolute; inset: 6px;
  border: 1px solid rgba(198, 161, 91, .22);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}
.feature-strip__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .5rem 1.3rem;
}
.feature-strip__item + .feature-strip__item::after {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(198, 161, 91, .45), transparent);
}
@media (max-width: 900px) {
  .feature-strip__item + .feature-strip__item::after { display: none; }
}
.feature-strip__icon {
  width: 44px; height: 44px;
  flex: 0 0 auto;
  display: grid; place-items: center;
  color: var(--gold-300);
}
.feature-strip__icon svg { width: 30px; height: 30px; stroke-width: 1.3; }
.feature-strip__title {
  font-family: var(--font-bn-body);
  font-weight: 700;
  font-size: .96rem;
  color: var(--ivory-50);
  margin: 0 0 .2rem;
}
.feature-strip__desc {
  font-family: var(--font-bn-body);
  font-size: .78rem;
  color: var(--on-dark-60);
  margin: 0;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .feature-strip { padding: .65rem; border-radius: 18px; }
  .feature-strip::before { inset: 4px; border-radius: 14px; }
  .feature-strip__item {
    align-items: flex-start;
    gap: .45rem;
    min-width: 0;
    padding: .75rem .5rem;
  }
  .feature-strip__icon { width: 30px; height: 30px; }
  .feature-strip__icon svg { width: 22px; height: 22px; }
  .feature-strip__title { font-size: .78rem; line-height: 1.35; }
  .feature-strip__desc { display: none; }
}

/* --------------------------------------------------------------------
   Explore-the-portal tiles
   -------------------------------------------------------------------- */
/* Homepage heading system — the centered Gold Ribbon direction. */
body[data-page="home"] .home-title-ribbon {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
body[data-page="home"] .home-title-ribbon__ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 0 .82rem;
  padding: .46rem 1.18rem;
  border: 1px solid rgba(201, 154, 67, .34);
  border-radius: 999px;
  color: var(--forest-950);
  background: linear-gradient(135deg, var(--gold-200), var(--gold-300));
  box-shadow: 0 8px 16px rgba(150, 105, 25, .1);
  font: 700 .64rem/1 var(--font-en-body);
  letter-spacing: .13em;
  text-transform: uppercase;
}
body[data-page="home"] .home-title-ribbon__ribbon::before,
body[data-page="home"] .home-title-ribbon__ribbon::after {
  position: absolute;
  top: 50%;
  width: clamp(22px, 4vw, 52px);
  height: 1px;
  background: rgba(201, 154, 67, .72);
  content: "";
}
body[data-page="home"] .home-title-ribbon__ribbon::before { right: calc(100% + .85rem); }
body[data-page="home"] .home-title-ribbon__ribbon::after { left: calc(100% + .85rem); }
body[data-page="home"] .home-title-ribbon .section-title,
body[data-page="home"] .home-title-ribbon h2 {
  margin-inline: auto;
}
body[data-page="home"] .home-title-ribbon > p:not(.home-title-ribbon__ribbon):not(.portal-summary) {
  margin-inline: auto;
}
body[data-page="home"] .about__body.home-title-ribbon > p:not(.home-title-ribbon__ribbon) {
  max-width: 58ch;
}
body[data-page="home"] .home-title-ribbon .flourish { display: none; }
body[data-page="home"] .on-dark .home-title-ribbon__ribbon {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--gold-100);
  background: transparent;
  box-shadow: none;
  font-size: .72rem;
  letter-spacing: .18em;
}
body[data-page="home"] .on-dark .home-title-ribbon__ribbon::before,
body[data-page="home"] .on-dark .home-title-ribbon__ribbon::after { background: rgba(232, 213, 162, .58); }
body[data-page="home"] .about-cta.on-dark .home-title-ribbon__ribbon {
  color: #F8EAC5;
  text-shadow: 0 1px 12px rgba(255, 241, 196, .16);
}
body[data-page="home"] .about-cta.on-dark .home-title-ribbon__ribbon::before,
body[data-page="home"] .about-cta.on-dark .home-title-ribbon__ribbon::after { background: #E8D5A2; }

.portal-tile {
  position: relative;
  display: block;
  padding: 1.8rem 1.4rem 1.65rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(252, 250, 244, .8));
  border: 2px solid rgba(201, 154, 67, .52);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 12px 28px -24px rgba(6, 46, 36, .48);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base);
}
.portal-tile::before {
  content: none;
}
.portal-tile:hover, .portal-tile:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--emerald-600);
  background: #fff;
}
.portal-tile__icon {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 56px; height: 56px;
  margin-bottom: 1.2rem;
  border-radius: 16px;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .58), 0 8px 18px -12px rgba(6, 46, 36, .35);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base) var(--ease-out), color var(--dur-base);
}
.portal-tile__icon svg { width: 26px; height: 26px; }
.portal-tile:hover .portal-tile__icon,
.portal-tile:focus-visible .portal-tile__icon {
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  border-color: var(--gold-500);
  color: var(--ivory-50);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .14), 0 14px 24px -10px rgba(10, 43, 33, .5);
  transform: scale(1.06);
}
.portal-tile__label { display: block; margin-bottom: .5rem; }
.portal-tile .bl-bn { font-size: 1.2rem; display: block; }
.portal-tile .bl-en { font-size: .85rem; display: block; margin-left: 0; margin-top: .15rem; }
.portal-tile__desc { font-size: .88rem; margin: 0; }
.portal-summary { display: none; }
@media (max-width: 560px) {
  #portal .section-head { margin-bottom: 1.55rem; }
  #portal .section-head > p:not(.portal-summary) { max-width: 28ch; margin-inline: auto; }
  #portal .section-title { margin-bottom: .55rem; }
  #portal .flourish { margin: .9rem auto .7rem; }
  .portal-summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin: 0;
    color: var(--emerald-700);
    font-family: var(--font-ui);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .12em;
  }
  .portal-summary strong {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: var(--ivory-50);
    background: var(--emerald-600);
    box-shadow: 0 4px 10px rgba(20, 122, 89, .22);
    font-family: var(--font-ui);
    font-size: .68rem;
    letter-spacing: 0;
  }
  .portal-summary i { color: var(--gold-600); font-style: normal; font-size: .9rem; }
  .portal-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.15rem .8rem;
    min-height: 188px;
    text-align: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(252, 250, 244, .84));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 12px 26px -22px rgba(6, 46, 36, .46);
  }
  .portal-tile::before { content: none; }
  .portal-tile__icon {
    width: 46px;
    height: 46px;
    margin-bottom: .7rem;
    border-radius: 14px;
  }
  .portal-tile__icon svg { width: 21px; height: 21px; }
  .portal-tile__label { position: relative; z-index: 1; max-width: 13ch; margin-bottom: 0; }
  .portal-tile .bl-bn { font-size: 1rem; line-height: 1.32; }
  .portal-tile .bl-en {
    display: block;
    margin-top: .24rem;
    color: var(--gold-700);
    font-family: var(--font-ui);
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.25;
    text-transform: uppercase;
  }
  .portal-tile__desc { display: none; }
  .portal-tile::after { content: none; }
  .portal-tile:active { transform: translateY(-1px) scale(.99); }
}

/* --------------------------------------------------------------------
   Star texture (dark sections)
   -------------------------------------------------------------------- */
.star-texture {
  position: absolute; inset: 0;
  background-image: url('../assets/icons/star-pattern.svg');
  background-repeat: repeat;
  background-size: 130px;
  opacity: .06;
  pointer-events: none;
}

/* --------------------------------------------------------------------
   Stat counters
   -------------------------------------------------------------------- */
.stat {
  position: relative;
  text-align: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.stat:hover { transform: translateY(-3px); }
.stat:not(:first-child)::after {
  content: "";
  position: absolute; left: -1rem; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline-light) 20%, var(--hairline-light) 80%, transparent);
}
.on-dark .stat:not(:first-child)::after {
  background: linear-gradient(180deg, transparent, var(--hairline-dark) 20%, var(--hairline-dark) 80%, transparent);
}
.stat__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base), border-color var(--dur-base);
}
.stat:hover .stat__icon {
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  border-color: var(--gold-500);
  color: var(--ivory-50);
}
.stat__icon svg { width: 24px; height: 24px; }
.stat__value {
  font-family: var(--font-bn-display);
  font-size: clamp(1.9rem, 1.5rem + 1.1vw, 2.6rem);
  letter-spacing: .01em;
  color: var(--forest-950);
  display: block;
}
.on-dark .stat__value { color: var(--gold-300); }
.stat__label { font-size: .88rem; color: var(--ink-600); display: block; margin-top: .35rem; max-width: 22ch; }
.on-dark .stat__label { color: var(--on-dark-60); }

/* Impact statistics — a distinct, wide dark feature section shared by the home and About pages. */
.about-stat-section {
  padding: 0;
  background: #062E24;
}
.about-stat-section .container { width: 100%; }
.about-stat-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem) clamp(1.15rem, 1rem + 2vw, 3rem);
  border: 0;
  border-top: 1.5px solid rgba(232, 213, 162, .32);
  border-radius: 0;
  background: linear-gradient(115deg, #0B4535, #0C6048 55%, #147A59);
  box-shadow: inset 0 1px 0 rgba(232, 213, 162, .14);
}
.about-stat-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background: url('../assets/icons/star-pattern.svg') repeat center / 150px;
}
.about-stat-strip .stat {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: center;
  min-width: 0;
}
.about-stat-strip .stat:not(:first-child)::after {
  left: -1rem;
  top: 7%;
  bottom: 7%;
  background: linear-gradient(180deg, transparent, rgba(232, 213, 162, .32) 18%, rgba(232, 213, 162, .32) 82%, transparent);
}
.about-stat-strip .stat__icon {
  grid-row: 1 / span 2;
  width: 52px;
  height: 52px;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--gold-300);
  box-shadow: none;
}
.about-stat-strip .stat__icon svg { width: 30px; height: 30px; }
.about-stat-strip .stat:hover .stat__icon { background: transparent; border-color: transparent; color: var(--ivory-50); }
.about-stat-strip .stat__value { align-self: end; color: var(--ivory-50); font-size: clamp(1.75rem, 1.35rem + 1.1vw, 2.45rem); line-height: 1; }
.about-stat-strip .stat__label { align-self: start; max-width: 18ch; margin: .45rem 0 0; color: rgba(252, 250, 244, .68); font-size: .84rem; line-height: 1.45; }
@media (max-width: 760px) {
  .about-stat-strip { gap: 1.35rem; }
  .about-stat-strip .stat { grid-template-columns: 42px minmax(0, 1fr); column-gap: .7rem; }
  .about-stat-strip .stat__icon { width: 42px; height: 42px; }
  .about-stat-strip .stat__icon svg { width: 26px; height: 26px; }
  .about-stat-strip .stat:nth-child(2n)::after { display: block; }
  .about-stat-strip .stat:nth-child(2n + 1)::after { display: none; }
  .about-stat-strip .stat__label { font-size: .76rem; }
}

/* --------------------------------------------------------------------
   Cards: services / books / videos / apps-strip / projects
   -------------------------------------------------------------------- */
.service-card {
  padding: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  background: linear-gradient(145deg, rgba(255, 255, 255, .92), rgba(252, 250, 244, .8));
  border: 2px solid rgba(201, 154, 67, .52);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .65), 0 12px 28px -24px rgba(6, 46, 36, .48);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.service-card::after {
  content: none;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__icon {
  position: relative;
  z-index: 1;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6);
  margin-bottom: 1.4rem;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base);
}
.service-card:hover .service-card__icon {
  background: linear-gradient(180deg, var(--emerald-500), var(--emerald-600));
  color: var(--ivory-50);
}
.service-card__icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.service-card p { font-size: .95rem; margin: 0; }

.book-card {
  width: 224px;
  text-align: center;
}
.book-card__cover {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  aspect-ratio: 5 / 7;
  transition: box-shadow var(--dur-base), transform var(--dur-base);
}
.book-card:hover .book-card__cover { box-shadow: var(--shadow-lg); transform: translateY(-4px) scale(1.015); }
.book-card__cover img { width: 100%; height: 100%; object-fit: cover; }

/* Icon-only read/download/listen row, framed like a single segmented control.
   Buttons are a fixed height (not aspect-ratio:1) — with only 2-3 of them
   splitting the card width via flex:1, a square button would balloon to
   ~100px and dwarf its 18px icon instead of reading as a compact control. */
.book-card__actions {
  display: flex;
  gap: .5rem;
  padding: .4rem;
  margin-bottom: 1rem;
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  background: var(--ivory-50);
}
.book-card__action {
  flex: 1;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.book-card__action svg { width: 18px; height: 18px; }
.book-card__action:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold-300); }
.book-card__action--download svg { color: var(--gold-500); }
.book-card__action--read svg { color: var(--emerald-600); }
.book-card__action--listen svg { color: var(--forest-800); }

.book-card__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin: 0;
}
.book-card .bl-bn { font-size: 1.05rem; font-weight: 500; }
.book-card .bl-en { font-size: .76rem; }

@media (max-width: 600px) {
  body[data-page="home"] #books .book-card__cover,
  body[data-page="books"] .books-grid .book-card__cover { margin-bottom: .7rem; }
  body[data-page="home"] #books .book-card__actions,
  body[data-page="books"] .books-grid .book-card__actions { gap: .25rem; padding: .28rem; margin-bottom: .65rem; }
  body[data-page="home"] #books .book-card__action,
  body[data-page="books"] .books-grid .book-card__action { height: 34px; }
  body[data-page="home"] #books .book-card__action svg,
  body[data-page="books"] .books-grid .book-card__action svg { width: 15px; height: 15px; }
  body[data-page="home"] #books .book-card .bl-bn,
  body[data-page="books"] .books-grid .book-card .bl-bn { font-size: .9rem; }
  body[data-page="home"] #books .book-card .bl-en,
  body[data-page="books"] .books-grid .book-card .bl-en { font-size: .64rem; }
}

.tab-btn {
  padding: .6rem 1.3rem;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-light);
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-600);
  transition: all var(--dur-fast) var(--ease-standard);
}
.tab-btn[aria-pressed="true"] {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: var(--ivory-50);
}
.tab-btn:hover:not([aria-pressed="true"]) { border-color: var(--gold-500); color: var(--forest-950); }

.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: linear-gradient(145deg, #0e4c3b, var(--forest-900));
  border: 1px solid rgba(232, 213, 162, .26);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  z-index: 1;
}
.video-card:hover { transform: translateY(-5px); border-color: rgba(232, 213, 162, .68); box-shadow: 0 20px 32px rgba(0, 0, 0, .2); }
.video-card__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--forest-950); }
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-base); }
.video-card:hover .video-card__thumb img { transform: scale(1.045); filter: saturate(1.08); }
.video-card__play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(6, 46, 36, .1) 0 16%, transparent 17%), linear-gradient(0deg, rgba(6, 46, 36, .7), rgba(6, 46, 36, .08));
}
.video-card__play::before {
  content: "";
  width: 50px; height: 50px;
  border: 2px solid var(--gold-300);
  border-radius: 50%;
  background: rgba(6, 46, 36, .44);
  box-shadow: 0 0 0 8px rgba(232, 213, 162, .1);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.video-card__play svg { position: absolute; width: 21px; height: 21px; color: var(--gold-100); transform: translateX(1px); }
.video-card:hover .video-card__play::before { transform: scale(1.08); background: rgba(20, 122, 89, .55); }
.video-card__duration {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(6, 46, 36, .88);
  color: var(--gold-100);
  font-size: .73rem;
  font-weight: 700;
  padding: .28rem .55rem;
  border: 1px solid rgba(232, 213, 162, .24);
  border-radius: 6px;
}
.video-card__body { padding: 1rem 1.1rem 1.2rem; }
.video-card__eyebrow { display: block; margin-bottom: .36rem; color: var(--gold-300); font-size: .69rem; font-weight: 700; letter-spacing: .08em; }
.video-card__body h3 { font-family: var(--font-bn-body); font-weight: 700; font-size: 1rem; color: var(--ivory-50); margin: 0; }

.video-all-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 680px;
  margin-inline: auto;
  padding: 1rem 1.2rem;
  text-align: left;
  color: var(--ivory-50);
  border: 2px solid rgba(232, 213, 162, .7);
  border-radius: 16px;
  background: linear-gradient(115deg, var(--forest-900), var(--emerald-600));
  box-shadow: 0 14px 26px rgba(0, 0, 0, .16);
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.video-all-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 82% 30%, rgba(232, 213, 162, .32), transparent 24%); }
.video-all-cta:hover { transform: translateY(-3px); border-color: var(--gold-200); box-shadow: 0 20px 34px rgba(0, 0, 0, .22); }
.video-all-cta__icon, .video-all-cta__arrow { display: grid; place-items: center; flex: 0 0 auto; }
.video-all-cta__icon { width: 44px; height: 44px; border-radius: 12px; color: var(--gold-100); background: rgba(255, 255, 255, .14); }
.video-all-cta__icon svg { width: 21px; height: 21px; transform: translateX(1px); }
.video-all-cta__title, .video-all-cta__text { display: block; }
.video-all-cta__title { font-size: 1.05rem; font-weight: 700; }
.video-all-cta__text { margin-top: .15rem; color: var(--on-dark-60); font-size: .78rem; }
.video-all-cta__arrow { width: 36px; height: 36px; margin-left: auto; border: 1px solid rgba(232, 213, 162, .64); border-radius: 50%; color: var(--gold-100); transition: transform var(--dur-base), background var(--dur-base); }
.video-all-cta__arrow svg { width: 17px; height: 17px; }
.video-all-cta:hover .video-all-cta__arrow { transform: translateX(4px); background: rgba(232, 213, 162, .14); }
@media (max-width: 560px) {
  .video-all-cta { align-items: flex-start; padding: .9rem 1rem; }
  .video-all-cta__text { max-width: 23ch; }
  .video-all-cta__arrow { margin-top: .2rem; width: 32px; height: 32px; }
}

.channel__featured-tile {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2rem;
  align-items: center;
  background: var(--forest-800);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 760px) { .channel__featured-tile { grid-template-columns: 1fr; } }
.channel__featured-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.6rem; }
@media (max-width: 640px) { .channel__featured-langs { grid-template-columns: 1fr; } }
.channel__featured-langs .app-tile { min-height: auto; padding: .95rem 1.4rem; border: 2px solid var(--forest-800); }
.channel__featured-thumb { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; }
.channel__featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
/* reuses .yt-facade's click-to-load behavior/hover styling, only correcting
   the two properties that would otherwise clash with this tile's own shape */
.channel__featured-thumb.yt-facade {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  border-color: var(--hairline-dark);
}
@media (max-width: 560px) {
  #channel .section-head > p:not(.home-title-ribbon__ribbon) { display: none; }
  #channel .section-head { margin-bottom: 1.25rem; }
  #channel .channel__featured { margin-bottom: 0; }
  #channel .channel__featured-tile {
    grid-template-columns: 1fr;
    gap: 0;
    padding: .65rem;
    border-radius: 18px;
  }
  #channel .channel__featured-thumb,
  #channel .channel__featured-thumb.yt-facade { aspect-ratio: 16 / 9; }
  #channel .channel__featured-copy { padding: .85rem .3rem .25rem; }
  #channel .channel__featured-copy .live-pill,
  #channel .channel__featured-title,
  #channel .channel__featured-copy .btn { display: none; }
  #channel .channel__featured-summary {
    display: -webkit-box;
    margin: 0 !important;
    overflow: hidden;
    color: var(--on-dark-60);
    font-size: .92rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  #channel .channel__featured-langs,
  #channel .channel__grid,
  #channel .section-foot-cta { display: none; }
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  background: rgba(28,122,92,.16);
  border: 1px solid var(--emerald-500);
  color: var(--gold-300);
  font-size: .8rem;
  font-weight: 700;
}
.live-pill--lg { font-size: .92rem; padding: .6rem 1.3rem; }
.live-pill--on-light { background: rgba(22, 98, 74, .08); border-color: var(--emerald-600); color: var(--gold-700); }

/* Homepage channel: a light editorial surface that matches the other portal sections. */
body[data-page="home"] #channel {
  background:
    radial-gradient(circle at 92% 18%, rgba(232, 213, 162, .23), transparent 28%),
    linear-gradient(180deg, rgba(252, 250, 244, .78), rgba(255, 255, 255, .94));
}
body[data-page="home"] #channel .channel__featured-tile {
  isolation: isolate;
  background: linear-gradient(118deg, #fffefb 0%, #f8f2e4 100%);
  border: 1.5px solid rgba(201, 154, 67, .46);
  box-shadow: 0 18px 42px rgba(10, 43, 33, .1), inset 0 1px 0 rgba(255, 255, 255, .95);
}
body[data-page="home"] #channel .channel__featured-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .09;
  pointer-events: none;
  background: url('../assets/icons/star-pattern.svg') repeat center / 146px;
}
body[data-page="home"] #channel .channel__featured-thumb.yt-facade {
  border-color: rgba(201, 154, 67, .55);
  box-shadow: 0 13px 26px rgba(6, 46, 36, .18);
}
body[data-page="home"] #channel .live-pill {
  background: rgba(20, 122, 89, .08);
  border-color: rgba(20, 122, 89, .45);
  color: var(--emerald-700);
}
body[data-page="home"] #channel .channel__featured-title {
  margin: 1rem 0 .8rem;
  color: var(--forest-900);
  font-family: var(--font-bn-display);
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.6rem);
}
body[data-page="home"] #channel .channel__featured-summary { color: var(--ink-600); }
body[data-page="home"] #channel .video-card {
  background: rgba(255, 255, 255, .88);
  border-color: rgba(201, 154, 67, .4);
  box-shadow: 0 10px 24px rgba(10, 43, 33, .08);
}
body[data-page="home"] #channel .video-card::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85); }
body[data-page="home"] #channel .video-card:hover {
  border-color: var(--gold-500);
  box-shadow: 0 18px 30px rgba(10, 43, 33, .15);
}
body[data-page="home"] #channel .video-card__body h3 { color: var(--forest-900); }
body[data-page="home"] #channel .video-card__eyebrow { color: var(--emerald-600); }

/* --------------------------------------------------------------------
   Channel live player (centered, on a light section)
   -------------------------------------------------------------------- */
.channel-live { max-width: 900px; margin-inline: auto; text-align: center; }
.channel-live__frame {
  width: 80%;
  margin: 0 auto 2.2rem;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline-light);
  box-shadow: var(--shadow-lg);
}
.channel-live__info { max-width: 620px; margin-inline: auto; }
@media (max-width: 760px) { .channel-live__frame { width: 100%; } }

.channel-live__lang-switch { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.lang-switch-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-width: 230px;
  max-width: 280px;
  padding: .85rem 1.2rem;
  background: var(--ivory-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.lang-switch-card:hover, .lang-switch-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--gold-300);
}
.lang-switch-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(22, 98, 74, .08);
  color: var(--emerald-600);
}
.lang-switch-card__icon svg { width: 20px; height: 20px; }
.lang-switch-card__text { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.lang-switch-card__label { font-weight: 700; color: var(--forest-950); font-size: .9rem; line-height: 1.3; }
.lang-switch-card__meta { font-size: .74rem; color: var(--ink-600); }
.lang-switch-card__arrow { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); }
.lang-switch-card:hover .lang-switch-card__arrow { transform: translateX(3px); }
@media (max-width: 480px) { .lang-switch-card { min-width: 100%; max-width: 100%; } }
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  position: relative;
  flex: 0 0 auto;
}
.live-dot::after {
  content: "";
  position: absolute; inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--emerald-500);
  animation: livePulse 1.8s var(--ease-standard) infinite;
}

.app-tile {
  display: flex; align-items: center; gap: 1rem;
  min-height: 112px;
  padding: 1.3rem 1.4rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), var(--ivory-50));
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(6, 46, 36, .035);
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.app-tile:hover { transform: translateY(-3px); border-color: rgba(20, 122, 89, .28); box-shadow: var(--shadow-sm); }
.app-tile__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--sand-100);
  display: grid; place-items: center;
  color: var(--emerald-600);
  flex: 0 0 auto;
}
.app-tile__icon svg { width: 24px; height: 24px; }
.app-tile__name { font-weight: 700; font-size: 1rem; color: var(--forest-900); }
.app-tile__tag {
  display: block; font-size: .78rem; color: var(--ink-600); margin-top: .2rem; line-height: 1.5;
}
.app-tile__arrow {
  margin-left: auto;
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .4);
  transition: transform var(--dur-base) var(--ease-out), background var(--dur-base);
}
.app-tile__arrow svg { width: 16px; height: 16px; }
.app-tile--all {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(118deg, var(--forest-950) 0%, #0D6048 56%, var(--emerald-500) 100%);
  border-color: rgba(232, 213, 162, .68);
  color: var(--ivory-50);
  box-shadow: 0 15px 30px rgba(6, 46, 36, .2);
}
.app-tile--all > * {
  position: relative;
  z-index: 1;
}
.app-tile--all::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .42;
  background: radial-gradient(circle at 82% 25%, rgba(232, 213, 162, .45), transparent 21%), radial-gradient(circle at 72% 120%, rgba(255, 255, 255, .13), transparent 30%);
}
.app-tile--all::after {
  content: "";
  position: absolute;
  right: 5.1rem;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(232, 213, 162, .22);
  border-radius: 50%;
  transform: translateY(42%);
  z-index: 0;
}
.app-tile--all .app-tile__icon { background: rgba(255, 255, 255, .16); color: var(--ivory-50); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.app-tile--all .app-tile__name { color: var(--ivory-50); font-size: 1.05rem; }
.app-tile--all .app-tile__tag { color: rgba(252, 250, 244, .78); }
.app-tile--all .app-tile__arrow { width: 38px; height: 38px; border-color: rgba(232, 213, 162, .7); color: var(--gold-100); }
.app-tile--all:hover { transform: translateY(-3px); border-color: var(--gold-300); box-shadow: 0 20px 34px rgba(6, 46, 36, .28); }
.app-tile--all:hover .app-tile__arrow { background: rgba(232, 213, 162, .16); transform: translateX(4px); }
@media (max-width: 560px) {
  .app-tile { min-height: 96px; padding: 1.05rem; }
  .app-tile--all::after { right: 3rem; }
}

.store-badge {
  display: inline-flex;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-base) var(--ease-out), filter var(--dur-base) var(--ease-out);
}
.store-badge img { display: block; height: 46px; width: auto; }
.store-badge:hover, .store-badge:focus-visible {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 16px rgba(10, 43, 33, .25));
}

.project-card { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.project-card:hover img { transform: scale(1.06); }
.project-card__label {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(10,43,33,.88), transparent);
  color: var(--ivory-50);
  font-size: .92rem; font-weight: 600;
}

/* --------------------------------------------------------------------
   Donation widget
   -------------------------------------------------------------------- */
.fund-option {
  display: block;
  padding: 1.1rem 1.3rem;
  border: 1.5px solid var(--hairline-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color var(--dur-fast), background var(--dur-fast);
}
.fund-option input { position: absolute; opacity: 0; pointer-events: none; }
.fund-option:has(input:checked) {
  border-color: var(--emerald-600);
  background: rgba(22,98,74,.06);
}
.fund-option:has(input:focus-visible) { outline: 2.5px solid var(--gold-500); outline-offset: 2px; }
.fund-option__name { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .98rem; color: var(--forest-950); }
.fund-option__name svg { width: 18px; height: 18px; color: var(--emerald-600); flex: 0 0 auto; }
.fund-option__impact { display: block; margin-top: .35rem; font-size: .85rem; color: var(--ink-600); }

.donate-card {
  position: relative;
  background: rgba(252, 250, 244, .92);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(201, 154, 67, .28);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 1.5rem + 1vw, 2.6rem);
  box-shadow: var(--shadow-lg);
}
.donate-card::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1px solid rgba(198, 161, 91, .35);
  border-radius: calc(var(--radius-lg) - 9px);
  pointer-events: none;
}

.amount-btn {
  position: relative;
  padding: .95rem .6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  font-weight: 700;
  font-size: 1rem;
  color: var(--forest-950);
  transition: all var(--dur-fast) var(--ease-standard);
}
.amount-btn:hover { border-color: var(--gold-500); }
.amount-btn.is-active { background: var(--emerald-600); border-color: var(--emerald-600); color: var(--ivory-50); }
.amount-btn__tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--forest-950);
  font-size: .62rem; font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 999px;
  white-space: nowrap;
}

.field { display: grid; gap: .5rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--forest-950); }
.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--forest-950);
  margin-bottom: .8rem;
  padding: 0;
  border: none;
}
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field input[type="tel"], .field textarea {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  font-size: 1rem;
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--gold-500); }

.toggle-row { display: flex; align-items: center; gap: .7rem; }
.switch { position: relative; width: 44px; height: 25px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track {
  position: absolute; inset: 0;
  background: var(--hairline-light);
  border-radius: 999px;
  transition: background var(--dur-fast);
}
.switch__track::after {
  content: "";
  position: absolute; top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--ivory-50);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-standard);
}
.switch input:checked + .switch__track { background: var(--emerald-600); }
.switch input:checked + .switch__track::after { transform: translateX(19px); }
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--gold-500); outline-offset: 2px; }

.pay-tab {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .75rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  color: var(--ink-900);
  font-size: .9rem; font-weight: 700;
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pay-tab:hover, .pay-tab:focus-visible { border-color: var(--gold-300); transform: translateY(-2px); }
.pay-tab svg { width: 18px; height: 18px; flex: 0 0 auto; }
.pay-tab[aria-selected="true"] {
  background: var(--forest-950);
  border-color: var(--gold-500);
  color: var(--ivory-50);
  box-shadow: 0 8px 18px rgba(10, 43, 33, .2);
}
.pay-tab[aria-selected="true"]:hover { transform: none; }

.pay-panel { display: none; padding: 1.1rem 0 0; }
.pay-panel.is-active { display: block; }
.pay-panel p { font-size: .88rem; }

.donate-confirm {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(22,98,74,.08);
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-sm);
  color: var(--forest-950);
  font-size: .9rem;
}
.donate-confirm.is-visible { display: flex; }
.donate-confirm svg { width: 20px; height: 20px; color: var(--emerald-600); flex: 0 0 auto; margin-top: .1rem; }

/* --------------------------------------------------------------------
   Misc badges
   -------------------------------------------------------------------- */
.tag-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--sand-100);
  color: var(--emerald-600);
  font-size: .74rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------
   Header icon button (search trigger)
   -------------------------------------------------------------------- */
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sand-100);
  border: 1.5px solid var(--gold-300);
  color: var(--forest-950);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover, .icon-btn:focus-visible {
  background: var(--emerald-600);
  border-color: var(--emerald-600);
  color: var(--ivory-50);
  transform: translateY(-1px);
}
.site-header.is-scrolled .icon-btn { width: 36px; height: 36px; }

/* --------------------------------------------------------------------
   Site search overlay
   -------------------------------------------------------------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: start center;
  padding: 12vh 1.2rem 2rem;
  background: rgba(10, 43, 33, .55);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.search-overlay.is-open { opacity: 1; visibility: visible; }

.search-box {
  width: min(600px, 100%);
  background: var(--ivory-50);
  border: 1px solid var(--gold-300);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: .6rem;
  transform: translateY(-16px);
  transition: transform var(--dur-base) var(--ease-out);
}
.search-overlay.is-open .search-box { transform: translateY(0); }

.search-box__field {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .7rem;
}
.search-box__icon { width: 20px; height: 20px; color: var(--gold-700); flex: 0 0 auto; }
.search-box__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: none;
  font-family: var(--font-bn-body);
  font-size: 1.05rem;
  color: var(--ink-900);
  padding: .5rem 0;
}
.search-box__input:focus { outline: none; }
.search-box__input::placeholder { color: var(--ink-600); }
.search-box__input::-webkit-search-cancel-button { display: none; }
.search-box__kbd {
  font-family: var(--font-en-body);
  font-size: .72rem;
  color: var(--ink-600);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-sm);
  padding: .2rem .5rem;
  flex: 0 0 auto;
}
.search-box__close {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ink-600);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.search-box__close svg { width: 16px; height: 16px; }
.search-box__close:hover, .search-box__close:focus-visible { background: var(--sand-100); color: var(--forest-950); }

.search-box__results {
  border-top: 1px solid var(--hairline-light);
  margin-top: .4rem;
  padding: .5rem;
  max-height: min(48vh, 420px);
  overflow-y: auto;
}
.search-box__result a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-bn-body);
  font-weight: 600;
  color: var(--ink-900);
  transition: background var(--dur-fast);
}
.search-box__result a:hover, .search-box__result a:focus-visible { background: var(--sand-100); }
.search-box__result span {
  flex: 0 0 auto;
  font-family: var(--font-en-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--gold-700);
  white-space: nowrap;
}
.search-box__empty {
  padding: 1.6rem .8rem;
  text-align: center;
  color: var(--ink-600);
  font-size: .92rem;
}

@media (max-width: 460px) {
  .search-overlay { padding-top: 6vh; }
  .search-box__kbd { display: none; }
}

/* --------------------------------------------------------------------
   Inner-page hero banner (about/departments/books/contact, etc.)
   -------------------------------------------------------------------- */
.page-hero {
  background:
    linear-gradient(90deg, #062E24 0%, #062E24 44%, rgba(6, 46, 36, .82) 66%, rgba(6, 46, 36, .54) 100%),
    radial-gradient(circle at 75% 42%, rgba(232, 213, 162, .2), transparent 30%),
    image-set(
      url('../assets/images/madani-markaz-dome.webp') type('image/webp'),
      url('../assets/images/madani-markaz-dome.jpg') type('image/jpeg')
    );
  background-repeat: no-repeat;
  background-position: center, center, calc(100% + 2.2rem) top;
  background-size: auto, auto, min(760px, 58vw) auto;
  color: var(--on-dark-90);
  position: relative;
  overflow: hidden;
  padding: clamp(2.6rem, 2.2rem + 2vw, 4rem) 0 clamp(2.2rem, 1.9rem + 1.4vw, 3.2rem);
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--on-dark-60);
  margin-bottom: 1.1rem;
}
.breadcrumb a { color: var(--gold-300); transition: color var(--dur-fast); }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: var(--gold-500); }
.breadcrumb span[aria-current] { color: var(--on-dark-90); font-weight: 600; }
.page-hero__title {
  font-size: clamp(1.9rem, 1.55rem + 1.6vw, 2.7rem);
  color: var(--ivory-50);
  margin: .5rem 0 .8rem;
}
.page-hero__lead {
  font-size: 1.05rem;
  color: var(--on-dark-60);
  max-width: 58ch;
}

/* --------------------------------------------------------------------
   About page leadership placeholders
   -------------------------------------------------------------------- */
.leader-profile { position: relative; overflow: hidden; }
.leader-profile::before {
  content: "";
  position: absolute;
  width: min(34vw, 420px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 154, 67, .16);
  border-radius: 50%;
  pointer-events: none;
}
.leader-profile--amir::before { right: -9rem; top: -12rem; }
.leader-profile--reverse::before { left: -9rem; bottom: -13rem; }
.leader-profile .container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .72fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
}
.leader-profile--amir .container { grid-template-columns: minmax(0, .95fr) minmax(260px, .68fr) minmax(0, .95fr); }
.leader-profile--reverse .leader-profile__copy { order: 2; }
.leader-profile--reverse .leader-profile__visual { order: 1; }
.leader-profile__copy { position: relative; z-index: 1; max-width: 58ch; }
.leader-profile__copy .section-title { margin-bottom: .9rem; }
.leader-profile__copy p { max-width: 50ch; }
.leader-profile__kicker { margin: 0 0 .7rem; color: var(--gold-700); font-size: .92rem; font-weight: 600; }
.leader-profile__ornament { margin: 1rem 0 1.65rem; color: var(--gold-500); font-family: var(--font-ui); font-size: .7rem; letter-spacing: .14em; }
.leader-profile__intro { margin: 0; font-size: 1.03rem; line-height: 1.82; }
.leader-profile__intro + p { margin-top: 1.4rem; line-height: 1.82; }
.leader-profile__name { margin: 1.2rem 0 .3rem; color: var(--emerald-600); font-size: clamp(1.3rem, 1.1rem + .5vw, 1.65rem); line-height: 1.36; }
.leader-profile__honorific-inline { color: var(--gold-500); font-family: var(--font-ar); font-size: .9em; font-weight: 400; white-space: nowrap; }
.leader-profile__honorific { margin: 0 0 1.15rem; color: var(--gold-500); font-family: var(--font-ar); font-size: 1.5rem; }
.leader-profile__facts { display: grid; gap: .45rem; margin: 1.25rem 0 1.4rem; padding: 1rem 1.1rem; list-style: none; border-left: 2px solid var(--gold-500); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .52); color: var(--ink-600); font-size: .9rem; line-height: 1.6; }
.leader-profile__facts strong { color: var(--forest-900); }
.leader-profile__more { margin-top: 2rem; }
.leader-profile__quote { position: relative; z-index: 1; max-width: 47ch; }
.leader-profile__quote-intro { margin: 0 0 1.45rem; color: var(--ink-600); line-height: 1.75; }
.leader-profile__quote blockquote {
  margin: 0 0 1.55rem;
  padding: .25rem 0 .3rem 1.35rem;
  border-left: 3px solid var(--emerald-600);
  color: var(--emerald-600);
  font-family: var(--font-bn-display);
  font-size: clamp(1.2rem, 1rem + .65vw, 1.65rem);
  font-weight: 600;
  line-height: 1.48;
}
.leader-profile__quote blockquote span { display: block; margin-top: .65rem; color: var(--gold-500); font-family: var(--font-ar); font-size: 1.45rem; font-weight: 400; }
.leader-profile__quote blockquote .leader-profile__arabic-note { display: inline; margin: 0; color: var(--gold-500); font-size: inherit; }
.leader-profile__quote > p:not(.leader-profile__quote-intro) { margin-bottom: 1.25rem; line-height: 1.82; }
.leader-profile__visual {
  position: relative;
  z-index: 1;
  width: min(100%, 350px);
  margin: 0 auto;
  padding: .55rem;
  border: 2px solid rgba(201, 154, 67, .6);
  border-radius: 42% 42% 18px 18px;
  background: rgba(255, 255, 255, .7);
  box-shadow: 0 18px 38px rgba(6, 46, 36, .14);
}
.leader-profile--reverse .leader-profile__visual { border-color: rgba(20, 122, 89, .58); }
.leader-profile__visual > picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.leader-profile__visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 40% 40% 12px 12px;
}

/* --------------------------------------------------------------------
   About page call to action
   -------------------------------------------------------------------- */
.about-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding-block: clamp(2.2rem, 1.75rem + 1vw, 3.25rem);
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) 200% 0 / 220% 3px no-repeat,
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) -20% 100% / 220% 3px no-repeat,
    radial-gradient(circle at 74% 35%, rgba(232, 213, 162, .23), transparent 25%),
    linear-gradient(115deg, #062E24 0%, #0B4535 56%, #0B5D45 100%);
  animation: ctaBorderShimmer 10s linear infinite;
}
.about-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  background: url('../assets/icons/star-pattern.svg') repeat center / 140px;
}
.about-cta::after {
  display: none;
}
.about-cta .container { position: relative; z-index: 1; width: 100%; display: flex; justify-content: center; }
.about-cta__content { max-width: none; padding: 0; text-align: center; }
.about-cta .eyebrow { justify-content: center; color: var(--gold-300); }
.about-cta h2 {
  margin: .65rem 0 .9rem;
  color: var(--ivory-50);
  font-size: clamp(2rem, 1.55rem + 1.6vw, 3rem);
  line-height: 1.15;
  white-space: nowrap;
}
.about-cta__content > p:not(.eyebrow) { max-width: none; margin: 0 auto; color: var(--on-dark-60); font-size: 1.06rem; white-space: nowrap; }
.about-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 1.6rem; }

/* Reusable inner-page call to action — shares the About page's moving gold lines. */
.page-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(2.2rem, 1.75rem + 1vw, 3.25rem);
  text-align: center;
  color: var(--on-dark-90);
  background:
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) 200% 0 / 220% 3px no-repeat,
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) -20% 100% / 220% 3px no-repeat,
    radial-gradient(circle at 74% 35%, rgba(232, 213, 162, .20), transparent 27%),
    linear-gradient(115deg, #062E24 0%, #0B4535 56%, #0B5D45 100%);
  animation: ctaBorderShimmer 10s linear infinite;
}
.page-cta::before,
.department-page-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .12;
  pointer-events: none;
  background: url('../assets/icons/star-pattern.svg') repeat center / 140px;
}
.page-cta .container { position: relative; z-index: 1; }
.page-cta .eyebrow { justify-content: center; color: var(--gold-300); }
.page-cta .section-title { color: var(--ivory-50); }
.page-cta p { color: var(--on-dark-60); }
.page-cta p:not(.eyebrow) { max-width: 62ch; margin: .65rem auto 1.5rem; }

@media (max-width: 760px) {
  .leader-profile .container { grid-template-columns: 1fr; gap: 1.75rem; }
  .leader-profile--amir .container { grid-template-columns: 1fr; }
  .leader-profile--reverse .leader-profile__copy,
  .leader-profile--reverse .leader-profile__visual { order: initial; }
  .leader-profile__copy { text-align: center; }
  .leader-profile__copy .eyebrow { justify-content: center; }
  .leader-profile__intro { margin-inline: auto; }
  .leader-profile__quote { text-align: left; }
  .leader-profile__visual { width: min(100%, 300px); }
  .about-cta, .page-cta { min-height: 0; padding-block: 2.5rem; text-align: center; }
  .about-cta__content { margin-inline: auto; padding: 0; }
  .about-cta h2,
  .about-cta__content > p:not(.eyebrow) { white-space: normal; }
  .about-cta .eyebrow,
  .about-cta__actions { justify-content: center; }
  .about-cta__content > p:not(.eyebrow) { margin-inline: auto; }
}

/* --------------------------------------------------------------------
   Department card (Departments hub grid) — a card-shaped accordion item:
   the whole card is the trigger button, click to expand more detail below.
   -------------------------------------------------------------------- */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.dept-card {
  background: var(--ivory-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.dept-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--gold-300); }
.dept-card.is-open { border-color: var(--gold-300); box-shadow: var(--shadow-md); }
.dept-card .dept-card__trigger {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 1.7rem;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
.dept-card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6);
  flex: 0 0 auto;
}
.dept-card__icon svg { width: 26px; height: 26px; }
.dept-card__name { font-family: var(--font-bn-display); font-size: 1.12rem; color: var(--forest-950); margin-bottom: .45rem; }
.dept-card__desc { font-size: .88rem; color: var(--ink-600); }
.dept-card__more {
  display: flex; align-items: center; gap: .4rem;
  margin-top: 1.1rem;
  font-size: .8rem; font-weight: 700;
  color: var(--emerald-600);
}
.dept-card__more .accordion__icon { width: 14px; height: 14px; }
.dept-card .accordion__panel-inner p { padding: 0 1.7rem 1.7rem; }

/* --------------------------------------------------------------------
   Department hub and detail pages
   -------------------------------------------------------------------- */
.department-hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.department-legacy { display: none; }
.department-hub__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 245px;
  padding: 1.65rem;
  overflow: hidden;
  border: 2px solid rgba(201, 154, 67, .48);
  border-radius: var(--card-radius);
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(252,250,244,.82));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68), 0 14px 28px -24px rgba(6,46,36,.5);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.department-hub__card::after { content: ""; position: absolute; right: -3.5rem; bottom: -4rem; width: 10rem; aspect-ratio: 1; border: 1px solid rgba(20,122,89,.16); border-radius: 50%; }
.department-hub__card:hover, .department-hub__card:focus-visible { transform: translateY(-3px); border-color: var(--emerald-600); box-shadow: var(--shadow-md); }
.department-hub__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 16px; color: var(--emerald-600); background: var(--sand-100); border: 1px solid var(--gold-300); }
.department-hub__icon svg { width: 26px; height: 26px; }
.department-hub__card h2 { margin: 0 0 .45rem; color: var(--forest-950); font-size: 1.35rem; }
.department-hub__card p { margin: 0; color: var(--ink-600); font-size: .92rem; line-height: 1.65; }
.department-hub__link { display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; padding-top: 1.25rem; color: var(--emerald-600); font-size: .86rem; font-weight: 700; }
.department-hub__link svg { width: 16px; height: 16px; }
.department-detail { position: relative; overflow: hidden; }
.department-detail__intro { max-width: 66ch; margin: 0 auto 2.4rem; text-align: center; font-size: 1.06rem; line-height: 1.8; }
.department-scope { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; max-width: 76rem; margin: -1rem auto 2.4rem; }
.department-scope span { display: inline-flex; align-items: center; min-height: 2.35rem; padding: .35rem .85rem; border: 1px solid rgba(193, 146, 53, .38); border-radius: 999px; background: rgba(255, 255, 255, .52); color: var(--emerald-700); font-size: .88rem; font-weight: 700; line-height: 1.25; box-shadow: 0 .35rem .9rem rgba(21, 65, 52, .05); }
.bg-sand .department-scope span { background: rgba(255, 253, 248, .66); }
.department-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.department-stat { padding: 1.25rem; text-align: center; border: 1px solid rgba(201,154,67,.35); border-radius: 16px; background: rgba(255,255,255,.7); }
.department-stat strong { display: block; color: var(--emerald-600); font-family: var(--font-ui); font-size: clamp(1.25rem, 1.05rem + .7vw, 1.85rem); }
.department-stat span { display: block; margin-top: .3rem; color: var(--ink-600); font-size: .82rem; line-height: 1.4; }
.department-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.department-service { padding: 1.45rem; border: 2px solid rgb(47 122 141 / 48%); border-radius: 16px; background: rgba(255,255,255,.76); box-shadow: 0 10px 24px -24px rgba(6,46,36,.55); }
.department-service h2 { display: flex; align-items: center; gap: .7rem; margin: 0 0 .75rem; color: var(--forest-950); font-size: 1.2rem; }
.department-service h2 svg { width: 24px; height: 24px; color: var(--emerald-600); flex: 0 0 auto; }
.department-service p { margin: 0; color: var(--ink-600); font-size: .95rem; line-height: 1.75; }
.department-service__meta { margin-top: .85rem !important; padding-top: .8rem; border-top: 1px solid rgba(201,154,67,.3); color: #1a696d !important; font-size: .84rem !important; font-weight: 700; }
.department-page-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 2.6rem;
  padding: 2.2rem 1.6rem;
  text-align: center;
  border: 0;
  border-radius: 20px;
  color: var(--on-dark-90);
  background:
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) 200% 0 / 220% 3px no-repeat,
    linear-gradient(90deg, rgba(201, 154, 67, .12), rgba(232, 213, 162, .54) 28%, var(--gold-300) 44%, #FFF1C4 50%, var(--gold-300) 56%, rgba(232, 213, 162, .54) 72%, rgba(201, 154, 67, .12)) -20% 100% / 220% 3px no-repeat,
    linear-gradient(115deg, #062E24, #0B5D45);
  animation: ctaBorderShimmer 10s linear infinite;
}
.department-page-cta h2 { position: relative; z-index: 1; color: var(--ivory-50); }
.department-page-cta p { position: relative; z-index: 1; max-width: 56ch; margin: .55rem auto 1.15rem; color: var(--on-dark-60); }
.department-page-cta .btn { position: relative; z-index: 1; }
@media (max-width: 900px) { .department-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); } .department-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .department-hub, .department-service-grid { grid-template-columns: 1fr; } .department-hub__card { min-height: 205px; } .department-stat-grid { gap: .75rem; } .department-stat { padding: 1rem .7rem; } .department-scope { justify-content: flex-start; margin-top: -.7rem; } .department-scope span { font-size: .8rem; min-height: 2.15rem; padding-inline: .7rem; } }

/* --------------------------------------------------------------------
   Unified department directory
   -------------------------------------------------------------------- */
.department-directory {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 2%, rgba(201, 154, 67, .1), transparent 24rem),
    var(--ivory-50);
}
.department-directory__overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(1rem, 2vw, 2.5rem);
  align-items: center;
  margin: 0 0 clamp(1.6rem, 2.5vw, 2.4rem);
  padding: clamp(1.1rem, 1rem + 1vw, 1.55rem) clamp(1.2rem, 1rem + 1.2vw, 2rem);
  border: 1px solid rgba(201, 154, 67, .43);
  border-radius: 22px;
  background: linear-gradient(105deg, #07382c, #0c5a43 58%, #0f7353);
  box-shadow: 0 18px 34px rgba(6, 46, 36, .16);
  color: var(--ivory-50);
}
.department-directory__overview-intro { display: flex; gap: 1rem; align-items: center; min-width: 0; }
.department-directory__overview-mark {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border: 1px solid rgba(232, 213, 162, .48);
  border-radius: 15px;
  color: var(--gold-200);
  background: rgba(255, 255, 255, .08);
}
.department-directory__overview-mark svg { width: 26px; height: 26px; }
.department-directory__overview-intro strong { display: block; font-family: var(--font-display); font-size: clamp(1.12rem, 1rem + .3vw, 1.42rem); }
.department-directory__overview-intro p { margin: .2rem 0 0; color: var(--on-dark-60); font-size: .92rem; line-height: 1.55; }
.department-directory__overview-stat { min-width: 105px; padding-left: clamp(1rem, 2vw, 2.2rem); border-left: 1px solid rgba(232, 213, 162, .3); }
.department-directory__overview-stat strong { display: block; color: var(--gold-200); font-family: var(--font-display); font-size: clamp(1.7rem, 1.45rem + .55vw, 2.2rem); line-height: 1; }
.department-directory__overview-stat span { display: block; margin-top: .3rem; color: var(--on-dark-60); font-size: .8rem; }
.department-directory__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 1.3vw, 1.35rem);
}
/* Documentary narrative order. It is retained on desktop and mobile. */
.department-directory__card:nth-child(7) { order: 1; }
.department-directory__card:nth-child(8) { order: 2; }
.department-directory__card:nth-child(9) { order: 3; }
.department-directory__card:nth-child(5) { order: 4; }
.department-directory__card:nth-child(1) { order: 5; }
.department-directory__card:nth-child(6) { order: 6; }
.department-directory__card:nth-child(2) { order: 7; }
.department-directory__card:nth-child(3) { order: 8; }
.department-directory__card:nth-child(41) { order: 9; }
.department-directory__card:nth-child(4) { order: 10; }
.department-directory__card:nth-child(10) { order: 11; }
.department-directory__card:nth-child(11) { order: 12; }
.department-directory__card:nth-child(12) { order: 13; }
.department-directory__card:nth-child(13) { order: 14; }
.department-directory__card:nth-child(14) { order: 15; }
.department-directory__card:nth-child(16) { order: 16; }
.department-directory__card:nth-child(31) { order: 17; }
.department-directory__card:nth-child(27) { order: 18; }
.department-directory__card:nth-child(42) { order: 19; }
.department-directory__card:nth-child(43) { order: 20; }
.department-directory__card:nth-child(28) { order: 21; }
.department-directory__card:nth-child(29) { order: 22; }
.department-directory__card:nth-child(15) { order: 23; }
.department-directory__card:nth-child(44) { order: 24; }
.department-directory__card:nth-child(45) { order: 25; }
.department-directory__card:nth-child(17) { order: 30; }
.department-directory__card:nth-child(18) { order: 31; }
.department-directory__card:nth-child(19) { order: 32; }
.department-directory__card:nth-child(20) { order: 33; }
.department-directory__card:nth-child(21) { order: 34; }
.department-directory__card:nth-child(22) { order: 35; }
.department-directory__card:nth-child(23) { order: 36; }
.department-directory__card:nth-child(24) { order: 37; }
.department-directory__card:nth-child(25) { order: 38; }
.department-directory__card:nth-child(26) { order: 39; }
.department-directory__card:nth-child(30) { order: 40; }
.department-directory__card:nth-child(32) { order: 41; }
.department-directory__card:nth-child(33) { order: 42; }
.department-directory__card:nth-child(34) { order: 43; }
.department-directory__card:nth-child(35) { order: 44; }
.department-directory__card:nth-child(36) { order: 45; }
.department-directory__card:nth-child(37) { order: 46; }
.department-directory__card:nth-child(38) { order: 47; }
.department-directory__card:nth-child(39) { order: 48; }
.department-directory__card:nth-child(40) { order: 49; }
.department-directory__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: clamp(1.35rem, 1.1rem + .7vw, 1.75rem);
  overflow: hidden;
  border: 2px solid rgb(47 122 141 / 48%);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(252, 250, 244, .78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 13px 30px -27px rgba(6, 46, 36, .58);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.department-directory__card::after {
  content: "";
  position: absolute;
  right: -3.8rem;
  bottom: -4.1rem;
  width: 11.5rem;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 122, 89, .1);
  border-radius: 50%;
  pointer-events: none;
}
.department-directory__card:hover { transform: translateY(-4px); border-color: rgb(47 122 141 / 78%); box-shadow: var(--shadow-md); }
.department-directory__card h2 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .75rem;
  color: var(--forest-950);
  font-size: clamp(1.32rem, 1.14rem + .4vw, 1.7rem);
}
.department-directory__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border: 1px solid rgba(201, 154, 67, .52);
  border-radius: 14px;
  color: var(--emerald-600);
  background: linear-gradient(145deg, var(--ivory-50), var(--sand-100));
}
.department-directory__icon svg { width: 25px; height: 25px; }
.department-directory__card > p {
  position: relative;
  z-index: 1;
  max-width: 64ch;
  margin: 0;
  color: var(--ink-600);
  font-size: clamp(.92rem, .88rem + .1vw, 1rem);
  line-height: 1.66;
}
.department-directory__card .department-directory__meta {
  margin-top: auto;
  padding-top: .95rem;
  border-top: 1px solid rgba(201, 154, 67, .34);
  color: #1a696d;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
}

.department-category-showcase {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.25rem, 2rem + 1.4vw, 4rem);
}
.department-category-showcase > .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.department-category-carousel { position: relative; z-index: 1; }
.department-category-carousel__track {
  gap: 1rem;
  padding: .35rem max(1.85rem, calc((100vw - var(--container-w)) / 2)) .85rem;
}
.department-category-carousel__track > .department-category-card {
  flex: 0 0 calc((min(100vw - 2.5rem, var(--container-w)) - 3rem) / 4);
}
.department-category-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 292px;
  padding: 1.5rem;
  overflow: hidden;
  color: var(--forest-900);
  text-decoration: none;
  border: 2px solid rgba(201, 154, 67, .58);
  border-radius: var(--card-radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(255, 253, 247, .93));
  box-shadow: 0 18px 36px rgba(11, 59, 43, .09), inset 0 1px 0 rgba(255, 255, 255, .9);
  flex-direction: column;
  align-items: flex-start;
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.department-category-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 14rem;
  height: 14rem;
  right: -5.8rem;
  bottom: -5.8rem;
  border: 1px solid rgba(15, 133, 94, .18);
  border-radius: 50%;
}
.department-category-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0;
  background: radial-gradient(circle at 94% 92%, rgba(15, 133, 94, .11), transparent 40%);
  transition: opacity var(--dur-base);
}
.department-category-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald-600);
  box-shadow: 0 23px 44px rgba(11, 59, 43, .15), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.department-category-card:hover::after { opacity: 1; }
.department-category-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.05rem;
  border: 1px solid rgba(201, 154, 67, .48);
  border-radius: 16px;
  color: var(--emerald-600);
  background: var(--ivory-100);
}
.department-category-card__icon svg { width: 27px; height: 27px; }
.department-category-card strong { font-family: var(--font-display); font-size: clamp(1.22rem, 1.04rem + .34vw, 1.48rem); line-height: 1.3; }
.department-category-card p { max-width: 30ch; margin: .72rem 0 1.2rem; color: var(--ink-500); font-size: .9rem; line-height: 1.55; }
.department-category-card__link {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
  margin-top: auto;
  color: var(--emerald-600);
  font-size: .9rem;
  font-weight: 700;
}
.department-category-card__link svg { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.department-category-card:hover .department-category-card__link svg { transform: translateX(4px); }

@media (max-width: 800px) {
  .department-directory__overview { grid-template-columns: 1fr auto auto; }
  .department-directory__grid { grid-template-columns: 1fr; }
  .department-category-carousel__track > .department-category-card { flex-basis: min(350px, 76vw); }
}
@media (max-width: 560px) {
  .department-directory__overview { grid-template-columns: 1fr 1fr; gap: .85rem; border-radius: 18px; }
  .department-directory__overview-intro { grid-column: 1 / -1; align-items: flex-start; }
  .department-directory__overview-mark { width: 44px; height: 44px; border-radius: 13px; }
  .department-directory__overview-mark svg { width: 23px; height: 23px; }
  .department-directory__overview-stat { min-width: 0; padding: .8rem 0 0; border-top: 1px solid rgba(232, 213, 162, .25); border-left: 0; }
  .department-directory__card { min-height: 0; padding: 1.35rem; border-radius: 17px; }
  .department-directory__card h2 { font-size: 1.28rem; }
  .department-directory__card > p { font-size: .94rem; }
  .department-directory__card .department-directory__meta { font-size: .81rem; }
  .department-category-showcase { padding-block: 1.65rem 2.3rem; }
  .department-category-carousel__track { gap: 1rem; padding-inline: 1rem; }
  .department-category-carousel__track > .department-category-card { flex-basis: min(300px, 82vw); }
  .department-category-card { min-height: 306px; padding: 1.5rem; border-radius: 20px; }
  .department-category-card__icon { width: 60px; height: 60px; margin-bottom: 1.1rem; border-radius: 16px; }
  .department-category-card__icon svg { width: 27px; height: 27px; }
  .department-category-card p { margin: .7rem 0 1.25rem; font-size: .92rem; }
}

/* --------------------------------------------------------------------
   Accordion (department detail, FAQs)
   -------------------------------------------------------------------- */
.accordion { display: grid; gap: .9rem; }
.accordion__item {
  background: var(--ivory-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: var(--font-bn-display);
  font-size: 1.05rem;
  color: var(--forest-950);
}
.accordion__icon { width: 18px; height: 18px; flex: 0 0 auto; color: var(--emerald-600); transition: transform var(--dur-base) var(--ease-out); }
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); }
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel-inner { overflow: hidden; min-height: 0; }
.accordion__panel-inner p { padding: 0 1.4rem 1.3rem; font-size: .92rem; color: var(--ink-600); }

/* --------------------------------------------------------------------
   Map embed (click-to-load, mirrors .yt-facade)
   -------------------------------------------------------------------- */
.map-embed {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--hairline-light);
  background: var(--sand-100);
  cursor: pointer;
}
.map-embed__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__cta {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  gap: .6rem;
  background: linear-gradient(180deg, rgba(23,33,29,.05), rgba(23,33,29,.35));
  color: var(--forest-950);
  text-align: center;
}
.map-embed__cta svg { width: 30px; height: 30px; color: var(--emerald-600); }
.map-embed__cta span { font-weight: 700; font-size: .92rem; background: var(--ivory-50); padding: .5rem 1.1rem; border-radius: 999px; box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------- */
.contact-form { display: grid; gap: 1.3rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 640px) { .contact-form__row { grid-template-columns: 1fr; } }
.contact-form__confirm {
  display: none;
  align-items: flex-start;
  gap: .7rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: rgba(22,98,74,.08);
  border: 1px solid var(--emerald-500);
  border-radius: var(--radius-sm);
  color: var(--forest-950);
  font-size: .9rem;
}
.contact-form__confirm.is-visible { display: flex; }
.contact-form__confirm svg { width: 20px; height: 20px; color: var(--emerald-600); flex: 0 0 auto; margin-top: .1rem; }
.contact-form__confirm a { color: var(--emerald-700); font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }

/* --------------------------------------------------------------------
   Course card (Online Courses listing)
   -------------------------------------------------------------------- */
.course-card {
  background: var(--ivory-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.course-card__thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  background: linear-gradient(160deg, var(--forest-950), var(--emerald-600));
  color: var(--gold-300);
}
.course-card__thumb svg { width: 44px; height: 44px; }
.course-card__soon {
  position: absolute; top: .9rem; right: .9rem;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--gold-500);
  color: var(--forest-950);
  font-size: .7rem; font-weight: 700;
}
.course-card__body { padding: 1.4rem; }
.course-card__en { font-size: .72rem; color: var(--ink-600); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.course-card__body h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.course-card__body p { font-size: .88rem; color: var(--ink-600); margin-bottom: .9rem; }
.course-card__meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--ink-600); }
.course-card__meta span { display: flex; align-items: center; gap: .3rem; }
.course-card__meta svg { width: 14px; height: 14px; color: var(--emerald-600); }

/* --------------------------------------------------------------------
   Numbered steps (admission process, etc.)
   -------------------------------------------------------------------- */
.steps { display: grid; gap: 1.6rem; counter-reset: step; }
.steps__item { display: flex; gap: 1.2rem; }
.steps__item::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--forest-950);
  color: var(--gold-300);
  font-family: var(--font-en-body);
  font-weight: 700;
}
.steps__item h3 { font-size: 1.02rem; margin-bottom: .3rem; }
.steps__item p { font-size: .9rem; color: var(--ink-600); }

/* --------------------------------------------------------------------
   Photo gallery + lightbox
   -------------------------------------------------------------------- */
.media-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  max-width: 660px;
  margin: 0 auto clamp(2rem, 1.5rem + 1vw, 2.8rem);
}
.media-switch__item {
  display: flex;
  align-items: center;
  gap: .8rem;
  min-height: 76px;
  padding: .85rem 1rem;
  border: 1px solid var(--hairline-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  color: var(--forest-900);
  box-shadow: 0 8px 20px rgba(6, 46, 36, .05);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base), background var(--dur-base);
}
.media-switch__item > svg { width: 26px; height: 26px; flex: 0 0 auto; color: var(--emerald-600); }
.media-switch__item span { display: grid; gap: .08rem; }
.media-switch__item strong { font-size: 1rem; }
.media-switch__item small { color: var(--ink-600); font-size: .76rem; }
.media-switch__item:hover, .media-switch__item:focus-visible { transform: translateY(-3px); border-color: rgba(201, 154, 67, .7); box-shadow: 0 14px 25px rgba(6, 46, 36, .1); }
.media-switch__item.is-active { border-color: var(--emerald-600); background: linear-gradient(135deg, #0B5D45, #0A3E30); color: var(--ivory-50); box-shadow: 0 14px 26px rgba(6, 46, 36, .2); }
.media-switch__item.is-active > svg { color: var(--gold-300); }
.media-switch__item.is-active small { color: var(--on-dark-60); }
@media (max-width: 500px) { .media-switch { grid-template-columns: 1fr; } }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: none;
  display: block;
  width: 100%;
  padding: 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-base) var(--ease-out); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10,43,33,.55));
  opacity: 0;
  transition: opacity var(--dur-base);
}
.gallery-item:hover::after { opacity: 1; }

/* --------------------------------------------------------------------
   Media library — editorial video categories and photo gallery
   -------------------------------------------------------------------- */
.page-hero--media .page-hero__lead { max-width: 58ch; }
.media-library { overflow: hidden; }
.media-library::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 15rem;
  pointer-events: none;
  background: radial-gradient(44rem 19rem at 50% 0, rgba(201, 154, 67, .12), transparent 70%);
}
.media-library .container { position: relative; }
.media-switch--library {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
  padding: .5rem;
  gap: .5rem;
  border: 1px solid rgba(201, 154, 67, .38);
  border-radius: 20px;
  background: rgba(252, 250, 244, .84);
  box-shadow: 0 16px 30px rgba(6, 46, 36, .08);
}
.media-switch--library .media-switch__item {
  position: relative;
  min-height: 84px;
  padding: .9rem 1rem;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}
.media-switch--library .media-switch__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
  pointer-events: none;
}
.media-switch--library .media-switch__item > svg { width: 28px; height: 28px; }
.media-switch--library .media-switch__item strong { font-size: 1.06rem; }
.media-switch--library .media-switch__item.is-active {
  border-color: rgba(232, 213, 162, .46);
  background: linear-gradient(130deg, var(--forest-950), var(--emerald-600));
  box-shadow: 0 12px 22px rgba(6, 46, 36, .2);
}
.media-switch--library .media-switch__item:not(.is-active):hover,
.media-switch--library .media-switch__item:not(.is-active):focus-visible {
  border-color: rgba(201, 154, 67, .42);
  background: rgba(243, 235, 221, .72);
  transform: none;
  box-shadow: none;
}
.media-library__head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 2rem + 1.5vw, 4rem);
  text-align: center;
}
.media-library__head .eyebrow { justify-content: center; }
.media-library__head .section-title { margin-top: .5rem; }
.media-library__head > p:last-child { max-width: 54ch; margin: .75rem auto 0; }
.media-category { padding: clamp(1.9rem, 1.5rem + 1vw, 2.7rem) 0; }
.media-category + .media-category { border-top: 1px solid rgba(23, 33, 29, .12); }
.media-category__head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: .85rem 1rem;
  align-items: center;
  margin-bottom: 1.35rem;
}
.media-category__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(201, 154, 67, .6);
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, var(--sand-100));
  color: var(--emerald-600);
  box-shadow: 0 9px 18px rgba(6, 46, 36, .07);
}
.media-category__icon svg { width: 26px; height: 26px; }
.media-category__kicker { margin-bottom: .08rem; color: var(--gold-700); font: 700 .68rem/1.2 var(--font-en-body); letter-spacing: .13em; text-transform: uppercase; }
.media-category__head h2 { margin: 0; font-size: clamp(1.55rem, 1.25rem + .8vw, 2rem); }
.media-category__head p:not(.media-category__kicker) { margin-top: .18rem; font-size: .93rem; }
.media-category__count { align-self: start; margin-top: .2rem; padding: .35rem .65rem; border: 1px solid rgba(201, 154, 67, .5); border-radius: 999px; color: var(--gold-700); font-size: .76rem; font-weight: 700; white-space: nowrap; }
.media-category__carousel { margin-top: 1.45rem; }
.media-category__track {
  gap: 1.1rem;
  padding: .25rem 0 1rem;
}
.media-category__track > .video-card {
  flex: 0 0 calc((100% - 2.2rem) / 3);
  min-width: 0;
}
.media-library .video-card { min-width: 0; border-color: rgba(232, 213, 162, .34); }
/* Media library stays visually light while preserving the familiar video-card structure. */
body[data-page="media"] .media-library .video-card,
body[data-page="kids"] .media-library .video-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(249, 246, 238, .94));
  border-color: rgba(201, 154, 67, .5);
  box-shadow: 0 12px 26px rgba(6, 46, 36, .09);
}
body[data-page="media"] .media-library .video-card::before,
body[data-page="kids"] .media-library .video-card::before { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94); }
body[data-page="media"] .media-library .video-card:hover,
body[data-page="kids"] .media-library .video-card:hover { border-color: var(--emerald-600); box-shadow: 0 20px 34px rgba(6, 46, 36, .15); }
body[data-page="media"] .media-library .video-card__thumb,
body[data-page="kids"] .media-library .video-card__thumb { background: linear-gradient(135deg, #eaf4ec, #fffaf0); }
body[data-page="media"] .media-library .video-card__thumb img,
body[data-page="kids"] .media-library .video-card__thumb img { opacity: .2; filter: saturate(.72) sepia(.2); }
body[data-page="media"] .media-library .video-card__play,
body[data-page="kids"] .media-library .video-card__play { background: radial-gradient(circle, rgba(15, 133, 94, .08) 0 18%, transparent 19%), linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .42)); }
body[data-page="media"] .media-library .video-card__play::before,
body[data-page="kids"] .media-library .video-card__play::before { border-color: var(--emerald-600); background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 8px rgba(15, 133, 94, .08); }
body[data-page="media"] .media-library .video-card__play svg,
body[data-page="kids"] .media-library .video-card__play svg { color: var(--emerald-600); }
body[data-page="media"] .media-library .video-card__duration,
body[data-page="kids"] .media-library .video-card__duration { border-color: rgba(15, 133, 94, .25); color: var(--emerald-700); background: rgba(255, 255, 255, .88); }
body[data-page="media"] .media-library .video-card__body h3,
body[data-page="kids"] .media-library .video-card__body h3 { color: var(--forest-900); }
body[data-page="media"] .media-library .video-card__eyebrow,
body[data-page="kids"] .media-library .video-card__eyebrow { color: var(--emerald-600); }
.media-library .video-card__body { min-height: 104px; padding: .95rem 1rem 1.08rem; }
.media-library .video-card__body h3 { font-size: .98rem; line-height: 1.42; }
.media-library .video-card__duration { font-size: .66rem; }
.media-library .section-foot-cta { margin-top: clamp(2.25rem, 1.6rem + 1vw, 3.25rem); }

.gallery-grid--curated {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 190px;
  gap: 1.15rem;
}
.gallery-grid--curated .gallery-item {
  min-height: 0;
  aspect-ratio: auto;
  border: 1px solid rgba(201, 154, 67, .35);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(6, 46, 36, .08);
  isolation: isolate;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base);
}
.gallery-grid--curated .gallery-item--featured { grid-column: span 2; grid-row: span 2; }
.gallery-grid--curated .gallery-item::after {
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 46, 36, .02) 20%, rgba(6, 46, 36, .88) 100%);
  opacity: 1;
}
.gallery-grid--curated .gallery-item img { filter: saturate(.9) contrast(1.04); }
.gallery-grid--curated .gallery-item__meta {
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  left: 1rem;
  z-index: 2;
  display: grid;
  gap: .08rem;
  color: var(--ivory-50);
  text-align: left;
}
.gallery-grid--curated .gallery-item__meta small { color: rgba(251, 248, 241, .7); font-size: .67rem; letter-spacing: .055em; }
.gallery-grid--curated .gallery-item__meta strong { font-family: var(--font-bn-display); font-size: 1.12rem; font-weight: 400; line-height: 1.3; }
.gallery-grid--curated .gallery-item__view { display: inline-flex; align-items: center; gap: .28rem; max-height: 0; overflow: hidden; color: var(--gold-300); font-size: .72rem; font-weight: 700; opacity: 0; transition: max-height var(--dur-base), opacity var(--dur-base), margin var(--dur-base); }
.gallery-grid--curated .gallery-item__view svg { width: 15px; height: 15px; }
.gallery-grid--curated .gallery-item:hover,
.gallery-grid--curated .gallery-item:focus-visible { border-color: var(--gold-300); box-shadow: 0 18px 30px rgba(6, 46, 36, .16); transform: translateY(-4px); }
.gallery-grid--curated .gallery-item:hover img,
.gallery-grid--curated .gallery-item:focus-visible img { transform: scale(1.075); filter: saturate(1.08) contrast(1.06); }
.gallery-grid--curated .gallery-item:hover .gallery-item__view,
.gallery-grid--curated .gallery-item:focus-visible .gallery-item__view { max-height: 24px; margin-top: .2rem; opacity: 1; }

@media (max-width: 1100px) {
  .media-category__track > .video-card { flex-basis: calc((100% - 1.1rem) / 2); }
  .gallery-grid--curated { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .media-switch--library { padding: .38rem; border-radius: 16px; }
  .media-switch--library .media-switch__item { min-height: 72px; padding: .7rem; gap: .55rem; }
  .media-switch--library .media-switch__item > svg { width: 23px; height: 23px; }
  .media-switch--library .media-switch__item strong { font-size: .94rem; }
  .media-switch--library .media-switch__item small { font-size: .66rem; }
  .media-category__head { grid-template-columns: 48px minmax(0, 1fr); }
  .media-category__icon { width: 48px; height: 48px; border-radius: 14px; }
  .media-category__icon svg { width: 23px; height: 23px; }
  .media-category__count { grid-column: 2; justify-self: start; margin-top: -.25rem; }
  .media-category__track > .video-card { flex-basis: min(300px, 82vw); }
  .media-library .video-card__body { min-height: 0; }
  .gallery-grid--curated { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 175px; gap: .8rem; }
  .gallery-grid--curated .gallery-item--featured { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 500px) {
  .media-switch--library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-switch--library .media-switch__item span { min-width: 0; }
  .media-switch--library .media-switch__item small { display: none; }
  .gallery-grid--curated { grid-template-columns: 1fr; grid-auto-rows: 225px; }
  .gallery-grid--curated .gallery-item--featured { grid-column: span 1; grid-row: span 1; min-height: 300px; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 4vh 4vw;
  background: rgba(10, 43, 33, .88);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base) var(--ease-out);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 1.4rem; right: 1.4rem;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(251,248,241,.12);
  color: var(--ivory-50);
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover { background: rgba(251,248,241,.22); }

/* Category album modal. Each gallery card opens a small, navigable image set. */
.gallery-grid--curated .gallery-item::before {
  content: attr(data-gallery-count);
  position: absolute;
  z-index: 2;
  top: .85rem;
  right: .85rem;
  padding: .32rem .58rem;
  border: 1px solid rgba(232, 213, 162, .72);
  border-radius: 999px;
  color: var(--ivory-50);
  background: rgba(6, 46, 36, .63);
  font-size: .67rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.gallery-modal { padding: clamp(1.25rem, 4vh, 3.5rem) clamp(1rem, 4vw, 4rem); }
.gallery-modal__dialog { width: min(1040px, 100%); max-height: 92vh; overflow: auto; padding: clamp(1rem, .7rem + 1.4vw, 1.8rem); border: 1px solid rgba(232, 213, 162, .44); border-radius: 24px; background: linear-gradient(145deg, rgba(9, 65, 48, .98), rgba(4, 42, 32, .99)); box-shadow: 0 28px 70px rgba(0, 0, 0, .35); }
.gallery-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 3.5rem 1rem 0; color: var(--ivory-50); }
.gallery-modal__eyebrow { margin: 0 0 .18rem; color: var(--gold-300); font: 700 .66rem/1.2 var(--font-en-body); letter-spacing: .15em; text-transform: uppercase; }
.gallery-modal__title { margin: 0; font-size: clamp(1.35rem, 1.1rem + .8vw, 2rem); color: var(--ivory-50); }
.gallery-modal__count { flex: 0 0 auto; padding: .38rem .65rem; border: 1px solid rgba(232, 213, 162, .42); border-radius: 999px; color: var(--gold-200); font-size: .78rem; font-weight: 700; }
.gallery-modal__stage { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: clamp(.5rem, 1vw, 1rem); }
.gallery-modal__stage figure { min-width: 0; margin: 0; text-align: center; }
.gallery-modal .gallery-modal__stage img { display: block; width: 100%; max-width: 860px; max-height: min(62vh, 650px); margin: 0 auto; object-fit: contain; border: 1px solid rgba(232, 213, 162, .28); border-radius: 16px; background: rgba(0, 0, 0, .16); box-shadow: none; }
.gallery-modal__caption { margin-top: .7rem; color: rgba(251, 248, 241, .72); font-size: .82rem; }
.gallery-modal__nav { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(232, 213, 162, .56); border-radius: 50%; color: var(--gold-200); background: rgba(255, 255, 255, .06); transition: background var(--dur-fast), transform var(--dur-fast); }
.gallery-modal__nav:hover { background: rgba(201, 154, 67, .2); transform: scale(1.06); }
.gallery-modal__nav svg { width: 19px; height: 19px; }
.gallery-modal__thumbs { display: flex; gap: .65rem; justify-content: center; margin-top: 1rem; overflow-x: auto; padding: .15rem .15rem .4rem; }
.gallery-modal__thumb { flex: 0 0 auto; width: 72px; height: 54px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 10px; opacity: .64; transition: opacity var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
.gallery-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-modal__thumb:hover, .gallery-modal__thumb.is-active { border-color: var(--gold-300); opacity: 1; transform: translateY(-2px); }
@media (max-width: 560px) {
  .gallery-modal__dialog { border-radius: 18px; }
  .gallery-modal__head { margin-right: 2.8rem; }
  .gallery-modal__stage { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: .35rem; }
  .gallery-modal__nav { width: 40px; height: 40px; }
  .gallery-modal__thumb { width: 58px; height: 44px; }
  .gallery-modal .gallery-modal__stage img { max-height: 54vh; }
  .lightbox__close { top: .8rem; right: .8rem; width: 38px; height: 38px; }
}

/* --------------------------------------------------------------------
   Notify-me signup (Courses page)
   -------------------------------------------------------------------- */
.notify-form { display: flex; flex-wrap: wrap; gap: .8rem; max-width: 480px; margin-inline: auto; }
.notify-form input[type="email"] {
  flex: 1 1 220px;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  font-size: .95rem;
}
.notify-form input:focus-visible { border-color: var(--gold-500); }
.notify-form__confirm {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--emerald-600);
  font-weight: 600;
}

/* --------------------------------------------------------------------
   Feature list (checkmark rows — app feature highlights, etc.)
   -------------------------------------------------------------------- */
.feature-list { display: grid; gap: .9rem; margin: 1.4rem 0; }
.feature-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .95rem; }
.feature-list svg { width: 20px; height: 20px; color: var(--emerald-600); flex: 0 0 auto; margin-top: .1rem; }

/* --------------------------------------------------------------------
   Contact quick-facts (reuses .stat-strip grid layout, lighter content)
   -------------------------------------------------------------------- */
.contact-fact { text-align: left; min-width: 0; }
.contact-fact p, .contact-fact a { overflow-wrap: break-word; }
.contact-fact__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, var(--ivory-50), var(--sand-100));
  border: 1.5px solid var(--gold-300);
  color: var(--emerald-600);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .6);
}
.contact-fact__icon svg { width: 22px; height: 22px; }
.contact-fact h3 { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-600); margin-bottom: .4rem; text-transform: uppercase; font-family: var(--font-en-body); }
.contact-fact p, .contact-fact a { font-size: 1rem; font-weight: 600; color: var(--forest-950); }
.contact-fact a:hover { color: var(--emerald-600); }

/* --------------------------------------------------------------------
   Timeline (About page milestones)
   -------------------------------------------------------------------- */
.timeline { position: relative; display: grid; gap: 2.2rem; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--gold-300), var(--hairline-light));
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute; left: -2.4rem; top: .3rem;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--ivory-50);
  border: 2.5px solid var(--gold-500);
}
.timeline__year { font-family: var(--font-en-body); font-size: .78rem; font-weight: 700; letter-spacing: .08em; color: var(--gold-700); text-transform: uppercase; }
.timeline__item h3 { font-size: 1.1rem; margin: .3rem 0 .35rem; }
.timeline__item p { font-size: .92rem; color: var(--ink-600); }

/* --------------------------------------------------------------------
   Center card (contact page) — divisional centers
   The crest band stands in for a photo: one motif, nine centres, no weight.
   -------------------------------------------------------------------- */
.center-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--ivory-50);
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
/* Gold rule that draws itself across the top on hover */
.center-card::after {
  content: "";
  position: absolute; inset: 0 auto auto 0;
  height: 3px; width: 100%;
  z-index: 2;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}
.center-card:hover,
.center-card:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--gold-300); }
.center-card:hover::after,
.center-card:focus-within::after { transform: scaleX(1); }

/* Head office reads first */
.center-card--hq { border-color: var(--gold-300); }
.center-card--hq .center-card__band { padding-bottom: 1.5rem; }

/* ---- crest band ---- */
.center-card__band {
  position: relative;
  padding: 1.5rem 1.5rem 1.35rem;
  background:
    radial-gradient(ellipse at 78% 120%, rgba(28, 122, 92, .55), transparent 60%),
    linear-gradient(150deg, #0A2B21 0%, #123A2C 55%, #16624A 100%);
  color: var(--ivory-50);
  overflow: hidden;
  isolation: isolate;
}
/* Dome + minaret silhouette, bled off the right edge */
.center-card__band::before {
  content: "";
  position: absolute;
  right: -26px; bottom: -46px;
  width: 132px; height: 132px;
  z-index: -1;
  border-radius: 50% 50% 8px 8px;
  border: 1.5px solid rgba(230, 205, 151, .30);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(230, 205, 151, .10), transparent 65%);
}
/* Hairline of gold along the bottom of the band */
.center-card__band::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  opacity: .5;
}
.center-card__crest {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .9rem;
}
.center-card__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: rgba(251, 248, 241, .09);
  border: 1.5px solid rgba(230, 205, 151, .34);
  color: var(--gold-300);
  box-shadow: inset 0 1px 0 rgba(251, 248, 241, .14);
}
.center-card__icon svg { width: 23px; height: 23px; }
/* Division label sits beside the crest, uppercase and quiet */
/* Bangla label — no uppercase, only a hair of tracking (conjuncts spread badly) */
.center-card__division {
  margin: 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--gold-300);
}
.center-card__name {
  font-family: var(--font-bn-display);
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--ivory-50);
  margin: 0;
  /* Reserve two lines so every band is the same height regardless of city name */
  min-height: calc(1.16rem * 1.4 * 2);
}
/* Badge now sits in normal flow under the name — it can never cover the title */
.center-card__badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .7rem;
  padding: .26rem .7rem;
  border-radius: 999px;
  background: var(--gold-300);
  color: var(--forest-950);
  font-size: .7rem;
  font-weight: 700;
}
.center-card__badge svg { width: 12px; height: 12px; }
/* Divisional centres get the same chip, quieter — keeps every band equal height */
.center-card__badge--muted {
  background: transparent;
  border: 1px solid rgba(230, 205, 151, .40);
  color: var(--gold-300);
  font-weight: 600;
}

/* ---- detail list ---- */
.center-card__list {
  list-style: none;
  margin: 0;
  padding: 1.3rem 1.5rem;
  display: grid;
  gap: .8rem;
  flex: 1 1 auto;
}
.center-card__list li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: .7rem;
  align-items: start;
  font-size: .87rem;
  line-height: 1.6;
  color: var(--ink-600);
}
.center-card__list svg {
  width: 15px; height: 15px;
  margin-top: .28rem;
  color: var(--emerald-500);
  flex: 0 0 auto;
}
.center-card__list a {
  color: var(--ink-600);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline-light);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.center-card__list a:hover { color: var(--emerald-600); border-bottom-color: var(--gold-500); }
/* Address still being verified — a dashed chip, not italics (Bangla has no true italic) */
.center-card__pending {
  display: inline-block;
  padding: .16rem .6rem;
  border: 1px dashed var(--gold-500);
  border-radius: 999px;
  background: rgba(230, 205, 151, .13);
  font-size: .78rem;
  color: var(--gold-700);
}

/* ---- actions ---- */
.center-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  padding: 1.1rem 1.5rem 1.4rem;
  border-top: 1px solid var(--hairline-light);
  background: linear-gradient(180deg, rgba(241, 233, 216, .34), transparent);
}
.center-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .42rem;
  padding: .62rem .8rem;
  border-radius: 999px;
  border: 1.5px solid var(--hairline-light);
  background: var(--ivory-50);
  font-size: .82rem;
  font-weight: 700;
  color: var(--emerald-600);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard),
              transform var(--dur-fast) var(--ease-standard);
}
.center-card__action svg { width: 14px; height: 14px; }
.center-card__action:hover {
  border-color: var(--emerald-600);
  background: var(--emerald-600);
  color: var(--ivory-50);
  transform: translateY(-1px);
}
.center-card__action--ghost:hover {
  border-color: var(--gold-500);
  background: var(--gold-500);
  color: var(--forest-950);
}

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

/* Full-width map under the centers grid — 16/10 would be ~775px tall at container width */
.map-embed--wide { aspect-ratio: 21 / 8; }
@media (max-width: 760px) { .map-embed--wide { aspect-ratio: 4 / 3; } }

/* --------------------------------------------------------------------
   Contact page refresh + shared action bands
   -------------------------------------------------------------------- */
.contact-hero {
  min-height: 315px;
  display: flex;
  align-items: center;
}
.contact-hero .page-hero__lead { max-width: 54ch; }
.contact-overview { padding-block: 0 4.5rem; }
.contact-facts-panel {
  position: relative;
  z-index: 2;
  margin-top: -2.7rem !important;
  padding: 1.5rem !important;
  border: 1px solid rgba(201, 154, 67, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 93% 8%, rgba(232, 213, 162, .55), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(252, 250, 244, .92));
  box-shadow: 0 22px 42px rgba(6, 46, 36, .12);
}
.contact-facts-panel .contact-fact { position: relative; padding: .35rem 1.25rem; }
.contact-facts-panel .contact-fact:not(:first-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 154, 67, .45), transparent);
}
.contact-facts-panel .contact-fact__icon { width: 48px; height: 48px; margin-bottom: .85rem; }
.contact-facts-panel .contact-fact h3 { color: var(--gold-700); }
.contact-centers-section {
  background:
    radial-gradient(900px 460px at 100% 0%, rgba(20, 122, 89, .1), transparent 66%),
    var(--sand-100);
}
.contact-centers-section .tab-row { padding: .55rem; border: 1px solid var(--hairline-light); border-radius: 16px; background: rgba(255, 255, 255, .6); }
.contact-centers-section .map-embed { border-radius: 20px; box-shadow: 0 18px 35px rgba(6, 46, 36, .12); }
.centers-directory {
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 0% 0%, rgba(232, 213, 162, .38), transparent 68%),
    radial-gradient(760px 430px at 100% 10%, rgba(20, 122, 89, .11), transparent 68%),
    var(--sand-100);
}
.centers-directory .container { width: min(100% - clamp(3rem, 6vw, 7rem), 1320px); }
.centers-directory__intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto 2.1rem;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid rgba(201, 154, 67, .32);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.84), rgba(252,250,244,.64));
  box-shadow: 0 16px 34px rgba(6, 46, 36, .07);
}
.centers-directory__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  color: var(--gold-300);
  background: linear-gradient(150deg, var(--forest-950), var(--emerald-600));
  border: 1px solid rgba(232, 213, 162, .45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 10px 20px rgba(6,46,36,.14);
}
.centers-directory__icon svg { width: 32px; height: 32px; }
.centers-directory__intro .eyebrow { margin-bottom: .45rem; }
.centers-directory__intro .section-title { margin-bottom: .45rem; font-size: clamp(1.55rem, 1.25rem + 1.4vw, 2.35rem); }
.centers-directory__intro p:last-child { margin: 0; max-width: 62ch; color: var(--ink-600); line-height: 1.7; }
.centers-directory .tab-row { padding: .55rem; margin-bottom: 2.25rem; border: 1px solid var(--hairline-light); border-radius: 16px; background: rgba(255, 255, 255, .66); box-shadow: 0 10px 26px rgba(6,46,36,.05); }
.centers-directory .map-embed { border-radius: 22px; box-shadow: 0 18px 35px rgba(6, 46, 36, .12); }
.centers-directory .centers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.4rem, 1rem + 1.1vw, 2.25rem);
}
.centers-directory .center-card {
  border: 1.5px solid rgba(201, 154, 67, .42);
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(6, 46, 36, .10);
}
.centers-directory .center-card:hover,
.centers-directory .center-card:focus-within { box-shadow: 0 24px 46px rgba(6, 46, 36, .17); }
.centers-directory .center-card__band {
  display: flex;
  min-height: 252px;
  padding: 1.8rem 1.8rem 1.65rem;
  flex-direction: column;
  justify-content: flex-start;
}
.centers-directory .center-card__crest { margin-bottom: 1.35rem; }
.centers-directory .center-card__icon { width: 52px; height: 52px; border-radius: 16px; }
.centers-directory .center-card__icon svg { width: 27px; height: 27px; }
.centers-directory .center-card__division { font-size: .85rem; }
.centers-directory .center-card__name { margin-bottom: auto; font-size: 1.3rem; line-height: 1.46; }
.centers-directory .center-card__badge { align-self: flex-start; margin-top: 1.35rem; padding: .4rem .85rem; font-size: .76rem; }
.centers-directory .center-card__list {
  padding: 1.05rem 1.55rem;
  gap: 0;
  background: linear-gradient(180deg, rgba(252,250,244,.9), rgba(255,255,255,.96));
}
.centers-directory .center-card__list li {
  min-height: 48px;
  padding: .55rem 0;
  align-items: center;
  border-bottom: 1px solid rgba(201, 154, 67, .20);
}
.centers-directory .center-card__list li:last-child { border-bottom: 0; }
.centers-directory .center-card__list li:has(use[href="#ic-mail"]) { display: none; }
.centers-directory .center-card__list li:nth-child(2) { border-bottom: 0; }
.centers-directory .center-card__actions {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 1.3rem 1.55rem 1.55rem;
  background: linear-gradient(180deg, rgba(241,233,216,.42), rgba(255,255,255,.9));
}
.centers-directory .center-card__action {
  min-height: 50px;
  color: var(--ivory-50);
  border-color: transparent;
  background: linear-gradient(135deg, var(--emerald-600), var(--forest-950));
  box-shadow: 0 9px 18px rgba(6, 46, 36, .16);
  font-size: .92rem;
}
.centers-directory .center-card__action--ghost { display: none; }
.centers-directory .center-card__action:hover { color: var(--forest-950); border-color: var(--gold-300); background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }
@media (max-width: 980px) { .centers-directory .centers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .centers-directory .centers-grid { grid-template-columns: 1fr; } }
.contact-form-section { overflow: hidden; }
.contact-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background: url('../assets/icons/star-pattern.svg') repeat center / 150px;
}
.contact-form-shell {
  position: relative;
  max-width: 860px;
  padding: clamp(1.4rem, 2vw, 2.4rem);
  border: 1px solid rgba(201, 154, 67, .26);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(252, 250, 244, .9));
  box-shadow: 0 20px 44px rgba(6, 46, 36, .09);
}
.contact-form-shell .section-head { margin-bottom: 2rem; }
.contact-form-shell .contact-form { padding: clamp(1.1rem, 1.5vw, 1.6rem); border: 1px solid var(--hairline-light); border-radius: 16px; background: rgba(255, 255, 255, .66); }
.contact-form-shell .btn--block { margin-top: .25rem; min-height: 52px; }

/* --------------------------------------------------------------------
   Social media directory
   -------------------------------------------------------------------- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.3rem;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  padding: 1.9rem 1.3rem 1.6rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), var(--ivory-50));
  border: 1px solid var(--hairline-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 22px rgba(6, 46, 36, .035);
  transition: transform var(--dur-base), box-shadow var(--dur-base), border-color var(--dur-base);
}
.social-card:hover { transform: translateY(-4px); border-color: rgba(20, 122, 89, .28); box-shadow: var(--shadow-md); }
.social-card__avatar {
  width: 70px; height: 70px;
  margin-bottom: .5rem;
  border-radius: 50%;
  display: grid; place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald-600), var(--forest-800));
  color: var(--gold-100);
  font-family: var(--font-bn-display);
  font-size: 1.5rem;
  font-weight: 700;
  border: 3px solid var(--ivory-50);
  box-shadow: 0 0 0 1px rgba(201, 154, 67, .4), 0 10px 20px rgba(6, 46, 36, .14);
}
.social-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.social-card__avatar--logo img { box-sizing: border-box; object-fit: contain; padding: 14px; }
.social-card__name { font-weight: 700; font-size: .98rem; color: var(--forest-900); line-height: 1.35; }
.social-card__role { font-size: .74rem; color: var(--ink-600); }
.social-card__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .7rem; }
.social-card__link {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sand-100);
  border: 1px solid var(--hairline-light);
  color: var(--emerald-600);
  transition: background var(--dur-fast), color var(--dur-fast), transform var(--dur-fast), box-shadow var(--dur-base), border-color var(--dur-fast);
}
.social-card__link svg { width: 17px; height: 17px; }
.social-card__link:hover, .social-card__link:focus-visible {
  background: linear-gradient(135deg, var(--emerald-600), var(--gold-500));
  border-color: transparent;
  color: var(--ivory-50);
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(6, 46, 36, .22);
}
.social-notice {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: clamp(2.5rem, 2rem + 1.5vw, 3.5rem);
  padding: 1.3rem 1.5rem;
  border-left: 3px solid var(--gold-500);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, .55);
}
.social-notice__icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(201, 154, 67, .16);
  color: var(--gold-700);
}
.social-notice__icon svg { width: 20px; height: 20px; }
.social-notice p { margin: 0; color: var(--ink-600); font-size: .9rem; line-height: 1.7; }
.social-notice strong { color: var(--forest-900); }
@media (max-width: 560px) {
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .social-card { padding: 1.4rem .8rem 1.2rem; }
  .social-card__avatar { width: 58px; height: 58px; font-size: 1.2rem; }
  .social-card__name { font-size: .86rem; }
  .social-card__link { width: 34px; height: 34px; }
  .social-notice { flex-direction: column; gap: .6rem; padding: 1.1rem 1.2rem; }
}

@media (max-width: 760px) {
  .page-hero {
    background-image:
      linear-gradient(180deg, rgba(6, 46, 36, .98) 0%, rgba(6, 46, 36, .9) 56%, rgba(6, 46, 36, .66) 100%),
      radial-gradient(circle at 72% 42%, rgba(232, 213, 162, .18), transparent 34%),
      image-set(
        url('../assets/images/madani-markaz-dome.webp') type('image/webp'),
        url('../assets/images/madani-markaz-dome.jpg') type('image/jpeg')
      );
    background-position: center, center, calc(100% + 3.5rem) top;
    background-size: auto, auto, 430px auto;
  }
  .contact-hero { min-height: 0; }
  .contact-overview { padding-bottom: 3.25rem; }
  .contact-facts-panel { margin-top: -1.6rem !important; padding: .55rem !important; }
  .contact-facts-panel .contact-fact { padding: 1rem; }
  .contact-facts-panel .contact-fact::before { display: none; }
  .contact-form-shell { padding: 1rem; border-radius: 18px; }
  .contact-form-shell .contact-form { padding: 1rem; }
  .centers-directory__intro { grid-template-columns: 1fr; text-align: center; }
  .centers-directory .container { width: min(100% - 2.4rem, 1320px); }
  .centers-directory__icon { margin-inline: auto; }
  .centers-directory__intro .eyebrow { justify-content: center; }
  .centers-directory .center-card__band { min-height: 228px; padding: 1.45rem 1.25rem; }
  .centers-directory .center-card__list { padding-inline: 1.25rem; }
  .centers-directory .center-card__actions { padding: 1.05rem 1.25rem 1.25rem; }
}
