*{
    margin: 0;
    padding: 0;
  font-family: "Poppins", sans-serif
}
.header{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(Logos/banner4.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
nav{
    display: flex;
    padding: 1rem 6rem;
    justify-content: space-between;
    align-items: center;
}
nav img{
    width: 100px;
    border-radius: 100px;
}
.nav-links{
    flex: 1;
    text-align: right;
}
.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
.nav-links ul li::after{
    content: "";
    width: 0%;
    height: 2px;
    background: white;
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover:after{
    width: 100%;
}
.text-box{
    width: 90%;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    text-align: center;
}
.text-box h1{
    font-size: 60px;
    color: white;
    font-family: "Manufacturing Consent", system-ui;
    font-weight: 400;
    font-style: normal;
}
.text-box p{
    margin: 10px 0 40px;
    font-size: 14px;
    color: white;
}
.hero-btn{
    display: inline-block;
    text-decoration: none;
    color:#fff;
    border: 1px solid #fff;
    font-size: 13px;
    background: transparent;
    position: relative;
    cursor: pointer;
}
.hero-btn:hover{
    border: 1px solid purple;
    background: purple;
    transition: 1s;
}
nav .fa{
    display: none;
}
@media screen and (min-width: 769px) and  {
.header{
       background-image: linear-gradient(rgba(4,9,30,0.7),rgba(4,9,30,0.7)), url(Logos/banner4.jpg);
        background-size: contain;
}
    .text-box h1{
    font-size: 10px;
}
nav img{
    width: 50px;
    border-radius: 100px;
}
    /*.nav-links ul li{
        display: block;
    }
    .nav-links{
        position: absolute;
        background: royalblue;
        height: 100vh;
        width: 200px;
        top: 0;
        right: -200px;
        text-align: left;
        z-index: 2;
        transition: 1s;
    }
    nav .fa{
        display: block;
        color: white;
        font-size: 22px;
        cursor: pointer;
    }
    .nav-links ul{
        padding: 30px;
    }*/
    .statements{
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px auto 60px;
            padding: 20px;
            max-width: 900px;
            flex-direction: column;
    }
    .statements img{
            width: 450px;
            height: 600px;
            object-fit: cover;
            border: 5px solid var(--secondary-color);
            margin-bottom: 15px;
            border-radius: 20%; 
    }
      .leaders-container {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px auto 60px;
            padding: 20px;
            border-radius: 50%; 
            max-width: 900px;
        }
        .leader {
            text-align: center;
            flex-basis: 45%;
            padding: 20px;
            background: var(--white);
            box-shadow: 0 6px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
        .leader:hover {
            transform: translateY(-5px);
        }
        .leader img {
            width: 300px;
            height: 300px;
            object-fit: cover;
            /* Border-radius was missing */
            border-radius: 50%; 
            border: 5px solid var(--secondary-color);
            margin-bottom: 15px;
        }
        .leader p {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 1.1rem;
            margin: 0;
        }
            .leaders-container {
                flex-direction: column;
                gap: 30px;
            }
            .leader {
                flex-basis: 100%;
            }
            .leader img {
                width: 200px;
                height: 200px;
            }
        }
    
    
/*ABOUT US*/
.about-us{
    width: 80%;
    margin: auto;
    text-align: center;
    padding-top: 100px;
}
h1{
    font-size: 36px;
    font-weight: 600;
}
p{ 
    color: black;
    font-size: 16px;
    font-weight: 300;
    line-height: 22px;
    padding: 10px;

}
  .leaders-container {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px auto 60px;
            padding: 20px;
            max-width: 900px;
        }
.leader {
            text-align: center;
            flex-basis: 45%;
            padding: 5px;
            background: var(--blue);
            box-shadow: 0 6px 9px rgba(0,0,0,0.1);
            transition: transform 0.3s;
        }
.leader:hover {
            transform: translateY(-5px);
        }
.leader img {
            width: 300px;
            height: 300px;
            object-fit: cover;
            /* Border-radius was missing */
            border-radius: 50%; 
            border: 5px solid var(--secondary-color);
            margin-bottom: 15px;
          
        }
         .leader p {
            font-weight: 600;
            color: var(--primary-color);
            font-size: 1.1rem;
            margin: 0;
        }
        /*vision, mission and values*/
.statements{
    display: flex;
    justify-content: center;
    gap: 90px;
    margin: 40px auto 60px;
    padding: 20px;
}
.statements img{
    width: 400px;
    height: 600px;
}

/*NEWSLETTER*/

.headerr{
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(4,9,30,0.7)), url(Logos/newspaper3.jpg);
    background-position: center;
    background-size: cover;
    position: relative;
}
main h1{
    color: rgb(202, 197, 197);
    text-align: center;
}

     /* --- SLIDING MENU STYLES --- */
        #menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            z-index: 1050;
            display: none;
            transition: opacity 0.3s;
        }

        #mobile-menu-panel {
            position: fixed;
            top: 0;
            left: 0;
            width: 250px;
            height: 100vh;
            background-color: var(--primary-color);
            z-index: 1060;
            transform: translateX(-100%);
            transition: transform 0.3s ease-in-out;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
            padding-top: 20px;
            overflow-y: auto;
        }

        #mobile-menu-panel.open {
            transform: translateX(0);
        }
        
        /* Menu Content Styles */
        #mobile-menu-panel nav {
            display: flex;
            flex-direction: column;
            padding: 10px;
        }
        
        #mobile-menu-panel a {
            color: var(--white);
            padding: 12px 15px;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            border-radius: 6px;
            transition: background-color 0.2s;
            display: flex;
            align-items: center;
        }

        #mobile-menu-panel a:hover, #mobile-menu-panel a.active {
            background-color: var(--secondary-color);
            color: var(--white);
        }

        /* --- MAIN CONTENT CONTAINER STYLES (Used for most content pages) --- */
        main {
            padding: 20px;
            max-width: 1200px;
            margin: 20px auto;
        }

        /* ====================================
        NEWSLETTER SPECIFIC STYLES (Collapsible List)
        ==================================== */
        
        details {
            margin-bottom: 15px;
            background-color: var(--white);
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }
        /* ... (rest of newsletter styles remain the same) ... */
        summary {
            padding: 20px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            outline: none;
            color: var(--primary-color);
            background-color: royalblue;
            border-bottom: 2px solid var(--secondary-color);
            transition: background-color 0.2s;
            display: block; 
            user-select: none;
            border-radius: 8px;
        }
        
        
        summary::marker {
            content: "";
        }

        summary::before {
            content: "\25B6";
            margin-right: 15px;
            color: var(--accent-color);
            display: inline-block;
            transition: transform 0.2s;
        }
        
        details[open] > summary::before {
            content: "\25BC";
        }
        
        .newsletter-content {
            padding: 10px 20px 20px;
            border-top: 1px solid gold;
            color: white
        }

        .newsletter-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .newsletter-list li {
            padding: 10px 0;
            border-bottom: 1px dashed gold;
        }
        
        .newsletter-list li:last-child {
            border-bottom: none;
        }

        .newsletter-list a {
            color: var(--text-color);
            text-decoration: none;
            font-weight: 500;
            display: block;
            padding: 5px 0;
            transition: color 0.2s;
        }
        
        .newsletter-list a:hover {
            color: var(--secondary-color);
            text-decoration: underline;
        }
        
        .newsletter-list a::before {
            content: "\f0ed";
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            color: var(--accent-color);
            margin-right: 10px;
        }

        .description-text {
            text-align: center;
            margin-bottom: 40px;
            font-size: 1.3rem;
            color: gold;
        }


        /* Added new branding element */
        #main-branding {
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--primary-color);
            text-decoration: none;
            text-transform: uppercase;
            line-height: 1.2;
            margin-right: 10px;
        }

        /* Optional: Overlay to dim background when menu is open */
        #main-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1040;
            display: none;
            cursor: pointer;
        }
        #main-overlay.visible {
            display: block;
        }
        @media (min-width: 769px) and (max-width: 1100px) {
            main h1{
                text-align: center;
            }
        }
 /* ====================================
        CHAPLAINCY PAGE 
        ==================================== */
          .chaplains-container {
            display: flex;
            justify-content: center;
            gap: 40px;
            margin: 40px auto 60px;
            padding: 20px;
            max-width: 900px;
            background-color: white;
        }
