/*
Theme Name: Monsbey College
Theme URI: https://monsbey.edu
Author: Gemini AI
Description: The official academic theme for Monsbey College. Navy Blue, Red, and White branding with a professional Ivy League layout.
Version: 2.0
License: GNU General Public License v2 or later
*/

/* --- BRAND VARIABLES (Navy, Red, White) --- */
:root {
    --monsbey-navy: #002147;   /* Deep Oxford Navy */
    --monsbey-red: #A41034;    /* Crimson Red */
    --monsbey-white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #E5E7EB;
    --text-dark: #1F2937;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background-color: var(--monsbey-white);
    color: var(--text-dark);
    line-height: 1.6;
}

a { text-decoration: none; color: var(--monsbey-navy); font-weight: 700; transition: 0.2s; }
a:hover { color: var(--monsbey-red); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
    font-family: 'Open Sans', sans-serif;
    color: var(--monsbey-navy);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-top: 0;
}

h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }
h2 { font-size: 2.25rem; position: relative; display: inline-block; }

/* Red Underline for Section Headings */
h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--monsbey-red);
    margin-top: 10px;
}

/* --- HEADER --- */
.site-header {
    background: var(--monsbey-white);
    border-bottom: 1px solid var(--border-color);
    border-top: 5px solid var(--monsbey-red); /* Red Brand Line */
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-text {
    font-size: 2.4rem;  /* Increased size */
    font-weight: 800;
    text-transform: uppercase;
    color: var(--monsbey-navy);
    letter-spacing: 0.5px;
    line-height: 1;
}
.brand-text span {
    display: block;
    font-size: 2.0rem;  /* Increased size */
    font-weight: 600;
    color: var(--monsbey-red);
    margin-top: 4px;
}
/* Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.main-nav a {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
}
.main-nav a:hover { color: var(--monsbey-red); }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    height: 600px;
    background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)), url('https://source.unsplash.com/1600x900/?medical,campus');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: white;
}

.hero-content h1 { color: white; margin-bottom: 25px; font-size: 3.5rem; text-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.3rem; margin-bottom: 35px; opacity: 0.95; font-weight: 400; }

/* The Red Button */
.btn-primary {
    background-color: var(--monsbey-red);
    color: white;
    padding: 18px 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border-radius: 2px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #7d0a25; /* Darker Red */
    color: white;
}

/* --- STATS BAR (Navy Background) --- */
.stats-bar {
    background-color: var(--monsbey-navy);
    color: white;
    padding: 60px 0;
}
.stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
}
.stat-item h3 {
    color: white;
    font-size: 3rem;
    margin-bottom: 5px;
    font-weight: 800;
}
.stat-item p {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- CONTENT GRID --- */
.container { max-width: 1200px; margin: 80px auto; padding: 0 20px; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.card {
    background: white;
    border: 1px solid var(--border-color);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-top: 4px solid var(--monsbey-red); /* Red hover effect */
}

.card-img { height: 220px; background: #eee; object-fit: cover; width: 100%; }
.card-body { padding: 30px; }

.card-cat {
    color: var(--monsbey-red);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.card-link {
    color: var(--monsbey-navy);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 800;
    margin-top: auto;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--monsbey-navy);
    color: white;
    padding: 80px 0;
    border-top: 8px solid var(--monsbey-red);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 50px;
    padding: 0 20px;
}
.footer-logo { font-size: 1.5rem; font-weight: 800; display: block; margin-bottom: 20px;}
.footer-col { flex: 1; min-width: 200px; }
.footer-col p, .footer-col a { color: #d1d5db; font-size: 0.95rem; display: block; margin-bottom: 10px; }
.footer-col a:hover { color: white; text-decoration: underline; }

/* --- PROGRAM DETAIL STYLES --- */
.program-meta { display: flex; gap: 20px; background: #f4f4f4; padding: 20px; margin-bottom: 30px; border-left: 4px solid var(--monsbey-navy); }
.program-meta div { flex: 1; }
.program-meta strong { display: block; color: var(--monsbey-navy); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }

.req-list { list-style: none; padding: 0; }
.req-list li { margin-bottom: 10px; position: relative; padding-left: 25px; }
.req-list li::before { content: '✓'; color: var(--monsbey-red); position: absolute; left: 0; font-weight: bold; }

.schedule-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.95rem; }
.schedule-table th { background: var(--monsbey-navy); color: white; padding: 12px; text-align: left; }
.schedule-table td { border: 1px solid #ddd; padding: 12px; }
.schedule-table tr:nth-child(even) { background: #f9f9f9; }

.fee-box { border: 2px solid var(--monsbey-red); padding: 25px; background: #fff5f5; margin: 30px 0; }
.fee-price { font-size: 2rem; color: var(--monsbey-red); font-weight: 800; }

/* --- MOBILE MENU & RESPONSIVE FIXES --- */

/* 1. Hide the Checkbox that powers the menu logic */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; cursor: pointer; padding: 10px; }

/* 2. Hamburger Icon Styling (The three lines) */
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--monsbey-navy);
    height: 3px;
    width: 25px;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after { content: ''; position: absolute; }
.nav-toggle-label span::before { bottom: 8px; }
.nav-toggle-label span::after { top: 8px; }

/* 3. Mobile Media Query (Runs only on screens smaller than 768px) */
@media screen and (max-width: 768px) {

    /* Stack header elements */
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 20px;
    }

    /* Show the hamburger icon */
    .nav-toggle-label { display: block; margin-left: auto; }

    /* Hide the menu links by default */
    .main-nav {
        display: none;
        width: 100%;
        border-top: 1px solid #eee;
        margin-top: 15px;
        background-color: white;
    }

    /* Show menu links when checkbox is clicked */
    .nav-toggle:checked ~ .main-nav { display: block; }

    /* Stack menu items vertically instead of side-by-side */
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    .main-nav ul li {
        border-bottom: 1px solid #f0f0f0;
        width: 100%;
    }
    .main-nav ul li a {
        display: block;
        padding: 15px 0;
        text-align: center;
    }

    /* Make logo smaller on phone so it fits */
    .header-logo {
        height: 60px !important;
    }

    /* Adjust Hero Text Size */
    .hero-content h1 { font-size: 2.2rem; }
    .hero { height: auto; min-height: 400px; padding: 60px 0; }
}
