:root {
    --primary: #003366;      /* Classic academic dark blue */
    --accent: #1b6ec2;       /* Standard link blue */
    --dark: #222222;
    --light: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #cccccc;
    --shadow: 0 2px 5px rgba(0,0,0,0.1);
}

[data-theme="dark"] {
    --dark: #f4f4f4;
    --light: #222222;
    --bg-alt: #1a1a1a;
    --border-color: #444444;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: Arial, Helvetica, sans-serif; 
    scroll-behavior: smooth; 
}

body { 
    background: var(--bg-alt); 
    color: var(--dark); 
    line-height: 1.5; 
}

/* --- Navbar --- */
.navbar { 
    background: var(--light); 
    height: 75px; 
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid var(--primary); 
}

.nav-container { 
    width: 92%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.nav-logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

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

.logo-text {
    display: flex;
    flex-direction: column;
}

.dept-name { 
    font-weight: bold; 
    color: var(--primary); 
    font-size: 1.1rem; 
    text-transform: uppercase; 
}

.dept-subtext {
    font-size: 0.85rem;
    color: #555;
}

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

.nav-links a { 
    text-decoration: none; 
    color: var(--dark); 
    font-weight: bold; 
    font-size: 0.9rem; 
    padding: 5px 8px;
}

.nav-links a.active, .nav-links a:hover {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Dropdown */
.dropdown { 
    position: relative; 
}

.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    background: var(--light); 
    min-width: 160px; 
    border: 1px solid var(--border-color); 
    box-shadow: var(--shadow); 
    list-style: none; 
}

.dropdown-content a { 
    padding: 10px 15px; 
    display: block; 
    border-bottom: 1px solid var(--border-color); 
}

@media (min-width: 1025px) { 
    .dropdown:hover .dropdown-content { 
        display: block; 
    } 
}

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

#dark-mode-toggle { 
    background: #eee; 
    border: 1px solid #ccc; 
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer; 
    color: var(--dark); 
    font-size: 1rem; 
}

/* --- Hero Slider --- */
.hero-slider { 
    height: 60vh; 
    position: relative; 
    overflow: hidden; 
    background: #000; 
}

.slide { 
    position: absolute; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 0.5s ease; 
}

.slide.active { 
    opacity: 1; 
}

.slide img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(50%); 
}

.slide-content { 
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%); 
    color: #fff; 
    text-align: center; 
    width: 85%; 
}

.slide-content h1 { 
    font-size: 2.2rem; 
    margin-bottom: 10px; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.slide-content p {
    font-size: 1.1rem;
}

.slider-btn { 
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%); 
    background: rgba(0,0,0,0.5); 
    border: 1px solid #fff; 
    color: #fff; 
    padding: 10px 15px; 
    cursor: pointer; 
    z-index: 100; 
    border-radius: 3px; 
    font-size: 1.2rem; 
}

.slider-btn:hover { 
    background: var(--primary); 
}

.prev { left: 15px; } 
.next { right: 15px; }

.slider-dots { 
    position: absolute; 
    bottom: 20px; 
    width: 100%; 
    text-align: center; 
}

.dot { 
    height: 10px; 
    width: 10px; 
    background: rgba(255,255,255,0.6); 
    border-radius: 50%; 
    display: inline-block; 
    margin: 0 4px; 
    cursor: pointer; 
}

.dot.active { 
    background: var(--primary); 
    border: 1px solid #fff;
}

/* --- Content Sections --- */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-header { 
    text-align: center; 
    margin-bottom: 30px; 
}

.section-header h2 { 
    font-size: 1.8rem; 
    color: var(--primary);
    margin-bottom: 5px; 
    text-transform: uppercase;
}

.programs-section { 
    padding: 50px 0; 
    background: var(--light); 
    border-bottom: 1px solid var(--border-color);
}

.programs-large-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 25px; 
}

.program-card-large { 
    background: var(--bg-alt); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    overflow: hidden; 
}

.program-image img { 
    width: 100%; 
    height: 220px; 
    object-fit: cover; 
}

.program-info { 
    padding: 20px; 
}

