/* --- styles.css --- */

/* GENERAL RESET & TYPOGRAPHY */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Oxygen', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; color: #333; }

/* COLORS */
:root { 
    --mbc-navy: #002E5D; 
    --mbc-gold: #bc982c; 
    --white: #ffffff; 
}

/* TEXT STYLES */
h1, h2, h3, h4 { font-family: 'Oxygen', sans-serif; font-weight: 700; color: var(--mbc-navy); margin-bottom: 20px; }
h1 { font-size: 35px; } h2 { font-size: 28px; }
p, li, label, input, textarea { font-family: 'Oxygen', sans-serif; font-weight: 700; font-size: 15px; color: #000000; margin-bottom: 15px; }
a { text-decoration: none; transition: 0.3s; color: var(--mbc-navy); }

/* LIST FIX (For Academic Page) */
.section ul, .section ol {
    margin-left: 40px; /* Pushes bullets right so they align with text */
    margin-bottom: 20px;
}
.section li {
    list-style-type: disc;
    padding-left: 10px; 
}

/* LAYOUT UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.text-center { text-align: center; }
.bg-light { background-color: #f9f9f9; }

/* NAVIGATION */
.nav-bar { background-color: var(--mbc-navy); padding: 10px 0; color: white; position: relative; z-index: 1000; }
.nav-container { display: flex; justify-content: space-between; align-items: center; min-height: 60px; flex-wrap: wrap; }

.logo-container { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
}

.nav-logo-img { 
    height: 60px; 
    width: auto; 
    margin-right: 15px;
}

/* LINKS */
.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { 
    color: white; font-size: 14px; font-weight: 700; text-decoration: none; 
    padding-top: 8px; padding-bottom: 5px; border-bottom: 3px solid transparent; 
    transition: 0.3s; white-space: nowrap; 
}
.nav-links a:hover, .nav-links a.active { color: var(--mbc-gold); border-bottom: 3px solid var(--mbc-gold); }

/* MOBILE MENU TOGGLE */
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 25px; height: 3px; background-color: white; margin: 5px 0; transition: 0.3s; }

/* MOBILE & TABLET STYLES */
@media (max-width: 1250px) { 
    .nav-toggle { display: block; } /* Show the hamburger button */
    .nav-links {
        display: none; /* Hide the links by default */
        width: 100%;
        flex-direction: column;
        gap: 0;
        background-color: var(--mbc-navy);
        margin-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.1);
        align-items: flex-start;
    }
    .nav-links.active { display: flex; } /* Show the links when active */
    .nav-links a { 
        display: block; 
        padding: 15px 0; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        width: 100%; 
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        border-top: none; /* Remove top border */
    }
    .nav-links a:hover, .nav-links a.active {
        border-bottom: 1px solid var(--mbc-gold);
        border-top: none;
        color: var(--mbc-gold);
    }
}

/* BUTTONS & HERO */
.btn-primary { display: inline-block; background-color: var(--mbc-navy); color: var(--white); padding: 15px 30px; font-size: 16px; font-weight: 700; border-radius: 5px; border: 2px solid var(--mbc-navy); cursor: pointer; transition: all 0.3s ease; }
.btn-primary:hover { background-color: var(--mbc-gold); border-color: var(--mbc-gold); color: var(--white); }

.hero { background-size: cover; background-position: center; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; border-top: 5px solid var(--mbc-gold); border-bottom: 5px solid var(--mbc-gold); position: relative; }
.hero-overlay { background: linear-gradient(rgba(0, 46, 93, 0.7), rgba(0, 46, 93, 0.5)); position: absolute; top:0; left:0; width:100%; height:100%; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: #ffffff; font-size: 48px; margin-bottom: 20px; }
.hero p { color: #ffffff; font-size: 20px; max-width: 800px; margin: 0 auto 30px auto; }

/* GRIDS */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 20px; }
.promo-card { background: #f4f4f4; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.card-image { height: 250px; background-size: cover; background-position: center; }
.card-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; text-align: center; align-items: center; }

/* FORMS & FOOTER */
.form-section { background-color: var(--mbc-navy); color: white; border-top: 5px solid var(--mbc-gold); border-bottom: 5px solid var(--mbc-gold); padding: 40px 0; }
.form-section h2, .form-section p { color: white; }
.js-cm-form { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 20px; align-items: flex-end; }
.js-cm-form input { padding: 0 15px; height: 50px; border-radius: 4px; border: none; width: 250px; margin-bottom: 0; }
.js-cm-form button { background-color: var(--mbc-gold); color: white; border: none; height: 50px; padding: 0 30px; font-weight: 700; cursor: pointer; border-radius: 4px; transition: 0.3s; font-size: 16px; font-family: 'Oxygen', sans-serif; }
.js-cm-form button:hover { background-color: white; color: var(--mbc-navy); }

.info-box {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 30px;
    text-align: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .js-cm-form {
        flex-direction: column;
        align-items: stretch;
    }
    .js-cm-form div {
        width: 100%;
    }
    .js-cm-form input {
        width: 100%;
    }
}

footer { background: var(--mbc-gold); color: white; padding: 40px 0; text-align: center; }
footer p, footer a { color: #ffffff; font-weight: 400; font-size: 14px; }
.social-icons { margin: 20px 0; }
.social-link { display: inline-block; margin: 0 10px; color: white; transition: 0.3s; }
.social-link svg { width: 24px; height: 24px; fill: currentColor; }
.social-link:hover { color: var(--mbc-navy); }

/* MOBILE HERO FIX */
@media (max-width: 768px) {
    .hero {
        height: auto; /* Change from 60vh to auto */
        min-height: 400px; /* Ensure a decent minimum height */
        padding: 60px 20px; /* Add vertical and horizontal padding */
        align-items: center; /* Keep content centered vertically */
    }

    .hero h1 {
        font-size: 38px; /* Adjust font size for mobile */
    }

    .hero p {
        font-size: 18px; /* Adjust font size for mobile */
    }

    /* Form adjustments from before */
    .js-cm-form {
        flex-direction: column;
        align-items: stretch;
    }
    .js-cm-form div,
    .js-cm-form input {
        width: 100%;
    }
}