.header-chaplain-only{
    min-height: 100vh;
    width: 100%;
    background-position: center;
    background-image: url(Logos/newspaper.jpg);
    background-size: cover;
    position: relative;
}
        .chaplaincy-content {
            /* Increased max-width for better page filling */
            max-width: 1100px; 
            margin: 20px auto 50px;
            padding: 30px;
            border-radius: 12px;
            /*background-color: white*/
            box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        }
        .chaplaincy-content h1{
            color: purple;
        }
        .chaplaincy-content h2{
            color: royalblue;
            font-size: 1.6rem;
            margin-top: 30px;
            border-left: 5px solid royalblue;
            padding-left: 15px;
            margin-bottom: 15px;
        }
        .chaplaincy-content p {
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 20px;
        }
        .chaplaincy-logos {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            margin: 30px 0;
            flex-wrap: wrap;
        }
        .chaplaincy-logos img {
            max-height: 100px;
            width: auto;
            border-radius: 50%;
            border: 3px solid var(--accent-color);
        }
        .service-list {
            list-style-type: none;
            padding: 0;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-top: 20px;
        }
        .service-list li {
            background: #f0f4ff;
            padding: 15px;
            border-radius: 8px;
            font-weight: 500;
            color: #333;
            border-left: 5px solid royalblue;
            box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        }
        

  /* ====================================
        GALLERY PAGE STYLING (Fixed for full width)
        ==================================== */

        #gallery-container {
            padding: 10px;
            margin-top: 20px;
        }

        .gallery-grid {
            /* Use a flexible grid that automatically adjusts columns */
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        }

        .gallery-item img {
            width: 100%;
            height: 250px; /* Fixed height for uniformity */
            object-fit: cover;
            display: block;
            transition: opacity 0.3s;
        }

        .gallery-item:hover img {
            opacity: 0.9;
        }

        .caption {
            padding: 15px;
            text-align: center;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-color);
        }

        /* ====================================
        MEDIA QUERIES 
        ==================================== */
        @media (max-width: 768px) {
            
            .gallery-grid {
                /* On small screens, keep it to one or two columns max */
                grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
            }
            .gallery-item img {
                 height: 200px;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1100px) {
            .gallery-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        
        /* ====================================
        BIBLE ACADEMY PAGE SPECIFIC STYLES
        ==================================== */
        
        /* Welcome Section Grid Layout */
        .academy-welcome-section {
            padding: 20px 0;
        }
.header-bible{
    min-height: 100vh;
    width: 100%;
    background-color: rgb(87, 128, 180);
    background-position: center;
    background-size: cover;
    position: relative;
}
        
        .welcome-grid {
            display: flex;
            gap: 30px;
            align-items: flex-start;
            margin-top: 30px;
            background-color: white;
            padding: 25px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        }

        .welcome-text {
            flex: 2;
            line-height: 1.8;
            font-size: 1.05rem;
        }

        .welcome-image {
            flex: 1;
            min-width: 250px;
        }

        .welcome-image img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
            object-fit: cover;
        }
        
        hr {
            border: 0;
            height: 1px;
            background-color: #ccc;
            margin: 40px auto;
            max-width: 90%;
        }

        /* Downloads/Resources Section */
        #academy-downloads {
            text-align: center;
        }

        .download-intro {
            font-style: italic;
            color: black;
            margin-bottom: 25px;
        }

        .resource-list {
            list-style: none;
            padding: 0;
            max-width: 650px;
            margin: 0 auto;
        }

        .resource-list li {
            margin-bottom: 15px;
        }

        .resource-list a {
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: royalblue;
            color: var(--white);
            text-decoration: none;
            padding: 15px 20px;
            border-radius: 8px;
            font-weight: 600;
            transition: background-color 0.3s;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15);
        }

        .resource-list a:hover {
            background-color: var(--secondary-color);
        }

        .resource-list .icon {
            font-size: 1.2rem;
            margin-right: 10px;
        }

        /* Committee Profiles Section */
        #doctrine-committee {
            text-align: center;
        }

        .committee-profiles-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 30px;
            margin-top: 30px;
        }

        .profile {
            background-color: royalblue;
            padding: 20px 15px;
            border-radius: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            transition: transform 0.2s;
            border-top: 5px solid var(--secondary-color);
        }

        .profile:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
        }



        .profile img {
            width: 100%;
            max-width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--primary-color);
            margin-bottom: 15px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .profile h3, .profile h4 {
            margin: 0;
            color: var(--primary-color);
            font-weight: 600;
        }

        .profile .title {
            color: black;
            font-size: 0.9rem;
            margin-top: 5px;
        }


        /* ====================================
        MEDIA QUERIES (Mobile responsiveness)
        ==================================== */
        @media (max-width: 900px) {
            .welcome-grid {
                flex-direction: column;
                align-items: stretch;
            }
            .welcome-image {
                min-width: 100%;
                order: -1; /* Place image on top on mobile */
                margin-bottom: 20px;
            }
        }
        
        @media (max-width: 768px) {
            /* Adjust padding for smaller header/nav */
            body { padding-top: 140px; }
            .nav-wrapper { top: 75px; } /* Adjust nav position */
            #church-header img { max-height: 60px; }
        

            .committee-profiles-grid {
                grid-template-columns: 1fr 1fr; /* 2 profiles per row */
                gap: 20px;
            }
            .profile img {
                max-width: 100px;
                height: 100px;
            }
        }
        
        @media (max-width: 480px) {
            body { padding-top: 130px; }
            .nav-wrapper { top: 65px; }
            h1 { font-size: 2rem; }
            
            .committee-profiles-grid {
                grid-template-columns: 1fr; /* 1 profile per row */
            }
        }
