/* =============================================================
   MAZEDA YOUTH FOUNDATION — COMBINED STYLESHEET
   Astra Child Theme
   Covers: 1. Homepage (template-mazeda-home.php)
           2. Single Charity Project (single-charity_project.php)
           3. Donate Page (template-donate.php)
   ============================================================= */

/* -------------------------------------------------------------
   SECTION 1: HOMEPAGE
   ------------------------------------------------------------- */

/* =========================================================
   MAZEDA YOUTH FOUNDATION — HOMEPAGE
   Design tokens
   ========================================================= */
:root {
    --myf-ink: #16212B;
    --myf-paper: #FBF8F3;
    --myf-white: #FFFFFF;
    --myf-blue: #1CABE3;
    --myf-blue-deep: #0F7FA8;
    --myf-orange: #F38922;
    --myf-orange-deep: #D9720F;
    --myf-green: #1F9D55;
    --myf-line: #E7E1D6;
    --myf-muted: #66707A;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Poppins', sans-serif;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --shadow-card: 0 10px 30px rgba(22, 33, 43, 0.08);
    --shadow-card-hover: 0 18px 40px rgba(22, 33, 43, 0.14);
}

.ast-container{
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.myf-home * { font-family: var(--font-body); box-sizing: border-box; }
.myf-home { background: var(--myf-paper); color: var(--myf-ink); overflow-x: hidden; }
.myf-home h1, .myf-home h2, .myf-home h3 { font-family: var(--font-display); color: var(--myf-ink); line-height: 1.15; margin: 0; }
.myf-home img { max-width: 100%; display: block; }
.myf-home a { text-decoration: none; }
.myf-home section { padding: 90px 8%; }
.myf-home .myf-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--myf-orange-deep); margin-bottom: 14px; }
.myf-home .myf-section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.myf-home .myf-section-head h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; }
.myf-home .myf-section-head p { color: var(--myf-muted); margin-top: 14px; font-size: 1.02rem; }
.myf-home .myf-container { max-width: 1240px; margin: 0 auto; }

