/* General Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    margin: 0;
    padding-top: env(safe-area-inset-top); /* Safe area padding for devices with a notch */
}

a {
    text-decoration: none;
    color: inherit;
}


.church-card:hover {
    /* background-color: #3498db; */
    /* animation: bounce 0.2s ease-in; Apply animation */
    transform: translateY(-10px);
}

/* Keyframes for bouncing effect */
@keyframes bounce {
    0% {
        transform: translateY(-10px); /* Start at normal position */
    }

    100% {
        transform: translateY(-10px); /*Move up by 30px */
    }
}


.fadeandscaleIn * {
    animation: fadeandscaleIn 1s ease-out 1s forwards;
    opacity: 0;
}

    .fadeandscaleIn *:nth-child(1) {
        animation-delay: .25s;
    }

    .fadeandscaleIn *:nth-child(2) {
        animation-delay: .5s;
    }

    .fadeandscaleIn *:nth-child(3) {
        animation-delay: .75s;
    }

@keyframes fadeandscaleIn {
    0% {
        transform: scale(.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}



/* Navbar Styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #005a7a;
    position: fixed;
    width: 100%;
    top: 0;
    z-index:1000;
}

.navbar-brand a {
    font-size: 2rem;
    color: white;
}

.navbar-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

    .navbar-links a {
        color: white;
        font-size: 1.2rem;
    }

        .navbar-links a:hover {
            color: #ffbf47;
        }

/* 
.navbar-brand a {
    color: white;
    font-size: 24px;
    text-decoration: none;
} */


/* Hamburger Menu */
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Sidebar Styles */
.sidebar {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 250px;
    background-color: #333;
    padding-top: 50px;
    z-index: 1000;
}

    .sidebar ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .sidebar ul li {
            padding: 15px 0;
            text-align: center;
        }

            .sidebar ul li a {
                color: white;
                text-decoration: none;
                font-size: 18px;
            }

h2 {
    color: #005a7a;
    font-family: 'Cinzel', 'Arial', sans-serif;
}

/* Hero Section */
.hero {
    font-family: 'Cinzel', 'Arial', sans-serif;
    background: url('/images/hero-background.png') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
    margin-top: 91px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}


.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-text {
    background-color: #005a7a60;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 5px;
}

.btn-main {
    background-color: #ffbf47;
    color: #333;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
}

/* Mission Section */
.mission {
    padding: 60px 30px;
    text-align: center;
    background-color: #ffffff;
}

    .mission h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

/* Churches Section */
.churches {
    padding: 60px 30px;
    background-color: #fafafa;
}

    .churches h2 {
        text-align: center;
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

.church-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.church-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 20px;
}

    .church-card img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 10px;
    }

    .church-card h3 {
        font-size: 1.5rem;
        margin: 15px 0;
    }

    .church-card p {
        font-size: 1rem;
        color: #555;
        margin-bottom: 15px;
    }

/* Call to Action Section */
.cta {
    font-family: 'Cinzel', 'Arial', sans-serif;
    background-color: #005a7a;
    color: white;
    padding: 60px 30px;
    text-align: center;
}

    .cta h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
        color: white;
    }

    .cta p:last-of-type {
        margin-bottom: 50px;
    }

/* Contact Section */
.contact {
    padding: 60px 30px;
    background-color: #ffffff;
    text-align: center;
}

    .contact h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

/* Footer Section */
.footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 1rem;
}

    .footer a {
        color: #ffbf47;
    }

        .footer a:hover {
            text-decoration: underline;
        }

.app-bar{
display:none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission h2, .churches h2, .contact h2 { 
        font-size:1.5rem;
    }

    .mission, .churches, .contact {
        padding: 30px 10px;
    }

    .hero {
        margin-top:71px;
        padding: 50px 0;
    }

    .navbar {
        padding:10px;
    }

    .navbar-links {
        flex-direction: column;
        align-items: flex-start;
    }

    .church-card:hover{
        transform:none;
    }

    .church-cards {
        grid-template-columns: repeat(auto-fit, 1fr);
        gap: 10px;
    }

    .church-card p {
        margin:0;
    }

    .church-card-header {
        display:grid;
        grid-template-columns:  auto 1fr;
        text-align:left;
        margin-bottom:10px
    }
    .church-card-header img{
        width:75px;
        height:75px;
    }

    .church-card-header h3{
        display:inline-block;
        margin: 0 10px;
        vertical-align:middle;
        font-size:1.25rem;
        text-align:left;
        padding:0;
        width:100%
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    /* Show hamburger menu on mobile */
    .hamburger-menu {
        display: block;
    }

    /* Hide navbar links on mobile */
    .navbar-links {
        display: none;
    }

    /* Show sidebar when active */
    .sidebar.active {
        display: block;
    }

    .app-bar {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
        gap: 16px;
        position: fixed;
        bottom: 0;
        background-color: #e6edfa;
        width: 100%;
        padding: 7px 25px;
        /*        height: calc(65px + env(safe-area-inset-bottom));*/
        padding-bottom:  env(safe-area-inset-bottom);
    }

    .app-bar img{
        border: solid 1px gray;
        border-radius:5px;
        padding:5px;
        width:40px;
        height:40px;
        display:block;
    }

    .app-bar a {
        font-size:0.6rem;
        font-weight:600;
        text-align:center;
        width:40px;
    }
}
