/* Ensure consistent reset for layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    position: relative; /* Set proper positioning for stacking context */
    overflow-x: hidden; /* Prevent horizontal scrolling from positioning issues */
    background-color: #98CFCC;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
    z-index: 10;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 80px;
    margin-right: 10px;
}

.navbar .logo span {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

/* Desktop Navigation Links */
.desktop-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
}

.desktop-links li {
    margin: 0;
}

.desktop-links li a {
    text-decoration: none;
    color: black;
    font-size: 16px;
}

.desktop-links li a:hover {
    text-decoration: underline;
}

/* Toggle Button */
.toggle-button {
    display: none;
    flex-direction: column;
    cursor: pointer;
    
}

.toggle-button span {
    background-color: black;
    height: 3px;
    width: 25px;
    margin: 4px 0;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: 250px;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    z-index: 100;
}

.sidebar.active {
    right: 0; /* Slide in from the right */
}

.sidebar .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.sidebar .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar .nav-links li {
    text-align: center;
}

.sidebar .nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .desktop-links {
        display: none; /* Hide desktop links */
    }

    .toggle-button {
        display: flex; /* Show toggle button */
    }
}


/* Banner */
.banner {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Below everything */
    pointer-events: none; /* Ensure it doesn't interfere */
}

.banner .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* Lighter white overlay for brightness */
    z-index: 2; /* Above video */
}

.banner-content {
    position: relative;
    z-index: 3; /* Ensure above video and overlay */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: #fff;
}

.banner-content .content {
    background: transparent;
    padding: 20px;
    z-index: 4; /* Explicit stacking */
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Enhance readability */
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.social-icons a {
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f0a500;
}

.cta-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #FA8E46;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    text-transform: uppercase;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d48800;
}

/* Headline */
.headline {
    font-size: 88px;
    position: relative;
    display: inline-block;
    color: #FFFFFF; /* Pure white for contrast */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Softer shadow */
}

/* Highlight */
.highlight {
    position: absolute;
    left: 0;
    top: 70%;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 0, 0.2); /* Softer yellow highlight */
    z-index: -1;
    transform: translateY(-50%);
}

/* Overlapping Section */
.overlapping-section {
        position: relative;
        width: 70%;
        margin: 0 auto;
        display: flex;
        background: #17574E;
        z-index: 10;
        top: -20vh;
        overflow: hidden;
}

/* Reduce h1 size for smaller screens */
@media (max-width: 768px) {
    .overlapping-section {
        flex-direction: column;
        width: 90%; /* Allow the section to occupy more space on smaller screens */
        top: -10vh; /* Adjust overlap for smaller screens */
    }

    h1 {
        font-size: 32px; /* Reduce the size of h1 for smaller screens */
    }

    .cta-button {
        align-self: center; /* Center-align button on small screens */
    }
}

/* Left Image Section */
.left-image {
    flex: 1; /* Image takes up 50% of section */
    position: relative;
}

.left-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover area without distortion */
    display: block;
}

/* Right Content Section */
.right-content {
    flex: 1; /* Content takes up 50% of section */
    padding: 40px; /* Generous padding for readability */
    display: flex;
    margin: 40px;
    flex-direction: column;
    justify-content: center; /* Vertically align text */
}

.right-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333; /* Darker color for emphasis */
}

.right-content p {
    font-size: 16px;
    line-height: 1.6;
    color: #666; /* Lighter text color for secondary emphasis */
    margin-bottom: 20px;
}

.cta-button {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    background-color: #FA8E46;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    align-self: flex-start; /* Align button to the start of the content */
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #d48800;
}

/* Mobile-friendly layout for small screens */
@media (max-width: 768px) {
    .overlapping-section {
        flex-direction: column; /* Stack items vertically */
        width: 90%; /* Occupy more width on small screens */
        top: -10vh; /* Adjust overlap for smaller screens */
    }

    .left-image {
        order: 1; /* Ensure the image comes first */
    }

    .right-content {
        order: 2; /* Place the text below the image */
        padding: 20px; /* Reduce padding for smaller screens */
    }

    .cta-button {
        align-self: center; /* Center-align button on small screens */
    }
}

/* Responsive Styles for Small Screens */
@media (max-width: 768px) {
    .custom-section {
        flex-direction: column; /* Stack items vertically */
        padding: 10px; /* Reduce padding for smaller screens */
    }

    .left-content {
        order: 1; /* Ensure text content comes first */
        margin-right: 0; /* Remove right margin in stacked view */
        margin-bottom: 20px; /* Add spacing below text */
    }

    .right-content {
        order: 2; /* Image comes second */
        margin-bottom: 0; /* Remove extra margin */
    }
}

@media (max-width: 768px) {
    .newsletter-form input {
        width: 100%; /* Full width on small screens */
    }

    .newsletter-form button {
        width: 100%; /* Full width on small screens */
    }
}

h1 {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
  }

  p {
    font-family: "Cabin", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: regular;
    font-variation-settings:
      "wdth" 100;
  }

   /* Main section container */
   .word-of-the-week {
    display: flex;
    flex-wrap: wrap;
    width: 90%;
    max-width: 1200px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Left side for the image */
.image-container {
    flex: 1;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    animation: fadeIn 1s ease-in-out;
}

/* Right side for content */
.content-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-container h1 {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 15px;
}

.content-container p {
    font-size: 1.2rem;
    color: #555;
    line-height: 1.6;
}

.content-container .verse {
    font-style: italic;
    font-size: 1rem;
    color: #888;
    margin-top: 20px;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .word-of-the-week {
        flex-direction: column;
    }

    .image-container {
        height: 300px;
        flex: none;
    }

    .content-container h1 {
        font-size: 2rem;
    }

    .content-container p {
        font-size: 1rem;
    }
}

/* Fade-in animation for the image */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

h1.responsive-heading {
    font-size: 90px; /* Default size for large screens */
    text-align: center;
    padding-bottom: 250px;
}

@media (max-width: 768px) { /* For small screens (tablet or mobile) */
    h1.responsive-heading {
        font-size: 50px; /* Adjust font size for smaller screens */
        padding-bottom: 150px; /* Adjust padding as needed */
    }
}

@media (max-width: 480px) { /* For extra small screens (mobile) */
    h1.responsive-heading {
        font-size: 30px; /* Further adjust font size for very small screens */
        padding-bottom: 100px; /* Adjust padding for very small screens */
    }
}

@media (min-width: 768px) { /* For medium to large screens */
    h1.responsive-heading1 {
        font-size: 90px; /* Larger font size */
        padding-bottom: 500px; /* Increased bottom margin */
    }
}

h1.responsive-heading1 {
    font-size: 90px; /* Default size for small screens */
    text-align: center;
    padding-bottom: 350px; /* Default bottom padding for small screens */
    color: white;
}
