/* ==========================================================================
   جمعية العالية لدعم مرضى الكلى وأسرهم — Main stylesheet
   Built on Bootstrap 5.3 (RTL). Tokens follow the Brand Guidelines 2026:
   Primary  · Deep Petroleum Teal #005F6B · Medical Turquoise #2BB6C1 · Care Green #58C17E
   Secondary· Pale Mint #C2F0D3 · Light Turquoise #72DCD6 · Muted Sage #9DB89C
             Warm Off-white #F6EFE2 · Soft Gray #C5C5C5 · Light Teal Tint #CBE6E8
   Teal carries trust (text, bands), Care Green is the call to give/act.
   (Token names --gold* are kept for compatibility; they now hold Care Green.)
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --surface: #F8FBFB;
  --surface-raised: #FFFFFF;
  --sand: #EAF5F6;            /* light teal tint band */
  --line: #D6E7E9;
  --ink: #0E2F35;
  --ink-muted: #557076;
  --green: #005F6B;           /* deep petroleum teal */
  --green-hover: #004C56;
  --on-green: #FFFFFF;
  --deep: #00505B;            /* dark bands, footer */
  --on-deep: #FFFFFF;
  --on-deep-muted: rgba(255, 255, 255, .78);
  --turquoise: #2BB6C1;       /* medical turquoise */
  --gold: #58C17E;            /* care green: donate / primary actions */
  --gold-hover: #46AE6C;
  --on-gold: #053A35;
  --gold-ink: #2E8A52;
  --green-soft: #DDF4E6;      /* pale mint */
  --success: #2E8A52;
  --danger: #B3261E;
  --shadow-card: 0 1px 2px rgba(0, 80, 91, .06), 0 8px 24px rgba(0, 80, 91, .09);

  --font-display: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-sans: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 96px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 24px; --radius-arch: 999px;

  --header-h: 84px;

  /* Bootstrap bridge — Bootstrap components follow the brand tokens */
  --bs-body-bg: var(--surface);
  --bs-body-color: var(--ink);
  --bs-body-font-family: var(--font-sans);
  --bs-secondary-color: var(--ink-muted);
  --bs-border-color: var(--line);
  --bs-primary: var(--green);
  --bs-primary-rgb: 0, 95, 107;
  --bs-link-color: var(--green);
  --bs-link-color-rgb: 0, 95, 107;
  --bs-link-hover-color: var(--green-hover);
  --bs-tertiary-bg: var(--sand);
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);
  --bs-focus-ring-color: rgba(43, 182, 193, .45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0B1A1D; --surface-raised: #11262A; --sand: #142F34; --line: #22403F;
    --ink: #E9F4F5; --ink-muted: #9FB8BC; --green: #5FCBD3; --green-hover: #84D9DF;
    --on-green: #0B1A1D; --deep: #08343B; --on-deep: #E9F4F5; --on-deep-muted: rgba(233, 244, 245, .74);
    --gold: #6BD08F; --gold-hover: #86DBA4; --on-gold: #062A25; --gold-ink: #7FD9A0;
    --green-soft: #12352F; --success: #7ED39A; --danger: #F2A39B;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --bs-primary-rgb: 95, 203, 211; --bs-link-color-rgb: 95, 203, 211;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0B1A1D; --surface-raised: #11262A; --sand: #142F34; --line: #22403F;
  --ink: #E9F4F5; --ink-muted: #9FB8BC; --green: #5FCBD3; --green-hover: #84D9DF;
  --on-green: #0B1A1D; --deep: #08343B; --on-deep: #E9F4F5; --on-deep-muted: rgba(233, 244, 245, .74);
  --gold: #6BD08F; --gold-hover: #86DBA4; --on-gold: #062A25; --gold-ink: #7FD9A0;
  --green-soft: #12352F; --success: #7ED39A; --danger: #F2A39B;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
  --bs-primary-rgb: 95, 203, 211; --bs-link-color-rgb: 95, 203, 211;
  color-scheme: dark;
}