/* Signature motif: the ৳5 coin badge, used sparingly */
.myf-coin {
    width: 46px; height: 46px; border-radius: 50%;
    background: linear-gradient(135deg, var(--myf-orange), var(--myf-orange-deep));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 700; font-size: 15px;
    box-shadow: 0 6px 16px rgba(243, 137, 34, 0.35);
    border: 2px solid rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.myf-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 30px; border-radius: 30px; font-weight: 600; font-size: 15px;
    cursor: pointer; transition: all 0.25s ease; border: 2px solid transparent; white-space: nowrap;
}
.myf-btn-primary { background: var(--myf-orange); color: #fff; border-color: var(--myf-orange); }
.myf-btn-primary:hover { background: var(--myf-orange-deep); border-color: var(--myf-orange-deep); }
.myf-btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.myf-btn-outline-light:hover { background: rgba(255,255,255,0.15); }
.myf-btn-outline { background: transparent; color: var(--myf-ink); border-color: var(--myf-line); }
.myf-btn-outline:hover { border-color: var(--myf-orange); color: var(--myf-orange-deep); }

/* =========================================================
   1. HERO SLIDER
   ========================================================= */
.myf-hero { position: relative; }
.myf-hero-slider { visibility: hidden; }
.myf-hero-slider.slick-initialized { visibility: visible; }
.myf-hero-slide { position: relative; height: 640px; }
.myf-hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.myf-hero-slide .hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(100deg, rgba(12,25,33,0.82) 0%, rgba(12,25,33,0.55) 45%, rgba(12,25,33,0.25) 100%);
}
.myf-hero-slide .hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 8%; max-width: 700px; color: #fff; }
.myf-hero-slide .hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #FFD9A8; margin-bottom: 18px; }
.myf-hero-slide h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 600; color: #fff; margin-bottom: 18px; }
.myf-hero-slide p { font-size: 1.08rem; opacity: 0.92; margin-bottom: 30px; line-height: 1.65; }
.myf-hero-slide .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.myf-hero .slick-dots { bottom: 26px; }
.myf-hero .slick-dots li button:before { color: #fff; opacity: 0.5; font-size: 9px; }
.myf-hero .slick-dots li.slick-active button:before { opacity: 1; color: var(--myf-orange); }
.myf-hero .slick-prev, .myf-hero .slick-next { z-index: 3; width: 46px; height: 46px; }
.myf-hero .slick-prev { left: 24px; } .myf-hero .slick-next { right: 24px; }
.myf-hero .slick-prev:before, .myf-hero .slick-next:before { font-size: 32px; opacity: 0.85; }

/* =========================================================
   2. DONATION FORM CARD
   ========================================================= */
.myf-donate-wrap { position: relative; z-index: 5; padding: 0 8%; margin-top: -56px; }
.myf-donate-card {
    max-width: 1180px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card-hover); padding: 30px 34px; border: 1px solid var(--myf-line);
}
.myf-donate-card form { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.myf-donate-field { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.myf-donate-field label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--myf-muted); }
.myf-donate-field select,
.myf-donate-field input {
    padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--myf-line);
    font-size: 15px; font-family: var(--font-body); color: var(--myf-ink); background: var(--myf-paper);
    width: 100%;
}
.myf-donate-field select{
    padding: 8px 16px;
}
.myf-donate-field select:focus, .myf-donate-field input:focus { outline: none; border-color: var(--myf-blue); background: #fff; }
.myf-donate-submit { flex: 0 0 auto; }
.myf-donate-submit .myf-btn { width: 100%; padding: 14px 34px; }

@media (max-width: 900px) {
    .myf-donate-card form { flex-direction: column; align-items: stretch; }
    .myf-donate-submit { width: 100%; }
    .myf-donate-field{ flex: 1; }
}

/* =========================================================
   3. SHORT ABOUT US
   ========================================================= */
.myf-about { background: var(--myf-white); }
.myf-about .myf-container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.myf-about h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; margin-bottom: 20px; }
.myf-about p { color: var(--myf-muted); font-size: 1.05rem; line-height: 1.8; margin-bottom: 26px; }
.myf-about-panel {
    background: var(--myf-paper); border-radius: var(--radius-lg); padding: 34px;
    border: 1px solid var(--myf-line); display: flex; flex-direction: column; gap: 22px;
}
.myf-about-item { display: flex; gap: 16px; align-items: flex-start; }
.myf-about-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 3px; }
.myf-about-item span { color: var(--myf-muted); font-size: 0.94rem; }

@media (max-width: 900px) {
    .myf-about .myf-container { grid-template-columns: 1fr; }
}

/* =========================================================
   4. OUR MISSION
   ========================================================= */
.myf-mission { background: linear-gradient(180deg, #FFF 0%, var(--myf-paper) 100%); text-align: center; }
.myf-mission .myf-container { max-width: 820px; }
.myf-mission p { font-size: 1.18rem; color: var(--myf-ink); line-height: 1.8; font-family: var(--font-display); font-weight: 400; }

/* =========================================================
   5. KEY ACTIVITIES
   ========================================================= */
.myf-activities { background: var(--myf-white); }
.myf-activities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; }
.myf-activity-card {
    background: var(--myf-paper); border-radius: var(--radius-md); padding: 30px;
    border-bottom: 4px solid var(--myf-blue); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.myf-activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.myf-activity-card .icon { font-size: 30px; margin-bottom: 14px; }
.myf-activity-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.myf-activity-card p { color: var(--myf-muted); font-size: 0.95rem; line-height: 1.7; }

/* =========================================================
   6. SPOTLIGHT: 3 FLAGSHIP PROJECTS
   ========================================================= */
.myf-spotlight { background: var(--myf-white); }
.myf-spotlight-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 70px;
    padding: 40px;
    background: var(--myf-paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--myf-line);
    box-shadow: var(--shadow-card);
}
.myf-spotlight-item:last-child { margin-bottom: 0; }
.myf-spotlight-reverse { flex-direction: row-reverse; }

/* Square image */
.myf-spotlight-img {
    flex: 0 0 340px;
    width: 340px;
    height: 340px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(22, 33, 43, 0.12);
}
.myf-spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.myf-spotlight-content { flex: 1; min-width: 0; }
.myf-spotlight-content h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--myf-ink);
}
.myf-spotlight-summary {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--myf-blue-deep);
    margin-bottom: 16px;
    font-family: var(--font-display);
}
.myf-spotlight-content p {
    color: var(--myf-muted);
    font-size: 0.96rem;
    line-height: 1.75;
    margin-bottom: 14px;
}
.myf-spotlight-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
}

