html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden; /* Ensure no horizontal scrolling */
}

/* ///////////////////////////////////////////////// About Hero Banner Section Styles /////////////////////////////////////////////////*/
.hero-banner {
    position: relative;
    padding-top: 60px;
    width: 100%;
    height: 600px; /* Original height */
    overflow: hidden;
    z-index: 1;
}

.abouthero-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.abouthero-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center;
}

.text-overlay {
    position: absolute;
    top: 78%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    width: 100%; /* Adjust width */
    padding: 0 10px; /* Add padding to avoid text touching the edges */
}

.text-overlay h1 {
    font-size: 3em; /* Original font size */
    font-weight: bold;
    margin-bottom: 0;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.933));
}



.text-overlay p {
    font-size: 1.5em; /* Original font size */
    font-weight: normal;
    margin-top: 0;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.933));
}

/* ///////////////////////////////////////////////// Combined Mission and Bio Section Styles ///////////////////////////////////////////////// */
.bio-section {
    background-color: #ffffff;
    padding: 50px 20px;
    display: flex;
    justify-content: center;
}

.bio-container {
    max-width: 900px;
    color: #696969; /* Light grey color for the text */
    line-height: 1.6;
    font-size: 1.2em; /* Adjust for readability */
    text-align: justify;
}

.bio-container h2 {
    font-size: 2em;
    margin-bottom: 20px;
    text-align: center;
    color: #333333;
}

.bio-container p {
    margin-bottom: 20px;
}

/* >>>>>>>>>>>>>>>>>>> Media query for smaller screens 764px and below <<<<<<<<<<<<<<<<<<<<<*/
@media (max-width: 764px) {
    .hero-banner {
        height: 500px; /* Reduce the height by 100px */
    }
    .abouthero-container img {
        object-fit: contain; /* Change to contain to show more of the image */
        object-position: top center; /* Position the image to show more of the upper part */
    }

    .text-overlay {
        width: 90%; /* Increase the width */
    }
    
    .text-overlay h1 {
        font-size: 30px; /* Reduce the font size to help keep the text on two lines */
        padding: 0 20px; /* Add some padding */
        margin: 0 auto; /* Center the text */
    }
    
    .text-overlay p {
        font-size: 1.25em; /* Adjust font size */
    }

    .bio-container {
        font-size: 1em; /* Slightly smaller font size for mobile */
        padding: 0 20px; /* Add padding to prevent text from touching the screen edges */
    }

    .bio-container h2 {
        font-size: 1.75em;
    }
}


/* ///////////////////////////////////////////////// Responsive Styles ///////////////////////////////////////////////// */

/* >>>>>>>>>>>>>>>>>>> Media query for smaller screens 764px and below <<<<<<<<<<<<<<<<<<<<<*/
@media (max-width: 764px) {
    .menu-toggle {
        display: flex;
        padding-right: 20px;
    }

    nav ul {
        display: flex;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s ease, visibility 0.5s ease; /* Transition for fade-in/fade-out effect */
    }

    nav ul.show {
        opacity: 1;
        visibility: visible;
    }

    nav li {
        margin-right: 0;
        margin-bottom: 20px;
    }

    nav a {
        text-shadow: 8px 8px 15px rgba(0, 0, 0, 0.776); /* Text shadow effect */
    }

    .logo-overlay img {
        padding-left: 20px;
    }


    .text-overlay {
        padding: 0 5px; /* Reduced padding */
    }
    
    .text-overlay h1 {
        letter-spacing: 0.5px; /* Increased letter spacing */
        line-height: 1.2; /* Adjusted line height */
    }

    .text-overlay h1 {
        width: 100%; /* Increase the width */
        font-size: 2em;
        margin: 0;
        padding: 0;
        
    }
    .text-overlay p {
        width: 100%; /* Increase the width */
        padding: 0 2px; /* Increase padding */
        font-size: 1.25em; /* Adjust font size */
    }

}

/* >>>>>>>>>>>>>>>>>>> Media query for smaller screens 460px and below <<<<<<<<<<<<<<<<<<<<<*/
@media (max-width: 420px) {
    .hero-banner {
        height: 400px; /* Further reduce the height */
    }

    .hero-banner img {
        width: auto; /* Ensure the image scales properly */
        height: 400px;
        object-position: bottom center; /* Position the image to show more of the upper part */
    }

    .text-overlay {
        width: 90%; /* Ensure the text has enough width */
    }
    
    .text-overlay h1 {
        font-size: 28px; /* Further reduce the font size to keep the text on two lines */
        padding: 0 15px; /* Add padding to give the text more room */
        margin: 0 auto; /* Center the text */
    }
    
    .text-overlay p {
        font-size: 1.25em; /* Adjust font size */
 
    }
}
