/* ============================================================
   Donate Zakat Page — donate-zakat.css
   ============================================================ */

/* ── Hero ── Photo mosaic background with a brand-green overlay,
   living on the outer .banner-section (which also holds the nav) so the
   nav strip and hero share one continuous backdrop. */
.banner-section.rd-hero-bg {
    position: relative;
    overflow: hidden;
}
.rd-hero__bg {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 0;
}
.rd-hero__bg img {
    flex: 1;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.banner-section.rd-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(1,40,16,.90) 0%, rgba(3,95,40,.84) 100%);
    z-index: 1;
}

.rd-hero {
    position: relative;
    z-index: 2;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.rd-hero__dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.rd-hero__inner {
    position: relative;
    z-index: 1;
    padding-top: var(--banner-body-padding-top, 30px);
    padding-bottom: 52px;
}

.rd-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 99px;
    padding: 5px 16px;
    margin-bottom: 16px;
}

.rd-hero__title {
    font-size: clamp(2rem, 2.5vw + 1rem, 3rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.18;
    margin: 0 0 16px;
}

.rd-hero__sub {
    color: rgba(255,255,255,0.86);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 0 24px;
}

.rd-hero__trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.rd-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.rd-trust-item .fa { color: #8de46a; }

@media (max-width: 576px) {
    .rd-hero { min-height: 320px; }
}

/* ── Page wrapper ── */
.rd-page {
    background: #f5faf2;
    padding: 48px 0 64px;
}

/* ── Spotlight: real beneficiary story ── */
.rd-spotlight {
    background: #f5faf2;
    padding: 36px 0 0;
}
.rd-spotlight__card {
    display: flex;
    align-items: center;
    gap: 28px;
    background: linear-gradient(135deg, #f3faef 0%, #fff 60%);
    border: 1px solid #dcefd2;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 10px 32px rgba(54, 132, 32, 0.08);
}
.rd-spotlight__img-wrap {
    position: relative;
    flex-shrink: 0;
}
.rd-spotlight__img-wrap img,
.rd-spotlight__placeholder {
    width: 230px;
    height: 280px;
    border-radius: 18px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.16);
    display: block;
}
.rd-spotlight__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2f7a1d, #4faa29);
    color: #fff;
    font-size: 72px;
    font-weight: 700;
    font-family: Outfit, sans-serif;
}
.rd-spotlight__crescent {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #368420;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.rd-spotlight__kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #368420;
    margin-bottom: 4px;
}
.rd-spotlight__name {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.rd-spotlight__quote {
    font-style: italic;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 16px;
}
.rd-spotlight__progress { margin-bottom: 16px; max-width: 420px; }
.rd-spotlight__bar {
    height: 6px;
    background: #eee;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 6px;
}
.rd-spotlight__bar-fill {
    height: 6px;
    background: linear-gradient(90deg, #2d7019, #5ab82e);
    border-radius: 100px;
}
.rd-spotlight__stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: #444;
}
.rd-spotlight__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.rd-spotlight__select {
    height: 42px;
    border-radius: 8px;
    border: 1.5px solid #d0e8c8;
    background: #f8fcf5;
    padding: 0 12px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
}
.rd-spotlight__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 22px;
    border-radius: 8px;
    background: #368420;
    color: #fff !important;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
}
.rd-spotlight__btn:hover { background: #2a6a18; }
/* Neutralize global .checkout-container button-chrome so it doesn't double up with .rd-spotlight__btn */
.rd-spotlight__actions--checkout.checkout-container {
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
    cursor: default;
}
.rd-spotlight__actions--checkout.checkout-container:hover {
    background: transparent;
}
.rd-spotlight__actions--checkout .rd-spotlight__btn {
    display: inline-flex !important;
    width: auto;
}
@media (max-width: 700px) {
    .rd-spotlight__card { flex-direction: column; text-align: center; }
    .rd-spotlight__progress { margin-inline: auto; }
    .rd-spotlight__stats { text-align: left; }
}

/* ── Beneficiary gallery strip (pictorial, emotional touch) ── */
.rd-gallery {
    padding: 28px 0 0;
}
.rd-gallery__label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #368420;
    margin: 0 0 14px;
}
.rd-gallery__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rd-gallery__item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}
.rd-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rd-gallery__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 12px;
    background: linear-gradient(0deg, rgba(1,40,16,.82) 0%, transparent 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}
@media (max-width: 700px) {
    .rd-gallery__row { grid-template-columns: 1fr 1fr; }
}

/* ── Two-column layout ── */
.rd-layout {
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* ── Left info panel ── */
.rd-info__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 12px;
}

.rd-info__desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.65;
    margin: 0 0 28px;
}

.rd-impact-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 32px;
}

.rd-impact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rd-impact-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eef6e8;
    border: 1.5px solid #c0deb0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #368420;
    font-size: 1rem;
    flex-shrink: 0;
}

.rd-impact-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.rd-impact-item span {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.45;
}

/* Nisab card */
.rd-nisab {
    background: #fff;
    border: 1px solid #d0eac0;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(54,132,32,0.06);
}

.rd-nisab__head {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 12px;
}

.rd-nisab__row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #333;
    padding: 6px 0;
    border-bottom: 1px solid #f0f5ee;
}

.rd-nisab__row:last-of-type { border-bottom: none; }

