/* ===========================
   DONATE PAGE — donate.css
=========================== */

/* Active donate button in navbar */
.active-donate-btn {
    background: linear-gradient(135deg, #FFD54F, #f0b800) !important;
    color: #0f5132 !important;
    box-shadow: 0 6px 20px rgba(240,184,0,.4) !important;
}

/* ===========================
   DONATE HERO
=========================== */

.donate-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/masjid-outside-view.jpeg') center/cover no-repeat;
    overflow: hidden;
}

.donate-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10,40,25,.82) 0%,
        rgba(15,81,50,.78) 60%,
        rgba(10,40,25,.88) 100%
    );
}

.donate-hero-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,213,79,.12), transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
}

.donate-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
}

.donate-arabic {
    font-size: 28px;
    color: #FFD54F;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.donate-hero-content h1 {
    font-size: 58px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 22px;
    text-shadow: 0 4px 24px rgba(0,0,0,.3);
}

.donate-hero-sub {
    font-size: 18px;
    color: rgba(255,255,255,.85);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-style: italic;
}

/* ===========================
   SHARED SECTION STYLES
=========================== */

.donate-section {
    padding: 90px 0;
}

.section-center {
    text-align: center;
    margin-bottom: 50px;
}

.section-center .section-sub {
    margin: 0 auto;
}

/* ===========================
   CAUSE SECTION
=========================== */

.cause-section {
    background: #fff;
}

.cause-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cause-card {
    background: #f8faf7;
    border: 1px solid #e8f0eb;
    border-radius: 22px;
    padding: 38px 30px;
    position: relative;
    transition: .35s;
}

.cause-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(25,135,84,.12);
    border-color: #198754;
}

.cause-card--featured {
    background: linear-gradient(135deg, #f0faf4, #e7f7ed);
    border-color: #198754;
    box-shadow: 0 12px 40px rgba(25,135,84,.12);
}

.cause-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: #e7f7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #198754;
    margin-bottom: 20px;
}

.cause-card--featured .cause-icon {
    background: #198754;
    color: #fff;
}

.cause-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

.cause-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

.cause-badge {
    display: inline-block;
    background: #FFD54F;
    color: #0f5132;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 16px;
    text-transform: uppercase;
}

/* ===========================
   SECTION DIVIDER
=========================== */

.section-divider {
    text-align: center;
    padding: 10px 0;
    color: #c8e6d4;
    font-size: 22px;
    position: relative;
}

.section-divider::before,
.section-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: linear-gradient(to right, transparent, #d4e8db);
}

.section-divider::before { left: 0; }
.section-divider::after { right: 0; background: linear-gradient(to left, transparent, #d4e8db); }

/* ===========================
   WAYS TO DONATE
=========================== */

.ways-section {
    background: #f8faf7;
}

.ways-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.ways-card {
    background: #fff;
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: 0 15px 50px rgba(0,0,0,.07);
    border: 1px solid #eef3ef;
    transition: .3s;
}

.ways-card:hover {
    box-shadow: 0 25px 65px rgba(25,135,84,.1);
}

.ways-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.ways-card-header i {
    font-size: 28px;
    color: #198754;
    width: 52px;
    height: 52px;
    background: #e7f7ed;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ways-card-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

/* UPI QR */
.upi-qr-wrap {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    border: 2px solid #FFD54F;
}

.upi-qr-wrap img {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    border-radius: 10px;
}

.upi-note {
    color: #666;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
    font-style: italic;
}

.upi-details {
    background: #f8faf7;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upi-detail-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
    color: #444;
}

.upi-label {
    font-weight: 700;
    color: #0f5132;
    white-space: nowrap;
    min-width: 80px;
}

.upi-id {
    font-weight: 700;
    color: #198754;
    font-size: 15px;
    letter-spacing: .5px;
}

/* Bank Details */
.bank-details {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.bank-row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    align-items: center;
}

.bank-row:last-child { border-bottom: none; }

.bank-label {
    font-weight: 700;
    color: #0f5132;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.bank-acc {
    font-size: 18px;
    font-weight: 800;
    color: #198754;
    letter-spacing: 1px;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #198754;
    border-radius: 30px;
    color: #198754;
    font-weight: 700;
    font-size: 14px;
    transition: .3s;
    cursor: pointer;
}

.copy-btn:hover {
    background: #198754;
    color: #fff;
}

/* ===========================
   CASH SECTION
=========================== */

.cash-section {
    background: #fff;
}

.cash-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.cash-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f0faf4;
    border: 2px solid #c8e6d4;
    border-radius: 20px;
    padding: 28px 32px;
    min-width: 160px;
    transition: .3s;
}

.cash-icon-item:hover {
    background: #e7f7ed;
    border-color: #198754;
    transform: translateY(-5px);
}

.cash-icon-item i {
    font-size: 36px;
    color: #198754;
}

.cash-icon-item span {
    font-size: 14px;
    font-weight: 600;
    color: #0f5132;
    text-align: center;
}

.cash-icon-arrow {
    color: #c8e6d4;
    font-size: 22px;
}

/* ===========================
   BUILDING FUND SECTION
=========================== */

.building-section {
    background: #f8faf7;
}

.building-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: start;
}

.building-img-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 110px;
}

