/* ==========================================================================
   Majlis Ash-Shura — main stylesheet
   Layout modeled on cair-ny.org; Majlis Ash-Shura teal + gold branding.
   ========================================================================== */

:root {
  /* Brand primitives (from the official logo) */
  --teal-950: #0f2e2c;
  --teal-900: #163f3c;
  --teal-800: #1f5551;
  --teal-700: #2b6c67;
  --teal-100: #e3efed;
  --gold-500: #c6aa6a;
  --gold-400: #d6be86;
  --gold-700: #85692c;
  --grey-50: #f5f5f5;
  --grey-200: #e2e2e2;
  --ink-900: #222222;
  --ink-600: #555b5a;
  --white: #ffffff;

  /* Semantic tokens */
  --color-bg: var(--grey-50);
  --color-text: var(--ink-900);
  --color-muted: var(--ink-600);
  --color-heading: var(--teal-900);
  --color-header: var(--teal-800);
  --color-accent: var(--gold-500);
  --color-on-accent: var(--teal-950);
  --color-focus: #e0a526;

  --font: "Raleway", sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif; /* cair-ny.org sign-up form */

  --container: 1360px;
  --gutter: clamp(16px, 2.5vw, 36px);
  --header-h: 110px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 200ms;

  --z-header: 100;
  --z-tab: 90;
  --z-drawer: 200;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
html, body { overflow-x: clip; } /* off-screen reveal offsets must never cause sideways scroll */
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  font-variant-numeric: lining-nums; /* Raleway defaults to old-style figures */
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); }
a:hover { color: var(--teal-900); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--color-heading); line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--white); color: var(--teal-900);
  padding: 12px 20px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px;
  padding: .55em 1.5em;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-on-accent);
  font-family: var(--font); font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
  touch-action: manipulation;
}
.btn:hover { background: var(--gold-400); color: var(--color-on-accent); box-shadow: 0 4px 14px rgba(198, 170, 106, .45); }
.btn--teal { background: var(--teal-700); color: var(--white); }
.btn--teal:hover { background: var(--teal-900); color: var(--white); box-shadow: none; }
.btn--lg { font-size: 1rem; padding: .8em 2.2em; min-height: 52px; box-shadow: 0 3px 8px rgba(0, 0, 0, .15); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--white); cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.icon-btn--dark { color: var(--teal-900); }
.icon-btn--dark:hover { background: var(--teal-100); }

/* ---------- Header ---------- */
.site-header {
  position: relative; z-index: var(--z-header);
  background: var(--color-header);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.site-logo { flex: none; }
.site-logo img { height: 56px; width: auto; }

.primary-nav { margin-left: auto; }
.primary-nav > ul { display: flex; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav > ul > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 12px 9px;
  white-space: nowrap;
  color: var(--white);
  font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li:focus-within > a,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a { color: var(--gold-400); }
.primary-nav .menu-item-has-children > a::after {
  content: ""; width: 6px; height: 6px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.primary-nav .sub-menu {
  position: absolute; top: 100%; left: 0;
  min-width: 260px;
  list-style: none; margin: 0; padding: 10px 0;
  background: var(--white);
  border-top: 3px solid var(--gold-500);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .15);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.primary-nav .sub-menu a {
  display: block; padding: 8px 20px;
  color: var(--teal-900);
  font-size: .85rem; font-weight: 700; text-transform: uppercase;
  text-decoration: none;
}
.primary-nav .sub-menu a:hover, .primary-nav .sub-menu a:focus-visible { color: var(--gold-700); background: var(--grey-50); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { font-size: .85rem; padding-inline: 1.1em; white-space: nowrap; }
.header-actions button.btn[data-search-toggle] { display: none; } /* the magnifier icon opens search */
.menu-toggle { display: none; }

/* Search panel */
.search-panel { background: var(--teal-900); padding: 20px 0; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; max-width: 720px; margin-inline: auto; }
.search-form label { flex: 1; }
.search-form input[type="search"] {
  width: 100%; min-height: 48px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  font: inherit; background: var(--white);
}
.search-form input[type="search"]:focus { border-color: var(--gold-500); outline: none; }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); display: none; }
.mobile-drawer.is-open { display: block; }
.mobile-drawer__scrim { position: absolute; inset: 0; background: rgba(15, 46, 44, .6); }
.mobile-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--white);
  padding: 20px 24px 32px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
  animation: drawer-in 240ms var(--ease);
}
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer__head img { height: 40px; width: auto; }
.mobile-drawer nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-drawer nav a {
  display: block; padding: 12px 4px; border-bottom: 1px solid var(--grey-200);
  color: var(--teal-900); font-weight: 700; text-transform: uppercase; font-size: .95rem; text-decoration: none;
}
.mobile-drawer nav .sub-menu a { padding-left: 20px; font-weight: 600; text-transform: none; color: var(--ink-600); }
.mobile-drawer .btn { width: 100%; }
body.drawer-open { overflow: hidden; }

/* Floating donate tab */
.donate-tab {
  position: fixed; left: 0; top: 28%; z-index: var(--z-tab);
  writing-mode: vertical-rl; transform: rotate(180deg);
  padding: 16px 9px;
  background: var(--color-accent); color: var(--color-on-accent);
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px 0 0 6px;
  box-shadow: var(--shadow-sm);
}
.donate-tab:hover { background: var(--gold-400); color: var(--color-on-accent); }

/* ---------- Section headings ---------- */
.section-title {
  text-align: center;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 700;
  margin-bottom: clamp(24px, 3vw, 40px);
}

/* ---------- Hero slider ---------- */
.hero { padding-block: clamp(16px, 2.5vw, 36px) clamp(48px, 7vw, 100px); }
.carousel { position: relative; background: var(--white); overflow: hidden; }
.carousel__track { display: grid; }
.carousel__slide {
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden;
  transition: opacity 600ms var(--ease), visibility 0s linear 600ms;
}
.carousel__slide.is-active { opacity: 1; visibility: visible; transition: opacity 600ms var(--ease), visibility 0s; }

.slide {
  position: relative;
  min-height: clamp(360px, 38vw, 540px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: clamp(32px, 4vw, 56px) clamp(56px, 10vw, 160px) clamp(56px, 5vw, 64px);
  overflow: hidden;
  isolation: isolate;
}
/* Emblem motifs in opposite corners, like the reference flyers */
.slide::before, .slide::after {
  content: ""; position: absolute; z-index: -1;
  width: clamp(140px, 17vw, 240px); aspect-ratio: 1;
  background: url("../img/emblem.png") center / contain no-repeat;
  opacity: .35;
}
.slide::before { left: calc(clamp(140px, 17vw, 240px) * -0.45); bottom: calc(clamp(140px, 17vw, 240px) * -0.2); }
.slide::after { right: calc(clamp(140px, 17vw, 240px) * -0.45); top: calc(clamp(140px, 17vw, 240px) * -0.15); }
.slide__logo { height: clamp(40px, 4.5vw, 60px); width: auto; margin-bottom: clamp(14px, 2vw, 24px); }
.slide__title {
  margin: 0 0 .35em;
  font-size: clamp(1.8rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--teal-800);
  text-wrap: balance;
}
.slide__title em { font-style: normal; color: var(--gold-700); }
.slide__text {
  max-width: 34ch;
  margin: 0 auto 1.2em;
  font-size: clamp(1.05rem, 1.8vw, 1.6rem);
  font-weight: 700; line-height: 1.25;
  text-transform: uppercase;
  color: var(--ink-900);
}
.slide--image { padding: 0; }
.slide--image::before, .slide--image::after { display: none; }
.slide--image a, .slide--image img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide--image img { object-fit: contain; }

.carousel__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: grid; place-items: center;
  width: 44px; height: 60px;
  border: 0; background: rgba(0, 0, 0, .12); color: var(--white);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.carousel__arrow:hover { background: rgba(0, 0, 0, .35); }
.carousel__arrow .icon { width: 26px; height: 26px; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__controls {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.carousel__dots { display: flex; list-style: none; margin: 0; padding: 0; }
.carousel__dot { width: 24px; height: 24px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.carousel__dot::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(22, 63, 60, .25); transition: background-color var(--dur) var(--ease); }
.carousel__dot[aria-current="true"]::before { background: var(--teal-700); }
.carousel__pause {
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: var(--teal-800); cursor: pointer;
}
.carousel__pause .icon { width: 14px; height: 14px; }
.carousel__pause:hover { background: var(--teal-100); }

/* ---------- Mission ---------- */
.mission { padding-bottom: clamp(56px, 7vw, 96px); }
.video-hero + .mission { padding-top: clamp(48px, 7vw, 100px); }
/* Photo and text box share one row and stretch to the same height, so their top and bottom edges line up. */
.mission__grid { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.mission__photo { aspect-ratio: 3 / 2; height: 100%; overflow: hidden; background: var(--grey-200); }
.mission__photo img { width: 100%; height: 100%; object-fit: cover; }
.mission__box {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--white);
  padding: clamp(28px, 4.5vw, 64px);
}
.mission__box p {
  margin: 0;
  color: var(--teal-900);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.5;
}
.mission__cta { text-align: center; margin-top: clamp(28px, 3.5vw, 40px); }

/* ---------- Latest news slider ---------- */
.news { padding-block: clamp(56px, 7vw, 104px) clamp(64px, 8vw, 120px); }

/* ---------- Our Services slider ---------- */
.services {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 7vw, 100px);
  background: linear-gradient(180deg, #f8f4ea, #f3ecdb);
}
.services .section-title { margin-bottom: clamp(28px, 4vw, 44px); }
.services__marquee .marquee__track { gap: 20px; padding-block: 10px 18px; animation-name: marquee-services; }
@keyframes marquee-services { to { transform: translateX(calc(-50% - 10px)); } }
.services + .involved { padding-top: clamp(56px, 7vw, 96px); }
.services__marquee .marquee__track > li { margin: 0; }
.service-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: 250px; height: 100%; padding: 26px 22px 22px; text-align: center; text-decoration: none;
  border-radius: 28px 9px 28px 9px; background: var(--white); color: var(--teal-900);
  border: 1px solid rgba(198, 170, 106, .45);
  box-shadow: 0 12px 28px rgba(15, 46, 44, .08);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.service-card::before { /* gold sweep along the top edge on hover */
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; z-index: 1;
  background: linear-gradient(90deg, var(--gold-500), #ecdcb2, var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease);
}
.service-card:hover, .service-card:focus-visible {
  transform: translateY(-6px); border-color: var(--gold-500);
  box-shadow: 0 22px 40px rgba(15, 46, 44, .16); color: var(--teal-900);
}
.service-card:hover::before, .service-card:focus-visible::before { transform: scaleX(1); }
.service-card__logo { --logo-h: 104px; display: flex; align-items: center; justify-content: center; width: 100%; height: var(--logo-h); flex: none; }
.service-card__logo img { display: block; max-width: 100%; max-height: var(--logo-h); width: auto; height: auto; margin: 0; object-fit: contain; transition: transform 500ms var(--ease); }
.service-card:hover .service-card__logo img { transform: scale(1.06); }
.service-card__name { font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.service-card__more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-700);
}
.service-card__more .icon { width: 15px; height: 15px; transition: transform var(--dur) var(--ease); }
.service-card:hover .service-card__more .icon { transform: translateX(4px); }
@media (max-width: 640px) {
  .service-card { width: 210px; padding: 22px 18px 18px; }
  .service-card__logo { --logo-h: 88px; }
}
.news__head { position: relative; }
.news__nav { position: absolute; right: 0; bottom: -18px; display: flex; gap: 2px; }
.news__nav button {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 0; background: transparent; color: var(--ink-900); cursor: pointer; border-radius: 50%;
}
.news__nav button:hover { background: var(--grey-200); }
.news__nav button:disabled { color: #b5b5b5; cursor: default; background: transparent; }
.news__nav .icon { width: 20px; height: 20px; }
.news-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 28px) / 3);
  gap: 28px;
  list-style: none; margin: 0; padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.news-track::-webkit-scrollbar { display: none; }
.news-track > li { scroll-snap-align: start; }
.news-card { position: relative; }
.news-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--grey-200); margin-bottom: 14px; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.news-card:hover .news-card__media img { transform: scale(1.04); }
.news-card__title { font-size: .95rem; font-weight: 400; line-height: 1.45; color: var(--ink-900); margin: 0 0 10px; }
.news-card__title a { color: inherit; text-decoration: none; }
.news-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card:hover .news-card__title { color: var(--teal-700); }
.news-card__more { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-900); }
.news-card__more .icon { width: 16px; height: 16px; }
.news-card__date { display: block; margin-top: 6px; font-size: .85rem; color: var(--color-muted); }