/* 2. Base ------------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, .display-font {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  text-wrap: balance;
}
h4, h5, h6 { font-family: var(--font-sans); font-weight: 600; color: var(--ink); }
h1 { font-size: clamp(30px, 4.2vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 22px; }
p { color: var(--ink); }
.text-muted, .muted { color: var(--ink-muted) !important; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-hover); }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.num { font-variant-numeric: tabular-nums; }
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000;
  background: var(--gold); color: var(--on-gold); padding: 8px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

/* 3. Bootstrap component overrides ---------------------------------------- */
.btn { font-weight: 600; border-radius: var(--radius-md); padding: 10px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 6px 14px; font-size: 14px; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-color: var(--on-green);
  --bs-btn-hover-bg: var(--green-hover); --bs-btn-hover-border-color: var(--green-hover); --bs-btn-hover-color: var(--on-green);
  --bs-btn-active-bg: var(--green-hover); --bs-btn-active-border-color: var(--green-hover); --bs-btn-active-color: var(--on-green); }
.btn-gold { background: var(--gold); border: 1px solid var(--gold); color: var(--on-gold); }
.btn-gold:hover, .btn-gold:focus { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--on-gold); }
.btn-outline-primary { --bs-btn-color: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green);
  --bs-btn-hover-border-color: var(--green); --bs-btn-hover-color: var(--on-green); --bs-btn-active-bg: var(--green); --bs-btn-active-color: var(--on-green); }
.btn-outline-light { --bs-btn-color: var(--on-deep); --bs-btn-border-color: rgba(255,255,255,.4); --bs-btn-hover-bg: rgba(255,255,255,.12);
  --bs-btn-hover-color: var(--on-deep); --bs-btn-hover-border-color: var(--on-deep); }
.form-control, .form-select {
  background-color: var(--surface-raised); color: var(--ink); border-color: var(--line);
  border-radius: var(--radius-sm); padding: 11px 14px;
}
.form-control::placeholder { color: var(--ink-muted); opacity: .8; }
.form-control:focus, .form-select:focus { background-color: var(--surface-raised); color: var(--ink); border-color: var(--gold); box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.form-check-input { background-color: var(--surface-raised); border-color: var(--line); }
.input-group-text { background: var(--sand); border-color: var(--line); color: var(--ink); }
.accordion { --bs-accordion-bg: var(--surface-raised); --bs-accordion-color: var(--ink); --bs-accordion-border-color: var(--line);
  --bs-accordion-active-bg: var(--green-soft); --bs-accordion-active-color: var(--green); --bs-accordion-btn-color: var(--ink);
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); --bs-accordion-border-radius: var(--radius-md); --bs-accordion-inner-border-radius: var(--radius-md); }
.accordion-button { font-weight: 600; }
.accordion-button::after { margin-inline-start: auto; margin-inline-end: 0; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--green); --bs-nav-pills-link-active-color: var(--on-green); --bs-nav-link-color: var(--ink); --bs-nav-link-hover-color: var(--green); gap: 8px; }
.nav-pills .nav-link { border-radius: var(--radius-arch); border: 1px solid var(--line); background: var(--surface-raised); font-weight: 600; padding: 8px 20px; }
.nav-pills .nav-link.active { border-color: var(--green); }
.pagination { --bs-pagination-color: var(--ink); --bs-pagination-bg: var(--surface-raised); --bs-pagination-border-color: var(--line);
  --bs-pagination-hover-bg: var(--sand); --bs-pagination-hover-color: var(--green); --bs-pagination-active-bg: var(--green);
  --bs-pagination-active-border-color: var(--green); --bs-pagination-active-color: var(--on-green); --bs-pagination-focus-box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); gap: 6px; }
.pagination .page-link { border-radius: var(--radius-sm) !important; }
.modal { --bs-modal-bg: var(--surface-raised); --bs-modal-color: var(--ink); --bs-modal-border-color: var(--line); --bs-modal-border-radius: var(--radius-lg); }
.dropdown-menu { --bs-dropdown-bg: var(--surface-raised); --bs-dropdown-color: var(--ink); --bs-dropdown-border-color: var(--line);
  --bs-dropdown-link-color: var(--ink); --bs-dropdown-link-hover-bg: var(--green-soft); --bs-dropdown-link-hover-color: var(--green);
  --bs-dropdown-link-active-bg: var(--green); --bs-dropdown-link-active-color: var(--on-green); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 8px; }
