/* Design fonts — QomraArabic primary Arabic; STOLZL_MEDIUM for numbers */
@font-face {
  font-family: "Stolzl";
  src: url("fonts/STOLZL_MEDIUM.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Stolzl";
  src: url("fonts/STOLZL_MEDIUM.TTF") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Stolzl";
  src: url("fonts/STOLZL_MEDIUM.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QomraArabic";
  src: url("fonts/QomraArabic-Medium.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QomraArabic";
  src: url("fonts/QomraArabic-Medium.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QomraArabic";
  src: url("fonts/QomraArabic-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "QomraArabic";
  src: url("fonts/QomraArabic-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FFShamel";
  src: url("fonts/FFShamel-Book.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FFShamel";
  src: url("fonts/alfont_com_AlFont_com_FFShamelFamily-SansOneBold-1.ttf") format("truetype"),
       url("fonts/FFShamel-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "FFShamel";
  src: url("fonts/alfont_com_AlFont_com_FFShamelFamily-SansOneBold-1.ttf") format("truetype"),
       url("fonts/FFShamel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeueArabic";
  src: url("fonts/HelveticaNeueLT Arabic 45 Light.ttf") format("truetype"),
       url("fonts/HelveticaNeueArabic-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HelveticaNeueArabic";
  src: url("fonts/HelveticaNeueArabic-Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "AlJazeera";
  src: url("fonts/AlJazeera-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Exact colors from حملة ٩ ب ٩٩-1.ai */
  --c99-red: #891b1d;
  --c99-red-dark: #6d161a;
  --c99-gold: #c49a5c;
  --c99-brown: #a67c5b;
  --c99-tan: #b29074; /* AI footer/accent sample */
  --c99-cream: #f7f4ef;
  --c99-bg: #f3f1ec;
  --c99-white: #ffffff;
  --c99-text: #4d4d4d;
  --c99-muted: #808080;
  --c99-muted-2: #666666;
  --c99-green: #3d6b4f;
  --c99-radius: 12px;
  --c99-radius-sm: 12px;
  --c99-max: 430px;

  /* itfQomra primary Arabic; STOLZL_MEDIUM for all numbers */
  --c99-font-display: "Stolzl", "QomraArabic", sans-serif;
  --c99-font-nums: "Stolzl", sans-serif;
  --c99-font-title: "QomraArabic", sans-serif;
  --c99-font-body: "QomraArabic", sans-serif;
  --c99-font-ui: "QomraArabic", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.c99-body {
  margin: 0;
  direction: rtl;
  text-align: center;
  background: var(--c99-bg);
  color: var(--c99-text);
  font-family: var(--c99-font-body);
  font-weight: 400; /* itfQomra Medium */
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.c99-page {
  max-width: var(--c99-max);
  margin: 0 auto;
  background: var(--c99-white);
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.06);
}

/* ——— Header + Hero shared patterned background ——— */
.c99-top {
  position: relative;
  overflow: visible; /* allow CTA to overlap out of hero */
  background-color: transparent;
}

.c99-top-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Direct children except the bg sit above it */
.c99-top > *:not(.c99-top-bg) {
  position: relative;
  z-index: 1;
}

/* ——— Header ———
   Design: logos physical LEFT · menu physical RIGHT.
   Page is dir=rtl, so we force LTR flex + explicit order. */
.c99-header {
  direction: ltr !important;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.c99-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  order: 1;
}

/* Keep <picture> out of the box tree so logo max-width % matches pre-WebP sizing */
.c99-logos picture,
.c99-footer-logos picture {
  display: contents;
}

.c99-logo {
  width: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.c99-logo--altamayuz {
  height: 74px;
  max-width: 46%;
}

.c99-logo--mutamayizeen {
  height: 70px;
  max-width: 42%;
}

.c99-logo-divider {
  width: 1px;
  height: 58px;
  background: #c5c5c5;
  flex-shrink: 0;
  align-self: center;
}

.c99-menu-btn {
  order: 2;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: #9a9a9a;
  padding: 0;
}

.c99-menu-btn img {
  width: 28px;
  height: auto;
  display: block;
}

.c99-menu-btn svg {
  width: 28px;
  height: 28px;
}

/* ——— Hero ——— */
.c99-hero {
  position: relative;
  padding: 4px 0 0;
  background: transparent;
}

.c99-hero-copy {
  padding: 0 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* margins handle optical spacing (Qomra metrics skew flex gap) */
}

.c99-hero-visual {
  position: relative;
  margin: 10px 0 0;
  padding: 0; /* full-bleed — flush to section edges */
  line-height: 0; /* no gap under image */
  background: transparent;
}

.c99-hero-visual > picture:first-child {
  display: block;
  width: 100%;
  line-height: 0;
}

.c99-hero-visual img.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  vertical-align: bottom;
}

.c99-hero-title {
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-weight: 500;
  font-size: 84px;
  line-height: 0.95;
  color: var(--c99-red);
  margin: 12px 0 8px;
  letter-spacing: -1px;
  direction: ltr;
  unicode-bidi: isolate;
}

.c99-hero-sub {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-size: 22px;
  color: var(--c99-text);
  margin: 0 0 14px;
  font-weight: 300;
  line-height: 1.15;
  white-space: nowrap;
}

.c99-hero-lead {
  /* itfQomraArabic-Bold — single safe line on mobile */
  font-family: "QomraArabic", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--c99-red-dark);
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

.c99-hero-note {
  /* HelveticaNeueLT Arabic 45 Light — single safe line on mobile */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 22px;
  color: var(--c99-text);
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .c99-hero-title {
    font-size: 72px;
  }

  .c99-hero-lead {
    font-size: 20px;
  }

  .c99-hero-sub,
  .c99-hero-note {
    font-size: 18px;
  }
}

.c99-zakat-badge {
  position: absolute;
  left: 35%;
  right: auto;
  bottom: 23%;
  width: 68px;
  height: auto;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18));
}

.c99-zakat {
  position: absolute;
  right: 18px;
  bottom: 40px;
  background: var(--c99-brown);
  color: #fff;
  border-radius: var(--c99-radius);
  padding: 12px 10px;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.c99-zakat.red {
  background: var(--c99-red);
  right: 22px;
  bottom: 22px;
}

.c99-zakat .check {
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 19px;
}

.c99-zakat span {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--c99-font-title);
}

/* ——— CTA ——— */
.c99-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c99-red);
  color: #fff !important;
  border-radius: var(--c99-radius);
  /* FFShamel has extra descender space — bias padding up so text looks optically centered */
  padding: 16px 36px 10px;
  font-family: "FFShamel", sans-serif; /* alfont FFShamelFamily-SansOneBold */
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  transition: background 0.2s ease, transform 0.15s ease;
  min-width: 180px;
  /* Keep label then heart (page RTL was flipping heart first) */
  direction: ltr;
  unicode-bidi: isolate;
}

.c99-btn:hover {
  background: var(--c99-red-dark);
}

.c99-btn:active {
  transform: scale(0.98);
}

.c99-btn .heart {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  /* Match optical shift of Arabic glyphs */
  transform: translateY(-1px);
}

.c99-btn .heart img {
  width: 14px;
  height: auto;
  display: block;
}

.c99-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 8px 20px 28px;
  background: transparent;
}

/* Straddle section boundaries: half on each, no white band */
.c99-btn-wrap.overlap {
  background: transparent;
  margin-top: -25px;
  margin-bottom: -28px;
  padding: 0 20px;
  position: relative;
  z-index: 5;
}

.c99-btn-wrap.overlap .c99-btn {
  box-shadow: 0 8px 20px rgba(139, 30, 30, 0.25);
}

/* Story → support: keep a bit more breathing room below the CTA */
.c99-btn-wrap.overlap:has(+ .c99-section.cream:has(.c99-icons)) {
  margin-bottom: 42px;
}

/* ——— Story / Hadith ——— */
.c99-section {
  padding: 55px 22px;
  background: #f9fcf5;
}

.c99-section.cream {
  background: #ffffff;
  padding-top: 46px;
}

.c99-section.cream:has(.c99-hadith) {
  background: #efefef;
  padding-bottom: 28px;
}

.c99-section.muted {
  background: #efeeea;
}

.c99-hadith-label {
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 25px;
  color: var(--c99-text);
  margin: 0 0 9px;
}

.c99-hadith {
  font-family: var(--c99-font-title); /* Qomra Medium 56.7pt */
  font-size: 31px;
  font-weight: 500;
  color: var(--c99-red);
  line-height: 1.6;
  margin: 0 0 22px;
}

.c99-copy {
  font-family: var(--c99-font-body); /* Helvetica Light 40pt */
  font-weight: 300;
  font-size: 23px;
  color: var(--c99-text);
  margin: 0 0 14px;
  line-height: 1.85;
}

.c99-copy.emphasis {
  font-weight: 400; /* Helvetica Roman 40pt */
  margin-bottom: 6px;
}

/* Hadith body — one paragraph, equal line-height; last line accent color only */
.c99-copy.c99-copy--hadith-lead {
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  color: var(--c99-text);
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 0 14px;
  padding-inline: 0;
}

.c99-copy.c99-copy--hadith-lead > span {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  font-weight: 300;
  color: inherit;
}

.c99-copy.c99-copy--hadith-lead > span.c99-hadith-accent-line {
  color: #000000;
  font-weight: 400;
}

@media (max-width: 380px) {
  .c99-copy.c99-copy--hadith-lead {
    font-size: 15px;
  }
}

.c99-photo-card {
  position: relative;
  border-radius: var(--c99-radius);
  overflow: hidden;
  background: var(--c99-tan);
  margin-top: 20px;
}

.c99-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
}

/* ——— Section 2 visual + overlapping white donate card ——— */
.c99-s2 {
  position: relative;
  padding: 8px 18px 32px;
  background: #efefef;
}

.c99-s2-visual {
  border-radius: var(--c99-radius);
  overflow: hidden;
  line-height: 0;
  background: #a39184;
}

.c99-s2-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.c99-s2 .c99-donate-card {
  /* % margin is vs container width ≈ image empty taupe band (~42–48% of image height) */
  margin-top: -48%;
  margin-inline: 8px;
  position: relative;
  z-index: 2;
}

/* ——— Donation widget ——— */
.c99-donate-wrap {
  padding: 10px 18px 28px;
  position: relative;
}

.c99-donate-card {
  background: var(--c99-white);
  border-radius: var(--c99-radius);
  padding: 28px 20px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.c99-donate-price {
  font-size: 72px;
  font-weight: 500;
  color: var(--c99-red);
  margin: 0 0 -5px;
  line-height: 1;
}

.c99-donate-price-num {
  font-family: var(--c99-font-nums), sans-serif; /* STOLZL_MEDIUM */
  font-weight: 500;
}

.c99-donate-price-cur {
  /* itfQomraArabic-Bold */
  font-family: "QomraArabic", sans-serif;
  font-weight: 700;
}

.c99-donate-desc {
  /* HelveticaNeueLT Arabic 45 Light — two locked lines */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 21px;
  color: var(--c99-muted);
  margin: 0 0 22px;
  line-height: 1.45;
  text-align: center;
}

.c99-donate-desc > span {
  white-space: nowrap;
}

.c99-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.c99-preset {
  background: #f0efed;
  border-radius: var(--c99-radius);
  padding: 16px 4px 10px;
  font-size: 15px;
  line-height: 1;
  color: var(--c99-muted-2);
  font-family: "FFShamel", sans-serif;
  font-weight: 400;
  border: 1.5px solid transparent;
  transition: border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.c99-preset.is-active {
  border-color: var(--c99-red);
  background: #fff;
  color: var(--c99-red);
  font-weight: 400;
}

.c99-custom {
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e0dc;
  border-radius: var(--c99-radius);
  overflow: hidden;
  margin-bottom: 16px;
  background: #fff;
  min-height: 52px;
}

.c99-custom input {
  flex: 1;
  border: none;
  outline: none;
  /* FFShamel extra descender — bias padding up for optical vertical center */
  padding: 18px 14px 10px;
  font-family: "FFShamel", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  text-align: right;
  background: transparent;
  color: var(--c99-text);
  min-width: 0;
  height: 52px;
  box-sizing: border-box;
}

.c99-custom input::placeholder {
  color: #aaa;
  font-family: "FFShamel", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  /* Optical nudge — placeholder sits low in FFShamel metrics */
  position: relative;
  top: -2px;
  opacity: 1;
}

.c99-custom .currency {
  background: var(--c99-red);
  color: #fff;
  padding: 2px 14px 0;
  display: grid;
  place-items: center;
  font-family: "FFShamel", sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}

.c99-donate-card .c99-btn {
  width: 100%;
  padding: 14px 16px 10px; /* optical center for FFShamel */
  font-size: 20px;
  gap: 10px;
  /* RTL: label (تبرع الآن) on the right, amount « KD » on the left — matches design */
  direction: rtl;
}

.c99-donate-card .c99-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: ltr; /* keep تبرع الآن then heart */
  unicode-bidi: isolate;
  font-family: "FFShamel", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.c99-donate-card .c99-btn-price {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "FFShamel", sans-serif;
  font-weight: 700;
  font-size: 20px;
}

.c99-donate-card .c99-btn .c99-btn-amount {
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-weight: 500;
  font-size: 20px;
}

.c99-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-family: "FFShamel", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--c99-muted-2);
}

.c99-secure-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  margin-bottom: 8px;
}

/* ——— Progress ——— */
.c99-progress {
  padding: 8px 18px 70px;
  background: #efefef;
}

.c99-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.c99-stat-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.c99-stat-card {
  width: 100%;
  min-height: 88px;
  border-radius: var(--c99-radius);
  padding: 18px 16px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 14px;
  direction: ltr; /* icon left of number, as in design */
  box-sizing: border-box;
}

.c99-stat-card.primary {
  background: var(--c99-red);
  border-color: var(--c99-red);
  color: #fff;
}

.c99-stat-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.c99-stat-card .num {
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  color: var(--c99-red);
}

.c99-stat-card.primary .num {
  color: #fff;
}

.c99-stat-block .label {
  font-family: "FFShamel", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #808080;
  text-align: center;
  line-height: 1.3;
}

.c99-raised {
  background: var(--c99-tan);
  border-radius: var(--c99-radius);
  padding: 18px 22px;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-size: 65px;
  font-weight: 500;
  letter-spacing: 0.5px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3em;
  direction: ltr;
}

.c99-raised .kd {
  font-size: 31px;
}

.c99-bar {
  background: #fff;
  border: 1px solid #e6e4e0;
  border-radius: var(--c99-radius);
  height: 48px;
  display: flex;
  align-items: center;
  padding: 5px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  direction: ltr; /* icon on left, fill from right — matches PDF */
}

.c99-bar-icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  margin-inline-start: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.c99-bar-fill {
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: 5px;
  height: auto;
  background: var(--c99-red);
  border-radius: var(--c99-radius);
  display: flex;
  align-items: center;
  justify-content: flex-start; /* % toward left of fill, as in PDF */
  padding-inline-start: 16px;
  color: #fff;
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-weight: 500;
  font-size: 25px;
  min-width: 56px;
  /* Fill lives inside the 5px padding, so 100% must not overflow the left edge */
  width: calc((100% - 10px) * var(--p, 0) / 100);
  transition: width 0.8s ease;
  z-index: 1;
}

/* From ~85% the fill reaches the icon: show it white on red and push the % past it */
.c99-bar.is-high .c99-bar-icon {
  filter: brightness(0) invert(1);
}

.c99-bar.is-high .c99-bar-fill {
  padding-inline-start: 46px;
}

.c99-goal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border-radius: var(--c99-radius);
  overflow: hidden;
}

.c99-goal-row > div {
  padding: 16px 12px;
}

.c99-goal-row > div + div {
  border-inline-start: 1px solid #e8e6e2;
}

.c99-goal-row .tag {
  font-family: var(--c99-font-ui); /* FF Shamel Book 36.2pt */
  font-size: 20px;
  color: #03443D;
  margin-bottom: 4px;
  font-weight: 400;
}

.c99-goal-row .val {
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-size: 34px;
  font-weight: 500;
  color: var(--c99-red);
  line-height: 1.1;
}

.c99-goal-row .val.muted {
  color: #555;
}

/* ——— Impact ——— */
.c99-impact-heading {
  font-family: var(--c99-font-title); /* Qomra Bold — maroon heading */
  font-size: 34px;
  font-weight: 700;
  color: var(--c99-red);
  margin: 0 0 -5px;
  line-height: 1.35;
}

.c99-impact-title {
  /* HelveticaNeueLT Arabic 45 Light — match .c99-section-sub */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 23px;
  color: var(--c99-muted);
  margin: 0 0 18px;
  line-height: 1.6;
}

.c99-impact-photo {
  border-radius: var(--c99-radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.c99-impact-photo img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.c99-impact-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #CBCBCB;
  border-radius: var(--c99-radius);
  overflow: hidden;
  margin-bottom: 50px;
  background: #F2F2F2;
}

.c99-impact-stats > div {
  position: relative;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.c99-impact-stats > div + div::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: #CBCBCB;
}

.c99-impact-stats .ico {
  width: 28px;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  margin-bottom: 4px;
  display: block;
}

.c99-impact-stats .n {
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM */
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
  color: var(--c99-red);
}

.c99-impact-stats .l {
  font-family: "FFShamel", sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--c99-muted);
  white-space: nowrap;
  line-height: 1.2;
}

.c99-section-title {
  font-family: var(--c99-font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--c99-red);
  margin: 0 0 -5px;
  line-height: 1.3;
}

.c99-section-sub {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 23px;
  color: var(--c99-muted);
  margin: 0 0 20px;
}

/* ——— Stories ——— */
.c99-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 auto 18px;
  max-width: 100%;
  padding: 5px;
  background: #F2F2F2;
  border: 1px solid #CBCBCB;
  border-radius: var(--c99-radius);
  flex-wrap: nowrap;
}

.c99-tab {
  flex: 1 1 0;
  background: transparent;
  border: none;
  border-radius: var(--c99-radius);
  padding: 12px 14px;
  font-size: 22px;
  color: var(--c99-muted);
  font-family: var(--c99-font-body);
  font-weight: 300;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.c99-tab.is-active {
  background: #ffffff;
  border: none;
  color: var(--c99-muted-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-weight: 400;
}

.c99-tab:not(.is-active):hover {
  color: var(--c99-text);
}

.c99-story-card {
  background: #fff;
  border-radius: var(--c99-radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
  padding: 10px 10px 0;
}

.c99-story-card img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--c99-radius);
  display: block;
}

.c99-story-card .body {
  padding: 14px 10px 20px;
}

.c99-story-card h3 {
  font-family: var(--c99-font-title);
  font-size: 26px;
  font-weight: 700;
  color: var(--c99-red);
  margin: 0 0 -5px;
  line-height: 1.4;
}

.c99-story-card .meta {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 23px;
  color: var(--c99-muted);
  margin: 0;
}

.c99-story-panel .c99-copy {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 23px;
  line-height: 1.5;
  text-align: right;
}

/* support section (cream + icons) body */
.c99-section.cream:has(.c99-icons) {
  /* Extra space above «ما الذي تدعمه الكفالة؟» after overlapping CTA */
  padding-top: 64px;
}

.c99-section.cream:has(.c99-icons) > .c99-copy {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 21px;
  line-height: 1.5;
}

.c99-story-panel {
  display: none;
}

.c99-story-panel.is-active {
  display: block;
}

/* ——— Support ——— */
.c99-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  /* Design order is visual L→R: تربوية → ثقافية → رياضية (do not RTL-flip) */
  direction: ltr;
}

.c99-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  direction: rtl; /* keep Arabic labels RTL inside each item */
}

.c99-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.c99-icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.c99-icon-item p {
  margin: 0;
  font-family: var(--c99-font-title); /* Qomra Bold 23.7pt labels */
  font-weight: 700;
  font-size: 19px;
  color: var(--c99-text);
  line-height: 1.4;
}

/* ——— Footer ——— */
.c99-footer {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.c99-footer-top {
  position: relative;
  background: #b29074;
  color: #fff;
  padding: 22px 18px 26px;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start; /* RTL: pack info to the right */
  overflow: hidden;
  direction: rtl;
}

.c99-footer-shape {
  position: absolute;
  left: -101px;
  bottom: -95px;
  width: 58%;
  max-width: 303px;
  height: auto;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.c99-footer-info {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: 78%;
  margin-inline-start: 0;
  margin-inline-end: 0;
  text-align: right;
}

.c99-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 10px;
  direction: rtl;
  text-align: right;
}

.c99-footer-grid .v[dir="ltr"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.c99-footer-grid .h {
  font-family: var(--c99-font-title);
  font-weight: 700;
  font-size: 16px;
  margin: 0 0 -5px;
  color: #fff;
  text-align: right;
}

.c99-footer-grid .v {
  /* HelveticaNeueLT Arabic 45 Light */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.45;
  text-align: right;
  white-space: nowrap;
}

.c99-footer-note {
  margin: 0 0 14px;
  /* HelveticaNeueLT Arabic 45 Light — one line, readable size */
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-align: right;
  white-space: nowrap;
}

.c99-footer-phone,
.c99-footer-email {
  display: block;
  color: #fff !important;
  text-decoration: none;
  font-family: var(--c99-font-nums); /* STOLZL_MEDIUM for phone/email Latin */
  line-height: 1.35;
  text-align: right;
}

.c99-footer-phone {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
  direction: ltr;
  unicode-bidi: isolate;
}

.c99-footer-email {
  font-size: 16px;
  font-weight: 500;
  font-family: var(--c99-font-ui);
  opacity: 0.95;
}

.c99-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 18px;
  background: #fff;
  direction: ltr; /* logos left, social right — matches design */
}

.c99-footer-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.c99-footer-logo {
  height: 42px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.c99-footer-logo--altamayuz {
  height: 44px;
}

.c99-footer-logo--mutamayizeen {
  height: 40px;
}

.c99-footer-logo-divider {
  width: 1px;
  height: 36px;
  background: #d8d5d0;
  flex-shrink: 0;
}

.c99-footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.c99-footer-social a {
  width: 22px;
  height: 32px;
  border-radius: var(--c99-radius);
  background: transparent;
  display: grid;
  place-items: center;
  text-decoration: none;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.c99-footer-social a:hover {
  opacity: 0.85;
  background: transparent;
}

.c99-footer-social img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ——— Nav drawer (simple) ——— */
.c99-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.c99-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.c99-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.c99-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(280px, 80vw);
  height: 100%;
  background: #fff;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  text-align: right;
}

.c99-drawer.is-open .c99-drawer-panel {
  transform: translateX(0);
}

.c99-drawer-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: var(--c99-font-ui);
  font-weight: 400;
  font-size: 25px;
}

.c99-drawer-close {
  margin-bottom: 12px;
  font-size: 34px;
  color: #888;
}

/* ——— Payment popup ——— */
body.c99-pay-open {
  overflow: hidden;
}

.c99-pay {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.c99-pay.is-open {
  pointer-events: auto;
  opacity: 1;
}

.c99-pay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.c99-pay-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: var(--c99-white);
  border-radius: var(--c99-radius);
  padding: 28px 22px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.25s ease;
}

.c99-pay.is-open .c99-pay-panel {
  transform: translateY(0);
}

.c99-pay-close {
  position: absolute;
  top: 6px;
  left: 10px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 4px 8px;
}

.c99-pay-title {
  font-family: var(--c99-font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--c99-red);
  margin: 0 0 8px;
}

.c99-pay-amount {
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: var(--c99-muted);
  margin: 0 0 18px;
}

.c99-pay-amount strong {
  font-family: var(--c99-font-nums);
  font-weight: 500;
  color: var(--c99-text);
}

.c99-pay-msg {
  color: #b42318;
  font-size: 14px;
  margin: 0 0 12px;
}

.c99-pay-methods {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.c99-pay-method {
  cursor: pointer;
  margin: 0;
}

.c99-pay-method input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.c99-pay-method-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s, background-color 0.15s;
}

.c99-pay-method-face img {
  width: 70px;
  height: auto;
  margin: 0 auto;
}

.c99-pay-method input:checked + .c99-pay-method-face {
  border-color: var(--c99-red);
  background: rgba(137, 27, 29, 0.06);
}

.c99-pay-method input:focus-visible + .c99-pay-method-face {
  outline: 2px solid var(--c99-red);
  outline-offset: 2px;
}

.c99-pay-submit {
  width: 100%;
}

.c99-pay-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.c99-pay-hint {
  font-family: "HelveticaNeueArabic", sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: var(--c99-muted);
  margin: 12px 0 0;
}

/* ——— Desktop widen slightly ——— */
@media (min-width: 768px) {
  :root {
    --c99-max: 480px;
  }

  body.c99-body {
    background: #e8e5df;
    padding: 24px 0;
  }

  .c99-page {
    border-radius: var(--c99-radius);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .c99-bar-fill,
  .c99-btn,
  .c99-drawer,
  .c99-drawer-panel,
  .c99-pay,
  .c99-pay-panel {
    transition: none;
  }
}
