html {
    scroll-behavior: smooth;
}



body {
    background-color: lightblue;
    /* Light blue background for the entire page */
    padding-left: 5%;
    padding-right: 5%;
    text-align: justify;

}


header {
    background-color: #2b6777;
    /* Dark blue background for header */
    color: #c8d8e4;
    /* White text for contrast */
    padding: 10px;
    margin: 0;
    display: flex;
    /* Flexbox layout */
    align-items: center;
    /* Vertically center content */
    justify-content: space-between;
    /* Space between logo and text */
    position: relative;
    /* Ensure it stays above other elements */
    z-index: 10;
    /* Make header and nav appear above the images */
    border-radius: 30px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    scale: 98.5%;
    font-family: 'Arial', sans-serif;
    /* Change font style of the header text */
    font-weight: bold;
    /* Optional: make text bold */
    padding-left: 2%;
    padding-right: 2%;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        padding: 10px 5%;
        border-radius: 0px;
    }
}



/* Mobile number box styling */
.mobile-number {
    position: absolute;
    top: 10px;
    /* Adjust as needed */
    right: 20px;
    /* Adjust as needed */
    background-color: #aff6ff;
    /* Light background for visibility */
    border: 2px solid #aff6ff;
    /* Border color */
    border-radius: 15px;
    /* Rounded corners */
    padding: 5px 15px;
    /* Padding for the box */
    font-size: 16px;
    /* Font size for the number */
    font-weight: bold;
    /* Make the number stand out */
    color: #333;
    /* Text color */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    /* Subtle shadow */
}

@media (max-width: 768px) {
    .mobile-number {
        font-size: 14px;
        /* Slightly smaller font */
        right: 10px;
        /* Adjust for smaller screens */
    }
}


/* Make the number clickable */
.mobile-number a {
    text-decoration: none;
    color: inherit;
    /* Inherits color from the box */
    padding: 5px;

}






















/* Styling for the logo */
header .logo {
    width: 5%;
    height: 5%;
    margin-left: 1%;
    transition: transform 0.3s ease;
    /* Smooth transition for both expanding and contracting */
}

@media (max-width: 768px) {
    header .logo {
        width: 25%;
        height: auto;
        margin: 0 auto;
        padding: 0px;
        border-radius: 50%;
        /* Optional: to make the logo circular */
        margin-left: 1%;

    }
}


/* Class to expand */
header .logo.expand {
    transform: scale(1.1);
    /* Expanded size */
}

/* Class to contract (back to normal) */
header .logo.contract {
    transform: scale(1);
    /* Normal size */
}
















nav:first-of-type ul {
    list-style-type: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    width: 100%;
    /* Make sure the navigation takes up the full width */
    margin-top: 5%;
}




nav:first-of-type ul li {
    display: inline;
    position: relative;
    /* To position the dropdown */
    padding: 10px;
    transition: transform 0.3s ease;
    /* Zoom effect */
}



nav:first-of-type ul li:hover {
    transform: scale(1.1);
    /* Zoom in effect on hover */
}

nav:first-of-type a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}



/* Dropdown Menu Styling */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2b6777;
    /* Dark blue with 80% opacity */
    padding: 10px;
    width: 200px;
    z-index: 15;
    /* Ensure the dropdown appears above other elements, but below header */
    opacity: 80%;
}

nav:first-of-type ul li:hover .dropdown {
    display: block;
    /* Show dropdown on hover */
}

.dropdown a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 5px 0;
}

.dropdown a:hover {
    background-color: #72756b;
}







/* Initial logo style */
#logo {
    transition: all 0.3s ease;
}

/* Style for the logo after scroll */
.scrolled #logo {
    content: url('img/qwerty-logo-small.png');
    /* Change to your new logo */
    width: 100px;
    /* Optional: resize logo */
}






























section h2,
footer {
    background-color: #2b6777;
    /* Dark blue background for section headings */
    color: white;
    /* White text for contrast */
    padding: 10px;
    margin: 0;
    border-radius: 30px;
}

section {
    padding: 20px;
}

footer {
    text-align: center;
    scale: 98%;
}



/*----------------------------------photo and overlay text section------------------------------------------------------*/





.photo-section {
    position: relative;
    width: 100%;
    height: 70vh;
    /* Adjust height as needed */
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 30px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    transform: scale(0.985);
    /* Slight scaling for styling */
}