@media (max-width: 960px) {
    .myf-spotlight-item {
        flex-direction: column !important;
        text-align: center;
        padding: 30px;
        gap: 30px;
    }
    .myf-spotlight-img {
        flex: 1;
        width: 100%;
        height: 100%;
    }
    .myf-spotlight-actions { justify-content: center; }
}
@media (max-width: 560px) {
    .myf-spotlight-img {
        flex: 1;
        width: 100%;
        height: 100%;
    }
}

/* =========================================================
   7. CURRENT PROJECTS CAROUSEL
   ========================================================= */
.myf-projects { background: var(--myf-paper); }
.myf-project-card {
    display: block; background: #fff; border-radius: var(--radius-md); overflow: hidden;
    border: 1px solid var(--myf-line); box-shadow: var(--shadow-card); transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: var(--myf-ink); margin: 0 12px; height: 100%;
}
.myf-project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card-hover); }
.myf-project-thumb { position: relative; height: 200px; overflow: hidden; background: var(--myf-line); }
.myf-project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myf-project-icon-badge {
    position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.95);
    border-radius: 30px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--myf-blue-deep);
}
.myf-project-body { padding: 22px; }
.myf-project-body h3 {
    font-size: 1.1rem; font-weight: 600; margin-bottom: 8px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden;
}
.myf-project-body .desc {
    color: var(--myf-muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 16px;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.myf-project-progress { margin-bottom: 18px; }
.myf-project-progress .bar-bg { background: var(--myf-line); height: 7px; border-radius: 5px; overflow: hidden; }
.myf-project-progress .bar-fill { background: var(--myf-green); height: 100%; }
.myf-project-progress .stats { display: flex; justify-content: space-between; font-size: 12px; margin-top: 7px; color: var(--myf-muted); font-weight: 600; }
.myf-project-donate-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%;
    background: var(--myf-orange); color: #fff; padding: 12px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14.5px;
}
.myf-project-card:hover .myf-project-donate-btn { background: var(--myf-orange-deep); }

.myf-projects-carousel .slick-track { display: flex; }
.myf-projects-carousel .slick-slide { height: auto; }
.myf-projects-carousel .slick-slide > div { height: 100%; }
.myf-projects-carousel .slick-prev, .myf-projects-carousel .slick-next {
    width: 42px; height: 42px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-card); z-index: 2;
}
.myf-projects-carousel .slick-prev:before, .myf-projects-carousel .slick-next:before { color: var(--myf-ink); font-size: 20px; opacity: 1; }
.myf-projects-carousel .slick-prev { left: -6px; } .myf-projects-carousel .slick-next { right: -6px; }
.myf-projects-carousel { margin-bottom: 44px; }
.myf-view-all-wrap { text-align: center; }

/* =========================================================
   8. OUTREACH STRIP (bonus section)
   ========================================================= */
.myf-outreach { background: var(--myf-ink); color: #fff; padding: 54px 8%; }
.myf-outreach .myf-container { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.myf-outreach .label { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #FFD9A8; flex: 0 1 auto; }
.myf-outreach .pills { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; }
.myf-outreach .pill { border: 1px solid rgba(255,255,255,0.25); border-radius: 30px; padding: 8px 16px; font-size: 13.5px; opacity: 0.9; }

/* =========================================================
   9. IMAGE GALLERY
   ========================================================= */
.myf-gallery { background: var(--myf-white); }
.myf-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 40px; }
.myf-gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 370 / 277; }
.myf-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.myf-gallery-item:hover img { transform: scale(1.06); }
.myf-gallery-item .caption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent); color: #fff; font-size: 13px; font-weight: 600;
}

