/* ==========================================================================
   BQMF DESIGN SYSTEM & REUSABLE STYLESHEET
   ========================================================================== */

:root {
    --pure-white: #ffffff;
    --brand-primary: #0B4F9C;         /* Deep Royal Blue */
    --brand-primary-hover: #083b77;   
    --brand-primary-glow: 0 0 0 0.25rem rgba(11, 79, 156, 0.15);
    --brand-light: #F4F7FC;           
    --brand-warm: #FEF9EB;            
    --brand-dark: #0A192F;            /* Dark Navy */
    --brand-accent: #E5A912;          /* Gold / Amber Yellow */
    --secondary-color: #D61A26;       /* Vibrant Red */
    --primary-color: #0B4F9C;
    --primary-hover: #083b77;
    --accent-color: #D61A26;
    --hover-bg: #f1f5f9;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--brand-dark);
    background-color: var(--pure-white);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================================================================
   Typography & Section Headings
   ========================================================================== */
.section-tag {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: block;
}

.section-title {
    color: var(--brand-dark);
    font-weight: 800;
    margin-bottom: 20px;
}

.badge-scripture {
    background-color: rgba(229, 169, 18, 0.2);
    border: 1px solid var(--brand-accent);
    color: var(--brand-accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
}

/* ==========================================================================
   Custom Buttons
   ========================================================================== */
.btn-brand-primary {
    background-color: var(--brand-primary);
    color: var(--pure-white);
    border: 2px solid var(--brand-primary);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-brand-primary:hover {
    background-color: var(--brand-primary-hover);
    border-color: var(--brand-primary-hover);
    color: var(--pure-white);
    box-shadow: var(--brand-primary-glow);
}

.btn-brand-accent {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
    border: 2px solid var(--brand-accent);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-brand-accent:hover {
    background-color: #c9930e;
    border-color: #c9930e;
    color: var(--brand-dark);
}

/* ==========================================================================
   Image Frame Effects
   ========================================================================== */
.img-frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(10, 25, 47, 0.12);
}
.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.img-frame:hover img {
    transform: scale(1.03);
}

.img-frame-accent-border {
    position: relative;
}
.img-frame-accent-border::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--brand-accent);
    border-radius: 20px;
    z-index: 0;
}
.img-frame-accent-border > * {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Hero Section & Carousel
   ========================================================================== */
.about-hero {
    position: relative;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.88) 0%, rgba(11, 79, 156, 0.82) 100%), 
                url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    padding: 120px 0 90px;
    color: var(--pure-white);
}

.hero-carousel .carousel-item {
    height: 580px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.88) 0%, rgba(11, 79, 156, 0.8) 100%);
    height: 100%;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   Scripture & Quote Cards
   ========================================================================== */
.scripture-quote-card {
    background-color: var(--brand-warm);
    border-left: 5px solid var(--brand-accent);
    border-radius: 0 16px 16px 0;
    padding: 32px;
    position: relative;
}
.scripture-quote-card .quote-icon {
    font-size: 3rem;
    color: var(--brand-accent);
    line-height: 1;
    opacity: 0.6;
}

/* ==========================================================================
   Vision, Mission & Values Grid
   ========================================================================== */
.vm-card {
    background-color: var(--pure-white);
    border-radius: 16px;
    padding: 40px 32px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(11, 79, 156, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(11, 79, 156, 0.12);
}

.icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
}
.icon-wrapper-primary {
    background-color: rgba(11, 79, 156, 0.1);
    color: var(--brand-primary);
}
.icon-wrapper-accent {
    background-color: rgba(229, 169, 18, 0.15);
    color: #b88404;
}

