
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*Headings: font-family: outfit, font-size: 64px, font-weight: 600;, line-height: 1.3, 
    /*headings (h2): font-weight: 600; font-size: 56px;*/
    /*headings (h3): font-weight: 600; font-size: 48px;*/
}

:root{
   --header-color: #376087;
}

.main-header{
   /* height: 100vh;*/
    width: 100%;
}

.main-header{
    width: 100%;
}

.navbar{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 20%;
    padding: 12px 60px;

    /* The Fixed "Bricks" */
    position: fixed;     /* Keeps it locked in one spot */
    top: 0;              /* Pins it to the very top */
    left: 0;             /* Pins it to the left edge */
    z-index: 1000;       /* Ensures it stays on top of images and text */
    background: #fff;    /* Ensures it's not see-through when scrolling */
}

/* Add this to the section immediately following your navbar */
.hero, .about-first-section, .leadership-page, .contact-section, .join-us-page, #donate-page-section{
    margin-top: 145px; /* Adjust this number to match the height of your navbar */
}

#media-page-section{
    margin-top: 100px;
}

.navbar .logo{
    height: 100px;
    width: 100px;
    border-radius: 50%;
    background: url(CGIM\ logo.png);
    background-position: center;
    background-size: cover;
}

nav ul{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
    font-size: 20px;
}

nav ul a{
    color: #376087;
    text-decoration: none;
}


/* This is the 'Lego piece' for the line */
.active-link {
    border-bottom: 2px solid #376087; 
    padding-bottom: 5px;
    font-weight: 600;
}


.navbar .donate-nav-btn a{
    width: fit-content;
    padding: 13px 35px;
    border-radius: 10px;
    background: #005a99;
    color: #fff;
    text-decoration: none;
    font-family: montserrat;
}

.navbar .donate-nav-btn a:hover{
    background: #42a5eb;
}

/* Hide hamburger on desktop */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #376087;
    border-radius: 3px;
    transition: 0.3s;
}

.hero{
    padding: 50px 150px 70px;
    background: linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0.1)),url(Hero\ IMG.png);
    background-position: center;
    background-size: cover;
    color: #fff;
    height: 80%;
    text-align: center;
}


.hero-text{
    width: 85%;
    margin: 0 auto;
}

.hero-text .hero-title{
    font-size: 60px;
    margin-bottom: 30px;
    font-weight: 600;
    font-family: libre Baskerville;
}

.hero-text p{
    font-size: 22px;
    margin-bottom: 30px;
    font-family: montserrat;
}

.hero-text .hero-btns{
    width: 45%;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
}


.join-btn, .watch-btn{
    width: fit-content;
    padding: 7px 45px;
    border-radius: 20px;
    background: #42a5eb;
    border: 1px solid #fff;
    font-size: 21px;
    cursor: pointer;
    font-family: inter;
}

.join-btn:hover{
    background: #e0e8f2;
    color: #000;
}

.watch-btn:hover{
    background: #e0e8f2;
    color: #000;
}

