body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Desktop Header Styles */
.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8); /* Black with 80% opacity */
    position: fixed; /* Fixing header to the top */
    top: 0;
    left: 0;
    width: 100%;
    height: 40px; /* Set a fixed height for the navbar */
    z-index: 1000; /* High z-index to stay above other elements */
}

.desktop-header .logo {
    margin-left: 80px; /* Adjust left margin for logo */
    margin-right: 100px; /* Adjust right margin for logo */
}

.desktop-header .logo img {
    height: 40px; /* Adjust height for logo image */
}

.main-nav {
    flex-grow: 1; /* Allows the nav to grow and take up available space */
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin-right: 5px; /* Adjust right margin for menu bar */
}

.main-nav ul li {
    margin-left: 20px;
    position: relative; /* Required for positioning dropdown */
}

/* Dropdown Menu Styles */
.main-nav .dropdown .dropdown-menu {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Positioned below the parent */
    left: 0;
    background-color: rgba(0, 0, 0, 0.9); /* Dark background for dropdown */
    min-width: 200px; /* Minimum width */
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); /* Dropdown shadow */
    z-index: 1;
    list-style: none;
    padding: 0;
    margin: 0;
}

.main-nav .dropdown .dropdown-menu li {
    margin: 0;
}

.main-nav .dropdown .dropdown-menu li a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Show dropdown on hover */
.main-nav ul li:hover .dropdown-menu {
    display: block;
}

/* Optional: Add a hover effect for dropdown items */
.main-nav .dropdown .dropdown-menu li a:hover {
    background-color: #575757; /* Darker background on hover */
}

.main-nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
    position: relative; /* Required for the :after pseudo-element */
    transition: transform 0.3s ease, color 0.3s ease; /* Add transition for smooth animation */
}

.main-nav ul li a:hover {
    transform: translateY(5px); /* Bowing effect by moving down */
    color: #f1c40f; /* Change color on hover for added effect */
}

/* Underscore Line Hover Effect for Menu Items */
.main-nav ul li a:hover::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px; /* Adjust the distance from the text */
    height: 2px; /* Thickness of the line */
    background-color: #f1c40f; /* Color of the underline */
    transform: scaleX(1); /* Full width line on hover */
    transition: transform 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px; /* Adjust the distance from the text */
    height: 2px; /* Thickness of the line */
    background-color: #f1c40f; /* Color of the underline */
    transform: scaleX(0); /* Start with no line (scaleX 0) */
    transition: transform 0.3s ease;
}

/* Style for the "English" Menu Item */
.menu-english {
    color: lightgreen; /* Light green color for the "English" menu item */
}

/* Ministry Section Styles */
.ministry-section {
    padding: 100px 0;  /* Controls the top and bottom padding of the entire section */
    background-color: #f5f5f5;
    text-align: center;
}

.ministry-section .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;  /* Ensures wrapping on smaller screens */
    gap: 20px;        /* Controls spacing between cards (horizontal & vertical) */
    max-width: 1200px; /* Center content within max width */
    margin: 0 auto;    /* Center container */
}

.ministry-item {
    flex-basis: 30%;  /* Each card takes 30% of the row */
    background-color: #fff;
    padding: 10px;    /* Controls the inner padding of each card (content area) */
    margin: 0px;     /* Controls the outer margin of each card */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease; /* Smooth hover effect */
}

.ministry-item h3 {
    font-size: 1.2em;
    margin-bottom: 10px; /* Controls the space below the heading */
}

.ministry-item img {
    width: 100%;
    height: auto;
    margin-bottom: 15px; /* Controls the space below the image */
    border-radius: 8px;
}

.ministry-item p {
    font-size: 1em;
    color: #333;
    margin-bottom: 10px; /* Controls the space below paragraphs */
}