.dropdown-item { border-radius: var(--radius-sm); padding: 8px 14px; font-size: 15px; }
.progress { --bs-progress-bg: var(--sand); --bs-progress-bar-bg: var(--green); --bs-progress-height: 8px; border-radius: var(--radius-arch); }
.progress-bar { border-radius: var(--radius-arch); transition: width 1.2s ease; }
.offcanvas { --bs-offcanvas-bg: var(--surface); --bs-offcanvas-color: var(--ink); }
.toast { --bs-toast-bg: var(--surface-raised); --bs-toast-color: var(--ink); --bs-toast-border-color: var(--line); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--ink); --bs-table-border-color: var(--line); --bs-table-striped-bg: var(--sand); --bs-table-striped-color: var(--ink); }
.badge-soft { background: var(--green-soft); color: var(--green); font-weight: 600; border-radius: var(--radius-arch); padding: 4px 12px; font-size: 13px; display: inline-block; }
.badge-gold { background: var(--gold); color: var(--on-gold); font-weight: 600; border-radius: var(--radius-arch); padding: 4px 12px; font-size: 13px; display: inline-block; }
.btn-close { filter: var(--btn-close-filter, none); }
:root[data-theme="dark"] .btn-close { filter: invert(1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-close { filter: invert(1); } }

/* 4. Top bar & header ----------------------------------------------------- */
.topbar { background: var(--deep); color: var(--on-deep-muted); font-size: 13.5px; padding-block: 8px; }
.topbar a { color: var(--on-deep-muted); }
.topbar a:hover { color: var(--gold); }
.topbar .sep { opacity: .35; margin-inline: 10px; }
.topbar .social a { display: inline-grid; place-items: center; width: 28px; height: 28px; }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 1030;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px rgba(0, 80, 91, .07); }
.site-header .navbar { min-height: var(--header-h); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; display: block; }
.brand-tag { font-size: 12px; color: var(--ink-muted); display: block; line-height: 1.3; }
.main-nav .nav-link { color: var(--ink); font-weight: 600; font-size: 15px; padding: 8px 12px !important; border-radius: var(--radius-sm); }
.main-nav .nav-link:hover, .main-nav .nav-link.active, .main-nav .show > .nav-link { color: var(--green); }
.main-nav .nav-link.active { position: relative; }
.main-nav .nav-link.active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--gold); border-radius: 2px; }
.dropdown-toggle::after { vertical-align: .2em; margin-inline-start: .35em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: var(--radius-md);
  border: 1px solid var(--line); background: var(--surface-raised); color: var(--ink); font-size: 18px; transition: .2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); }
.navbar-toggler { border: 1px solid var(--line); padding: 8px 10px; color: var(--ink); }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem var(--bs-focus-ring-color); }
.theme-icon-dark { display: none; }
:root[data-theme="dark"] .theme-icon-dark { display: inline; }
:root[data-theme="dark"] .theme-icon-light { display: none; }

@media (max-width: 1199.98px) {
  .main-nav .navbar-nav { padding-block: 12px; }
  .main-nav .dropdown-menu { box-shadow: none; border: 0; background: var(--sand); }
}
@media (max-width: 575.98px) {
  .brand-tag { display: none; }
  .header-actions .btn-gold span { display: none; }
}

/* 5. Sections --------------------------------------------------------------- */
.section { padding-block: clamp(56px, 8vw, var(--space-7)); }
.section-sm { padding-block: clamp(40px, 6vw, 64px); }
.band-sand { background: var(--sand); }
.band-raised { background: var(--surface-raised); }
.band-deep { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep h4, .band-deep p { color: var(--on-deep); }
.band-deep .lead, .band-deep .muted-on-deep { color: var(--on-deep-muted); }
.pattern::before {
  content: ""; position: absolute; inset: 0; background-image: url("../img/pattern-pulse.svg");
  background-size: 96px; opacity: .9; pointer-events: none;
}
.pattern > * { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--gold-ink); margin-bottom: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 10px; border-radius: 10px 10px 2px 2px; background: var(--gold); }
.band-deep .eyebrow { color: var(--gold); }
.section-head { max-width: 680px; margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { color: var(--ink-muted); font-size: 18px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-5); }
.section-head-row .section-head { margin-bottom: 0; }

/* 6. Media placeholders & arch frames -------------------------------------- */
.media {
  position: relative; overflow: hidden; background: var(--green-soft);
  display: grid; place-items: center; color: var(--green); isolation: isolate; aspect-ratio: 4 / 3; max-width: 100%;
}
.media::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 80% at 80% 0%, color-mix(in srgb, var(--gold) 28%, transparent), transparent 60%),
              linear-gradient(160deg, var(--green-soft), color-mix(in srgb, var(--green) 30%, var(--green-soft)));
}
.media::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("../img/pattern-pulse.svg"); background-size: 120px; }
.media > i { font-size: clamp(36px, 5vw, 56px); opacity: .8; }
.media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: 12px; background: var(--surface-raised); color: var(--ink-muted); padding: 2px 10px; border-radius: var(--radius-arch); }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-tall { aspect-ratio: 3 / 4; }
.arch { border-radius: var(--radius-arch) var(--radius-arch) var(--radius-lg) var(--radius-lg); }
.rounded-brand { border-radius: var(--radius-lg); }

