:root {
    --primary-maroon: #800020;
    --light-maroon: #a31d3d;
    --dark-maroon: #4a0012;
    --accent-gold: #d4af37;
    --text-dark: #2c3e50;
    --text-light: #f8f9fa;
    --bg-light: #fdfbfb;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, var(--dark-maroon), var(--primary-maroon));
    color: var(--text-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-area img {
    height: 60px;
    width: auto;
}

.school-name h1 {
    font-size: 1.4rem;
    color: var(--accent-gold);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
}

nav ul li a:hover, nav ul li a.active {
    background-color: var(--accent-gold);
    color: var(--dark-maroon);
}

/* Modern Hero / Cover Image Section */
.hero-viewport {
    height: 70vh;
    background: linear-gradient(rgba(74, 0, 18, 0.6), rgba(0, 0, 0, 0.5)), url('assets/hero-cover.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--accent-gold);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* Card & Grid Layouts */
.main-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary-maroon);
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold);
    margin: 10px auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

/* Footer styling */
footer {
    background: var(--dark-maroon);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    margin-top: 5rem;
    border-top: 4px solid var(--accent-gold);
}

/* Dropdown Menu CSS Layout styling */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 0;
    margin: 0;
    list-style: none;
    z-index: 1000;
}

/* Make each submenu item clear and clickable */
.dropdown-menu li a {
    color: #333333;
    padding: 0.75rem 1.2rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.2s ease;
}

/* Hover effect on sub-items */
.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: var(--primary-maroon);
}

/* Key trick: Show the menu cleanly when hovering over the parent .dropdown item */
.dropdown:hover .dropdown-menu {
    display: block;
}