/* 1. Core Styling */
* {
    box-sizing: border-box; /* FIXES THE GHOST SPACE: prevents padding from adding to width */
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* FIXES THE SIDEWAYS SCROLL: kills the white gap */
    font-family: Arial, sans-serif;
    color: #121A38;
    background-color: white;
    line-height: 1.6;
}

header {
    background-color: #121A38;
    color: white;
    padding: 0.5rem 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.port-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 80px; 
}

.logo {
    height: 70px; 
    width: auto;
    display: block;
}

.starboard-nav {
    list-style: none;
    display: flex;
    gap: 30px;
}

.starboard-nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* Navigation Dropdown Logic */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ededed;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 100;
    border-radius: 4px;
}

.dropdown-content a {
    color: #121A38;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* 2. Hero & Homepage Content */
.hero {
    background: linear-gradient(rgba(18, 26, 56, 0.5), rgba(18, 26, 56, 0.4)), 
                url('images/imagehero.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
}

.content {
    max-width: 800px;
    margin: 60px auto; 
    padding: 0 20px;
    text-align: center;
}

/* 3. About Page Bands */
.band { 
    padding: 60px 0; 
    width: 100%; 
}

.white-band { background-color: white; color: #121A38; }
.blue-band { background-color: #121A38; color: white; }

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.split {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.reverse { flex-direction: row-reverse; }

.text-content, .image-content { 
    flex: 1; 
    min-width: 300px; 
}

.about_us-band-img {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1.5 / 1;
    object-fit: cover;
    border: 4px solid #121A38;
}

.blue-band .about_us-band-img { border-color: white; }

.calendar-wrapper {
    width: 100%;
    border: 3px solid #121A38;
    border-radius: 4px;
    overflow: hidden;
    background-color: #f4f4f4;
}

/* 4. Blog Styling */
.blog-container {
    background-color: #f8f9fa; 
    padding: 60px 20px;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin: 0 auto 50px auto;
    max-width: 800px;
    color: #121A38;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; 
    margin-top: 30px;
}

.blog-card {
    background-color: #ededed;
    padding: 20px;
    border-radius: 4px;
    border-bottom: 5px solid #121A38;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(18, 26, 56, 0.15);
}

.blog-thumb { 
    width: 100%; 
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid #121A38;
    margin-bottom: 15px;
}

.meta { 
    font-size: 0.8rem; 
    color: #121A38; 
    font-weight: bold; 
    text-transform: uppercase;
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: auto; 
    padding: 10px;
    background-color: #121A38;
    color: white !important;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    border-radius: 2px;
}

/* 5. Committee Styling */
.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px; 
    margin-top: 40px;
}

.member-card {
    background-color: #ededed;
    padding: 30px;
    border-radius: 4px;
    border-bottom: 4px solid #121A38;
    text-align: center;
}

.member-card img {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1/1.4;
    object-fit: cover;
    border: 1px solid #121A38;
    margin-bottom: 20px;
}

.square-img {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 4px solid #121A38;
}

.blue-band .square-img { border-color: white; }

/* 6. Gallery & Footer */
.gallery-item img {
    width: 100%; height: 200px;
    object-fit: cover;
    border: 2px solid #121A38;
}

footer {
    background-color: #f8f8f8;
    padding: 60px 20px 40px 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 60px;
}

.footer-contact a { color: #121A38; text-decoration: none; font-weight: bold; }
.cta-button-navy {
    display: inline-block;
    background-color: #121A38;
    color: white;
    padding: