/* Base Styles & Variables (Modern Sleek Theme) */
:root {
    --primary: #4FBCCB; /* Your Signature Teal */
    --primary-hover: #3da4b2;
    --primary-light: rgba(79, 188, 203, 0.1);
    
    --bg-main: #ffffff;
    --bg-card: #fdfdfe; /* Almost white for clarity */
    --bg-glass: rgba(255, 255, 255, 0.7);
    
    --text-main: #0f172a; /* Deep Slate */
    --text-muted: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-accent: 'Dancing Script', cursive;
    
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.03);
    --shadow-elevated: 0 20px 40px rgba(79, 188, 203, 0.08);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 10px;
}

.section-desc {
    font-size: 1.15rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(15, 23, 42, 0.05);
}

/* Glassmorphism utility modified for light theme */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

/* 1. Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-soft);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #4FBCCB; /* Signature Teal */
    text-transform: uppercase;
    letter-spacing: -1px;
    transition: var(--transition);
}

.logo:hover {
    color: var(--text-main);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* 2. Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, var(--primary-light), transparent);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    letter-spacing: -2px;
}

.highlight {
    color: var(--primary);
    background: linear-gradient(120deg, var(--primary-light) 0%, transparent 100%);
    padding: 0 0.5rem;
    border-radius: 8px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-bg-effect {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249,115,22,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* 3. Achievements */
.achievements {
    padding: 6rem 0;
    background: #ffffff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    @extend .glass;
    padding: 3rem 2rem;
    text-align: center;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* 4. About */
.about {
    padding: 6rem 0;
    background: var(--bg-card);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Make text a bit wider than image */
    gap: 4rem;
    align-items: center;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb; /* Blue title */
    margin-bottom: 0.5rem;
}

.about-subtitle {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    background: #0f172a;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.about-image-placeholder {
    aspect-ratio: 4/3;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--border-color);
    color: var(--text-muted);
}

/* 5. Marathons */
.marathons {
    padding: 6rem 0;
    background: #ffffff;
}

.race-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* 5. Races & Cards */
.race-card, .blog-card, .tier-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.race-card:hover, .blog-card:hover, .tier-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary-light);
}

.race-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.race-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.race-info h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
    color: var(--text-main);
}

.race-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
}

.race-meta .type-text {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.year-chip {
    display: inline-block;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.view-all-chip {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.view-all-chip:hover {
    background: var(--primary);
    color: #fff;
}


.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* 6. Gallery */
.gallery {
    padding: 6rem 0;
    background: var(--bg-card);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    aspect-ratio: 1;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
}

/* 7. Blog */
.blog {
    padding: 6rem 0;
    background: #ffffff;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1200px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
}

/* Individual blog card elements can be styled here if needed */

.blog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}

/* 8. Sponsorship */
.sponsorship {
    padding: 8rem 0;
    text-align: center;
    background: var(--bg-card);
}

.sponsorship-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 9. Contact */
.contact {
    padding: 6rem 0;
    background: #ffffff;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    appearance: none; /* Modern look */
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%234FBCCB' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.contact-form .btn {
    width: 100%;
}

/* 10. Footer */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-link {
    font-size: 0.8rem;
    color: var(--primary);
}

.admin-link:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .race-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .race-list {
        grid-template-columns: 1fr;
    }
    
    .race-card {
        flex-direction: row;
        align-items: center;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Sponsorship Page Styles */
.sponsor-hero {
    background: var(--bg-card);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero-hook .category-tag {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.hero-hook h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-family: var(--font-heading);
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.star-tracker-box {
    margin-top: 4rem;
    background: #fff;
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.star-tracker {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.star-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 100px;
}

.star-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.star-item.completed .star-icon {
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.star-item.upcoming .star-icon {
    color: #ddd;
}

.star-item span {
    font-weight: 700;
    font-size: 1rem;
}

.star-item small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 0;
}

.m-stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.m-stat-card h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tier-card {
    display: flex;
    flex-direction: column;
}

.tier-card.featured {
    border: 2px solid var(--primary-color);
    position: relative;
}

.tier-card.featured::after {
    content: "Recommended";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.tier-card.gold {
    background: linear-gradient(135deg, #fff 0%, #fffbf0 100%);
    border: 2px solid #ffd700;
}

.tier-header h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.tier-benefits {
    margin-top: auto;
    padding-top: 1.5rem;
    list-style: none;
    padding-left: 0;
}

.tier-benefits li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tier-benefits li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: 700;
}

.sponsor-contact {
    padding: 6rem 0;
    background: var(--bg-card);
}

.contact-box {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .mission-grid, .form-row, .tier-grid {
        grid-template-columns: 1fr;
    }
    .hero-hook h1 {
        font-size: 2.5rem;
    }
    .tier-card.featured {
        transform: none;
    }
}
