
/* --- Global Styles & Variables --- */
:root {
    --primary-color: #941b1b; /* Olive Green/Earth tone for Norwood */
    --secondary-color: #1A1E31; /* Dark Blue/Navy for text/background */
    --light-bg: #F8F8F8;
    --white: #FFFFFF;
    --dark-bg: #1A1A1A;
    --font-stack: 'Arial', sans-serif; /* Replace with a custom font */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: #6B8E23; /* Darker primary color */
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-secondary:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* --- 1. Header/Navigation Bar --- */
/*.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}*/

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background-color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
}
.header-logo-img {
    height: 50px; /* Adjust this value as needed to fit your design */
    width: auto;
    display: block;
}

/* --- Media Query adjustment for smaller screens --- */
@media (max-width: 768px) {
    .header-logo-img {
        height: 40px; /* Make logo a bit smaller on mobile */
    }
}

.main-nav a {
    text-decoration: none;
    color: var(--secondary-color);
    margin-left: 20px;
    font-weight: 500;
}

.menu-toggle {
    display: none; /* Hide on desktop */
}

/* --- 2. Hero Section --- */
.hero-section {
    background: url('img/main.jpeg') no-repeat center center/cover; 
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
    
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    z-index: 10;
}

.hero-content h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.hero-actions .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}

/* --- 3. Service Details Section --- */
.service-details-section {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.service-details-section .container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.service-text {
    flex: 1;
    max-width: 500px;
}

.service-cards-group {
    display: flex;
    gap: 20px;
}

.service-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex: 1;
    text-align: center;
    min-width: 200px;
}

.service-card h3 {
    font-size: 2em;
    color: var(--secondary-color);
}

/* --- 4. Upcoming Events Section --- */
.events-section {
    padding: 80px 0;
}

.events-section .container {
    text-align: center;
}

.events-section h2 {
    margin-bottom: 10px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.event-card {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: left;
}

.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card h4, .event-card p {
    padding: 10px 15px;
}

.event-card h4 {
    font-size: 1.2em;
    color: var(--secondary-color);
}
.event-card p {
    color: #666;
    font-size: 0.9em;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    text-align: center;
    padding: 20px 0;
}

/* --- Media Queries for Responsiveness (Mobile) --- */
@media (max-width: 900px) {
    .service-details-section .container {
        flex-direction: column;
        align-items: center;
    }
    .service-text {
        text-align: center;
        margin-bottom: 30px;
    }
    .service-actions {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop navigation on smaller screens */
    .main-nav, .nav-cta {
        display: none;
    }

    /* Show mobile menu toggle */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5em;
        cursor: pointer;
        color: var(--secondary-color);
    }

    .service-cards-group {
        flex-direction: column;
        width: 100%;
    }
    .service-card {
        min-width: unset;
    }
}
/* --- Pastor's Corner Section Styling  --- */

.pastors-corner-section {
    padding: 60px 0;
    /* Use the same light background as the main body or a contrasting white if other sections are light-bg */
    background-color: var(--white); 
}

.pastors-corner-section .container {
    /* Limit the width for comfortable reading, similar to the reference image */
    max-width: 800px;
}

.pastors-corner-section h2 {
    font-size: 2.2em;
    font-weight: 300; /* Lighter font weight for modern look */
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.pastors-corner-section h3 {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 40px;
    color: var(--primary-color); /* Use your primary color for emphasis */
}

.greeting-content p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444; /* Slightly softer text color */
}

/* --- Pastor Signature Block --- */
.pastor-signature {
    display: flex;
    align-items: center;
    margin-top: 50px;
    padding-top: 30px;
    /* Add a subtle line above the signature block if desired */
    /* border-top: 1px solid #ddd; */
}

.pastor-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%; /* Makes the image perfectly round */
    object-fit: cover;
    margin-right: 25px;
    /* Add a subtle drop shadow or border if you want it to pop */
}

.pastor-info h4 {
    font-size: 1.3em;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.pastor-info .role {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.pastor-info .email {
    font-style: italic;
    color: #666;
}

/* Optional: Center the content if that is the final design goal */
@media (min-width: 801px) {
    .pastors-corner-section .container {
        text-align: left; /* Keep text left-aligned for readability */
    }
}
/* --- Feature Blocks Section --- */
.feature-blocks-section {
    padding: 80px 0;
    background-color: var(--light-bg); /* Use a subtle background */
}

.feature-block {
    display: flex;
    align-items: center; /* Vertically align items */
    gap: 40px; /* Space between image and text */
    margin-bottom: 60px; /* Space between blocks */
}

/* Remove bottom margin for the last block */
.feature-block:last-child {
    margin-bottom: 0;
}

.feature-image-wrapper {
    flex: 1; /* Allows image to take available space */
    min-width: 45%; /* Ensures image doesn't get too small */
    position: relative;
    border-radius: 8px; /* Rounded corners for images */
    overflow: hidden; /* Ensures image respects border-radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-image {
    width: 100%;
    height: 350px; /* Fixed height for consistent look */
    object-fit: cover; /* Ensures image covers the area without distortion */
    display: block;
}

.feature-content {
    flex: 1; /* Allows content to take available space */
    padding: 20px 0; /* Some vertical padding */
}

.feature-content h3 {
    font-size: 2em;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #555;
}
 /* 
.feature-content .btn-primary {
    /* Style inherited from global .btn-primary */
/* }*/

/* --- Reversed Block Styling (Text Left, Image Right) --- */
.feature-block.reversed {
    flex-direction: row-reverse; /* Reverses the order of children */
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .feature-block,
    .feature-block.reversed {
        flex-direction: column; /* Stack image and text vertically */
        text-align: center;
        gap: 30px;
        margin-bottom: 50px;
    }

    .feature-image-wrapper {
        min-width: 80%; /* Wider image on smaller screens */
    }

    .feature-image {
        height: 300px;
    }

    .feature-content {
        padding: 0;
    }
}

@media (max-width: 500px) {
    .feature-image-wrapper {
        min-width: 100%; /* Full width on very small screens */
    }

    .feature-image {
        height: 250px;
    }

    .feature-content h3 {
        font-size: 1.8em;
    }
}
/* --- Ministries Hero Section (Simple Title Area with Background Image) --- */
.ministries-hero {
    /* Background Image Setup */
    background: url('img/NBC-1261.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.ministries-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}




/* Ensure content is positioned above the overlay */
.ministries-hero .container {
    position: relative;
    z-index: 2;
}

.ministries-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}

.ministries-hero p {
    font-size: 1.2em;
    color: #eee; /* Slightly off-white for contrast */
}

/* --- Ministries Grid Section --- */
.ministries-grid-section {
    padding: 60px 0 80px;
}

.ministry-grid {
    /* Use CSS Grid for the layout, similar to the events section */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.ministry-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.ministry-card:hover {
    transform: translateY(-5px); /* Subtle lift on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ministry-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.card-content p {
    color: #555;
    margin-bottom: 15px;
    font-size: 1em;
}

.btn-card-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding-top: 5px;
    transition: color 0.3s;
}

.btn-card-link:hover {
    color: var(--primary-color);
}

/* --- Responsive adjustments are inherited from the main events-grid styles, 
     but you can add more specific breakpoints here if needed. --- */

/* --- Events Hero Section --- */
.events-hero {
    /* Background Image Setup */
    background: url('img/NBC-1182.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.events-hero .container {
    position: relative;
    z-index: 2;
}

.events-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}

.events-hero p {
    font-size: 1.2em;
    color: #eee; /* Slightly off-white for contrast */
}

/* --- Events Listing Section (Two-Column Layout) --- */
.events-listing-section {
    padding: 60px 0 80px;
}

.events-flex-container {
    display: flex;
    gap: 40px; /* Space between the events list and calendar */
    align-items: flex-start; /* Aligns content to the top */
}

.events-list-main {
    flex: 3; /* Takes up 3 parts of the available space (e.g., 70%) */
}

.events-list-main h2 {
    font-size: 2em;
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

/* Redefining event card for a list view (optional: use Grid if you prefer the old layout) */
.events-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.events-list-main .event-card {
    display: flex;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    background-color: var(--white);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.events-list-main .event-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.events-list-main .event-card img {
    width: 250px; /* Fixed width for the image */
    height: 100%;
    min-height: 150px; /* Minimum height if content is short */
    object-fit: cover;
}

.event-details {
    padding: 20px;
}

.event-details h4 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.event-date {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.9em;
}

.load-more {
    display: block;
    width: 200px;
    margin: 40px auto 0;
    text-align: center;
}

/* --- Calendar Sidebar --- */
.calendar-sidebar {
    flex: 1; /* Takes up 1 part of the available space (e.g., 30%) */
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.calendar-sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.calendar-placeholder {
    padding: 20px;
    text-align: center;
    background-color: var(--white);
    border: 1px dashed #ccc;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Calendar Legend Styling */
.calendar-legend h4 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.calendar-legend ul {
    list-style: none;
    padding: 0;
}

.calendar-legend li {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 10px;
}
.legend-dot.worship { background-color: var(--primary-color); }
.legend-dot.family { background-color: #FFA500; } /* Orange */
.legend-dot.fellowship { background-color: #4682B4; } /* Steel Blue */


/* --- Media Query for Responsiveness (Stacking on Mobile) --- */
@media (max-width: 900px) {
    .events-flex-container {
        flex-direction: column; /* Stacks the events list and sidebar */
        gap: 30px;
    }
    
    .events-list-main .event-card {
        flex-direction: column; /* Stacks image and details in event card */
    }

    .events-list-main .event-card img {
        width: 100%;
        height: 200px;
    }
}

/* --- Calendar Image Section --- */
.calendar-image-section {
    padding: 60px 0 80px;
    background-color: var(--white);
    text-align: center; /* Center the wrapper */
}

.monthly-calendar-wrapper {
    /* Optional: Limit max width for readability on large screens */
    max-width: 1000px; 
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Ensures border radius works if added */
    border-radius: 8px; /* Subtle rounded corners */
}

.monthly-calendar-image {
    width: 100%;
    height: auto;
    display: block; /* Removes any extra space below the image */
}

.calendar-image-notes {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
    padding: 20px;
}

.calendar-image-notes h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.calendar-image-notes ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
    line-height: 1.8;
}

.calendar-image-notes .btn-primary {
    margin-top: 20px;
}

/* Ensure the hero section text reflects the new title */
.events-hero h1 {
    font-size: 3em;
    /* Color should match your chosen hero style */
}

/* Add mobile navigation overlay/menu styles here (requires JS) */

/* --- Visit Hero Section --- */
.visit-hero {
    /* Background Image Setup */
    background: url('img/NBC-1182.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.visit-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.visit-hero .container {
    position: relative;
    z-index: 2;
}

.visit-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}



/* --- Contact Map Section (Grid Layout) --- */
.contact-map-section {
    padding: 60px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2/3 for map, 1/3 for info */
    gap: 40px;
    align-items: flex-start;
}

/* Map and Location Column */
.map-and-location h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.map-container {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.address-details h3 {
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.address-details p {
    margin-bottom: 5px;
}

.address-details .btn-secondary {
    margin-top: 15px;
}

/* Contact Info and Image Column */
.contact-info-and-image {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-card h2 {
    font-size: 1.5em;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.contact-item .icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--primary-color);
}

.contact-item .label {
    font-weight: bold;
    color: #444;
    margin-right: 10px;
}
.contact-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-item a:hover {
    color: var(--primary-color);
}

/* Creative Picture Styling */
.side-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.side-image {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-style: italic;
    font-size: 0.9em;
}

/* --- Visit Form Section --- */
.visit-form-section {
    padding: 40px 0 80px;
    text-align: center;
    background-color: #f1f1f1;
}

.visit-form-section .container {
    max-width: 600px;
}

.visit-form h2 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.visit-form p {
    margin-bottom: 30px;
    color: #555;
}

.visit-form input[type="text"],
.visit-form input[type="email"],
.visit-form input[type="tel"],
.visit-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

.visit-form textarea {
    height: 100px;
    resize: vertical;
}

.visit-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    transition: background-color 0.3s;
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
    }

    .contact-info-and-image {
        /* Reverse order so contact info comes before the image on mobile */
        flex-direction: column-reverse; 
    }
}

/* --- About Hero Section --- */
.about-hero {
    /* Background Image Setup */
    background: url('img/nbc1.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.about-hero .container {
    position: relative;
    z-index: 2;
}

.about-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}


/* --- Core Values Section --- */
.core-values-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.core-values-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.value-card {
    background-color: var(--light-bg);
    padding: 40px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%; /* Ensures cards are the same height */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes the button to the bottom */
}

.value-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
}

.value-card h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.value-card p {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555;
    flex-grow: 1; /* Allows text to take up available space */
}

/* Ensure the greeting section on the about page is slightly different from the home version */
.about-greeting {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* --- Vision Statement Section (Based on image_ed6738.jpg) --- */
.vision-statement-section {
    padding: 80px 0;
    /* Use a dark background color similar to the reference image */
    background-color: var(--secondary-color); 
    color: var(--white);
    text-align: center;
    position: relative;
    /* Optional: Add a subtle background image/overlay here if you want to match the reference */
}

.vision-heading {
    font-size: 3em;
    margin-bottom: 20px;
    font-weight: 200; /* Lighter weight for modern look */
}

.vision-intro {
    font-size: 2.1em;
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
    color: #ccc;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.vision-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark effect */
    border-radius: 5px;
    padding: 30px;
    text-align: left;
    height: 100%;
}

.card-icon-header {
    margin-bottom: 20px;
    text-align: center;
}

.vision-icon {
    font-size: 3em;
    color: var(--primary-color); /* Use your church color for the icons */
    display: block;
    margin-bottom: 5px;
}

.vision-card h3 {
    font-size: 1.5em;
    color: var(--white);
    font-weight: 500;
    margin-top: 10px;
}

/*====Removed this section to test the error 
.card-content {
    
}=====*/

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content li {
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
    display: flex; /* Used to align the arrow with text */
    color: #ddd;
}

.list-arrow {
    font-size: 0.8em;
    color: var(--primary-color);
    margin-right: 8px;
    margin-top: 3px; /* Visual adjustment */
}

/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .vision-card {
        padding: 20px;
    }
}

/* --- Pastor Hero Section --- */
.pastor-hero {
    padding: 100px 0 50px;
    text-align: center;
    background-color: var(--light-bg);
}

.pastor-hero h1 {
    font-size: 3em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* --- Pastor Message Section (Two-Column Layout) --- */
.pastor-message-section {
    padding: 80px 0;
    background-color: var(--white);
}

.pastor-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Photo on left (1/3), Message on right (2/3) */
    gap: 50px;
    align-items: flex-start; /* Align content to the top */
}

.pastor-photo-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pastor-full-photo {
    width: 100%;
    height: auto;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.pastor-message-content h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.pastor-message-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.pastor-signature-block {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.pastor-signature-block p {
    margin-bottom: 5px;
    font-size: 1em;
    color: #666;
}

.pastor-signature-block h4 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.pastor-signature-block .role {
    font-weight: bold;
    color: var(--primary-color);
}

.pastor-signature-block .email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}
.pastor-signature-block .email-link:hover {
    text-decoration: underline;
}

/* --- Scripture Quote Section (from image_1.png) --- */
.scripture-quote-section {
    padding: 100px 0; /* Generous padding top/bottom */
    background-color: #385170; /* Dark blue color from the image */
    color: var(--white);
    text-align: center;
}

.scripture-quote-section .container {
    max-width: 900px; /* Constrain width for readability */
}

.scripture-text {
    font-family: 'Open Sans', sans-serif; /* Or a similar clean, bold font */
    font-size: 2.2em; /* Large, prominent text */
    font-weight: 700; /* Bold */
    line-height: 1.4;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.wave-divider {
    width: 60px;
    height: 10px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><path fill="%23c2d6e3" d="M0,10c25,0,25,-10,50,-10s25,10,50,10" /></svg>') no-repeat center center/contain;
    margin: 0 auto 20px;
    opacity: 0.7; /* Match the subtle wave */
}

.scripture-reference {
    font-size: 1.1em;
    color: #c2d6e3; /* Lighter color for reference */
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .pastor-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 30px;
    }
    
    .pastor-photo-wrapper {
        order: -1; /* Place photo above message on mobile */
    }

    .scripture-text {
        font-size: 1.6em; /* Adjust font size for smaller screens */
    }
}

@media (max-width: 500px) {
    .scripture-text {
        font-size: 1.3em;
    }
}

/* --- Connect Hero Section --- */
.connect-hero {
    /* Background Image Setup */
    background: url('img/mainconnect.jpeg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.connect-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.connect-hero .container {
    position: relative;
    z-index: 2;
}

.connect-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}

/* --- Devotion and Media Section (Two-Column) --- */
.devotion-and-media-section {
    padding: 60px 0 80px;
}

.connect-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.devotions-container, .media-resources-container {
    flex: 1; /* Both containers take equal space */
}

.devotions-container h2, .media-resources-container h2 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

/* --- WhatsApp Style Devotions CSS --- */
.whatsapp-style-box {
    background-color: #ECE5DD; /* Light chat background */
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background-color: var(--primary-color); /* Use church primary color */
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    font-weight: bold;
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #25D366; /* WhatsApp online green */
    border-radius: 50%;
    margin-right: 10px;
}
.chat-header p {
    flex-grow: 1;
    margin: 0;
}
.header-icon {
    font-size: 1.2em;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    margin: 8px 10px;
    position: relative;
}

.message-bubble p {
    margin: 0 0 5px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.message-bubble strong {
    color: var(--primary-color);
}

.message-bubble .timestamp {
    display: block;
    font-size: 0.7em;
    color: #888;
    text-align: right;
    margin-top: 5px;
}

/* Incoming Message (Pastor's side) */
.message-bubble.received {
    background-color: var(--white);
    border-bottom-left-radius: 2px;
    align-self: flex-start;
}

/* Outgoing Message (User/System side) */
.message-bubble.sent {
    background-color: #DCF8C6; /* Light green/sent color */
    border-bottom-right-radius: 2px;
    align-self: flex-end;
    margin-left: auto;
}

.chat-input-placeholder {
    background-color: var(--white);
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 10px 15px;
    margin: 15px;
    color: #888;
    font-style: italic;
}


/* --- Media Resources CSS --- */
.media-card {
    background-color: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.media-card h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.media-meta {
    font-size: 0.9em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.video-placeholder {
    height: 200px;
    background-color: #333;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 4px;
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .connect-layout {
        flex-direction: column; /* Stack on mobile */
    }
    .devotions-container {
        margin-bottom: 40px;
    }
}

/* --- Online Connect Section --- */
.online-connect-section {
    padding: 80px 0;
    background-color: var(--light-bg); /* Use light background to make it stand out */
    text-align: center;
}

.online-connect-section h2 {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.online-connect-section p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 40px;
}

.connection-cards-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.connection-card {
    background-color: var(--white);
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1; /* Allows cards to grow equally */
    max-width: 400px;
}

.card-icon {
    font-size: 3em;
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

.connection-card h3 {
    font-size: 1.8em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.connection-card .time {
    font-weight: bold;
    color: #e67e22; /* Use a distinct color for time */
    margin-bottom: 25px;
}

.connection-btn {
    width: 100%; /* Make the button full width of the card */
    display: block;
    text-align: center;
    padding: 12px 20px;
}

.disclaimer {
    font-size: 0.9em;
    font-style: italic;
    color: #777;
    margin-top: 20px;
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 800px) {
    .connection-cards-grid {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        align-items: center;
    }
    .connection-card {
        max-width: 100%;
        width: 90%;
    }
}

/* --- Gallery Hero Section --- */
.gallery-hero {
    /* Background Image Setup */
    background: url('img/gallery.jpeg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.gallery-hero .container {
    position: relative;
    z-index: 2;
}

.gallery-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}


/* --- Photo Gallery Section --- */
.photo-gallery-section {
    padding: 60px 0 40px;
    background-color: var(--white);
}

.photo-gallery-section h2, .video-gallery-section h2 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.photo-grid {
    display: grid;
    /* Create a responsive 3-column grid */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    /* Ensure all images have a consistent height */
    height: 250px; 
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: var(--white);
    padding: 10px;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
}

.load-more {
    display: block;
    margin: 40px auto 0;
    text-align: center;
}

/* --- Video Gallery Section --- */
.video-gallery-section {
    padding: 40px 0 80px;
    background-color: var(--light-bg); /* Use a light background for contrast */
    text-align: center;
}

.video-grid {
    display: grid;
    /* Create a responsive 3-column video grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.video-item {
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item iframe {
    /* Styles are mostly handled by the iframe attributes, but ensure responsiveness */
    display: block;
}

.video-caption {
    padding: 10px;
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 1em;
}


/* --- Media Queries for small adjustments --- */
@media (max-width: 600px) {
    .photo-grid, .video-grid {
        /* On small screens, the columns will already stack due to auto-fit/minmax */
        gap: 15px;
    }
}

/* --- Slideshow Container --- */
.slideshow-container {
    max-width: 1000px;
    position: relative;
    margin: auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hide the images by default */
.mySlides {
    display: none;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5); /* Semi-transparent background */
}

/* Position the "next button" to the right */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* On hover, add a black background with a little more opacity */
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
    color: #f2f2f2;
    font-size: 1.2em;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
    background-color: rgba(0,0,0,0.6);
}

/* The dots/bullets/indicators */
.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: var(--primary-color); /* Use your church primary color */
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Adjust image height within slideshow */
.slideshow-container img {
    height: 450px; /* Set a consistent height for slideshow images */
    object-fit: cover;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .slideshow-container img {
        height: 300px; /* Shorter height on smaller screens */
    }
    .prev, .next {
        font-size: 14px;
        padding: 12px;
    }
    .text {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .slideshow-container img {
        height: 250px;
    }
}

/*Second Ministry Style*/
/* --- Ministries Accordion Section --- */
.ministries-accordion-section {
    padding: 60px 0 80px;
    background-color: var(--light-bg); /* Contrast with white headers */
}

.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    /* Optional: Add a dark background to the container if you want it to look like the reference image */
    /* background-color: #333; */ 
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
}
.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: var(--white); /* White background for the bar */
    color: var(--secondary-color);
    padding: 20px 30px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    font-size: 1.2em;
    font-weight: 600;
}

.accordion-header:hover, .accordion-header.active {
    background-color: #f5f5f5; /* Slight hover/active highlight */
    color: var(--primary-color);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.2em; /* Ensure font size matches button parent */
}

/* Icon (Arrow) Styling */
.accordion-icon {
    font-size: 1.5em;
    font-weight: bold;
    /* Use a right-pointing arrow by default */
    content: "\203A"; /* Unicode right arrow */
    transition: transform 0.3s ease-in-out;
}
.accordion-header.active .accordion-icon {
    /* Rotate the arrow when active (pointing down) */
    transform: rotate(90deg);
}

/* Content Panel Styling */
.accordion-content {
    padding: 0 30px;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-top: 1px solid #f5f5f5;
}

.accordion-content p {
    padding: 15px 0 10px 0;
    line-height: 1.6;
    color: #555;
}

.accordion-content h4 {
    color: var(--secondary-color);
    margin: 15px 0 10px 0;
    font-size: 1.1em;
}

/* List Styling (Bullet Points) */
.accordion-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-bottom: 10px;
}
.accordion-content ul li {
    margin-bottom: 5px;
    color: #666;
}

/* Numbered List Styling */
.accordion-content ol {
    list-style: decimal;
    margin-left: 20px;
    padding-bottom: 10px;
}
.accordion-content ol li {
    margin-bottom: 5px;
    color: #666;
}

.accordion-content .btn-secondary {
    margin: 10px 0 20px 0;
}
/*End of Second Ministry Style*/
/* --- Leaders Hero Section --- */
.leaders-hero {
    /* Background Image Setup */
    background: url('img/NBC-1182.jpg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.leaders-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.leaders-hero .container {
    position: relative;
    z-index: 2;
}

.leaders-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}



/* --- Senior Pastor & Wife Section --- */
.senior-pastor-section {
    padding: 80px 0;
    background-color: var(--white);
}

.pastor-profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Photo on left (1/3), Bio on right (2/3) */
    gap: 50px;
    align-items: flex-start;
}

.pastor-photo-group {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.pastor-photo-group img {
    width: 100%;
    height: auto;
    display: block;
}

.pastor-photo-group .photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
}

.pastor-bio-content h2 {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.pastor-bio-content h3 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 25px;
}

.pastor-bio-content p {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #555;
}

.pastor-bio-content .contact-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.pastor-bio-content .contact-icon-link {
    font-size: 1.8em;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.pastor-bio-content .contact-icon-link:hover {
    color: var(--secondary-color);
}

/* --- Ministry Leadership Team Section (Based on reference image) --- */
.ministry-team-section {
    padding: 60px 0 80px;
    background-color: #f8f8f8; /* Light background for contrast */
    text-align: center;
}

.team-section-heading {
    font-size: 2.5em;
    color: var(--secondary-color);
    margin-bottom: 50px;
    font-weight: 700;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive 3-column grid */
    gap: 30px;
}

.team-member-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding-bottom: 20px; /* Space for text below */
}

.member-photo-bg {
    background-color: #f6f5f2; /* Orange background from reference image */
    padding: 20px; /* Padding around the image */
    margin-bottom: 15px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.member-photo {
    width: 100%;
    height: 250px; /* Consistent height for photos */
    object-fit: cover; /* Crop as needed */
    border-radius: 8px; /* Slightly rounded corners for the photo itself */
    display: block;
}

.team-member-card h3 {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.member-role {
    font-size: 0.95em;
    color: #777;
    margin-bottom: 15px;
}

.member-contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.contact-icon-small {
    font-size: 1.5em;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-icon-small:hover {
    color: var(--secondary-color);
}


/* --- Media Queries for Responsiveness --- */
@media (max-width: 900px) {
    .pastor-profile-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        gap: 30px;
    }
    .pastor-photo-group {
        order: -1; /* Place photo above bio on mobile */
    }
}

@media (max-width: 600px) {
    .team-section-heading {
        font-size: 2em;
        margin-bottom: 30px;
    }
}
.popup-container {
    position: relative; /* Allows positioning of the pop-up content relative to this container */
    display: inline-block; /* Ensures the container only takes up the space of its content */
  }
  
  .popup-content {
    visibility: hidden; /* Hides the pop-up by default */
    opacity: 0; /* Makes it fully transparent initially */
    position: absolute;
    background-color: #090505;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1; /* Ensures the pop-up appears above other content */
    transition: visibility 0s, opacity 0.3s ease-in-out; /* Smooth transition for appearance */
  }
  
  .popup-container:hover .popup-content,
  .popup-container.active .popup-content { /* Show on hover or when 'active' class is added by JS */
    visibility: visible;
    opacity: 1;
  }

  .media-video {
    width: 100%;
    max-height: 280px;
    border-radius: 10px;
    background: #000;
}
/* --- Give Hero --- */
.give-hero {
    /* Background Image Setup */
    background: url('img/give.jpeg') no-repeat center center/cover;
    height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

/* Dark Overlay for Text Readability */
.give-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Semi-transparent black overlay (adjust 0.5 for darker/lighter effect) */
    background-color: rgba(0, 0, 0, 0.5); 
}
/* Ensure content is positioned above the overlay */
.give-hero .container {
    position: relative;
    z-index: 2;
}

.give-hero h1 {
    font-size: 3em;
    color: var(--white);
    margin-bottom: 10px;
}
.give-hero h1 { font-size: 3em; margin-bottom: 20px; }
.give-hero p { font-style: italic; max-width: 700px; margin: 0 auto; opacity: 0.9; }

/* --- Banking Grid --- */
.banking-details-section { padding: 80px 0; background: #f9f9f9; }
.banking-details-section h2 { text-align: center; margin-bottom: 40px; color: #1c2b39; }

.account-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.account-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex: 1;
    max-width: 450px;
    border-top: 5px solid #d4af37; /* Gold accent */
}

.account-card.highlighted {
    border-top-color: #9e1b32; /* Deep red accent from logo */
    background: #fffafa;
}

.account-card h3 { color: #9e1b32; margin-bottom: 10px; }
.details-box {
    margin-top: 20px;
    background: #f1f3f5;
    padding: 20px;
    border-radius: 8px;
}
.details-box p { margin: 8px 0; font-family: 'Courier New', monospace; font-size: 1.1em; }

/* --- Building Project Section --- */
.building-project-section { padding: 80px 0; background: white; }
.project-header { text-align: center; margin-bottom: 50px; }
.project-header h2 { color: #1c2b39; font-size: 2.5em; }

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.project-img-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(158, 27, 50, 0.85); /* NBC Red with transparency */
    color: white;
    padding: 10px;
    text-align: center;
}

.project-description {
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
}

@media (max-width: 768px) {
    .account-grid { flex-direction: column; align-items: center; }
}

/* Mobile Styles (adjust the 768px as needed) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Show the ☰ button on mobile */
        font-size: 2rem;
        background: none;
        border: none;
        cursor: pointer;
        color: #9e1b32; /* Using the church's red accent */
    }

    .nav-links {
        display: none; /* Hide the links by default on mobile */
        width: 100%;
        position: absolute;
        top: 70px; /* Adjust based on header height */
        left: 0;
        background-color: #fff;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

   
}

/* Desktop */
@media (min-width: 769px) {
    .nav-links { display: none !important; }
    .main-nav { display: block; }
  }

  .nav-links ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
  }

/* ========================= */
/* MOBILE NAVIGATION CLEAN FIX */
/* ========================= */

@media (max-width: 768px) {

    /* Hide desktop nav */
    .main-nav {
      display: none;
    }
  
    /* Show hamburger */
    .menu-toggle {
      display: block;
      font-size: 2rem;
      background: none;
      border: none;
      cursor: pointer;
      color: var(--primary-color);
    }
  
    /* Dropdown container */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        z-index: 999;
    
        /* Animation setup */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.35s ease;
    }
    
        /* When active (OPEN) */
        .nav-links.active {
            max-height: 500px; /* enough to fit links */
            opacity: 1;
            transform: translateY(0);
    }
  
    /* Show when active */
    .nav-links.active {
      display: block;
    }
  
    /* Remove bullets */
    .nav-links ul {
      list-style: none;
      margin: 0;
      padding: 0;
    }
  
    /* Individual items */
    .nav-links li {
      border-bottom: 1px solid #f0f0f0;
    }
  
    /* Link styling (match desktop nav) */
    .nav-links a {
      display: block;
      padding: 16px 20px;
      text-decoration: none;
      font-weight: 500;
      color: var(--secondary-color);
      font-size: 1rem;
    }
  
    .nav-links a:hover {
      background: var(--light-bg);
      color: var(--primary-color);
    }
  }