@media (max-width: 900px) { .myf-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .myf-gallery-grid { grid-template-columns: 1fr; } }

/* =========================================================
   10. BLOG GRID
   ========================================================= */
.myf-blog { background: var(--myf-paper); }
.myf-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-bottom: 40px; }
.myf-blog-card { background: #fff; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--myf-line); box-shadow: var(--shadow-card); transition: transform 0.25s ease; }
.myf-blog-card:hover { transform: translateY(-6px); }
.myf-blog-thumb { height: 190px; overflow: hidden; background: var(--myf-line); }
.myf-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.myf-blog-body { padding: 22px; }
.myf-blog-body .date { font-size: 12px; color: var(--myf-orange-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.myf-blog-body h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.myf-blog-body p { color: var(--myf-muted); font-size: 0.92rem; line-height: 1.65; margin-bottom: 14px; }
.myf-blog-body .read-more { font-weight: 700; font-size: 13.5px; color: var(--myf-blue-deep); }

@media (max-width: 900px) { .myf-blog-grid { grid-template-columns: 1fr; } }

/* =========================================================
   11. FINAL CTA BANNER
   ========================================================= */
.myf-cta-banner {
    background: linear-gradient(120deg, var(--myf-blue) 0%, var(--myf-blue-deep) 60%, var(--myf-ink) 130%);
    color: #fff; text-align: center; padding: 80px 8%;
}
.myf-cta-banner h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 16px; }
.myf-cta-banner p { opacity: 0.9; margin-bottom: 30px; max-width: 560px; margin-inline: auto; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 768px) {
    .myf-home section { padding: 60px 6%; }
    .myf-hero-slide { height: 560px; }
    .myf-donate-wrap { margin-top: -40px; padding: 0 5%; }
    .myf-donate-card { padding: 24px; }
}


/* -------------------------------------------------------------
   SECTION 2: SINGLE CHARITY PROJECT PAGE
   ------------------------------------------------------------- */

.charity-single-container { max-width: 1170px; margin: 40px auto !important; padding: 20px; font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif; }

.charity-header { text-align: center; margin-bottom: 30px; }
.charity-icon { font-size: 46px; margin-bottom: 10px; }
.charity-title { font-size: 2.1rem; margin: 0; }

.charity-content-area { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); }
.charity-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 850px) { .charity-grid { grid-template-columns: 1fr; } .charity-sidebar { order: -1; } }