/* 7. Home hero -------------------------------------------------------------- */
.hero { padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px); }
.hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.4; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: var(--space-5); font-size: 14px; color: var(--on-deep-muted); }
.hero-trust i { color: var(--gold); margin-inline-end: 6px; }
.hero-arches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; max-width: 520px; margin-inline: auto; }
.hero-arches .media:nth-child(1) { aspect-ratio: 3 / 4.2; }
.hero-arches .media:nth-child(2) { aspect-ratio: 3 / 5.2; }
.hero-arches .media:nth-child(3) { aspect-ratio: 3 / 6.2; }
.hero-arches .media { border: 4px solid color-mix(in srgb, var(--on-deep) 12%, transparent); }
.campaign-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 6px 8px 6px 16px; border-radius: var(--radius-arch); font-size: 14px; color: var(--on-deep); margin-bottom: var(--space-4); }
.campaign-chip .badge-gold { padding: 2px 10px; }

/* Quick donate */
.quick-donate {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); padding: var(--space-4); margin-top: calc(-1 * clamp(40px, 6vw, 64px)); position: relative; z-index: 2;
}
.quick-donate .row { --bs-gutter-y: 12px; }

/* Amount chips (shared by quick donate, modal and donate page) */
.amount-group { display: flex; flex-wrap: wrap; gap: 8px; }
.amount-chip { position: relative; }
.amount-chip input { position: absolute; opacity: 0; pointer-events: none; }
.amount-chip label {
  display: inline-flex; align-items: center; gap: 4px; min-width: 76px; justify-content: center; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  font-weight: 600; transition: .15s; font-variant-numeric: tabular-nums;
}
.amount-chip label:hover { border-color: var(--green); }
.amount-chip input:checked + label { background: var(--green); border-color: var(--green); color: var(--on-green); }
.amount-chip input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.currency { font-size: .8em; font-weight: 500; opacity: .85; }

/* 8. Stats ------------------------------------------------------------------ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-4); }
.stat { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); }
.stat-icon { width: 46px; height: 46px; border-radius: var(--radius-arch) var(--radius-arch) var(--radius-sm) var(--radius-sm); background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; color: var(--green); font-variant-numeric: tabular-nums; direction: ltr; display: inline-block; }
.stat-label { color: var(--ink-muted); font-size: 15px; margin: 4px 0 0; }
.band-deep .stat { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.band-deep .stat-value { color: var(--gold); }
.band-deep .stat-label { color: var(--on-deep-muted); }
.band-deep .stat-icon { background: rgba(255,255,255,.08); color: var(--gold); }

/* 9. Cards ------------------------------------------------------------------ */
.card-x {
  background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg);
  height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden;
}
a.card-x, .card-x.hoverable { color: inherit; }
a.card-x:hover, .card-x.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: transparent; }
.card-x .card-body-x { padding: var(--space-4); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-x h3, .card-x h4 { font-size: 19px; margin: 0; line-height: 1.6; font-family: var(--font-sans); font-weight: 700; }
.card-x p { color: var(--ink-muted); margin: 0; font-size: 15px; }
.card-x .card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.card-x .media { border-radius: 0; }

.field-card { padding: var(--space-4); }
.field-icon {
  width: 60px; height: 72px; border-radius: var(--radius-arch) var(--radius-arch) var(--radius-md) var(--radius-md);
  background: var(--green); color: var(--gold); display: grid; place-items: center; font-size: 26px; margin-bottom: 8px; flex: none;
}
.more-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.more-link i { transition: transform .2s; }
.more-link:hover i { transform: translateX(-4px); }

/* Project (donation) cards */
.project-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.project-meta strong { color: var(--ink); }
.project-tag { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; }

/* News */
.news-date { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 13.5px; }
.news-feature .media { aspect-ratio: 16 / 10; }

/* Events */
.event-date {
  flex: none; width: 76px; text-align: center; background: var(--green); color: var(--on-green);
  border-radius: var(--radius-arch) var(--radius-arch) var(--radius-md) var(--radius-md); padding: 16px 6px 10px;
}
.event-date .d { font-family: var(--font-display); font-size: 28px; font-weight: 700; display: block; line-height: 1.1; }
.event-date .m { font-size: 13px; display: block; }
.event-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.event-row .info { min-width: 0; }
.event-info { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-muted); }
.countdown { display: flex; gap: 10px; flex-wrap: wrap; direction: rtl; }
.countdown div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); padding: 10px 14px; min-width: 74px; text-align: center; }
.countdown b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--gold); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 13px; color: var(--on-deep-muted); }

/* Testimonials */
.quote-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); height: 100%; display: flex; flex-direction: column; gap: 16px; }
.quote-card .bi-quote { font-size: 40px; color: var(--gold); line-height: 1; }
.quote-card blockquote { font-size: 17px; margin: 0; flex: 1; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; font-family: var(--font-display); flex: none; }
.quote-by small { color: var(--ink-muted); display: block; }

/* Partners */
.partners-track { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.partners-row { display: flex; gap: 20px; width: max-content; animation: marquee 40s linear infinite; }
.partners-track:hover .partners-row { animation-play-state: paused; }
.partner-logo {
  width: 180px; height: 92px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line);
  background: var(--surface-raised); border-radius: var(--radius-md); color: var(--ink-muted); font-weight: 600; font-size: 14px; padding: 8px; gap: 4px;
}
.partner-logo i { font-size: 24px; color: var(--green); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); }
.cta-band h2 { margin-bottom: 8px; }

/* Chairman */
.signature { font-family: var(--font-display); color: var(--green); font-size: 20px; }

/* 10. Inner page hero -------------------------------------------------------- */
.page-hero { padding-block: clamp(40px, 6vw, 72px); }
.page-hero h1 { margin-bottom: 8px; }
.page-hero .lead { color: var(--on-deep-muted); max-width: 640px; margin: 0; }
.breadcrumb { --bs-breadcrumb-divider-color: var(--on-deep-muted); --bs-breadcrumb-item-active-color: var(--gold); margin-bottom: 14px; font-size: 14px; }
.breadcrumb a { color: var(--on-deep-muted); }
.breadcrumb a:hover { color: var(--on-deep); }
.breadcrumb-item + .breadcrumb-item::before { float: right; padding-left: var(--bs-breadcrumb-item-padding-x); padding-right: 0; content: "‹"; }

/* 11. About ----------------------------------------------------------------- */
.vm-card { padding: var(--space-5); border-radius: var(--radius-lg); height: 100%; }
.vm-card.vision { background: var(--deep); color: var(--on-deep); }
.vm-card.vision h3, .vm-card.vision p { color: var(--on-deep); }
.vm-card.mission { background: var(--sand); }
.vm-card .field-icon { margin-bottom: 16px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .ico { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 22px; flex: none; }
.value-item h4 { font-size: 18px; margin-bottom: 4px; }
.value-item p { margin: 0; color: var(--ink-muted); font-size: 15px; }

.timeline { position: relative; display: grid; gap: var(--space-4); padding-inline-start: 36px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; inset-inline-start: -32px; top: 8px; width: 16px; height: 20px; border-radius: 8px 8px 3px 3px; background: var(--gold); }
.tl-year { font-family: var(--font-display); color: var(--green); font-weight: 700; font-size: 18px; }
.tl-item p { margin: 0; color: var(--ink-muted); }

.goal-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.goal-list li { display: flex; gap: 12px; align-items: flex-start; }
.goal-list i { color: var(--gold-ink); font-size: 18px; margin-top: 3px; }

/* 12. Team ------------------------------------------------------------------ */
.team-card { text-align: center; padding: var(--space-4); }
.team-card .media { width: 128px; margin: 0 auto 14px; aspect-ratio: 3 / 3.6; }
.team-card h4 { font-size: 17px; margin-bottom: 2px; }
.team-card .role { color: var(--gold-ink); font-size: 14px; font-weight: 600; }
.team-card .social { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.team-card .social a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-muted); }
.team-card .social a:hover { color: var(--green); border-color: var(--green); }

