* {
    padding: 0;
    margin: 0px;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* NAVIGATION DESKTOP */
.navigation-bar {
    display: flex;
    padding-left: 50px;
    padding-right: 50px;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(255, 255, 255);
    height: 80px;
    border-bottom: #C4C6CE solid 1px;
    position: relative;
    z-index: 1002;
}

nav .logoAndText {
    display: flex;
    align-items: center;
    gap: 6px;
}

nav .logoAndText p {
    font-family: 'Times New Roman', Times, serif;
    font-size: 32px;
    font-weight: 600;
}

/* New Wrapper to group menu items and button on desktop */
.nav-menu-container {
    display: flex;
    align-items: center;
    gap: 40px;
}

nav .menu-items {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav .menu-items a {
    text-decoration: none;
    color: #61646c;
    font-size: 16px;
    font-weight: bold;
    transition: color 0.2s;
}

nav .menu-items a:hover {
    color: #dc331c;
}

nav .nav-button {
    padding: 10px 24px;
    background-color: #dc331c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

/* Desktop Hidden Elements */
.hamburger {
    display: none;
}
.nav-overlay {
    display: none;
}

/* campus section */
.campus-section {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(30px, 5vw, 50px);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.gallery .gallery-item {
    height: clamp(250px, 30vw, 370px);
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px; /* Added slight rounding for polish based on mobile spec */
}

.campus-section .view-more {
    padding: 14px 40px;
    background-color: #B71502;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
}

/* admission section */
.admission {
    padding: clamp(40px, 8vw, 80px) clamp(20px, 5vw, 50px);
    background-color: #ffffff;
}

.admission .admission-content {
    padding: clamp(30px, 5vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    background-color: #0B1F3A;
    border-radius: 8px;
}

.admission .admission-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    color: white;
    text-align: center;
}

.admission .admission-content p {
    font-size: 18px;
    color: #ffffffd3;
    line-height: 25px;
    max-width: 800px;
    text-align: center;
}

.admission-link {
    font-size: 20px;
    padding: 16px 40px;
    background-color: #B71502;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

/* footer-section */
footer {
    display: flex;
    flex-direction: column;
    padding: clamp(40px, 8vw, 50px);
    background-color: #0B1F3A;
    align-items: center;
    gap: 40px;
}

.footer-txt {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    color: rgba(255, 255, 255, 0.829);
}

.academy-txt {
    justify-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #D9E3F4;
}

.academy-txt h3 {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.829);
}

.academy-txt p {
    font-size: 16px;
    line-height: 25px;
    max-width: 400px;
}

.quick-links {
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.quick-links h4 {
    font-size: 18px;
}

.quick-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.quick-links ul li a {
    text-decoration: none;
    color: #D9E3F4;
    font-size: 16px;
}

.contact-info {
    justify-self: end;
}

.contact-info address {
    font-style: normal;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-info a {
    color: rgb(252, 252, 240);
}
.contact-info h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 16px;
    line-height: 25px;
    color: #D9E3F4;
}

.copyright {
    border-top: 1px solid rgba(217, 227, 244, 0.2);
    width: 100%;
    padding-top: 20px;
    display: flex;
    justify-content: center;
}

.copyright p {
    font-size: 14px;
    color: #D9E3F4;
    text-align: center;
}

/* ==============================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE) 
============================================================== */

@media (max-width: 1023px) {
    /* Navigation Adjustments */
    .navigation-bar {
        padding-left: 20px;
        padding-right: 20px;
    }

    nav .logoAndText p {
        font-size: 24px;
    }

    /* Hamburger Button UI */
    .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 22px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1002;
        padding: 0;
    }

    .hamburger span {
        width: 100%;
        height: 3px;
        background-color: #000000; /* This color makes the lines visible */
        border-radius: 4px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9.5px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-9.5px) rotate(-45deg);
    }

    /* Side Drawer Menu */
    .nav-menu-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 40px;
        gap: 30px;
        box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
    }

    .nav-menu-container.active {
        right: 0;
    }

    nav .menu-items {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 25px;
    }

    nav .menu-items a {
        font-size: 18px;
        width: 100%;
        display: block;
        padding: 10px 0;
    }

    nav button {
        width: 100%;
        text-align: center;
        padding: 14px;
        font-size: 18px;
    }

    /* Drawer Background Overlay */
    .nav-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s;
        z-index: 1000;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Campus Grid Tablet */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer Tablet Stack */
    .footer-txt {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE ONLY */
@media (max-width: 767px) {
    /* Campus Grid Mobile */
    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery .gallery-item {
        border-radius: 12px;
        height: clamp(220px, 60vw, 320px);
    }

    /* Footer Mobile Stack */
    .footer-txt {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .quick-links, .contact-info {
        justify-self: start;
    }

    /* Styling directly referenced from mobile figma screenshot */
    .quick-links h4, .contact-info h4 {
        text-transform: uppercase;
        letter-spacing: 0.5px;
        font-size: 16px;
    }
}