.desktop-slideshow {
    display: block;
    /* Default for desktop */
    position: relative;
    height: 100%;
    /* Ensures it fills the photo-section */
}

.desktop-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: opacity 1s ease-in-out;
    /* Smooth fade transition */
}

.hidden {
    opacity: 0;
    /* Hide the slide */
    z-index: 0;
}

.visible {
    opacity: 1;
    /* Show the slide */
    z-index: 1;
    /* Ensure visible slide is above others */
}

.overlay-text {
    position: absolute;
    top: 17%;
    /* Adjust positioning as needed */
    left: 25%;
    transform: translate(-50%, -52%);
    z-index: 2;
    text-align: left;
    opacity: 0;
    /* Initially hidden */
    animation: fadeInFromLeft 1s forwards;
    /* Fade-in animation */
}

@keyframes fadeInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-55%) translateY(-52%);
        /* Start from left */
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(-52%);
        /* End at center */
    }
}

.overlay-text h2 {
    font-size: 2.5em;
    /* Adjust size */
    color: #9e9e9e;
    word-spacing: 0;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.overlay-text h1 {
    font-size: 5em;
    /* Adjust size */
    color: white;
    margin: 0;
    padding: 0;
}

.overlay-text p {
    font-size: 2.5em;
    /* Adjust size */
    color: #9e9e9e;
    margin: 0;
    padding: 0;
}

/* Static mobile image */
.mobile-image {
    display: none;
    /* Hidden by default (for desktop) */
}

.mobile-image img {
    width: 100%;
    height: 1000px;
}





/*--------------------------------------ph0to and overlay section ends here----------------------------------------*/























































































.enquiry-box {
    position: absolute;
    top: 150px;
    /* Adjust to your preference */
    right: 150px;
    /* Adjust to your preference */
    background-color: rgba(255, 255, 255, 0.5);
    /* 50% transparent */
    padding: 20px;
    /* Increase padding for more height */
    border-radius: 15px;
    width: 250px;
    height: auto;
    /* Allow the height to grow with content */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    /* Stack the internal elements vertically */
    justify-content: space-between;
    /* Ensure there's no unwanted space between elements */
}

.enquiry-box:hover {
    background-color: rgba(255, 255, 255, 1);
    /* Fully visible on hover */
}

.enquiry-box p {
    margin: 0 0 10px 0;
    font-weight: bold;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    /* Change font style of the header text */
    font-weight: bold;
    /* Optional: make text bold */
    font-size: large;
}

.enquiry-box form {
    display: flex;
    flex-direction: column;
    gap: 0px;
    /* Reduced gap to remove space between internal elements */
    margin-top: 0px;
    /* Add top margin for spacing above form */
}

.enquiry-box input,
.enquiry-box button {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;

}

.enquiry-box button {
    background-color: #2b6777;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.enquiry-box button:hover {
    background-color: #1d4c5a;
}



h4 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 24px;
    color: black;
    text-align: center;
}

input {
    width: auto;
    padding: 5px;
    margin-bottom: 10px;
}

textarea {
    width: auto;
    padding: 5px;
}

#submit {
    border: none;
    background-color: #1d4c5a;
    color: white;
    width: auto;
    margin-top: 5px;
    border-radius: 5px;
}
