/* Progress & Sidebar */
.charity-stats-card { background: #fff; padding: 25px; border-radius: 12px; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.progress-bar-bg { background: #eee; height: 12px; border-radius: 6px; margin: 15px 0 25px; overflow: hidden; }
.progress-bar-fill { background: #f38922; height: 100%; transition: 0.5s; }
.progress-labels{ display: flex; justify-content: space-between; }

/* Buttons */
.amt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 20px; }
.amt-btn { padding: 8px; border: 1px solid #1CABE3; background: #fff; color: #1CABE3; cursor: pointer; border-radius: 4px; font-weight: bold; }
.amt-btn.active { background: #1CABE3; color: #fff; }
.amt-btn:hover { background: #1CABE3; color: #fff; }

/* Form Styles */
.donation-form-wrapper { border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
.form-group input[type="text"], .form-group input[type="number"] { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-group input[readonly] { background: #f0f0f0; cursor: not-allowed; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 5px; }
.radio-group label { font-weight: 400; cursor: pointer; }
.payment-radio label { display: flex; align-items: center; gap: 5px; }
.payment-radio img { filter: grayscale(1); transition: filter 0.3s ease; }
.payment-radio input[type="radio"]:checked + img { filter: grayscale(0); }
.payment-radio label:hover img { filter: grayscale(0); }
.submit-donate { width: 100%; background: #27ae60; color: #fff; border: none; padding: 15px; border-radius: 6px; font-size: 16px; font-weight: bold; cursor: pointer; margin-top: 10px; }
.submit-donate:hover { background: #219150; }

/* Payment Info */
.method-card { background: #fdfdfd; border: 1px solid #eee; padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.badge { padding: 2px 8px; border-radius: 4px; color: #fff; margin-right: 10px; font-size: 12px; }
.bkash { background: #d12053; } .nagad { background: #f34123; }

/* -----------------------------------------------------------
   Project Gallery — pulls images attached to this project post.
   Upload the project's photos to its Media Library entry and
   they will show up here automatically (up to 8, most recent).
   ----------------------------------------------------------- */
.charity-gallery { margin-top: 40px; }
.charity-gallery h2 { font-size: 1.4rem; margin-bottom: 18px; }
.charity-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.charity-gallery-item { border-radius: 10px; overflow: hidden; aspect-ratio: 1 / 1; cursor: pointer; border: 1px solid #eee; }
.charity-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.charity-gallery-item:hover img { transform: scale(1.08); }

/* Simple lightbox */
.charity-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999; padding: 30px; }
.charity-lightbox.open { display: flex; }
.charity-lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.charity-lightbox-close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }


/* -------------------------------------------------------------
   SECTION 3: DONATE PAGE (template-donate.php)
   Scoped under .myf-donate-page so nothing here leaks onto
   Astra's own theme elements.
   ------------------------------------------------------------- */

.myf-donate-page {
    --donate-orange: #f38922;
    --donate-blue: #1CABE3;
    --donate-dark: #333;
    background-color: #f9f9f9;
    color: var(--donate-dark);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    margin: 0 auto;
    width: 100%;
}
.myf-donate-page * { font-family: 'Poppins', sans-serif; box-sizing: border-box; }

.myf-donate-page .btn-primary { background: var(--donate-orange); color: white; border: 2px solid var(--donate-orange); }
.myf-donate-page .btn-primary:hover { background: transparent; color: var(--donate-orange); }

.myf-donate-page section { padding: 80px 20px; }
.myf-donate-page .section-title { text-align: center; margin-bottom: 50px; }
.myf-donate-page .section-title h2 { font-size: 2.5rem; color: var(--donate-blue); }
.myf-donate-page .section-title hr { width: 60px; height: 4px; background: var(--donate-orange); border: none; margin: 10px auto; }

.myf-donate-page .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.myf-donate-page .card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-bottom: 4px solid var(--donate-blue);
    transition: transform 0.3s;
}

/* Fund Card */
.myf-donate-page .fund-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1170px;
    margin: 0 auto 36px;
}
.myf-donate-page .fund-card {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.3s;
}
.myf-donate-page .fund-card:hover { border-color: var(--donate-orange); transform: translateY(-4px); }
.myf-donate-page .fund-card.zakat { border-color: #27ae60; }
.myf-donate-page .fund-icon { font-size: 38px; margin-bottom: 10px; }
.myf-donate-page .fund-card h3 { font-size: 17px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.myf-donate-page .fund-card p { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.myf-donate-page .fund-cost { background: #f8f9fa; border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #444; margin-bottom: 14px; border-left: 3px solid #c0392b; }
.myf-donate-page .fund-cost strong { color: #c0392b; font-size: 15px; }
.myf-donate-page .amount-row { display: flex; gap: 7px; flex-wrap: wrap; margin: 14px 0; }
.myf-donate-page .chip { padding: 6px 13px; border-radius: 20px; border: 2px solid #e0e0e0; background: white; font-size: 13px; font-weight: 700; color: #333; cursor: pointer; transition: all 0.2s; }
.myf-donate-page .chip:hover { background: var(--donate-blue); border-color: var(--donate-blue); color: white; }
.myf-donate-page .chip.green:hover { background: #27ae60; border-color: #27ae60; color: white; }
.myf-donate-page .pay-box { border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; }
.myf-donate-page .bkash-bg { background: linear-gradient(135deg, #e91e8c, #c2185b); color: white; }
.myf-donate-page .nagad-bg { background: linear-gradient(135deg, #f26522, #ed1c24); color: white; }
.myf-donate-page .bank-bg { background: var(--donate-blue); color: white; }
.myf-donate-page .zakat-bg { background: linear-gradient(135deg, #27ae60, #1e8449); color: white; }
.myf-donate-page .pay-box .ptitle { font-size: 11px; opacity: 0.85; margin-bottom: 3px; }
.myf-donate-page .pay-box .pnum { font-size: 18px; font-weight: 800; letter-spacing: 1px; }
.myf-donate-page .pay-box .pref { font-size: 11px; opacity: 0.75; margin-top: 3px; }
.myf-donate-page .pay-box .pdetails { font-size: 12px; line-height: 1.9; }

/* Progress Bar */
.myf-donate-page .myf-progress-bar-bg { background: #eee; height: 10px; border-radius: 5px; overflow: hidden; }
.myf-donate-page .myf-progress-fill { background: #f38922; height: 100%; transition: width 0.4s; }
.myf-donate-page .myf-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 600;
}

/* Donate Button */
.myf-donate-page .donate-btn-wrap { margin-top: 20px; text-align: center; }

.myf-donate-page .btn-donate {
    display: block;
    background: var(--donate-orange);
    color: white !important;
    text-decoration: none !important;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid var(--donate-orange);
}
.myf-donate-page .btn-donate:hover { background: transparent; color: var(--donate-orange) !important; }

.myf-donate-page .myf-line-clamp {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

@media (max-width: 768px) {
    .myf-donate-page .hero-content h1 { font-size: 2rem; }
    .myf-donate-page section { padding: 50px 5%; }
}

/* ============================================================
   SECTION 4: FULL GALLERY PAGE (template-gallery.php)
   ============================================================ */

.myf-full-gallery-page {
    background: var(--myf-white);
    font-family: var(--font-body);
    color: var(--myf-ink);
    padding: 70px 8%;
}

.myf-full-gallery-page .myf-container {
    max-width: 1240px;
    margin: 0 auto;
}

.myf-full-gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.myf-full-gallery-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 600;
    margin: 10px 0 12px;
}

.myf-full-gallery-header p {
    color: var(--myf-muted);
    font-size: 1.08rem;
    max-width: 580px;
    margin: 0 auto;
}

/* Full gallery grid: 4 columns on large screens */
.myf-gallery-grid-full {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1100px) {
    .myf-gallery-grid-full {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .myf-gallery-grid-full {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .myf-full-gallery-page {
        padding: 50px 5%;
    }
}

@media (max-width: 480px) {
    .myf-gallery-grid-full {
        grid-template-columns: 1fr !important;
    }
}

.myf-gallery-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--myf-muted);
}

.myf-gallery-empty p {
    font-size: 1.1rem;
    margin-bottom: 24px;
}

/* Make gallery items clickable (they are <a> tags now) */
.myf-gallery-item {
    display: block;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
    text-decoration: none;
}

.myf-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.myf-gallery-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 16px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

/* ============================================================
   SECTION 5: UNIFIED LIGHTBOX (homepage + gallery page)
   ============================================================ */

.myf-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 30px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.myf-lightbox.open {
    display: flex;
    opacity: 1;
}

.myf-lightbox-figure {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.myf-lightbox-figure img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

.myf-lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
    font-family: var(--font-body);
    max-width: 600px;
}

.myf-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    background: none;
    border: none;
    padding: 4px;
}

.myf-lightbox-close:hover {
    opacity: 1;
}

.myf-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.myf-lightbox-nav:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}

.myf-lightbox-prev {
    left: 20px;
}

.myf-lightbox-next {
    right: 20px;
}

@media (max-width: 640px) {
    .myf-lightbox-nav {
        font-size: 24px;
        width: 38px;
        height: 38px;
    }
    .myf-lightbox-prev { left: 8px; }
    .myf-lightbox-next { right: 8px; }
    .myf-lightbox { padding: 16px; }
}