.value-box {
    background-color: var(--pure-white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.value-box:hover {
    background-color: var(--hover-bg);
    border-color: var(--brand-primary);
}
.value-box .bi {
    font-size: 2.25rem;
    color: var(--secondary-color);
    margin-bottom: 12px;
    display: inline-block;
}

/* ==========================================================================
   Pillar Cards
   ========================================================================== */
.pillar-card {
    background-color: var(--pure-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: 100%;
}
.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(10, 25, 47, 0.12);
    border-color: var(--brand-primary);
}
.pillar-img-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}
.pillar-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.pillar-card:hover .pillar-img-wrapper img {
    transform: scale(1.08);
}
.pillar-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--secondary-color);
    color: var(--pure-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Programs, Events & News Cards
   ========================================================================== */
/* Program Card Enhanced */
.program-card-enhanced {
  background: var(--pure-white, #fff);
  border: 1px solid var(--tertiary-color, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.program-card-enhanced:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover, 0 10px 25px -5px rgba(0, 0, 0, 0.1));
}

.program-card-img {
  position: relative;
  padding-top: 60%; /* Adjust image aspect ratio as needed */
  overflow: hidden;
  background-color: #f1f5f9;
}

.program-card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.program-card-enhanced:hover .program-card-img img {
  transform: scale(1.08);
}

.program-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4em 0.75em;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}

.program-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.program-body-info {
  flex-grow: 1;
}

.program-actions {
  margin-top: auto;
  padding-top: 1rem;
}

/* List View Layout for Wide Screens */
@media (min-width: 768px) {
  .list-view .program-card-enhanced {
    flex-direction: row;
  }
  
  .list-view .program-card-enhanced .program-card-img {
    width: 280px;
    min-width: 280px;
    padding-top: 0;
    height: 100%;
  }
}
/* event card */

.event-card {
    background: var(--pure-white);
    border-radius: 16px;
    border: 1px solid rgba(11, 79, 156, 0.12);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(10, 25, 47, 0.12);
}
.event-badge {
    background-color: var(--secondary-color);
    color: var(--pure-white);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50rem;
    text-transform: uppercase;
}

/* ==========================================================================
   Donation & Stats Sections
   ========================================================================== */
.donation-section-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
.instant-donate-card {
    background: var(--pure-white);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(10, 25, 47, 0.08);
    border: 1px solid #e2e8f0;
}
.donate-amount-btn {
    font-weight: 700;
    border: 2px solid #cbd5e1;
    color: var(--brand-dark);
    background-color: var(--pure-white);
    transition: all 0.2s ease;
}
.donate-amount-btn.active, .donate-amount-btn:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: var(--pure-white);
}

.stats-section, .stats-banner {
    background-color: var(--brand-dark);
    color: var(--pure-white);
    position: relative;
    padding: 60px 0;
}
.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-accent);
    line-height: 1;
}

/* ==========================================================================
   Leadership & About Page Banners
   ========================================================================== */
.leadership-card {
    background-color: var(--pure-white);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}
.leadership-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(10, 25, 47, 0.1);
    border-color: var(--brand-primary);
}
.leader-img-wrapper {
    height: 260px;
    overflow: hidden;
    position: relative;
}
.leader-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.leadership-card:hover .leader-img-wrapper img {
    transform: scale(1.05);
}

