/* =====================================================================
   Al-Hikma design system — brand identity (أخضر الحكمة / ذهبي العطاء /
   عاجي النقاء) + Alexandria. Loaded after style_ar.css.
   ===================================================================== */
:root {
  --hk-green: #023D39;      /* أخضر الحكمة — structure, headings, primary actions */
  --hk-green-2: #0b5550;    /* hover / secondary green */
  --hk-green-tint: #e4edeb; /* green wash on white */
  --hk-gold: #D09E3E;       /* ذهبي العطاء — giving: donate buttons, progress */
  --hk-gold-2: #b98a2f;     /* gold hover */
  --hk-gold-tint: #f6ead1;
  --hk-ivory: #F6EEE3;      /* عاجي النقاء — page bands */
  --hk-paper: #ffffff;
  --hk-ink: #142d2a;        /* body text */
  --hk-muted: #5b6a67;
  --hk-line: #e6dccc;       /* hairline on ivory */
  --hk-line-w: #e5ebea;     /* hairline on white */
  --hk-radius: 20px;
  --hk-radius-sm: 12px;
  --hk-shadow: 0 12px 34px rgba(2, 61, 57, .08);
  --hk-shadow-sm: 0 4px 14px rgba(2, 61, 57, .07);
  --hk-font: 'Alexandria', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hk-head-h: 84px;
  --hk-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 7L23.81 10.81L29.19 10.81L29.19 16.19L33 20L29.19 23.81L29.19 29.19L23.81 29.19L20 33L16.19 29.19L10.81 29.19L10.81 23.81L7 20L10.81 16.19L10.81 10.81L16.19 10.81Z' fill='none' stroke='%23D09E3E' stroke-width='1'/%3E%3C/svg%3E");
}

/* ---------- base ---------- */
body {
  font-family: var(--hk-font) !important;
  color: var(--hk-ink);
  background: var(--hk-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6, p, button, input, select, textarea, label, .form-control, .form-select, .btn, .dropdown-item, .nav-link {
  font-family: var(--hk-font) !important;
}
h1, h2, h3 { color: var(--hk-green); letter-spacing: 0; }
::selection { background: var(--hk-gold-tint); color: var(--hk-green); }
:focus-visible { outline: 2px solid var(--hk-gold) !important; outline-offset: 2px; }
.hk-num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- buttons ---------- */
.hk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: 14px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .15s;
}
.hk-btn:active { transform: translateY(1px); }
.hk-btn--give { background: var(--hk-gold); color: var(--hk-green) !important; }
.hk-btn--give:hover { background: var(--hk-gold-2); }
.hk-btn--primary { background: var(--hk-green); color: #fff !important; }
.hk-btn--primary:hover { background: var(--hk-green-2); }
.hk-btn--ghost { background: transparent; color: var(--hk-green) !important; border-color: currentColor; }
.hk-btn--ghost:hover { background: var(--hk-green-tint); }
.hk-btn--light { background: #fff; color: var(--hk-green) !important; }
.hk-btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .92rem; border-radius: 12px; }
.hk-btn--block { width: 100%; }

/* legacy buttons/colours adopt the identity everywhere */
.BTN-1, a.BTN-1, .btn.BTN-1, .fast_donateBtn, .btn-primary, .btn-success {
  background: var(--hk-green) !important; border-color: var(--hk-green) !important; color: #fff !important;
  border-radius: 12px !important; font-weight: 700 !important;
}
.BTN-1:hover, .btn-primary:hover, .btn-success:hover { background: var(--hk-green-2) !important; border-color: var(--hk-green-2) !important; }
.progress { background: var(--hk-green-tint); border-radius: 999px; }
.progress-bar, .bg-success1 { background-color: var(--hk-gold) !important; color: var(--hk-green) !important; font-weight: 700; }
.form-control:focus, .form-select:focus { border-color: var(--hk-green-2); box-shadow: 0 0 0 .2rem rgba(208, 158, 62, .25); }
.form-check-input:checked { background-color: var(--hk-green); border-color: var(--hk-green); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link { background: var(--hk-green) !important; color: #fff !important; }
.text-success { color: var(--hk-green) !important; }

/* ---------- section heads ---------- */
.hk-sec { padding: 64px 0; }
/* a section that is itself the .container keeps the container side padding */
.container.hk-sec { padding-inline: calc(var(--bs-gutter-x, 1.5rem) * .5); }
.hk-sec--ivory { background: var(--hk-ivory); }
.hk-sec__head { max-width: 640px; margin: 0 auto 32px; text-align: center; }
.hk-sec__title, section .sectionHeading h2.section-title, section .sectionHeading h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.25rem) !important; font-weight: 800 !important; color: var(--hk-green) !important;
  line-height: 1.3; margin: 0 0 .5rem;
}
/* the star sits beside the title (at its start), not under it */
.hk-sec__title, section .sectionHeading h2.section-title { display: inline-flex; flex-direction: row; direction: rtl; align-items: center; justify-content: center; gap: 12px; }
.hk-sec__title::before, section .sectionHeading h2.section-title::before,
.hk-sec__title::after, section .sectionHeading h2.section-title::after {
  content: ""; flex: 0 0 auto; order: -1; width: .72em; height: .72em; max-width: 26px; max-height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 4L24.69 8.69L31.31 8.69L31.31 15.31L36 20L31.31 24.69L31.31 31.31L24.69 31.31L20 36L15.31 31.31L8.69 31.31L8.69 24.69L4 20L8.69 15.31L8.69 8.69L15.31 8.69Z' fill='%23D09E3E'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* a star on each side of the title: ::before at the start (right), ::after at the end (left) */
.hk-sec__title::after, section .sectionHeading h2.section-title::after { order: 1; }
.hk-sec__lead, section .sectionHeading p { color: var(--hk-muted); font-size: 1rem; line-height: 1.8; margin: 0; }
@media (max-width: 767.98px) { .hk-sec { padding: 44px 0; } }

/* ---------- header ---------- */
.hk-head {
  position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hk-line-w);
}
.hk-head__bar { display: flex; align-items: center; gap: 24px; min-height: var(--hk-head-h); }
.hk-logo img { height: 56px; width: auto; display: block; }
.hk-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 0; padding: 0; list-style: none; }
.hk-nav > li { position: relative; }
.hk-nav__link {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px; border: 0; background: none;
  color: var(--hk-ink) !important; font-weight: 600; font-size: .98rem; text-decoration: none; border-radius: 10px;
}
.hk-nav__link:hover, .hk-nav > li:focus-within > .hk-nav__link { color: var(--hk-green) !important; background: var(--hk-green-tint); }
.hk-nav__link.is-active { color: var(--hk-green) !important; box-shadow: inset 0 -2px 0 var(--hk-gold); border-radius: 0; }
.hk-nav__link .fa-chevron-down { font-size: .65rem; opacity: .6; }
.hk-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-start: 0; min-width: 260px; padding: 10px;
  background: #fff; border: 1px solid var(--hk-line-w); border-radius: 16px; box-shadow: var(--hk-shadow);
  list-style: none; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .16s ease;
}
.hk-nav > li:hover > .hk-menu, .hk-nav > li:focus-within > .hk-menu { opacity: 1; visibility: visible; transform: none; }
.hk-menu a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--hk-ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.hk-menu a small { color: var(--hk-muted); font-weight: 400; font-size: .8rem; }
.hk-menu a:hover { background: var(--hk-ivory); color: var(--hk-green); }
.hk-head__actions { display: flex; align-items: center; gap: 8px; }
.hk-icon-btn {
  position: relative; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--hk-line-w); background: #fff; color: var(--hk-green) !important; font-size: 1.05rem; text-decoration: none;
}
.hk-icon-btn:hover { background: var(--hk-green-tint); }
.hk-icon-btn .hk-count {
  position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--hk-gold); color: var(--hk-green); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.hk-burger { display: none; }
