/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@700&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ==================== HEADER & LOGO ==================== */
header {
    background: linear-gradient(135deg, #004aad 0%, #002b66 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    height: 80px;
}

.logo-container { display: flex; align-items: center; }

.site-logo {
    height: 60px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo:hover { transform: scale(1.05); }

/* ==================== NAV STYLING ==================== */
nav ul { display: flex; list-style: none; gap: 20px; align-items: center; }

nav a, .dropbtn {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 10px 5px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

nav a:hover, .dropbtn:hover { color: #ffcc00; background: rgba(255,255,255,0.1); }

/* ==================== DROPDOWN ==================== */
.dropdown { position: relative; }

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 1001;
    top: 100%;
    left: 0;
    padding: 8px 0;
    margin-top: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 10px 20px;
    display: block;
    font-size: 14px;
    transition: 0.2s;
}

.dropdown-content a:hover { background-color: #f0f8ff; color: #004aad; padding-left: 25px; }

.dropdown:hover .dropdown-content { display: block; }

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('/static/images/school_main.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 20px 0;
}

.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(35px, 6vw, 65px); margin-bottom: 20px; }

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 8% auto;
    padding: 30px;
    border-radius: 15px;
    width: 95%;
    max-width: 700px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-btn { position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; color: #555; }
.close-btn:hover { color: #dc2626; }

/* ==================== RESPONSIVE (MOBILE) ==================== */
@media (max-width: 1024px) {
    header { height: auto; padding: 15px; flex-direction: column; gap: 15px; }
    nav ul { gap: 5px; flex-wrap: wrap; justify-content: center; }
    .hero { padding-top: 180px; }
}

@media (max-width: 600px) {
    .site-logo { height: 45px; }
    .modal-content { margin: 15% auto; padding: 20px; }
    .hero { padding-top: 120px; }
}