/* ---------- Get involved ---------- */
.involved { padding-bottom: clamp(32px, 4vw, 56px); }
.involved-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.involved-item { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; }
.involved-item .icon { width: clamp(72px, 7vw, 100px); height: clamp(72px, 7vw, 100px); color: var(--teal-800); margin-bottom: 14px; transition: transform var(--dur) var(--ease); }
.involved-item:hover .icon { transform: translateY(-4px); }
.involved-item h3 { margin: 0; font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; }
.involved-item h3 a { color: var(--teal-800); text-decoration: none; border-bottom: 2px solid var(--grey-200); transition: border-color var(--dur) var(--ease); }
.involved-item h3 a::after { content: ""; position: absolute; inset: 0; }
.involved-item:hover h3 a { border-color: var(--gold-500); }

/* ---------- Member network slider ---------- */
.members {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(64px, 8vw, 112px);
  background:
    radial-gradient(ellipse 60% 55% at 15% 0%, rgba(198, 170, 106, .22), transparent 70%),
    radial-gradient(ellipse 55% 60% at 95% 100%, rgba(43, 108, 103, .75), transparent 70%),
    var(--teal-900);
}
/* Faint eight-point-star lattice */
.members::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23d6be86' stroke-width='1.2'%3E%3Crect x='22' y='22' width='28' height='28'/%3E%3Crect x='22' y='22' width='28' height='28' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.members .section-title { color: var(--white); margin-bottom: 12px; }
.members__intro { text-align: center; color: rgba(255, 255, 255, .85); max-width: 60ch; margin: 0 auto clamp(32px, 4.5vw, 52px); font-size: 1.1rem; }
.members__rows { display: grid; gap: 20px; }
.members__rows .marquee--reverse .marquee__track { animation-delay: -9s; } /* staggers the two rows */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track {
  display: flex; gap: 16px; width: max-content;
  list-style: none; margin: 0; padding: 4px 0;
  animation: marquee var(--marquee-dur, 60s) linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

/* Card: deep-teal tile with a gold gradient border, leaf-shaped corners and an emblem watermark */
.member-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 14px;
  height: 100%; min-width: 250px; max-width: 380px;
  padding: 14px 24px 14px 12px;
  border: 1.5px solid transparent;
  border-radius: 26px 8px 26px 8px;
  background:
    linear-gradient(150deg, #24635e 0%, #1a4a46 55%, #143b38 100%) padding-box,
    linear-gradient(135deg, rgba(214, 190, 134, .95), rgba(214, 190, 134, .12) 40%, rgba(255, 255, 255, .06) 60%, rgba(214, 190, 134, .7)) border-box;
  color: var(--white); text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform 450ms var(--ease-out-back), box-shadow 450ms var(--ease), border-radius 450ms var(--ease);
}
/* Emblem watermark peeking from the corner */
.member-card::after {
  content: ""; position: absolute; right: -22px; bottom: -26px; z-index: -1;
  width: 86px; aspect-ratio: 1;
  background: url("../img/emblem.png") center / contain no-repeat;
  opacity: .1; transform: rotate(-12deg);
  transition: transform 900ms var(--ease), opacity 450ms var(--ease);
}
/* Light sweep */
.member-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%);
  transform: translateX(-110%);
}
.member-card:hover { color: var(--white); transform: translateY(-5px); border-radius: 8px 26px 8px 26px; box-shadow: 0 18px 36px rgba(0, 0, 0, .28), 0 0 0 1px rgba(214, 190, 134, .35), 0 10px 40px rgba(198, 170, 106, .22); }
.member-card:hover::before { transform: translateX(110%); transition: transform 900ms var(--ease); }
.member-card:hover::after { transform: rotate(33deg) scale(1.15); opacity: .18; }

/* Badge: gold eight-point star (two overlapping squares, like the emblem) */
.member-card__badge {
  position: relative; flex: none;
  display: grid; place-items: center;
  width: 54px; height: 54px;
}
.member-card__badge::before,
.member-card__badge::after {
  content: ""; position: absolute; inset: 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e6d3a3 0%, var(--gold-500) 45%, #9c7d3c 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
  transition: transform 700ms var(--ease-out-back);
}
.member-card__badge::after { transform: rotate(45deg); }
.member-card:hover .member-card__badge::before { transform: rotate(45deg); }
.member-card:hover .member-card__badge::after { transform: rotate(90deg); }
.member-card__initials { position: relative; z-index: 1; color: var(--teal-950); font-weight: 800; font-size: .88rem; letter-spacing: .03em; }
.member-card__badge--logo img {
  position: relative; z-index: 1;
  width: 40px; height: 40px; padding: 3px;
  border-radius: 50%; background: var(--white); object-fit: contain;
}

.member-card__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; position: relative; z-index: 2; }
.member-card__name { font-weight: 700; font-size: .98rem; line-height: 1.25; letter-spacing: .005em; }
.member-card__loc { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); }
.member-card__go { margin-left: auto; padding-left: 6px; color: var(--gold-400); transition: transform 300ms var(--ease); }
.member-card__go .icon { width: 18px; height: 18px; }
.member-card:hover .member-card__go { transform: translateX(4px); }

.members__footer { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Member directory page ---------- */
.directory__intro { margin-bottom: 32px; }
.directory__search {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto 8px; padding: 0 18px;
  background: var(--white); border: 2px solid var(--grey-200); border-radius: var(--radius-pill);
  color: var(--color-muted);
}
.directory__search:focus-within { border-color: var(--teal-700); }
.directory__search input { flex: 1; min-height: 50px; border: 0; background: transparent; font: inherit; font-size: 1rem; outline: none; }
.directory__count { text-align: center; color: var(--color-muted); font-size: .9rem; margin: 0 0 24px; }
.directory__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.directory__grid .member-card { max-width: none; min-width: 0; }
/* Light version of the card for the white directory page */
.directory .member-card {
  background:
    linear-gradient(150deg, #ffffff 0%, #faf7ef 100%) padding-box,
    linear-gradient(135deg, var(--gold-500), rgba(43, 108, 103, .14) 45%, rgba(43, 108, 103, .14) 60%, var(--gold-500)) border-box;
  color: var(--teal-900);
  box-shadow: 0 6px 18px rgba(22, 63, 60, .08);
}
.directory .member-card:hover { color: var(--teal-900); box-shadow: 0 16px 32px rgba(22, 63, 60, .14), 0 8px 28px rgba(198, 170, 106, .22); }
.directory .member-card::after { opacity: .12; }
.directory .member-card::before { background: linear-gradient(105deg, transparent 35%, rgba(198, 170, 106, .18) 50%, transparent 65%); }
.directory .member-card__loc { color: var(--gold-700); }
.member-card__addr { position: relative; z-index: 2; font-size: .82rem; line-height: 1.35; color: var(--color-muted); text-decoration: none; }
.member-card__addr:hover { color: var(--teal-700); text-decoration: underline; }
.member-card__web { position: relative; z-index: 2; margin-top: 2px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-700); }
.directory .member-card { align-items: flex-start; }
.directory .member-card__go { color: var(--gold-700); }
.directory__empty { text-align: center; color: var(--color-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--teal-900); }
.footer-main {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1.4fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer-col { text-align: center; font-size: .9rem; }
.site-footer h2 { font-size: 1.55rem; font-weight: 600; margin-bottom: 18px; }
.footer-col p { margin: 0 0 14px; }
.footer-col a { color: var(--teal-900); }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-list a { color: var(--ink-900); text-decoration: none; border-bottom: 1px solid currentColor; }
.footer-list a:hover { color: var(--teal-700); }
.footer-social { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.footer-social a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink-900); color: var(--white);
  transition: background-color var(--dur) var(--ease);
}
.footer-social a:hover { background: var(--teal-700); }
.footer-social .icon { width: 16px; height: 16px; }

.newsletter { text-align: left; font-family: var(--font-system); }
.newsletter h2, .newsletter .btn { font-family: var(--font-system); }
.newsletter__kicker { text-align: center; font-size: 1.15rem !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .02em; margin-bottom: 16px !important; color: var(--ink-900) !important; }
.newsletter__title { font-size: 1.45rem; font-weight: 700; color: var(--ink-900); margin: 0 0 16px; }
.newsletter__sub { font-weight: 700; color: var(--ink-900); margin: 0 0 12px; font-size: .95rem; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.field label { font-size: .82rem; color: var(--ink-900); }
.field input {
  width: 100%; min-width: 0; min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #cfd4da; border-radius: 4px;
  font: inherit; font-size: 1rem; color: var(--ink-900);
}
.field input:focus { border-color: var(--teal-700); outline: none; box-shadow: 0 0 0 3px rgba(43, 108, 103, .2); }
.newsletter .btn { display: flex; margin-left: auto; border-radius: 4px; background: var(--teal-700); color: var(--white); font-size: .85rem; }
.newsletter .btn:hover { background: var(--teal-900); box-shadow: none; }
.form-note { font-size: .8rem !important; color: var(--color-muted); margin: 10px 0 0 !important; }
.form-status { padding: 10px 12px; border-radius: 4px; font-weight: 600; font-size: .9rem; }
.form-status--success { background: var(--teal-100); color: var(--teal-900); }
.form-status--error { background: #fdecea; color: #8a1c13; }

.footer-bottom { text-align: center; padding: 24px var(--gutter) 32px; font-size: .82rem; text-transform: uppercase; letter-spacing: .02em; color: var(--teal-900); }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

/* ---------- Inner pages ---------- */
.page-hero { background: var(--color-header); color: var(--white); padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; margin: 0; }
.page-hero p { color: rgba(255, 255, 255, .85); margin: 10px 0 0; }

/* ---------- Page title ribbon ----------
   Gold ribbon with a forked (swallowtail) end, an eight-point star like the
   emblem, and a darker fold underneath its left edge for depth. */
.page-hero { position: relative; overflow: hidden; }
.page-hero::after { /* faint emblem in the banner corner */
  content: ""; position: absolute; right: -60px; top: 50%; width: 260px; aspect-ratio: 1;
  transform: translateY(-50%) rotate(-12deg);
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .08; pointer-events: none;
}
/* Usable anywhere:
   <h1 class="page-ribbon page-ribbon--center"><span class="page-ribbon__text"><span class="page-ribbon__star"></span>Title</span></h1>
   or give an Elementor Heading widget the CSS class "majlis-ribbon" (see below). */
.page-ribbon {
  position: relative; z-index: 1;
  display: inline-block; max-width: 100%;
  margin: .9em 0 .9em;
  color: var(--teal-950);
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.15;
  text-transform: uppercase; letter-spacing: .03em; text-align: left;
  filter: drop-shadow(0 10px 16px rgba(15, 46, 44, .22));
}
.page-hero .page-ribbon {
  margin: 0;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .28));
}
.page-ribbon--center { display: table; margin-inline: auto; }
.page-ribbon__text {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: .55em;
  padding: .42em 1.9em .42em 1.05em;
  background: linear-gradient(120deg, #ecdcb2 0%, var(--gold-500) 38%, #b8975a 72%, #d9c290 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%);
}
/* Fine inner rule for a stitched-ribbon look */
.page-ribbon__text::before {
  content: ""; position: absolute; inset: 5px calc(.7em + 6px) 5px 5px;
  border-top: 1px dashed rgba(15, 46, 44, .25); border-bottom: 1px dashed rgba(15, 46, 44, .25);
  pointer-events: none;
}
/* Light sweep */
.page-ribbon__text::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%);
  transform: translateX(-110%);
  pointer-events: none;
}
/* Fold under the left end */
.page-ribbon::before {
  content: ""; position: absolute; left: 0; top: 100%;
  width: 14px; height: 10px;
  background: #6f5726;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
/* Eight-point star (two overlapping squares) */
.page-ribbon__star { position: relative; flex: none; width: .62em; height: .62em; }
.page-ribbon__star::before,
.page-ribbon__star::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 2px; background: var(--teal-800);
}
.page-ribbon__star::after { transform: rotate(45deg); }
.page-hero p { position: relative; z-index: 1; margin-top: 16px; }