/* desktop: logo at the start (right), buttons at the far end (left), and the menu between them with the same gap
   on both sides (centring it on the page left a wide gap after the narrow logo and a tight one before the buttons) */
@media (min-width: 1200px) {
  .hk-head__bar { display: flex; justify-content: space-between; }
  .hk-nav { margin: 0; }
}
/* phones + tablets (Al-Maher): menu button at the start, logo centred, search + calculator at the end */
@media (max-width: 1199.98px) {
  .hk-nav, .hk-head__give-desk { display: none !important; }
  .hk-head__bar > nav { display: none; }
  .hk-burger { display: inline-flex; }
  .hk-head__bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
  .hk-head__bar > .hk-burger { justify-self: start; }
  .hk-head__bar > .hk-logo { justify-self: center; }
  .hk-head__bar > .hk-head__actions { justify-self: end; gap: 6px; }
  .hk-logo img { height: 46px; }
  .hk-head .hk-icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid rgba(2, 61, 57, .16); background: #f4f8f7; }
  .hk-burger[aria-expanded="true"] { background: var(--hk-green) !important; color: #fff !important; border-color: var(--hk-green) !important; }
  :root { --hk-head-h: 68px; }
}
/* phones: account + cart live in the bottom bar */
@media (max-width: 767.98px) { .hk-head__actions .hk-head__wide { display: none !important; } }

/* phone/tablet menu panel: drops under the header */
.hk-mmenu { position: absolute; top: 100%; left: 0; right: 0; z-index: 1001; max-height: calc(100vh - var(--hk-head-h) - 12px); overflow-y: auto; overscroll-behavior: contain;
  padding: 14px 0 18px; background: var(--hk-green); border-radius: 0 0 22px 22px; box-shadow: 0 14px 28px rgba(2, 61, 57, .25); animation: hkMenuIn .22s ease-out; }
@keyframes hkMenuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hk-mmenu { animation: none; } }
@media (min-width: 1200px) { .hk-mmenu { display: none !important; } }
.hk-mmenu__list { list-style: none; margin: 0; padding: 0 20px; }
.hk-mmenu__list > li:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
.hk-mmenu__link { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 10px; border: 0; border-radius: 10px; background: none;
  color: #fff !important; font-size: 1rem; font-weight: 700; text-align: start; text-decoration: none; transition: background .2s; }
.hk-mmenu__link > i:first-child { width: 20px; text-align: center; font-size: .95rem; color: rgba(255, 255, 255, .8); }
.hk-mmenu__link:hover { background: rgba(255, 255, 255, .08); }
.hk-mmenu__link.is-active > i:first-child { color: var(--hk-gold); }
.hk-mmenu__link:focus-visible, .hk-mmenu__sublink:focus-visible { outline: 2px solid var(--hk-gold); outline-offset: -2px; }
.hk-mmenu__arrow { margin-inline-start: auto; font-size: .7rem; opacity: .7; transition: transform .25s; }
.hk-mmenu__group.is-open .hk-mmenu__arrow { transform: rotate(-90deg); }
.hk-mmenu__sub { display: none; list-style: none; margin: 0 0 8px; padding: 4px 0; background: rgba(0, 0, 0, .14); border-radius: 12px; }
.hk-mmenu__group.is-open .hk-mmenu__sub { display: block; }
.hk-mmenu__sub li:not(:last-child) { border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hk-mmenu__sublink { display: block; padding: 12px 16px 12px 16px; padding-inline-start: 44px; color: rgba(255, 255, 255, .88) !important; font-size: .92rem; font-weight: 600; text-decoration: none; }
.hk-mmenu__sublink:hover { color: #fff !important; background: rgba(255, 255, 255, .06); }
.hk-mmenu__sublink.is-active { color: var(--hk-gold) !important; }

/* ---------- star gauge (signature) ---------- */
.hk-star-gauge { position: relative; width: 132px; aspect-ratio: 1; flex: 0 0 auto; }
.hk-star-gauge svg { width: 100%; height: 100%; overflow: visible; }
.hk-star-gauge .track { fill: var(--hk-ivory); stroke: var(--hk-line); stroke-width: 6; stroke-linejoin: round; }
.hk-star-gauge .fill { fill: none; stroke: var(--hk-gold); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .7, .2, 1); }
.hk-star-gauge__val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--hk-green); }
.hk-star-gauge__val b { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.hk-star-gauge__val span { font-size: .72rem; color: var(--hk-muted); margin-top: 4px; }

/* ---------- project card (shared) ---------- */
.hk-pcard { height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); overflow: hidden; box-shadow: var(--hk-shadow-sm); transition: transform .2s, box-shadow .2s; }
.hk-pcard:hover { transform: translateY(-3px); box-shadow: var(--hk-shadow); }
.hk-pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hk-ivory); }
.hk-pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.hk-pcard__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px 18px; }
.hk-pcard__title { font-size: 1.05rem; font-weight: 700; line-height: 1.5; color: var(--hk-green); margin: 0; }
.hk-pcard__title a { color: inherit; text-decoration: none; }
.hk-bar { height: 8px; border-radius: 999px; background: var(--hk-green-tint); overflow: hidden; }
.hk-bar > i { display: block; height: 100%; background: var(--hk-gold); border-radius: inherit; }