.badge { 
    background: var(--primary); 
    color: #fff; 
    padding: 3px 8px; 
    border-radius: 3px; 
    font-size: 0.75rem; 
    font-weight: bold; 
    margin-bottom: 10px; 
    display: inline-block; 
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.news-section { 
    padding: 50px 0; 
}

.news-stack { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.news-row { 
    display: grid; 
    grid-template-columns: 280px 1fr; 
    background: var(--light); 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    overflow: hidden; 
}

.nr-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    min-height: 200px; 
}

.nr-text { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.nr-date { 
    color: #777; 
    font-size: 0.85rem; 
    font-weight: bold; 
    margin-bottom: 5px; 
}

.nr-link {
    margin-top: 10px;
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
}

.action-bar { 
    text-align: center; 
    margin-top: 30px; 
}

.btn-main { 
    background: var(--primary); 
    color: #fff; 
    padding: 10px 25px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
}

.btn-main:hover {
    background: var(--accent);
}

.btn-outline { 
    border: 1px solid var(--primary); 
    color: var(--primary); 
    padding: 10px 25px; 
    border-radius: 4px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    background: #fff;
}

.btn-outline:hover {
    background: #f0f0f0;
}

/* --- Opening Hours Section --- */
.opening-hours { 
    padding: 40px 0; 
    background: var(--bg-alt); 
}

.hours-card { 
    background: var(--light); 
    padding: 30px; 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    display: grid; 
    grid-template-columns: 1fr 1.5fr; 
    align-items: center; 
    gap: 30px;
}

.hours-info i { 
    font-size: 2.5rem; 
    color: var(--primary); 
    margin-bottom: 10px; 
}

.hours-info h3 { 
    font-size: 1.4rem; 
    margin-bottom: 5px; 
}

.hours-list .day-row { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0; 
    border-bottom: 1px dashed #ccc; 
}

.hours-list .day-row:last-child { 
    border: none; 
}

.closed { 
    color: #cc0000; 
}

/* --- Footer --- */
.site-footer { 
    background: #111111; 
    color: #fff; 
    padding-top: 40px; 
    border-top: 3px solid var(--primary); 
}

.footer-container { 
    width: 92%; 
    max-width: 1200px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: 1.3fr 0.8fr 1fr 1fr; 
    gap: 30px; 
    padding-bottom: 30px; 
}

.f-logo { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    margin-bottom: 15px; 
}

.f-logo img { 
    height: 40px;
}

.f-logo h3 {
    font-size: 1.1rem;
}

.social-links { 
    display: flex; 
    gap: 10px; 
    margin-top: 15px; 
}

.social-links a { 
    width: 32px; 
    height: 32px; 
    background: #333; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    text-decoration: none;
}

.social-links a:hover { 
    background: var(--accent); 
}

.footer-title { 
    font-size: 1.05rem; 
    margin-bottom: 15px; 
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5px;
    display: inline-block;
}

.f-links { 
    list-style: none; 
}

.f-links li { 
    margin-bottom: 8px; 
}

.f-links a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 0.9rem;
}

.f-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.c-item { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 10px; 
    font-size: 0.88rem;
}

.c-item i { 
    color: var(--accent); 
    margin-top: 3px; 
}

.map-wrapper iframe {
    border-radius: 4px;
}

/* Centered Copyright Bar */
.footer-bottom { 
    background: #000; 
    padding: 15px 0; 
    border-top: 1px solid #222; 
}

.centered-text { 
    text-align: center; 
}

.footer-bottom p { 
    font-size: 0.8rem; 
    color: #888; 
}

/* --- Mobile Navigation --- */
.menu-toggle { 
    display: none; 
    flex-direction: column; 
    gap: 4px; 
    cursor: pointer; 
}

.bar { 
    width: 25px; 
    height: 3px; 
    background: var(--dark); 
    border-radius: 2px; 
}

@media (max-width: 1024px) {
    .menu-toggle { display: flex; }
    .nav-links { 
        position: fixed; 
        top: 75px; 
        left: -100%; 
        width: 75%; 
        height: 100vh; 
        background: var(--light); 
        flex-direction: column; 
        padding: 30px 20px; 
        border-right: 2px solid var(--primary);
        transition: 0.3s; 
    }
    .nav-links.active { left: 0; }
    .dropdown-content { 
        position: static; 
        display: none; 
        box-shadow: none; 
        padding-left: 15px; 
        border: none;
    }
    .dropdown.open .dropdown-content { display: block; }
    .programs-large-grid, .news-row, .footer-container, .hours-card { grid-template-columns: 1fr; }
    .hours-card { text-align: left; }
}