.login-box {
    position: absolute;
    top: 450px;
    /* Adjust this value to place the login box just below the enquiry box */
    right: 150px;
    /* Same right alignment as the enquiry box */
    background-color: rgba(255, 255, 255, 0.5);
    /* Same background transparency as the enquiry box */
    padding: 20px;
    border-radius: 15px;
    width: 250px;
    /* Same width as enquiry box */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.login-box:hover {
    background-color: rgba(255, 255, 255, 1);
    /* Fully visible on hover */
}

.login-box p {
    margin: 0 0 10px 0;
    font-weight: bold;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: large;
}

.login-box form {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-top: 10px;
}

.login-box input,
.login-box button {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-box button {
    background-color: #2b6777;
    /* Green button for login */
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.login-box button:hover {
    background-color: #1d4c5a;
    /* Darker green on hover */
}

.login-box input[type="text"],
.login-box input[type="password"] {
    margin-bottom: 10px;
    /* Space between inputs */
}













.container1 {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    max-height: 300px;
    display: none;
}













.box {
    flex: 1;
    margin: 10px;
    border-radius: 8px;
    overflow: hidden;
}


.header {
    background-color: #2b6777;
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.content {
    background-color: #c8d8e4;
    padding: 10px;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.content p {

    padding: 5px;
}

.content-desktop-only {
    display: block;
}

.content-mobile-only {
    display: none;
}



.content p:hover {
    background-color: #b5cfe4;
    padding: 5px;
    cursor: pointer;
}




.enquiry form {
    display: flex;
    flex-direction: column;
    max-height: 220px;
    /* Adjust this value as needed */
    overflow-y: auto;
    margin: 0;
}

.enquiry label {
    margin-bottom: 0px;
    line-height: 0;
    padding-bottom: 0;
    padding-top: 5px;
    /* Add space above the label */
}

.enquiry label+input,
.enquiry input,
.enquiry textarea {
    margin-bottom: 0px;
    line-height: 0;
    padding: 2px 0;
    height: 100px;
    /* Adjust this value to make the message box taller */
}

.enquiry input[type="submit"] {
    background-color: #2b6777;
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
}










/* Container for the social icons */
.social-icons {
    position: fixed;
    /* Use fixed to keep the icons at the top-right of the screen */
    top: 20px;
    /* Distance from the top of the page */
    right: 20px;
    /* Distance from the right edge of the page */
    z-index: 1000;
    /* Ensure it appears on top of other elements */
    padding: auto;
    margin-bottom: 100px;
}

/* Styling for individual icons */
.icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    background-color: lightblue border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Specific icon styles */
.home {
    background-image: url('img/social_icons/home.png');
    /* Facebook icon */
    background-size: cover;
}

.facebook {
    background-image: url('img/social_icons/facebook.png');
    /* Facebook icon */
    background-size: cover;
}

.instagram {
    background-image: url('img/social_icons/instagram.png');
    /* Instagram icon */
    background-size: cover;
}

.youtube {
    background-image: url('img/social_icons/Youtube.png');
    /* Youtube icon */
    background-size: cover;
}

.whatsapp {
    background-image: url('img/social_icons/whatsapp.png');
    /* WhatsApp icon */
    background-size: cover;
}

/* On hover, icons grow */
.icon:hover {
    transform: scale(1.5);
}














/* Styling the right section (Introduction Text) */
.about {
    flex: 1;
    /* Takes up the other half of the page */
    max-width: 100%;
    /* Ensures it doesn't exceed half the width */
    padding-left: 20px;
    /* Adds some padding to the left for spacing */
    text-align: justify;
    /* Makes text alignment more readable */
    font-family: Arial, Helvetica, sans-serif;

}

.about h2 {
    font-size: 24px;
    /* Larger font size for heading */
    color: #123456;
    /* Dark blue color */
}

.about p {
    font-size: 16px;
    /* Set a comfortable font size */
    color: red;
    /* Dark text color for readability */
}




/* Styling for the content container on the right half */
.intro {
    width: 45%;
    /* Takes up the right half */
    position: absolute;
    top: 10;
    right: 0;
    padding: 20px;
    background-color: #f4f4f9;
    /* Light background color */
    overflow: auto;
    /* Ensures scrollability if content overflows */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    /* Slight shadow for separation */
}

/* Styling for the content container on the right half */
.intro {
    width: 45%;
    /* Takes up the right half */
    position: absolute;
    top: 10;
    right: 0;
    padding: 20px;
    background-color: light blue;
    /* Light background color */
    overflow: auto;
    /* Ensures scrollability if content overflows */
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    /* Slight shadow for separation */
}

.intro p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.intro strong {
    color: #555;
    /* Emphasizes bold text */
}

.intro ul {
    margin: 10px 0;
    padding-left: 20px;
}

.intro li {
    font-size: 16px;
    color: #444;
}

/* Styling for the advertisement grid */


.achievement-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 20px;
    margin-top: 20px;
}

.achievement-item {
    perspective: 1000px;
    /* Add perspective for the 3D effect */
}














.results-slider {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 700px;
    position: relative;
}

.results-track {
    display: flex;
    transition: transform 2s ease-in-out;
    /* Smooth sliding transition */
    height: 100%;
}

.results-item {
    min-width: 100%;
    /* Each item takes up 100% of the slider width */
    box-sizing: border-box;
    height: 100%;
    overflow: hidden;
}

.image-container {
    position: relative;
    height: 100%;
}

img {
    width: 100%;
    /* Ensure the image takes up full width */
    height: auto;
    object-fit: cover;
    /* Maintain aspect ratio */
    display: block;
}

/* Fixed buttons for each image */
.titles {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    z-index: 10;
    /* Ensure the titles are above images */
}

.image-title {
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent background */
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.image-title:hover {
    background-color: rgba(0, 0, 0, 0.8);
    /* Darker background on hover */
    cursor: pointer;
}


















#facilities {
    text-align: left;
    align-content: center;
}

#facilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
    margin-top: 20px;
    margin-left: 200px;
}

.thumbnail1 {
    position: relative;
    width: 40%;
    overflow: hidden;
    perspective: 1000px;

}

.thumbnail1 .inner {
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    position: relative;
}

.thumbnail1:hover .inner {
    transform: rotateY(180deg);
}

.thumbnail1 img {
    display: block;
    width: 100%;
    backface-visibility: visible;
}

.thumbnail1 .back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.title {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
}











#programs-container {
    margin-top: 20px;
}

#programs {
    margin-top: 20px;
    display: flex;
    border: 1px solid #ccc;
    height: 300px;
    overflow: hidden;
}

#tabs {
    width: 20%;
    background-color: #f7f7f7;
    border-right: 1px solid #ccc;
}