.ministry-item a {
    display: inline-block;
    margin-top: 10px;    /* Controls the space above the "Read More" link */
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.ministry-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Hover effect for ministry items */
.ministry-item:hover {
    transform: translateY(-10px); /* Slight lift on hover */
}

.welcome-section {
    padding: 10px 20px;
    background-color: #fff;
    text-align: center;
}

.welcome-section h2 {
    font-size: 2em;
    color: #333;
}

/* Responsive Design: Ensure the cards stack nicely on smaller screens */
@media (max-width: 768px) {
    .ministry-item {
        flex-basis: 100%;  /* Full width on smaller screens */
    }
    
}

@media (max-width: 1024px) {
    .ministry-item {
        flex-basis: 100%;  /* Two cards per row on medium-sized screens */
    }
}

/* Hover effect for ministry items */
.ministry-item:hover {
    transform: translateY(-10px); /* Slight lift on hover */
}

.profile-section {
    position: relative;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 40px;
    background-image: url('../images/banner.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 775px;
    overflow: hidden;
}

.profile-overlay {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    width: 40%;
    padding: 40px;
    transition: transform 0.5s ease; /* Smooth transition for transform */
}

.profile-text {
    flex: 1;
    color: white;
    padding-right: 20px;
    max-width: 100%;
}

.profile-text h2 {
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.profile-text p {
    font-size: 18px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    color: white;
    background-color: #000;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.read-more-btn:hover {
    background-color: #555;
}

.profile-image {
    flex: 1;
    max-width: 40%;
    text-align: right;
}

.profile-image img {
    width: 100%;
    border-radius: 8px;
    max-width: 300px;
}

.profile-overlay.turn-right {
    transform: rotateY(20deg); /* Rotate 20 degrees on Y-axis */
}

.profile-overlay.turn-left {
    transform: rotateY(-20deg); /* Rotate -20 degrees on Y-axis */
}

.profile-overlay.turn-up {
    transform: rotateX(20deg); /* Rotate 20 degrees on X-axis */
}

.profile-overlay.turn-down {
    transform: rotateX(-20deg); /* Rotate -20 degrees on X-axis */
}

.giving-section {
    position: relative;
    width: 100%;
    height: 775px; /* Adjust height as needed */
    overflow: hidden;
}

.giving-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.giving-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: none; /* Hide all slides by default */
}

.giving-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure image covers the container */
}

.giving-section h2 {
    font-size: 2em;
    color: #faf8f8;
    margin-top: -0px;
    margin-bottom: 10px;
}

.giving-text {
    position: absolute;
    bottom: 10%;
    left: 50%;
    line-height: 1.0;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 2em;
    background-color: rgba(0, 0, 0, 0.5); /* Background for text */
    padding: 30px;
}

.giving-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #FFD700;
    color: black;
    text-decoration: none;
    font-weight: normal;
    margin-top: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}

.giving-btn:hover {
    background-color: #FFA500;
}

.fade {
    animation: fadeEffect 5s infinite; /* Set the duration for the fade effect */
}

.event-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 70px;
    background-color: #f0f0f0;
    min-height: 200px;
}

