/* =====================================================================
   Listings group — /projects, /awqaf, /deductions, /groups, /groups/{id},
   /project-fruits/{id}, /choosecharityDonation/{code}.
   Linked from each page's @section('content'), so it loads after hikma.css.
   Every rule is scoped under a page class (.hk-listing, .hk-ded, .hk-group,
   .hk-fruits, .hk-charity) or the shared payment modal, so nothing leaks.
   ===================================================================== */

/* ---------- segmented control (tabs + single-choice groups) ---------- */
.hk-seg-wrap { margin: 0 0 24px; text-align: center; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hk-seg-wrap::-webkit-scrollbar { display: none; }
.hk-seg { display: inline-flex !important; flex-wrap: wrap !important; justify-content: center; max-width: 100%; gap: 4px; margin: 0 !important; padding: 5px !important; list-style: none; background: var(--hk-ivory); border: 0 !important; border-radius: 14px; }
.hk-seg .nav-item { margin: 0; }
.hk-seg .nav-link, .hk-seg > a {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-height: 44px; margin: 0 !important;
  padding: 10px 13px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important;
  color: var(--hk-muted) !important; font-size: .95rem !important; font-weight: 600 !important; white-space: nowrap; text-decoration: none;
}
.hk-seg .nav-link:hover, .hk-seg > a:hover { color: var(--hk-green) !important; }
#pills-tab.hk-seg { margin-bottom: 0 !important; }
#pills-tab.hk-seg .nav-link { padding: 10px 13px !important; } /* hikma sets #pills-tab padding with an ID selector */
.hk-seg .nav-link.active { background: #fff !important; color: var(--hk-green) !important; box-shadow: var(--hk-shadow-sm) !important; border-bottom: 0 !important; }
@media (max-width: 767.98px) {
  .hk-seg-wrap { margin-inline: -16px; padding-inline: 16px; text-align: start; }
  .hk-seg { flex-wrap: nowrap !important; max-width: none; }
  .hk-seg .nav-link, .hk-seg > a, #pills-tab.hk-seg .nav-link { padding: 9px 14px !important; font-size: .9rem !important; }
}

/* ---------- filter bar: one tidy row, stacks on phones ---------- */
.hk-filter {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) minmax(132px, auto); gap: 12px; align-items: end;
  margin: 0 0 28px; padding: 16px 18px 18px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: 18px; box-shadow: var(--hk-shadow-sm);
}
.hk-filter__field { display: grid; gap: 6px; min-width: 0; }
.hk-filter__field label { margin: 0; font-size: .82rem; font-weight: 600; color: var(--hk-muted); }
.hk-filter .form-select, .hk-filter .form-control {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); background-color: #fff; font-size: .95rem; color: var(--hk-ink);
}
.hk-filter .form-control::placeholder { color: #8a9693; }
.hk-filter .form-control:focus, .hk-filter .form-select:focus { border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
.hk-filter .select2-container--default .select2-selection--single { height: 48px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; padding: 0 12px; display: flex; align-items: center; }
.hk-filter .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 1.3; padding: 0 0 0 36px; color: var(--hk-ink); font-size: .95rem; }
.hk-filter .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--hk-ink); }
.hk-filter .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.hk-filter .select2-container--default.select2-container--focus .select2-selection--single,
.hk-filter .select2-container--default.select2-container--open .select2-selection--single { border-color: var(--hk-green); }
.hk-filter .hk-btn { min-height: 48px; }
.hk-filter .select2-selection__clear, .hk-ded-field .select2-selection__clear, .hk-charity .select2-selection__clear { margin-inline-end: 6px; margin-left: 22px !important; color: var(--hk-muted); }
@media (max-width: 991.98px) {
  .hk-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hk-filter__field--name { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .hk-filter { padding: 14px; gap: 10px; }
}

/* ---------- card grid (keeps the shared .panel .card markup) ---------- */
.hk-cards { --bs-gutter-x: 24px; --bs-gutter-y: 24px; }
.hk-cards > [class*="col"] > .panel { padding-bottom: 0 !important; }
.hk-cards .card .card-body .project-card-progress { margin: 0 !important; }
/* cost / donations / residual — one quiet ivory strip */
.hk-cards .card .card-body .cardAmountDetails {
  display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 !important; padding: 10px 4px !important;
  background: var(--hk-ivory); border: 0 !important; border-radius: 14px;
}
.hk-cards .card .card-body .cardAmountDetails > div { width: auto; max-width: none; padding: 0 6px; border: 0 !important; text-align: center; }
.hk-cards .card .card-body .cardAmountDetails > div + div { border-inline-start: 1px solid var(--hk-line) !important; }
.hk-cards .card .card-body .cardAmountDetails h6 { margin: 0 0 2px !important; font-size: .76rem !important; font-weight: 500 !important; color: var(--hk-muted) !important; }
.hk-cards .card .card-body .cardAmountDetails p { margin: 0; font-size: .88rem !important; font-weight: 700 !important; color: var(--hk-green) !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hk-cards .card .card-body .BTN-1, .hk-cards .card .card-body .BTN-2 { font-size: .98rem !important; }
/* stepper row sits flush */
.hk-cards .card .card-body .row.text-center.mt-3 { --bs-gutter-x: 0; margin: auto 0 0 !important; }
.hk-cards .card .card-body .row.text-center.mt-3 > .d-flex { padding: 0; }
/* the "completed" stamp on finished projects stays a small badge */
#Projects .hk-cards .card .card_Img img.completeprojectImg.card-img-top { position: absolute; top: 12px; left: 12px; z-index: 2; width: 64px !important; height: auto !important; object-fit: contain; transform: none !important; }

/* empty states */
.hk-listing .hk-empty, .hk-charity .hk-empty { background: var(--hk-ivory); border: 1px dashed var(--hk-line); border-radius: var(--hk-radius); }
.hk-empty__title { margin: 0 0 4px; font-weight: 700; font-size: 1.05rem; color: var(--hk-green); }
.hk-empty p { margin: 0; line-height: 1.8; }
.hk-empty .hk-btn { margin-top: 16px; }

/* ---------- monthly-deduction card (charity tab, similar projects) ---------- */
.hk-ded-field { display: grid; gap: 6px; }
.hk-ded-label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--hk-ink); }
.hk-interval { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--hk-ivory); border-radius: 12px; }
.hk-interval .btn {
  min-height: 40px; padding: 6px 4px !important; margin: 0 !important; border: 0 !important; border-radius: 9px !important; background: transparent !important;
  color: var(--hk-muted) !important; font-size: .8rem !important; font-weight: 600 !important; line-height: 1.2; white-space: nowrap; box-shadow: none !important;
}
.hk-interval .btn:hover { color: var(--hk-green) !important; }
.hk-interval .btn.active { background: #fff !important; color: var(--hk-green) !important; box-shadow: var(--hk-shadow-sm) !important; }

/* ---------- shared monthly-deduction payment modal (#exampleModal3) ---------- */
#exampleModal3 .modal-content { border: 0; border-radius: var(--hk-radius); box-shadow: var(--hk-shadow); }
#exampleModal3 .modal-header { border: 0; padding: 14px 16px 0; }
#exampleModal3 .modal-body { padding: 4px 24px 8px; }
#exampleModal3 .modal-body .heaD { margin: 0; padding: 0 0 4px; background: none; border: 0; }
#exampleModal3 .heaD h5, #exampleModal3 .heaD .hk-modal-title { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--hk-green); }
#exampleModal3 .heaD img { max-height: 28px; width: auto; }
#exampleModal3 .Payment_form .row { --bs-gutter-x: 12px; margin-top: 12px !important; }
#exampleModal3 .Payment_form .form-label { display: block; width: 100%; margin: 0 0 6px; text-align: start !important; font-weight: 600; font-size: .9rem; color: var(--hk-ink); }
#exampleModal3 .Payment_form .form-control { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
#exampleModal3 .Payment_form .input-group .input-group-text { border: 1.5px solid var(--hk-line-w); background: var(--hk-ivory); color: var(--hk-green); border-radius: 0 12px 12px 0 !important; }
#exampleModal3 .Payment_form .input-group .form-control { border-radius: 12px 0 0 12px !important; }
#exampleModal3 .Payment_form .input-group { margin-bottom: 0 !important; }
#exampleModal3 .Payment_form .form-control:focus { border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
#exampleModal3 .modal-footer { border: 0; padding: 12px 24px 24px; }
#exampleModal3 .hk-deduction-summary { margin: 8px 0 0; color: var(--hk-muted); font-size: .9rem; }
@media (max-width: 575.98px) { #exampleModal3 .Payment_form .col-md-6 + .col-md-6 { margin-top: 12px; } }

/* =====================================================================
   /deductions — monthly recurring cards
   ===================================================================== */
.hk-ded .hk-ded-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.hk-ded .hk-ded-grid > div { min-width: 0; }
.hk-ded .hk-ded-grid > .hk-empty { grid-column: 1 / -1; background: var(--hk-ivory); border: 1px dashed var(--hk-line); border-radius: var(--hk-radius); }
.hk-ded .deduction-card {
  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-ded .deduction-card:hover { transform: translateY(-3px); box-shadow: var(--hk-shadow); }
.hk-ded .deduction-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--hk-ivory); overflow: hidden; }
.hk-ded .deduction-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-ded .deduction-card-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2.4rem; color: var(--hk-green); background: var(--hk-ivory); }
.hk-ded .deduction-card-badge {
  position: absolute; inset-inline-start: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: #fff; color: var(--hk-green); box-shadow: var(--hk-shadow-sm);
}
.hk-ded .deduction-card-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.hk-ded .deduction-card-body h3 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.5; color: var(--hk-green); }
.hk-ded .deduction-card-body > p { margin: 0; color: var(--hk-muted); font-size: .9rem; line-height: 1.8; }
.hk-ded .deduction-label { margin: 0; font-size: .85rem; font-weight: 600; color: var(--hk-ink); }
.hk-ded .deduction-select { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
.hk-ded .select2-container--default .select2-selection--single { height: 48px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; display: flex; align-items: center; }
.hk-ded .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.hk-ded .orphan-preview { display: flex; gap: 10px; align-items: center; padding: 8px; background: var(--hk-ivory); border: 1px solid var(--hk-line); border-radius: 12px; }
.hk-ded .orphan-preview img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: #fff; }
.hk-ded .orphan-preview strong { display: block; font-size: .92rem; color: var(--hk-green); }
.hk-ded .orphan-preview small { color: var(--hk-muted); }
.hk-ded .hk-ded-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--hk-gold-tint); color: #6e5014; font-size: .85rem; line-height: 1.7; }
.hk-ded .deduction-interval-title { margin: 0; font-size: .85rem; font-weight: 600; color: var(--hk-ink); }
/* the interval buttons reuse .hk-interval; keep their legacy class from fighting back */
.hk-ded .deduction-intervals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--hk-ivory); border-radius: 12px; }
.hk-ded .deduction-intervals .btn {
  min-height: 40px; padding: 6px 4px; border: 0; border-radius: 9px; background: transparent; color: var(--hk-muted); font-size: .8rem; font-weight: 600; white-space: nowrap;
}
.hk-ded .deduction-intervals .btn:hover { color: var(--hk-green); }
.hk-ded .deduction-intervals .btn.active { background: #fff; color: var(--hk-green); box-shadow: var(--hk-shadow-sm); }
.hk-ded .deduction-amount { display: flex; align-items: stretch; border: 1.5px solid var(--hk-line-w); border-radius: 14px; overflow: hidden; background: #fff; }
.hk-ded .deduction-amount .value-button { width: 52px; min-height: 50px; flex: 0 0 52px; border: 0; background: var(--hk-ivory); color: var(--hk-green); font-size: 1.3rem; font-weight: 700; }
.hk-ded .deduction-amount .value-button:hover { background: var(--hk-gold-tint); }
.hk-ded .deduction-amount .number { flex: 1; min-width: 0; width: auto; border: 0; text-align: center; font-size: 1.25rem; font-weight: 800; color: var(--hk-green); font-variant-numeric: tabular-nums; }
.hk-ded .deduction-amount .number:focus { outline: none; box-shadow: inset 0 0 0 2px var(--hk-gold); }
.hk-ded .deduction-quick-amounts { gap: 6px; }
.hk-ded .deduction-quick-amounts .hk-chip { min-width: 52px; min-height: 40px; padding: 0 10px; font-size: .9rem; }
.hk-ded .deduction-cta { margin-top: auto; }

/* =====================================================================
   /groups — group cards
   ===================================================================== */
.hk-listing .hk-grid > .hk-empty { grid-column: 1 / -1; }
.hk-group-card { 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-group-card:hover { transform: translateY(-3px); box-shadow: var(--hk-shadow); }
.hk-group-card__media { position: relative; aspect-ratio: 16 / 10; background: var(--hk-ivory); overflow: hidden; }
.hk-group-card__media img, .hk-group-card__media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hk-group-card__media .card-video { position: absolute; inset: 0; background: #000; }
.hk-group-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--hk-gold); font-size: 2.2rem; }
.hk-group-card .play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--hk-green); box-shadow: var(--hk-shadow-sm);
}
.hk-group-card .play-btn:hover { background: #fff; }
.hk-group-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.hk-group-card__title { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.5; }
.hk-group-card__title a { color: var(--hk-green); text-decoration: none; }
.hk-group-card__desc { margin: 0; color: var(--hk-muted); font-size: .9rem; line-height: 1.8; }
.hk-group-card__stats { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 10px 4px; background: var(--hk-ivory); border-radius: 14px; }
.hk-group-card__stats > div { text-align: center; padding: 0 6px; }
.hk-group-card__stats > div + div { border-inline-start: 1px solid var(--hk-line); }
.hk-group-card__stats dt { font-size: .76rem; font-weight: 500; color: var(--hk-muted); }
.hk-group-card__stats dd { margin: 0; font-size: .95rem; font-weight: 700; color: var(--hk-green); }
.hk-group-card__body .hk-btn { margin-top: auto; }

/* =====================================================================
   /groups/{id} — group (bundle) donation page
   ===================================================================== */
.hk-group .hk-group__layout { --bs-gutter-x: 32px; --bs-gutter-y: 32px; }
@media (max-width: 767.98px) { .hk-group .hk-group__layout { --bs-gutter-x: 0px; --bs-gutter-y: 20px; margin-inline: 0; } }
.hk-group .hk-group__panel { position: sticky; top: calc(var(--hk-head-h) + 16px); }
.hk-group .hk-group__panel .hk-panel { padding: 24px; }
.hk-group .hk-group__step { margin: 0 0 8px; font-size: .9rem; font-weight: 600; color: var(--hk-ink); }
.hk-group .hk-group__panel .select2-container--default .select2-selection--single { height: 48px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; display: flex; align-items: center; }
.hk-group .hk-group__panel .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.hk-group .no_country { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: var(--hk-ivory); color: var(--hk-muted); font-size: .9rem; text-align: center; }
.hk-group #projectButtons { max-height: 260px; overflow-y: auto; margin-bottom: 20px; padding: 2px; }
.hk-group .project-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 14px; text-align: start;
  background: #fff; border: 1.5px solid var(--hk-line-w); border-radius: 12px; color: var(--hk-ink); font-weight: 600; font-size: .95rem;
}
.hk-group .project-btn:hover { border-color: var(--hk-green-2); }
.hk-group #projectButtons .project-btn.bactive { background: var(--hk-green-tint) !important; border-color: var(--hk-green) !important; color: var(--hk-green) !important; font-size: .95rem !important; box-shadow: 0 0 0 1.5px var(--hk-green); }
.hk-group .price_label { flex: 0 0 auto; padding: 3px 10px; border-radius: 999px; background: var(--hk-gold-tint); color: #6e5014; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hk-group .hk-group__qty .input-group { max-width: 180px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; overflow: hidden; flex-wrap: nowrap; }
.hk-group .hk-group__qty .input-group .btn { width: 46px; min-height: 46px; border: 0; border-radius: 0; background: var(--hk-ivory); color: var(--hk-green); font-weight: 700; font-size: 1.2rem; }
.hk-group .hk-group__qty .input-group .btn:hover { background: var(--hk-gold-tint); }
.hk-group .hk-group__qty .input-group .form-control { border: 0; min-height: 46px; text-align: center; font-weight: 800; font-size: 1.1rem; color: var(--hk-green); background: #fff; }
.hk-group .hk-group__total { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--hk-green); font-variant-numeric: tabular-nums; }
.hk-group .hk-group__total small { font-size: .9rem; font-weight: 600; color: var(--hk-muted); }
.hk-group .hk-group__panel .form-select { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
.hk-group .hk-group__main--empty { display: none; }
.hk-group .hk-group__panel .form-control { min-height: 48px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
.hk-group .hk-group__panel .form-control:focus { border-color: var(--hk-green); box-shadow: 0 0 0 3px rgba(208, 158, 62, .25); }
.hk-group .hk-group__panel label { font-size: .88rem; font-weight: 600; color: var(--hk-ink); margin-bottom: 6px; }
.hk-group .hk-group__video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 24px; border-radius: 22px; overflow: hidden; background: #000; box-shadow: var(--hk-shadow); }
.hk-group .hk-group__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hk-group .hk-group__main { margin-bottom: 16px; border-radius: 22px; overflow: hidden; background: var(--hk-ivory); box-shadow: var(--hk-shadow-sm); }
.hk-group #mainImage { display: block; width: 100%; max-height: 520px; object-fit: cover; }
.hk-group #thumbnails img { width: 100%; height: 88px !important; object-fit: cover; border-radius: 12px; cursor: pointer; }
.hk-group .hk-group__h2 { margin: 40px 0 20px; font-size: 1.35rem; font-weight: 800; color: var(--hk-green); text-align: center; }
.hk-group .hk-group__h2::after { content: ""; display: block; width: 22px; height: 22px; margin: 10px auto 0; background: var(--hk-star) center / contain no-repeat; }
.hk-group #gallery img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; cursor: pointer; box-shadow: var(--hk-shadow-sm); }
.hk-group #gallery:empty { display: none; }
.hk-group .video-carousel { margin: 0 0 16px; }
.hk-group .video-carousel .carousel-cell { width: 260px; margin-inline-end: 16px; }
.hk-group .video-carousel .video-wrapper { aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: var(--hk-shadow-sm); }
.hk-group .video-carousel video { object-fit: contain; }
.hk-group .flickity-button { background: #fff; color: var(--hk-green); box-shadow: var(--hk-shadow-sm); }
.hk-group .flickity-page-dots { bottom: -32px; }
.hk-group .flickity-page-dots .dot { background: var(--hk-green); }
.hk-group .hk-group__note { display: flex; align-items: center; gap: 20px; padding: 20px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); box-shadow: var(--hk-shadow-sm); }
.hk-group .hk-group__note img { flex: 0 0 120px; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.hk-group .hk-group__note-text { flex: 1; color: var(--hk-ink); line-height: 1.9; font-weight: 600; }
.hk-group .hk-group__faq .accordion-item { margin-bottom: 10px; border: 1px solid var(--hk-line-w) !important; border-radius: 14px !important; overflow: hidden; }
.hk-group .hk-group__faq .accordion-button { font-weight: 700; color: var(--hk-green); background: #fff; box-shadow: none; text-align: start; }
.hk-group .hk-group__faq .accordion-button:not(.collapsed) { background: var(--hk-ivory); color: var(--hk-green); }
.hk-group .hk-group__faq .accordion-button::after { margin-left: 0; margin-right: auto; }
.hk-group .hk-group__faq .accordion-body { color: var(--hk-muted); line-height: 1.9; }
@media (max-width: 991.98px) { .hk-group .hk-group__panel { position: static; } }
@media (max-width: 767.98px) {
  .hk-group .hk-group__note { flex-direction: column; text-align: center; }
  .hk-group .video-carousel .carousel-cell { width: 64%; }
}

/* =====================================================================
   /project-fruits/{id} — what a finished project achieved
   ===================================================================== */
.hk-fruits .fruits-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); box-shadow: var(--hk-shadow-sm); }
.hk-fruits .fruits-status__done { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--hk-gold-tint); color: #6e5014; font-weight: 700; font-size: .9rem; }
.hk-fruits .fruits-status__meter { flex: 1 1 220px; display: flex; align-items: center; gap: 12px; }
.hk-fruits .fruits-status__meter .hk-bar { flex: 1; }
.hk-fruits .fruits-status__meter b { color: var(--hk-green); font-variant-numeric: tabular-nums; }
.hk-fruits .fruits-jump { margin: 0; text-align: start; }
.hk-fruits .fruits-section { scroll-margin-top: calc(var(--hk-head-h) + 16px); }
.hk-fruits #fruits-videos { margin-top: 56px; }
.hk-fruits .fruits-count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--hk-green-tint); color: var(--hk-green); font-size: .8rem; font-weight: 700; }
.hk-fruits .fruits-videos { display: flex; flex-wrap: wrap; gap: 20px; }
.hk-fruits .fruits-video-card { flex: 1 1 280px; min-width: 0; background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); overflow: hidden; box-shadow: var(--hk-shadow-sm); }
.hk-fruits .fruits-video-card.is-featured { flex-basis: 100%; }
.hk-fruits .fruits-video-frame { position: relative; aspect-ratio: 16 / 9; background: #0d1f1d; }
.hk-fruits .fruits-video-card.is-featured .fruits-video-frame { aspect-ratio: 16 / 8.5; }
.hk-fruits .fruits-video-frame iframe, .hk-fruits .fruits-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.hk-fruits .fruits-video-card h3 { margin: 0; padding: 14px 18px; font-size: 1rem; font-weight: 700; color: var(--hk-green); }
.hk-fruits .fruits-photos { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.hk-fruits .fruits-photo { grid-column: span 4; position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; color: #fff; text-decoration: none; background: #fff; box-shadow: var(--hk-shadow-sm); }
.hk-fruits .fruits-photo.is-wide { grid-column: span 8; aspect-ratio: 16 / 10; }
.hk-fruits .fruits-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hk-fruits .fruits-photo:hover img { transform: scale(1.04); }
.hk-fruits .fruits-photo span:not(:empty) { position: absolute; inset-inline: 0; bottom: 0; padding: 10px 12px; font-size: .85rem; font-weight: 600; background: linear-gradient(transparent, rgba(2, 61, 57, .88)); }
.hk-fruits .fruits-summary { margin: 0 auto 24px; max-width: 75ch; padding: 18px 20px; border-radius: 18px; background: var(--hk-ivory); color: var(--hk-ink); line-height: 1.9; text-align: center; }
.hk-fruits .fruits-highlight { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 20px 24px; border-radius: var(--hk-radius); background: var(--hk-green); color: #fff; box-shadow: var(--hk-shadow); }
.hk-fruits .fruits-highlight-icon { flex: 0 0 56px; width: 56px; height: 56px; display: grid; place-items: center; color: var(--hk-gold); font-size: 1.3rem; background: var(--hk-star) center / 100% no-repeat; }
.hk-fruits .fruits-highlight strong { display: block; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.2; color: var(--hk-gold); font-variant-numeric: tabular-nums; }
.hk-fruits .fruits-highlight em { display: block; font-style: normal; font-weight: 600; color: #dfe9e6; }
.hk-fruits .fruits-kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.hk-fruits .fruits-kpi { padding: 20px 16px; text-align: center; background: #fff; border: 1px solid var(--hk-line-w); border-radius: var(--hk-radius); box-shadow: var(--hk-shadow-sm); }
.hk-fruits .fruits-kpi-icon { width: 44px; height: 44px; margin: 0 auto 8px; display: grid; place-items: center; color: var(--hk-green); background: var(--hk-star) center / 100% no-repeat; }
.hk-fruits .fruits-kpi em { display: block; font-style: normal; font-weight: 800; font-size: clamp(1.2rem, 2.8vw, 1.6rem); line-height: 1.25; color: var(--hk-green); word-break: break-word; font-variant-numeric: tabular-nums; }
.hk-fruits .fruits-kpi--gold em { color: var(--hk-gold-2); }
.hk-fruits .fruits-kpi small { margin-inline-start: 4px; font-size: .62em; font-weight: 600; color: var(--hk-muted); }
.hk-fruits .fruits-kpi span { display: block; margin-top: 6px; color: var(--hk-muted); font-size: .88rem; font-weight: 500; line-height: 1.5; }
.hk-fruits .fruits-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.hk-fruits .fruits-fact { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid var(--hk-line-w); border-radius: 18px; box-shadow: var(--hk-shadow-sm); }
.hk-fruits .fruits-fact-mark { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--hk-green-tint); color: var(--hk-green); font-size: .85rem; }
.hk-fruits .fruits-fact-label { display: block; margin-bottom: 4px; color: var(--hk-muted); font-size: .8rem; font-weight: 600; }
.hk-fruits .fruits-fact strong { display: block; color: var(--hk-green); font-size: .98rem; font-weight: 700; line-height: 1.7; }
.hk-fruits .fruits-bullets { margin: 20px 0 0; padding: 18px 20px; list-style: none; border-radius: 18px; background: var(--hk-ivory); color: var(--hk-ink); }
.hk-fruits .fruits-bullets li { position: relative; margin: 0 0 8px; padding-inline-start: 18px; line-height: 1.8; }
.hk-fruits .fruits-bullets li:last-child { margin-bottom: 0; }
.hk-fruits .fruits-bullets li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--hk-gold); }
.hk-fruits .fruits-thanks { position: relative; overflow: hidden; padding: 36px 24px; border-radius: 28px; background: var(--hk-green); color: #fff; text-align: center; box-shadow: var(--hk-shadow); }
.hk-fruits .fruits-thanks::before { content: ""; position: absolute; inset: 0; opacity: .18; background: var(--hk-star) center / 56px 56px repeat; pointer-events: none; }
.hk-fruits .fruits-thanks > * { position: relative; }
.hk-fruits .fruits-thanks h2 { margin: 0 0 6px; font-size: 1.4rem; font-weight: 800; color: #fff; }
.hk-fruits .fruits-thanks-value { margin: 4px 0; font-size: clamp(1.4rem, 3.2vw, 2rem); font-weight: 800; color: var(--hk-gold); }
.hk-fruits .fruits-thanks p { margin: 8px auto 0; max-width: 40rem; color: #dfe9e6; line-height: 1.9; }
.hk-fruits .fruits-thanks .fruits-thanks-dua { color: var(--hk-gold); font-weight: 600; }
.hk-fruits .fruits-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hk-fruits .fruits-thanks .hk-btn--ghost { color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.hk-fruits .fruits-thanks .hk-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 767.98px) {
  .hk-fruits .fruits-photo, .hk-fruits .fruits-photo.is-wide { grid-column: span 6; aspect-ratio: 1; }
  .hk-fruits .fruits-video-card.is-featured .fruits-video-frame { aspect-ratio: 16 / 10; }
  .hk-fruits .fruits-facts { grid-template-columns: 1fr; }
  .hk-fruits .fruits-thanks-actions .hk-btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .hk-fruits .fruits-kpi-grid { gap: 10px; }
  .hk-fruits .fruits-kpi { padding: 16px 10px; }
  .hk-fruits .fruits-photo, .hk-fruits .fruits-photo.is-wide { grid-column: span 12; aspect-ratio: 16 / 11; }
  .hk-fruits .fruits-highlight { padding: 16px; gap: 12px; }
}

/* =====================================================================
   /choosecharityDonation/{code} — one monthly-deduction project
   ===================================================================== */
.hk-charity .hk-charity__layout { --bs-gutter-x: 32px; --bs-gutter-y: 24px; align-items: flex-start; }
@media (max-width: 767.98px) { .hk-charity .hk-charity__layout { --bs-gutter-x: 0px; margin-inline: 0; } }
.hk-charity .hk-charity__media { border-radius: 22px; overflow: hidden; background: var(--hk-ivory); box-shadow: var(--hk-shadow); }
.hk-charity .hk-charity__media img { display: block; width: 100%; height: auto; }
.hk-charity .hk-charity__panel { padding: 26px 28px 28px; border-radius: 26px; border-color: var(--hk-line); box-shadow: var(--hk-shadow); display: grid; gap: 18px; }
.hk-charity .hk-charity__panel .hk-ded-label { font-size: .92rem; }
.hk-charity .hk-charity__panel .select2-container--default .select2-selection--single { height: 50px; border: 1.5px solid var(--hk-line-w); border-radius: 12px; display: flex; align-items: center; }
.hk-charity .hk-charity__panel .select2-container--default .select2-selection--single .select2-selection__arrow { height: 48px; }
.hk-charity .hk-charity__panel .form-select { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--hk-line-w); }
.hk-charity .hk-interval .btn { min-height: 44px; font-size: .88rem !important; }
.hk-charity .hk-charity__amount { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.hk-charity .hk-charity__stepper { display: flex; align-items: stretch; border: 1.5px solid var(--hk-line-w); border-radius: 14px; overflow: hidden; background: #fff; }
.hk-charity .hk-charity__stepper .value-button { width: 52px; flex: 0 0 52px; min-height: 52px; display: grid; place-items: center; background: var(--hk-ivory); color: var(--hk-green); font-size: 1.35rem; font-weight: 700; cursor: pointer; user-select: none; }
.hk-charity .hk-charity__stepper .value-button:hover { background: var(--hk-gold-tint); }
.hk-charity .hk-charity__stepper input.number { flex: 1; min-width: 0; border: 0; text-align: center; font-size: 1.35rem; font-weight: 800; color: var(--hk-green); font-variant-numeric: tabular-nums; }
.hk-charity .hk-charity__stepper input.number:focus { outline: none; box-shadow: inset 0 0 0 2px var(--hk-gold); }
.hk-charity .predefinedamount.hk-chip.active { border-color: var(--hk-green); background: var(--hk-green); color: #fff; }
.hk-charity .hk-charity__details { margin-top: 40px; }
/* admin HTML pasted from the old site carries Bootstrap 3 wrappers (.tab-pane.fade.in = invisible in BS5) */
.hk-charity #pills-Details .hk-prose .fade, .hk-charity #pills-Details .hk-prose .tab-pane { display: block !important; opacity: 1 !important; }
.hk-charity #pills-Details .hk-prose .container, .hk-charity #pills-Details .hk-prose .row, .hk-charity #pills-Details .hk-prose [class*="col-"] { width: auto; max-width: none; margin: 0; padding: 0; }
.hk-charity .hk-charity__report embed { width: 100%; min-height: 560px; border-radius: 16px; border: 1px solid var(--hk-line-w); }
.hk-charity .hk-charity__report-name { margin: 10px 0 0; color: var(--hk-muted); font-size: .88rem; text-align: center; word-break: break-all; }
/* donations paused: the form is blurred and this note explains why */
.hk-charity .BLRTextCenter { margin: 0 auto; max-width: 720px; }
.hk-charity .hk-charity__paused { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding: 16px 20px; border-radius: 18px; background: var(--hk-gold-tint); color: #6e5014; font-weight: 600; line-height: 1.8; }
.hk-charity .hk-charity__paused i { font-size: 1.3rem; color: var(--hk-gold-2); }
@media (max-width: 767.98px) {
  .hk-charity .hk-charity__panel { padding: 20px 16px 22px; }
  .hk-charity .hk-charity__amount { grid-template-columns: 1fr; }
  .hk-charity .hk-charity__report embed { min-height: 420px; }
}

/* project categories: full labels on desktop; on phones a 4-column grid of icon tiles with short names */
.hk-seg .hk-seg__icon, .hk-seg .hk-seg__short { display: none; }
@media (max-width: 767.98px) {
  .hk-seg-wrap { margin-inline: 0; padding-inline: 0; overflow: visible; }
  .hk-seg { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; width: 100%; padding: 6px !important; border-radius: 18px; }
  #pills-tab.hk-seg .nav-link { display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 64px; padding: 8px 2px !important;
    border-radius: 12px !important; font-size: .74rem !important; line-height: 1.3; white-space: nowrap; }
  .hk-seg .hk-seg__icon { display: block; font-size: 1.05rem; color: var(--hk-gold-2); }
  .hk-seg .nav-link.active .hk-seg__icon { color: var(--hk-green); }
  .hk-seg .hk-seg__short { display: block; }
  /* the full name stays for screen readers */
  .hk-seg .hk-seg__full { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* the deduction steppers are real <button>s now (keyboard + screen readers); keep the old flat look */
button.value-button { border: 0; padding: 0; font: inherit; line-height: 1; cursor: pointer; }
button.value-button:focus-visible { outline: 2px solid var(--hk-gold); outline-offset: 2px; }

/* ---------- search page (ar/pages/search) ---------- */
.hk-srch .hk-pagehead__inner { padding-block: 40px 34px; }
.hk-srch .hk-pagehead__text { flex: 1; min-width: 0; }
.hk-srch__lead { margin: 10px 0 0; color: var(--hk-muted); font-size: 1rem; }
.hk-srch__form { position: relative; display: flex; align-items: center; max-width: 760px; margin-top: 22px; padding: 6px; padding-inline-start: 50px; border: 1.5px solid var(--hk-line); border-radius: 18px; background: #fff; box-shadow: var(--hk-shadow); transition: border-color .15s, box-shadow .15s; }
.hk-srch__form:focus-within { border-color: var(--hk-green); box-shadow: 0 0 0 4px rgba(208, 158, 62, .22), var(--hk-shadow); }
.hk-srch__icon { position: absolute; inset-inline-start: 19px; top: 50%; transform: translateY(-50%); color: var(--hk-gold); font-size: 1.1rem; pointer-events: none; }
.hk-srch__form input { flex: 1; min-width: 0; height: 52px; padding: 0 4px; border: 0; background: none; color: var(--hk-ink); font: inherit; font-size: 1.05rem; }
.hk-srch__form input:focus { outline: 0; }
.hk-srch__form input::-webkit-search-cancel-button { display: none; }
.hk-srch__form input::placeholder { color: #9aa7a4; }
.hk-srch__clear { flex: 0 0 38px; width: 38px; height: 38px; display: grid; place-items: center; margin-inline-end: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--hk-ivory); color: var(--hk-muted); cursor: pointer; }
.hk-srch__clear[hidden] { display: none; }
.hk-srch__clear:hover { color: var(--hk-green); }
.hk-srch__submit { min-height: 52px; padding-inline: 30px; border-radius: 13px; }
.hk-srch__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.hk-srch__chips-label { margin-inline-end: 4px; color: var(--hk-muted); font-size: .88rem; font-weight: 600; }
.hk-srch__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding-block: 4px; padding-inline: 14px 6px; border: 1px solid var(--hk-line); border-radius: 999px; background: #fff; color: var(--hk-green); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, background-color .15s, color .15s; }
.hk-srch__chip small { min-width: 26px; padding: 2px 7px; border-radius: 999px; background: var(--hk-ivory); color: var(--hk-muted); font-size: .72rem; font-weight: 700; text-align: center; }
.hk-srch__chip:hover { border-color: var(--hk-gold); color: var(--hk-green); }
.hk-srch__chip.is-active { border-color: var(--hk-green); background: var(--hk-green); color: #fff; }
.hk-srch__chip.is-active small { background: rgba(255, 255, 255, .16); color: #fff; }
.hk-srch-results { padding-top: 30px; transition: opacity .2s; }
.hk-srch-results.is-loading { opacity: .5; }
.hk-srch__count { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 18px; color: var(--hk-muted); font-size: .98rem; }
.hk-srch__count b { color: var(--hk-green); font-weight: 800; }
.hk-srch__count small { font-size: .82rem; }
.hk-srch__grid + .hk-srch__more { margin-top: 36px; padding-top: 30px; border-top: 1px solid var(--hk-line-w); }
.hk-srch__more { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.hk-srch__h2 { margin: 0; color: var(--hk-green); font-size: 1.3rem; font-weight: 800; }
.hk-srch__all { display: inline-flex; align-items: center; gap: 6px; color: var(--hk-green); font-size: .92rem; font-weight: 700; text-decoration: none; }
.hk-srch__all:hover { color: var(--hk-gold-2, #a67a26); }
.hk-srch__grid mark { padding: 0 2px; border-radius: 4px; background: var(--hk-gold-tint); color: inherit; }
@media (max-width: 575.98px) {
  .hk-srch .hk-pagehead__inner { padding-block: 26px 24px; }
  .hk-srch__lead { font-size: .9rem; }
  .hk-srch__form { margin-top: 16px; padding-inline-start: 42px; border-radius: 16px; }
  .hk-srch__icon { inset-inline-start: 15px; }
  .hk-srch__form input { height: 48px; font-size: 1rem; }
  .hk-srch__submit { min-height: 48px; padding-inline: 18px; }
  /* every chip visible: the label on its own line, chips wrap (centred like the phone page head) */
  .hk-srch__chips { justify-content: center; gap: 7px; margin-top: 14px; }
  .hk-srch__chips-label { flex: 0 0 100%; margin: 0; font-size: .82rem; text-align: center; }
  .hk-srch__chip { min-height: 34px; gap: 6px; padding-inline: 12px 5px; font-size: .84rem; }
  .hk-srch__chip small { min-width: 22px; padding: 1px 6px; }
  .hk-srch__h2 { font-size: 1.12rem; }
}
@media (prefers-reduced-motion: reduce) { .hk-srch__form, .hk-srch-results, .hk-srch__chip { transition: none; } }
