/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

/* BODY */
body {
    background: #f5f5f5;
    margin: 0;
}

.logo img {
    width: 150px;
    height: auto;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 50px;
    background: #004080;
    color: white;
    position: relative;
}

/* LOGO */
.logo h2 {
    font-size: 24px;
}

/* ================= DESKTOP NAV ================= */
.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    position: static; /* 🔥 FIX */
    background: none;
    width: auto;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ffd700;
}

/* DROPDOWN DESKTOP */
.dropdown-menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: white;
    list-style: none;
    width: 180px;
    border-radius: 5px;
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 999;
}

.dropdown-menu li {
    padding: 10px;
}

.dropdown-menu li a {
    color: black;
    display: block;
}

.dropdown-menu li:hover {
    background: #f0f0f0;
}

/* SHOW DROPDOWN (DESKTOP) */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ================= RIGHT BUTTONS ================= */
.nav-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
}

/* CAREER BUTTON */
.career {
    background: transparent;
    border: 1px solid white;
    color: white;
}

.career:hover {
    background: white;
    color: #004080;
}

/* ADMISSION BUTTON */
.admission {
    background: #ffd700;
    color: black;
    font-weight: bold;
}

.admission:hover {
    background: #ffcc00;
    transform: scale(1.05);
}

/* MENU TOGGLE */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #004080;

        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 15px;

        display: none; /* hidden by default */
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-buttons {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    /* MOBILE DROPDOWN */
    .dropdown-menu {
        position: static;
        background: #003060;
        color: white;

        opacity: 1;
        visibility: visible;
        transform: none;

        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        color: white;
    }
 
}



/* FOOTER */
.footer {
    background: linear-gradient(135deg, #0a3d62, #1e5f9e);
    color: white;
    padding: 50px 60px 20px;
}

/* CONTAINER */
.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

/* SECTIONS */
.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h2 {
    margin-bottom: 15px;
    font-size: 22px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-section p {
    margin: 8px 0;
    font-size: 14px;
}

/* LINKS */
.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 8px 0;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.footer-section ul li a:hover {
    color: #00c3ff;
}

/* BRANCH */
.branch {
    margin-top: 15px;
}

.branch h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
}


.footer {
    background: #004080;
    color: #fff;
    text-align: center;
    padding: 15px;
}







/* TITLE */
.title {
    text-align: center;
    margin: 40px 0;
    font-size: 36px;
    color: #004080;
}

/* SECTION */
.facilities {
    padding: 40px 80px;
}

/* EACH BLOCK */
.facility {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 70px;
}

/* REVERSE */
.facility.reverse {
    flex-direction: row-reverse;
}

/* TEXT */
.text {
    flex: 1;
}

.text h2 {
    font-size: 28px;
    color: #004080;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.text p {
    line-height: 1.7;
    color: #333;
}

/* IMAGE */
.image {
    flex: 1;
    overflow: hidden;
    border-radius: 12px;
}

/* IMAGE STYLE */
.image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;

    transition: transform 0.4s ease;
}

/* HOVER EFFECT (ZOOM + TILT) */
.image:hover img {
    transform: scale(1.08) rotate(1.5deg);
}

/* TEXT HOVER EFFECT */
.facility:hover h2 {
    color: #0073e6;
}

/* SCROLL EFFECT (VERY LIGHT) */
.facility {
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.facility.show {
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .facility {
        flex-direction: column;
        text-align: center;
    }

    .facility.reverse {
        flex-direction: column;
    }

    .image img {
        height: 250px;
    }

    .facilities {
        padding: 20px;
    }
}