html, body {
    height: 100%; /* Ensure the body and html take full height */
    margin: 0;
    overflow-x: hidden; /* Prevent horizontal scrolling */
    scroll-padding-top: 70px; /* Adjust the value based on your nav bar height */
    scroll-behavior: smooth;

}

/* Hero Section */
.hero-section {
    height: 600px;
    background-image: url('/images/FoundationsFirstHeroImage.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.logo-overlay {
    width: 260px;
    margin-bottom: 10px;
    margin-top: 60px;
}

.hero-title {
    font-size: 3em;
    margin: 0;
}

.hero-subtitle {
    font-size: 1.6em;
    color: white;
    
}

/* Falling Leaves Styles */
.leaf {
    position: absolute;
    top: -100px; /* Start slightly above the viewport */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    pointer-events: none; /* Prevent mouse interaction */
    z-index: 1; /* Make sure it's in front of the background */
}

@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.8;
    }
}

/* Courses Section */
.courses-section {
    background-color: white;
    min-height: 800px;
    text-align: center;
    padding: 40px 20px;
    background-image: url('/images/home/courses/Classroom-AdobeStock_469111730.jpg'); /* Replace with your image path */
    background-size: cover; /* Ensure the background covers the entire section */
    background-position: center; /* Center the background image */
    background-repeat: no-repeat; /* Prevent the background from repeating */
    color: white; /* Ensure the text is visible over the background */
}

.courses-title {
    font-size: 2em;
    color: #ffffff;
   
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    margin-top: 30px;
    margin-bottom: 30px;
    
}

/* Course Buttons - Always Stay in a Single Row and Scale Down on Resize */
.course-buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap; /* Prevent the buttons from wrapping to a new line */
    margin-bottom: 30px;
}

.course-button {
    flex-shrink: 1; /* Allow buttons to shrink */
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s, width 0.3s, height 0.3s;
    filter: grayscale(0); /* Default color */
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.9));
    
}

.course-button:hover {
    filter: grayscale(100%) drop-shadow(0 0 5px rgba(0, 0, 0, 0.9)); /* Preserve drop-shadow */
    transform: scale(1.05);
    
}

.course-button.active {
    filter: grayscale(100%) drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
    transform: scale(1.05);
    
}



/* Course Display Container - Always Visible with Empty Chalkboard */
.course-display {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background-image: url('/images/home/courses/ChalkBoardAdobeStock_828517170.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: white;
    border: 2px solid #ccc;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
    /* Ensure it's displayed on mobile too */
    visibility: visible;
    opacity: 1;
}

/* Chalk Text Effect */
.chalk-text {
    font-family: 'Schoolbell', sans-serif;
    color: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 1.5em;
}

#course-description {
    font-family: Arial, Helvetica, sans-serif;
}


.course-display.show .chalk-text {
    opacity: 1; /* Show text when button is clicked */
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
    transition: opacity 0.7s ease-in-out;
}

/* Ensure the course display becomes active */
.course-display.active .chalk-text {
    opacity: 1;
}

.default-message p {
    font-size: 1.2em;
    color: #333;
    text-align: center;
    padding: 20px;
    opacity: 0.7;
}


/* Learn More Button */
.learn-more-button {
    display: none; /* Hidden by default */
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease-in-out;
    font-family: Arial, Helvetica, sans-serif;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.29));
}

.learn-more-button.show {
    display: inline-block; /* Show when a course button is clicked */
    
}

.learn-more-button:hover {
    background-color: #0057b300;
    border-color: #ffffff;
    border: 2px solid #ffffff;
    color: #ffffff;

}

/* Enroll Button */
.enroll-container {
    margin-top: 40px;
    margin-bottom: 50px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

.enroll-btn {
    display: inline-block;
    background-color: #28a77f;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
    
}

.enroll-btn:hover {
    background-color: #21883700;
    border-color: #ffffff;
    border: 2px solid #ffffff;
    color: #ffffff;

}

/* Lightbox Fade Effect */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}


/* Events Section */
.events-section {
    background-image: url('/images/home/Events/AdobeStock_833633155.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 15px;
    text-align: center;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center; /* Vertically center the overlay */
    justify-content: center; /* Horizontally center the overlay */
    color: white;
}

/* Center the content inside the overlay */
.events-overlay {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 40px; /* Increased padding to make the overlay taller */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.065);
    width:60%;
    min-height: 400px; /* Ensure the overlay has more height */
    display: flex;
    flex-direction: column; /* Align content in a vertical stack */
    justify-content: center; /* Vertically align the content */
    align-items: center; /* Horizontally center the content */
    text-align: center; /* Center text inside */
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.events-title {
    font-size: 2.5em; /* Slightly larger font */
    margin-bottom: 15px;
    color: rgb(88, 88, 88);
    
}

.events-subtitle {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: rgb(88, 88, 88);
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    
}

.events-small-image {
    width: 400px; /* Increased image size */
    height: auto;
    margin-bottom: 30px; /* Add more space below the image */
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.5));
}