/* ---------- footer ---------- */
.hk-footer { margin-top: 0; color: #dfe9e6; background: var(--hk-green); position: relative; }
.hk-footer::before {
  content: ""; display: block; height: 40px; opacity: .35;
  background: var(--hk-star) center / 40px 40px repeat-x; border-bottom: 1px solid rgba(208, 158, 62, .25);
}
.hk-footer a { color: #dfe9e6; text-decoration: none; }
.hk-footer a:hover { color: var(--hk-gold); }
/* simple and centred: logo → social → address · email · phone; rights + credit in the bottom strip */
.hk-footer-main { padding: 44px 0 32px; background: none; }
.hk-footer-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hk-footer-brand { display: inline-block; line-height: 0; }
.hk-footer-brand img { height: 90px; width: auto; filter: brightness(0) invert(1); }
.hk-footer-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; }
.hk-footer-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: background .2s, color .2s, border-color .2s; }
.hk-footer-social a:hover { background: var(--hk-gold); color: var(--hk-green); border-color: var(--hk-gold); }
.hk-footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: .93rem; line-height: 1.6; color: #dfe9e6; }
.hk-footer-contact li { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; }
.hk-footer-contact li span { text-wrap: balance; }
.hk-footer-contact__addr i { margin-inline-end: 6px; }
.hk-footer-contact i { color: var(--hk-gold); font-size: .9rem; }
.hk-footer-copy { background: #012b28; color: #a9bfba; padding: 14px 0; font-size: .84rem; }
.hk-footer-copy strong { color: #fff; font-weight: 600; }
.hk-footer-copy__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; text-align: center; }
.hk-footer-credit { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.hk-footer-credit strong { color: var(--hk-gold); }
@media (max-width: 767.98px) {
  .hk-footer-main { padding: 32px 0 24px; }
  .hk-footer-center { gap: 18px; }
  .hk-footer-brand img { height: 76px; }
  /* phones: address on its own line (icon inline with the text), email + phone share the next row */
  .hk-footer-contact { gap: 8px 18px; font-size: .86rem; }
  .hk-footer-contact__addr { flex: 0 0 100%; justify-content: center; text-align: center; }
  .hk-footer-copy__row { flex-direction: column; gap: 4px; }
  .hk-footer-credit { padding: 0; border: 0; }
}

/* ---------- shared donate controls ---------- */
.hk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-chip { min-width: 64px; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); background: #fff; color: var(--hk-ink); font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hk-chip:hover { border-color: var(--hk-green-2); }
.hk-chip.is-on { border-color: var(--hk-green); background: var(--hk-green); color: #fff; }
.hk-chip-input { flex: 1 1 110px; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); padding: 0 14px; font-weight: 700; font-size: 1rem; text-align: center; background: #fff; color: var(--hk-ink); }
.hk-chip-input:focus { outline: none; border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
.hk-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hk-pay label { margin: 0; cursor: pointer; }
.hk-pay input { position: absolute; opacity: 0; pointer-events: none; }
.hk-pay span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; font-weight: 600; background: #fff; }
.hk-pay img { height: 24px; width: auto; }
.hk-pay input:checked + span { border-color: var(--hk-green); box-shadow: 0 0 0 1.5px var(--hk-green); background: var(--hk-green-tint); }
.hk-pay input:focus-visible + span { outline: 2px solid var(--hk-gold); outline-offset: 2px; }

/* ---------- home: hero ---------- */
.hk-hero { padding: 20px 0 0; }
.hk-hero .carousel { max-width: 1320px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: var(--hk-shadow); }
.hk-hero__slide { display: block; aspect-ratio: 1280 / 568; background: var(--hk-ivory); }
.hk-hero__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-hero__dots { margin-bottom: 14px; }
.hk-hero__dots [data-bs-target] { width: 8px; height: 8px; border-radius: 50%; border: 0; background: #fff; opacity: .7; margin: 0 4px; transition: width .2s; }
.hk-hero__dots .active { width: 26px; border-radius: 4px; background: var(--hk-gold); opacity: 1; }
.hk-hero__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--hk-green); box-shadow: var(--hk-shadow-sm); opacity: 0; transition: opacity .2s; }
.hk-hero .carousel:hover .hk-hero__nav, .hk-hero__nav:focus-visible { opacity: 1; }
.hk-hero__nav--prev { right: 16px; }
.hk-hero__nav--next { left: 16px; }
@media (max-width: 767.98px) {
  .hk-hero { padding: 0; }
  .hk-hero .carousel { border-radius: 0; box-shadow: none; }
  .hk-hero__nav { display: none; }
}

/* ---------- home: current campaign (Al-Maher shape: content beside the image, content first on phones) ---------- */
.hk-campaign { padding-top: 56px; }
.hk-camp { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--hk-shadow); border: 1px solid var(--hk-line); margin: 0; }
.hk-camp__media { position: relative; display: block; min-height: 100%; background: var(--hk-ivory); }
.hk-camp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hk-camp__donors { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(2, 61, 57, .82); color: #fff; font-size: .85rem; backdrop-filter: blur(4px); }
.hk-camp__donors i { color: var(--hk-gold); }
.hk-camp__body { display: flex; flex-direction: column; gap: 18px; padding: 30px 32px; text-align: center; }
.hk-camp__title { margin: 0; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; line-height: 1.4; }
.hk-camp__title a { color: var(--hk-green); text-decoration: none; }
.hk-camp__desc { margin: 0; color: var(--hk-muted); line-height: 1.9; font-size: .93rem; }
/* target · donations · remaining */
.hk-camp__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: var(--hk-ivory); border: 1px solid var(--hk-line); border-radius: 16px; overflow: hidden; }
.hk-camp__stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; min-width: 0; }
.hk-camp__stats > div + div { border-inline-start: 1px solid var(--hk-line); }
.hk-camp__stats dd { margin: 0; font-weight: 800; color: var(--hk-green); font-size: 1.05rem; white-space: nowrap; }
.hk-camp__stats dt { font-weight: 500; color: var(--hk-muted); font-size: .82rem; }
.hk-camp__cur { font-size: .78em; font-weight: 700; }
/* progress: track + percentage pill at the end */
.hk-camp__bar { display: flex; align-items: center; gap: 10px; }
.hk-camp__track { flex: 1; height: 10px; border-radius: 999px; background: var(--hk-green-tint); overflow: hidden; }
.hk-camp__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hk-gold-2), var(--hk-gold)); }
.hk-camp__pct { flex: 0 0 auto; min-width: 48px; padding: 3px 10px; border-radius: 999px; background: var(--hk-green); color: #fff; font-size: .8rem; font-weight: 700; }
/* amount + payment in one row */
.hk-camp__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }
.hk-camp__label { float: none; width: auto; margin: 0; padding: 0; font-size: .88rem; font-weight: 600; color: var(--hk-ink); white-space: nowrap; }
.hk-camp__amount { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.hk-camp__input { display: inline-flex; align-items: stretch; height: 46px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; overflow: hidden; background: #fff; }
.hk-camp__input:focus-within { border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
.hk-camp__unit { display: grid; place-items: center; padding: 0 12px; background: var(--hk-ivory); color: var(--hk-green); font-weight: 700; font-size: .85rem; border-inline-end: 1px solid var(--hk-line-w); }
.hk-camp__input input { width: 92px; border: 0; outline: 0; text-align: center; font-weight: 800; font-size: 1.05rem; color: var(--hk-ink); background: transparent; -moz-appearance: textfield; }
.hk-camp__input input::-webkit-outer-spin-button, .hk-camp__input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hk-camp__pay { display: inline-flex; align-items: center; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.hk-camp__pay label { margin: 0; cursor: pointer; }
.hk-camp__pay input { position: absolute; opacity: 0; pointer-events: none; }
.hk-camp__pay label > span { display: grid; place-items: center; width: 58px; height: 46px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.hk-camp__pay img { max-width: 40px; max-height: 24px; }
.hk-camp__pay input:checked + span { border-color: var(--hk-green); box-shadow: 0 0 0 1.5px var(--hk-green); background: var(--hk-green-tint); }
.hk-camp__pay input:focus-visible + span { outline: 2px solid var(--hk-gold); outline-offset: 2px; }
.hk-camp__go { min-height: 54px; font-size: 1.05rem; }
.hk-camp__go i { font-size: .95em; }
@media (max-width: 991.98px) {
  .hk-camp { grid-template-columns: 1fr; }
  .hk-camp__media { min-height: 0; }
  .hk-camp__media img { position: static; height: auto; max-height: 420px; object-fit: contain; }
  .hk-camp__body { padding: 22px 16px 22px; gap: 16px; }
}
@media (max-width: 575.98px) {
  .hk-camp { border-radius: 22px; }
  .hk-camp__stats dd { font-size: .9rem; }
  .hk-camp__stats dt { font-size: .75rem; }
  .hk-camp__stats > div { padding: 12px 4px; }
  /* phones: amount and payment stay on ONE line, as on Al-Maher */
  .hk-camp__row { flex-wrap: nowrap; justify-content: space-between; gap: 8px; }
  .hk-camp__label { font-size: .74rem; }
  .hk-camp__amount { gap: 5px; flex: 0 0 auto; }
  .hk-camp__input { height: 42px; border-radius: 10px; }
  .hk-camp__unit { padding: 0 7px; font-size: .74rem; }
  .hk-camp__input input { width: 46px; font-size: .98rem; }
  .hk-camp__pay { gap: 5px; flex: 0 0 auto; }
  .hk-camp__pay label > span { width: 44px; height: 42px; border-radius: 10px; }
  .hk-camp__pay img { max-width: 32px; max-height: 20px; }
}
@media (max-width: 359.98px) { .hk-camp__row { flex-wrap: wrap; justify-content: center; } }

/* ---------- home: ways to give ---------- */
.hk-ways__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hk-way { height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px 20px; border-radius: 20px; background: #fff; border: 1px solid var(--hk-line-w); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.hk-way:hover { border-color: var(--hk-gold); transform: translateY(-3px); box-shadow: var(--hk-shadow-sm); }
.hk-way__icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--hk-green); font-size: 1.45rem; background: var(--hk-star) center / 100% no-repeat; }
.hk-way:hover .hk-way__icon { color: var(--hk-gold-2); }
.hk-way__label { font-weight: 700; color: var(--hk-green); font-size: 1rem; }
.hk-way__hint { color: var(--hk-muted); font-size: .8rem; line-height: 1.6; }
@media (max-width: 1199.98px) { .hk-ways__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) {
  /* phones: three per row, compact tiles */
  .hk-ways__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hk-way { padding: 12px 6px 12px; gap: 4px; border-radius: 16px; }
  .hk-way__icon { width: 44px; height: 44px; font-size: 1.05rem; }
  .hk-way__label { font-size: .84rem; line-height: 1.4; }
  .hk-way__hint { font-size: .68rem; line-height: 1.5; }
}

/* =====================================================================
   أثر عطائكم — big figures under the projects (home-impact partial)
   ===================================================================== */
.hk-impact { position: relative; overflow: hidden; background: var(--hk-ivory); }
.hk-impact::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--hk-star) 0 0 / 64px 64px repeat; opacity: .5;
  -webkit-mask-image: linear-gradient(to right, #000, transparent); mask-image: linear-gradient(to right, #000, transparent); pointer-events: none; }
.hk-impact > .container { position: relative; }
.hk-impact__grid { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* glass boxes over soft gold/green glows */
.hk-impact::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 260px at 22% 62%, rgba(208, 158, 62, .30), transparent 70%), radial-gradient(460px 280px at 78% 40%, rgba(2, 61, 57, .16), transparent 70%), radial-gradient(300px 200px at 50% 85%, rgba(208, 158, 62, .18), transparent 70%); }
.hk-impact > .container { z-index: 1; }
.hk-impact__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 30px 18px 28px; border-radius: 24px;
  background: rgba(255, 255, 255, .5); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 10px 30px rgba(2, 61, 57, .08), inset 0 1px 0 rgba(255, 255, 255, .9); }
.hk-impact__num b { font-variant-numeric: tabular-nums; }
.hk-impact__icon { width: 60px; height: 60px; display: grid; place-items: center; color: var(--hk-green); font-size: 1.35rem; background: var(--hk-star) center / 100% no-repeat; }
.hk-impact__num { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 8px; color: var(--hk-green); line-height: 1.1; }
.hk-impact__num b { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -.01em; }
.hk-impact__num small { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 600; }
.hk-impact__num .hk-impact__cur { font-size: .95rem; color: var(--hk-gold-2); font-weight: 700; }
.hk-impact__label { color: var(--hk-muted); font-size: .95rem; font-weight: 500; }
.hk-impact__more { display: flex; justify-content: center; margin-top: 28px; }
.hk-impact__more .hk-btn i { font-size: .85em; }
@media (max-width: 767.98px) {
  .hk-impact::before { width: 50%; opacity: .2; }
  /* phones: one white card, three figures side by side (Al-Maher style) */
  .hk-impact__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 18px 4px; border-radius: 22px;
    background: #fff; border: 1px solid var(--hk-line-w); box-shadow: var(--hk-shadow-sm); }
  .hk-impact__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px 6px; min-width: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .hk-impact__item + .hk-impact__item { border-inline-start: 1px solid var(--hk-line-w); }
  .hk-impact__icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 50%; background: var(--hk-ivory); }
  .hk-impact__num b { font-size: 1.12rem; font-weight: 800; }
  .hk-impact__label { font-size: .7rem; line-height: 1.35; white-space: nowrap; }
  .hk-impact__more { margin-top: 18px; }
}

/* =====================================================================
   Project card — shared legacy markup (.panel:not(:where(#donationform .panel, .modal .panel)) .card) used by the home
   tabs, /projects, awqaf and every category list. Restyled here once.
   ===================================================================== */
.panel:not(:where(#donationform .panel, .modal .panel)) { height: 100%; padding-bottom: 20px; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card { height: 100%; border: 1px solid var(--hk-line-w) !important; border-radius: var(--hk-radius) !important; overflow: hidden; background: #fff; box-shadow: var(--hk-shadow-sm) !important; transition: transform .2s, box-shadow .2s; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card:hover { transform: translateY(-3px); box-shadow: var(--hk-shadow) !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card_Img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--hk-ivory); border-radius: 0 !important; margin: 0 !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card_Img img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .5s ease; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card_Img img:hover { transform: scale(1.04); }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body { padding: 14px 16px 18px !important; display: flex; flex-direction: column; gap: 10px; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body > * { margin-top: 0 !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body h6.CLR { margin: 0 !important; font-size: 1.02rem !important; font-weight: 700 !important; line-height: 1.55; color: var(--hk-green) !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body a { text-decoration: none; }

/* zakat ribbon pinned to the top of the image (the only extra a card carries) */
.panel:not(:where(#donationform .panel, .modal .panel)) .card { position: relative; display: flex; flex-direction: column; }
.hk-card-ribbon { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--hk-gold); color: var(--hk-green); font-size: .78rem; font-weight: 700; line-height: 1.2; box-shadow: 0 4px 12px rgba(2, 61, 57, .2); pointer-events: none; }
.hk-card-ribbon i { font-size: .72rem; }
/* one height for every card in a row: the title always takes two lines, the stepper + buttons sit at the bottom */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body { flex: 1 1 auto; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body h6.CLR { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.55em); }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body > .row.text-center { margin-top: auto !important; }
/* amount stepper as wide as the «المتبقي» strip and the donate row (same as listing/search cards) */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body > .row.text-center { --bs-gutter-x: 0; margin-inline: 0 !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body > .row.text-center > .d-flex { padding: 0; }
.zakat-eligible-chip { background: var(--hk-gold-tint) !important; color: #6e5014 !important; border: 0 !important; box-shadow: none !important; font-size: .75rem !important; font-weight: 600 !important; padding: 4px 10px !important; border-radius: 999px !important; }
.zakat-eligible-chip i { color: var(--hk-gold-2) !important; }

/* progress: thin gold bar, percentage beside it (read from aria-valuenow) */
.project-card-progress .progress, .panel:not(:where(#donationform .panel, .modal .panel)) .card .progress { position: relative; height: 8px !important; margin-inline-end: 46px; overflow: visible !important; background: var(--hk-green-tint) !important; border-radius: 999px !important; }
.project-card-progress .progress-bar, .panel:not(:where(#donationform .panel, .modal .panel)) .card .progress-bar { border-radius: 999px !important; font-size: 0 !important; background-image: none !important; animation: none !important; background-color: var(--hk-gold) !important; }
.project-card-progress .progress::after, .panel:not(:where(#donationform .panel, .modal .panel)) .card .progress::after { content: attr(aria-valuenow) "%"; position: absolute; inset-inline-end: -46px; top: 50%; transform: translateY(-50%); width: 40px; text-align: center; font-size: .8rem; font-weight: 700; color: var(--hk-green); font-variant-numeric: tabular-nums; }
.project-card-remain { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: .88rem; margin: 0 !important; padding: 10px 14px; border-radius: 14px; background: var(--hk-ivory); } /* same ivory strip as the amounts on listing/search cards */
.project-card-remain span { color: var(--hk-muted); }
.project-card-remain strong { color: var(--hk-green); font-weight: 700; font-variant-numeric: tabular-nums; }

/* amount stepper */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .value-button { border-color: var(--hk-line-w) !important; color: var(--hk-green) !important; background: #fff !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .value-button:hover { background: var(--hk-green-tint) !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body input.number { border-color: var(--hk-line-w) !important; font-weight: 700; color: var(--hk-ink); font-variant-numeric: tabular-nums; }

/* donate (gold, wide) + cart (quiet) */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 { display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 > .col-6 { padding: 0 !important; width: auto !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 > .col-6:first-child { flex: 1 1 auto; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 > .col-6:last-child { flex: 0 0 54px; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-1, .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .btn.BTN-1 { background: var(--hk-gold) !important; border-color: var(--hk-gold) !important; color: var(--hk-green) !important; min-height: 46px; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-1:hover { background: var(--hk-gold-2) !important; border-color: var(--hk-gold-2) !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-2, .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .btn.BTN-2 { background: #fff !important; border: 1.5px solid var(--hk-line-w) !important; color: var(--hk-green) !important; min-height: 46px; border-radius: 12px !important; box-shadow: none !important; }
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-2:hover { background: var(--hk-green-tint) !important; }

/* phones: two project cards per row — compact card */
@media (max-width: 575.98px) {
  .row:has(> .col-6 > .panel) { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) { padding-bottom: 10px; }
  .hk-cards > .col-6 > .panel { padding-bottom: 0 !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card { border-radius: 16px !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card:hover { transform: none; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body { padding: 10px 10px 12px !important; gap: 8px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body h6.CLR { font-size: .86rem !important; line-height: 1.5; min-height: calc(2 * 1.5em); }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .progress { height: 6px !important; margin-inline-end: 34px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .progress::after { inset-inline-end: -34px; width: 30px; font-size: .7rem; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .project-card-remain { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 4px; padding: 6px 8px; border-radius: 10px; font-size: .74rem; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .project-card-remain strong { font-size: .86rem; white-space: nowrap; }
  /* listing cards: keep only the remaining amount */
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails { grid-template-columns: 1fr !important; padding: 6px 8px !important; border-radius: 10px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails > div:not(:last-child) { display: none !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails > div { border: 0 !important; display: flex; align-items: baseline; justify-content: space-between; gap: 4px; padding: 0 !important; text-align: start; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails > div h6 { margin: 0 !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails > div p { white-space: nowrap; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails h6 { font-size: .7rem !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .cardAmountDetails p { font-size: .84rem !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .value-button { width: 30px !important; min-width: 30px; height: 36px !important; font-size: 1rem; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body input.number { height: 36px !important; min-width: 0; font-size: .9rem; padding: 0 !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 { gap: 6px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .row.mt-3 > .col-6:last-child { flex: 0 0 40px; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-1, .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .btn.BTN-1 { min-height: 40px; font-size: .82rem !important; padding: 6px 4px !important; white-space: nowrap; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .BTN-2, .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .btn.BTN-2 { min-height: 40px; padding: 0 !important; }
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .hk-card-ribbon { top: 8px; inset-inline-start: 8px; padding: 4px 8px; font-size: .66rem; gap: 4px; }
}

/* project tabs → segmented control */
#pills-tab { border: 0 !important; margin-bottom: 24px !important; }
#pills-tab tr { display: inline-flex; gap: 4px; padding: 5px; background: var(--hk-ivory); border-radius: 14px; }
#pills-tab th { border: 0 !important; padding: 0 !important; background: none !important; }
#pills-tab .nav-link { border: 0 !important; border-radius: 10px !important; padding: 10px 18px !important; color: var(--hk-muted) !important; font-weight: 600 !important; background: transparent !important; white-space: nowrap; }
#pills-tab .nav-link.active { background: #fff !important; color: var(--hk-green) !important; box-shadow: var(--hk-shadow-sm) !important; }
.projectsTabs .table-responsive, .projectsTabs .table { margin: 0 !important; border: 0 !important; background: none !important; }

/* home zakat band sits on ivory */
.home-zakat-section { background: var(--hk-ivory) !important; }

/* legacy rules use high-specificity !important selectors for the bar and chip — match them */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .progress .bg-success1,
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body .progress .progress-bar,
#mediaReports .panel .card .card-body .progress .bg-success1,
#projectsTabs #pills-tabContent { width: auto; margin-inline: 0; } /* same width as the sections above (legacy rule made it 97% and centred) */
#projectsTabs .panel .card .card-body .progress .bg-success1 { background-color: var(--hk-gold) !important; background-image: none !important; }
body .panel .card .zakat-eligible-chip, body .zakat-eligible-chip { background: var(--hk-gold-tint) !important; color: #6e5014 !important; }



/* every donate action is gold (giving); green stays for structure */
.home-zakat-donate, body .home-zakat-donate { background: var(--hk-gold) !important; border-color: var(--hk-gold) !important; color: var(--hk-green) !important; }
.home-zakat-donate:hover { background: var(--hk-gold-2) !important; }

/* =====================================================================
   Inner pages — shared components
   ===================================================================== */
/* page head (partials/page-head) */
.hk-pagehead { position: relative; background: var(--hk-ivory); overflow: hidden; }
.hk-pagehead::after { content: ""; position: absolute; inset-block: 0; inset-inline-end: 0; width: 38%; opacity: .5;
  background: var(--hk-star) 0 0 / 56px 56px repeat; -webkit-mask-image: linear-gradient(to left, #000, transparent); mask-image: linear-gradient(to left, #000, transparent); pointer-events: none; }
.hk-pagehead__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 40px; padding-block: 44px 48px; }
.hk-pagehead__text { flex: 1; min-width: 0; }
.hk-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--hk-muted); margin-bottom: 14px; }
.hk-crumbs a { color: var(--hk-green-2); text-decoration: none; }
.hk-crumbs a:hover { color: var(--hk-gold-2); }
.hk-crumbs [aria-current] { color: var(--hk-ink); font-weight: 500; }
.hk-pagehead__title { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.25; color: var(--hk-green); margin: 0; }
.hk-pagehead__lead { margin: 12px 0 0; max-width: 62ch; color: var(--hk-muted); font-size: 1.02rem; line-height: 1.9; }
.hk-pagehead__media { flex: 0 0 42%; max-width: 520px; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden; box-shadow: var(--hk-shadow); }
.hk-pagehead__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-pagehead--image::after { display: none; }
@media (max-width: 767.98px) {
  .hk-pagehead__inner { flex-direction: column; align-items: stretch; gap: 20px; padding-block: 26px 30px; }
  .hk-pagehead__media { flex: none; max-width: none; order: -1; border-radius: 16px; }
  .hk-pagehead::after { width: 60%; opacity: .35; }
}

/* long-form text written in the admin editor */
.hk-prose { color: var(--hk-ink); font-size: 1rem; line-height: 2; max-width: 75ch; }
.hk-prose > * + * { margin-top: 1em; }
.hk-prose h2, .hk-prose h3, .hk-prose h4 { color: var(--hk-green); font-weight: 700; line-height: 1.4; margin-top: 1.6em; }
.hk-prose ul, .hk-prose ol { padding-inline-start: 1.4em; }
.hk-prose li + li { margin-top: .35em; }
.hk-prose li::marker { color: var(--hk-gold); }
.hk-prose a { color: var(--hk-green-2); text-decoration: underline; text-underline-offset: 3px; }
.hk-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.hk-prose table { width: 100%; border-collapse: collapse; }
.hk-prose td, .hk-prose th { border: 1px solid var(--hk-line-w); padding: 8px 10px; }

/* content cards / feature blocks */
.hk-panel { background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); padding: 28px; box-shadow: var(--hk-shadow-sm); }
.hk-panel--ivory { background: var(--hk-ivory); border-color: var(--hk-line); box-shadow: none; }
.hk-panel__title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 700; color: var(--hk-green); margin: 0 0 12px; }
.hk-panel__icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; color: var(--hk-green); background: var(--hk-star) center / 100% no-repeat; }
.hk-grid { display: grid; gap: 20px; }
.hk-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hk-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hk-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991.98px) { .hk-grid--3, .hk-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .hk-grid--2, .hk-grid--3, .hk-grid--4 { grid-template-columns: 1fr; } .hk-panel { padding: 20px; } }

/* forms */
.hk-form { display: grid; gap: 16px; }
.hk-field { display: grid; gap: 6px; }
.hk-field label, .hk-label { font-weight: 600; font-size: .92rem; color: var(--hk-ink); }
.hk-field .form-control, .hk-field .form-select, .hk-input {
  min-height: 50px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); background: #fff; padding: .6rem .9rem; font-size: 1rem; color: var(--hk-ink);
}
.hk-field textarea.form-control { min-height: 130px; }
.hk-field .form-control:focus, .hk-field .form-select:focus, .hk-input:focus { border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); outline: none; }
.hk-help { font-size: .82rem; color: var(--hk-muted); }
.hk-error, .hk-field .text-danger, .hk-field .error { font-size: .85rem; color: #b42318 !important; }
.hk-form-card { max-width: 560px; margin: 0 auto; }

/* tables */
.hk-table-wrap { overflow-x: auto; border: 1px solid var(--hk-line-w); border-radius: 16px; background: #fff; }
.hk-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.hk-table th { background: var(--hk-ivory); color: var(--hk-green); font-weight: 700; font-size: .9rem; text-align: start; padding: 12px 14px; white-space: nowrap; }
.hk-table td { padding: 12px 14px; border-top: 1px solid var(--hk-line-w); vertical-align: middle; }

/* empty state */
.hk-empty { text-align: center; padding: 48px 20px; color: var(--hk-muted); }
.hk-empty i { font-size: 2rem; color: var(--hk-gold); margin-bottom: 10px; display: block; }

/* legacy admin-managed photo hero (pages not yet migrated to page-head) */
#aboutHero .bsb-hero-1 { border-radius: 0 0 28px 28px; min-height: 340px !important; }

/* share row (project pages) */
.hk-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 8px; }
.hk-share__label { font-size: .9rem; font-weight: 600; color: var(--hk-muted); margin-inline-end: 4px; }
.hk-share a, .hk-share__copy { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid var(--hk-line-w); background: #fff; color: var(--hk-green) !important; text-decoration: none; font-size: 1.05rem; font-weight: 600; }
.hk-share__copy { padding: 0; width: 44px; background: #fff; color: var(--hk-green); cursor: pointer; }
.hk-share__copy.is-done { border-color: var(--hk-gold); background: var(--hk-gold-tint); }
.hk-share__copy.is-done i::before { content: "\f00c"; }
@media (max-width: 575.98px) {
  .hk-share { gap: 6px; }
  /* label and icons stay on one row */
  .hk-share { flex-wrap: nowrap; gap: 5px; }
  .hk-share__label { flex: 0 0 auto; margin: 0 0 0 2px; font-size: .8rem; white-space: nowrap; }
  .hk-share a, .hk-share__copy { flex: 0 0 auto; min-width: 38px; width: 38px; height: 38px; padding: 0; border-radius: 10px; }
}
.hk-share a:hover, .hk-share__copy:hover { border-color: var(--hk-gold); color: var(--hk-gold-2) !important; }

/* =====================================================================
   Donate modal (#donatenow_modal) — opened by "تبرع الآن" on every card
   ===================================================================== */
#donatenow_modal .modal-content, .hk-modal { border: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 80px rgba(2, 61, 57, .25); }
#donatenow_modal .modal-header, .hk-modal .modal-header { border-bottom: 1px solid var(--hk-line-w); padding: 18px 22px; background: var(--hk-ivory); }
#donatenow_modal .modal-title { font-weight: 800 !important; color: var(--hk-green) !important; font-size: 1.15rem !important; }
#donatenow_modal .modal-body { padding: 20px 22px 24px; }
/* once / monthly switch */
#donatenow_modal .wiseBtn { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; padding: 5px; margin: 0 0 16px !important; background: var(--hk-ivory); border-radius: 14px; }
#donatenow_modal .wiseBtn > [class*="col"] { width: auto !important; padding: 0 !important; }
#donatenow_modal .wiseBtn .BTN-1 { background: transparent !important; border: 0 !important; color: var(--hk-muted) !important; border-radius: 10px !important; min-height: 44px; }
#donatenow_modal .wiseBtn .BTN-1.active { background: #fff !important; color: var(--hk-green) !important; box-shadow: var(--hk-shadow-sm); }
/* quick amounts */
#donatenow_modal #donatenow_segments { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#donatenow_modal #donatenow_segments .btn { flex: 1 1 calc(20% - 8px); min-width: 64px; min-height: 46px; border-radius: 12px !important; border: 1.5px solid var(--hk-line-w) !important; background: #fff !important; color: var(--hk-ink) !important; font-weight: 700; font-variant-numeric: tabular-nums; }
#donatenow_modal #donatenow_segments .btn.active { background: var(--hk-green) !important; border-color: var(--hk-green) !important; color: #fff !important; }
#donatenow_modal .input-group-text { background: var(--hk-ivory); border: 1.5px solid var(--hk-line-w); border-inline-end: 0; color: var(--hk-green); font-weight: 700; }
#donatenow_modal .form-control { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
#donatenow_modal .input-group .form-control { border-radius: 0 12px 12px 0; }
#donatenow_modal #donation_amount { font-size: 1.2rem; font-weight: 800; color: var(--hk-green); }
/* payment methods → tiles */
#donatenow_modal ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
#donatenow_modal ul li { margin: 0 !important; }
#donatenow_modal ul .form-check-label { width: 100%; min-height: 54px; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; background: #fff; font-size: .78rem; font-weight: 600; color: var(--hk-ink); text-align: center; cursor: pointer; }
#donatenow_modal ul .form-check-input:checked + .form-check-label { border-color: var(--hk-green); background: var(--hk-green-tint); box-shadow: 0 0 0 1.5px var(--hk-green); }
#donatenow_modal ul .form-check-input:focus-visible + .form-check-label { outline: 2px solid var(--hk-gold); outline-offset: 2px; }
#donatenow_modal .pay-logo img { max-height: 22px; width: auto; }
#donatenow_modal button[type="submit"].BTN-1 { background: var(--hk-gold) !important; border-color: var(--hk-gold) !important; color: var(--hk-green) !important; min-height: 54px; font-size: 1.05rem !important; border-radius: 14px !important; }
#donatenow_modal button[type="submit"].BTN-1:hover { background: var(--hk-gold-2) !important; }
@media (max-width: 575.98px) {
  #donatenow_modal .modal-dialog { margin: 0; max-width: none; min-height: 100%; display: flex; align-items: flex-end; }
  #donatenow_modal .modal-content { border-radius: 22px 22px 0 0; }
  #donatenow_modal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* desktop side quick-donate strip (giving → gold) + WhatsApp label */
#fastDonate .dropdown-toggle { background: var(--hk-gold) !important; border: 0 !important; color: var(--hk-green) !important; border-radius: 14px 0 0 14px !important; box-shadow: var(--hk-shadow) !important; padding: 14px 10px !important; }
#fastDonate .dropdown-toggle p { color: var(--hk-green) !important; font-weight: 700 !important; }
#fastDonate .dropdown-toggle::after { display: none; }
#fastDonate .dropdown-menu { width: 300px; border: 1px solid var(--hk-line-w) !important; border-radius: 18px !important; box-shadow: var(--hk-shadow) !important; padding: 18px !important; }
#fastDonate .dropdown-menu .form-select, #fastDonate .dropdown-menu .form-control { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
#fastDonate .fast_donateBtn { background: var(--hk-gold) !important; border-color: var(--hk-gold) !important; color: var(--hk-green) !important; min-height: 48px; }
.whatsapp_chat_support .wcs_button_label { background: #fff !important; color: var(--hk-ink) !important; border: 1px solid var(--hk-line-w) !important; border-radius: 999px !important; box-shadow: var(--hk-shadow-sm) !important; font-size: .82rem !important; }
.whatsapp_chat_support .wcs_button_label::after, .whatsapp_chat_support .wcs_button_label::before { display: none !important; }
#fastDonate { z-index: 1020 !important; } /* below the sticky header, menus and the mobile drawer */

/* scroll reveal: legacy markup asks for 2s fades — keep every reveal short */
[data-aos] { transition-duration: .6s !important; }
@media (prefers-reduced-motion: reduce) { [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* 404 */
.hk-404 { padding: 28px 0 8px; }
.hk-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* editor content (admin HTML) carries fixed inline widths — never wider than the screen */
.hk-prose table { width: 100% !important; max-width: 100%; table-layout: auto; border-collapse: collapse; }
.hk-prose td, .hk-prose th { width: auto !important; vertical-align: top; padding: 4px 6px; }
.hk-prose img, .hk-prose iframe, .hk-prose video { max-width: 100% !important; height: auto; }
.hk-prose [style*="width"] { max-width: 100% !important; }

/* legacy payment tiles pushed the chosen logo behind its own tile (z-index:-1) — keep the logo visible */
.donar_detailCheckbox :checked + label img, .Payment_Checkbox :checked + label img { z-index: auto !important; transform: none !important; box-shadow: none !important; }

/* approved payment logos (assets/img/pay/*.svg): square artwork with built-in padding — shown in a 2:1 frame so the mark itself reads */
img[src*="/img/pay/"] { width: calc(var(--pay-h, 26px) * 2) !important; height: var(--pay-h, 26px) !important; max-width: 100% !important; max-height: none !important; object-fit: cover !important; object-position: center !important; border-radius: 0 !important; box-shadow: none !important; }
img[src*="/img/pay/"] { mix-blend-mode: multiply; } /* the artwork's white square melts into tinted (selected) tiles */
.payment-methods-grid { --pay-h: 32px; }
.hk-camp__pay, .payment-methods-grid .pay-sub, #qdSheet { --pay-h: 22px; }
.payment-methods-grid .pay-apple { --pay-h: 30px; }
@media (max-width: 575.98px) { .hk-camp__pay { --pay-h: 20px; } }

/* =====================================================================
   Phones: headings (and the line right under them) are centred.
   Body text, form labels, card contents and tables keep their natural alignment.
   ===================================================================== */
@media (max-width: 575.98px) {
  /* inner page header */
  body .hk-pagehead__text { text-align: center; }
  body .hk-pagehead .hk-crumbs { justify-content: center; }
  body .hk-pagehead__lead { margin-inline: auto; }
  /* panel / pane / step / auth headings */
  body .hk-panel__title, body .gv .gv-step, body .gv .gv-field > legend.gv-step,
  body .hk-group__h2, body .hk-cart__h, body .hk-receipt__h, body .hk-danger__title,
  body .mk-alt__title, body .ab-aside__title, body .ab-faq__help-title, body .gift-section-title, body .or-sec { justify-content: center; text-align: center; }
  body .hk-formpage .hk-pane__head { justify-content: center; text-align: center; }
  body .hk-formpage .hk-pane__title, body .hk-formpage .hk-pane__sub { text-align: center; }
  body .hk-formpage .hk-auth__head, body .hk-formpage .hk-auth__sub { text-align: center; }
  body .hk-formpage .hk-fieldset > legend { justify-content: center; text-align: center; }
  /* project page: name + subtitle above the donate box */
  body #ChooseDonationamnt .hk-proj__title, body #ChooseDonationamnt .donation-project-subtitle { text-align: center !important; }
  body .hk-empty__title, body .hk-empty p { text-align: center; }
}

/* legacy section titles (e.g. «الزكاة والصدقات») sit in a parent that is not centred — centre the title box itself */
section .sectionHeading h2.section-title { display: flex; width: fit-content; max-width: 100%; margin-inline: auto !important; }

/* project card name: centred, a touch smaller */
.panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body h6.CLR { text-align: center !important; font-size: .95rem !important; }
@media (max-width: 575.98px) {
  .col-6 > .panel:not(:where(#donationform .panel, .modal .panel)) .card .card-body h6.CLR { font-size: .8rem !important; line-height: 1.5; }
}

/* toast notifications (Toastify): brand green card, gold check, readable close */
body .toastify { display: flex !important; align-items: center; gap: 10px; max-width: min(92vw, 380px) !important; padding: 12px 14px !important; border-radius: 14px !important;
  background: var(--hk-green) !important; color: #fff !important; font-family: var(--hk-font) !important; font-size: .95rem !important; font-weight: 700; line-height: 1.5;
  box-shadow: 0 14px 32px rgba(2, 61, 57, .28) !important; direction: rtl; }
body .toastify::before, body .info.toastify::before { content: "\f00c" !important; font: 900 .8rem/1 "Font Awesome 6 Free" !important; flex: 0 0 26px; width: 26px !important; height: 26px !important;
  display: grid !important; place-items: center; border-radius: 50%; background: var(--hk-gold); color: var(--hk-green) !important; }
body .toastify .toast-close { order: 2; margin: 0 !important; margin-inline-start: auto !important; padding: 4px 6px !important; color: #fff !important; opacity: .75 !important; font-size: .85rem !important; }
body .toastify .toast-close:hover { opacity: 1 !important; }
@media (max-width: 767.98px) { body .toastify { left: 12px !important; right: 12px !important; margin: 0 auto !important; } }

/* footer bottom strip: smaller text */
.hk-footer-copy { font-size: .78rem; }
@media (max-width: 767.98px) { .hk-footer-copy { font-size: .72rem; line-height: 1.7; } }

/* «أثر الجمعية»: links as buttons with icons, centred */
#siteImpact .impact-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
#siteImpact .impact-foot a.hk-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 20px; border-bottom: 1.5px solid currentColor; text-decoration: none !important; }
#siteImpact .impact-foot a.hk-btn i { color: var(--hk-gold-2); }


/* =====================================================================
   Home slider: full width, flush under the header; photo banners carry their title + donate button
   ===================================================================== */
.hk-hero { padding: 0 !important; }
.hk-hero .carousel { max-width: none !important; margin: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.hk-hero__slide { position: relative; aspect-ratio: 21 / 9 !important; max-height: 640px; width: 100%; overflow: hidden; }
.hk-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.hk-hero__caption { position: absolute; inset: 0; display: flex; align-items: center;
  padding-inline: max(24px, calc((100vw - 1320px) / 2 + 24px));
  background: linear-gradient(to left, rgba(2, 61, 57, .82) 0%, rgba(2, 61, 57, .55) 34%, rgba(2, 61, 57, 0) 62%); }
.hk-hero__text { max-width: 540px; color: #fff; }
.hk-hero__title { margin: 0 0 12px; font-size: clamp(1.6rem, 3.2vw, 2.9rem); font-weight: 800; line-height: 1.3; color: #fff !important; text-wrap: balance; }
.hk-hero__desc { margin: 0 0 22px; font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.8; color: rgba(255, 255, 255, .92); }
.hk-hero__cta { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
@media (max-width: 767.98px) {
  .hk-hero__slide { aspect-ratio: 4 / 3 !important; max-height: none; }
  .hk-hero__slide img { object-position: 12% 50%; }
  .hk-hero__caption { align-items: flex-end; justify-content: center; padding: 0 16px 38px; text-align: center;
    background: linear-gradient(to top, rgba(2, 61, 57, .9) 0%, rgba(2, 61, 57, .5) 30%, rgba(2, 61, 57, 0) 55%); }
  .hk-hero__text { max-width: none; }
  .hk-hero__title { font-size: 1.15rem; margin-bottom: 10px; }
  .hk-hero__desc { display: none; }
  .hk-hero__cta { min-height: 44px; padding: 0 20px; font-size: .95rem; }
}

/* prose panel that spans the full container, like the card grids around it (about-us «الأهداف») */
.hk-prose.hk-prose--full { max-width: none; }

/* =====================================================================
   About us «الأهداف»: admin rich text laid out with icons (ar/includes/about-objectives)
   ===================================================================== */
.hk-obj { display: grid; gap: 36px; }
.hk-obj ul { list-style: none; margin: 0; padding: 0; }
.hk-obj p { margin: 0; }
.hk-obj__title { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 1.25rem; font-weight: 800; color: var(--hk-green); }
.hk-obj__title > i { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--hk-green); color: var(--hk-gold); font-size: 1rem; }
.hk-obj__intro { margin: -6px 0 14px !important; color: var(--hk-muted); line-height: 1.9; }
.hk-obj__ic { display: grid; place-items: center; border-radius: 14px; }

/* first list: tiles with the icon on top */
.hk-obj__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hk-obj__tiles > li { display: flex; flex-direction: column; gap: 14px; padding: 22px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: 18px; box-shadow: var(--hk-shadow-sm); }
.hk-obj__tiles .hk-obj__ic { width: 50px; height: 50px; background: rgba(208, 158, 62, .14); color: var(--hk-gold-2); font-size: 1.25rem; }
.hk-obj__tiles p { color: var(--hk-ink); line-height: 1.9; }
.hk-obj__tiles strong { color: var(--hk-green); font-weight: 800; }

/* later lists: compact icon rows */
.hk-obj__rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hk-obj__rows > li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: 14px; }
.hk-obj__rows .hk-obj__ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: rgba(2, 61, 57, .07); color: var(--hk-green); font-size: 1.05rem; }
.hk-obj__rows p { color: var(--hk-ink); line-height: 1.7; font-size: .95rem; }

/* short blocks side by side */
.hk-obj__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hk-obj__card { padding: 22px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: 18px; box-shadow: var(--hk-shadow-sm); }
.hk-obj__card .hk-obj__title { font-size: 1.1rem; margin-bottom: 14px; }
.hk-obj__card .hk-obj__title > i { flex-basis: 36px; width: 36px; height: 36px; border-radius: 10px; font-size: .9rem; }
.hk-obj__text { color: var(--hk-ink); line-height: 1.9; }
.hk-obj__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hk-obj__chips > li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(2, 61, 57, .06); color: var(--hk-green); font-weight: 700; }
.hk-obj__chips i { color: var(--hk-gold-2); }

/* long text: statement panel */
.hk-obj__statement { display: flex; align-items: flex-start; gap: 20px; padding: 28px 32px; border-radius: 22px; background: var(--hk-green); color: var(--hk-ivory); }
.hk-obj__statement-ic { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: rgba(208, 158, 62, .18); color: var(--hk-gold); font-size: 1.35rem; }
.hk-obj__statement-title { margin: 4px 0 10px; font-size: 1.2rem; font-weight: 800; color: var(--hk-gold) !important; }
.hk-obj__statement p { max-width: 90ch; line-height: 2; color: rgba(246, 238, 227, .92); }

@media (max-width: 991.98px) {
  .hk-obj__tiles, .hk-obj__rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .hk-obj { gap: 28px; }
  .hk-obj__pair { grid-template-columns: 1fr; }
  .hk-obj__statement { flex-direction: column; gap: 14px; padding: 22px 20px; }
}
@media (max-width: 575.98px) {
  .hk-obj__tiles, .hk-obj__rows { grid-template-columns: 1fr; }
  .hk-obj__tiles > li { flex-direction: row; align-items: flex-start; padding: 16px; }
  .hk-obj__tiles .hk-obj__ic { flex: 0 0 44px; width: 44px; height: 44px; font-size: 1.1rem; }
}

/* =====================================================================
   Menu icons: main bar (like the phone menu) + every submenu item, desktop and phone
   ===================================================================== */
.hk-nav__link { gap: 8px; }
.hk-nav__ic { font-size: .9rem; color: var(--hk-gold-2); }
.hk-nav__link.is-active .hk-nav__ic, .hk-nav__link:hover .hk-nav__ic { color: var(--hk-gold); }
.hk-menu a { flex-direction: row !important; align-items: center; gap: 12px !important; }
.hk-menu__ic { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--hk-green-tint, rgba(2, 61, 57, .07)); color: var(--hk-green); font-size: .9rem; transition: background .2s, color .2s; }
.hk-menu a:hover .hk-menu__ic { background: var(--hk-green); color: var(--hk-gold); }
.hk-menu__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hk-mmenu__sublink { display: flex !important; align-items: center; gap: 12px; padding-inline-start: 22px !important; }
.hk-mmenu__sublink > i { width: 20px; text-align: center; font-size: .85rem; color: rgba(246, 238, 227, .6); }
.hk-mmenu__sublink.is-active > i, .hk-mmenu__sublink:hover > i { color: var(--hk-gold); }
@media (min-width: 1200px) and (max-width: 1399.98px) { .hk-nav__link { padding-inline: 10px; gap: 6px; } }

/* form / payment error after a redirect back (ar/includes/form-errors) */
.hk-form-alert { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; padding: 14px 18px; border: 1px solid #f1c3bd; border-radius: 14px; background: #fdf3f1; color: #7a271a; }
.hk-form-alert:focus { outline: 2px solid #d9a199; outline-offset: 2px; }
.hk-form-alert > i { margin-top: 3px; font-size: 1.1rem; color: #b42318; }
.hk-form-alert__title { margin: 0 0 4px; font-weight: 800; }
.hk-form-alert ul { margin: 0; padding-inline-start: 18px; line-height: 1.8; }

/* short pages: the footer sits at the bottom of the screen instead of leaving a blank strip under it.
   (sticky + top:100vh can only move it inside body, so long pages are untouched) */
body { min-height: 100vh; min-height: 100dvh; }
.hk-footer { position: sticky; top: 100vh; top: 100dvh; }

/* «اكتمل المشروع» ribbon across a completed project's image (ar/includes/complete-ribbon) */
.hk-done { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; pointer-events: none; }
.hk-done__band { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; padding: 14px 18px; border-block: 2px solid var(--hk-gold); background: rgba(2, 61, 57, .9); color: #fff; box-shadow: 0 12px 30px rgba(2, 30, 28, .28); }
.hk-done__band > i { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--hk-gold); color: var(--hk-green); font-size: 1.25rem; box-shadow: 0 0 0 4px rgba(208, 158, 62, .25); }
.hk-done__text { display: flex; flex-direction: column; gap: 2px; text-align: start; line-height: 1.3; }
.hk-done__text b { font-size: clamp(1.25rem, 2.6vw, 1.8rem); font-weight: 800; letter-spacing: -.005em; }
.hk-done__text small { color: var(--hk-gold-tint); font-size: clamp(.8rem, 1.4vw, .98rem); font-weight: 500; }
/* project cards: a slimmer band */
.card_Img .hk-done__band { gap: 10px; padding: 9px 12px; }
.card_Img .hk-done__band > i { width: 32px; height: 32px; font-size: .9rem; box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
.card_Img .hk-done__text b { font-size: 1.05rem; }
@media (max-width: 575.98px) {
  .hk-done__band { gap: 10px; padding: 10px 12px; }
  .hk-done__band > i { width: 36px; height: 36px; font-size: 1rem; }
  .card_Img .hk-done__band { gap: 6px; padding: 6px 8px; border-block-width: 1.5px; }
  .card_Img .hk-done__band > i { width: 24px; height: 24px; font-size: .7rem; box-shadow: none; }
  .card_Img .hk-done__text b { font-size: .8rem; }
}
.card_Img:has(> .hk-done) { position: relative; }

/* signed-in donor account menu in the header (desktop / tablet; phones use the bottom bar) */
.hk-acct { position: relative; display: inline-flex; }
.hk-acct__menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 1100; min-width: 240px; padding: 6px; border: 1px solid var(--hk-line-w); border-radius: 14px; background: #fff; box-shadow: var(--hk-shadow); }
.hk-acct__menu[hidden] { display: none; }
.hk-acct__who { margin: 0 0 4px; padding: 10px 12px; border-bottom: 1px solid var(--hk-line-w); color: var(--hk-muted); font-size: .85rem; line-height: 1.5; }
.hk-acct__who b { color: var(--hk-green); font-weight: 800; }
.hk-acct__link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 12px; border-radius: 10px; color: var(--hk-ink); font-size: .92rem; font-weight: 600; text-decoration: none; }
.hk-acct__link i { width: 18px; color: var(--hk-green); text-align: center; }
.hk-acct__link:hover { background: var(--hk-ivory); color: var(--hk-green); }
.hk-acct__link--out, .hk-acct__link--out i { color: #b42318; }
.hk-acct__link--out:hover { background: #fdecea; color: #b42318; }
