:root {
    --sidebar-width: 300px;
    --dark-blue: #0c142c;
    --mid-blue: #1e3a5f;
    --electric-blue: #3d89dd;
    --gold: #ffcf40;
    --white: #fcfcfc;
    --gray: #b0c4de;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-blue);
    color: var(--white);
    line-height: 1.6;
    display: flex;
    min-height: 100vh;
}

h1, h2, h3, .sidebar-nav a {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sidebar for all pages */
.theater-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #060a16;
    border-right: 2px solid var(--electric-blue);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    z-index: 1000;
}

.sidebar-logo {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 40px;
}

.sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sidebar-nav ul {
    list-style: none;
    text-align: center;
}

.sidebar-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 12px 0;
    transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--gold);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--gray);
    text-align: center;
    border-top: 1px solid rgba(61, 137, 221, 0.2);
    padding-top: 20px;
}

/* Main Layout */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-width: 0;
}

.container {
    padding: 60px 5%;
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold);
    font-size: 3rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 5%;
    background: linear-gradient(rgba(12, 20, 44, 0.7), rgba(12, 20, 44, 0.9)), url('../images/background.webp') no-repeat center center;
    background-size: cover;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 20px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin: 50px 0;
    align-items: center;
}

.section-grid img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid var(--mid-blue);
}

/* Match Tables */
.match-section {
    margin-bottom: 50px;
}

h2 {
    color: var(--gold);
    margin-bottom: 25px;
}

.neptune-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(30, 58, 95, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.neptune-table th {
    background: var(--mid-blue);
    color: var(--gold);
    text-align: left;
    padding: 15px;
}

.neptune-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(61, 137, 221, 0.1);
}

.result-win {
    color: #0de7bc;
    font-weight: bold;
}

.result-loss {
    color: #ff4b2b;
    font-weight: bold;
}

/* Gallery Flexbox */
.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 250px;
    max-width: 350px;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--mid-blue);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: rgba(30, 58, 95, 0.3);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(61, 137, 221, 0.2);
}

.card h2 {
    font-size: 1.5rem;
}

.card p {
    margin-bottom: 15px;
}

form input, form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #060a16;
    border: 1px solid var(--electric-blue);
    color: white;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
}

/* Buttons */
button, .btn {
    background: var(--gold);
    color: var(--dark-blue);
    padding: 12px 25px;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: #fff;
}

/* Mobile Rules */
.mobile-footer-reveal {
    display: none;
}

@media (max-width: 992px) {
    body {
        flex-direction: column;
    }
    .theater-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        padding: 20px;
    }
    .sidebar-nav ul {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    .main-wrapper {
        margin-left: 0;
    }
    .sidebar-footer {
        display: none;
    }
    .mobile-footer-reveal {
        display: block;
        background: #060a16;
        padding: 40px 20px;
        text-align: center;
    }
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 15px;
    margin-top: 20px;
}

.news-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

/* Makes the first and last cards wider if you want that specific look */
.news-card:nth-child(1), .news-card:nth-child(4) {
    grid-column: span 1;
}

.news-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover img {
    transform: scale(1.05);
}

.news-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
}

.news-overlay h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-meta {
    font-size: 0.75rem;
    color: var(--gray);
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Mobile News Grid */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr; /* Single column */
        grid-auto-rows: 250px;      /* Slightly shorter cards for mobile */
    }

    .news-card:nth-child(1), .news-card:nth-child(4) {
        grid-column: span 1;        /* Reset spans for mobile */
    }

    .news-overlay h3 {
        font-size: 1.1rem;          /* Smaller text for small screens */
    }
}   

/* Sidebar Image Styling */
.sidebar-image {
    width: 100%;
    padding: 10px 0;
    margin-top:auto; /* Pushes the nav up and keeps image/footer at bottom */
}

.sidebar-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(255, 207, 64, 0.3);
    display: block;
}

/* Ensure the sidebar link covers the whole image */
.sidebar-image a {
    display: block;
    width: 100%;
    transition: opacity 0.3s ease;
}

.sidebar-image a:hover {
    opacity: 0.8; /* Subtle visual feedback when hovering */
}