.tab {
    padding: 15px;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

.tab:hover {
    background-color: #e0e0e0;
}

.tab.active {
    background-color: #ddd;
    font-weight: bold;
}

#tab-content {
    width: 80%;
    padding: 15px;
    overflow-y: auto;
    height: 100%;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}



























.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.event {
    cursor: pointer;
    position: relative;
}

.thumbnail {
    position: relative;
}

.thumbnail img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}



@media (max-width: 768px) {
    .overlay {
        position: absolute;
        text-align: center;
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 10px;
        font-size: 10px;
    }
}


























#photo-gallery {
    height: 100vh;
    /* Make the section take full screen height */
    
    flex-direction: column;
    justify-content: flex-start;
    /* Align content at the top */
    align-items: center;
    /* Center horizontally */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    width: 100%;

    padding: 0px;
    /* Optional: padding */
    overflow-y: auto;
    /* Enable vertical scrolling */
    flex-grow: 1;
    /* Allow the grid to take up the remaining height */
    max-height: calc(100vh - 60px);
    /* Adjust height for the gallery grid (subtracting space for other elements like header) */
}



.event {
    cursor: pointer;
    text-align: center;
    height: 250px;
    /* Set height for each grid item */
    overflow: hidden;
    /* Hide any overflow from the image */
}

.event img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Make the image cover the grid item */
    border-radius: 10px;

}

.modal {
    display: none;
    /* Initially hidden */
    position: fixed;
    /* Ensures the modal is fixed relative to the viewport */
    top: 0;
    left: 0;
    margin-right: 30%;
    width: 90vw;
    /* Full width of the viewport */
    height: 100vh;
    /* Full height of the viewport */
    background-color: rgba(0, 0, 0, 0.8);
    /* Semi-transparent black background */
    z-index: 1000;
    /* Very high value to ensure it overlays all other content */
    overflow-y: auto;
    /* Allows scrolling if content overflows */
}





















.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 70%;
    max-width: 90%;
    background-color: white;
    border-radius: 5px;
    text-align: center;
}

.modal-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    overflow-y: auto;
}






















.modal-content img {
    width: 100%;
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}


.thumbnail {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.thumbnail img {
    display: block;
    width: 100%;
    transition: transform 0.3s, filter 0.3s;
}

.thumbnail:hover img {
    transform: scale(1.1);
    filter: brightness(60%);
}








.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width:100%;
    height: fit-content;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    font-size: 18px;
    top: 0;
    
}






.close {
    position: absolute;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    z-index: 1001;
}

.close.top-right {
    right: 20px;
    top: 20px;
}

.close:hover,
.close:focus {
    color: #ccc;
    text-decoration: none;
}









































