/* ── Reset & Base ── */
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,400;0,700;1,400&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Ubuntu', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #121212;
    background: #ffffff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

/* ── Announcement Bar ── */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--ann-bg, #0B3C56);
    height: 36px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.announcement-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-scroll 28s linear infinite;
    flex-shrink: 0;
}

.announcement-bar:hover .announcement-track {
    animation-play-state: paused;
}

.announcement-text {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-right: 80px;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.92);
}

.announcement-link {
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.announcement-link:hover { opacity: 0.75; }

.announcement-close {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 6px;
    line-height: 1;
    z-index: 1;
    transition: color 0.15s;
}

.announcement-close:hover { color: #fff; }

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Push navbar below announcement bar when visible */
body:has(.announcement-bar) .navbar {
    top: 36px;
}

body:has(.announcement-bar) .page-content,
body:has(.announcement-bar) main {
    padding-top: 36px;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0B3C56;
    z-index: 999;
    transition: background 0.3s ease;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    color: white;
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.04em;
    z-index: 1001;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875em;
    font-weight: 400;
    padding: 20px 16px;
    display: block;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── Nav Account ── */
.nav-account {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 16px;
}
.nav-account-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.8em;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-account-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-account-signin {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
@media (max-width: 768px) { .nav-account { display: none; } }

/* ── Hamburger ── */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Nav Overlay ── */
.mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: #0B3C56;
    z-index: 1000;
    padding: 80px 24px 40px;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: white;
    font-size: 1.1em;
    font-weight: 400;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    transition: opacity 0.2s ease;
}

.mobile-nav a:hover {
    opacity: 0.7;
}

/* ── Language Switcher ── */
.lang-switcher {
    position: relative;
}

.lang-current {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.85);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.78em;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: border-color 0.2s;
}

.lang-current:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.lang-arrow {
    font-size: 0.7em;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #0B3C56;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    min-width: 120px;
    z-index: 1002;
}

.lang-dropdown.open {
    display: block;
}

.lang-dropdown form {
    margin: 0;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.82em;
    font-weight: 400;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ── Hero Section ── */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 60px);
    margin-top: 60px;
    min-height: 560px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img,
.hero-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #5ca0c8 0%, #3a7ab5 40%, #1e5a8a 100%);
}

/* ── Tagline Section ── */
.tagline {
    padding: 80px 24px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.tagline-has-bg {
    position: relative;
    max-width: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.tagline-has-bg > *:not(.tagline-overlay) {
    position: relative;
    z-index: 1;
}

.tagline-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
}

.tagline-has-bg .tagline-eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.tagline-has-bg .tagline-title {
    color: #ffffff;
}

.tagline-has-bg .tagline-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.tagline-eyebrow {
    font-size: 0.78em;
    font-weight: 400;
    color: #6B6B6B;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tagline-title {
    font-size: 3.2em;
    font-weight: 700;
    color: #1A1A1A;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 18px;
}

.tagline-subtitle {
    font-size: 1.05em;
    font-weight: 400;
    color: #6B6B6B;
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 32px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: #277e6e;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.88em;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 4px;
    transition: background 0.25s ease;
}

.btn-primary:hover {
    background: #1f6a5c;
}

/* ── Shared Section Styles ── */
.section {
    padding: 72px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-alt {
    background: #f5f7f8;
}

.section-alt .section {
    padding-left: 24px;
    padding-right: 24px;
}

.section-eyebrow {
    font-size: 0.72em;
    font-weight: 700;
    color: #277e6e;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2em;
    font-weight: 700;
    color: #0B3C56;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-intro {
    font-size: 1em;
    line-height: 1.8;
    color: #555;
    font-weight: 400;
    max-width: 600px;
    margin-bottom: 40px;
}

.section-center {
    text-align: center;
}

.section-center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ── About Section (split layout) ── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 6px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #6db3d4 0%, #3578a5 100%);
    border-radius: 6px;
}

.about-text .section-eyebrow,
.about-text .section-title,
.about-text .section-intro {
    text-align: left;
}

.about-text .section-intro {
    margin-bottom: 20px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88em;
    font-weight: 700;
    color: #277e6e;
    transition: gap 0.2s ease;
}

.btn-link:hover {
    gap: 10px;
}

/* ── Activities Grid ── */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.activity-card {
    background: white;
    border-radius: 6px;
    padding: 28px 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.activity-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.activity-icon {
    font-size: 1.6em;
    margin-bottom: 12px;
}

.activity-card h3 {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0B3C56;
    margin-bottom: 8px;
}

.activity-card p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #666;
    font-weight: 400;
}

.activity-card .meta {
    margin-top: 12px;
    font-size: 0.82em;
    color: #999;
}

/* ── Values / Why B3RC Grid ── */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.value-card {
    background: #0B3C56;
    color: white;
    border-radius: 6px;
    padding: 32px 24px;
    text-align: center;
    transition: background 0.25s ease;
}

.value-card:hover {
    background: #0d4565;
}

.value-icon {
    font-size: 2em;
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.88em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ── Image Carousel ── */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: #0B3C56;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.35);
    color: white;
    border: none;
    font-size: 2em;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease;
}

.carousel-dot.active {
    background: white;
    border-color: white;
}

/* ── CTA Banner ── */
.cta-banner {
    background: #277e6e;
    padding: 56px 24px;
    text-align: center;
}

.cta-banner h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.cta-banner p {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 480px;
    margin: 0 auto 28px;
    line-height: 1.7;
}

.btn-white {
    display: inline-block;
    padding: 14px 32px;
    background: white;
    color: #0B3C56;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.88em;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    transition: background 0.25s ease;
}

.btn-white:hover {
    background: #f0f0f0;
}

/* ── Contact Split ── */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 6px;
    overflow: hidden;
}

.contact-map {
    min-height: 320px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.contact-info {
    background: #0B3C56;
    color: white;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 0.92em;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 6px;
}

.contact-info .btn-outline {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    border-radius: 4px;
    transition: background 0.25s ease, border-color 0.25s ease;
    width: fit-content;
}

.contact-info .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* ── Footer ── */
.footer {
    background: #0a2e42;
    color: white;
    padding: 48px 0 0;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2em;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
}

.footer-heading {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.45);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88em;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-links li a:hover {
    color: #ffffff;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88em;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 4px;
}

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 12px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85em;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    font-size: 0.75em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3);
}

