body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f9fa;
    color: #222;
}

header {
    background: #005baa;
    color: #fff;
    padding-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.container {
    display: flex;
    align-items: center;
    padding: 20px 5%;
}

.logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-right: 20px;
}

.school-info h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

.school-info .society {
    margin: 5px 0 0 0;
    font-size: 1rem;
    color: #e0e0e0;
}

nav {
    background: #004080;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 5%;
    display: flex;
    gap: 30px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 0;
    display: block;
    transition: color 0.2s;
}

nav a:hover {
    color: #ffd700;
}

.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #e3f0ff;
    padding: 40px 5%;
    gap: 30px;
}

.hero-img {
    width: 350px;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,91,170,0.08);
}

.hero-text {
    flex: 1;
    min-width: 250px;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

main {
    padding: 30px 5%;
}

.about, .gallery, .contact {
    margin-bottom: 40px;
}

.gallery-images {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px 0;
}

.gallery-images img {
    width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,91,170,0.15);
    background: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: 3px solid transparent;
}

.gallery-images img:hover {
    transform: scale(1.06) translateY(-6px);
    box-shadow: 0 8px 32px rgba(0,91,170,0.25);
    border-color: #ffd700;
}

#imgModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s;
}

#imgModal img {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: 0 8px 40px #000a;
    border: 4px solid #fff;
    background: #fff;
}

#imgModal span {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 48px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 2px 8px #000a;
    transition: color 0.2s;
}
#imgModal span:hover {
    color: #ffd700;
}

@media (max-width: 900px) {
    .gallery-images img {
        width: 90vw;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .gallery-images {
        gap: 12px;
        padding: 10px 0;
    }
    .gallery-images img {
        width: 98vw;
        height: 140px;
        border-radius: 10px;
    }
    #imgModal img {
        max-width: 99vw;
        max-height: 60vh;
        border-radius: 10px;
    }
    #imgModal span {
        top: 10px;
        right: 20px;
        font-size: 36px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

footer {
    background: #003366;
    color: #fff;
    text-align: center;
    padding: 18px 0;
    font-size: 1rem;
    margin-top: 30px;
}

@media (max-width: 800px) {
    .container, .hero {
        flex-direction: column;
        text-align: center;
    }
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    .gallery-images {
        justify-content: center;
    }
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.left-logo, .right-logo {
    width: 80px; /* Adjust as needed */
    height: auto;
}

.school-info {
    flex: 1;
    text-align: center;
}

.header-flex .school-info h1,
.header-flex .school-info .society {
    margin: 0;
} 