* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ── Header ── */
header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 54px;
    width: 54px;
    object-fit: contain;
    border-radius: 6px;
    background: white;
    padding: 2px;
    flex-shrink: 0;
}

.logo-text h1 {
    font-size: 1.35rem;
    color: white;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 0.7rem;
    color: #b8cef0;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: opacity 0.25s;
    white-space: nowrap;
}

.nav-links a:hover { opacity: 0.75; }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.nav-overlay.active { display: block; }

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #1e3c72;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.slide.active { opacity: 1; }

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
}

.slide-content {
    position: relative;
    z-index: 1;
    padding: 1.4rem 2rem;
    max-width: 680px;
    background: rgba(0,0,0,0.52);
    border-radius: 12px;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.slide-content h2 {
    font-size: 2.4rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.slide-content p {
    font-size: 1.1rem;
    color: #e8e8e8;
}

.slider-nav {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dot.active { background: white; }

/* ── Section Base ── */
section {
    padding: 4rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    text-align: center;
    font-size: 2.1rem;
    margin-bottom: 2.5rem;
    color: #1e3c72;
}

h2::after {
    content: '';
    display: block;
    width: 55px;
    height: 4px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    margin: 0.6rem auto 0;
    border-radius: 2px;
}

/* ── About ── */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text { flex: 1; }

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: #444;
}

.about-image {
    flex: 1;
    min-width: 280px;
    height: 360px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Leadership ── */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 350px));
    justify-content: center;
    gap: 2.5rem;
}

.leader-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.leader-card:hover { transform: translateY(-8px); }

/* Portrait aspect ratio — fixes overstretched photos */
.leader-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.leader-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.leader-info { padding: 1.8rem; }

.leader-info h3 {
    color: #1e3c72;
    font-size: 1.55rem;
    margin-bottom: 0.25rem;
}

.leader-info .title {
    color: #2a5298;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.leader-info ul { list-style: none; margin-top: 0.5rem; }

.leader-info ul li {
    padding: 0.28rem 0 0.28rem 1.5rem;
    position: relative;
    font-size: 0.93rem;
}

.leader-info ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2a5298;
    font-weight: bold;
}

.leader-info .bio {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
    font-size: 0.88rem;
    line-height: 1.5;
}

/* ── Gallery ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}

.gallery-item {
    position: relative;
    height: 220px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.72));
    color: white;
    padding: 1.8rem 0.8rem 0.65rem;
    font-size: 0.84rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ── Modal ── */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.93);
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.close-modal {
    position: fixed;
    top: 14px;
    right: 18px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
}

.feature-card {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid #2a5298;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 14px 28px rgba(0,0,0,0.13);
}

.feature-icon { font-size: 2.6rem; margin-bottom: 0.8rem; }
.feature-card h3 { color: #1e3c72; margin-bottom: 0.4rem; font-size: 1.08rem; }
.feature-card p { color: #555; font-size: 0.9rem; }

/* ── Contact / Admission ── */
#contact { max-width: 100%; padding: 0; }

.contact-container {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 4rem 1.5rem;
}

.contact-inner { max-width: 1200px; margin: 0 auto; }

.contact-container h2 { color: white; }
.contact-container h2::after { background: rgba(255,255,255,0.45); }

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card { text-align: center; }
.contact-icon { font-size: 2.2rem; margin-bottom: 0.6rem; }
.contact-card h3 { margin-bottom: 0.35rem; font-size: 1.05rem; }
.contact-card p { font-size: 0.95rem; opacity: 0.92; line-height: 1.7; }
.contact-card a { color: white; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

.admission-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 640px;
    margin: 0 auto;
}

.admission-form h3 {
    color: #1e3c72;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 0.38rem;
    font-weight: 500;
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.72rem 0.85rem;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.93rem;
    font-family: inherit;
    transition: border-color 0.2s;
    color: #333;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2a5298;
}

.form-group textarea { resize: vertical; min-height: 85px; }

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    margin-top: 0.3rem;
}

.submit-btn:hover { opacity: 0.88; transform: translateY(-2px); }

/* ── Footer ── */
footer {
    background: #111;
    color: #999;
    text-align: center;
    padding: 2rem 1.5rem;
}

footer p { margin: 0.28rem 0; font-size: 0.88rem; }
footer a { color: #bbb; text-decoration: none; }
footer a:hover { color: white; }

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: #1a3468;
        width: 72%;
        max-width: 300px;
        height: 100vh;
        transition: left 0.3s ease;
        padding: 4.5rem 1.5rem 2rem;
        gap: 0.2rem;
        box-shadow: 4px 0 25px rgba(0,0,0,0.35);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active { left: 0; }

    .nav-links li a {
        display: block;
        padding: 0.8rem 0.5rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .menu-toggle { display: block; }

    .hero-slider { height: 380px; }
    .slide-bg { background-position: center top; }
    .slide-overlay { background: rgba(0,0,0,0.1); }
    .slide-content { padding: 0.85rem 1.1rem; border-radius: 10px; background: rgba(0,0,0,0.38); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
    .slide-content h2 { font-size: 1.25rem; }
    .slide-content p { font-size: 0.82rem; }

    nav { padding: 0.55rem 1rem; }
    .logo img { height: 44px; width: 44px; }
    .logo-text h1 { font-size: 1.05rem; }
    .logo-text p { display: none; }
    .logo { gap: 9px; }

    h2 { font-size: 1.65rem; }

    section { padding: 2.5rem 1rem; }

    .about-content { flex-direction: column; }
    .about-image { width: 100%; min-width: unset; height: 230px; }

    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
    .gallery-item { height: 150px; }
    .gallery-caption { transform: translateY(0); font-size: 0.75rem; padding-top: 2.5rem; }

    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .feature-card { padding: 1.2rem 0.9rem; }
    .feature-icon { font-size: 2rem; }
    .feature-card h3 { font-size: 0.95rem; }
    .feature-card p { font-size: 0.82rem; }

    .contact-container { padding: 2.5rem 1rem; }
    .contact-grid { gap: 1.5rem; margin-bottom: 2rem; }

    .form-row { grid-template-columns: 1fr; gap: 0; }
    .admission-form { padding: 1.5rem 1rem; }
}

@media (max-width: 400px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .slide-content h2 { font-size: 1.1rem; }
    .slide-content p { font-size: 0.78rem; }
}
