* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    color: #333;
    background: #fff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ================= HEADER ================= */
.header {
    background: #0a1f44;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    gap: 8px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu a {
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
}

.menu a:hover,
.menu .active {
    background: #f7b731;
    color: #000;
}

.donate-btn {
    background: #f7b731;
    color: #000;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* ================= HERO SLIDER ================= */
.hero-slider {
    position: relative;
    height: calc(100vh - 64px); /* Full viewport minus header height */
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 31, 68, 0.6);
}

/* Center all text horizontally and vertically */
.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical center */
    align-items: center;     /* horizontal center */
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 56px;
    margin-bottom: 12px;
}

.slide-content h1 span {
    color: #f7b731;
}

.slide-content p {
    font-size: 22px;
    max-width: 700px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #f7b731;
    color: #000;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
    padding: 14px 24px;
    border-radius: 6px;
    text-decoration: none;
}

/* Navigation arrows */
.slider-nav {
    position: absolute;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
}

.slider-nav span {
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    pointer-events: all;
    background: rgba(0,0,0,0.3);
    padding: 10px 14px;
    border-radius: 50%;
    user-select: none;
}

.slider-nav span:hover {
    background: #f7b731;
    color: #000;
}

/* ================= OTHER SECTIONS ================= */
section {
    padding: 60px 0;
}

section h2 {
    text-align: center;
    color: #0a1f44;
    font-size: 30px;
    margin-bottom: 15px;
}

section p {
    text-align: center;
    max-width: 800px;
    margin: auto;
    color: #555;
}

/* ================= MINISTRIES ================= */
.ministry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.ministry-card {
    background: #f5f7fa;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
}

.ministry-card i {
    font-size: 32px;
    color: #0a1f44;
    margin-bottom: 12px;
}

/* ================= SERVICES ================= */
.services {
    background: #0a1f44;
    color: #fff;
}

.services h2 {
    color: #fff;
}

.service-box {
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
}

/* ================= FOOTER ================= */
/* ================= FOOTER ================= */
.footer {
    background: #00152e;
    color: #fff;
    font-size: 14px;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    color: #f7b731;
}

/* Compact footer-top */
.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 0;  /* reduced from 40px */
    gap: 20px;
}

.footer-about, 
.footer-links, 
.footer-social {
    flex: 1 1 200px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
    font-size: 16px;  /* slightly smaller */
    margin-bottom: 8px;  /* reduced spacing */
    color: #f7b731;
}

.footer-about p {
    line-height: 1.4;  /* tighter line height */
    font-size: 13px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 5px;
}

.footer-links ul li a {
    font-weight: 500;
    font-size: 13px;
}

.footer-social a {
    font-size: 16px;
    margin-right: 12px;
    display: inline-block;
}

/* Compact footer bottom */
.footer-bottom {
    text-align: center;
    padding: 8px 0;  /* reduced from 12px */
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 10px;  /* reduced from 20px */
}

/* Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .footer-links ul li {
        display: inline-block;
        margin: 0 8px 8px 0;
    }

    .footer-social a {
        margin: 0 8px;
    }
}
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
        padding: 12px 0; /* reduce vertical padding */
        gap: 10px;       /* reduce spacing between sections */
    }

    .footer-about, 
    .footer-links, 
    .footer-social {
        flex: 1 1 100%;
        margin-bottom: 8px; /* tighter spacing */
    }

    .footer-about p {
        font-size: 12px;
        line-height: 1.3;
    }

    .footer-links ul li {
        display: inline-block;
        margin: 0 6px 6px 0; /* reduce spacing */
    }

    .footer-social a {
        margin: 0 6px;
        font-size: 14px; /* slightly smaller icons */
    }

    .footer-bottom {
        padding: 6px 0; /* reduce bottom padding */
        font-size: 12px; /* slightly smaller text */
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .menu {
        display: none;
    }

    .slide-content h1 {
        font-size: 32px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
/* ================= ABOUT US DOUBLE LAYOUT ================= */
.about-us {
    padding: 80px 0;
    background: #f5f7fa;
}

.about-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* responsive wrapping */
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h2 {
    font-size: 32px;
    color: #0a1f44;
    margin-bottom: 20px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.about-text .btn-primary {
    background: #0a1f44;
    color: #f7b731;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.about-text .btn-primary:hover {
    background: #f7b731;
    color: #0a1f44;
}

/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-text .btn-primary {
        margin-top: 10px;
    }
}
/* ================= HEADER DROPDOWN ================= */
.menu li {
    position: relative;
}

.menu li .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #0a1f44; /* navy blue */
    display: none;
    list-style: none;
    padding: 10px 0;
    min-width: 180px;
    border-radius: 6px;
    z-index: 100;
}

.menu li .dropdown-menu li a {
    color: #fff;
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    font-size: 15px;
}

.menu li .dropdown-menu li a:hover {
    background: #f7b731;
    color: #000;
}

.menu li:hover .dropdown-menu {
    display: block;
}

/* Mobile dropdown toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu {
        display: none;
        flex-direction: column;
        background: #0a1f44;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        padding: 20px 0;
    }

    .menu li {
        width: 100%;
        text-align: center;
    }

    .menu li .dropdown-menu {
        position: static;
        display: none;
        background: transparent;
        padding: 0;
    }

    .menu li.open .dropdown-menu {
        display: block;
    }

    .menu-toggle {
        display: block;
    }
}
/* Mobile menu toggle */
.menu.show {
    display: flex !important;  /* Show menu when .show is added */
    flex-direction: column;
    background: #0a1f44;
    width: 100%;
    position: absolute;
    top: 70px; /* adjust according to header height */
    left: 0;
    padding: 20px 0;
}
/* ================= GROUP HEADS ================= */
.group-heads {
    background: #fff;
    padding: 60px 0;
}

.group-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
}

