:root {
    --primary-color: #1B2838;
    --accent-color: rgb(250, 229, 0);
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #eff0f0d2;
    /*--bg-light: #F4F6EF;*/
    --navy: #1B2838;
    --gold: rgb(250, 229, 0);
    --white: #ffffff;
    --sidebar-width: 280px;
    --header-height: auto;
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* --- HEADER SECTION --- */
.site-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem 2rem;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* New Club Header Styling */
.club-header {
    background-color: var(--navy);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    border-bottom: 4px solid var(--gold);
    gap: 30px;
    width: 100%;
}

/* Container for Name and Date to stack them */
.club-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Club Name Styling */
.club-name {
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
    color: var(--white);
}

/* The Rose Image */
.rose-logo {
    height: 80px; /* Adjust size as needed */
    width: auto;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
    background-color: #1B2838; /* Requested background color */
    border-radius: 50%; /* Optional: makes the background circular if the image is round */
}

/* Founded Date Styling */
.founded-date {
    font-size: 1.4rem;
    font-weight: normal;
    text-align: left;
    color: var(--white);
    text-transform: uppercase;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Stack Brand and Nav vertically */
    align-items: center;
    position: relative;
}

/* Club Name */
.club-brand {
    text-align: center;
    margin-bottom: 1rem;
    z-index: 10;
}

.club-brand h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

/* Mobile Responsive adjustment for Club Header */
@media (max-width: 768px) {
    .club-header { flex-direction: column; gap: 10px; text-align: center; }
    .club-info { align-items: center; }
    .club-name, .founded-date { text-align: center; }
    .club-name { text-align: center; }
    .founded-date { text-align: center; }
}


/* Navigation (Desktop) */
.main-nav {
    width: 100%;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
}

.nav-list a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding-bottom: 5px;
}

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

/* Sign In Button */
.sign-in-btn {
    position: absolute;
    top: 0.5rem;
    right: 0;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background 0.2s;
}

.sign-in-btn:hover {
    background-color: #fff;
}

/* Mobile Elements (Hidden on Desktop) */
.burger-menu { display: none; }
.mobile-sidebar { display: none; }
.overlay { display: none; }

/* --- MAIN CONTENT --- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
}

/* Component: Sports Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.results-table th, .results-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: var(--primary-color);
    color: white;
}

/* Component: Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 200px;
    background-color: #ddd; /* Placeholder color */
    background-size: cover;
    background-position: center;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .club-brand h1 {
        font-size: 1.2rem;
        margin: 0;
        text-align: left;
    }

    /* Hide Desktop Nav */
    .main-nav { display: none; }

    /* Adjust Sign In Button for Mobile */
    .sign-in-btn {
        position: static;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin-left: auto;
        margin-right: 1rem;
    }

    /* Burger Menu Icon */
    .burger-menu {
        display: block;
        font-size: 1.8rem;
        cursor: pointer;
        background: none;
        border: none;
        color: white;
    }

    /* Sidebar Navigation */
    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: var(--sidebar-width);
        height: 100vh;
        background-color: var(--primary-color);
        z-index: 1000;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease-in-out;
        padding-top: 4rem;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }

    .mobile-sidebar.active {
        transform: translateX(0); /* Slide in */
    }

    .mobile-sidebar a {
        display: block;
        padding: 1rem 2rem;
        color: white;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    /* Close Button inside Sidebar */
    .close-sidebar {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }
    
    /* Overlay for when sidebar is open */
    .overlay {
        display: block;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }
    
    .overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

/* --- TICKER TAPE STYLES --- */
.ticker-container {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
    display: flex;
    height: 40px;
    line-height: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--accent-color);
}

.ticker-label {
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 0 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 30s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding-right: 4rem;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- IN MEMORIAM SCROLL --- */
.memoriam-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    padding: 1rem 0;
}

.memoriam-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    /* Adjust duration based on number of items for smooth speed */
    animation: memoriam-scroll 60s linear infinite;
}

.memoriam-track:hover {
    animation-play-state: paused;
}

.memoriam-card {
    width: 280px;
    flex-shrink: 0;
    text-align: center;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.memoriam-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-color);
}

.memoriam-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes memoriam-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- SPORT ACCORDION STYLES --- */
.sport-accordion {
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem 0;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.17em;
    font-weight: bold;
    border-bottom: 2px solid #eee;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
}

.sport-accordion:after {
    content: '\002B'; /* Plus sign */
    font-size: 1.5rem;
}

.sport-accordion.active:after {
    content: "\2212"; /* Minus sign */
}

.sport-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}