/* Unrolls from the left, then the light sweeps across and the star turns */
.js .page-ribbon { animation: ribbon-unroll 800ms var(--ease) 200ms both; }
.js .page-ribbon__text::after { animation: ribbon-shine 1.1s var(--ease) 900ms both; }
.js .page-ribbon__star { animation: ribbon-star 900ms var(--ease-out-back) 700ms both; }
@keyframes ribbon-unroll { from { clip-path: inset(0 100% -20px 0); } to { clip-path: inset(-20px -40px -40px -20px); } }
@keyframes ribbon-shine { from { transform: translateX(-110%); } to { transform: translateX(110%); } }
@keyframes ribbon-star { from { transform: rotate(-135deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.page-ribbon:hover .page-ribbon__star { transform: rotate(45deg); transition: transform 500ms var(--ease-out-back); }

/* Elementor Heading widget with CSS class "majlis-ribbon" (Advanced → CSS Classes) */
.majlis-ribbon .elementor-heading-title {
  position: relative; display: inline-block; max-width: 100%;
  padding: .42em 1.9em .42em 1.75em;
  background: linear-gradient(120deg, #ecdcb2 0%, var(--gold-500) 38%, #b8975a 72%, #d9c290 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - .7em) 50%, 100% 100%, 0 100%);
  color: var(--teal-950) !important; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
}
.majlis-ribbon .elementor-heading-title::before { /* star */
  content: ""; position: absolute; left: .7em; top: 50%; width: .5em; height: .5em; margin-top: -.25em;
  background: var(--teal-800); border-radius: 2px; transform: rotate(45deg);
  box-shadow: 0 0 0 0 var(--teal-800);
}
.majlis-ribbon .elementor-widget-container { filter: drop-shadow(0 10px 16px rgba(15, 46, 44, .22)); }

@media (max-width: 640px) {
  .page-ribbon__text { padding: .45em 1.6em .45em 1em; }
}
.page-body { padding-block: clamp(40px, 6vw, 80px); }

/* =========================================================================
   Designed landing pages (lp-*) — e.g. Halal Integrity Certification.
   Used on the "Full Width (no title)" template; matches the About page look.
   ========================================================================= */
.lp-hero { padding-block: clamp(28px, 4vw, 48px) clamp(40px, 5vw, 64px); }
.lp-hero .page-ribbon { margin-bottom: clamp(28px, 4vw, 44px); }
.lp-hero__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.lp-badge {
  position: relative; width: 112px; aspect-ratio: 1; margin: 0 0 18px 16px; /* star points reach ~16px past the box */
  display: grid; place-items: center;
}
.lp-badge::before { /* gold eight-point star behind the logo */
  content: ""; position: absolute; inset: 6px; border-radius: 14px;
  background: linear-gradient(135deg, #ecdcb2, var(--gold-500) 50%, #a8873f);
  box-shadow: 0 10px 22px rgba(15, 46, 44, .18);
}
.lp-badge::after {
  content: ""; position: absolute; inset: 6px; border-radius: 14px; transform: rotate(45deg);
  background: linear-gradient(135deg, #ecdcb2, var(--gold-500) 50%, #a8873f); z-index: 0;
}
.lp-badge img { position: relative; z-index: 1; width: 70px; height: 70px; object-fit: contain; border-radius: 50%; background: var(--white); padding: 6px; box-shadow: 0 0 0 3px var(--white); }
.lp-lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.5; color: var(--teal-900); margin-bottom: 18px; }
.lp-checks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 10px; }
.lp-checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--ink-900); }
.lp-checks .icon {
  flex: none; width: 26px; height: 26px; padding: 5px; border-radius: 50%;
  background: var(--teal-800); color: var(--gold-400);
}
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.lp-video { position: relative; }
.lp-video::before { /* offset gold frame */
  content: ""; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
  border: 2px solid var(--gold-500); border-radius: 26px 8px 26px 8px;
}
.lp-video .embed-16x9 { margin: 0; border-radius: 26px 8px 26px 8px; box-shadow: 0 20px 44px rgba(15, 46, 44, .25); }
.lp-caption { margin: 30px 0 0; font-size: .92rem; color: var(--color-muted); }

.lp-section { padding-block: clamp(48px, 6vw, 88px); }
.lp-section--tight { padding-block: clamp(20px, 3vw, 36px); }
.lp-section--sand { background: #f8f4ea; }
.lp-section--last { padding-bottom: clamp(64px, 8vw, 110px); }
.lp-stats { margin: 0; }
.lp-stats li { padding: 26px 28px; }
.lp-stats strong { font-size: clamp(2rem, 3.4vw, 2.6rem); }

.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-700);
}
.lp-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.lp-eyebrow--light { color: var(--gold-400); }
.lp-section h2, .lp-band h2, .lp-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: .45em; }
.lp-head { max-width: 720px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.lp-head .lp-eyebrow { justify-content: center; }
.lp-head p:last-child { color: var(--color-muted); }

.lp-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-highlight {
  margin-top: 20px; padding: 18px 22px;
  border-left: 4px solid var(--gold-500); border-radius: 0 14px 14px 0;
  background: #f8f4ea; font-weight: 600; color: var(--teal-900);
}
.lp-photo { position: relative; margin: 0; }
.lp-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 26px 8px 26px 8px; box-shadow: 0 20px 44px rgba(15, 46, 44, .2); }
.lp-photo::before { /* emblem peeking from behind the photo */
  content: ""; position: absolute; right: -34px; top: -34px; width: 120px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .5;
}
.lp-photo figcaption {
  position: absolute; left: 18px; bottom: 18px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(15, 46, 44, .82); color: var(--white); font-size: .8rem; font-weight: 700;
  backdrop-filter: blur(6px);
}

.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0; padding: 0; }
.lp-feature {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 30px 26px 28px; margin: 0;
  border: 1.5px solid transparent; border-radius: 26px 8px 26px 8px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-500), rgba(43, 108, 103, .15) 45%, rgba(43, 108, 103, .15) 60%, var(--gold-500)) border-box;
  box-shadow: 0 8px 24px rgba(15, 46, 44, .07);
  transition: transform 400ms var(--ease-out-back), box-shadow 400ms var(--ease), border-radius 400ms var(--ease);
}
.lp-feature::after {
  content: ""; position: absolute; right: -26px; bottom: -30px; width: 110px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .1;
  transition: transform 900ms var(--ease);
}
.lp-feature:hover { transform: translateY(-6px); border-radius: 8px 26px 8px 26px; box-shadow: 0 18px 36px rgba(15, 46, 44, .13), 0 8px 28px rgba(198, 170, 106, .2); }
.lp-feature:hover::after { transform: rotate(40deg) scale(1.15); }
.lp-feature__icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 18px;
  border-radius: 16px 6px 16px 6px; background: var(--teal-800); color: var(--gold-400);
}
.lp-feature__icon .icon { width: 28px; height: 28px; }
.lp-feature h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: .4em; }
.lp-feature p { margin: 0; color: var(--color-muted); font-size: .97rem; }

.lp-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse 60% 70% at 10% 0%, rgba(198, 170, 106, .22), transparent 70%),
    var(--teal-900);
  color: rgba(255, 255, 255, .88);
}
.lp-band::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 380px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .08;
}
.lp-band__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-quote {
  position: relative; margin: 0; padding: 0 0 0 0;
  border: 0; color: var(--white);
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; line-height: 1.2;
}
.lp-quote::before {
  content: "\201C"; display: block; height: .55em; margin-bottom: .1em;
  font-size: 3.2em; line-height: 1; color: var(--gold-500);
}
.lp-band__text p:last-child { margin-bottom: 0; }

.lp-steps {
  counter-reset: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  list-style: none; margin: 0; padding: 0; position: relative;
}
.lp-steps::before { /* connecting line behind the numbers */
  content: ""; position: absolute; left: 12%; right: 12%; top: 34px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--gold-500) 0 10px, transparent 10px 18px);
}
.lp-step { position: relative; margin: 0; text-align: center; padding: 0 8px; }
.lp-step__num {
  position: relative; display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 18px;
  color: var(--teal-950); font-size: 1.5rem; font-weight: 800; z-index: 0;
}
.lp-step__num::before, .lp-step__num::after { /* gold eight-point star */
  content: ""; position: absolute; inset: 8px; z-index: -1; border-radius: 9px;
  background: linear-gradient(135deg, #ecdcb2, var(--gold-500) 50%, #a8873f);
  box-shadow: 0 6px 14px rgba(15, 46, 44, .18);
  transition: transform 700ms var(--ease-out-back);
}
.lp-step__num::after { transform: rotate(45deg); }
.lp-step:hover .lp-step__num::before { transform: rotate(45deg); }
.lp-step:hover .lp-step__num::after { transform: rotate(90deg); }
.lp-step h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: .35em; }
.lp-step p { margin: 0; color: var(--color-muted); font-size: .97rem; }

.lp-why {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 30px 10px 30px 10px;
  background: linear-gradient(135deg, #fbf7ec, #f3ead2);
  border: 1px solid rgba(198, 170, 106, .5);
}
.lp-why__icon {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--teal-800); color: var(--gold-400); box-shadow: 0 0 0 8px rgba(43, 108, 103, .12);
}
.lp-why__icon .icon { width: 42px; height: 42px; }
.lp-why p:last-child { margin: 0; color: var(--ink-600); font-size: 1.05rem; }

.lp-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(300px, 1fr) minmax(0, 470px); gap: 28px 40px; align-items: center;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 30px 10px 30px 10px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950));
  color: rgba(255, 255, 255, .88);
  box-shadow: 0 24px 50px rgba(15, 46, 44, .25);
}
.lp-cta::after {
  content: ""; position: absolute; right: -60px; top: -70px; width: 260px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .12;
}
.lp-cta h2 { color: var(--white); }
.lp-cta p { margin: 0; }
.lp-cta .lp-actions { justify-content: flex-end; }

