/* General Body & Typography */
body {
    font-family: 'Lexend', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
    /* Background set specifically for splash or main site below */
}

.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    color: #0056b3;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; border-bottom: 2px solid #e9ecef; padding-bottom: 0.5rem; margin-top: 2rem; }
p { font-size: 1.1rem; }
a { color: #d6336c; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header & Navigation (Main Site) */
header {
    background: rgba(0, 86, 179, 0.9);
    color: white;
    padding-top: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav {
    max-width: 1100px;
    margin: auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.logo-img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li a {
    color: white;
    padding: 0.5rem 1rem;
    font-weight: 600;
}
nav ul li a:hover {
    background-color: #004a99;
    border-radius: 5px;
    text-decoration: none;
}

/* --- HERO STYLES (Main Site) --- */
.hero {
    text-align: center;
    padding: 2rem 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 1100px;
    margin: auto;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-step {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.hero-step.active {
    display: flex;
}

#hero-step-1 {
    justify-content: center;
    transition: all 0.5s ease-in-out;
}
#hero-step-1.shifted {
    justify-content: flex-start;
}

#hero-step-other {
    flex-grow: 1;
}
.other-location-form {
    display: flex;
    gap: 0.5rem;
    width: 284px;
}
.other-location-input {
    flex-grow: 1;
}

#hero-step-2 {
    flex-direction: column;
    gap: 1rem;
}
.results-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.location-select, .other-location-input {
    padding: 0.75rem;
    border-radius: 25px;
    border: 2px solid #fff;
    background-color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-family: 'Lexend', sans-serif;
    min-width: 250px;
}

.thermometer {
    width: 100%;
    height: 30px;
    background-color: #e9ecef;
    border-radius: 15px;
    border: 2px solid white;
    position: relative;
    overflow: hidden;
    justify-self: start;
}

.thermometer .progress {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #fd7e14, #dc3545);
    border-radius: 15px 0 0 15px;
}

.thermometer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #333;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-share {
    justify-self: center;
    background-color: #17a2b8;
}
.btn-share:hover {
    background-color: #138496;
}

.results-grid .btn {
    justify-self: end;
}

.cost-box {
    color: white;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Sections (Main Site) */
section {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pca-section, .mend-section {
    text-align: center;
}
.pca-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

/* --- SPORTS SECTION (Main Site) --- */
.sports-section {
    text-align: center;
}

.sports-intro {
    max-width: 800px;
    margin: 1.5rem auto;
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: left; /* Reset text align for cards */
}

.sport-card img { /* Applied directly, not just in slide-up */
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* --- SIGNUP SECTION (Main Site) --- */
.signup-section form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.form-group, .form-group-inline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.form-group label, .form-group-inline label {
    flex-basis: 150px; /* Default basis for most labels */
}

.checkbox-group label {
    flex-basis: auto; /* Allow checkbox label to take full width */
    margin-left: 0.5rem; /* Add a little space next to the checkbox */
}

input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    flex-grow: 1;
}
input[type="number"] {
    width: 60px;
    flex-grow: 0;
}
.btn {
    background: #28a745;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-small {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.btn:hover {
    background: #218838;
    text-decoration: none;
}
hr {
    border: 0;
    height: 1px;
    background: #e9ecef;
    margin: 2rem 0;
}

/* --- STAFF PAGE --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.staff-card {
    text-align: center;
}
.staff-card img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}
.staff-card p {
    margin: 0;
    line-height: 1.4;
}

/* --- TABLES (Schedule, Ops Pages) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}
th, td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    text-align: left;
}
th {
    background-color: #f8f9fa;
    font-weight: 600;
}
tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* --- FOOTER (Main Site) --- */
footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    background: rgba(233, 236, 239, 0.9);
    color: #6c757d;
}

/* =================================== */
/* --- STATIC LOGO SIDEBARS (Main Site) --- */
/* =================================== */

.logo-sidebar {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.logo-sidebar.left {
    left: 20px;
}

.logo-sidebar.right {
    right: 20px;
}

.logo-sidebar img {
    width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.logo-sidebar img:hover {
    opacity: 1;
}

/* =================================== */
/* --- EXPANDABLE CARD STYLES (for why-fsa.html) --- */
/* =================================== */

.expandable-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding-bottom 0.5s ease-out;
    padding-bottom: 50px;
    max-height: 120px; /* Initial collapsed height */
}

.expandable-card.expanded {
    max-height: 1800px; /* Expanded height */
    padding-bottom: 50px;
}

/* Card hidden content (used by both types) */
.card-hidden {
    margin-top: 1rem;
}

.card-arrow { /* Specific to expandable card */
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #0056b3;
    transition: transform 0.3s ease-out;
    gap: 8px;
    font-weight: bold;
}

.card-arrow .read-more-text {
    display: inline-block;
}

.card-arrow .close-text {
    display: none;
}

.expandable-card.expanded .card-arrow .read-more-text {
    display: none;
}

.expandable-card.expanded .card-arrow .close-text {
    display: inline-block;
}

.expandable-card .card-arrow i {
    transform: rotate(0deg);
    transition: transform 0.3s ease-out;
}

.expandable-card.expanded .card-arrow i {
    transform: rotate(180deg);
}

/* =================================== */
/* --- SLIDE-UP CARD STYLES (for index.html sports) --- */
/* =================================== */

.slide-up-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.slide-up-card .card-visible {
    padding-bottom: 0;
}
.slide-up-card .card-visible img {
    display: block;
}
.slide-up-card .card-visible h3 {
    padding: 0.5rem 0;
    margin: 0;
}

.slide-up-card .card-hidden {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 86, 179, 0.9);
    color: white;
    padding: 1.5rem;
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    font-size: 1rem;
    text-align: left;
}

.slide-up-card .card-hidden p {
    margin: 0;
    color: white;
}
.slide-up-card .card-hidden strong {
    color: #ffc107;
}

.slide-up-card:hover .card-hidden {
    transform: translateY(0);
    opacity: 1;
}

/* =================================== */
/* --- SPLASH PAGE STYLES --- */
/* =================================== */

.splash-body {
    background: linear-gradient(to bottom, #4394db 50%, #476212 50%);
    position: relative;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1rem 0;
    box-sizing: border-box;
    font-family: 'Lexend', sans-serif; /* Ensure font is applied */
}

.splash-top-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.splash-logos {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    flex-wrap: nowrap;
    gap: 1rem;
    width: 100%;
}

.sponsor-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: calc(25% - 1rem);
    max-width: 180px;
}

.sponsor-item img {
    max-width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 0.3rem;
}

.sponsor-count, .total-count {
    background-color: #B11F24;
    color: white !important;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid #003366;
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    display: inline-block;
    min-width: 20px;
    text-align: center;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.splash-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    width: 100%;
    margin: 0;
    min-height: auto;
    padding-top: 25vh;
}

.splash-main-logo {
    max-width: 300px;
    width: 60%;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 1s ease-in-out;
    position: absolute;
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(1); 
    margin-bottom: 0; 
}

.splash-main-logo.expanding {
    transform: translate(-50%, -50%) scale(10);
}

.thank-you-message {
    text-align: center;
    color: white !important;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.thank-you-message p {
    margin: 0.3rem 0;
    font-size: 2.0rem;
    color: white !important;
}

.total-count {
    font-size: 1.5rem;
    padding: 0.3rem 1rem;
    margin: 0.5rem auto;
}

.splash-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    width: 90%;
    max-width: 900px;
    flex-shrink: 0;
    margin-top: 1rem;
}

.splash-button {
    background-color: rgba(255, 255, 255, 0.9);
    color: #003366;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    border: 2px solid #003366;
    min-width: 120px;
    white-space: nowrap;
    flex-basis: 150px;
    flex-grow: 1;
    max-width: 220px;
}

.splash-button:hover {
    background-color: #003366;
    color: white;
    text-decoration: none;
}

#splash-total-count {
    font-size: 2.7rem; /* 3x the .sponsor-count size of 0.9rem */
    padding: 0.5rem 1.5rem; /* A bit more padding to match the big font */
}