@media (max-width: 768px) {

    /*styling for photo gallery*/


    #photo-gallery {
        height: 100vh;
        /* Make the section take full screen height */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Align content at the top */
        align-items: center;
        /* Center horizontally */
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        margin-top: 20px;
        display: grid;
        /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
        gap: 20px;
        width: 100%;

        padding: 0px;
        /* Optional: padding */
        overflow-y: auto;
        /* Enable vertical scrolling */
        flex-grow: 1;
        /* Allow the grid to take up the remaining height */
        max-height: calc(100vh - 60px);
        /* Adjust height for the gallery grid (subtracting space for other elements like header) */
    }

    .event {
        cursor: pointer;
        text-align: center;
        height: auto;
    }

    .event img {
        width: 100%;
        height: 180px;
        border-radius: 10px;

    }

    .modal {
        display: none;
        /* Initially hidden */
        position: fixed;
        /* Ensures the modal is fixed relative to the viewport */
        top: 0;
        left: 0;
        margin-right: 30%;
        width: 90vw;
        /* Full width of the viewport */
        height: 100vh;
        /* Full height of the viewport */
        background-color: rgba(0, 0, 0, 0.8);
        /* Semi-transparent black background */
        z-index: 9999;
        /* Very high value to ensure it overlays all other content */
        overflow: auto;
        /* Allows scrolling if content overflows */
    }



    .modal-content {
        position: relative;
        margin: 5% auto;
        padding: 20px;
        width: 80%;
        max-width: 90%;
        background-color: white;
        border-radius: 5px;
        text-align: center;
    }

    .modal-image {
        max-width: 100%;
        height: auto;
        margin: 10px 0;
    }

    .modal-content img {
        width: 100%;
        margin-bottom: 10px;
    }

    .close {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        cursor: pointer;
    }


    .thumbnail {
        position: relative;
        display: inline-block;
        overflow: hidden;
    }

    .thumbnail img {
        display: block;
        width: 100%;
        transition: transform 0.3s, filter 0.3s;
    }

    .thumbnail:hover img {
        transform: scale(1.1);
        filter: brightness(60%);
    }



    .close {
        position: absolute;
        color: #fff;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        text-align: center;
        z-index: 1001;
    }

    .close.top-right {
        right: 20px;
        top: 20px;
    }

    .close:hover,
    .close:focus {
        color: #ccc;
        text-decoration: none;
    }

}










/* Styling for team members */

/* Basic styling for the About Us section */
#team {
    text-align: left;
    padding: 50px 20px;
    background-color: lightblue;
    margin: 0 auto;
    /* Center the section */

}

#team h2 {
    margin-bottom: 20px;
    color: White;
}







/* Team section1 styling */
.team-section1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 3 columns */
    gap: 5px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
    /* Takes up half of the page */
    max-width: 100%;
    /* Ensures it doesn't exceed half the width */
}

.team-member1 {
    background-color: #8AC7DB;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: calc(300% / 6 * 1.5);
    /* 1.5 times the size */
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.team-member1:hover {
    transform: translateY(-10px);
}

.team-photo {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.team-member1 h3 {
    font-size: 24px;
    margin-top: 15px;
    color: #555;
}

.team-member1 p {
    font-size: 18px;
    color: #777;
    margin: 5px 0;
}

/* Styling the main section with two halves */
.main-container {
    display: flex;
    /* Display items side by side */
    justify-content: space-between;
    margin-top: 20px;
}




/* Initially hide the team-section */
.team-section {
    display: none;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 100px;
    max-width: 100%;
}

.team-member {
    flex: 0 0 12.5%;
    /* 8 team members per row */
    text-align: center;
    transition: transform 0.3s ease;
}

.team-photo {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 100%;
    margin-bottom: 10px;
    margin:auto;
}

.team-member h3 {
    font-size: 14px;
    margin: 5px 0;
}

.team-member p {
    font-size: 12px;
    margin: 0;
    color: #666;
}

.team-member:hover {
    transform: scale(1.1);
}

.button-container {
    text-align: center;
    margin-top: 20px;
}

#toggleButton {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background-color: #2b6777;
    color: white;
    border: none;
    border-radius: 5px;
}

#toggleButton:hover {
    background-color: #0056b3;
}

/* Media queries for responsiveness */
@media (max-width: 1200px) {
    .team-member {
        flex: 0 0 15%;
        /* Adjust to 6 per row on larger screens */
    }
}

@media (max-width: 768px) {
    .team-section {
        max-width: 100%;
        margin-bottom: 20px;
    }
}


/* Initial state: hidden and below the normal position */
.section-slide {
    opacity: 0.1;
    transform: translateY(100px);
    /* Start 100px below the final position */
    transition: opacity 1s ease, transform 1s ease;
    will-change: transform, opacity;
}

