/* General styling */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: #FAF7F2;
    color: #333;
    position: relative;
    padding-top: 70px; /* Offset for fixed navbar */
    padding-bottom: 70px; /* Add space for fixed footer */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: url('assets/village-7139964.svg') center center/cover no-repeat;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

.container {
    width: 80%;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    text-decoration: none;
    font-size: 1.2em;
    color: #333;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: #F9A828;
}

.navbar, .navbar .nav-link, .navbar .navbar-brand {
    color: #FAF7F2 !important;
}

.navbar .nav-link.active, .navbar .nav-link:focus, .navbar .nav-link:hover {
    color: #F9A828 !important;
}

/* Hero Section */
header {
    position: relative;
    margin-top: 0;
}

.hero {
    position: relative;
    height: 100vh;
    background-image: url('hero-background.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text {
    text-align: center;
    color: white;
    animation: fadeIn 2s ease;
}

.hero h1 {
    font-size: 4em;
    margin: 0;
}

.hero p {
    font-size: 1.5em;
    margin-top: 20px;
}

.btn {
    padding: 10px 30px;
    background-color: #5A7D7C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.2em;
    margin-top: 30px;
    display: inline-block;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #F9A828;
}

/* About and Principal Sections */
.about-section, .principal-section, .carousel-section {
    padding: 50px 0;
    background-color: #E0F7FA;
}

.about-content, .principal-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.about-text, .principal-text {
    flex: 1;
    font-size: 1.2em;
}

.about-image img, .principal-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

/* Carousel Section */
.carousel {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.carousel img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
}

.carousel img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form button {
    width: fit-content;
    padding: 10px 30px;
    background-color: #5A7D7C;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #F9A828;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    width: 100%;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 1001;
}

footer p {
    margin: 0;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Bible Verse Banner */
.verse-banner {
  background: #E0F7FA;
  padding: 4rem 1rem;
  text-align: center;
  color: #31487A;
  position: relative;
}
.verse-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/playful-pattern.jpg') center/cover no-repeat;
  opacity: 0.07;
  z-index: 0;
}
.verse-container {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  z-index: 1;
}
.verse-text {
  font-family: 'Georgia', serif;
  font-size: 1.75rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.verse-ref {
  font-family: 'Arial', sans-serif;
  font-size: 1rem;
  opacity: 0.85;
}
@media (max-width: 600px) {
  .verse-text {
    font-size: 1.1rem;
  }
  .verse-banner {
    padding: 2rem 0.5rem;
  }
}

/* Responsive styling */
@media (max-width: 992px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar .nav-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: flex-start;
    }
    .navbar .nav-link {
        padding-left: 0;
        padding-right: 0;
        width: 100%;
    }
    .navbar .navbar-brand {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 5px;
    }
    .about-content, .principal-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    .about-image img, .principal-image img {
        max-width: 90vw;
    }
    .carousel {
        flex-direction: column;
        gap: 15px;
    }
    .carousel img {
        width: 90vw;
        max-width: 100%;
        height: auto;
    }
    .hero h1 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1em;
    }
    .btn {
        font-size: 1em;
        padding: 8px 18px;
    }
    footer {
        font-size: 0.95em;
        padding: 16px 0;
    }
    body {
        padding-bottom: 90px; /* More space for footer on mobile */
    }
}

@media (max-width: 480px) {
    .navbar .navbar-brand img {
        height: 28px !important;
        margin-right: 5px !important;
    }
    .hero h1 {
        font-size: 1.3em;
    }
    .hero p {
        font-size: 0.95em;
    }
    .btn {
        font-size: 0.95em;
        padding: 7px 12px;
    }
}


main, .container, .about-section, .principal-section, .carousel-section, .contact-section, header, footer {
    position: relative;
    z-index: 1;
}