.accountability-box {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1e3a6e 100%);
    color: var(--pure-white);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-banner-partner {
    background: linear-gradient(135deg, rgba(11, 79, 156, 0.95), rgba(10, 25, 47, 0.95)), url('https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    color: var(--pure-white);
    border-radius: 20px;
}

.cta-banner-volunteer {
    background: linear-gradient(135deg, rgba(214, 26, 38, 0.92), rgba(10, 25, 47, 0.92)), url('https://images.unsplash.com/photo-1559027615-cd4628902d4a?q=80&w=1600&auto=format&fit=crop') center/cover no-repeat;
    color: var(--pure-white);
    border-radius: 20px;
}

.program-cover-hero {
            position: relative;
            background-size: cover;
            background-position: center;
            padding: 140px 0 100px;
            color: var(--pure-white);
        }
        .program-cover-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(135deg, rgba(10, 25, 47, 0.88) 0%, rgba(11, 79, 156, 0.8) 100%);
            z-index: 1;
        }
        .program-cover-hero .container {
            position: relative;
            z-index: 2;
        }
        .html-editor-content h3 {
            color: var(--brand-primary);
            font-weight: 700;
            margin-top: 1.5rem;
            margin-bottom: 1rem;
        }
        .html-editor-content p {
            margin-bottom: 1.25rem;
            color: #475569;
            line-height: 1.8;
        }
        .gallery-thumb {
            border-radius: 12px;
            overflow: hidden;
            height: 200px;
            position: relative;
            box-shadow: 0 8px 20px rgba(0,0,0,0.06);
            transition: transform 0.3s ease;
        }
        .gallery-thumb:hover {
            transform: scale(1.03);
        }
        .gallery-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .doc-card {
            border: 1px solid #e2e8f0;
            border-radius: 12px;
            transition: all 0.2s ease;
        }
        .doc-card:hover {
            border-color: var(--brand-primary);
            background-color: var(--hover-bg);
        }

        

        /* Fully Custom Scoped Hero Styles https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?q=80&w=1600&auto=format&fit=crop */
    .home-hero {
        background-color: var(--brand-dark);
        position: relative;
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.96) 0%, rgba(11, 79, 156, 0.92) 100%), 
                    url('../images/banner/BQMF-childrem-feeding-.webp') center/cover no-repeat;
        min-height: 90vh;
        display: flex;
        align-items: center;
        padding: 80px 0;
        color: #ffffff;
        overflow: hidden;
    }

    .home-hero .home-hero-badge-scripture {
        background-color: rgba(229, 169, 18, 0.2);
        border: 1px solid #E5A912;
        color: #E5A912;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 8px 18px;
        border-radius: 50rem;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 0.875rem;
    }

    .home-hero .home-hero-title {
        /* font-size: clamp(2.3rem, 4.5vw, 3.6rem); */
        line-height: 1.15;
        font-weight: 800;
        color: var(--pure-white)
    }

    .home-hero .home-hero-text {
        font-size: clamp(1.05rem, 1.25vw, 1.2rem);
        line-height: 1.7;
    }

    .home-hero .home-hero-btn-accent {
        background-color: #E5A912;
        color: #0A192F;
        border: 2px solid #E5A912;
        font-weight: 700;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .home-hero .home-hero-btn-accent:hover {
        background-color: #c9930e;
        border-color: #c9930e;
        color: #0A192F;
    }

    .home-hero .home-hero-btn-outline {
        border: 2px solid #ffffff;
        color: #ffffff;
        background: transparent;
        transition: all 0.3s ease;
    }

    .home-hero .home-hero-btn-outline:hover {
        background-color: #ffffff;
        color: #0B4F9C;
    }

    /* Large Prominent Right Column Portrait Wrapper */
    .home-hero .home-hero-queen-wrapper {
        position: relative;
        width: 100%;
        height: 580px;
        border-radius: 24px;
        overflow: hidden;
        border: 4px solid rgba(229, 169, 18, 0.5);
        background-color: #0A192F;
    }

    .home-hero .home-hero-queen-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
    }

    .home-hero .home-hero-queen-wrapper:hover .home-hero-queen-img {
        transform: scale(1.04);
    }

    /* Subtle Gradient Overlay for text contrast on portrait */
    .home-hero .home-hero-gradient-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 45%;
        background: linear-gradient(to top, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.4) 60%, transparent 100%);
        pointer-events: none;
    }

    /* Prominent Floating Badge on Portrait */
    .home-hero .home-hero-floating-badge {
        position: absolute;
        bottom: 24px;
        left: 24px;
        right: 24px;
        background: rgba(10, 25, 47, 0.9);
        backdrop-filter: blur(10px);
        color: #ffffff;
        padding: 14px 22px;
        border-radius: 14px;
        font-size: 1rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(229, 169, 18, 0.4);
        text-align: center;
    }

    .home-hero .home-hero-floating-badge i {
        color: #D61A26;
        font-size: 1.1rem;
    }

    /* Responsive adjustments for mobile and tablets */
    @media (max-width: 991.98px) {
        .home-hero {
            padding: 60px 0;
            min-height: auto;
        }

        .home-hero .home-hero-queen-wrapper {
            height: 450px;
            margin-top: 15px;
        }
    }

    @media (max-width: 575.98px) {
        .home-hero .home-hero-queen-wrapper {
            height: 380px;
        }

        .home-hero .home-hero-floating-badge {
            font-size: 0.85rem;
            padding: 10px 16px;
            bottom: 16px;
            left: 16px;
            right: 16px;
        }
    }