.building-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 55px rgba(0,0,0,.14);
    object-fit: cover;
}

.building-img--second {
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,.1);
}

.building-text-col {
    background: #fff;
    border-radius: 24px;
    padding: 44px 40px;
    box-shadow: 0 15px 50px rgba(0,0,0,.07);
}

.bismillah-line {
    font-size: 13px;
    color: #198754;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.building-heading {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
    line-height: 1.4;
}

.building-hadith {
    font-size: 14px;
    color: #666;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 22px;
    padding: 14px 18px;
    background: #f0faf4;
    border-left: 4px solid #198754;
    border-radius: 0 12px 12px 0;
}

.building-appeal-badge {
    background: linear-gradient(135deg, #198754, #0f5132);
    color: #fff;
    border-radius: 14px;
    padding: 16px 22px;
    margin-bottom: 22px;
    text-align: center;
}

.building-appeal-badge span {
    display: block;
    font-size: 13px;
    opacity: .85;
    margin-bottom: 4px;
}

.building-appeal-badge strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}

.building-body {
    font-size: 15px;
    color: #555;
    line-height: 1.85;
    margin-bottom: 16px;
}

.building-total-wrap {
    background: linear-gradient(135deg, #fff8e1, #fff3cd);
    border: 2px solid #FFD54F;
    border-radius: 16px;
    padding: 22px 28px;
    text-align: center;
    margin: 24px 0;
}

.building-total-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #0f5132;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.building-total-amount {
    font-size: 38px;
    font-weight: 800;
    color: #c00;
    letter-spacing: 1px;
    line-height: 1;
}

.building-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.building-trust-info {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.building-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #0f5132;
}

.building-contact i { color: #198754; }

.donate-now-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #198754, #0f5132);
    color: #fff;
    padding: 16px 36px;
    border-radius: 35px;
    font-weight: 700;
    font-size: 17px;
    transition: .35s;
    box-shadow: 0 8px 28px rgba(25,135,84,.35);
    position: relative;
    overflow: hidden;
}

.donate-now-cta::before {
    content: "";
    position: absolute;
    left: -100%;
    top: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
    animation: shine 2.5s linear infinite;
}

.donate-now-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 38px rgba(25,135,84,.45);
}

/* ===========================
   RESPONSIVE
=========================== */

