﻿:root {
    --primary: #2c3e50;
    --secondary: #e74c3c;
    --accent: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --text: #333;
}

/* ✅ MAIN BODY RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    margin: 0;
    padding: 0;
    padding-top: 0 !important;
}

/* ✅ NAVBAR FIXES */
.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    width: 100%;
    min-height: 76px;
}

/* ✅ MAIN CONTENT */
main {
    margin-top: 76px !important;
    padding-top: 0 !important;
    min-height: calc(100vh - 76px);
}

/* ========================================
   ✅ HERO CAROUSEL - FULL SCREEN BANNERS
   ======================================== */
#hero-carousel {
    height: 100vh;
    width: 100%;
    margin-top: 0;
    position: relative;
}

    #hero-carousel .carousel-inner {
        height: 100%;
    }

    #hero-carousel .carousel-item {
        height: 100%;
        width: 100%;
    }

.hero-slide {
    height: 100%;
    width: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .hero-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    }

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 20px;
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 20px;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    }

    .hero-content p {
        font-size: 1.5rem;
        margin-bottom: 30px;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    }

.service-times {
    background: rgba(255,255,255,0.15);
    padding: 25px;
    border-radius: 15px;
    margin: 30px auto;
    backdrop-filter: blur(10px);
    max-width: 600px;
    border: 1px solid rgba(255,255,255,0.2);
}

    .service-times h3 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        color: #fff;
    }

    .service-times p {
        font-size: 1.2rem;
        margin-bottom: 0;
    }

/* Carousel Controls */
#hero-carousel .carousel-control-prev,
#hero-carousel .carousel-control-next {
    width: 8%;
    opacity: 0.8;
    transition: opacity 0.3s;
}

    #hero-carousel .carousel-control-prev:hover,
    #hero-carousel .carousel-control-next:hover {
        opacity: 1;
    }

#hero-carousel .carousel-control-prev-icon,
#hero-carousel .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 50%;
    padding: 10px;
}

/* ========================================
   ✅ CONSISTENT CARD HEIGHTS & IMAGES
   ======================================== */

/* Sermons Section */
#sermons .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Hide the old sermon-img style if you are now using ratio-16x9 */
#sermons .sermon-img {
    display: none;
}

    #sermons .sermon-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

#sermons .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

    #sermons .card-body h3 {
        font-size: 1.25rem;
        line-height: 1.4;
        margin-top: 5px;
        /* Limit title to 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        min-height: 3.5rem; /* Keeps titles aligned even if one is shorter */
    }

    #sermons .card-body p {
        flex: 1;
        margin-bottom: 15px;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    #sermons .card-body .text-muted {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    #sermons .card-body .btn {
        margin-top: auto;
        align-self: flex-start;
    }
    #sermons .card-body .sermon-meta {
        font-size: 0.85rem;
        color: var(--accent);
        text-transform: uppercase;
        font-weight: 600;
        margin-bottom: 10px;
    }
/* Ensure the ratio helper from Bootstrap works correctly */
.ratio-16x9 {
    background-color: #000; /* Prevent white flash while loading */
    border-top-left-radius: 10px; /* Match your card radius */
    border-top-right-radius: 10px;
    overflow: hidden;
    position: relative;
}

    .ratio-16x9 iframe {
        border: 0;
        width: 100%;
        height: 100%;
    }

.card-body h3 {
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Limits title to 1 line */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
@media (max-width: 768px) {
    .ratio-16x9 iframe {
        pointer-events: auto; /* Ensures users can still click play */
    }

    .slider-item {
        /* Prevents the card from stretching awkwardly in the slider */
        height: auto !important;
    }
}
/* Ministries Section */
#ministries .card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 450px;
}

#ministries .ministry-img {
    height: 250px;
    width: 100%;
    overflow: hidden;
    background-color: #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #ministries .ministry-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

#ministries .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
}

    #ministries .card-body h3 {
        font-size: 1.4rem;
        margin-bottom: 15px;
        color: var(--primary);
        min-height: 50px;
    }

    #ministries .card-body p {
        flex: 1;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
    }

/* Events Section - Desktop */
#events .card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

#events .event-date {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    #events .event-date h3 {
        font-size: 2rem;
        margin: 0;
        font-weight: 700;
    }

#events .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

    #events .card-body h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        color: var(--primary);
        min-height: 50px;
    }

    #events .card-body p {
        font-size: 1rem;
        line-height: 1.6;
    }