.event-card {
    background-color: var(--pure-white);
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(10, 25, 47, 0.08);
    border-color: var(--brand-primary);
}

.event-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.event-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img-wrapper img {
    transform: scale(1.08);
}

.event-card .date-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background-color: var(--brand-dark);
    color: var(--pure-white);
    border: 1px solid var(--brand-accent);
    border-radius: 12px;
    padding: 6px 14px;
    text-align: center;
    min-width: 64px;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.event-card .date-badge .day {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand-accent);
}

.event-card .date-badge .month {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-card .status-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.event-card .status-badge.upcoming {
    background-color: #059669;
    color: #ffffff;
}

.event-card .status-badge.past {
    background-color: #64748b;
    color: #ffffff;
}

.event-card .status-badge.royal {
    background-color: var(--brand-accent);
    color: var(--brand-dark);
}

.event-card .meta-list i {
    color: var(--brand-primary);
    width: 18px;
}

/* Internal Layout Structure */
.event-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-body-info {
    flex-grow: 1;
}

.event-actions {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* List View Layout for Wide Screens */
@media (min-width: 768px) {
    .list-view .event-card {
        flex-direction: row;
    }

    .list-view .event-card .event-img-wrapper {
        width: 280px;
        min-width: 280px;
        height: auto;
    }
}

/* Event Header Hero */
.event-detail-hero {
position: relative;
background: linear-gradient(135deg, rgba(10, 25, 47, 0.92) 0%, rgba(11, 79, 156, 0.88) 100%), 
            url('../images/banner/event-hero-bg.webp') center/cover no-repeat;
padding: 100px 0 60px;
color: var(--pure-white);
border-bottom: 4px solid var(--brand-accent);
}

.hero-date-badge {
background-color: rgba(229, 169, 18, 0.2);
border: 1px solid var(--brand-accent);
color: var(--brand-accent);
padding: 6px 16px;
border-radius: 50rem;
font-weight: 700;
font-size: 0.85rem;
display: inline-flex;
align-items: center;
gap: 6px;
}

/* Countdown Widget */
.countdown-wrapper {
background: rgba(255, 255, 255, 0.1);
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.2);
border-radius: 16px;
padding: 16px 24px;
}

.countdown-box {
text-align: center;
min-width: 60px;
}

.countdown-num {
font-size: 1.6rem;
font-weight: 800;
color: var(--brand-accent);
line-height: 1;
}

.countdown-label {
font-size: 0.7rem;
text-transform: uppercase;
letter-spacing: 0.5px;
color: rgba(255, 255, 255, 0.7);
}

/* Sticky Action Sidebar Card */
.event-sidebar-card {
background-color: var(--pure-white);
border-radius: 20px;
border: 1px solid #e2e8f0;
box-shadow: 0 16px 32px rgba(10, 25, 47, 0.08);
position: sticky;
top: 20px;
}

.event-sidebar-card .info-item {
display: flex;
align-items: flex-start;
gap: 14px;
padding-bottom: 16px;
border-bottom: 1px solid #f1f5f9;
}

.event-sidebar-card .info-item:last-child {
border-bottom: none;
padding-bottom: 0;
}

.event-sidebar-card .info-icon {
width: 42px;
height: 42px;
border-radius: 10px;
background-color: var(--brand-light);
color: var(--brand-primary);
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
flex-shrink: 0;
}

/* Accordion Custom Styling */
.accordion-button:not(.collapsed) {
background-color: #f8fafc;
color: var(--brand-primary);
font-weight: 700;
box-shadow: none;
}

.accordion-button:focus {
box-shadow: none;
border-color: rgba(11, 79, 156, 0.25);
}

/* Speaker Profile Avatar */
.speaker-card {
background-color: var(--pure-white);
border-radius: 16px;
border: 1px solid #e2e8f0;
padding: 18px;
transition: transform 0.3s ease;
}

.speaker-card:hover {
transform: translateY(-4px);
border-color: var(--brand-primary);
}

.speaker-avatar {
width: 70px;
height: 70px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--brand-accent);
}

.map-wrapper {
border-radius: 16px;
overflow: hidden;
height: 280px;
border: 1px solid #cbd5e1;
}