/* Ensure body styles don't conflict */
body:not(.splash-body) {
    background-image: url('web-bckgrd.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}


/* =================================== */
/* --- MOBILE RESPONSIVE STYLES --- */
/* =================================== */

@media (max-width: 768px) {

    /* --- NAVIGATION --- */
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    /* --- HERO BANNER --- */
    .hero-step.active {
        flex-direction: column;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-grid .thermometer,
    .results-grid .btn-share,
    .results-grid .btn {
        justify-self: center;
    }

    /* --- GENERAL LAYOUT --- */
    .sports-grid, .staff-grid {
        grid-template-columns: 1fr;
    }

    .form-group {
        flex-direction: column;
        align-items: flex-start;
    }

    /* --- HIDE SIDEBAR LOGOS ON MOBILE --- */
    .logo-sidebar {
        display: none;
    }

     /* Disable slide-up hover on mobile (optional but recommended for touch devices) */
    .slide-up-card .card-hidden {
        position: static;
        transform: none;
        opacity: 1;
        background-color: transparent;
        color: #333;
        padding: 0 1rem 1rem 1rem;
    }
     .slide-up-card .card-hidden p { color: #333; }
     .slide-up-card .card-hidden strong { color: #0056b3; }

     /* --- Splash Page Mobile --- */
    .splash-logos {
        gap: 0.5rem;
        justify-content: center; /* Center items better on wrap */
    }
    .sponsor-item {
        flex-basis: calc(50% - 1rem); /* 2 items per row */
        max-width: 100px; /* Adjust max width */
    }
     .sponsor-item img {
        height: 35px;
    }
    .sponsor-count {
        font-size: 0.8rem;
    }
    .splash-main-logo {
        max-width: 200px; /* Smaller main logo on mobile */
    }
    .thank-you-message p {
        font-size: 1rem;
    }
    .total-count {
        font-size: 1.2rem;
    }
    .splash-buttons {
        flex-direction: column; /* Stack buttons */
        width: 70%;
    }
    .splash-button {
        width: 100%; /* Full width buttons */
        max-width: 100%; /* Override max-width */
        margin: 0; /* Remove horizontal margin */
        padding: 0.5rem 0.8rem;
        min-width: unset; /* Remove min-width */
        font-size: 0.9rem;
    }
}