/* 13. Org chart ------------------------------------------------------------- */
.org-chart { overflow-x: auto; padding-bottom: 8px; }
.org { min-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.org-level { display: flex; justify-content: center; gap: 16px; position: relative; flex-wrap: nowrap; }
.org-node { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 18px; font-weight: 600; font-size: 14.5px; text-align: center; position: relative; min-width: 130px; }
.org-node.top { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.org-node.mid { background: var(--green); color: var(--on-green); border-color: var(--green); }
.org-node.side { background: var(--sand); }
.org-level + .org-level::before { content: ""; position: absolute; top: -28px; left: 50%; width: 2px; height: 14px; background: var(--line); }
.org-level.branch .org-node::before { content: ""; position: absolute; top: -14px; left: 50%; width: 2px; height: 14px; background: var(--line); }
.org-level.branch { padding-top: 0; border-top: 2px solid var(--line); padding-block-start: 14px; }

/* 14. Documents (governance) ----------------------------------------------- */
.doc-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: var(--surface-raised);
  border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color .2s;
}
.doc-item:hover { border-color: var(--green); }
.doc-icon { width: 44px; height: 52px; border-radius: 6px 14px 6px 6px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 22px; flex: none; }
.doc-item .info { flex: 1; min-width: 0; }
.doc-item h4 { font-size: 16px; margin: 0; }
.doc-item small { color: var(--ink-muted); }
.license-card { background: var(--surface-raised); border: 2px solid var(--gold); border-radius: var(--radius-lg); padding: var(--space-5); position: relative; }
.license-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 0; }
.license-card dt { color: var(--ink-muted); font-weight: 500; }
.license-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 15. Donate page ------------------------------------------------------------ */
.donate-panel { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); }
.donate-step { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; margin-bottom: 14px; }
.donate-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--on-green); display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.type-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.type-tile input { position: absolute; opacity: 0; pointer-events: none; }
.type-tile { position: relative; }
.type-tile label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; text-align: center; font-weight: 600; background: var(--surface); height: 100%; transition: .15s; }
.type-tile label i { font-size: 24px; color: var(--green); }
.type-tile input:checked + label { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-soft); }
.type-tile input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }
.pay-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.summary-box { background: var(--sand); border-radius: var(--radius-md); padding: var(--space-4); }
.summary-box .total { font-family: var(--font-display); font-size: 28px; color: var(--green); font-variant-numeric: tabular-nums; }
.bank-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px; }
.bank-card .iban { direction: ltr; text-align: left; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: var(--sand); padding: 8px 10px; border-radius: var(--radius-sm); word-break: break-all; }
.copy-btn { border: 0; background: none; color: var(--green); font-weight: 600; font-size: 14px; padding: 0; }

/* 16. Membership ------------------------------------------------------------ */
.tier { padding: var(--space-5); text-align: center; }
.tier.featured { background: var(--deep); color: var(--on-deep); border-color: var(--deep); }
.tier.featured h3, .tier.featured p, .tier.featured li { color: var(--on-deep); }
.tier .price { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.tier.featured .price { color: var(--gold); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 24px; text-align: start; display: grid; gap: 10px; }
.tier li { display: flex; gap: 10px; font-size: 15px; }
.tier li i { color: var(--success); }
.tier.featured li i { color: var(--gold); }

/* 17. Jobs ------------------------------------------------------------------ */
.job-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; }
.job-row .info { flex: 1; min-width: 220px; }
.job-row h4 { font-size: 18px; margin-bottom: 6px; }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-muted); }
.job-tags span { display: inline-flex; gap: 6px; align-items: center; }

/* 18. Gallery --------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { border: 0; padding: 0; background: none; border-radius: var(--radius-md); overflow: hidden; position: relative; cursor: zoom-in; display: block; width: 100%; }
.gallery-item .media { aspect-ratio: 1 / 1; transition: transform .4s; }
.gallery-item:hover .media { transform: scale(1.04); }
.gallery-item .cap { position: absolute; inset-inline: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-size: 14px; font-weight: 600; text-align: start;
  background: linear-gradient(transparent, rgba(8, 30, 27, .78)); }
.gallery-item .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.4); }

/* 19. Contact --------------------------------------------------------------- */
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--green); color: var(--gold); display: grid; place-items: center; font-size: 20px; flex: none; }
.contact-item h4 { font-size: 16px; margin: 0 0 2px; }
.contact-item p, .contact-item a { margin: 0; color: var(--ink-muted); }
.map-box { border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; height: 100%; }
.map-box .media { height: 100%; min-height: 280px; aspect-ratio: auto; }

