:root {
    --primary-color: #071624;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f5f6fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}


.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-links a {
    color: #ffffff;
}

.nav-links a:hover {
    color: #4DA8DA;
}

/* Hamburger Menu Styles */
.hamburger {
    display: block; /* Ensure it's visible */
    position: absolute; /* Use absolute positioning */
    top: 1rem; /* Adjust vertical position */
    right: 1rem; /* Move it to the right */
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Ensure it stays above other elements */
    display: none; /* Hidden by default */
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white; /* Adjust color if needed */
    transition: all 0.3s ease;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: white;
    transition: all 0.3s ease;
}

.navbar.scrolled .bar {
    background-color: #333;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Banner Styles */
.banner {
    height: 100vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1)),
                url('images/bannerindex.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.about-banner {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)),
                url('images/banner10.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.donations-banner {
    height: 50vh;
    min-height: 400px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.1)),
                url('images/donacionebanner.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.banner h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.banner p {
    font-size: 1.5rem;
}

/* Events Section Styles */
.events-section {
    padding: 4rem 2rem;
    background-color: #f3f4f6;
    text-align: center;
}

.events-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.events-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.event-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    text-align: left;
}

.event-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.event-details {
    padding: 1rem;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-details p {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #555;
}

.future-events {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/*Calendar*/
.calendar-btn {
    margin-top: 1rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid black;
    background-color: transparent;
    color: black;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem; 
}

.calendar-btn:hover {
    background-color: black;
    color: white;
}

.calendar-iframe {
    width: 100%;
    height: 500px;
    border: none;
}



/* Fullscreen Modal Styles */
.calendar-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.calendar-modal iframe {
    width: 90%;
    height: 90%; /* Scale iframe to fit modal */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Close Button Styles */
.close-modal-btn {
    position: absolute;
    top: 0%;
    right: 45%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1100; /* Ensure it's above everything */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f44336; /* Red color on hover */
    color: white;
}




/* About Section Styles */
.about-section {
    padding: 4rem 2rem;
    text-align: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(71, 45, 45, 0.8), rgba(0, 0, 0, 0.8)),
                url('images/backgroundimage.jpg') no-repeat center center fixed;
    background-size:cover;
    color: #ffffff;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    justify-content: center;
}

.about-img {
    flex: 1 1 40%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1 1 50%;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
}

.about-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    border: 2px solid rgb(255, 255, 255);
    background-color: transparent;
    color: rgb(255, 255, 255);
    border-radius: 50px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-btn:hover {
    background-color: rgb(27, 135, 236);
    color: white;
}

/* Services Section Styles */
/* Services Section Styles */
.services-schedule-section {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
    position: relative;
}

.services-schedule-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.services-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Banner Styles */
.services-banner {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: 400px;
    background: url('images/services-banner.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.services-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

/* Schedule Styles */
.services-schedule {
    flex: 1;
    max-width: 600px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.schedule-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.schedule-item h4 {
    font-size: 1.5rem;
    color: #333;
}

.schedule-item p {
    font-size: 1rem;
    color: #555;
}

/* Recent Messages Section Styles */
.recent-messages-section {
    padding: 4rem 2rem;
    background-color: #ffffff;
    text-align: center;
}

.recent-messages-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.recent-messages-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.message-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 300px; /* Fixed width */
    height: 400px; /* Fixed height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.message-card iframe {
    width: 100%;
    height: 100%; /* Make iframe fill the card */
    border: none;
    border-radius: 8px;
}


.youtube-channel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed #333;
}

.channel-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid black;
    background-color: transparent;
    color: black;
    border-radius: 50px;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-btn:hover {
    background-color: black;
    color: white;
}

.message-card img {
    margin-bottom: 2rem; /* Adds space below the image */
}

/* Prayer Request Form Styles */

.prayer-container{
    padding: 4rem 2rem;
    text-align: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(71, 45, 45, 0.1), rgba(0, 0, 0, 0.8)),
                url('./images/pray.jpg') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
}

.Prayer-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
    text-align: center;
}

.prayer-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: white;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background: var(--secondary-color);
}

/* Donations Section */
.donations-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 2rem 0;
    color: #333;
}

#donations {
    padding: 4rem 1rem;
    text-align: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('images/donations-background.jpg') no-repeat center center;
    background-size: cover;
    color: white;
}

.donations-content {
    max-width: 800px;
    margin: 0 auto;
}

.bank-logo {
    max-width: 200px;
    margin: 0 auto 1rem;
    display: block;
}

.donations-text {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    line-height: 1.6;
    color: white; /* Ensures text is readable over the background */
}


/* Footer Styles */
footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: auto;
    margin: 0 auto;
}

.contact-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.social-links {
    display: flex;
    color: white;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.map-container {
    grid-column: span 2;
}

.map-container h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}



/* Media Queries */
@media screen and (max-width: 768px) {
    .navbar {
        background-color: transparent; /* No bar for phones */
        box-shadow: none; /* Removes any shadow for a clean look */
    }
    .banner {
        height: 60vh;
        min-height: 300px;
    }

    .banner h1 {
        font-size: 2rem;
    }

    .banner p {
        font-size: 1.2rem;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.9);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s;
        z-index: 1000;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 16px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .navbar.scrolled .nav-links {
        background-color: white;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img {
        max-width: 100%;
    }

    .about-text {
        text-align: center;
    }

    .events-container {
        flex-direction: column;
        align-items: center;
    }

    .event-card {
        width: 100%;
        max-width: none;
    }

    .services-content {
        flex-direction: column;
    }

    .services-banner {
        height: 300px;
        width: auto;
    }

    .services-schedule {
        margin-top: 2rem;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {


    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .banner h1 {
        font-size: 1.5rem;
    }

    .banner p {
        font-size: 1rem;
    }

    .about-title,
    .services-schedule-title,
    .events-title,
    .recent-messages-title {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}
