/* =================================================
   TABLE OF CONTENTS
   1.  Global & Root Styles
   2.  Typography & Reusable Classes
   3.  Header & Navigation
   4.  Hero Carousel & Overlay
   5.  Main Content Area
   6.  Content Sections (Services, Leaders, Events)
   7.  Footer
   8.  Responsive Media Queries
==================================================== */

/* 1. GLOBAL & ROOT STYLES
------------------------------------------------- */
:root {
    --primary-color: #024950;
    --secondary-color: #affdde;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
    overflow-x: hidden; 
}

/* 2. TYPOGRAPHY & REUSABLE CLASSES
------------------------------------------------- */
.section-title {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.site-section {
    padding: 80px 20px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: bold;
    padding: 10px 25px;
}
.btn-primary:hover {
    background-color: #03616b;
    border-color: #03616b;
}


/* 3. HEADER & NAVIGATION
------------------------------------------------- */
.site-header {
    position: relative;
    height: 100vh;
    color: var(--text-light);
}

.header-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2; display: flex; flex-direction: column;
    pointer-events: none;
}
.top-nav-area {
    width: 100%; background-color: rgba(2, 73, 80, 0.20);
    padding-bottom: 10px; z-index: 3; transition: padding 0.3s ease;
    pointer-events: auto;
}
.logo-header { text-align: center; padding: 10px 0; }
.logo-img { height: 150px; vertical-align: middle; transition: height 0.3s ease; }
.logo-text { height: 220px; vertical-align: middle; margin-left: -20px; transition: height 0.3s ease; }
.navbar {
    background-color: transparent; width: fit-content; margin: -30px auto 0 auto;
    border-radius: 12px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); transition: margin 0.3s ease;
}
.navbar-toggler { background-color: var(--text-light); }
.navbar-nav .nav-link {
    font-weight: 500; color: var(--text-light) !important; padding: 10px 25px;
    margin: 0 5px; border-radius: 8px; transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    background-color: var(--secondary-color); color: var(--primary-color) !important;
}
.dropdown-menu {
    background-color: rgba(2, 73, 80, 0.8); border-radius: 8px; border: none;
    box-shadow: none; padding: 0; padding-top: 10px; margin-top: 0;
}
.dropdown-item {
    color: var(--text-light) !important; padding: 10px 25px;
    transition: background-color 0.3s, color 0.3s;
}
.dropdown-item:hover { background-color: var(--secondary-color); color: var(--primary-color) !important; }


/* 4. HERO CAROUSEL & OVERLAY
------------------------------------------------- */
#churchCarousel {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.carousel-item {
    height: 100vh; background-size: cover; background-position: center;
}
.carousel-item::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%); z-index: 1;
}
.bible-verse {
    text-align: center; width: 90%; max-width: 900px;
    margin: auto auto 5vh auto; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
}
.bible-verse p {
    font-family: var(--font-secondary); font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    line-height: 1.5; font-weight: 400;
}
.carousel-indicators [data-bs-target] {
    box-sizing: content-box; width: 12px; height: 12px; padding: 0;
    margin-right: 6px; margin-left: 6px; text-indent: -999px; cursor: pointer;
    background-color: var(--primary-color); background-clip: padding-box; border: 0;
    border-radius: 50%; opacity: 0.7; transition: opacity .6s ease;
}
.carousel-indicators .active { opacity: 1; }


/* 5. MAIN CONTENT AREA
------------------------------------------------- */
main {
    background-image: url('../images/bgwhite.jpg');
    background-size: cover; background-position: center; background-attachment: fixed;
    color: var(--text-dark);
}


