/* =========================================
   Base Styles & Typography
   ========================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    color: #f0f0f0; /* Changes the default text to light grey so it shows up on dark blue */
    background-color: #00152b; /* A very deep, dark navy blue for the site background */
}

h1 {
    color: #ffffff; /* Bright white for the main title */
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #9fb3c8; /* A light steel blue/grey for the subtitle */
    font-size: 1.2rem;
    font-style: italic;
    margin-top: 0;
}

/* =========================================
   Header, Footer & Logo Layout
   ========================================= */
header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.top-bar, .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-container {
    flex: 1; 
    display: flex;
}

.logo-container.left {
    justify-content: flex-start;
}

.logo-container.right {
    justify-content: flex-end;
}

.title-container {
    flex: 2;
    text-align: center;
}

.logo {
    max-width: 80px; 
    height: auto;
    object-fit: contain;
}

footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #2a3f54; /* Changes the footer line to a subtle dark blue-grey */
    color: #9fb3c8; /* Light blue/grey text */
    font-size: 0.9rem;
}

.footer-logo {
    max-width: 50px; 
    opacity: 0.8; 
}

/* =========================================
   Navigation Menu
   ========================================= */
/* =========================================
   Navigation Menu
   ========================================= */
nav {
    display: flex;
    justify-content: center; /* Keeps them centered */
    gap: 2rem; /* Spreads the buttons out horizontally */
    margin-top: 1.5rem;
    padding-bottom: 1.5rem; /* Adds space between the buttons and the line below */
    flex-wrap: wrap;
    border-top: none; /* Removes the line above */
    border-bottom: 2px solid #34495e; /* Restores the line beneath them */
}

nav a {
    background-color: #005bb5; /* A slightly darker blue */
    color: #f0f0f0; /* Very light grey text */
    text-decoration: none;
    font-weight: bold;
    padding: 0.6rem 1.2rem;
    border-radius: 0; /* Removes the curve to make them perfectly rectangular */
    transition: background-color 0.3s, transform 0.1s;
}

nav a:hover {
    background-color: #004488; /* An even darker blue when hovered */
    color: #ffffff; /* Bright white text on hover */
    text-decoration: none;
    transform: translateY(-2px); /* Slight lift effect */
}

/* =========================================
   Content Blocks (Essays, Activities, etc.)
   ========================================= */
.content-section {
    background: white;
    color: #2c3e50; /* Forces the text inside the white box to be dark grey */
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4); /* Made the shadow slightly stronger to pop against the dark background */
    margin-bottom: 2rem;
}

.item-card {
    border-left: 4px solid #34495e;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.item-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.meta-info {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =========================================
   Gallery Grid (For Posters & Artwork)
   ========================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.poster-item {
    text-align: center;
}

.poster-item img {
    width: 100%; 
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s; 
}

.poster-item img:hover {
    transform: translateY(-5px);
}

.poster-item p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}