.rd-nisab__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.rd-nisab__dot--gold   { background: #f5c842; }
.rd-nisab__dot--silver { background: #c8c8c8; }

.rd-nisab__rate {
    margin-top: 12px;
    background: #f0f7ec;
    border-radius: 7px;
    padding: 7px 12px;
    font-size: 0.8rem;
    color: #444;
    text-align: center;
}

.rd-nisab__rate strong { color: #368420; }

/* ── Calculator form card ── */
.rd-form-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ddefd4;
    box-shadow: 0 6px 36px rgba(54,132,32,0.1);
    overflow: hidden;
    position: sticky;
    top: 20px;
}

.rd-form-card__head {
    background: linear-gradient(135deg, #2a6a18, #368420);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rd-form-body { padding: 20px; }

.rd-form-intro {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
    margin: 0 0 16px;
}

/* The embedded Zakat Calculator (.zk-calc, from zakat.css) already sits
   inside the .rd-form-card shell — drop its own border/shadow so the two
   don't double up. */
.rd-form-body .zk-calc {
    border: none;
    box-shadow: none;
    border-radius: 0;
}

/* Secure note */
.rd-secure {
    margin-top: 12px;
    text-align: center;
    font-size: 0.75rem;
    color: #999;
}

.rd-secure .fa { color: #368420; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .rd-layout { grid-template-columns: 1fr; }
    .rd-form-card { position: static; }
    .rd-info { order: 2; }
    .rd-form-wrap { order: 1; }
}

@media (max-width: 576px) {
    .rd-hero__title { font-size: 1.8rem; }
    .rd-hero__trust { gap: 14px; }
    .rd-form-body { padding: 16px; }
}

/* ── The 100% Model: why Zakat funds operations, not loans ──
   Light section by design: it sits directly under the dark hero, so it
   needs to contrast against it (and flow into the light .rd-page below)
   rather than stacking a second dark band on top of the hero. */
.rd-model {
    background: #f5faf2;
    padding: clamp(40px, 4vw + 16px, 64px) 0;
    position: relative;
}
.rd-model__head {
    position: relative;
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.rd-model__eyebrow {
    display: inline-block;
    background: #eef6e8;
    border: 1px solid #c0deb0;
    color: #368420;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 99px;
    margin-bottom: 14px;
}
.rd-model__title {
    color: #1a1a1a;
    font-size: clamp(1.4rem, 1vw + 1.1rem, 2rem);
    font-weight: 800;
    line-height: 1.32;
    margin: 0 0 14px;
}
.rd-model__sub {
    color: #555;
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}
.rd-model__flow {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    max-width: 980px;
    margin: 0 auto;
}
.rd-model__step {
    flex: 1;
    background: #fff;
    border: 1px solid #ddefd4;
    border-radius: 16px;
    padding: 28px 22px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(54,132,32,.06);
}
.rd-model__step-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8de46a, #368420);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #123a08;
    font-size: 1.4rem;
    box-shadow: 0 8px 18px rgba(54,132,32,.28);
}
.rd-model__step h3 {
    color: #1a1a1a;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.rd-model__step p {
    color: #666;
    font-size: .82rem;
    line-height: 1.5;
    margin: 0;
}
.rd-model__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #368420;
    font-size: 1.3rem;
    padding: 0 14px;
    flex: 0 0 auto;
}
@media (max-width: 800px) {
    .rd-model__flow { flex-direction: column; gap: 14px; }
    .rd-model__arrow { transform: rotate(90deg); padding: 6px 0; }
}

/* ── Special features grid ── */
.rd-features {
    background: #fff;
    padding: clamp(40px, 4vw + 16px, 64px) 0;
}
.rd-features__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 36px;
}
.rd-features__eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #368420;
    margin-bottom: 8px;
}
.rd-features__title {
    font-size: clamp(1.3rem, 1vw + 1rem, 1.9rem);
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}
.rd-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1100px;
    margin: 0 auto;
}
.rd-feature-card {
    background: linear-gradient(135deg, #f8fcf5 0%, #fff 60%);
    border: 1px solid #e2f0d8;
    border-radius: 16px;
    padding: 26px 22px;
    box-shadow: 0 6px 20px rgba(54,132,32,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.rd-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(54,132,32,.14);
}
.rd-feature-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #eef6e8;
    border: 1.5px solid #c0deb0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #368420;
    font-size: 1.1rem;
    margin-bottom: 14px;
}
.rd-feature-card h3 {
    font-size: .98rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}
.rd-feature-card p {
    font-size: .82rem;
    color: #666;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) {
    .rd-features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .rd-features__grid { grid-template-columns: 1fr; }
}

/* ── Section wrappers reusing site-wide widgets (awards, fundraising apps) ── */
.rd-awards-section {
    background: #f5faf2;
}

/* Award cards vary in height because description lengths differ; force them
   to match (both within the flex row and as a floor) so the swiper row reads
   as one consistent shelf instead of jagged boxes. */
.rd-awards-section .home-awards-swiper .swiper-wrapper {
    align-items: stretch;
}
.rd-awards-section .home-awards-swiper .swiper-slide {
    height: auto;
    display: flex;
}
.rd-awards-section .home-award-item {
    flex: 1;
    height: 100%;
    min-height: 190px;
    box-sizing: border-box;
}
@media (max-width: 575px) {
    .rd-awards-section .home-award-item {
        min-height: 0;
    }
}