a:hover img {
    transform: scale(1.2) rotate(5deg);
    transition: transform 0.5s ease-in-out;
    filter: drop-shadow(0 0 20px rgb(255, 255, 255));
}

/* View Calendar Button */
.view-calendar-btn {
    background-color: rgb(13, 130, 97);
    color: rgb(255, 255, 255);
    padding: 15px 30px; /* Larger button size */
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid transparent; /* Initially, no visible border */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.407);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.view-calendar-btn:hover {
    color: rgb(253, 250, 250);
    border-color: rgb(88, 88, 88);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background-color: #84b434;
}



/* Careers Section */
.careers-section {
    background-image: url('/images/home/careers/AdobeStock_922808006Max\ Scale.jpg'); /* Path to your background image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: white;
}

/* Careers Overlay */
.careers-overlay {
    padding: 40px;
    padding-bottom: 70px; /* Add more padding below the content */
    border-radius: 10px;
    background-color: rgba(2, 2, 2, 0.316);
    width: 60%;
    text-align: center;
    margin: 0 auto;
    transform: translateY(80px); /* Move the overlay down */
    backdrop-filter: blur(2px);
}

/* Careers Title and Subtitle */
.careers-title {
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
    font-size: 2em;
    margin-bottom: 15px;
}

.careers-subtitle {
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.924));
    font-size: 1.5em;
    font-family: Arial, Helvetica, sans-serif;
    margin-bottom: 50px;
}

/* Apply Now Button */
.apply-now-btn {
    background-color: rgb(0, 148, 234);
    color: rgb(255, 255, 255);
    padding: 15px 30px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid transparent; /* Initially no visible border */
    box-shadow: 0 0px 10px rgba(250, 250, 250, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 40px; /* Add space below the button */
}

.apply-now-btn:hover {
    border-color: black; /* Add black border on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}


/* Valued Partners Section */
.valued-partners-section {
    background-color: white; /* White background */
    min-height: 400px;
    display: flex;
    align-items: center; /* Vertically center the content */
    justify-content: center; /* Horizontally center the content */
    position: relative;
    padding: 50px 20px; /* Add padding to avoid overlapping */
    margin-bottom: 20px; /* Space between this and the next section */
}

/* Overlay Content (Title, Subtitle, Image) */
.partners-overlay {
    position: relative;
    text-align: center;
    width: 100%;
}

/* Title and Subtitle */
.partners-title {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #333; /* Dark color for contrast */
}

.partners-subtitle {
    font-size: 1.5em;
    margin: 0 auto; /* Center the image */
    padding: 20px 40px; /* Adjust for better spacing */
    color: #555;
    font-family: Arial, Helvetica, sans-serif;
}

/* Image that changes based on screen size */
.partners-image {
    max-width: calc(100% - 40px); /* Ensure 20px left-right margins */
    height: auto;
    max-height: 350px; /* Adjust the maximum height if necessary */
    display: block;
    margin: 20px auto; /* Center the image */
    transition: all 0.3s ease-in-out;
}

/* Change the image on smaller screens */
@media (max-width: 768px) {
    .partners-image {
        content: url('/images/home/Partners/Partner\ Logos\ Vertical.webp'); /* Use smaller image */
        max-height: 550px; /* Adjust as needed */
    }
}


/* Tour Section */
.tour-section {
    background-color: white;
    height: 600px; /* Fixed height for the section */
    position: relative;
    overflow: hidden; /* Hide any overflow from the images */
    display: flex;
    align-items: center;
    justify-content: center;

}

/* Tour Overlay */
.tour-overlay {
    position: absolute;
    z-index: 2; /* Make sure the overlay is on top of the carousel */
    text-align: center;
    color: white;
    max-width: 60%;
    background-color: rgba(0, 0, 0, 0.465);
    padding: 40px;
    padding-bottom: 30px; /* Add more padding at the bottom of the overlay */
    backdrop-filter: blur(2px);
}

.tour-title {
    font-size: 2.5em;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
}

.tour-subtitle {
    font-size: 1.5em;
    margin-bottom: 70px;
    font-family: Arial, Helvetica, sans-serif;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.9));
}

/* Book Tour Button */
.book-tour-btn {
    background-color: white;
    color: rgb(59, 59, 59);
    padding: 15px 30px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid transparent;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
}


.book-tour-btn:hover {
    border-color: black;
   
}

/* Full Width and Height Carousel */
.carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    animation: slide 20s infinite;
    height: 100%; /* Ensure the inner carousel also respects the height */
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
}

/* Hide controls (if you are using a carousel with built-in controls) */
.carousel-control-prev, .carousel-control-next {
    display: none;
}

/* Carousel Animation */
@keyframes slide {
    0% { transform: translateX(0); }
    20% { transform: translateX(0); }
    25% { transform: translateX(-100%); }
    45% { transform: translateX(-100%); }
    50% { transform: translateX(-200%); }
    70% { transform: translateX(-200%); }
    75% { transform: translateX(-300%); }
    95% { transform: translateX(-300%); }
    100% { transform: translateX(0); }
}


/* Donation Section */
.donation-section {
    background-color: #006e72;
    padding: 60px 20px;
    text-align: center;
    min-height: 350px;
}

