/* Mobile styles */
@media only screen and (max-width: 768px) {

    body,
    html {
        width: 100%;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        /* Prevent horizontal scrolling */
    }

    /* Banner */
    .banner img {
        width: 100%;
        /* Make the banner image full width */
        height: auto;
        /* Keep aspect ratio */
    }

    .banner {
        padding-left: 0%;
        padding-right: 0%;
    }

    .banner_text {
        font-size: 40px;
        /* Adjust font size */
        position: relative;
        /* Position the text absolutely within the banner */
        top: 60%;
        /* Position from the top */
        left: 0%;
        /* Position from the left */
        z-index: 999;
        /* Ensure the text appears above other elements */
        color: white;
        /* Text color */
        background-color: rgba(0, 0, 0, 0.5);
        /* Semi-transparent background */
        border-radius: 5px;
        /* Rounded corners */
        max-width: 100%;
        /* Limit maximum width */
        text-align: center;
        /* Center align the text */
    }

    /* Navbar */
    .navbar {
        font-size: 14px;
        /* Adjust font size for navbar links */
        font-weight: bold;
        /* Make navbar links bold */
    }

    /* Middle section */
    .middle {
        text-align: center;
        /* Center align text */
        margin-top: 59%;
        /* Add some top margin */
        font-size: 16px;
        /* Adjust font size */
    }

    /* Slideshow container */
    .slideshow-container {
        max-width: 100% !important;
        /* Adjust maximum width for mobile version */
        margin: 0 auto;
        /* Center the slideshow */
        position: relative;
        overflow: hidden;
        padding-top: 1%;
    }

    #about-us-logo {
        width: 100px;
        /* Adjust logo size */
        height: auto;
        margin-bottom: 20px;
    }

    #h1_style {
        font-size: 24px;
    }

    .about-us-content {
        max-width: 800px;
        margin: 0 auto;
        text-align: justify;
    }

    .heading_font {
        font-weight: bold;
        margin-top: 20px;
    }

    #aboutus_para {
        margin-top: 10px;
    }

    #team-container {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        /* Make the container full width */
        margin: 0;
        /* Remove default margin */
    }

    .member {
        width: 100%;
        margin-bottom: 20px;
    }

    .member img {
        width: 80px;
        /* Adjust member image size */
        height: 80px;
        border-radius: 50%;
        margin-bottom: 10px;
    }

    .mem_name {
        font-weight: bold;
    }

    .mem_title {
        font-size: 14px;
        margin-bottom: 5px;
    }

    .mem_socials {
        margin-top: 10px;
    }

    .mem_soc_rec {
        width: 20px;
        height: 20px;
        display: inline-block;
        margin-right: 5px;
        cursor: pointer;
    }

    .mem_soc_rec:hover {
        opacity: 0.7;
    }

    /* Slideshow container */
    .slideshow-container {
        max-width: 100%;
        /* Adjust maximum width */
    }

    /* Previous and next button */
    .prev,
    .next {
        padding: 12px;
    }

    /* Footer column */
    .footer-column {
        flex: 1;
        padding: 0 10px;
    }

    /* Middle section font size */
    .middle {
        font-size: 14px;
    }

    /* Navbar link padding */
    .navbar a {
        padding: 20px 2%;
    }

    /* Gallery item width */
    .gallery a {
        flex: 0 0 calc(50% - 20px);
    }

    /* Article menu width */
    .faculty_section {
        width: 30%;
    }

    .photo-square {
        max-width: 98% !important;
    }

}

/* Ensure proper rendering on smaller screens */
@media screen and (max-width: 600px) {

    /* Navbar link font size */
    .navbar a {
        font-size: 14px;
    }

    /* Footer column padding */
    .footer-column {
        padding: 0 5px;
    }

    /* Faculty section width */
    .faculty_section {
        width: 45%;
    }

    /* Slideshow container width */
    .slideshow-container {
        max-width: 90%;
        /* Adjust maximum width */
    }
}