/* 20. Article --------------------------------------------------------------- */
.article { font-size: 17.5px; line-height: 2; max-width: 760px; }
.article h2 { font-size: 24px; margin-top: 32px; }
.article blockquote { border-inline-start: 0; background: var(--sand); padding: 20px 24px; border-radius: var(--radius-md); font-size: 18px; margin: 24px 0; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sidebar-box { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.sidebar-box + .sidebar-box { margin-top: var(--space-4); }
.mini-news { display: flex; gap: 12px; align-items: center; color: var(--ink); }
.mini-news .media { width: 76px; flex: none; aspect-ratio: 1; border-radius: var(--radius-sm); }
.mini-news .media > i { font-size: 22px; }
.mini-news h5 { font-size: 14.5px; margin: 0 0 2px; line-height: 1.6; }
.mini-news + .mini-news { margin-top: 14px; }

/* 21. Newsletter & footer --------------------------------------------------- */
.newsletter { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter .form-control { flex: 1; min-width: 200px; }
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: 72px 0; position: relative; overflow: hidden; }
.site-footer h5 { color: var(--on-deep); font-size: 17px; margin-bottom: 18px; }
.site-footer a { color: var(--on-deep-muted); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand, .site-footer .brand:hover { color: var(--on-deep); }
.site-footer .brand-tag { color: var(--on-deep-muted); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; }
.footer-contact i { color: var(--gold); margin-inline-end: 8px; }
.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-social a { width: 40px; height: 40px; border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; font-size: 17px; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.license-strip { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 12px 16px; font-size: 14px; color: var(--on-deep); }
.license-strip i { color: var(--gold); font-size: 22px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding-block: 20px; font-size: 14px; }
.site-footer .newsletter .form-control { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: var(--on-deep); }
.site-footer .newsletter .form-control::placeholder { color: var(--on-deep-muted); }

/* 22. Utilities: back to top, floating WhatsApp, reveal --------------------- */
.to-top, .wa-float {
  position: fixed; inset-inline-end: 20px; z-index: 1020; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px; box-shadow: var(--shadow-card); border: 0; transition: .25s;
}
.to-top { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--green); color: var(--on-green); opacity: 0; visibility: hidden; transform: translateY(10px); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.wa-float { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); background: #1F8F4E; color: #fff; }
.wa-float:hover { color: #fff; transform: scale(1.06); }
.reveal.is-in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(18px); opacity: .35; } to { transform: none; opacity: 1; } }
.toast-wrap { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 20px; z-index: 1090; }
.empty-state { text-align: center; padding: 48px 16px; color: var(--ink-muted); }
.empty-state i { font-size: 40px; color: var(--gold); display: block; margin-bottom: 8px; }

/* 23. Legal pages ------------------------------------------------------------ */
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--ink); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc a { display: block; padding: 6px 12px; border-inline-start: 2px solid var(--line); color: var(--ink-muted); font-size: 15px; }
.toc a:hover { color: var(--green); border-color: var(--gold); }

/* 24. 404 -------------------------------------------------------------------- */
.error-num { font-family: var(--font-display); font-size: clamp(90px, 18vw, 180px); color: var(--green); line-height: 1; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* 25. Small helpers ----------------------------------------------------------- */
.search-box { max-width: 320px; width: 100%; }
.sticky-panel { position: sticky; top: calc(var(--header-h) + 20px); }
.total-amount { color: var(--green); }
.text-gold-ink { color: var(--gold-ink) !important; }
.newsletter-copy { max-width: 520px; }
.text-end[dir="ltr"] { text-align: right !important; }

/* 26. Layout fixes ------------------------------------------------------------- */
/* Large gutters overflow the 12px container padding on phones */
@media (max-width: 991.98px) {
  .row.g-5, .row.gy-5 { --bs-gutter-x: 1.5rem; }
  .hero-arches { max-width: 340px; }
}
/* Six-figure impact grid: 2 → 3 → 6 columns */
.stats-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .stats-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .stats-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } .stats-6 .stat-value { font-size: 34px; } }
.stat { min-width: 0; }
@media (max-width: 575.98px) { .stats-grid .stat-value { font-size: 28px; } .stat { padding: 18px; } }

/* 14. Brand identity (Brand Guidelines 2026) ------------------------------- */
/* Official horizontal logo in the header, white variant on dark bands */
.brand img.brand-logo, .brand-logo { height: 54px; width: auto; display: block; }
.site-footer .brand img.brand-logo { height: 64px; }
@media (max-width: 575.98px) { .brand img.brand-logo { height: 40px; } }
:root[data-theme="dark"] .site-header .brand-logo { content: url("../img/brand/logo-white.png"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-header .brand-logo { content: url("../img/brand/logo-white.png"); } }

/* Program illustrations (transparent PNGs) sit inside the frame instead of being cropped */
.media.is-illustration { background: linear-gradient(160deg, var(--sand), var(--green-soft)); }
.media.is-illustration > img { object-fit: contain; padding: 14px; }
.media.is-illustration::after { opacity: .5; }

/* Hero photos in the arch frames */
.hero-arches .media > img { object-fit: cover; }

/* Accents: turquoise eyebrows and a green "pulse" underline under section titles */
.eyebrow { color: var(--turquoise); }
.band-deep .eyebrow, .cta-band.band-deep .eyebrow { color: #9BE3D0; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--gold), var(--turquoise));
}
.section-head.center h2::after { margin-inline: auto; }

/* Quranic verse banner */
.verse-banner { max-width: 760px; margin: 0 auto; display: block; width: 100%; height: auto; }
:root[data-theme="dark"] .verse-banner { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .verse-banner { filter: invert(1) hue-rotate(180deg); } }

/* Partner logos as images */
.partner-logo img { max-height: 64px; width: auto; max-width: 140px; object-fit: contain; }

/* Values chips (المؤسسية · الشمولية · الإنتاجية) */
.value-pill { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: var(--radius-arch);
  background: var(--surface-raised); border: 1px solid var(--line); box-shadow: var(--shadow-card); font-weight: 700; font-size: 18px; color: var(--green); }
.value-pill i { color: var(--gold-ink); font-size: 22px; }
/* Board photos from the corporate profile are round portraits */
.team-card .media { width: 150px; aspect-ratio: 1 / 1; border-radius: 50%; }
.site-footer p { color: var(--on-deep-muted); }

/* 15. Hero slider ---------------------------------------------------------- */
.hero-slider { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 104px); }
.hero-slider .campaign-chip { margin-bottom: 8px; }
.hero-slider .carousel-item { transition: opacity .9s ease; }
.hero-slider .h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.4; color: var(--on-deep); }
.hero-slider .accent { color: var(--gold); }
.hero-copy { min-height: 300px; display: flex; flex-direction: column; justify-content: center; }