.event-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.event-list {
    width: 60%;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    padding: 20px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #d32f2f;
    padding: 30px;
    color: white;
    margin-right: 20px;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.event-date .month {
    font-size: 1rem;
    text-transform: uppercase;
}

.event-details {
    flex-grow: 1;
}

.event-share img {
    width: 20px;
    margin-left: 5px;
}

.event-timer {
    display: flex;
    justify-content: space-around;
    width: 35%;
    background-color: #263238;
    padding: 20px;
    align-items: center;
    color: white;
    border-radius: 10px;
}

.time-box {
    text-align: center;
}

.time-box span {
    display: block;
    font-size: 3rem;
    font-weight: bold;
}

.time-box p {
    margin-top: 5px;
    font-size: 1rem;
}

@keyframes fadeEffect {
    0%, 100% { opacity: 1; }
    50% { opacity: 5; }
}

.marquee-section {
    width: 100%;
    overflow: hidden; /* Hides content that goes outside of the box */
    position: relative;
    background-color: #f5f5f5;
    padding: 20px 0;
}

.marquee {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    white-space: nowrap;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-content {
    display: flex;
    flex: none; /* Ensure that the content doesn't shrink */
}

.marquee-content img {
    width: 200px; /* Adjust the size of the images */
    height: auto;
    margin-right: 20px;
    border-radius: 10px; /* Optional: to make the images rounded */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Optional: add shadow to images */
}

.iphone-section {
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        linear-gradient(135deg, rgba(44, 145, 217, 0.8), rgba(27, 69, 143, 0.8)), /* Gradient with transparency */
        url('../images/imageChView.JPG'); /* Add your image */
    background-size: cover; /* Ensure the background image covers the section */
    background-position: center;
    padding: 50px 0;
    min-height: 600px;
    color: #fff;
    text-align: right;
    position: relative;
}


.iphone-container {
    display: flex;
    align-items: center;
    background: transparent;

    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.text-content {
    flex: 1;
    max-width: 50%;
}

.text-content a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.text-content a:hover {
    background-color: #bb8955; /* Change to a different color on hover */
    transform: scale(1.05); /* Slightly enlarge the button */
    color: #fff; /* Ensure the text stays white */
}

.text-content h1 {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 20px;
}

.text-content p {
    font-size: 1.5rem;
    background-color: #fff;
    color: #000;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    width: fit-content;
    margin-top: 20px;
    align-items: right;
}

.image-content {
    flex: 1;
    display: flex;
    /* justify-content: flex-end; */

}


.image-content img {
    max-width: 100%;
    height: 100%;
    background: transparent;
    border-radius: 20px; /* Optional: Rounded edges */
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);  */
    /* Shadow for phones */
    /* display: block;  */
    /* width: 100%;  */
    /* height: auto;  */
    /* transition: transform 0.2s ease;  */
    transform-style: preserve-3d;
}

.image-content img:hover {
    transition: transform 0.2s ease;
}


/* Define the keyframe for smooth continuous scrolling */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}




/* Responsive Design: Ensure the cards stack nicely on smaller screens */
@media (max-width: 768px) {
    .ministry-item {
        flex-basis: 100%;  /* Full width on smaller screens */
        margin-bottom: 20px; /* Adds margin between stacked items */
    }
}

@media (max-width: 1024px) {
    .ministry-item {
        flex-basis: 100%;  /* Two cards per row on medium-sized screens */
        margin-bottom: 20px; /* Adds margin between items on two-card rows */
    }
    .profile-overlay {
        width: 100%;
        padding: 20px;
    }
    .profile-text {
        padding: 8px;
        max-width: 100%;
    }
    .profile-text h2 {
        font-size: 32px;
    }

    .profile-text p {
        font-size: 16px;
    }
    .profile-section {
    background-size: cover;
    background-position: right;
    min-height: 75px;
    }
    .event-container, .event-item {
        flex-direction: column;
    }
    
    .event-list {
        width: fit-content;
    }
    
    .event-timer {
        width: 91%;
        font-size: 0.3rem !important;
        justify-items: center;
    }
    .event-section {
        padding: 45px;
    }
    .text-content h1 {
        font-size: 2rem;
    }
    .text-content a {
        padding: 5px 10px;
        font-size: 12px;
    }
    .time-box{
        padding: 8px 12px;
    }
    .time-box p {
        font-size: 0.6rem;
    }
    .time-box span {
        font-size: 2rem;
    }
    .iphone-section {
        min-height: 230px;
    }
    .image-content img  {
        width: 90%;
    }
    
    
}

/* Blog Section Styles */
.blog-section {
    padding: 100px 20px;
    background-color: #fff;
    text-align: center;
}

.blog-section h2 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 40px;
}

.blog-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0px;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-item {
    flex-basis: 30%;
    background-color: #f5f5f5;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.blog-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.blog-item h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.blog-item p {
    font-size: 1em;
    color: #666;
    margin-bottom: 15px;
}

.blog-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.blog-item a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Hover effect for blog items */
.blog-item:hover {
    transform: translateY(-10px);
}

/* Responsive Design: Ensure the blog items stack nicely on smaller screens */
@media (max-width: 768px) {
    .blog-item {
        flex-basis: 100%;
        margin-bottom: 20px;
    }
}

.community-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 230px;
    background-color: #f4f4f4;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.video-container {
    width: 100%;
    max-width: 900px;
    padding: 10px;
}

.video-container iframe {
    width: 100%;
    height: calc(100vw * 0.5625); /* 16:9 aspect ratio */
    max-height: 506px;
    border: none;
}

.site-footer {
    background-color: #f4f4f4;
    padding: 20px 20px;
    font-family: Arial, sans-serif;
    color: #333;
}

.subscribe-section {
    background-color: #1f1f1f;
    color: #fff;
    text-align: center;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 10px;
}

.subscribe-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subscribe-section p {
    margin-bottom: 20px;
    font-size: 1rem;
}

.subscribe-section form {
    display: flex;
    justify-content: center;
    align-items: center;
}

.subscribe-section input[type="email"] {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    margin-right: 10px;
    width: 250px;
    max-width: 100%;
}

.subscribe-section button {
    padding: 10px 20px;
    font-size: 1rem;
    color: #fff;
    background-color: #f9b233;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-left: 40px;
}

.footer-column {
    flex: 1;
    min-width: 180px;
    margin-right: 10px;
}

.footer-column h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 5px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.footer-column .social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-column .social-icons a img {
    width: 50px;
    height: 40px;
}

.contact-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: bold;

}

/* Mobile Header Styles */
.mobile-header {
    display: none; /* Hidden on desktop */
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
}


/* Mobile Header Styles */
.mobile-header {
    display: none; /* Hidden on desktop by default */
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000; /* Ensure it's above other content */
}