/* When section becomes visible, slide it up and make it fully opaque */
.section-slide.visible {
    opacity: 1;
    transform: translateY(0);
    /* Slide up to the normal position */
}


/* General Styles */
nav {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Hide the first navigation on mobile view */
nav:first-of-type {
    display: block;
    /* Default: show in desktop view */
}

nav:nth-of-type(2) {
    display: none;
    /* Default: hide in desktop view */
}

footer {
    border-radius: 0;
}

































































/* ----------------------------------------------------------Mobile View Styles---------------------------------------------------------- */


@media (max-width: 768px) {



    body {
        background-color: lightblue;
        /* Light blue background for the entire page */
        padding-left: 0%;
        padding-right: 0%;
        margin: 0;
        padding: 0;
        font-family: Arial, sans-serif;
    }










    .social-icons {
        display: none;
    }

    section h2,
    footer {
        text-align: center;
        font-size: 20px;
    }

    /*main display image*/
    img {
        margin-top: 0px;
    }

    .desktop-slideshow {
        display: none;
        /* Hide slideshow for mobile */
    }

    .mobile-image {
        display: block;
        /* Show static mobile image */
    }

    .photo-section {
        border-radius: 0;
        /* Remove border radius for mobile */
        height: 90vh;
    }

    .overlay-text {
        top: 20%;
        /* Adjust as needed */
        left: 40%;
        /* Centered on mobile */
        transform: translate(-50%, -50%);
        text-align: left;
        /* Center align text */
        font-size: x-small;
        z-index: 2;
        opacity: 0;
        /* Initially hidden */
        animation: fadeInFromLeft 1s forwards;
        /* Fade-in animation */
        position: absolute;
    }

    .overlay-text h2 {
        color: #d4d4d4;
    }

    .overlay-text h1 {
        color: rgb(255, 255, 255);
        font-weight: 700;
    }

    .overlay-text p {
        color: #ffe600;
    }








    .slideshow-social-icons {
        position: absolute;
        bottom: 20px;
        left: 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        z-index: 10;
        margin-bottom: 6%;
    }

    .slideshow-social-icons .icon {
        width: 40px;
        height: 40px;
        background-size: cover;
        border-radius: 50%;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .slideshow-social-icons .icon:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Add background images for each icon */
    .slideshow-social-icons .whatsapp {
        background-image: url('img/social_icons/whatsapp.png');
    }

    .slideshow-social-icons .facebook {
        background-image: url('img/social_icons/facebook.png');
    }

    .slideshow-social-icons .instagram {
        background-image: url('img/social_icons/instagram.png');
    }

    .slideshow-social-icons .youtube {
        background-image: url('img/social_icons/Youtube.png');
    }





















    /*--------------------------------------------hamburger style------------------------------------------------*/
    nav:first-of-type {
        display: none;
        /* Hide first navigation */
    }

    nav:nth-of-type(2) {
        display: block;
        size: 40px;
        /* Show second navigation */
    }


    .hamburger {
        position: absolute;
        top: 0%;
        right: 20px;
        width: 30px;
        height: 0px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        font-size: xx-large;
        margin-top: 50px;
    }

    .hamburger div {
        width: 100%;
        height: 10px;
        background-color: #333;
        border-radius: 2px;
    }

    /* Dropdown menu styles */
    .dropdown-menu {
        position: absolute;
        top: 110px;
        /* Adjust to appear below the hamburger */
        right: 20px;
        width: 199px;
        height: auto;
        background-color: #ffffff;
        border-radius: 15px;
        box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        display: none;
        /* Hidden by default */
        z-index: 9999;



    }



    .dropdown-Menu {
        visibility: hidden;
        opacity: 0;
        transition: visibility 0s, opacity 0.3s;
        pointer-events: none;

    }

    .dropdown-Menu.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }



    .dropdown-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .dropdown-menu li {
        text-align: center;

    }

    .dropdown-menu a {
        color: darkblue;
        text-decoration: none;
        display: block;
        padding: 10px;
        font-size: large;
        text-align: center;
    }

    .dropdown-menu a:hover {
        background-color: #c0c0c0;
    }



    /*--------------------------------------------hamburger style ends here------------------------------------------------*/




    .login-box {
        display: none;
    }


















    /*-----------------------------------------------------------below this there is no problem------------------------------------------------------------------------------*/








    .main-container {
        flex-direction: column;
        /* Stack the sections vertically on smaller screens */
    }

    .team-section {
        max-width: 100%;
        /* Ensures team section takes full width on smaller screens */
        margin-bottom: 20px;
        /* Adds space between sections */
    }

    .introduction {
        max-width: 100%;
        /* Ensures introduction section takes full width on smaller screens */
    }

    .main-container>.team-section {
        border-right: none;
        /* Removes vertical line on mobile */
    }








    .enquiry-box {
        margin-top: -145px;
        top: 80%;
        /* Adjust to your preference */
        right: 6%;
        /* Adjust to your preference */
        width: 160px;
    }

    .login-box {
        top: 35%;
        /* Adjust this value to place the login box just below the enquiry box */
        right: 6%;
        /* Same right alignment as the enquiry box */
        width: 200px;
        /* Same width as enquiry box */
    }



    .content {
        font-size: 13px;
        font-family: sans-serif
    }

    .image-title {
        background-color: rgba(0, 0, 0, 0.6);
        color: white;
        padding: 5px;
        cursor: pointer;
        font-size: 15px;
        border: none;
        border-radius: 5px;
        transition: background-color 0.3s;
    }

    #facilities-grid {


        gap: 20px;
        margin-top: 20px;
        margin-left: 45px;
        align-items: center;
        grid-template-columns: repeat(2, 1fr);
    }



    .thumbnail1 {
        position: relative;
        width: 50%;
        overflow: hidden;
        perspective: 1000px;
    }

    .modal {

        width: 100vw;
        /* Full width of the viewport */

    }

    .team-section1 {

        max-width: 100%;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 20px;
    }

    .image-container {
        position: relative;
        height: 100%;
        margin-top: 81px;
    }



    /*-------------------------------------------- Team section1 styling ---------------------------------------------*/
    .team-section1 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 3 columns */
        gap: 5px;
        margin-top: 10px;
        margin-left: auto;
        margin-right: auto;
        flex: 1;
        /* Takes up half of the page */
        max-width: fit-content;
        /* Ensures it doesn't exceed half the width */

    }

    /*----------------------------------------our program tabs------------------------------------------------*/
    #tabs {
        width: 90%;
        background-color: #f7f7f7;
        border-right: 1px solid #ccc;
    }

    .tab {
        padding: 15px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
        text-align: left;
        height: 28px;
    }


    .event img {

        height: auto;


    }

    #tab-content {
        width: 80%;
        padding: 15px;
        overflow-y: auto;
        height: 95%;
        font-size: smaller;
    }

    #programs-container {
        margin-top: 20px;
    }

    /* Set up the container for horizontal scrolling */
    .container1 {
        display: flex;
        /* Use flexbox for layout */
        overflow-x: scroll;
        /* Enable horizontal scrolling */
        scroll-snap-type: x mandatory;
        /* Snap to each box */
        width: 100vw;
        /* Full viewport width */
        height: auto;
        /* Full viewport height */
        margin: 0;
        padding: 0;
        display:none;
    }

    /* Style each box to take up the full screen */
    .container1 .box {
        scroll-snap-align: start;
        /* Align each box at the start */
        flex: none;
        /* Prevent flex shrinking or growing */
        width: 70vw;
        /* Full viewport width */
        height: 280px;
        /* Full viewport height */
        display: flex;
        /* For content alignment */
        flex-direction: column;
        justify-content: center;
        /* Center vertically */
        align-items: center;
        /* Center horizontally */
        box-sizing: border-box;
        /* Include padding and border in width/height */
    }


    /* Add styles for the header */
    .box .header {
        font-size: 1rem;
        font-weight: bold;
        margin-bottom: 0rem;
        width: 100%;
    }

    /* Style the content */
    .box .content {
        font-size: 1rem;
        text-align: left;
        padding: 1rem;
        overflow-y: auto;
        /* Add vertical scrolling if content is too long */
    }

    .content-desktop-only {
        display: none;
        /* Hide full content */
    }

    .content-mobile-only {
        display: block;
        /* Show summarized content */
        font-size: 14px;
        /* Adjust text size for mobile readability */
        line-height: 1.6;
    }
    
    .close {
    color: red;
    }
    
    .title {
    font-size: small;
    }
    
    
    
}