/* --- Tablet (≤1100px) --- */
@media (max-width: 1100px) {

    /* Hero */
    .donate-hero { min-height: 360px; }
    .donate-hero-content { padding: 70px 20px; }
    .donate-hero-content h1 { font-size: 46px; }
    .donate-arabic { font-size: 24px; }
    .donate-hero-sub { font-size: 16px; }

    /* Sections */
    .donate-section { padding: 70px 0; }

    /* Cause */
    .cause-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

    /* Ways */
    .ways-grid { grid-template-columns: 1fr; gap: 24px; }
    .ways-card { padding: 36px 30px; }
    /* Side-by-side UPI + bank on tablet since they stack */
    .upi-qr-wrap img { max-width: 280px; }

    /* Building fund */
    .building-grid { grid-template-columns: 1fr; gap: 36px; }
    .building-img-col {
        position: static;
        flex-direction: row;
        gap: 14px;
    }
    .building-img { flex: 1; max-height: 280px; object-fit: cover; }
    .building-text-col { padding: 36px 32px; }
    .building-total-amount { font-size: 34px; }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

    /* Hero */
    .donate-hero { min-height: 300px; }
    .donate-hero-content { padding: 60px 16px; }
    .donate-hero-content h1 { font-size: 32px; }
    .donate-arabic { font-size: 18px; letter-spacing: 1px; }
    .donate-hero-sub { font-size: 14px; max-width: 100%; }

    /* Sections */
    .donate-section { padding: 52px 0; }
    .section-center { margin-bottom: 36px; }

    /* Cause — single column */
    .cause-grid { grid-template-columns: 1fr; gap: 16px; }
    .cause-card { padding: 28px 22px; }
    .cause-card h3 { font-size: 18px; }
    .cause-icon { width: 52px; height: 52px; font-size: 22px; }

    /* Ways */
    .ways-card { padding: 24px 18px; }
    .ways-card-header { gap: 12px; margin-bottom: 22px; padding-bottom: 16px; }
    .ways-card-header i { width: 44px; height: 44px; font-size: 22px; }
    .ways-card-header h3 { font-size: 19px; }

    /* UPI */
    .upi-qr-wrap { padding: 16px; }
    .upi-qr-wrap img { max-width: 260px; }
    .upi-details { padding: 14px 16px; }
    .upi-detail-row { flex-direction: column; gap: 2px; }
    .upi-label { min-width: unset; }

    /* Bank */
    .bank-row {
        grid-template-columns: 1fr;
        gap: 3px;
        padding: 12px 0;
    }
    .bank-acc { font-size: 16px; }
    .copy-btn { width: 100%; justify-content: center; }

    /* Cash */
    .cash-icons { gap: 10px; flex-direction: column; align-items: stretch; }
    .cash-icon-item {
        flex-direction: row;
        min-width: unset;
        padding: 18px 22px;
        gap: 16px;
        border-radius: 16px;
    }
    .cash-icon-item i { font-size: 28px; flex-shrink: 0; }
    .cash-icon-item span { text-align: left; font-size: 15px; }
    .cash-icon-arrow { display: none; }

    /* Building fund */
    .building-img-col { flex-direction: column; gap: 12px; }
    .building-img { max-height: unset; }
    .building-text-col { padding: 24px 18px; }
    .building-heading { font-size: 17px; }
    .building-appeal-badge strong { font-size: 18px; }
    .building-body { font-size: 14px; }
    .building-total-wrap { padding: 18px 20px; }
    .building-total-amount { font-size: 28px; }
    .building-footer-row { flex-direction: column; align-items: flex-start; gap: 12px; }
    .building-contact { font-size: 16px; }
    .donate-now-cta { width: 100%; justify-content: center; font-size: 15px; padding: 14px 24px; }
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {

    /* Hero */
    .donate-hero { min-height: 260px; }
    .donate-hero-content { padding: 50px 14px; }
    .donate-hero-content h1 { font-size: 26px; }
    .donate-arabic { font-size: 15px; }
    .donate-hero-sub { font-size: 13px; }

    /* Sections */
    .donate-section { padding: 44px 0; }

    /* Cause */
    .cause-card { padding: 22px 18px; border-radius: 16px; }

    /* Ways */
    .ways-card { padding: 20px 16px; border-radius: 18px; }
    .ways-card-header h3 { font-size: 17px; }
    .upi-qr-wrap img { max-width: 220px; }
    .bank-acc { font-size: 15px; }

    /* Cash */
    .cash-icon-item { padding: 14px 16px; }
    .cash-icon-item i { font-size: 24px; }
    .cash-icon-item span { font-size: 14px; }

    /* Building */
    .building-text-col { padding: 20px 14px; border-radius: 18px; }
    .building-total-amount { font-size: 24px; }
    .building-appeal-badge { padding: 14px 16px; }
    .building-appeal-badge strong { font-size: 16px; }
    .bismillah-line { font-size: 11px; }
    .building-heading { font-size: 15px; }
    .building-hadith { font-size: 13px; padding: 12px 14px; }
}

/* --- Very small mobile (≤380px) --- */
@media (max-width: 380px) {

    /* Hero */
    .donate-hero { min-height: 240px; }
    .donate-hero-content { padding: 40px 12px; }
    .donate-hero-content h1 { font-size: 24px; }
    .donate-arabic { font-size: 14px; }

    /* Sections */
    .donate-section { padding: 38px 0; }

    /* Cause */
    .cause-card { padding: 18px 14px; }

    .cause-card h3 { font-size: 17px; }

    .cause-icon { width: 46px; height: 46px; font-size: 20px; }

    /* Ways */
    .ways-card { padding: 18px 14px; }

    .ways-card-header h3 { font-size: 16px; }

    .ways-card-header i { width: 40px; height: 40px; font-size: 20px; }

    .upi-qr-wrap img { max-width: 200px; }

    /* Bank — prevent long account numbers from overflowing */
    .bank-acc { font-size: 14px; word-break: break-all; letter-spacing: 0; }

    .upi-id { font-size: 13px; word-break: break-all; }

    /* Cash */
    .cash-icon-item { padding: 12px 14px; }

    /* Building fund */
    .building-text-col { padding: 18px 12px; }

    .building-total-amount { font-size: 21px; }

    .building-total-wrap { padding: 14px 12px; }

    .building-appeal-badge strong { font-size: 15px; }

    .donate-now-cta { font-size: 14px; padding: 12px 18px; }
}

/* ===========================
   MASJID VIDEO SECTION
=========================== */

.video-section {
    background: #f8faf7;
}

.video-wrap {
    max-width: 920px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    border-radius: 24px;
    padding: 12px;
    background: linear-gradient(135deg, #0f5132, #198754);
    border: 2px solid #c8e6d4;
    box-shadow: 0 20px 55px rgba(0,0,0,.18);
}

.video-frame video {
    display: block;
    width: 100%;
    border-radius: 16px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ===========================
   DONATE GALLERY
=========================== */

.donate-gallery-section {
    background: #fff;
}

.donate-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.donate-gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    transition: .35s;
    background: linear-gradient(135deg, #0f5132, #198754);
}

.donate-gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(25,135,84,.2);
}

.donate-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .4s;
}

.donate-gallery-item:hover img {
    transform: scale(1.06);
}

.donate-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,81,50,.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .35s;
}

