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

body {
    font-family: 'Poppins', sans-serif;
    background: #f5f7fb;
    color: #1e293b;
    line-height: 1.6;
}

/* ===== VARIABLES ===== */
:root {
    --primary: #1e3a8a;
    --secondary: #fbbf24;
    --accent: #ef4444;
    --dark: #0f172a;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* ================= HEADER ================= */
/* --- HEADER --- */
header {
    background: #001f3f; /* Deep Blue */
    color: white;
    padding: 15px 0;
    border-bottom: 4px solid #FFD700; /* Yellow */
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* NAVBAR LAYOUT */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO + TEXT */
.logo-container {
    display: flex;
    flex-direction: column;
}

/* LOGO TEXT + IMAGE INLINE */
.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* space between logo and text */
    font-size: 26px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LOGO IMAGE SIZE (SMALL & CLEAN) */
.logo-img {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* SCHOOL NAME COLOR */
.logo span {
    color: #FFD700;
}

/* CONTACT LINE BELOW */
.logo-contact {
    font-size: 13px;
    color: #FFD700;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    gap: 15px;
}

/* NAV LINKS */
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
    font-size: 15px;
}

/* HOVER + ACTIVE */
.nav-links li a:hover,
.nav-links li a.active {
    background: #FFD700;
    color: #001f3f;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }

    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo-contact {
        justify-content: center;
    }
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(15,23,42,0.7), rgba(15,23,42,0.7)),
                url('image/school.webp') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 900;
}

.hero p {
    margin: 15px 0;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: black;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn:hover {
    background: var(--accent);
    color: white;
}

/* ================= SECTIONS ================= */
.section {
    padding: 80px 0;
}

.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary);
}

/* ================= CARDS ================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.card i {
    font-size: 30px;
    color: var(--secondary);
    margin-bottom: 10px;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ================= ABOUT ================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about img {
    width: 100%;
    border-radius: 15px;
}

/* ================= FOOTER ================= */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-links h3 {
    margin-bottom: 15px;
    border-left: 4px solid var(--secondary);
    padding-left: 10px;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--secondary);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}
/* --- GALLERY GRID (3 PER ROW) --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns fixed */
    gap: 20px;
}

/* IMAGE CARD */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

/* IMAGE */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

/* HOVER EFFECT */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* OPTIONAL OVERLAY */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: #FFD700;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}
/* --- FACILITIES PAGE --- */

.facilities-section {
    padding: 80px 0;
}

/* EACH FACILITY BLOCK */
.facility {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

/* ALTERNATE LAYOUT */
.facility:nth-child(even) {
    flex-direction: row-reverse;
}

/* IMAGE */
.facility-img {
    flex: 1;
}

.facility-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid #FFD700;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: 0.4s;
}

.facility-img img:hover {
    transform: scale(1.05);
}

/* TEXT CONTENT */
.facility-content {
    flex: 1;
}

.facility-content h2 {
    font-size: 28px;
    color: #001f3f;
    margin-bottom: 15px;
    position: relative;
}

/* YELLOW UNDERLINE */
.facility-content h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background: #FFD700;
    position: absolute;
    bottom: -8px;
    left: 0;
}

.facility-content p {
    margin-top: 20px;
    line-height: 1.7;
    color: #555;
    font-size: 16px;
}

/* --- HOVER CARD EFFECT --- */
.facility:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .facility {
        flex-direction: column;
        text-align: center;
    }

    .facility:nth-child(even) {
        flex-direction: column;
    }

    .facility-content h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}