/* Mobile Header Navbar */
.mobile-header .navbar {
    display: flex;
    justify-content: space-between; /* Space between logo and toggle button */
    align-items: center;
    width: 100%;
}

/* Site Logo Control */
.mobile-header .logo {
    display: flex;
    align-items: center;
    margin-left: 10px; /* Adjust left margin for the logo */
}

.mobile-header .logo img {
    height: 40px; /* Adjusted logo height for mobile */
    width: auto; /* Keep the logo's width auto-adjusting */
}

/* Toggle Button Control */
.menu-toggle {
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 50px; /* Adjust right margin for the toggle button */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Navigation Sliding Menu */
.mobile-nav {
    display: none; /* Hidden initially */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 25px;
    z-index: 2000;
    max-height: 95%; /* Limit height to 95% of the screen */
    overflow-y: auto;
    transform: translateY(100%); /* Initially off-screen */
    transition: transform 0.3s ease-in-out; /* Smooth sliding effect */
}

.mobile-nav.active {
    transform: translateY(0%); /* Slide into view */
    display: block;
}

/* Mobile Menu Links */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav ul li {
    margin: 10px 0;
}

.mobile-nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 10px;
    text-align: center;
    position: relative; /* Required for positioning the underline */
    transition: transform 0.3s ease, color 0.3s ease; /* Smooth transition */
}

/* Hover effect for mobile menu links */
.mobile-nav ul li a:hover {
    color: #f1c40f; /* Change color on hover */
    transform: translateY(5px); /* Bowing effect by moving down */
}

/* Underscore line effect for mobile menu links */
.mobile-nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px; /* Distance of the line from the text */
    height: 2px; /* Thickness of the line */
    background-color: #f1c40f; /* Color of the underline */
    transform: scaleX(0); /* Start with no line (scaleX 0) */
    transition: transform 0.3s ease;
}

/* Full width underscore line on hover */
.mobile-nav ul li a:hover::after {
    transform: scaleX(1); /* Full width line on hover */
}

/* Dropdown Menu in Mobile */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Dark background for dropdown */
}

.dropdown-menu li {
    padding: 10px 0;
    text-align: center;
}

.dropdown-menu li a {
    color: #fff;
    padding: 10px;
    text-decoration: none;
    display: block;
}

/* Show the dropdown when the dropdown toggle is clicked */
.dropdown-menu.active {
    display: block;
}

/* Responsive Design: Adjust text size for mobile */
@media (max-width: 768px) {
    .hero-content-text h1 {
        font-size: 4rem; /* Smaller font size for h1 */
    }
    .hero-content-text h2 {
        font-size: 1.5rem; /* Adjust h2 size */
    }
    .hero-content-text h3 {
        font-size: 1.2rem; /* Adjust "Statement Of Faith" size */
    }
}

/* Media Query for Mobile */
@media (max-width: 768px) {
    .desktop-header {
        display: none; /* Hide desktop header on mobile */
    }

    .mobile-header {
        display: flex; /* Show mobile header */
    }

    .hero-content-text h1 {
        font-size: 1em; /* Reduce the font size on smaller screens */
    }
    .hero-content-text h1 {
        font-size: 0.5em; /* Adjust h2 size for smaller devices */
    }

    .mobile-nav.active {
        z-index: 2000;
    }

    .hero-content-text h1 {
        font-size: 0.2em;
        margin: 0;
    }
    
    /* Hide content when the mobile menu is open */
    body.menu-open .hero-section, 
    body.menu-open .welcome-section {
        display: none;
    }
    
}

/* No changes to hero video section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    padding-top: 60px; /* Offset for fixed navbar height */
    z-index: 1; /* Lower z-index so it stays behind the mobile-nav */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1; /* Ensure video is behind content */
}

.hero-content-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 1; /* Ensure content is above video but below mobile-nav */
    padding: 20px;
}

.hero-content-text h1 {
    font-size: 3em;
    margin: 0;
}

.hero-content p {
    font-size: 1.5em;
    margin: 0;
}

/* Styles for Hero Image Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 80vh; /* Full viewport height */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding-top: 30px; /* Reduced Offset for fixed navbar height */
}

/* Other Hero Section Styles (Unchanged) */
.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -5; /* Ensure image is behind the overlay and text */
}

.hero-image {
    width: 100%;
    height: 80%;
    object-fit: cover; /* Ensures the image covers the entire section without distortion */
}

.hero-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-color: rgba(0, 0, 0, 0.4); /* Tint color and transparency */
    z-index: -1; /* Ensure tint is above the image but behind the text */
}

