/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background: #f4f4f4;
}

header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.89);
    position: relative;
}

/* Logo in Top Left Corner */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10000;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgb(0, 0, 0);
}

/* Navigation */
nav {
    background: #030303;
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
    color: #f1c40f;
    transform: translateY(-3px);
}

nav a.active {
    color: #f1c40f;
    font-weight: bold;
}

/* Facilities Hero Section */
.facilities-hero {
    background: url('https://scontent.fisb3-3.fna.fbcdn.net/v/t39.30808-6/398876282_749467953862970_5873479073804996739_n.jpg?_nc_cat=105&ccb=1-7&_nc_sid=833d8c&_nc_eui2=AeGmE_uFWY_G0U2UqpnOr9R67XZMQVu-O0XtdkxBW747RVHvW5ypHcxzdA6D7uLqOaWKCLjLdmNWbxiS71oA4FXH&_nc_ohc=Ev0DJnTSDy0Q7kNvgH6fcw0&_nc_oc=AdjpIC3bWoS_fWLi9IwDlJ3z2yjvFNlzRAJ1JQIAHZWgbHNbjpXB3bWQtBZLg-Y9YJM&_nc_zt=23&_nc_ht=scontent.fisb3-3.fna&_nc_gid=AX-OS6HYbdXNw52f1GKjYVu&oh=00_AYAJ8yvmnXa05O_kbBhEwfjKb8AMYhOl-e6ePQsniBbzgw&oe=67C7CEFC') no-repeat center center/cover;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.facilities-hero h1 {
    font-size: 2.5rem;
    margin: 0;
}

.facilities-hero p {
    font-size: 1.2rem;
}

/* Facilities Section */
.facilities {
    padding: 40px 20px;
    background: #fff;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.facilities-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.facility-card {
    flex: 1;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    max-width: 300px;
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.facility-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.facility-card h3 {
    color: #2c3e50;
    margin: 10px 0;
}

.facility-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Teachers/Staff Section */
.teachers {
    padding: 40px 20px;
    background: #f9f9f9;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.teachers-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.teacher-card {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 250px;
    max-width: 300px;
}

.teacher-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.teacher-card img {
    width: 100%;
    border-radius: 50%;
    margin-bottom: 10px;
}

.teacher-card h3 {
    color: #2c3e50;
    margin: 10px 0;
}

.teacher-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.teacher-card.principal {
    background: #f1c40f;
    color: #2c3e50;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .logo img {
        height: 40px; /* Smaller logo for mobile */
    }

    nav a {
        font-size: 1rem; /* Smaller font for mobile */
        margin: 0 10px;
    }

    .facilities-hero h1 {
        font-size: 2rem; /* Smaller heading for mobile */
    }

    .facilities-hero p {
        font-size: 1rem; /* Smaller text for mobile */
    }

    .facility-card, .teacher-card {
        min-width: 100%; /* Full-width cards on mobile */
    }
}