/* ========================================
   ✅ GENERAL CARD STYLES
   ======================================== */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .card:hover {
        transform: translateY(-8px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    }

/* ========================================
   ✅ SECTION STYLES
   ======================================== */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 2.5rem;
        color: var(--primary);
        position: relative;
        display: inline-block;
        margin-bottom: 15px;
    }

        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--secondary);
        }

    .section-title p {
        color: #666;
        font-size: 1.1rem;
    }

/* ========================================
   ✅ BUTTONS
   ======================================== */
.btn-primary {
    background-color: var(--secondary);
    border-color: var(--secondary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-primary:hover {
        background-color: #c0392b;
        border-color: #c0392b;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-outline-primary:hover {
        background-color: var(--primary);
        border-color: var(--primary);
        color: white;
        transform: translateY(-2px);
    }

.view-all-btn {
    text-align: center;
    margin-top: 40px;
}

/* ========================================
   ✅ PROMISE SECTIONS
   ======================================== */
.promises-wrapper {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    margin-top: 30px;
}

.promise-box {
    flex: 1;
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

    .promise-box:hover {
        transform: translateY(-5px);
    }

.promise-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promise-box.daily {
    background: var(--light); /* Subtle difference for Daily Word */
}

.promise-month {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.promise-verse {
    font-size: 1.4rem;
    font-style: italic;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: 'Georgia', serif;
}

.promise-ref {
    font-weight: 600;
    color: var(--secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .promises-wrapper {
        flex-direction: column; /* Stacks them up and down */
        gap: 40px;
        padding: 0 15px;
    }

    .promise-verse {
        font-size: 1.2rem;
    }
}

/* ========================================
   ✅ PRAYER SECTION - BOTH CARDS TRANSPARENT
   ======================================== */
.prayer-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1423592707957-3b212afa6733?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
}

    /* SECTION TITLE - WHITE */
    .prayer-section .section-title h2 {
        color: white !important;
    }

    .prayer-section .section-title p {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* BOTH CARDS - VERY TRANSPARENT BACKGROUND */
    .prayer-section .card {
        background: rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }

/* ALL TITLES - WHITE TEXT */
.prayer-title-light,
.prayer-title-dark {
    color: white !important;
    margin-bottom: 25px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ALL PARAGRAPHS IN PRAYER SECTION - WHITE TEXT */
.prayer-section .card p {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.7;
}

/* FORM INPUTS - TRANSPARENT WITH WHITE TEXT */
.prayer-form .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white !important;
    padding: 15px 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

    .prayer-form .form-control::placeholder {
        color: rgba(255, 255, 255, 0.7) !important;
    }

    .prayer-form .form-control:focus {
        background: rgba(255, 255, 255, 0.15) !important;
        border-color: var(--accent);
        color: white !important;
        box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    }

/* VALIDATION MESSAGES - VISIBLE ON DARK BACKGROUND */
.prayer-form .text-danger {
    color: #ff6b6b !important;
    font-size: 0.875rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prayer-form .alert-danger {
    background-color: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.4);
    color: #ffcccc;
    backdrop-filter: blur(5px);
}

.prayer-form .alert-success {
    background-color: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #c8e6c9;
    backdrop-filter: blur(5px);
}

/* SUBMIT BUTTON - STANDS OUT */
.prayer-form .btn-primary {
    background: linear-gradient(135deg, var(--secondary), #ff6b6b);
    border: none;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

    .prayer-form .btn-primary:hover {
        background: linear-gradient(135deg, #c0392b, #ff5252);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
    }

/* BIBLE VERSES CARD - VERY TRANSPARENT */
.prayer-section .card.bg-dark {
    background: rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

    .prayer-section .card.bg-dark .lead {
        color: white !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
        font-size: 1.25rem;
    }

/* CAROUSEL CONTROLS - VISIBLE */
.prayer-section .carousel-control-prev,
.prayer-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

/* FIX RECAPTCHA VISIBILITY */
.g-recaptcha {
    transform: scale(0.95);
    transform-origin: 0 0;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}

/* Ensure alerts don't overlap and fit inside the card */
.prayer-form .alert {
    position: relative;
    width: 100%;
    z-index: 1;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

/* Ensure submit button has breathing room */
.prayer-form form > .btn {
    margin-top: 0.5rem;
}
/* ========================================
   ✅ BUILDING FUND SECTION
   ======================================== */
.buildingfund-section {
    background: #fff !important;
    color: var(--text);
    padding: 60px 20px;
}

    .buildingfund-section .footer-title {
        color: var(--primary);
        text-align: center;
        position: relative;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

        .buildingfund-section .footer-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--secondary);
        }

    .buildingfund-section .bible-verse {
        background: rgba(0,0,0,0.05);
        border-left: 5px solid var(--primary);
        padding: 30px;
        border-radius: 10px;
        color: var(--primary);
        text-align: center;
    }

        .buildingfund-section .bible-verse .verse {
            font-size: 1.5rem;
            font-style: italic;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .buildingfund-section .bible-verse .reference {
            font-weight: bold;
            color: var(--secondary);
        }

    .buildingfund-section .btn-donate {
        background-color: var(--secondary);
        border-color: var(--secondary);
        padding: 15px 40px;
        border-radius: 30px;
        font-weight: 600;
        color: #fff;
        transition: all 0.3s ease;
        display: inline-block;
        font-size: 1.1rem;
    }

        .buildingfund-section .btn-donate:hover {
            background-color: #c0392b;
            border-color: #c0392b;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
            text-decoration: none;
        }

/* ========================================
   ✅ FOOTER
   ======================================== */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 0 0 !important;
    margin: 0 !important;
}

.footer-title {
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

    .footer-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 50px;
        height: 2px;
        background: var(--secondary);
    }

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: #ccc;
    margin-bottom: 0 !important;
}

.social-icons a {
    color: white;
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 10px;
}

    .social-icons a:hover {
        background: var(--secondary);
        transform: translateY(-3px);
    }

/* ========================================
   ✅ MOBILE SLIDER STYLES FOR SERMONS & MINISTRIES
   ======================================== */
.mobile-slider {
    display: none;
}

.desktop-grid {
    display: block;
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.slider-item {
    flex: 0 0 100%;
    padding: 0 15px;
}

.slider-indicators {
    text-align: center;
    margin-top: 20px;
}

.slider-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}

    .slider-dot.active {
        background: var(--secondary);
    }

/* ========================================
   ✅ UPCOMING EVENTS - MOBILE SLIDER
   ======================================== */

/* Hide desktop carousel on mobile */
@media (max-width: 768px) {
    #eventsCarousel {
        display: none;
    }

    .events-desktop-grid {
        display: none;
    }
}

/* Show mobile slider only on mobile */
.events-mobile-slider {
    display: none;
}

@media (max-width: 768px) {
    .events-mobile-slider {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .events-slider-container {
        display: flex;
        transition: transform 0.5s ease;
        touch-action: pan-y;
    }

    .events-slider-item {
        flex: 0 0 100%;
        padding: 0 15px;
    }

    .events-slider-indicators {
        text-align: center;
        margin-top: 20px;
    }

    .events-slider-dot {
        display: inline-block;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(0,0,0,0.3);
        margin: 0 5px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .events-slider-dot.active {
            background: var(--secondary);
        }
}

/* Events card styling for mobile slider */
.events-mobile-slider .card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.events-mobile-slider .event-date {
    background: var(--primary);
    color: white;
    padding: 20px;
    text-align: center;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

    .events-mobile-slider .event-date h3 {
        font-size: 2rem;
        margin: 0;
        font-weight: 700;
    }

.events-mobile-slider .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

    .events-mobile-slider .card-body h3 {
        font-size: 1.6rem;
        margin-bottom: 15px;
        color: var(--primary);
        min-height: 50px;
    }

    .events-mobile-slider .card-body p {
        font-size: 1rem;
        line-height: 1.6;
    }

/* View All slide for mobile events */
.events-slider-item.view-all-slide .card {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.events-slider-item.view-all-slide h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.events-slider-item.view-all-slide p {
    color: #666;
    margin-bottom: 20px;
}

/* ========================================
   ✅ MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .navbar {
        min-height: 60px;
    }

    main {
        margin-top: 60px !important;
    }

    /* Hero Carousel Mobile */
    #hero-carousel {
        height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .service-times {
        padding: 20px;
    }

        .service-times h3 {
            font-size: 1.4rem;
        }

        .service-times p {
            font-size: 1rem;
        }

    /* Section Titles */
    .section-title h2 {
        font-size: 1.8rem;
    }

    /* Mobile Slider for Sermons & Ministries */
    .mobile-slider {
        display: block;
        overflow: hidden;
        position: relative;
    }

    .desktop-grid {
        display: none;
    }

    /* Card Heights Mobile */
    #sermons .card,
    #ministries .card {
        min-height: auto;
    }

    #sermons .sermon-img,
    #ministries .ministry-img {
        height: 200px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        #sermons .sermon-img img,
        #ministries .ministry-img img {
            object-fit: cover;
        }

    #sermons .card-body h3,
    #ministries .card-body h3 {
        min-height: auto;
    }

    #events .card {
        min-height: 300px;
    }

    /* Promise Sections */
    .promise-card {
        padding: 25px 20px;
        margin: 0 10px;
    }

    .promise-verse {
        font-size: 1.3rem;
    }

    /* Navbar Collapse */
    .navbar-collapse {
        background: white;
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navbar-nav {
        text-align: center;
    }

    /* Building Fund */
    .buildingfund-section .bible-verse .verse {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    #hero-carousel {
        height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-outline-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ✅ UTILITY CLASSES
   ======================================== */
.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

section {
    margin-bottom: 0 !important;
}

/* Logo Styles */
.logo {
    font-weight: 700;
    font-size: 1.8rem;
}

    .logo span {
        color: var(--secondary);
    }

/* Navigation Links */
.nav-link {
    font-weight: 500;
    margin: 0 5px;
    position: relative;
    transition: color 0.3s ease;
}

    .nav-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 0;
        background-color: var(--secondary);
        transition: width 0.3s ease;
    }

    .nav-link:hover::after,
    .nav-link.active::after {
        width: 100%;
    }

    .nav-link:hover {
        color: var(--secondary) !important;
    }
/* Ministries Section */
.ministry-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

    .ministry-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    }

.ministry-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

    .ministry-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .ministry-img-wrapper .overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ministry-img-wrapper:hover .overlay {
        opacity: 1;
    }

    .ministry-img-wrapper:hover img {
        transform: scale(1.1);
    }

/* Ministry Details */
.ministry-profile-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
}

.ministry-bio-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 2rem;
    height: 100%;
}

.bio-content {
    line-height: 1.8;
    color: #555;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tabs */
.ministry-tabs .nav-link {
    padding: 1rem 2rem;
    font-weight: 600;
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
}

    .ministry-tabs .nav-link.active {
        color: #2c3e50;
        background: transparent;
        border-bottom: 3px solid #e74c3c;
    }

    .ministry-tabs .nav-link:hover {
        color: #2c3e50;
        border-bottom: 3px solid #ddd;
    }

/* Gallery */
.photo-item {
    margin-bottom: 30px;
}

.photo-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

    .photo-img:hover {
        transform: scale(1.05);
    }

.video-item {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #000;
}

    .video-container iframe,
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* Lightbox */
.lightbox-modal .modal-content {
    background: transparent;
    border: none;
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
}
.giving-section {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1532629345422-7515f3d16bb6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    color: white;
    min-height: 100vh;
}

    /* SECTION TITLE - WHITE WITH RED UNDERLINE */
    .giving-section .section-title h2 {
        color: white !important;
        position: relative;
        display: inline-block;
        padding-bottom: 15px;
    }

        .giving-section .section-title h2::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--secondary);
        }

    .giving-section .section-title p {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* ALL CARDS - VERY TRANSPARENT */
    .giving-section .card {
        background: rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    }

        /* CARD TITLES - WHITE */
        .giving-section .card h4,
        .giving-section .footer-title {
            color: white !important;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
            display: block; /* ← CHANGED from inline-block to block */
            padding-bottom: 15px;
            text-align: left; /* ← ADDED to align text left */
        }

        /* CARD TEXT - WHITE */
        .giving-section .card p,
        .giving-section .card li,
        .giving-section .card strong,
        .giving-section .text-white-50 {
            color: rgba(255, 255, 255, 0.9) !important;
        }

    /* LIST ITEMS - WHITE */
    .giving-section .list-unstyled li {
        color: rgba(255, 255, 255, 0.9) !important;
        margin-bottom: 10px;
    }

    .giving-section .list-unstyled strong {
        color: white !important;
    }

    /* BIBLE VERSE - TRANSPARENT BOX */
    .giving-section .bible-verse {
        background: rgba(0, 0, 0, 0.05) !important;
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

        .giving-section .bible-verse .verse {
            font-size: 1.3rem;
            font-style: italic;
            color: white !important;
            line-height: 1.6;
            font-family: 'Georgia', serif;
        }

        .giving-section .bible-verse .reference {
            font-weight: 600;
            color: rgba(255, 255, 255, 0.9) !important;
            font-size: 1rem;
        }

    /* DOWNLOAD BUTTON */
    .giving-section .btn-danger {
        background: linear-gradient(135deg, var(--secondary), #ff6b6b);
        border: none;
        color: white !important;
        font-weight: 600;
        letter-spacing: 0.5px;
        padding: 15px 30px;
        border-radius: 30px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    }

        .giving-section .btn-danger:hover {
            background: linear-gradient(135deg, #c0392b, #ff5252);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
        }

    /* QR CODE IMAGE - BETTER VISIBILITY */
    .giving-section img {
        background: white;
        padding: 15px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .giving-section .bible-verse .verse {
        font-size: 1.1rem;
    }

    .giving-section img {
        max-width: 180px !important;
    }
}