.donate-gallery-item:hover .donate-gallery-overlay {
    opacity: 1;
}

.donate-gallery-overlay i {
    font-size: 34px;
    color: #fff;
}

/* ===========================
   LIGHTBOX
=========================== */

.lb-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5,20,12,.92);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    animation: lbFadeIn .25s ease;
}

.lb-backdrop.open { display: flex; }

@keyframes lbFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lb-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
}

#donateLbImg {
    max-width: 88vw;
    max-height: 80vh;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    object-fit: contain;
    animation: lbZoomIn .3s cubic-bezier(.34,1.56,.64,1);
    display: block;
}

@keyframes lbZoomIn {
    from { transform: scale(.88); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

.lb-caption {
    color: rgba(255,255,255,.75);
    font-size: 14px;
    margin-top: 14px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: .5px;
}

.lb-counter {
    position: absolute;
    top: -36px;
    right: 0;
    color: rgba(255,255,255,.45);
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
}

.lb-close {
    position: fixed;
    top: 22px;
    right: 26px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    z-index: 100001;
}

.lb-close:hover { background: #198754; border-color: #198754; transform: rotate(90deg); }

.lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: .25s;
    z-index: 100001;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-nav:hover { background: #198754; border-color: #198754; }

/* ===========================
   VIDEO + GALLERY RESPONSIVE
=========================== */

@media (max-width: 768px) {
    .video-frame { padding: 8px; border-radius: 18px; }
    .video-frame video { border-radius: 12px; }
    .donate-gallery-grid { grid-template-columns: 1fr; gap: 14px; }
    .donate-gallery-item { border-radius: 14px; }
}

@media (max-width: 600px) {
    #donateLbImg { max-width: 95vw; max-height: 70vh; border-radius: 10px; }
    .lb-nav { width: 40px; height: 40px; font-size: 15px; }
    .lb-prev { left: 8px; }
    .lb-next { right: 8px; }
    .lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 17px; }
}
