/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background: #fafafa;
    color: #333;
}

/* Header */
header {
    background: #368f8b;
    color: #fff;
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav a {
    margin-left: 1rem;
    color: #fff;
    text-decoration: none;
}

/* Hero Banner */
#hero {
    background: url('school-banner.jpg') center/cover no-repeat;
    padding: 4rem 0;
    text-align: center;
    color: #fff;
}

#hero h2 {
    font-size: 2rem;
}

/* Sections */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 2rem auto;
}

.cards {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.card {
    flex: 1;
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: #368f8b;
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
}

/* Navigation Menu */
.menu {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.menu li {
    position: relative;
}

.menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    display: block;
}

/* Dropdown container */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
}

/* Dropdown links */
.dropdown-content a {
    color: #333;
    padding: 0.6rem 1rem;
}

.dropdown-content a:hover {
    background: #f2f2f2;
}

/* SHOW dropdown on hover */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Optional: smooth animation */
.dropdown-content {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SLIDER ===== */
.slider {
    position: relative;
    max-width: 100%;
    height: 420px;
    overflow: hidden;
}

.slides {
    height: 100%;
}

.slide {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption */
.caption {
    position: absolute;
    bottom: 20%;
    left: 10%;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 4px;
}

.caption h2 {
    margin-bottom: 0.5rem;
}

/* Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .slider {
        height: 300px;
    }

    .caption {
        left: 5%;
        right: 5%;
        bottom: 15%;
    }
}