.group-card {
    flex: 0 0 auto;
    scroll-snap-align: center;
    text-align: center;
    min-width: 140px;
}

.group-card img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f7b731;
}

.group-card h4 {
    font-size: 14px;
    margin-top: 8px;
}

.group-card span {
    font-size: 12px;
    color: #777;
}

/* Desktop refinement */
@media (min-width: 769px) {
    .group-grid {
        justify-content: space-between;
        overflow: hidden;
    }

    .group-card {
        min-width: auto;
    }
}


/* ================= GALLERY ================= */
.gallery-section {
    background: #f5f7fa;
    padding: 60px 0;
}

.gallery-section h2 {
    text-align: center;
    color: #0a1f44;
}

.gallery-section p {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

.gallery-wrapper {
    overflow: hidden;
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    scroll-behavior: smooth;
}

.gallery-track img {
    flex: 0 0 auto;
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

/* Mobile size */
@media (max-width: 768px) {
    .gallery-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-track img {
        width: 200px;
        height: 140px;
    }
}

/* ================= PURPOSE / MISSION / VISION ================= */
.pmv-section {
    background: #fff;
    padding: 70px 0;
}

.pmv-section h2 {
    text-align: center;
    color: #0a1f44;
    font-size: 32px;
    margin-bottom: 10px;
}

.pmv-intro {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 16px;
}

/* Grid layout */
.pmv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Cards */
.pmv-card {
    background: #f5f7fa;
    padding: 35px 25px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pmv-card i {
    font-size: 36px;
    color: #f7b731;
    margin-bottom: 15px;
}

.pmv-card h3 {
    font-size: 22px;
    color: #0a1f44;
    margin-bottom: 12px;
}

.pmv-card p {
    font-size: 15px;
    color: #555;
    line-height: 1.7;
}

/* Hover effect */
.pmv-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .pmv-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .pmv-grid {
        grid-template-columns: 1fr;
    }
}
/* ================= SCROLL ANIMATION ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
/* ================= PAGE HERO ================= */
.page-hero {
    background: linear-gradient(
        rgba(10,31,68,0.75),
        rgba(10,31,68,0.75)
    ), url("img/churchm1.jpg") center/cover no-repeat;
    padding: 120px 0;
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    font-size: 44px;
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* ================= ABOUT EDITORIAL ================= */
.about-editorial {
    padding: 90px 0;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.editorial-text h2 {
    font-size: 34px;
    margin-bottom: 20px;
}

.editorial-text p {
    font-size: 17px;
    line-height: 1.9;
    color: #444;
    margin-bottom: 16px;
}

.editorial-image img {
    width: 100%;
    border-radius: 12px;
}

/* ================= STORY ================= */
.about-story {
    background: #f5f7fa;
    padding: 90px 0;
    text-align: center;
}

.about-story p {
    max-width: 900px;
    margin: auto;
    font-size: 18px;
    line-height: 1.9;
}

/* ================= BELIEFS ================= */
.beliefs {
    padding: 90px 0;
}

.beliefs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.belief-card {
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 12px 25px rgba(0,0,0,.08);
}

.belief-card i {
    font-size: 34px;
    color: #f7b731;
    margin-bottom: 15px;
}

/* ================= SCRIPTURE ================= */
.scripture {
    background: #0a1f44;
    color: #fff;
    padding: 70px 0;
    text-align: center;
}

.scripture blockquote {
    font-size: 22px;
    font-style: italic;
    max-width: 900px;
    margin: auto;
}

.scripture span {
    display: block;
    margin-top: 10px;
    font-size: 15px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .beliefs-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GALLERY PAGE ===== */
.gallery-page {
    padding: 80px 0;
    background: #f9f9f9;
}

.page-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    cursor: pointer;
    background: #fff;
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.no-gallery {
    text-align: center;
    padding: 40px;
    color: #777;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}
