:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --background-color: #ecf0f1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
    }

    .header h1, .header h3, .header h4 {
        line-height: 2;
    }

    .header {
        padding: 15px;
    }

    .container {
        padding: 10px;
    }

    .management-message {
        flex-direction: column;
        align-items: center;
    }

    .principal-message {
        flex-direction: column; 
        align-items: center; 
    }

    .facility-container {
        flex-wrap: wrap;
        justify-content: space-around;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }

    h3, h4 {
        font-size: 1.2em;
    }
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
}

header {
    background-color: var(--secondary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin: 0;
    
}

header h1, header h3, header h4 {
    word-wrap: break-word;
    white-space: nowrap;
    
}

pre {
    word-wrap: break-word; /* Break long words if they overflow */
    white-space: nowrap;
}

nav {
    background-color: var(--primary-color);
    padding: 0.5rem;
    position: fixed;
    top: 100; /* or another appropriate value */
    left: 0;
    right: 0;
    z-index: 1000;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    position: relative;
    margin: 0 1rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    display: block;
}

nav ul li:hover > a {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    min-width: 150px;
}

nav ul li:hover > ul {
    display: block;
}

nav ul ul li {
    width: 100%;
    margin: 0;
}

.slider {
    display: block;
    width: 100%;
    max-width: 800px; /* Set a max width for the slider */
    height: 400px; /* Fixed height for the slider */
    overflow: hidden;
    position: relative;
    margin: 20px auto; /* Center the slider */
    margin-top: 60px;
    border: 2px solid;
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%; /* Adjust based on the number of slides */
}

.slide {
    min-width: 800px; /* Each slide takes full width */
    height: 400px; /* Full height of the slider */
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide img {
    display: block;
    width: 100%; /* Make image take full width */
    height: auto; /* Make image take full height */
    object-fit: cover; /* Ensure images cover the area without distortion */
    margin-top: 60px;
}

.container {
    max-width: 60%;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: justify;
    line-height: 30px;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    text-align: center;
}

footer ul {
    list-style-type: none;
    padding: 0;
}

footer ul li {
    display: inline;
    margin-right: 1rem;
}

footer ul li a {
    color: white;
    text-decoration: none;
}

.management-message {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
}

.management-member {
    text-align: center;
    max-width: 200px;
}

.member-photo {
    width: 100%;
    height: 200px;
    border-radius: 50%; /* Makes the image circular */
    padding-top: 30px;
}

.principal-message {
    display: flex;
    align-items: center; 
    text-align: justify;
}

.principal-photo-container { /* Container for photo and name */
    text-align: center; /* Center the name under the photo */
    margin-right: 30px;
}

.principal-photo {
    width: 200px; 
    height: 250px; 
    border: 5px solid #ddd; 
    box-shadow: 5px 5px 10px #888888;
}

.principal-details {
    line-height: 2.5;
}

/* Sports */
.facility-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto multiple lines */
    justify-content: space-around; /* Distribute space around items */
    padding: 20px;
}

.facility-box {
    width: 300px; /* Adjust width as needed */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 2px 2px 5px #888888; /* Add a shadow effect */
}

.facility-box img {
    width: 100%;
    height: 200px; /* Adjust height as needed */
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    border-radius: 5px 5px 0 0; /* Rounded corners at the top */
}

.facility-box h3 {
    margin-top: 10px;
}

/* Gallary */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .caption {
    opacity: 1;
}