/* ---------- Imam Training Program page (itp-*) ---------- */
.itp-status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 16px;
  border-radius: var(--radius-pill); background: #f3ead2; border: 1px solid rgba(198, 170, 106, .6);
  color: var(--gold-700); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.itp-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 0 rgba(198, 170, 106, .7); animation: status-pulse 2s ease-out infinite; }
@keyframes status-pulse { 0% { box-shadow: 0 0 0 0 rgba(198, 170, 106, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(198, 170, 106, 0); } }
.itp-logo { display: block; width: max-content; margin-bottom: 20px; padding: 12px 18px; border-radius: 18px 6px 18px 6px; background: #fff; box-shadow: 0 10px 24px rgba(15, 46, 44, .1); }
.itp-logo img { display: block; width: auto; height: 84px; max-width: 100%; margin: 0; }

/* Certificate preview */
.itp-cert-wrap { position: relative; }
.itp-cert {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(36px, 5vw, 56px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 40px);
  text-align: center; color: var(--teal-900);
  background: #fffdf7;
  border: 10px solid transparent; border-radius: 14px;
  background:
    linear-gradient(#fffdf7, #fffdf7) padding-box,
    linear-gradient(135deg, #ecdcb2, var(--gold-500) 30%, #a8873f 50%, var(--gold-500) 70%, #ecdcb2) border-box;
  box-shadow: 0 30px 60px rgba(15, 46, 44, .2), inset 0 0 0 1px rgba(198, 170, 106, .5);
  transform: rotate(-2deg);
  transition: transform 600ms var(--ease-out-back);
}
.itp-cert:hover { transform: rotate(0) scale(1.02); }
.itp-cert::before { /* inner rule */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(198, 170, 106, .6); border-radius: 6px; pointer-events: none;
}
.itp-cert::after { /* faint emblem watermark */
  content: ""; position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; z-index: -1;
  transform: translate(-50%, -50%);
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .07;
}
.itp-cert__seal { /* gold eight-point seal with emblem */
  position: relative; display: block; width: 64px; height: 64px; margin: 0 auto 14px;
}
.itp-cert__seal::before, .itp-cert__seal::after {
  content: ""; position: absolute; inset: 6px; border-radius: 8px;
  background: linear-gradient(135deg, #ecdcb2, var(--gold-500) 50%, #a8873f);
}
.itp-cert__seal::after { transform: rotate(45deg); background: url("../img/emblem.png") center / 60% no-repeat, linear-gradient(135deg, #ecdcb2, var(--gold-500) 50%, #a8873f); }
.itp-cert__org { margin: 0 0 8px; font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); }
.itp-cert__title { margin: 0 0 10px; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; line-height: 1.15; }
.itp-cert__line { max-width: 34ch; margin: 0 auto 26px; font-size: .92rem; color: var(--ink-600); }
.itp-cert__sign { display: flex; justify-content: center; gap: 36px; }
.itp-cert__sign span { width: 110px; border-top: 1.5px solid rgba(22, 63, 60, .35); }
.itp-cert-wrap .lp-caption { margin-top: 26px; text-align: center; }

/* Two pillars joined by a bridge */
.itp-bridge { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; max-width: 980px; margin: 0 auto; }
.itp-pillar {
  padding: 30px 26px; text-align: center;
  border-radius: 26px 8px 26px 8px; background: #fff;
  border: 1px solid rgba(198, 170, 106, .5); box-shadow: 0 10px 28px rgba(15, 46, 44, .08);
}
.itp-pillar .lp-feature__icon { margin: 0 auto 16px; }
.itp-pillar h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: .35em; }
.itp-pillar p { margin: 0; color: var(--color-muted); }
.itp-bridge__link { position: relative; height: 4px; background: repeating-linear-gradient(90deg, var(--gold-500) 0 12px, transparent 12px 20px); }
.itp-bridge__link span { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; transform: translate(-50%, -50%); }
.itp-bridge__link span::before, .itp-bridge__link span::after {
  content: ""; position: absolute; inset: 3px; border-radius: 4px; background: var(--teal-800);
}
.itp-bridge__link span::after { transform: rotate(45deg); }
.js .itp-bridge__link span { animation: emblem-turn 14s linear infinite; }

/* 4-up variants of the shared feature and step lists */
.lp-features--4 { grid-template-columns: repeat(4, 1fr); }
.lp-steps--4 { grid-template-columns: repeat(4, 1fr); }
.lp-steps--4::before { left: 10%; right: 10%; }

@media (max-width: 1100px) {
  .lp-features--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .itp-cert { transform: none; }
  .itp-bridge { grid-template-columns: 1fr; grid-template-rows: auto 70px auto; max-width: 520px; }
  .itp-bridge__link { width: 4px; height: 100%; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--gold-500) 0 12px, transparent 12px 20px); }
  .lp-steps--4 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lp-features--4 { grid-template-columns: 1fr; }
  .itp-logo img { height: 72px; }
}

/* ---------- Teacher's Training Program page (ttp-*) ---------- */
/* Tarbiyah diagram: three overlapping circles */
.ttp-venn-wrap { text-align: center; }
.ttp-venn { position: relative; width: min(100%, 420px); aspect-ratio: 1 / .94; margin: 0 auto; }
.ttp-venn__circle {
  position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%;
  display: grid; color: #fff; font-weight: 800; font-size: clamp(.8rem, 1.4vw, .95rem); letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, .6);
  box-shadow: 0 14px 30px rgba(15, 46, 44, .18);
  mix-blend-mode: multiply; /* overlaps darken, so the shared areas show */
  transition: transform 500ms var(--ease-out-back);
}
.ttp-venn { isolation: isolate; }
.ttp-venn__circle span { position: absolute; }
.ttp-venn__circle--a { left: 21%; top: 0; background: #5f9c96; }
.ttp-venn__circle--a span { left: 50%; top: 24%; transform: translateX(-50%); }
.ttp-venn__circle--b { left: 0; bottom: 0; background: #e2cc96; color: var(--teal-950); }
.ttp-venn__circle--b span { left: 22%; bottom: 30%; }
.ttp-venn__circle--c { right: 0; bottom: 0; background: #8fbfb9; color: var(--teal-950); }
.ttp-venn__circle--c span { right: 18%; bottom: 30%; }
.ttp-venn:hover .ttp-venn__circle--a { transform: translateY(-8px); }
.ttp-venn:hover .ttp-venn__circle--b { transform: translate(-8px, 6px); }
.ttp-venn:hover .ttp-venn__circle--c { transform: translate(8px, 6px); }
.ttp-venn__core {
  position: absolute; left: 50%; top: 61%; translate: -50% -50%; z-index: 2; /* "translate", not transform: the pop-in animation uses transform */
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: #fff; color: var(--teal-900); font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 0 0 4px var(--gold-500), 0 10px 24px rgba(15, 46, 44, .25);
}
.js .ttp-venn__circle--a { animation: venn-in-a 900ms var(--ease-out-back) .3s both; }
.js .ttp-venn__circle--b { animation: venn-in-b 900ms var(--ease-out-back) .45s both; }
.js .ttp-venn__circle--c { animation: venn-in-c 900ms var(--ease-out-back) .6s both; }
.js .ttp-venn__core { animation: pop-in 600ms var(--ease-out-back) 1.1s both; }
@keyframes venn-in-a { from { opacity: 0; transform: translateY(-40px) scale(.7); } }
@keyframes venn-in-b { from { opacity: 0; transform: translate(-40px, 30px) scale(.7); } }
@keyframes venn-in-c { from { opacity: 0; transform: translate(40px, 30px) scale(.7); } }
.ttp-venn-wrap .lp-caption { margin-top: 20px; }

.ttp-pillars { display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ttp-pillars li {
  display: flex; align-items: center; gap: 18px; margin: 0; padding: 18px 22px;
  border-radius: 22px 8px 22px 8px; background: #fff;
  border: 1px solid rgba(198, 170, 106, .5); box-shadow: 0 8px 22px rgba(15, 46, 44, .07);
  transition: transform 350ms var(--ease-out-back);
}
.ttp-pillars li:hover { transform: translateX(6px); }
.ttp-pillars .lp-feature__icon { flex: none; margin: 0; }
.ttp-pillars h3 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 800; }
.ttp-pillars p { margin: 0; color: var(--color-muted); }

.ttp-modules { counter-reset: none; }
.ttp-modules__num {
  position: absolute; top: 14px; right: 20px;
  font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(198, 170, 106, .35);
}
.ttp-band__title { color: var(--white); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; }
.ttp-values { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 18px 0 0; padding: 0; }
.ttp-values li {
  margin: 0; padding: 8px 18px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08); border: 1.5px solid var(--gold-500);
  color: var(--gold-400); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem;
}
.ttp-cert { transform: rotate(2deg); }
.lp-band .itp-cert-wrap { max-width: 460px; justify-self: end; width: 100%; }

@media (max-width: 1023px) {
  .lp-band .itp-cert-wrap { justify-self: stretch; margin-inline: auto; }
  .ttp-cert { transform: none; }
}

/* ---------- Program pages: shared pieces (FTP, ITP, TTP, ICP, RAS, KTP) ---------- */
.itp-logo--tall img { height: 110px; }
.itp-logo--wide img { height: 60px; }
.lp-intro { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
.lp-intro .itp-logo { flex: none; margin: 0; }
.lp-intro .lp-lead { margin: 0; }
.lp-intro--stack { flex-direction: column; align-items: flex-start; }

/* Teal panel card */
.lp-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 3.5vw, 34px);
  border-radius: 30px 10px 30px 10px;
  background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(198, 170, 106, .25), transparent 70%), linear-gradient(135deg, var(--teal-800), var(--teal-950));
  color: rgba(255, 255, 255, .9); box-shadow: 0 24px 50px rgba(15, 46, 44, .25);
}
.lp-panel::after {
  content: ""; position: absolute; right: -50px; top: -60px; width: 200px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .1;
}
.lp-panel__text { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 1.08rem; line-height: 1.6; }
.lp-panel__text strong { color: var(--gold-400); }

/* FTP growth chart (illustrative, no data) */
.ftp-growth__chart { width: 100%; height: auto; overflow: visible; }
.ftp-growth__grid line { stroke: rgba(255, 255, 255, .1); stroke-width: 1; stroke-dasharray: 4 6; }
.ftp-growth__spiky { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 5 5; }
.ftp-growth__line { fill: none; stroke: var(--gold-400); stroke-width: 4; stroke-linecap: round; }
.ftp-growth__dot { fill: var(--gold-400); stroke: var(--teal-900); stroke-width: 3; }
.js .ftp-growth__line { stroke-dasharray: 520; animation: draw-line 2.2s var(--ease) .5s both; }
.js .ftp-growth__area { animation: fade-up 1s var(--ease) 1.6s both; }
.js .ftp-growth__dot { animation: pop-in 500ms var(--ease-out-back) 2.4s both; transform-box: fill-box; transform-origin: center; }
@keyframes draw-line { from { stroke-dashoffset: 520; } to { stroke-dashoffset: 0; } }

/* Numbered list cards (teal / gold) */
.lp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1000px; margin: 0 auto; }
.lp-lists--single { grid-template-columns: 1fr; max-width: 640px; }
.lp-lists__col {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 26px 8px 26px 8px; background: var(--teal-800); color: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 40px rgba(15, 46, 44, .18);
}
.lp-lists__col--gold { background: linear-gradient(135deg, #f6ecd2, #ead7a8); color: var(--teal-950); }
.lp-lists__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.2rem; font-weight: 800; color: inherit; }
.lp-lists__title > span {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px 4px 12px 4px;
  background: var(--gold-500); color: var(--teal-950);
}
.lp-lists__title .icon { width: 22px; height: 22px; }
.lp-lists__col--gold .lp-lists__title > span { background: var(--teal-800); color: var(--gold-400); }
.lp-lists__col ol { counter-reset: syl; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-lists__col li {
  counter-increment: syl; display: flex; align-items: center; gap: 14px; margin: 0; padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .2); font-weight: 700; font-size: 1.05rem;
  transition: transform 300ms var(--ease);
}
.lp-lists__col--gold li { border-bottom-color: rgba(15, 46, 44, .18); }
.lp-lists__col li:last-child { border-bottom: 0; }
.lp-lists__col li::before {
  content: counter(syl, decimal-leading-zero); flex: none; width: 2.2em;
  font-size: .85rem; font-weight: 800; color: var(--gold-400);
}
.lp-lists__col--gold li::before { color: var(--gold-700); }
.lp-lists__col li:hover { transform: translateX(6px); }
.lp-lists__col a { color: inherit; text-decoration: none; }
.lp-lists__col a:hover { color: var(--gold-400); }

/* Flow cards: A + B = C, or A → B → C */
.lp-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1.2fr; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto; }
.lp-flow__item {
  height: 100%; padding: 26px 22px; text-align: center;
  border-radius: 26px 8px 26px 8px; background: #fff; border: 1px solid rgba(198, 170, 106, .5);
  box-shadow: 0 10px 26px rgba(15, 46, 44, .07);
}
.lp-flow__item .lp-feature__icon { margin: 0 auto 14px; }
.lp-flow__item h3 { margin: 0; font-size: 1.15rem; font-weight: 800; }
.lp-flow__item p { margin: 6px 0 0; color: var(--color-muted); font-size: .95rem; }
.lp-flow__item--result { background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); border: 0; }
.lp-flow__item--result h3 { color: var(--white); }
.lp-flow__item--result p { color: rgba(255, 255, 255, .8); }
.lp-flow__item--result .lp-feature__icon { background: var(--gold-500); color: var(--teal-950); }
.lp-flow__op { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--gold-500); }
.lp-flow__op .icon { width: 30px; height: 30px; }
.lp-closing {
  max-width: 820px; margin: clamp(28px, 4vw, 44px) auto 0; padding-left: 20px;
  border-left: 4px solid var(--gold-500); font-size: 1.1rem; line-height: 1.7; color: var(--teal-900);
}
.lp-closing--first { margin-top: 0; }