button{
    outline: none;
    border: none;
    background: #42a5eb;
    color: #fff;
    padding: 15px 35px;
    border-radius: 7px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

button:hover{
    background: #fff;
    color: #000;
}


h1{
    font-size: 56px;
    padding: 13px 0;
    border-top: 3px solid #376087;
    border-bottom: 3px solid #376087;
    text-align: center;
    width: 55%;
    margin: 0 auto;
    color: var(--header-color);
    font-family: libre Baskerville;
}

h2{
    font-size: 50px;
}

p{
    font-family: montserrat;
    line-height: 28px;
    font-weight: 500;
}

a{
    text-decoration: none;
}

.hero-btns a{
    color: #fff;
}

.row{
    display: flex;
}


/*----------------------------About Section-------------------------*/
.about-section{
    padding: 30px 0 60px;
    background: linear-gradient(to top, #f3f9fc, #149fdb);
    color: #fff;
}

.about-section h1{
    margin-bottom: 30px;
    border-bottom: 3px solid #fff; 
    border-top: 3px solid #fff; 
    color: #fff;
}

.about-section p{
    width: 60%;
    text-align: center;
    margin: 0 auto 37px;
    font-size: 17px;
}

.about-section button{
    margin: 0 auto;
}


/*----------------------------Leadership Section-------------------------*/
.leadership-section{
    padding: 40px 30px 70px;
    background-image: url(Home\ About\ background.png);
    background-position: center;
    background-size: cover;
}

.leadership-section h1{
    margin-bottom: 60px;
}

.leadership-section .col1{
    padding: 40px 70px 0;
}

.leadership-section .col1, .leadership-section .col2{
    flex-basis: 50%;
}

.leadership-section .col1 p{
    padding: 0 0 40px; 
    font-size: 20px;
}

.leadership-section .col1 button{
    margin-left: 100px;
}

.leadership-section .col1 button:hover{
    background: #00274d;
    color: #fff;
}

.leadership-section .col2 .leader-img{
    height: 500px;
    width: 90%;
    background: url(Home\ about\ pastor.jpeg);
    background-position: center;
    background-size: cover;
}

/*----------------------------Sermons Section-------------------------*/

.sermons-section{
    background: var(--primary-color);
    padding: 50px 37px;
}

.sermons-section h1{
    margin-bottom: 70px;
}

.sermons-section .row{
    gap: 30px;
    justify-content: center;
}

.homepage-sermon{
    width: 40%;
}

.homepage-sermon-video{
    height: 300px;
    width: 100%;
    margin-bottom: 20px;
}


.homepage-sermon-video iframe {
    width: 100%;
    height: 100%;
}


.homepage-sermon .homepage-sermon-title{
    font-size: 30px;
    margin-bottom: 3px;
    color: #376087;
}

.homepage-sermon-date{
    font-size: 20px;
    margin-bottom: 30px;
}

.sermons-section .btn{
    margin: 0 auto;
}

.sermons-section .btn:hover{
    background: #00274d;
    color: #fff;
}


/*----------------------------Donate Section-------------------------*/

.donate-section{
    padding: 50px 0 40px;
    background: linear-gradient(#f3f9fc, #ddf3ff);
}

.donate-section h1{
    margin-bottom: 40px;
    font-size: 54px;
    width: 70%;
}

.donate-section p{
    font-size: 20px;
    width: 45%;
}

.donate-paragraph{
    margin:0 auto 37px;
}

.donate-section .row{
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.donate-section .donation-box{
    height: 240px;
    width: 32%;
    background: #fff;
    padding: 30px 60px;
}

.donation-box .payment-method{
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method .payment-logo{
    height: 40px;
    width: 80px;
}

.payment-logo.zelle{
    background: url(zelle\ img.png);
    background-position: center;
    background-size: cover;
}

.payment-logo.cashapp{
    background: url(Cashapp\ img.png);
    background-position: center;
    background-size: cover;
}

.payment-brand-name{
    font-size: 20px;
}

.payment-contact{
    font-size: 18px;
    margin: 0 0 25px 30px;
}

.donate-btn{
    height: 50px;
    width: fit-content;
    padding: 20px 40px;
    border: 1px solid black;
    outline: none;
    background: #efefef;
    border-radius: 0;
    color: #000;
    font-size: 16px;
    margin-left: 20px;
}

.invite{
    margin: 0 auto 0;
    text-align: center;
}

/*----------------------------Join Us Section-------------------------*/
.join-us-section{
    padding: 50px 70px;
    background: url(Home\ Worship\ with\ us.jpeg);
    background-position: center;
    background-size: cover;
}

.join-us-section h1{
    margin-bottom: 40px;
}

.join-us-section .row{
    justify-content: space-around;
    margin-bottom: 25px; 
}

.join-us-section .homepage-service-times{
   /* flex-basis: 50%;*/
   /* margin-left: 70px;*/
}

.join-us-section .homepage-location{
   /* flex-basis: 50%;*/
}

.join-us-section h2{
    margin-bottom: 25px;
    color: var(--header-color);
}

.join-us-section p{
    font-size: 20px;
}

.join-us-section .homepage-service-times p:first-of-type{
    margin-bottom: 7px;
}

.join-us-section .homepage-location p:first-of-type{
    margin-bottom: 7px;
}

.join-us-section .homepage-map{
    width: 92%;
    height: 300px;
    background: #efefef;
    margin: 0 auto;
}


/*----------------------------Gallery Section-------------------------*/
.gallery-section{
    padding: 50px 0 70px;
}

.gallery-section h1{
    margin-bottom: 30px;
}

.gallery-row{
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.gallery-row .gallery-col-2{
    padding-top: 50px;
}

.gallery-img{
    height: 480px;
    width: 510px;
    background: #efefef;
    margin-bottom: 12px;
    border-radius: 10px;
}

.home-gallery1{
    background: url(Home\ Gallery\ 4\ pastors\ .jpeg);
    background-position: center;
    background-size: cover;
}
.home-gallery2{
    background: url(Home\ Gallery\ Group\ pic.jpeg);
    background-position: center;
    background-size: cover;
}
.home-gallery3{
    background: url(Pastor\ Couple\ whites\ homepage.jpeg);
    background-position: center;
    background-size: cover;
}
.home-gallery4{
    background: url(Gallery\ Pastor\ Couple.jpeg);
    background-position: center;
    background-size: cover;
}

.gallery-section .btn{
    margin: 0 auto;
}

.gallery-section .btn:hover{
    background: #00274d;
    color: #fff;
}

/*----------------------------Testimonials Section------------------------*/
.testimonials-section{
    padding: 100px 50px;
    display: flex;
    gap: 100px; 
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(Screen\ Shot\ 2025-09-23\ at\ 11.54.57\ AM.png);
    background-position: center;
    background-size: cover;
    text-align: center;
}

.testimonials-section p{
    font-size: 20px;
    color: #fff;
}

/*.testimonials-section .testimonial:last-of-type{
    width: 200px;
} */

/*----------------------------Socials Section-------------------------*/
.socials{
    padding: 50px 100px 50px 40px;
    background: #005a99;
    color: white;
    display: flex;
    justify-content: space-between;
}

.socials .follow-us{
    font-weight: 600;
    font-size: 50px;
    font-family: libre Baskerville;
}

.socials .social-icons{
    display: flex;
    align-items: center;
    gap: 40px;
}


.socials .social-icons i{
    font-size: 35px;
}

.socials .social-icons a{
    color: #fff;
}

/*----------------------------footer-------------------------*/

footer{
    padding: 60px 50px 40px;
    width: 100%;
    display: flex;
    background: #00274d;
    color: #fff;
}

.footer-left{
    flex-basis: 30%;
}

.footer-right{
    flex-basis: 70%;
}

footer h3{
    font-size: 25px;
    margin-bottom: 40px;
    font-family: Libre Baskerville;
}

.footer-left p{
    font-size: 18px;
    margin-bottom: 30px;
}

.footer-socials{
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 70px;
}

.footer-socials i{
    font-size: 40px;
}

.footer-socials a{
    color: #fff;
}

.footer-right{
    /*padding-left: 200px;*/
    text-align: center;
}

.footer-right h3{
    font-size: 25px;
    font-family: libre Baskerville;
}

.footer-right p{
    font-size: 18px;
    margin-bottom: 20px;
}



/* This kicks in when the screen is 768px wide or smaller (Tablets/Phones) */
@media (max-width: 768px) {

    /* 1. Global Headlines & Layout */
    h1 {
        font-size: 32px; /* Smaller for mobile */
        width: 90%;      /* Wider so it doesn't squash text */
    }
    
    .row, .gallery-row, footer, .socials, .testimonials-section {
        flex-direction: column; /* This is the magic: stacks side-by-side items */
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    /* 2. Navbar */
    
   /* .navbar {
        padding: 20px;
        flex-direction: column;
        height: auto;
    }
    
    nav ul {
        flex-direction: column; /* Stacks menu items 
        gap: 15px;
        margin: 20px 0;
    } */

 
        .navbar {
            padding: 15px 30px;
            position: relative; /* Keeps the menu anchored correctly */
        }
    
        .hamburger {
            display: flex; /* Show the icon on mobile */
            order: 2;      /* Positions it nicely */
        }

        /* Adjust the "push-down" margin for the rest of your page */
    .hero, .about-first-section, #media-page-section, .leadership-page, .join-us-page, .contact-section {
        margin-top: 10px; /* Matches the new slim header height */
    }
    
        .navbar .logo {
            order: 1;
            height: 60px; /* Smaller logo for mobile */
            width: 60px;
        }
    
        .donate-nav-btn {
            display: none; /* Hide the extra button to save space on mobile */
        }
    
        /* Hide the menu by default on mobile */
        nav {
            display: none; 
            width: 100%;
            position: absolute;
            top: 100%;
            left: 0;
            background: #fff;
            padding: 20px 0;
            box-shadow: 0 5px 10px rgba(0,0,0,0.1);
            z-index: 1000;
            order: 3;
        }
    
        /* This class will be toggled by JavaScript */
        nav.active {
            display: block;
        }
    
        nav ul {
            flex-direction: column;
            gap: 20px;
        }


    /* 3. Hero Section */
    .hero {
        padding: 40px 20px;
    }
    
    .hero-text {
        width: 100%;
    }
    
    .hero-text .hero-title {
        font-size: 30px;
    }
    
    .hero-text .hero-btns {
        width: 100%;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    /* 4. Sections (About & Leadership) */
    .about-section p, 
    .leadership-section .col1, 
    .leadership-section .col2 {
        width: 90%;
        flex-basis: 100%;
        padding: 20px;
    }
    
    .leadership-section .col1 button {
        margin: 0 auto; /* Centers the button */
    }

    /* 5. Sermons & Donation Boxes */
    .homepage-sermon, 
    .donate-section .donation-box {
        width: 90%; /* Boxes now take full width */
    }
    
    .donate-section h1 {
        width: 98%;
        font-size: 32px;
    }

    .donate-section p{
        width: 90%;
    }

    /* 6. Gallery */
    

       /* 1. Force the columns to expand to full width */
        .gallery-row, .gallery-col-1, .gallery-col-2 {
            display: flex;
            flex-direction: column;
            width: 100%;
            padding-top: 0; /* Removes that desktop gap at the top */
        }
    
        .gallery-section h1{
            margin-top: 20px;
            margin-bottom: 70px;
        }
        /* 2. Force the images to have a physical size */
        .gallery-img {
            width: 100% !important;   /* Use !important to override any desktop width */
            height: 350px !important;  /* Physical height so it's not invisible */
            margin-bottom: 15px;
            background-size: cover;
            background-position: center;
            display: block;
        }
    
        .home-gallery3{
            background-position: top;
        }
        /* 3. Center everything in the gallery section */
        .gallery-section {
            padding: 40px 15px;
            text-align: center;
        }

        .gallery-row .gallery-col-2{
            padding-top: 0;
        }

    /* 7. Footer */
    .footer-left, .footer-right {
        flex-basis: 100%;
        text-align: center;
    }
    
    .footer-right {
        padding-top: 40px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .footer-socials{
        justify-content: center;
    }
}


/*----------------------------about page-------------------------*/
/*----------------------------about page-------------------------*/
/*----------------------------about page-------------------------*/

.about-first-section, .about-second-section{
    display: flex;
    font-size: 18px;
}

.about-first-section h1{
    width: 100%;
}

.about-first-section{
    background: linear-gradient(135deg, #104be0, #4ff1ff);
    color: #fff;
    padding: 70px 30px;
}

.about-first-section .about-first-text{
    flex-basis: 50%;
    padding: 0 100px 0 0;
}

.about-first-text span{
    display: block;
    margin-bottom: 5px;
}

.about-first-section .about-first-image{
    flex-basis: 50%;
    margin-top: 40px;
}


.about-page-img{
    height: 400px;
   /* width: 90%; */
    width: 550px;
    border-radius: 10px;
}

.first-img{
    background: url(about\ page\ img1.jpeg);
    background-position: center;
    background-size: cover;
}

.second-img{
    background: url(About\ Page\ img2.jpeg);
    background-position: center;
    background-size: cover;
}

.about-first-section h1{
    margin-bottom: 30px;
    font-size: 50px;
    border-bottom: 1px solid #fff;
    border-top: none;
    border-left: none;
    border-right: none;
    color: #fff;
}

.about-second-section{
    padding: 25px 70px 40px 30px;
    background: linear-gradient(135deg, #104be0, #4ff1ff);
    color: #fff;
}

.about-second-section .about-second-text{
    flex-basis: 50%;
    margin-top: 30px;
}

.about-second-section .about-second-image{
    flex-basis: 50%;
}

.about-testimonial-container{
    display: flex;
    height: 450px;
}

.about-testimonial-container .about-testimonial-img{
    flex-basis: 50%;
    background: url(about\ testimonial\ background.png);
    background-position: center;
    background-size: cover;
}

.about-testimonial-text{
    flex-basis: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #005a99;
    padding: 0 70px;
    color: #fff;
    font-size: 20px;
}

.about-testimonial{
    margin: 70px 30px 70px;
}


@media (max-width: 768px) {
    /* ... keep previous homepage mobile code ... */

    /* 1. Stack the About sections */
    .about-first-section, 
    .about-second-section,
    .about-testimonial-container {
        flex-direction: column;
        padding: 40px 20px; /* Thinner padding for small screens */
        height: auto;       /* Let the content define the height */
    }

    /* 2. Fix the "550px" Image problem */
    .about-page-img {
        width: 100% !important; /* Forces image to stay inside the phone screen */
        height: 300px;         /* Shorter height for mobile */
        margin: 0 auto 20px;   /* Centers the image and adds bottom space */
    }

    /* 3. Adjust the Text containers */
    .about-first-section .about-first-text,
    .about-second-section .about-second-text {
        flex-basis: 100%;
        padding: 0;            /* Remove the 100px desktop right padding */
        text-align: center;
    }

    /* 4. The About Testimonial specifically */
    .about-testimonial {
        margin: 20px 10px;     /* Reduce the large 70px outer margin */
    }

    .about-testimonial-container .about-testimonial-img {
        flex-basis: auto;
        height: 250px;         /* Give the background image a fixed height to show up */
        width: 100%;
    }

    .about-testimonial-text {
        flex-basis: auto;
        padding: 40px 20px;    /* Give the text some breathing room */
        font-size: 18px;
    }

    /* 5. Flip the order of the second section */
    /* On desktop, image is left. On mobile, we might want text first */
    .about-second-section {
        display: flex;
        gap: 25px;
        flex-direction: column-reverse; /* Put text above image for better flow */
    }
}

/*----------------------------Media page-------------------------*/
.media-section{
    padding: 30px 0 70px;
}

.media-section-sermons{
    padding: 50px 40px;
    display: flex;
    gap: 70px;
    flex-wrap: wrap;
    justify-content: center;
    background: #eef8ff;
}


.sermons{
    width: 470px;
    /*height: 380px;*/
}

.sermon-video{
   /*width: 380px;*/
    height: 270px;
    width: 100%;
    margin-bottom: 10px;
}

.sermon-video iframe {
    width: 100%;
    height: 100%;
}


.sermon-title{
    margin-bottom: 5px;
    color: #376087;
    font-size: 30px;
    font-weight: 600;
}

.sermon-date{
    font-size: 20px;
}


.media-page-gallery{
    padding: 30px 20px 50px;
}

.media-page-gallery h1{
    margin-bottom: 50px;
}

.gallery-collection{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.media-gallery-img{
    height: 360px;
    width: 400px;
}

.media-gallery-img img{
    height: 100%;
    width: 100%;
    /*object-fit: contain;
    object-position: center;*/
}

.img11 img{
    object-position: top;
    object-fit: cover;
}

.img9 img{
    object-position: top;
    object-fit: cover;
}


@media (max-width: 768px) {
    /* ... keep previous code ... */

    /* 1. Sermons Section */
    .media-section-sermons {
        padding: 40px 15px; /* Less side padding so videos can be larger */
        gap: 40px;          /* Space between stacked videos */
    }

    .sermons {
        width: 90% !important; /* Forces each sermon to fill the phone width */
        max-width: 500px;       /* Keeps it from looking too stretched on tablets */
    }

    .sermon-video {
        height: 220px;          /* Shorter height for mobile screens */
    }

    .sermon-title {
        font-size: 24px;        /* Slightly smaller text for titles */
    }

    /* 2. Media Gallery Section */
    .gallery-collection {
        gap: 10px;              /* Tighter gap for mobile */
    }

    .media-gallery-img {
        width: 100% !important; /* Images take full width on phone */
        height: 300px;          /* Uniform height */
    }

    .media-gallery-img img {
        object-fit: cover;      /* This is key: it prevents images from stretching/looking squashed */
        object-position: center;
    }

    .img11 img{
        object-position: top;
        object-fit: cover;
    }
    
    .img9 img{
        object-position: top;
        object-fit: cover;
    }

    .img4 img{
        object-position: top;
        object-fit: cover;
    }
    .img5 img{
        object-position: top;
        object-fit: cover;
    }
    .img7 img{
        object-position: top;
        object-fit: cover;
    }
    .img9 img{
        object-position: top;
        object-fit: cover;
    }

    .img10 img{
        object-position: top;
        object-fit: cover;
    }
    
}


/*----------------------------Leadership page-------------------------*/
/*----------------------------Leadership page-------------------------*/
/*----------------------------Leadership page-------------------------*/

.leadership-page{
    padding: 50px 0 0;
    background: #eef8ff;
}

.leadership-page h1{
    border-top: none;
    border-bottom: 3px solid black;
    margin-bottom: 80px;
    font-size: 56px;
    width: 80%;
}

.leadership-bio{
    display: flex;
  /*  align-items: center;*/
    padding-bottom: 70px;
}

.leadership-bio .leader-img-section{
    flex-basis: 50%;
}

.leader-img-section .leader-img{
    height: 450px;
    width: 500px;
    background: url(Apostle\ Ransford\ Main\ pic.jpeg);
    background-position: top;
    background-size: cover;
    margin: 0 auto;
    border-radius: 20px;
}

.leader-bio-text{
    flex-basis: 50%;
    padding: 0 50px 0 0;
}

.leadership-testimonial {
    text-align: center;
    padding: 70px 25%;
    background: #fff;
    font-size: 22px;
}

.leader-bio-text p{
   margin: 0;
   font-size: 18px;
}


@media (max-width: 768px) {
    /* ... keep previous code ... */

    /* 1. Reset the Header */
    .leadership-page h1 {
        font-size: 32px;
        width: 90%;
        margin-bottom: 40px;
    }

    /* 2. Stack the Image and Bio */
    .leadership-bio {
        flex-direction: column;
        padding-bottom: 40px;
    }

    .leadership-bio .leader-img-section, 
    .leader-bio-text {
        flex-basis: 100%;
        padding: 0 20px; /* Give text some side padding on mobile */
        text-align: center;
    }

    /* 3. Fix the Image size */
    .leader-img-section .leader-img {
        width: 100% !important; /* Forces it to fit the phone width */
        max-width: 350px;       /* Keeps it from becoming too tall/huge */
        height: 400px;
        margin-bottom: 30px;
    }

    /* 4. Fix the Testimonial */
    .leadership-testimonial {
        padding: 40px 20px;     /* Change 25% padding to a flat 20px */
        font-size: 18px;
    }
}

/*----------------------------Join-us page-------------------------*/
/*----------------------------Join-us page-------------------------*/
/*----------------------------Join-us page-------------------------*/

.join-us-header{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 100px 0;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),url(Join\ Us\ Background.png);
    background-position: center;
    background-size: cover;
   
}

.join-us-header h1{
    border: none;
    color: #fff;
    width: 90%; 
    font-size: 54px;
}

.join-us-list{
    padding: 40px 0 80px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    background: linear-gradient(135deg, #104be0, #4ff1ff);
    color: #fff;
}


.join-us-list ul{
    margin-bottom: 50px;
}

.join-us-list ul li{
    list-style: none;
    margin-bottom: 25px;
    font-family: montserrat;
}


.join-us-list h3{
    padding: 0 10%;
    font-family: montserrat;
}

/*------------------Contact page------------------*/
/*------------------Contact page------------------*/
/*------------------Contact page------------------*/

.contact-section{
    padding: 70px 0 0;
    background: #f3f9fc;
}

.contact-section h1{
    border: none;
    font-size: 52px;
    font-weight: 500;
    text-align: left;
    margin-left: 20px;
    width: 80%;
}

.contact-section .contact-us{
    display: flex;
    margin-bottom: 70px;
    background: #f3f9fc;
    padding: 0 30px;
}

.contact-us .contact-text{
    flex-basis: 50%;
    padding-right: 50px;
}

.contact-text #contact-header-subtext{
    margin-bottom: 30px;
}

.contact-info h3{
    margin-bottom: 15px;
    font-size: 23px;
}

.leaders-contact{
    margin-bottom: 35px;
}

.leaders-contact p{
    margin-bottom: 10px;
}

.contact-us .contact-form{
    flex-basis: 50%;
    padding: 50px 50px;
}

.contact-us p{
    font-size: 18px;
}

.contact-form form{
    display: flex;
    flex-direction: column;
}

.contact-form form label{
    margin-bottom: 2px;
}

.contact-form form input{
    margin-bottom: 20px;
    height: 50px;
    border: 1px solid gray;
    outline: none;
    border-radius: 7px;
    padding-left: 7px;
}


.contact-form form #input-message{
    margin-bottom: 30px;
}



.contact-form form .input-btn{
    width: fit-content;
    padding: 20px 50px;
    border-radius: 30px;
    background: #005a99;
}

.contact-form form .input-btn:hover{
    color: #fff;
}


.contact-section .location{
    display: flex;
    background: #fff;
    padding: 40px 30px 90px;
} 

.contact-section .location .location-info{
    flex-basis: 50%;
}

.location p{
    font-size: 18px;
}

.location-info h1{
    margin-bottom: 15px;
}

.location-info p:first-of-type{
    margin-bottom: 25px;
}

.location .location-map-column{
    flex-basis: 50%;
    padding: 40px 0 0;
}


.location-address{
    margin-bottom: 35px;
}

.location-hours p:first-of-type{
    margin-bottom: 13px;
}

.location-map{
    height: 370px;
    width: 90%;
    background: #efefef;
}

.location h3{
    font-size: 23px;
    margin-bottom: 10px;
}


@media (max-width: 768px) {
    /* ... keep all previous code ... */

    /* 1. Stack the Contact and Location sections */
    .contact-section .contact-us, 
    .contact-section .location {
        flex-direction: column;
        padding: 40px 20px;
        margin-bottom: 0;
    }

    /* 2. Adjust Headlines for mobile flow */
    .contact-section h1 {
        font-size: 36px;
        text-align: center;
        width: 100%;
        margin-left: 0;
    }

    /* 3. Give the Form and Text full width */
    .contact-us .contact-text, 
    .contact-us .contact-form,
    .contact-section .location .location-info,
    .location .location-map-column {
        flex-basis: 100%;
        padding: 0;
        text-align: center;
    }

    /* 4. Spacing out the sections */
    .contact-text #contact-header-subtext {
        margin-bottom: 40px;
    }

    .contact-us .contact-form {
        padding-top: 40px; /* Space between text and the form */
    }

    /* 5. Center the Form Button */
    .contact-form form .input-btn {
        margin: 0 auto;
        width: 100%; /* Make button easy to tap with a thumb */
    }

    /* 6. Fix the Map */
    .location-map {
        width: 100%;
        height: 300px;
        margin-top: 20px;
    }
}

/* Lightbox Background */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Above everything else */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

/* The actual image inside the lightbox */
.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border: 3px solid #fff;
    border-radius: 5px;
}

/* The Close Button */
.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 60px;
    font-weight: bold;
    cursor: pointer;
}

/* Change cursor to pointer for gallery images to show they are clickable */
.gallery-img, .media-gallery-img img {
    cursor: pointer;
}

.prev-lightbox, .next-lightbox {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    user-select: none;
    transform: translateY(-50%);
}

.prev-lightbox { left: 10px; }
.next-lightbox { right: 10px; }

.prev-lightbox:hover, .next-lightbox:hover {
    color: #42a5eb; /* Uses your church's blue color */
}