/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Header Navigation Styles */
html {
    scroll-behavior: smooth;
}

header {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 12px 5%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a2b4c;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ed6b2f;
}

/* Hamburger Menu Button (Hidden by Default) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #1a2b4c;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Banner Section */
.banner-wrapper {
    width: 92%;
    max-width: 1200px;
    margin: 24px auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Section */
.about-section {
    text-align: center;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: #1a2b4c;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-section p {
    font-size: clamp(0.95rem, 2.5vw, 1.05rem);
    color: #666;
}

/* --- Responsive Media Queries --- */

/* Mobile & Tablet Navigation (Screen width 960px or less) */
@media (max-width: 960px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, box-shadow 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        max-height: 520px; /* Expands menu when active */
        padding: 10px 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 12px 0;
        font-size: 0.9rem;
    }

    .banner-wrapper {
        width: 95%;
        margin: 16px auto;
        border-radius: 6px;
    }
}

/* Extra Small Mobile Devices (Screen width 480px or less) */
@media (max-width: 480px) {
    .brand-title {
        font-size: 1.25rem;
    }

    .nav-logo-img {
        height: 35px;
    }

    .about-section {
        padding: 24px 15px;
    }
}

/* Academic Programs Section */
.programs-section {
    background-color: #eaf4fc; /* Light blue background matching the image */
    padding: 60px 20px;
}

.programs-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.3rem);
    color: #1c355e;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1rem;
    color: #667085;
    margin-bottom: 40px;
}

/* 4-Column Grid Layout */
.program-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual Program Card */
.program-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 28px 22px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 4px solid #ed6b2f; /* Top dark border accent */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.program-card h3 {
    font-size: 1.15rem;
    color: #1c355e;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 16px;
}

.program-card p {
    font-size: 0.88rem;
    color: #556070;
    line-height: 1.5;
}

/* Responsive Grid Breakdown */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .program-grid {
        grid-template-columns: 1fr; /* 1 column on mobile screens */
    }

    .programs-section {
        padding: 40px 16px;
    }
}


/* Contact Us Section */
.contact-section {
    background-color: #f7faff;
    padding: 60px 20px 80px 20px;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Information Card */
.contact-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #ed6b2f;
    margin-top: 30px;
}

.contact-card h3 {
    font-size: 1.25rem;
    color: #1a2b4c;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Info Row Layout */
.info-table {
    display: flex;
    flex-direction: column;
}

.info-row {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #edf2f7;
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    width: 180px;
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a2b4c;
}

.info-value {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.contact-link {
    color: #005a9c;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #0d47a1;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #f7faff;
    border-top: 1px solid #e2e8f0;
}

footer p {
    font-size: 0.85rem;
    color: #718096;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Responsive Layout for Mobile Devices */
@media (max-width: 650px) {
    .contact-card {
        padding: 24px 18px;
    }

    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px 0;
    }

    .info-label {
        width: 100%;
    }
}


#about,
#contact,
#programs,
#senior-high {
    scroll-margin-top: 80px;
}

/* Mission and Vision Section */
.mv-section {
    background-color: #edf5fd; /* Soft blue background matching the design */
    padding: 60px 20px;
}

.mv-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* 2-Column Grid Layout */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 35px;
}

/* Mission & Vision Card */
.mv-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    text-align: left;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #ed6b2f; /* Dark blue top accent border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.mv-card h3 {
    font-size: 1.3rem;
    color: #1a2b4c;
    font-weight: 700;
    margin-bottom: 20px;
}

.mv-card p {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Responsive Breakdown for Tablets and Mobile Devices */
@media (max-width: 850px) {
    .mv-grid {
        grid-template-columns: 1fr; /* Stack vertically on smaller screens */
        gap: 20px;
    }

    .mv-card {
        padding: 28px 24px;
    }

    .mv-section {
        padding: 40px 16px;
    }
}