/* Form card */
.lp-form-card {
  max-width: 860px; margin: 0 auto; padding: clamp(24px, 4vw, 44px);
  border-radius: 30px 10px 30px 10px; background: #fff; border-top: 5px solid var(--gold-500);
  box-shadow: 0 20px 46px rgba(15, 46, 44, .12);
}

/* Zakat Calculator page */
.zakat-figures { display: grid; gap: 18px; }
.zakat-figure { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.zakat-figure + .zakat-figure { border-top: 1px dashed rgba(255, 255, 255, .2); }
.zakat-figure__value {
  flex: none; min-width: 3.4em; font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #f1e2b8, var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.zakat-figure__label { font-size: 1.05rem; font-weight: 600; line-height: 1.45; }
.js .zakat-figure { animation: fade-up 800ms var(--ease) both; }
.js .zakat-figure + .zakat-figure { animation-delay: 200ms; }
.zakat-calc { max-width: 1000px; }
.zakat-calc .lp-closing { margin-bottom: clamp(24px, 3vw, 36px); }
.zakat-calc__pay { justify-content: center; margin-top: 28px; }

/* Page video (shortcode [majlis_video]) */
.page-video { position: relative; overflow: hidden; background: var(--teal-900); }
.page-video__media { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-video__toggle {
  position: absolute; right: 16px; bottom: 16px; z-index: 2;
  display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%;
  background: rgba(15, 46, 44, .55); color: var(--white); cursor: pointer;
  backdrop-filter: blur(4px); transition: background-color var(--dur) var(--ease);
}
.page-video__toggle:hover { background: var(--gold-500); color: var(--teal-950); }
.page-video__toggle .icon { width: 16px; height: 16px; }
.page-video.is-blocked .page-video__toggle { width: 60px; height: 60px; background: var(--gold-500); color: var(--teal-950); }

/* Masjid Project page (mp-*) */
.mp-hero { align-items: center; }
.mp-address {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 8px 16px 8px 10px;
  border-radius: var(--radius-pill); background: var(--teal-100); color: var(--teal-900); font-weight: 700; font-size: .92rem;
}
.mp-address .icon { width: 18px; height: 18px; color: var(--gold-700); }
.mp-note {
  display: flex; align-items: flex-start; gap: 10px; max-width: 520px; margin: 22px 0 0; padding: 12px 16px;
  border-left: 4px solid var(--gold-500); border-radius: 0 14px 14px 0; background: #f8f4ea;
  font-size: .92rem; font-style: italic; color: var(--teal-900);
}
.mp-note .icon { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold-700); }

/* Gothic (pointed) arch video frame */
.mp-arch-wrap { position: relative; width: min(100%, 440px); margin-inline: auto; padding: 0 18px 18px 0; }
.mp-arch-wrap::before { /* offset gold arch behind the video */
  content: ""; position: absolute; inset: 18px 0 0 18px;
  background: linear-gradient(160deg, #ecdcb2, var(--gold-500) 55%, #a8873f);
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
}
.mp-arch-wrap, .mp-arch { --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 130' preserveAspectRatio='none'%3E%3Cpath d='M0 130V52C0 22 22 6 50 0c28 6 50 22 50 52v78Z'/%3E%3C/svg%3E"); }
.mp-arch {
  position: relative; aspect-ratio: 100 / 130;
  -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat;
  box-shadow: 0 30px 60px rgba(15, 46, 44, .3);
}
.mp-arch::after { /* soft shade at the bottom so the button stays readable */
  content: ""; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none;
  background: linear-gradient(transparent, rgba(15, 46, 44, .45));
}
.js .mp-arch-wrap.is-visible::before { animation: mp-arch-in 1s var(--ease) .25s both; }
@keyframes mp-arch-in { from { transform: translate(-18px, -18px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Fact strip */
.mp-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; }
.mp-facts li {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 22px 24px;
  border-radius: 24px 8px 24px 8px; background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); color: rgba(255, 255, 255, .8);
  box-shadow: 0 14px 30px rgba(15, 46, 44, .18); transition: transform var(--dur) var(--ease);
}
.mp-facts li::after {
  content: ""; position: absolute; right: -26px; bottom: -26px; width: 90px; aspect-ratio: 1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .08;
}
.mp-facts li:hover { transform: translateY(-4px); }
.mp-facts strong { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; line-height: 1.1; color: var(--gold-400); }
.mp-facts span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.mp-donate { justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

@media (max-width: 1023px) {
  .mp-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .mp-facts { gap: 12px; }
  .mp-facts li { padding: 18px; }
}

/* About Us page (about-*) */
.about-hero { align-items: center; }
.about-video { position: relative; padding: 0 18px 18px 0; }
.about-video::before { /* offset gold frame */
  content: ""; position: absolute; inset: 18px 0 0 18px; z-index: -1;
  border-radius: 30px 10px 30px 10px; background: linear-gradient(135deg, #ecdcb2, var(--gold-500) 55%, #a8873f);
}
.about-video .embed-16x9 { margin: 0; border-radius: 30px 10px 30px 10px; box-shadow: 0 26px 54px rgba(15, 46, 44, .28); }
.js .about-video.is-visible::before { animation: mp-arch-in 1s var(--ease) .25s both; }
.about-video { isolation: isolate; }

.about-facts { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.mp-facts strong small { display: block; margin-bottom: 2px; font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }

/* Our Mission / Our Vision */
.about-mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3vw, 36px); max-width: 1080px; margin: 0 auto; }
.about-mv__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(30px, 4.5vw, 52px);
  border-radius: 36px 12px 36px 12px;
  box-shadow: 0 24px 50px rgba(15, 46, 44, .16);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.about-mv__card:hover { transform: translateY(-6px); box-shadow: 0 32px 60px rgba(15, 46, 44, .22); }
.about-mv__card::before { /* oversized quote mark */
  content: "\201C"; position: absolute; right: 22px; top: -28px; z-index: -1;
  font-size: 12rem; font-weight: 800; line-height: 1; opacity: .14;
}
.about-mv__card::after { /* emblem watermark */
  content: ""; position: absolute; left: -50px; bottom: -60px; width: 200px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .08;
}
.about-mv__card--mission {
  background: radial-gradient(ellipse 70% 80% at 100% 0%, rgba(198, 170, 106, .28), transparent 70%), linear-gradient(140deg, var(--teal-800), var(--teal-950));
  color: rgba(255, 255, 255, .92);
}
.about-mv__card--mission::before { color: var(--gold-400); }
.about-mv__card--vision { background: linear-gradient(140deg, #f6ecd2, #e6d09c); color: var(--teal-950); }
.about-mv__card--vision::before { color: var(--teal-800); }
.about-mv__head { display: flex; align-items: center; gap: 16px; }
.about-mv__icon {
  flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px 6px 18px 6px;
  background: var(--gold-500); color: var(--teal-950); box-shadow: 0 10px 22px rgba(0, 0, 0, .18);
}
.about-mv__card--vision .about-mv__icon { background: var(--teal-800); color: var(--gold-400); }
.about-mv__icon .icon { width: 28px; height: 28px; }
.about-mv__head h2 { margin: 0 !important; font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important; }
.about-mv__card--mission h2 { color: var(--white); }
.about-mv__card--vision h2 { color: var(--teal-950); }
.about-mv__card p {
  margin: 0; padding-top: 22px; border-top: 1px solid currentColor; border-top-color: rgba(198, 170, 106, .55);
  font-size: clamp(1.12rem, 1.7vw, 1.32rem); font-weight: 600; line-height: 1.6;
}

/* Our Guiding Principles */
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); max-width: 1160px; margin: 0 auto; padding: 0; list-style: none; }
.about-principle {
  position: relative; overflow: hidden; margin: 0;
  padding: clamp(26px, 3vw, 34px);
  border-radius: 28px 9px 28px 9px; background: var(--white);
  border: 1px solid rgba(198, 170, 106, .4);
  box-shadow: 0 12px 30px rgba(15, 46, 44, .07);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.about-principle::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--gold-500), #ecdcb2, var(--gold-500));
  transform: scaleX(0); transform-origin: left; transition: transform 450ms var(--ease);
}
.about-principle:hover { transform: translateY(-6px); border-color: var(--gold-500); box-shadow: 0 24px 46px rgba(15, 46, 44, .14); }
.about-principle:hover::before { transform: scaleX(1); }
.about-principle__num {
  position: absolute; right: 22px; top: 14px;
  font-size: 3.2rem; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 1.5px rgba(198, 170, 106, .7);
}
.about-principle .lp-feature__icon { margin-bottom: 18px; }
.about-principle h3 { margin: 0 0 .5em; font-size: 1.2rem; font-weight: 800; color: var(--teal-900); }
.about-principle p { margin: 0; color: var(--color-muted); font-size: .97rem; line-height: 1.65; }

@media (max-width: 1023px) {
  .about-principles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .about-mv, .about-principles { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
}

/* Khutbah Talking Points: priority blocks */
.ktp-priority__head { display: flex; align-items: center; gap: 18px; max-width: 1080px; margin: 0 auto clamp(24px, 3vw, 36px); }
.ktp-priority__num {
  flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 22px 7px 22px 7px;
  background: linear-gradient(135deg, var(--teal-800), var(--teal-950)); color: var(--gold-400);
  font-size: 2rem; font-weight: 800; box-shadow: 0 14px 30px rgba(15, 46, 44, .2);
}
.ktp-priority__head .lp-eyebrow { margin: 0 0 4px; }
.ktp-priority__head h2 { margin: 0; }
.ktp-topics { max-width: 1080px; margin: 0 auto; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ktp-topics .lp-feature { border-top: 4px solid var(--gold-500); }
.ktp-priority { scroll-margin-top: 100px; }

@media (max-width: 1023px) {
  .lp-lists { grid-template-columns: 1fr; max-width: 560px; }
  .lp-flow { grid-template-columns: 1fr; max-width: 520px; justify-items: stretch; }
  .lp-flow__op { justify-self: center; }
  .lp-flow__op .icon { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .lp-intro { flex-direction: column; align-items: flex-start; }
  .itp-logo--tall img { height: 96px; }
  .itp-logo--wide img { height: 48px; }
  .ktp-priority__num { width: 58px; height: 58px; font-size: 1.6rem; }
}

/* ---------- How To Apply page (hta-*) ---------- */
.hta-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: .45em; }
.hta-contacts {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 30px 10px 30px 10px;
  background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(198, 170, 106, .25), transparent 70%), linear-gradient(135deg, var(--teal-800), var(--teal-950));
  color: rgba(255, 255, 255, .9); box-shadow: 0 24px 50px rgba(15, 46, 44, .25);
}
.hta-contacts::after {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .1;
}
.hta-contacts__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-weight: 800; color: var(--white); font-size: 1.1rem; }
.hta-contacts__title .icon { color: var(--gold-400); }
.hta-addr {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding: 14px 16px;
  border-radius: 16px 6px 16px 6px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(214, 190, 134, .35);
}
.hta-addr div { display: flex; flex-direction: column; min-width: 0; }
.hta-addr div span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-400); }
.hta-addr strong { color: var(--white); font-size: 1.05rem; overflow-wrap: anywhere; }
.hta-copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--radius-pill); background: var(--gold-500); color: var(--teal-950);
  font-weight: 800; font-size: .82rem; cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hta-copy:hover { background: var(--gold-400); transform: translateY(-1px); }
.hta-copy .icon { width: 16px; height: 16px; }
.hta-copy.is-copied, .hta-copy-all.is-copied { background: #2f8f5b; color: #fff; }
.hta-contacts__note { margin: 6px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .75); }

.hta-need {
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 30px 10px 30px 10px;
  background: linear-gradient(135deg, #fbf7ec, #f3ead2); border: 1px solid rgba(198, 170, 106, .5);
}
.hta-need__title { margin: 0 0 16px; font-weight: 800; color: var(--teal-900); font-size: 1.15rem; }
.hta-need .lp-checks { margin: 0; }

.hta-cc {
  display: flex; align-items: center; gap: 18px; max-width: 920px; margin: clamp(32px, 4vw, 48px) auto 0;
  padding: 20px 24px; border-radius: 22px 8px 22px 8px;
  background: linear-gradient(120deg, #ecdcb2, var(--gold-500) 55%, #c9ad70); color: var(--teal-950);
  box-shadow: 0 14px 30px rgba(15, 46, 44, .14);
}
.hta-cc p { margin: 0; }
.hta-cc__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--teal-800); color: var(--gold-400); }
.hta-cc__icon .icon { width: 24px; height: 24px; }

/* Email window */
.hta-mail {
  max-width: 880px; margin: 0 auto; overflow: hidden;
  border-radius: 22px 8px 22px 8px; background: #fff;
  border: 1px solid rgba(198, 170, 106, .55);
  box-shadow: 0 30px 60px rgba(15, 46, 44, .14);
}
.hta-mail__bar { display: flex; align-items: center; gap: 7px; padding: 12px 18px; background: var(--teal-800); }
.hta-mail__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.hta-mail__bar span:first-child { background: var(--gold-500); }
.hta-mail__bar em { margin-left: 8px; font-style: normal; font-size: .82rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.hta-mail__fields { margin: 0; }
.hta-mail__fields div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 24px; border-bottom: 1px solid #eee9dc; }
.hta-mail__fields dt { font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-700); align-self: center; }
.hta-mail__fields dd { margin: 0; color: var(--ink-900); overflow-wrap: anywhere; }
.hta-mail__body { padding: 22px 24px 8px; line-height: 1.75; color: var(--ink-900); }
.hta-mail__body mark { padding: 1px 6px; border-radius: 6px; background: #f3ead2; color: var(--gold-700); font-weight: 700; }
.hta-mail__actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 24px 24px; border-top: 1px dashed rgba(198, 170, 106, .6); background: #fcfaf5; }
.hta-mail__actions .btn .icon { width: 18px; height: 18px; }
#email-template { scroll-margin-top: 20px; }

@media (max-width: 640px) {
  .hta-addr { flex-direction: column; align-items: stretch; }
  .hta-copy { justify-content: center; }
  .hta-cc { flex-direction: column; align-items: flex-start; }
  .hta-mail__fields div { grid-template-columns: 1fr; gap: 2px; padding: 10px 18px; }
  .hta-mail__body, .hta-mail__actions { padding-inline: 18px; }
  .hta-mail__actions .btn { flex: 1 1 100%; }
}

/* ---------- Certified Halal Schools page (hs-*) ---------- */
.hs-counter {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 36px); align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 30px 10px 30px 10px;
  background: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(198, 170, 106, .25), transparent 70%), linear-gradient(135deg, var(--teal-800), var(--teal-950));
  color: rgba(255, 255, 255, .9);
  box-shadow: 0 24px 50px rgba(15, 46, 44, .25);
}
.hs-counter::after {
  content: ""; position: absolute; right: -50px; bottom: -60px; width: 200px; aspect-ratio: 1; z-index: -1;
  background: url("../img/emblem.png") center / contain no-repeat; opacity: .1;
}
.hs-counter__ring {
  position: relative; display: grid; place-content: center; text-align: center;
  width: clamp(140px, 15vw, 172px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--gold-400), var(--gold-500), #a8873f, var(--gold-400));
}
.hs-counter__ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--teal-900); }
.hs-counter__ring strong { position: relative; font-size: clamp(2.6rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--gold-400); }
.hs-counter__ring span { position: relative; margin-top: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.js .hs-counter__ring { animation: ring-spin-in 1.2s var(--ease-out-back) .3s both; }
@keyframes ring-spin-in { from { transform: rotate(-120deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
.hs-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hs-mini li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.hs-mini .icon { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px 4px 10px 4px; background: rgba(255, 255, 255, .1); color: var(--gold-400); }
.hs-stats { grid-template-columns: repeat(5, 1fr); }
.hs-stats li { padding: 20px 22px; }

.hs-finder-wrap { padding-top: clamp(28px, 4vw, 48px); scroll-margin-top: 20px; }
.hs-finder {
  padding: clamp(22px, 3.5vw, 44px);
  border: 1.5px solid transparent; border-radius: 30px 10px 30px 10px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--gold-500), rgba(43, 108, 103, .12) 35%, rgba(43, 108, 103, .12) 65%, var(--gold-500)) border-box;
  box-shadow: 0 20px 50px rgba(15, 46, 44, .1);
}
.hs-finder__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.hs-finder__head h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; }
.hs-count {
  margin: 0; padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--teal-100); color: var(--teal-900); font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.hs-search {
  display: flex; align-items: center; gap: 12px;
  padding: 0 22px; margin-bottom: 16px;
  border: 2px solid var(--grey-200); border-radius: var(--radius-pill); background: #fbfaf6;
  color: var(--teal-700); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.hs-search:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 4px rgba(43, 108, 103, .12); background: #fff; }
.hs-search .icon { width: 20px; height: 20px; }
.hs-search input { flex: 1; min-width: 0; min-height: 56px; border: 0; background: transparent; font: inherit; font-size: 1.02rem; outline: none; }
.hs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.hs-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1.5px solid rgba(198, 170, 106, .7); border-radius: var(--radius-pill);
  background: #fff; color: var(--teal-900); font-weight: 700; font-size: .9rem; cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hs-chip span { padding: 2px 8px; border-radius: var(--radius-pill); background: #f3ead2; color: var(--gold-700); font-size: .78rem; }
.hs-chip:hover { transform: translateY(-2px); }
.hs-chip[aria-pressed="true"] { background: var(--teal-800); border-color: var(--teal-800); color: #fff; }
.hs-chip[aria-pressed="true"] span { background: var(--gold-500); color: var(--teal-950); }

.hs-table { overflow-x: auto; border-radius: 18px 6px 18px 6px; border: 1px solid var(--grey-200); }
.hs-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hs-table thead th {
  position: sticky; top: 0; z-index: 1;
  padding: 14px 16px; text-align: left; white-space: nowrap;
  background: var(--teal-800); color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.hs-table td { padding: 14px 16px; border-bottom: 1px solid #eee9dc; vertical-align: middle; }
.hs-table tbody tr { transition: background-color var(--dur) var(--ease); }
.hs-table tbody tr:nth-child(even) { background: #fcfaf5; }
.hs-table tbody tr:hover { background: #f6efdc; }
.hs-table tr[hidden] { display: none; }
.hs-school { font-weight: 700; color: var(--teal-900); }
.hs-region { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--teal-100); color: var(--teal-900); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.hs-code { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #f3ead2; color: var(--gold-700); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .85rem; }
.hs-addr { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--teal-700); text-decoration: none; }
.hs-addr:hover { color: var(--teal-900); text-decoration: underline; }
.hs-addr .icon { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--gold-700); }
.hs-empty { margin: 18px 0 0; padding: 18px; border-radius: 14px; background: #f8f4ea; text-align: center; color: var(--ink-600); font-weight: 600; }

@media (max-width: 1023px) {
  .hs-stats { grid-template-columns: repeat(3, 1fr); }
}
/* Phones: each school becomes a card */
@media (max-width: 760px) {
  .hs-counter { grid-template-columns: 1fr; justify-items: center; text-align: left; }
  .hs-stats { grid-template-columns: repeat(2, 1fr); }
  .hs-table { border: 0; overflow: visible; }
  .hs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hs-table table, .hs-table tbody { display: block; }
  .hs-table tbody tr {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-bottom: 12px; padding: 16px;
    border: 1px solid rgba(198, 170, 106, .5); border-radius: 18px 6px 18px 6px; background: #fff;
  }
  .hs-table tbody tr:nth-child(even) { background: #fff; }
  .hs-table td { display: contents; }
  .hs-table td::before { content: attr(data-label); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); align-self: center; }
  .hs-table td.hs-school { display: block; grid-column: 1 / -1; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px dashed rgba(198, 170, 106, .6); font-size: 1.05rem; }
  .hs-table td.hs-school::before { display: none; }
  .hs-region, .hs-code, .hs-addr { justify-self: start; }
  .hs-table tbody tr { gap: 8px 14px; padding: 16px 18px; }
}

@media (max-width: 1023px) {
  .lp-hero__grid, .lp-split, .lp-band__grid, .lp-cta { grid-template-columns: 1fr; }
  .lp-features, .lp-steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .lp-steps::before { left: 34px; right: auto; top: 0; bottom: 0; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--gold-500) 0 10px, transparent 10px 18px); }
  .lp-step { display: grid; grid-template-columns: 68px 1fr; column-gap: 18px; text-align: left; padding: 0; }
  .lp-step__num { grid-row: span 2; margin: 0; }
  .lp-cta .lp-actions { justify-content: flex-start; }
  .lp-video::before { inset: 12px -10px -12px 10px; }
}
@media (max-width: 640px) {
  .lp-why { grid-template-columns: 1fr; text-align: left; }
  .lp-actions .btn { flex: 1 1 100%; }
  .lp-photo::before { right: -10px; top: -24px; width: 80px; }
}
.entry { max-width: 1000px; margin-inline: auto; background: var(--white); padding: clamp(24px, 4vw, 56px); }
.entry img { margin-block: 1em; }
.entry h2 { font-size: 1.8rem; margin-top: 1.3em; }
.entry h3 { font-size: 1.4rem; margin-top: 1.2em; }
.entry h4 { font-size: 1.15rem; margin-top: 1.1em; }
.entry > :first-child, .entry > .wp-block-heading:first-child { margin-top: 0; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--gold-500); font-size: 1.05rem; color: var(--teal-900); }
.entry ul, .entry ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry li { margin-bottom: .4em; }
.entry a:not(.btn):not(.wp-block-button__link):not(.member-card__addr) { color: var(--teal-700); text-decoration: underline; text-underline-offset: 3px; }
.entry .wp-block-image img { border-radius: 12px; }
.entry .wp-block-image { margin: 1.5em 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--grey-200); margin: 2em 0; }

/* Block-editor buttons in brand style */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2em 0; }
.wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: .6em 1.6em; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-on-accent);
  font-weight: 800; text-transform: uppercase; letter-spacing: .02em; text-decoration: none;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.wp-block-button__link:hover { background: var(--gold-400); color: var(--color-on-accent); transform: translateY(-2px); }

/* Stats row (e.g. About page: Network nearly 100, Years of service 35+) */
.stat-row, .entry .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; list-style: none; margin: 1.5em 0; padding: 0; }
.stat-row li {
  display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 18px 20px;
  border-radius: 18px 6px 18px 6px; background: var(--teal-800); color: rgba(255, 255, 255, .85);
}
.stat-row strong { font-size: 1.8rem; font-weight: 800; line-height: 1.1; color: var(--gold-400); font-variant-numeric: lining-nums; }
.stat-row strong small { display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.stat-row span { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Ribbon title: teal band with gold trim, notched tails folding behind it.
   Markup: <h3 class="title-ribbon"><span>About Us</span></h3> */
.title-ribbon, .entry .title-ribbon {
  --tail: clamp(26px, 4vw, 44px);
  --fold: 10px;
  position: relative; isolation: isolate;
  display: table; margin: 0 auto 1.4em; padding-inline: var(--tail);
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 800;
  text-transform: uppercase; letter-spacing: .14em; text-align: center;
}
.title-ribbon > span {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: .8em;
  padding: .7em 1.6em;
  background: linear-gradient(150deg, #24635e 0%, #1a4a46 55%, #143b38 100%);
  color: var(--white);
  box-shadow: inset 0 0 0 4px #1a4a46, inset 0 0 0 5.5px var(--gold-400), 0 10px 24px rgba(15, 46, 44, .25);
}
/* Gold eight-point stars either side of the text */
.title-ribbon > span::before,
.title-ribbon > span::after {
  content: ""; flex: none; width: .5em; aspect-ratio: 1;
  background: var(--gold-400);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
/* Tails: sit lower than the band, with a darker fold triangle where they tuck under */
.title-ribbon::before,
.title-ribbon::after {
  content: ""; position: absolute; z-index: 0;
  top: var(--fold); bottom: calc(var(--fold) * -1);
  width: calc(var(--tail) + var(--fold));
  background:
    linear-gradient(to top right, transparent 50%, var(--teal-950) 50%) 100% 100% / var(--fold) var(--fold) no-repeat,
    linear-gradient(90deg, var(--teal-700), var(--teal-800)) 0 0 / var(--tail) 100% no-repeat;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, calc(var(--tail) * .4) 50%);
}
.title-ribbon::before { left: 0; }
.title-ribbon::after { right: 0; transform: scaleX(-1); }

/* Video embeds */
.embed-16x9 { position: relative; aspect-ratio: 16 / 9; margin: 1.5em 0; border-radius: 12px; overflow: hidden; background: #000; }
.embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Tables */
.wp-block-table { margin: 1.5em 0; overflow-x: auto; }
.entry table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry th, .entry td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--grey-200); vertical-align: top; }
.entry thead th, .entry tr:first-child th { background: var(--teal-800); color: var(--white); font-weight: 700; }
.entry tbody tr:nth-child(even) { background: #fafaf7; }
.table-scroll { overflow-x: auto; border: 1px solid var(--grey-200); border-radius: 12px; }
.table-scroll table { margin: 0; }
.data-table .directory__search { margin-bottom: 8px; }
.data-table tr[hidden] { display: none; }

/* Team grid (Our Team page) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; margin: 1em 0 2em; }
.team-card {
  margin: 0; padding: 20px 16px; text-align: center;
  border-radius: 18px 6px 18px 6px; background: #faf7ef; border: 1px solid rgba(198, 170, 106, .4);
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(22, 63, 60, .12); }
.team-card img { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--gold-500); }
.team-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.team-card strong { color: var(--teal-900); }
.team-card span { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-700); }

/* Mailchimp sign-up form (Subscribe page) */
.signup-form { max-width: 520px; margin: 1.5em 0; padding: 24px; border-radius: 16px; background: #faf7ef; border: 1px solid rgba(198, 170, 106, .4); }
.signup-form .btn { margin-top: 4px; }

/* Post lists on Blog / Press / Webinars / KTP pages */
.entry .posts-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 1.5em 0; }
.posts-more { text-align: center; margin-top: 28px; }
.posts-empty { color: var(--color-muted); }

/* Interactive tools kept in a frame (Zakat Calculator) */
.legacy-embed { display: block; width: 100%; min-height: 640px; border: 0; }
.entry__featured { margin: 0 0 28px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; list-style: none; margin: 0; padding: 0; }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px;
  border-radius: var(--radius-pill); background: var(--white); text-decoration: none; font-weight: 700;
}
.pagination .current { background: var(--teal-700); color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1500px) {
  .site-logo img { height: 48px; }
  .site-header__inner { gap: 16px; }
}
@media (max-width: 1360px) {
  .primary-nav, .header-actions .btn { display: none; }
  .header-actions .btn--keep { display: inline-flex; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1023px) {
  :root { --header-h: 80px; }
  .site-logo img { height: 44px; }
  .donate-tab { display: none; }
  .mission__grid { grid-template-columns: 1fr; }
  .mission__box { margin: -40px 16px 0; position: relative; }
  .news-track { grid-auto-columns: calc((100% - 28px) / 2); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-col--contact, .footer-col--newsletter { grid-column: 1 / -1; }
  .newsletter { max-width: 480px; margin-inline: auto; width: 100%; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-logo img { height: 36px; }
  .header-actions .btn--keep { padding-inline: .9em; font-size: .8rem; }
  .slide { padding-inline: 44px; min-height: 420px; }
  .slide::before, .slide::after { opacity: .2; }
  .carousel__arrow { width: 32px; height: 48px; }
  .news-track { grid-auto-columns: 85%; gap: 16px; }
  .involved-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .site-logo img { height: 30px; }
  .header-actions { gap: 4px; }
}

/* ==========================================================================
   Video hero (homepage top)
   ========================================================================== */
.video-hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: clamp(520px, 82vh, 820px);
  background: var(--teal-950) center / cover no-repeat;
  color: var(--white);
}
.video-hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.video-hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 46, 44, .88) 0%, rgba(15, 46, 44, .6) 45%, rgba(15, 46, 44, .15) 100%),
    linear-gradient(to top, rgba(15, 46, 44, .55), transparent 45%);
}
.video-hero__content { padding-block: clamp(64px, 10vw, 120px); }
.video-hero__content > * { max-width: 760px; }
.video-hero__kicker {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px;
  color: var(--gold-400);
  font-size: clamp(.8rem, 1.2vw, .95rem); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.video-hero__kicker::before { content: ""; width: 40px; height: 2px; background: currentColor; flex: none; }

/* "Since 1982" badge: glass plate with a turning gold star and a light sweep */
.since-badge {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex !important; align-items: center; gap: 14px; width: max-content;
  margin: 0 0 22px; padding: 10px 22px 10px 12px;
  border: 1px solid rgba(214, 190, 134, .55); border-radius: 22px 6px 22px 6px;
  background: linear-gradient(120deg, rgba(15, 46, 44, .72), rgba(31, 85, 81, .45));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.since-badge::after { /* light sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(214, 190, 134, .35) 50%, transparent 65%);
  transform: translateX(-120%);
}
.since-badge__star { position: relative; flex: none; width: 34px; height: 34px; }
.since-badge__star::before, .since-badge__star::after {
  content: ""; position: absolute; inset: 4px; border-radius: 4px;
  background: linear-gradient(135deg, #f1e2b8, var(--gold-500) 55%, #a8873f);
}
.since-badge__star::after { transform: rotate(45deg); }
.since-badge__label {
  padding-right: 14px; border-right: 1px solid rgba(214, 190, 134, .45);
  color: rgba(255, 255, 255, .85); font-size: .78rem; font-weight: 800; letter-spacing: .32em; text-transform: uppercase;
}
.since-badge__year {
  font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; line-height: 1; letter-spacing: .06em;
  background: linear-gradient(180deg, #f6e9c4, var(--gold-500) 70%, #b0904a); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: lining-nums;
}
.js .since-badge__star { animation: since-star 1s var(--ease-out-back) 500ms both, since-spin 14s linear 1.5s infinite; }
.js .since-badge::after { animation: since-sweep 1.2s var(--ease) 1.1s both, since-sweep 1.4s var(--ease) 7s infinite; }
@keyframes since-star { from { transform: rotate(-180deg) scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes since-spin { to { transform: rotate(360deg); } }
@keyframes since-sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) { .js .since-badge__star, .js .since-badge::after { animation: none; } }
.video-hero__title {
  margin: 0 0 .35em;
  color: var(--white);
  font-size: clamp(2.4rem, 6.2vw, 5.2rem);
  font-weight: 800; line-height: 1.02; text-transform: uppercase;
  text-wrap: balance;
}
.video-hero__title em { font-style: normal; color: var(--gold-500); display: inline-block; }
.video-hero__text { margin: 0 0 32px; font-size: clamp(1.05rem, 1.7vw, 1.35rem); font-weight: 600; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.video-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.btn--ghost:hover { background: var(--white); color: var(--teal-900); box-shadow: inset 0 0 0 2px var(--white); }

.video-hero__toggle {
  position: absolute; right: clamp(16px, 2.5vw, 36px); bottom: clamp(16px, 2.5vw, 32px); z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: var(--white);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.video-hero__toggle:hover { background: rgba(255, 255, 255, .3); }
.video-hero__toggle .icon { width: 16px; height: 16px; }

.video-hero__scroll {
  position: absolute; left: 50%; bottom: 24px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .8); border-radius: 14px;
}
.video-hero__scroll span {
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--white);
  animation: scroll-dot 1.8s var(--ease) infinite;
}
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Shown only if the browser refuses to autoplay (e.g. iPhone Low Power Mode) */
.video-hero.is-blocked .video-hero__toggle { width: 64px; height: 64px; background: var(--gold-500); color: var(--teal-950); }
.video-hero.is-blocked .video-hero__toggle .icon { width: 22px; height: 22px; }

/* Load-in motion */
.js .video-hero__content > * { animation: fade-up 900ms var(--ease) both; }
.js .video-hero__content > :nth-child(1) { animation-delay: 300ms; }
.js .video-hero__content > :nth-child(2) { animation-delay: 450ms; }
.js .video-hero__content > :nth-child(3) { animation-delay: 650ms; }
.js .video-hero__content > :nth-child(4) { animation-delay: 800ms; }
.js .video-hero__media { animation: hero-settle 2.4s var(--ease) both; }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  .video-hero { min-height: min(calc(100svh - var(--header-h)), 680px); align-items: flex-end; }
  .video-hero__shade { background: linear-gradient(to top, rgba(15, 46, 44, .92) 10%, rgba(15, 46, 44, .45) 60%, rgba(15, 46, 44, .25) 100%); }
  .video-hero__content { padding-block: 48px 88px; }
  .video-hero__actions .btn { flex: 1 1 100%; }
  .video-hero__scroll { display: none; }
}

/* ==========================================================================
   Plugin compatibility
   ========================================================================== */

/* ---------- Elementor ---------- */
.full-width { display: block; }
.elementor-page #main > .elementor { width: 100%; }
/* Brand defaults for Elementor buttons; anything set in the Elementor editor still wins. */
.elementor-widget-button .elementor-button {
  background-color: var(--color-accent); color: var(--color-on-accent);
  border-radius: var(--radius-pill);
  font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
}
.elementor-widget-button .elementor-button:hover { background-color: var(--gold-400); color: var(--color-on-accent); }
.elementor-widget-text-editor { font-family: var(--font); }

/* ---------- Fluent Forms ---------- */
.fluentform { font-family: inherit; }
.fluentform .ff-el-input--label label { font-weight: 600; color: var(--ink-900); font-size: .9rem; }
.fluentform .ff-el-form-control {
  min-height: 44px;
  border: 1px solid #cfd4da; border-radius: 4px;
  font: inherit; font-size: 1rem; color: var(--ink-900);
}
.fluentform .ff-el-form-control:focus { border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(43, 108, 103, .2); outline: none; }
.fluentform .ff-el-is-error .ff-el-form-control { border-color: #b3261e; }
.fluentform .error, .fluentform .text-danger { color: #b3261e; }
.fluentform .ff-btn-submit.ff_btn_style,
.fluentform .ff-btn-submit:not(.ff_btn_no_style) {
  min-height: 44px; padding: .65em 1.8em;
  border: 0; border-radius: var(--radius-pill);
  background-color: var(--teal-700); color: var(--white);
  font-family: var(--font); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.fluentform .ff-btn-submit.ff_btn_style:hover,
.fluentform .ff-btn-submit:not(.ff_btn_no_style):hover { background-color: var(--teal-900); transform: translateY(-2px); }
/* Beats Fluent's per-form "form.fluent_form_N .wpf_has_custom_css.ff-btn-submit" colors */
.majlis-brand-forms form.frm-fluent-form .ff-btn-submit.ff_btn_style {
  background-color: var(--teal-700); border-color: var(--teal-700); color: var(--white);
  min-width: 0; border-radius: var(--radius-pill);
}
.majlis-brand-forms form.frm-fluent-form .ff-btn-submit.ff_btn_style:hover {
  background-color: var(--teal-900); border-color: var(--teal-900); color: var(--white);
}
.majlis-brand-forms .newsletter form.frm-fluent-form .ff-btn-submit.ff_btn_style { border-radius: 4px; }
.ff-message-success { border: 0; border-left: 4px solid var(--teal-700); background: var(--teal-100); color: var(--teal-900); padding: 12px 16px; }
.newsletter .fluentform .ff-btn-submit { display: block; margin-left: auto; border-radius: 4px; font-family: var(--font-system); }


/* Inside the Elementor editor, show every section immediately (no scroll fades). */
.elementor-editor-active [data-reveal] { opacity: 1 !important; transform: none !important; }
.elementor-editor-active .section-title::after { transform: scaleX(1); }
.elementor-widget-container > .video-hero,
.elementor-widget-container > .members { margin-inline: 0; }

/* ==========================================================================
   Motion
   All of it is disabled for visitors who ask for reduced motion (see bottom).
   ========================================================================== */
:root {
  --ease-out-back: cubic-bezier(.34, 1.56, .64, 1);
  --reveal-dur: 800ms;
}

/* ---------- Page load: header slides in ---------- */
@keyframes fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes fade-up   { from { opacity: 0; transform: translateY(26px); }  to { opacity: 1; transform: none; } }
@keyframes pop-in    { from { opacity: 0; transform: scale(.85); }       to { opacity: 1; transform: none; } }
.js .site-logo { animation: fade-down 700ms var(--ease) both; }
.js .primary-nav > ul > li { animation: fade-down 600ms var(--ease) both; }
.js .primary-nav > ul > li:nth-child(1) { animation-delay: 100ms; }
.js .primary-nav > ul > li:nth-child(2) { animation-delay: 160ms; }
.js .primary-nav > ul > li:nth-child(3) { animation-delay: 220ms; }
.js .primary-nav > ul > li:nth-child(4) { animation-delay: 280ms; }
.js .primary-nav > ul > li:nth-child(5) { animation-delay: 340ms; }
.js .header-actions > * { animation: fade-down 600ms var(--ease) both; }
.js .header-actions > :nth-child(1) { animation-delay: 380ms; }
.js .header-actions > :nth-child(2) { animation-delay: 440ms; }
.js .header-actions > :nth-child(3) { animation-delay: 500ms; }
.js .header-actions > :nth-child(4) { animation-delay: 560ms; }
.js .header-actions > :nth-child(5) { animation-delay: 560ms; }

/* Donate tab slides in from the edge, then gives a gentle nudge now and then */
@keyframes tab-in { from { transform: translate(-100%, 0) rotate(180deg); } to { transform: rotate(180deg); } }
@keyframes tab-nudge {
  0%, 88%, 100% { transform: rotate(180deg) translateX(0); }
  92% { transform: rotate(180deg) translateX(-6px); }
  96% { transform: rotate(180deg) translateX(0); }
}
.js .donate-tab { animation: tab-in 700ms var(--ease) 900ms both, tab-nudge 8s ease-in-out 3s infinite; }

/* ---------- Buttons: lift + light sweep ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); transition: transform 700ms var(--ease); }
.btn:active { transform: translateY(0) scale(.97); }

/* ---------- Hero ---------- */
/* Slide content builds in each time a slide becomes active */
.carousel__slide.is-active .slide > * { animation: fade-up 800ms var(--ease) both; }
.carousel__slide.is-active .slide > :nth-child(1) { animation-name: pop-in; animation-delay: 80ms; }
.carousel__slide.is-active .slide > :nth-child(2) { animation-delay: 220ms; }
.carousel__slide.is-active .slide > :nth-child(3) { animation-delay: 360ms; }
.carousel__slide.is-active .slide > :nth-child(4) { animation-delay: 500ms; animation-name: pop-in; animation-timing-function: var(--ease-out-back); }
.carousel__slide.is-active .slide--image img { animation: hero-zoom 8s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: none; } }
.slide__title em { display: inline-block; }

/* Corner emblems turn slowly */
@keyframes emblem-turn { to { rotate: 360deg; } }
.slide::before { animation: emblem-turn 60s linear infinite; }
.slide::after { animation: emblem-turn 75s linear infinite reverse; }

/* Arrows nudge in their direction on hover */
.carousel__arrow .icon { transition: transform var(--dur) var(--ease); }
.carousel__arrow--prev:hover .icon { transform: translateX(-3px); }
.carousel__arrow--next:hover .icon { transform: translateX(3px); }

/* Autoplay progress bar */
.carousel__progress {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 3px; background: var(--gold-500);
  transform: scaleX(0); transform-origin: left;
}
.carousel__progress.is-running { animation: progress var(--carousel-interval, 7000ms) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="up"]    { transform: translateY(36px); }
.js [data-reveal="left"]  { transform: translateX(-56px); }
.js [data-reveal="right"] { transform: translateX(56px); }
.js [data-reveal="zoom"]  { transform: scale(.9); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Gold rule grows under section titles once revealed */
.section-title::after {
  content: ""; display: block;
  width: 64px; height: 3px; margin: 14px auto 0;
  background: var(--gold-500); border-radius: 3px;
  transform: scaleX(0);
  transition: transform 900ms var(--ease) 250ms;
}
.no-js .section-title::after, .section-title.is-visible::after { transform: scaleX(1); }

/* Mission photo: slow zoom while in view */
.mission__photo img { transition: transform 6s var(--ease); transform: scale(1.08); }
.no-js .mission__photo img, .mission__photo.is-visible img { transform: scale(1); }

/* ---------- Hover motion ---------- */
.news-card { transition: transform 300ms var(--ease); }
.news-card:hover { transform: translateY(-6px); }
.news-card__media { position: relative; }
.news-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(22, 63, 60, .35), transparent 60%);
  opacity: 0; transition: opacity 300ms var(--ease);
}
.news-card:hover .news-card__media::after { opacity: 1; }
.news-card__more .icon { transition: transform var(--dur) var(--ease); }
.news-card:hover .news-card__more .icon { transform: translateX(5px); }

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-12px) rotate(-6deg); }
  65% { transform: translateY(-4px) rotate(3deg); }
}
.involved-item:hover .icon { animation: icon-bounce 700ms var(--ease); transform: none; }
.involved-item h3 a { background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 0 2px no-repeat; transition: background-size 400ms var(--ease), border-color var(--dur) var(--ease); }
.involved-item:hover h3 a { background-size: 100% 2px; border-color: transparent; }



.footer-social a { transition: background-color var(--dur) var(--ease), transform 300ms var(--ease-out-back); }
.footer-social a:hover { transform: translateY(-4px) scale(1.1); }
.footer-list a { background: linear-gradient(var(--gold-500), var(--gold-500)) left bottom / 0 1px no-repeat; transition: background-size 300ms var(--ease), color var(--dur) var(--ease); }
.footer-list a:hover { background-size: 100% 1px; }

/* Mobile drawer: links cascade in */
.mobile-drawer.is-open nav li { animation: fade-up 450ms var(--ease) both; }
.mobile-drawer.is-open nav > ul > li:nth-child(1) { animation-delay: 80ms; }
.mobile-drawer.is-open nav > ul > li:nth-child(2) { animation-delay: 130ms; }
.mobile-drawer.is-open nav > ul > li:nth-child(3) { animation-delay: 180ms; }
.mobile-drawer.is-open nav > ul > li:nth-child(4) { animation-delay: 230ms; }
.mobile-drawer.is-open nav > ul > li:nth-child(5) { animation-delay: 280ms; }
.mobile-drawer.is-open .mobile-drawer__panel > .btn { animation: fade-up 450ms var(--ease) 330ms both; }
.mobile-drawer__scrim { animation: scrim-in 240ms var(--ease); }
@keyframes scrim-in { from { opacity: 0; } }

/* Search panel drops open */
.search-panel:not([hidden]) .search-form { animation: fade-down 300ms var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .slide::before, .slide::after { animation: none !important; }
  .carousel__progress { display: none; }
  /* Member rows become still, swipeable lists */
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .marquee__track { animation: none !important; }
  .marquee__dup { display: none !important; }
}