/* Style for the "Statement Of Faith" */
.hero-content h1 {
    margin-top: 20px;
    font-size: 7.5rem; /* Adjust size */
    font-weight: bold;
    color: #fff; /* White text */
}

/* Responsive Design: Adjust text size for mobile */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 4rem; /* Smaller font size for h1 */
    }
    .hero-content h2 {
        font-size: 1.5rem; /* Adjust h2 size */
    }
    .hero-content h3 {
        font-size: 1.2rem; /* Adjust "Statement Of Faith" size */
    }
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 1; /* Ensure content is above the tint and image */
}

.hero-content h1, 
.hero-content h2, 
.hero-content h3 {
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); /* Shadow for better readability */
}

/* Declaration Section */
.declaration-section {
    position: relative;
    width: 100%;
    padding: 40px 0; /* Reduced the top and bottom padding */
    background-image: url('./images/bible4.jfif'); /* Background image path */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Makes the background stay fixed as you scroll */
}

.declaration-content {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.declaration-content h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.declaration-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    margin-left: 40px;
    margin-right: 40px;
    color: #f1f1f1;
    text-align: justify;
}

/* Responsive Design Adjustments */
@media (max-width: 768px) {
    .declaration-content {
        padding: 20px;
    }

    .declaration-content h2 {
        font-size: 2rem;
    }

    .declaration-content p {
        font-size: 1rem;
    }

    .declaration-content p {
        font-size: 1.2rem;
        line-height: 1.8;
        margin-bottom: 20px;
        margin-left: 20px;
        margin-right: 20px;
        color: #f1f1f1;
        text-align: justify;
    }
}

/* Biography Section */
.biography-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure container takes full height */
    overflow: hidden;
}

/* Fading Slides */
.fade-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fade-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire section */
    object-position: center; /* Center the image within the section */
}

.bio-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    font-size: 1.5rem;
    border-radius: 5px;
}

/* Add animation to fade slides */
@keyframes fade {
    0% { opacity: 0; }
    25% { opacity: 1; }
    50% { opacity: 1; }
    75% { opacity: 0; }
    100% { opacity: 0; }
}

/* Applying fade effect to each slide */
.fade-slide:nth-child(1) {
    animation: fade 9s infinite;
}

.fade-slide:nth-child(2) {
    animation: fade 9s infinite 3s; /* Starts after 3 seconds */
}

.fade-slide:nth-child(3) {
    animation: fade 9s infinite 6s; /* Starts after 6 seconds */
}

/* CLSOTWW Section */
.clsotww-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    background-image: url('./images/clsotww.jpg'); /* Path to your image */
    background-size: cover; /* Ensure the image covers the entire section */
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional: Parallax effect if you want the background to stay fixed on scroll */
}

.clsotww-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Dark overlay to make text readable */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.clsotww-content {
    color: white;
    padding: 20px;
    max-width: 800px; /* Limit the width of the text */
}

.clsotww-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.clsotww-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #f1f1f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clsotww-content h2 {
        font-size: 2rem;
    }

    .clsotww-content p {
        font-size: 1.2rem;
    }
}

/* Branch Title Section Styling */
.branch-title-section {
    text-align: center;
    padding: 50px 20px 30px;
    background-color: #84878a;
    color: #fff;
}

.branch-title-section h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.branch-title-section p {
    font-size: 1.5rem;
    color: #f0f0f0;
    margin-bottom: 0;
}

/* General Styling for Branch Section */
.branch-section {
    padding: 60px 20px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.branch-container {
    max-width: 1200px;
    width: 100%;
}

.branch-card {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: scale(1.02);
}

/* Styling for the Image Section */
.branch-image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    overflow: hidden;
    position: relative;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    border-radius: 10px 0 0 10px;
}

.branch-card:hover .branch-image img {
    transform: scale(1.1);
    filter: grayscale(50%);
}

/* Styling for the Details Section */
.branch-details {
    flex: 1;
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.branch-details h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
}

.branch-description {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 25px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #007bff;
    margin-bottom: 10px;
}

.contact-info address {
    font-style: normal;
    line-height: 1.6;
    color: #555;
}

.contact-info address strong {
    font-weight: bold;
    color: #333;
}

.contact-info address a {
    color: #007bff;
    text-decoration: none;
}

.contact-info address a:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .branch-card {
        flex-direction: column;
    }

    .branch-image {
        max-width: 100%;
        height: 250px;
    }

    .branch-image img {
        border-radius: 15px 15px 0 0;
    }

    .branch-details {
        padding: 20px;
    }

    .branch-details h2 {
        font-size: 2rem;
    }

    .branch-description {
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }
}

