:root {
    --as-primary: #0d6efd;
    --as-dark: #0f172a;
    --as-secondary: #1e293b;
    --as-light: #f8fafc;
    --as-muted: #64748b;
    --as-accent: #e0f2fe;
}

body {
    font-family: 'Merriweather', serif;
    color: var(--as-secondary);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand,
.btn,
.section-title,
.year-badge {
    font-family: 'Merriweather Sans', sans-serif;
}

.navbar {
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.4px;
}

.nav-link {
    font-weight: 600;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding-top: 6rem;
    padding-bottom: 4rem;
}

.hero-results {
    padding: 8rem 0 4rem;
    color: #ffffff;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.hero h1,
.hero-results h1 {
    font-size: clamp(2.2rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.15;
}

.hero p.lead,
.hero-results p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.88);
    max-width: 760px;
    margin: 1.5rem auto 0;
}

.hero-actions .btn,
.btn.rounded-pill {
    min-width: 210px;
    border-radius: 999px;
    padding: 0.95rem 1.5rem;
    font-weight: 700;
}

.hero-card {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.25rem;
    padding: 1.25rem;
    text-align: left;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.section-padding {
    padding: 5rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--as-dark);
}

.section-subtitle {
    color: var(--as-muted);
    max-width: 760px;
    margin: 0.75rem auto 0;
}

.feature-card,
.modality-card,
.tournament-card,
.result-card {
    height: 100%;
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.modality-card:hover,
.tournament-card:hover,
.result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

.icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--as-accent);
    color: var(--as-primary);
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.modality-card .icon-circle {
    width: 72px;
    height: 72px;
}

.modality-icon {
    width: 34px;
    height: 34px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.modality-swim .icon-circle { background: linear-gradient(135deg, #e0f2fe, #dbeafe); }
.modality-dive .icon-circle { background: linear-gradient(135deg, #e0f7fa, #dbeafe); }
.modality-artistic .icon-circle { background: linear-gradient(135deg, #ede9fe, #e0f2fe); }
.modality-polo .icon-circle { background: linear-gradient(135deg, #dbeafe, #e0f2fe); }

.tournament-card img {
    width: 100%;
    height: 420px;
    object-fit: contain;
    background-color: #f8f9fa;
    border-top-left-radius: 1.25rem;
    border-top-right-radius: 1.25rem;
    padding: 0.75rem;
}

.result-card {
    overflow: hidden;
}

.result-card img {
    width: 100%;
    height: 320px;
    object-fit: contain;
    background: #f8fafc;
    padding: 0.75rem;
}

.status-badge,
.result-status {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.status-open {
    background: #dcfce7;
    color: #166534;
}

.status-results,
.result-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.about-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.cta-box {
    background: linear-gradient(135deg, var(--as-primary), #0a58ca);
    color: #ffffff;
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: 0 18px 45px rgba(13, 110, 253, 0.25);
}

.cta-box h2,
.cta-box p {
    color: #ffffff;
}

.year-section + .year-section {
    margin-top: 3rem;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    height: 48px;
    padding: 0 1.25rem;
    border-radius: 999px;
    background: var(--as-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(13, 110, 253, 0.18);
}

.year-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, rgba(13, 110, 253, 0.35), rgba(13, 110, 253, 0.05));
    border-radius: 999px;
}

.text-muted-custom,
.small-muted {
    color: var(--as-muted);
}

footer {
    background: var(--as-dark);
    color: rgba(255,255,255,0.78);
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}