/* --- RESET & VARIABLES --- */
:root {
    --primary: #0f172a; /* Deep Navy */
    --accent: #0ea5e9; /* Vibrant Cyan */
    --accent-hover: #0284c7;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #ffffff;
    --bg-off-white: #f1f5f9;
    --font-heading: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-body: 'Segoe UI', Open Sans, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* --- UTILITIES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
}

.btn:hover { background-color: var(--accent-hover); }

/* --- HEADER & NAV --- */
header {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul { display: flex; gap: 20px; }
nav a { color: var(--text-light); font-weight: 500; }
nav a:hover, nav a.active { color: var(--accent); }

/* --- HERO SECTION --- */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.7)), url('hero-bg.jpg'); /* Placeholder image ref */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    margin-bottom: 40px;
}

.hero h1 { color: white; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }

/* --- SECTIONS GENERAL --- */
.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 0;
}

section { padding: 40px 0; }

/* --- POST BLOCKS (Updates & Home) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.post-block {
    background: var(--bg-off-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border-left: 5px solid var(--accent);
    transition: transform 0.2s;
}

.post-block:hover { transform: translateY(-5px); }
.post-content { padding: 25px; }
.post-date { color: var(--accent); font-size: 0.9rem; font-weight: bold; margin-bottom: 10px; }
.post-block h3 { margin-bottom: 10px; font-size: 1.4rem; }

/* --- RACES TABLE --- */
.race-list { display: flex; flex-direction: column; gap: 15px; }

.race-card {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr auto;
    align-items: center;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: var(--border-radius);
    gap: 15px;
}

.race-card:hover { border-color: var(--accent); }
.race-date { font-weight: bold; color: var(--primary); }

/* --- ABOUT & CERTS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.coach-photo {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cert-container {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cert-card {
    flex: 1;
    min-width: 200px;
    border: 2px solid var(--primary);
    padding: 20px;
    text-align: center;
    border-radius: var(--border-radius);
    transition: all 0.3s;
}

.cert-card h4 { margin-bottom: 5px; color: var(--primary); }
.cert-card:hover { background: var(--primary); }
.cert-card:hover h4, .cert-card:hover p { color: white; }

/* --- MEMBERS AREA --- */
.login-gate {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-off-white);
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 40px auto;
}

.placeholder-login-box {
    background: #e2e8f0;
    border: 2px dashed #94a3b8;
    padding: 40px;
    margin-top: 30px;
    color: #64748b;
    font-weight: bold;
}

/* --- FOOTER --- */
footer {
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 15px; }
    nav ul { flex-wrap: wrap; justify-content: center; gap: 15px; }
    
    .hero h1 { font-size: 2rem; }
    
    .race-card {
        grid-template-columns: 1fr; /* Stack vertically on mobile */
        text-align: center;
    }
    
    .about-grid { grid-template-columns: 1fr; }
}