/* 6. CONTENT SECTIONS & 7. FOOTER
------------------------------------------------- */
/* ... All other styles remain unchanged ... */
.service-box { background-color: #fff; padding: 30px; border-radius: 12px; height: 100%; box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 10px 25px rgba(0,0,0,0.08); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-box:hover { transform: translateY(-8px); box-shadow: 0 4px 8px rgba(0,0,0,0.08), 0 18px 35px rgba(0,0,0,0.15); }
.service-icon { width: 50px; height: 50px; margin-bottom: 15px; }
.service-box h4 { font-weight: 700; color: var(--primary-color); }
.service-time { font-size: 1rem; color: var(--primary-color); margin-bottom: 15px; font-weight: 500; }
.service-details { opacity: 1; font-size: 0.95rem; color: var(--text-dark); }
.service-details p { margin: 0; }
.leader-image { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 4px solid var(--primary-color); }
.leader-image.bishop-thomas { object-position: center 30%; }
.leader-title { color: #555; }
.event-card { background-color: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); width: 100%; text-align: center; }
.event-card h5 { font-weight: 700; font-size: 1.2rem; color: var(--primary-color); }
.event-card h5 a { text-decoration: none; color: inherit; }
.countdown-container { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.countdown-item { background-color: #f0f0f0; padding: 15px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); min-width: 80px; display: flex; flex-direction: column; }
.countdown-item span:first-child { font-size: 2em; font-weight: bold; color: var(--text-dark); }
.countdown-item span:last-child { font-size: 0.8em; color: #555; text-transform: uppercase; }
.weekly-events-list p { border: 1px solid #ddd; padding: 10px; border-radius: 8px; margin-bottom: 10px; background-color: #f9f9f9; }
.weekly-events-list p:last-child { margin-bottom: 0; }
.site-footer-main { background-color: var(--primary-color); padding: 40px 20px; color: var(--text-light); }
.footer-title { font-weight: bold; color: var(--text-light); }
.site-footer-main p { margin-bottom: 10px; }
.site-footer-main p img { height: 20px; margin-right: 10px; filter: brightness(0) invert(1); }
.location-map { border:0; border-radius: 10px; width: 100%; height: 200px; }
.footer-socials { border-top: 1px solid rgba(255, 255, 255, 0.2); margin-top: 30px; padding-top: 20px; }
.footer-socials a { margin: 0 10px; }
.footer-socials img { height: 30px; transition: transform 0.2s ease; filter: brightness(0) invert(1); }
.footer-socials img:hover { transform: scale(1.1); }
.footer-copyright { padding-top: 20px; font-size: 0.9em; color: rgba(255, 255, 255, 0.7); }


/* 8. RESPONSIVE MEDIA QUERIES
------------------------------------------------- */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu { display: block; }
    .navbar-nav .dropdown-toggle::after { display: none; }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute; top: calc(100% + 10px); left: 5%; right: 5%; width: 90%; z-index: 1050;
        background-color: rgba(2, 73, 80, 0.95); border-radius: 8px; padding: 10px;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .logo-img { height: 100px; }
    .logo-text { height: 150px; }
    .navbar { width: 100%; margin-top: 10px; }
    .navbar-nav .nav-link { padding: 12px 20px; margin: 5px 0; }
    .navbar-nav .dropdown-menu {
        width: 100%; text-align: center; margin-top: 5px; padding-top: 5px;
        background-color: rgba(0,0,0,0.2);
    }
    .section-title { font-size: 2.2rem; }
    .site-section { padding: 60px 20px; }

    /* NEW FIX: Align hamburger button to the right */
    .navbar-toggler {
        margin-left: auto;
    }
}

@media (max-width: 767.98px) {
    .site-header { height: 60vh; min-height: 450px; }
    .carousel-item { height: 60vh; background-size: contain; background-repeat: no-repeat; background-color: #012a2e; }
    .bible-verse { margin-bottom: 3vh; }
    .top-nav-area { padding-bottom: 20px; }
    .logo-header { padding: 0; }
    .logo-img { height: 80px; }
    .logo-text { height: 120px; margin-left: -10px; }
    .service-box, .service-box:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 10px 25px rgba(0,0,0,0.08);
    }
}

@media (max-width: 479.98px) {
    .countdown-container { flex-wrap: wrap; gap: 10px; }
    .countdown-item { min-width: 70px; padding: 10px; }
    .countdown-item span:first-child { font-size: 1.8em; }
}