/* Large arch-framed photo with a slow "Ken Burns" zoom on the active slide */
.hero-photo {
  position: relative; overflow: hidden; aspect-ratio: 5 / 4; max-width: 560px; margin-inline: auto;
  border: 5px solid color-mix(in srgb, var(--on-deep) 14%, transparent);
  background: color-mix(in srgb, var(--on-deep) 8%, transparent); display: grid; place-items: center;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.hero-photo > i { font-size: 72px; color: var(--on-deep-muted); }
.carousel-item.active .hero-photo > img { animation: hero-zoom 7s ease-out forwards; }
@keyframes hero-zoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }

/* Text slides up as each slide becomes active */
.carousel-item.active .hero-copy > * { animation: hero-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.carousel-item.active .hero-copy > :nth-child(2) { animation-delay: .12s; }
.carousel-item.active .hero-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Controls: arrows + progress-bar indicators */
.hero-controls { display: flex; align-items: center; gap: 14px; margin-top: var(--space-5); }
.hero-nav {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: var(--on-deep); transition: background .2s;
}
.hero-nav:hover, .hero-nav:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.hero-indicators { position: static; margin: 0; justify-content: flex-start; gap: 8px; flex: 1; }
.hero-indicators [data-bs-target] {
  width: 56px; height: 5px; margin: 0; border: 0; border-radius: 5px; padding: 0; opacity: 1; text-indent: 0;
  background: rgba(255, 255, 255, .22); overflow: hidden; position: relative; box-sizing: content-box; border-block: 8px solid transparent; background-clip: padding-box;
}
.hero-indicators [data-bs-target] span { position: absolute; inset: 0; width: 0; background: var(--gold); border-radius: 5px; }
.hero-indicators .active span { animation: hero-progress 6s linear forwards; }
.hero-slider:hover .hero-indicators .active span { animation-play-state: paused; }
@keyframes hero-progress { to { width: 100%; } }
.hero-slider .hero-trust { margin-top: var(--space-4); }

@media (max-width: 991.98px) {
  .hero-copy { min-height: 0; }
  .hero-photo { max-width: 420px; aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .carousel-item { transition: none; }
  .carousel-item.active .hero-photo > img, .carousel-item.active .hero-copy > *, .hero-indicators .active span { animation: none; }
  .hero-indicators .active span { width: 100%; }
}
