* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(to right, #003366, #0059b3);
    color: white;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
}

.logo img {
    height: 60px;
}

.site-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
}

.site-title h1 {
    font-size: 24px;
    margin: 0;
}

nav {
    margin-top: 15px;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 12px 18px;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.nav-list > li > a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    background: white;
    top: 100%;
    left: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    min-width: 200px;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 15px;
    color: #003366;
    text-decoration: none;
}

.dropdown-menu li a:hover {
    background: #e6f2ff;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    padding: 10px;
    margin-left: auto;
}

/* Fade Image Slider */
.fade-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 472;
    background: #fff;
    overflow: hidden;
}

.fade-slider .fade-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: fadeAnimation 25s infinite;
}

.fade-slider .fade-slide:nth-child(1) { animation-delay: 0s; }
.fade-slider .fade-slide:nth-child(2) { animation-delay: 5s; }
.fade-slider .fade-slide:nth-child(3) { animation-delay: 10s; }
.fade-slider .fade-slide:nth-child(4) { animation-delay: 15s; }
.fade-slider .fade-slide:nth-child(5) { animation-delay: 20s; }

@keyframes fadeAnimation {
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    20%  { opacity: 1; }
    28%  { opacity: 0; }
    100% { opacity: 0; }
}

main {
    padding: 40px 20px;
}

.about-school {
    margin-top: 40px;
    background: #ffffff;
    padding: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    animation: fadeInUp 1.2s ease forwards;
    opacity: 0;
}

.about-school h2 {
    margin-bottom: 20px;
    color: #003366;
    font-size: 28px;
}

footer {
    background: #003366;
    color: white;
    text-align: center;
    padding: 15px 10px;
    margin-top: 40px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Mobile Styles */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .site-title {
        position: static;
        transform: none;
        flex: 1;
        text-align: center;
        margin: 0 10px;
        font-size: 20px;
    }

    nav {
        margin-top: 0;
        width: 100%;
    }

    .nav-list {
        flex-direction: column;
        display: none; /* Hidden by default */
        width: 100%;
        background: linear-gradient(to right, #003366, #0059b3);
        border-radius: 0 0 10px 10px;
        padding: 0;
        margin: 0;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list > li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .nav-list > li > a {
        padding: 15px;
        display: block;
        border-radius: 0;
        font-size: 18px;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: none;
        min-width: 100%;
        border-radius: 0;
        display: none;
    }

    .dropdown.active > .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 12px 20px;
        color: #003366;
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }
}