.donation-overlay {
    display: flex; /* Enable Flexbox */
    flex-direction: column; /* Align items in a column */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically, if needed */
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 50px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.donation-title {
    font-size: 2em;
    margin-bottom: 15px;
    color: #333;
}

.donation-subtitle {
    font-size: 1.5em;
    color: #666;
    font-family: Arial, Helvetica, sans-serif;
    
}

.donation-button {
    width: 200px;
    height: auto;
    margin-top: 30px;
   
   
    
}




/* Shop Section */
.shop-section {
    background-color: white; /* White background */
    height: 600px; /* Fixed height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Shop Overlay */
.shop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.shop-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #333;
}

.shop-subtitle {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #555;
    padding-left: 30px;
    padding-right: 30px;
    font-family: Arial, Helvetica, sans-serif;
    width: 70%;
}

/* Shop Image */
.shop-image {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 10px;
    
}

/* Shop Button */
.shop-btn {
    background-color: white;
    color: rgb(59, 59, 59);
    padding: 10px 25px;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 5px;
    border: 2px solid transparent;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.9);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.shop-btn:hover {
    border-color: black; /* Add black border on hover */
    
}

.contact-section {
    background-color: #006e72; /* Section background */
    padding: 50px 20px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff; /* Form background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-title {
    font-size: 2em;
    text-align: center;
    margin-bottom: 10px;
}

.contact-subtitle {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.3em;
    text-align: center;
    margin-bottom: 30px;
    color: #555;
}

.form-group {
    margin-bottom: 20px;
}

label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1em;
    display: block;
    
    margin-bottom: 5px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    resize: none;
}

.submit-btn {
    width: 100%;
    background-color: #006e72;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color .5s ease-in-out; /* Smooth hover effect */
}

.submit-btn:hover {
    background-color: #494949;
    
}

#formMessage {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}




/* ////////////////////////////////////////////// Ensure the content scale down as the screen size shrinks /////////////////////////////////////// */
@media (max-width: 750px) {
    .course-button {
        width: 120px;
        height: 120px;

    }

    .events-overlay {
        width: 90%;
    }

    .events-section {
        min-height: 500px; /* Reduce the section's height on smaller screens */
    }

    

    .events-title {
        font-size: 2em; /* Reduce the size but not too much */
    }

    .events-subtitle {
        font-size: 1.5em; /* Slightly smaller subtitle */
    }

    .view-calendar-btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .careers-overlay {
      width: 90%;
    }

.valued-partners-section p {
    padding-left: 20px;
    padding-right: 20px;
}
    

    .tour-overlay {
        padding: 20px;
        padding-bottom: 60px;
        max-width: 90%;
    }


    .tour-title {
        font-size: 2em;
    }

    .tour-subtitle {
        font-size: 1.5em;
    }

    .book-tour-btn {
        padding: 10px 20px;
        font-size: 1em;
       
    }

    .shop-subtitle {
   width: 110%;
    }
}



@media (max-width: 610px) {

    .hero-subtitle {
    padding-left: 20px;
    padding-right: 20px;
    }

    .course-button {
        width: 100px;
        height: 100px;
    }
    .leaf {
        display: none; /* Disable leaf animation on small screens */
    }

    .events-title {
        font-size: 2em;
    }

    .events-subtitle {
        font-size: 1.5em;
    }

    .events-small-image {
        width: 250px;
    }

    .view-calendar-btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    .careers-title {
        font-size: 2em;
    }

    .careers-subtitle {
        font-size: 1.5em;
    }

    .apply-now-btn {
        padding: 10px 20px;
        font-size: 1em;
    }

  

  

    .tour-section {
        height: 450px; /* Further reduce height for mobile screens */
    }


}

@media (max-width: 520px) {

    .course-button {
        width: 80px;
        height: 80px;
    }

    .chalk-text {
   
        line-height: 1; /* Tighter line height for smaller screens */
    }

    .learn-more-button {
      
        padding: 10px 20px;
        
        margin-top: 20px;
       
    }

    .events-section {
        min-height: 400px; /* Further reduce height for mobile screens */
    }

    .events-title {
        font-size: 1.8em; /* Keep the title large enough */
    }

    .events-subtitle {
        font-size: 1.4em;
    }

    .view-calendar-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }










.tour-title {
        font-size: 1.8em;
    }

.tour-subtitle {
        font-size: 1.5em;
    }

.book-tour-btn {
        padding: 8px 15px;
    }

.shop-subtitle {
   width: 120%;

    }
}



.grecaptcha-badge {
    display: none;
}

/* ///////////////// FOOTER ADDRESS STYLING  ////////////////// */
.footer-address p {
    text-align: center;
    margin-top: 20px;
    
    font-size: 1.5em;
}

.footer-address a {
    color: #0ae1a4;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.3em;
    
}

.footer-address a:hover {
    color: #fbff00;
    filter: drop-shadow(0 0 5px rgb(1, 1, 1));
}

.footer-copyright {
    margin-top: 30px;
   
}