/* ── Inner Pages ── */
.page-content {
    padding-top: 100px;
    padding-bottom: 80px;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Inner Page Cards ── */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 40px;
}

.card {
    background: #f5f7f8;
    border: none;
    border-radius: 6px;
    padding: 28px 24px;
    transition: background 0.25s ease;
}

.card:hover {
    background: #edf0f2;
}

.card h3 {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0B3C56;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #666;
    font-weight: 400;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 0.82em !important;
    color: #999 !important;
}

/* ── Inner CTA Box ── */
.cta-box {
    background: #0B3C56;
    color: #ffffff;
    border-radius: 6px;
    padding: 48px 32px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-box p {
    font-size: 0.95em;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    margin-bottom: 24px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #277e6e;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.85em;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    transition: background 0.25s ease;
}

.btn-cta:hover {
    background: #1f6a5c;
}

/* ── Map Cards ── */
.map-card {
    background: #f5f7f8;
    border: none;
    border-radius: 6px;
    overflow: hidden;
    transition: background 0.25s ease;
}

.map-card:hover {
    background: #edf0f2;
}

.map-card-info {
    padding: 24px 24px 12px;
}

.map-card-info h3 {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0B3C56;
    margin-bottom: 8px;
}

.map-card-info p {
    font-size: 0.9em;
    line-height: 1.7;
    color: #666;
    font-weight: 400;
    margin-bottom: 4px;
}

.map-wrapper {
    padding: 0 12px 12px;
}

.map-wrapper iframe {
    border: 0;
    border-radius: 4px;
}

/* ── Leaderboard ── */
.leaderboard-container {
    max-width: 960px;
}

.leaderboard-header {
    margin-bottom: 40px;
}

/* Login Card */
.login-card {
    background: #f5f7f8;
    border-radius: 6px;
    padding: 48px 32px;
    text-align: center;
    max-width: 440px;
    margin: 0 auto;
}

.login-card h2 {
    font-size: 1.3em;
    font-weight: 700;
    color: #0B3C56;
    margin-bottom: 8px;
}

.login-card > p {
    font-size: 0.88em;
    line-height: 1.7;
    color: #666;
    margin-bottom: 28px;
}

.login-note {
    font-size: 0.75em !important;
    color: #999 !important;
    margin-top: 20px !important;
    margin-bottom: 0 !important;
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 4px;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.88em;
    font-weight: 600;
    transition: opacity 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-social:hover {
    opacity: 0.9;
}

.btn-social-icon {
    flex-shrink: 0;
}

.btn-strava {
    background: #FC4C02;
    color: #ffffff;
}

.btn-google {
    background: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0 !important;
}

.btn-google:hover {
    background: #f7f8f8;
    opacity: 1;
}

.btn-facebook {
    background: #1877F2;
    color: #ffffff;
}

.btn-apple {
    background: #000000;
    color: #ffffff;
}

/* Strava Link Banner (logged in but no Strava) */
.strava-link-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #FFF3ED;
    border: 1px solid #FDDCCC;
    border-radius: 6px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.strava-link-banner p {
    font-size: 0.88em;
    color: #7A3D10;
    margin: 0;
}

.btn-strava-sm {
    display: inline-block;
    padding: 8px 20px;
    background: #FC4C02;
    color: #ffffff;
    font-family: 'Ubuntu', sans-serif;
    font-size: 0.82em;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    white-space: nowrap;
    transition: background 0.25s ease;
}

.btn-strava-sm:hover {
    background: #e04400;
}

/* Club Stats Bar */
.club-stats-bar {
    display: flex;
    gap: 0;
    background: #0B3C56;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 32px;
}

.club-stat {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.club-stat:last-child {
    border-right: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.club-stat-value {
    display: block;
    font-size: 1.6em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.club-stat-label {
    display: block;
    font-size: 0.72em;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

.club-stat-link {
    color: #277e6e;
    font-size: 0.82em;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.2s;
}

.club-stat-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #3aaf95;
}

/* Leaderboard Section */
.leaderboard-section {
    margin-bottom: 40px;
}

.leaderboard-section-title {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0B3C56;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0B3C56;
}

/* Leaderboard Table */
.leaderboard-table-wrap {
    overflow-x: auto;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.leaderboard-table thead th {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.leaderboard-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.leaderboard-table tbody tr:hover {
    background: #f9fafb;
}

.leaderboard-table tbody td {
    padding: 12px 12px;
    color: #333;
}

.col-rank {
    width: 48px;
    text-align: center !important;
}

.col-distance {
    white-space: nowrap;
}

.col-pace,
.col-time,
.col-elevation {
    white-space: nowrap;
    color: #666;
}

.col-runs {
    text-align: center;
}

.medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.78em;
    font-weight: 700;
    color: white;
}

.medal.gold {
    background: #D4A843;
}

.medal.silver {
    background: #8E9EAB;
}

.medal.bronze {
    background: #B87333;
}

.top-three td {
    font-weight: 600;
}

/* Activity Feed */
.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-item {
    display: flex;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: flex-start;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-athlete {
    font-weight: 700;
    font-size: 0.88em;
    color: #0B3C56;
    min-width: 120px;
    white-space: nowrap;
}

.feed-details {
    flex: 1;
}

.feed-name {
    display: block;
    font-size: 0.88em;
    color: #333;
    margin-bottom: 4px;
}

.feed-stats {
    display: flex;
    gap: 16px;
    font-size: 0.78em;
    color: #999;
}

.feed-stats span {
    white-space: nowrap;
}

/* Leaderboard Footer */
.leaderboard-footer {
    text-align: center;
    padding: 24px 0 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}

.leaderboard-footer p {
    font-size: 0.82em;
    color: #999;
}

.leaderboard-footer a {
    color: #277e6e;
    font-weight: 600;
}

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

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
    .tagline-title {
        font-size: 2.6em;
    }

    .about-split {
        gap: 32px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .club-stats-bar {
        flex-wrap: wrap;
    }

    .club-stat {
        flex: 1 1 50%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .club-stat:nth-child(2) {
        border-right: none;
    }

    .leaderboard-table {
        font-size: 0.82em;
    }

    .col-elevation,
    .col-time {
        display: none;
    }

    .feed-athlete {
        min-width: 80px;
    }

    .feed-stats {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .nav-container {
        height: 56px;
    }

    /* Hero */
    .hero {
        height: 70vh;
        min-height: 300px;
    }

    /* Tagline */
    .tagline {
        padding: 48px 20px;
    }

    .tagline-title {
        font-size: 2.2em;
    }

    .tagline-subtitle {
        font-size: 0.95em;
    }

    /* Sections */
    .section {
        padding: 48px 20px;
    }

    .section-title {
        font-size: 1.6em;
    }

    /* About */
    .about-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        aspect-ratio: 16 / 9;
    }

    /* Activities */
    .activities-grid {
        grid-template-columns: 1fr;
    }

    /* Values */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Carousel */
    .carousel {
        aspect-ratio: 16 / 9;
    }

    /* CTA Banner */
    .cta-banner {
        padding: 40px 20px;
    }

    .cta-banner h2 {
        font-size: 1.4em;
    }

    /* Contact */
    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 240px;
    }

    .contact-info {
        padding: 32px 20px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 0 20px 32px;
    }

    .footer-bottom {
        padding: 16px 20px;
    }

    /* Inner pages */
    .page-content {
        padding-top: 80px;
        padding-bottom: 60px;
    }

    .container {
        padding: 0 20px;
    }

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

    .cta-box {
        padding: 36px 20px;
    }
}

/* ── Small phones ── */
@media (max-width: 400px) {
    .tagline-title {
        font-size: 1.8em;
    }

    .tagline-subtitle {
        font-size: 0.88em;
    }

    .btn-primary,
    .btn-white,
    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.4em;
    }

    .cta-banner h2 {
        font-size: 1.2em;
    }
}


/* ── Shop ─────────────────────────────────────────────────────────────────── */

.shop-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.shop-header {
    text-align: center;
    margin-bottom: 40px;
}

.shop-header .section-intro {
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Bar */
.shop-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #666;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: #0B3C56;
    color: #fff;
    border-color: #121212;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.05);
}

.product-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-preorder {
    background: #0B3C56;
    color: #fff;
}

.badge-soldout {
    background: #0B3C56;
    color: #fff;
}

.product-card-info {
    padding: 16px;
}

.product-card-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #121212;
}

.product-card-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
}

.shop-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}


/* ── Product Detail ───────────────────────────────────────────────────────── */

.breadcrumb {
    margin-bottom: 24px;
    font-size: 13px;
    color: #888;
}

.breadcrumb a {
    color: #888;
    text-decoration: underline;
}

.breadcrumb a:hover {
    color: #121212;
}

.breadcrumb span {
    margin: 0 6px;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.gallery-main {
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-placeholder {
    height: 100%;
    font-size: 3em;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
}

.gallery-thumb.active {
    border-color: #121212;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 8px;
}

.product-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-price {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 20px;
}

.product-preorder-note {
    display: inline-block;
    padding: 6px 14px;
    background: #f0f8ff;
    border: 1px solid #0B3C56;
    border-radius: 6px;
    font-size: 13px;
    color: #0B3C56;
    margin-bottom: 20px;
}

.product-form {
    margin-bottom: 24px;
}

.variant-picker {
    margin-bottom: 20px;
}

.variant-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    color: #666;
}

.variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-btn:hover {
    border-color: #121212;
}

.variant-btn.active {
    background: #0B3C56;
    color: #fff;
    border-color: #121212;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #e0e0e0;
}

#qtyInput {
    width: 48px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

#qtyInput::-webkit-outer-spin-button,
#qtyInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-add-to-cart {
    width: 100%;
    padding: 14px 24px;
    background: #0B3C56;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-add-to-cart:hover:not(:disabled) {
    opacity: 0.85;
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.stock-note {
    font-size: 13px;
    color: #e74c3c;
    margin-top: 8px;
    min-height: 18px;
}

.shipping-info {
    margin-bottom: 24px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
}

.shipping-info p {
    margin-bottom: 4px;
}

.product-description {
    padding-top: 24px;
    border-top: 1px solid #eee;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}


/* ── Cart ─────────────────────────────────────────────────────────────────── */

.cart-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-weight: 700;
    font-size: 12px;
}

.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 2px;
}

.cart-item-variant {
    font-size: 13px;
    color: #888;
}

.cart-item-price {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quantity-control-sm {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.quantity-control-sm .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 14px;
}

.qty-display {
    width: 32px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
}

.cart-remove-btn {
    background: none;
    border: none;
    color: #e74c3c;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.cart-remove-btn:hover {
    text-decoration: underline;
}

.cart-item-total {
    font-size: 15px;
    text-align: right;
    min-width: 80px;
}

/* Cart Summary */
.cart-summary {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    position: sticky;
    top: 80px;
}

.cart-summary-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    margin-top: 4px;
    margin-bottom: 20px;
}

/* Shipping Selector */
.shipping-selector {
    margin: 16px 0;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.shipping-option:hover {
    border-color: #121212;
}

.shipping-option input[type="radio"] {
    accent-color: #121212;
}

.shipping-option-info {
    flex: 1;
}

.shipping-option-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.shipping-option-desc {
    display: block;
    font-size: 12px;
    color: #888;
}

.shipping-option-price {
    font-size: 14px;
    font-weight: 600;
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: #0B3C56;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-checkout:hover {
    opacity: 0.85;
}

.cart-continue-link {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #888;
    text-decoration: underline;
}

.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty p {
    color: #888;
    margin-bottom: 20px;
}

.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #0B3C56;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.85;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    background: #fff;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #121212;
    color: #121212;
}


/* ── Order Confirmation ───────────────────────────────────────────────────── */

.order-confirmation {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px;
}

.confirmation-header {
    text-align: center;
    margin-bottom: 40px;
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #277e6e;
    color: #fff;
    font-size: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.confirmation-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.confirmation-card h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.confirmation-total {
    font-size: 18px;
    font-weight: 700;
    padding-top: 12px;
    border-top: 1px solid #ddd;
    margin-top: 8px;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.confirmation-card hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

.pickup-note {
    background: #f0f8ff;
    border: 1px solid #0B3C56;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.pickup-note h3 {
    font-size: 15px;
    margin-bottom: 8px;
    color: #0B3C56;
}

.pickup-note p {
    font-size: 14px;
    color: #444;
}

.confirmation-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Order Status Badges */
.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-paid {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-processing {
    background: #fff3e0;
    color: #e65100;
}

.status-shipped {
    background: #e3f2fd;
    color: #1565c0;
}

.status-delivered {
    background: #e8f5e9;
    color: #1b5e20;
}

.status-cancelled {
    background: #fce4ec;
    color: #c62828;
}

.status-pending {
    background: #f5f5f5;
    color: #666;
}


/* ── Orders List ──────────────────────────────────────────────────────────── */

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.order-card {
    display: block;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.order-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.order-number {
    font-weight: 700;
    font-size: 15px;
}

.order-card-body {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.order-total {
    font-weight: 600;
    color: #121212;
}

.order-card-shipping {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}


/* ── Order Detail ─────────────────────────────────────────────────────────── */

.order-detail-page {
    margin-bottom: 40px;
}

.order-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.order-detail-header h1 {
    font-size: 24px;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.order-detail-items h2,
.order-detail-info h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.order-detail-item-info strong {
    display: block;
    font-size: 14px;
}

.order-detail-item-info span {
    font-size: 13px;
    color: #888;
    margin-right: 8px;
}

.order-detail-item-price {
    font-weight: 600;
}

.order-detail-totals {
    margin-top: 16px;
}

.order-detail-info {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
}

.order-info-block {
    margin-bottom: 16px;
}

.order-info-block label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 4px;
}

.order-info-block p {
    font-size: 14px;
    color: #121212;
}


/* ── Shop Responsive ──────────────────────────────────────────────────────── */

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

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

    .product-detail {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
        gap: 12px;
    }

    .cart-item-actions {
        grid-column: 2;
        flex-direction: row;
    }

    .cart-item-total {
        grid-column: 2;
        text-align: left;
    }

    .order-detail-grid {
        grid-template-columns: 1fr;
    }

    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .btn-primary,
    .confirmation-actions .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ── Home Blog Preview ── */
.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.home-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 4px rgba(11,60,86,0.06);
}

.home-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(11,60,86,0.12);
}

.home-blog-card-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #dde4e8;
}

.home-blog-card-placeholder {
    background: linear-gradient(135deg, #0B3C56 0%, #277e6e 100%);
}

.home-blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.home-blog-card-title {
    font-size: 0.95em;
    font-weight: 700;
    color: #0B3C56;
    line-height: 1.4;
    margin: 8px 0 6px;
}

.home-blog-card-excerpt {
    font-size: 0.85em;
    color: #666;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.home-blog-card-date {
    font-size: 0.75em;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-blog-cta {
    text-align: center;
    margin-top: 36px;
}

/* ── Blog ── */
.blog-container {
    padding-top: 48px;
    padding-bottom: 80px;
}

.blog-header {
    margin-bottom: 32px;
}

/* Category tabs */
.blog-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.blog-tab {
    padding: 6px 16px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #121212;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.blog-tab:hover,
.blog-tab.active {
    background: #0B3C56;
    color: #fff;
    border-color: #0B3C56;
}

/* Layout: 2-col with sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
}

/* ── Featured hero card ── */
.blog-featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 28px;
    transition: box-shadow 0.2s;
}

.blog-featured-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.blog-featured-img {
    width: 100%;
    height: 340px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.blog-featured-img iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.blog-featured-placeholder {
    background: linear-gradient(135deg, #0B3C56 0%, #277e6e 100%);
}

.blog-featured-body {
    padding: 24px;
}

.blog-featured-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 10px;
    line-height: 1.3;
}

.blog-read-more {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0B3C56;
}

/* ── Regular post card ── */
.blog-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blog-card-img {
    height: 100%;
    min-height: 110px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
}

.blog-card-placeholder {
    background: linear-gradient(135deg, #0B3C56 0%, #277e6e 100%);
}

.blog-card-video-thumb {
    background: #0B3C56;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-body {
    padding: 16px;
}

.blog-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 6px 0 4px;
    line-height: 1.4;
}

.blog-card-location {
    font-size: 12px;
    color: #6b6b6b;
    margin: 0 0 4px;
}

/* ── Meta shared ── */
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.blog-category-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cat-event    { background: #e6f4ea; color: #1e7e34; }
.cat-parkrun  { background: #fff3cd; color: #856404; }
.cat-race     { background: #f8d7da; color: #842029; }
.cat-training { background: #cfe2ff; color: #084298; }
.cat-news     { background: #e2e3e5; color: #41464b; }

.blog-date {
    font-size: 12px;
    color: #6b6b6b;
    font-weight: 500;
}

.blog-location {
    font-size: 12px;
    color: #6b6b6b;
}

.blog-excerpt {
    font-size: 14px;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-empty {
    padding: 48px 0;
    color: #6b6b6b;
    text-align: center;
}

/* ── Pagination ── */
.blog-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    justify-content: center;
}

.blog-page-btn {
    padding: 8px 20px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #121212;
    transition: background 0.15s;
}

.blog-page-btn:hover {
    background: #0B3C56;
    color: #fff;
}

.blog-page-info {
    font-size: 13px;
    color: #6b6b6b;
}

/* ── Sidebar RSS link ── */
.sidebar-rss-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f26522;
    text-decoration: none;
    margin-bottom: 16px;
    transition: opacity 0.15s;
}

.sidebar-rss-link:hover { opacity: 0.75; }

/* ── Sidebar ── */
.blog-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 24px;
    background: #fff;
}

.sidebar-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    color: #6b6b6b;
}

.sidebar-recent {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-recent li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 13px;
    line-height: 1.4;
}

.sidebar-recent li:last-child {
    border-bottom: none;
}

.sidebar-recent a {
    color: #121212;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.sidebar-recent a:hover { color: #0B3C56; }

.sidebar-recent span {
    font-size: 11px;
    color: #6b6b6b;
}

.sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-cats li {
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.sidebar-cats li:last-child { border-bottom: none; }

.sidebar-cats a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: #121212;
    text-decoration: none;
    font-weight: 500;
}

.sidebar-cats a:hover,
.sidebar-cats a.active { color: #0B3C56; font-weight: 700; }

.sidebar-cats span {
    font-size: 11px;
    color: #6b6b6b;
    background: #f0f0f0;
    padding: 1px 7px;
    border-radius: 10px;
}

/* ── Mini Calendar ── */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cal-month {
    font-size: 13px;
    font-weight: 700;
}

.cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 2px 6px;
    color: #121212;
    border-radius: 4px;
}

.cal-nav:hover { background: #f0f0f0; }

.cal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.cal-table th {
    text-align: center;
    color: #6b6b6b;
    font-weight: 600;
    padding: 3px 0;
}

.cal-table td {
    text-align: center;
    padding: 3px 0;
    line-height: 24px;
}

.cal-table td.cal-today {
    font-weight: 700;
}

.cal-table td.cal-event a {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    background: #0B3C56;
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
}

.cal-table td.cal-today.cal-event a {
    background: #277e6e;
}

/* ── Blog Detail ── */
.blog-detail-container {
    padding-top: 40px;
    padding-bottom: 80px;
    max-width: 800px;
}

.blog-breadcrumb {
    font-size: 13px;
    color: #6b6b6b;
    margin-bottom: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.blog-breadcrumb a {
    color: #6b6b6b;
    text-decoration: none;
}

.blog-breadcrumb a:hover { color: #0B3C56; }

.breadcrumb-sep { color: #ccc; }

.blog-article-header {
    margin-bottom: 28px;
}

.blog-article-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 10px 0 8px;
    letter-spacing: -0.01em;
}

.blog-article-byline {
    font-size: 13px;
    color: #6b6b6b;
    margin: 0;
}

.blog-article-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 32px;
}

.blog-article-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.blog-article-hero {
    margin-bottom: 32px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-article-hero img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

.blog-strava-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #FC4C02;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 28px;
    transition: opacity 0.15s;
}

.blog-strava-link:hover { opacity: 0.85; }

/* ── Prose (markdown body) ── */
.prose {
    font-size: 16px;
    line-height: 1.8;
    color: #121212;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.prose h1 { font-size: 1.8rem; }
.prose h2 { font-size: 1.4rem; }
.prose h3 { font-size: 1.15rem; }

.prose p { margin: 0 0 1.2em; }

.prose ul, .prose ol {
    margin: 0 0 1.2em 1.4em;
    padding: 0;
}

.prose li { margin-bottom: 0.3em; }

.prose blockquote {
    border-left: 3px solid #0B3C56;
    margin: 1.5em 0;
    padding: 0.5em 1.2em;
    background: #f8f8f8;
    border-radius: 0 8px 8px 0;
    color: #4a4a4a;
    font-style: italic;
}

.prose code {
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: monospace;
}

.prose pre {
    background: #0B3C56;
    color: #e8e8e8;
    padding: 16px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose img {
    max-width: 100%;
    border-radius: 8px;
    margin: 1em 0;
}

.prose a {
    color: #0B3C56;
    text-decoration: underline;
}

.prose a:hover { color: #277e6e; }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}

.prose th, .prose td {
    border: 1px solid rgba(0,0,0,0.12);
    padding: 8px 12px;
    text-align: left;
}

.prose th {
    background: #f5f5f5;
    font-weight: 700;
}

/* ── Post nav ── */
.blog-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.blog-post-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #121212;
    padding: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    transition: box-shadow 0.15s;
}

.blog-post-nav-link:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.blog-post-nav-next { text-align: right; }

.nav-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b6b6b;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.blog-back {
    margin-top: 32px;
}

/* ── Reactions ── */
.blog-reactions {
    margin: 36px 0 0;
    padding: 24px 0 8px;
    border-top: 2px solid #f5f7f8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1.5px solid #0B3C56;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0B3C56;
    font-family: 'Ubuntu', sans-serif;
    transition: background 0.2s ease, color 0.2s ease;
}

.like-btn:hover {
    background: #0B3C56;
    color: #fff;
}

.like-btn.liked {
    background: #0B3C56;
    color: #fff;
}

.like-btn .like-count {
    font-size: 1em;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.like-btn em {
    font-style: normal;
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.7;
    text-transform: none;
    letter-spacing: 0;
}

.blog-comments-jump {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #555;
    text-decoration: none;
    padding: 10px 18px;
    border: 1.5px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    transition: color 0.2s, border-color 0.2s;
}

.blog-comments-jump:hover {
    color: #0B3C56;
    border-color: #0B3C56;
}

/* ── Comments ── */
.blog-comments {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f5f7f8;
}

.blog-comments-title {
    font-size: 0.82em;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0B3C56;
    margin: 0 0 24px;
}

.comment {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f7f8;
}

.comment:last-of-type {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #0B3C56;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-meta strong {
    font-size: 0.88em;
    font-weight: 700;
    color: #0B3C56;
}

.comment-date {
    font-size: 0.75em;
    color: #999;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.comment-text {
    font-size: 0.9em;
    line-height: 1.7;
    margin: 0;
    color: #555;
}

.comment-empty {
    font-size: 0.9em;
    color: #999;
    margin: 0 0 28px;
    padding: 20px;
    background: #f5f7f8;
    border-radius: 4px;
    text-align: center;
}

.comment-form {
    display: flex;
    gap: 14px;
    margin-top: 24px;
    align-items: flex-start;
}

.comment-form-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #277e6e;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-form-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(11,60,86,0.2);
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Ubuntu', sans-serif;
    color: #121212;
    resize: vertical;
    min-height: 88px;
    box-sizing: border-box;
    background: #f5f7f8;
    transition: border-color 0.2s, background 0.2s;
}

.comment-form-field textarea:focus {
    outline: none;
    border-color: #0B3C56;
    background: #fff;
}

.comment-form-field .btn-primary {
    align-self: flex-end;
    padding: 10px 24px;
    font-size: 0.82em;
}

.comment-signin {
    font-size: 0.88em;
    color: #999;
    margin-top: 20px;
    padding: 16px 20px;
    background: #f5f7f8;
    border-radius: 4px;
    text-align: center;
}

.comment-signin a {
    color: #277e6e;
    font-weight: 700;
    text-decoration: none;
}

.comment-signin a:hover {
    color: #0B3C56;
}

/* ── Blog responsive ── */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
    }

    .blog-featured-img {
        height: 220px;
    }

    .blog-card {
        grid-template-columns: 100px 1fr;
    }

    .blog-card-img {
        min-height: 90px;
    }

    .blog-article-title {
        font-size: 1.5rem;
    }

    .blog-post-nav {
        grid-template-columns: 1fr;
    }

    .blog-detail-container {
        max-width: 100%;
    }

    .home-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-reactions {
        flex-wrap: wrap;
    }
}
