/* Custom CSS Variables for Lexington Colors */
:root {
    --lex-blue: #162a5b;    /* Deep Navy Blue */
    --lex-ltblue: #0089DE; /* Lighter Blue */
    --lex-gold: #FFD400;    /* Bright Gold/Yellow */
    --lex-light: #F4F4F9;   /* Off-white background for contrast */
    --lex-dark: #1f1f1f;    /* Dark text/shadows */
    --font-size-base: 1.15rem;
    --line-height-base: 1.6;
    --nav-height: 4rem; /* Define a fixed height for the navigation bar */
}

/* Global Reset and Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--lex-dark);
    background-color: var(--lex-light);
    /* Set padding-top equal to nav-height to push content below the fixed nav */
    padding-top: var(--nav-height); 
    /* The JS will initially set overflow-y: scroll and body height */
    overflow-y: hidden;
}

/* ========================================================
NAVIGATION STYLES
========================================================
*/
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height); /* Explicit height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--lex-blue);
    color: var(--lex-light);
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-logo {
    /* Use Flexbox to align the image and text horizontally */
    display: flex;
    align-items: center; /* Vertically centers the items */
    gap: 0.5rem; /* Adds a small gap between the image and the text */
    
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--lex-gold);
    text-decoration: none;
}

.logo-image {
    /* Set a reasonable height for the logo image */
    height: 3rem; 
    width: auto;
    
    /* Ensure image quality is high but size is contained */
    object-fit: contain; 
}

.nav-links-container {
    /* Use flex to easily manage spacing between the links */
    display: flex;
    gap: 1.5rem; /* Adds space between "Rules" and "Schedule" */
    align-items: center;
}

.nav-link {
    /* ... existing .nav-link rules ... */
    color: var(--lex-light);
    text-decoration: none;
    /* Adjust padding if needed, but the gap above handles spacing */
    padding: 0; 
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--lex-gold);
}

/* Mobile Adjustments for Nav */
@media (max-width: 600px) {
    .main-nav {
        padding: 0.75rem 3%;
    }
    .nav-logo {
        font-size: 1.2rem;
        gap: 0.25rem;
    }
    .logo-image {
        height: 2rem; /* Smaller logo on mobile */
    }
    .nav-links-container {
        gap: 0.75rem; /* Smaller gap on mobile */
    }
    .nav-link {
        font-size: 0.9rem;
        
    }
    body {
        padding-top: 3.5rem; /* Adjust padding for smaller nav on mobile */
    }
}


/* ========================================================
HERO SECTION (Video Controlled)
========================================================
*/
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%; /* Ensure it spans full width */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--lex-light);
    overflow: hidden; 
}

.hero-spacer { 
    height: 100vh; 
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    /* Forces video to cover the container */
    min-width: 100%;
    min-height: 100%;
    object-fit: cover; 
    
    transform: translate(-50%, -50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.4); 
    padding: 2rem;
    border-radius: 10px;
}

.hero-section h1 {
    font-size: 4rem;
    color: var(--lex-gold);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px var(--lex-blue);
}

.membership-status {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--lex-gold);
    color: var(--lex-blue);
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-size: 1.25rem;
}

.cta-button:hover {
    background-color: #e6b229;
}

/* Mobile Adjustments for Hero */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .membership-status {
        font-size: 1.2rem;
    }
    .cta-button {
        font-size: 1rem;
    }
}


/* ========================================================
SCHEDULE SECTION STYLES (LAYOUT FIX APPLIED HERE)
========================================================
*/
.schedule-section {
    /* CRUCIAL LAYOUT FIX: Pushes the content down 100vh 
       minus the height of the fixed navigation bar. */
    margin-top: calc(100vh - var(--nav-height));
    
    padding: 4rem 5%;
    text-align: center;
    background-color: var(--lex-light);
    min-height: 100vh; 
}

.schedule-section h2 {
    color: var(--lex-blue);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-day {
    background-color: #e7e7e7;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-left: 5px solid var(--lex-blue);
    text-align: left;
}

.schedule-day h3 {
    color: var(--lex-blue);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.time {
    font-weight: 700;
    color: var(--lex-dark);
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.location {
    color: #666;
}

.featured-day {
    border-left: 5px solid var(--lex-gold);
    background-color: var(--lex-blue);
    color: var(--lex-light);
}

.featured-day h3 {
    color: var(--lex-gold);
}

.featured-day .time, .featured-day .location {
    color: var(--lex-light);
}

.note {
    margin-top: 3rem;
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: var(--lex-gold);
    color: var(--lex-dark);
    border-radius: 5px;
    font-weight: 700;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


/* ========================================================
RULES SECTION STYLES (rules.html)
========================================================
*/

body.rules-page {
    height: auto !important; /* Force natural height based on content */
    overflow-y: scroll !important; /* Force scrolling */
    /* Ensure no weird positioning is inherited */
    position: static !important; 
}

.rules-section {
    padding: 4rem 5% 4rem; /* Top padding uses the body's padding-top for spacing */
    background-color: var(--lex-light);
    min-height: 100vh;
}

.rules-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.rules-container h1 {
    color: var(--lex-blue);
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.intro-text {
    text-align: center;
    margin-bottom: 3rem;
    font-style: italic;
    color: #555;
}

.rule-category {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rule-category h2 {
    color: var(--lex-blue);
    font-size: 2rem;
    border-bottom: 2px solid var(--lex-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.rule-category ul {
    list-style: none; 
    padding-left: 0;
}

.rule-category li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Custom list item marker */
.rule-category li::before {
    content: "➤"; 
    position: absolute;
    left: 0;
    color: #555;
}

/* ========================================================
FOOTER STYLES
========================================================
*/
footer {
    background-color: var(--lex-blue);
    color: var(--lex-light);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}