/* ==========================================================================
   JeepAG — Rugged Adventure Theme
   Full Design System Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    /* Colors — matched to jeepag.com WordPress theme */
    --color-bg: #222828;
    --color-surface: #2d3333;
    --color-surface-elevated: #353d3d;
    --color-accent: #e87b35;
    --color-accent-hover: #f59e4f;
    --color-accent-green: #4a7c59;
    --color-gold: #d4a853;
    --color-text: #f4f4f4;
    --color-text-secondary: #ededed;
    --color-text-muted: #9ca3af;
    --color-border: rgba(226, 226, 226, 0.15);

    /* Typography */
    /* EXPERIMENT: Roboto Mono — revert to: 'Lato', sans-serif / Verdana, Geneva, sans-serif */
    --font-heading: 'Roboto Mono', monospace;
    --font-body: 'Roboto Mono', monospace;

    /* Layout */
    --max-width: 1170px;
    --content-width: 800px;
    --sidebar-width: 300px;
    --gap: 1.25rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;

    /* Shadows */
    --shadow-card: 0 8px 15px rgba(68, 68, 68, 1);
    --shadow-card-hover: 0 12px 24px rgba(68, 68, 68, 1);
    --shadow-elevated: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-header: 0 6px 24px rgba(0, 0, 0, 0.4), 0 3px 12px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 16px;

    /* Header */
    --header-height: 110px;
}

/* --------------------------------------------------------------------------
   2. Reset / Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(1.01);
}

ul, ol {
    list-style: none;
}

a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 500;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: 0.5em;
}

h1 { font-size: 1.75rem; font-weight: 400; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

/* Underline for links inside paragraphs */
.entry-content p a,
.post-content p a,
.page-content p a,
.content-area p a,
article p a,
main p a,
p a {
    text-decoration: underline !important;
    text-decoration-color: #ffffff !important;
    text-underline-offset: 2px !important;
}

/* Animated underline for text links (not image links) */
a:not(:has(img)):not(.page-link)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ededed, transparent);
    transition: width 0.4s ease;
}

a:hover {
    color: #ffffff;
}

.entry-content p a:hover,
.post-content p a:hover,
.page-content p a:hover,
.content-area p a:hover,
article p a:hover,
main p a:hover,
p a:hover {
    text-decoration-color: #ffffff !important;
}

a:not(:has(img)):hover::after {
    width: 100%;
}

/* Image link hover effect */
a:has(img) {
    display: inline-block;
}

a:has(img):hover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

strong, b {
    font-weight: 600;
    color: var(--color-text);
}

code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.875em;
    background: var(--color-surface);
    padding: 0.15em 0.4em;
    border-radius: var(--radius-sm);
    color: var(--color-accent);
}

pre {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    padding: 0;
    font-size: 0.875rem;
}

blockquote {
    border-left: 4px solid var(--color-accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--color-surface);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--color-text-secondary);
    font-style: italic;
}

hr {
    border: none;
    height: 1px;
    background: var(--color-border);
    margin: 2rem 0;
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding-top: var(--header-height);
}

.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2.5rem;
    align-items: start;
}

.content-area {
    max-width: var(--content-width);
    min-width: 0;
}


/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: linear-gradient(135deg, #222828 0%, #2d3333 100%);
    box-shadow: var(--shadow-header);
    border-bottom: none;
    transition: height 0.3s, box-shadow 0.3s;
}

.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(237, 237, 237, 0.7) 50%, transparent 100%);
}

.site-header.is-scrolled {
    height: 73px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    z-index: 1001;
}

.site-logo .logo-img {
    height: 90px;
    max-height: 90px;
    width: auto;
    padding: 4px 0 0;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.5));
    transition: max-height 0.3s, height 0.3s, padding 0.3s;
}

.site-header.is-scrolled .logo-img {
    height: 50px;
    max-height: 50px;
    padding: 0;
}

/* --------------------------------------------------------------------------
   6. Navigation
   -------------------------------------------------------------------------- */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-link {
    display: block;
    padding: 10px 15px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
    color: #ededed;
    border-right: 1px solid #ededed;
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:first-child {
    border-left: 1px solid #ededed;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-backdrop.is-visible {
    opacity: 1;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

body.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

body.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-elevated);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #ededed;
    border-bottom: 1px solid var(--color-border);
    transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-dropdown-item:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.nav-dropdown-item:hover {
    color: var(--color-accent);
    background-color: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 700px;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height));
}

.slider-track {
    position: absolute;
    inset: var(--header-height) 0 0 0;
}

.slider-slide {
    position: absolute;
    inset: 0;
    transform: translateX(100%);
    transition: transform 0.6s ease;
    will-change: transform;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-slide.active {
    transform: translateX(0);
}

.slider-slide.slide-out-left {
    transform: translateX(-100%);
}

.slider-slide.slide-from-left {
    transform: translateX(-100%);
}

.slider-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(34, 40, 40, 0.1) 0%,
        rgba(34, 40, 40, 0.05) 60%,
        rgba(34, 40, 40, 0.3) 100%
    );
    z-index: 2;
    display: none;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.slider-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.slider-btn {
    position: absolute;
    top: calc(50% + var(--header-height) / 2);
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.slider-prev { left: 1rem; }
.slider-next { right: 1rem; }

/* CTA Banner — matches WP orange gradient card */
.cta-banner {
    background: transparent;
    padding: 48px 0 24px;
    margin-bottom: 1rem;
}

/* Club Showcase — homepage club grid */
.club-showcase {
    margin-bottom: 2.5rem;
}

.club-showcase-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    margin: 0 0 1.25rem;
}

.club-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.club-showcase-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px 20px;
    background: transparent;
    border: 1px solid rgba(180, 180, 180, 1);
    border-radius: var(--radius-lg);
    text-decoration: none;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
}

.club-showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.club-showcase-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.club-showcase-name {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.3;
}

.club-showcase-card:hover .club-showcase-name {
    color: var(--color-accent);
}

.club-showcase-region {
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
}

/* Home sidebar grid — spacing below page title */
.home-with-sidebar {
    margin-top: 1.5rem;
}

/* Home content - within sidebar grid */
.home-content {
    min-width: 0;
}

/* Page H1 title — below slider, matching WP */
.page-title {
    font-family: var(--font-body);
    font-size: 25px;
    font-weight: 400;
    color: var(--color-text);
    padding-top: 0.5rem;
    margin: 1.5rem 0 1.25rem 0;
}

/* Section headings — matching WP */
.section-heading {
    font-family: var(--font-body);
    font-size: 23px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.section-heading a {
    color: #fff;
    text-decoration: none;
}

.section-heading a:hover {
    color: var(--color-accent);
}

.view-more {
    display: block;
    text-align: right;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-accent);
    text-decoration: none;
}

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

/* Homepage card links — image fills card area */
.card-image-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.card-image-link img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.card-badge {
    display: inline-block;
    margin: 0.15rem 0.6rem 0.5rem;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #f59e4f;
    background: rgba(232, 123, 53, 0.2);
    border: 1px solid rgba(232, 123, 53, 0.4);
}

.card-meta-date {
    display: block;
    padding: 0 0.6rem 0.5rem;
    font-size: 0.7rem;
    color: var(--color-text-secondary);
}

.card-date {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    z-index: 2;
}

/* Club logo icon overlay on activity cards */
.card-image-link .club-logo-icon {
    position: absolute;
    bottom: 0.4rem;
    right: 0.5rem;
    width: 42px;
    height: 42px;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.card-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: var(--color-surface);
}

/* Home about text */
.home-about {
    margin: 2.5rem 0 0;
    padding: 1rem 0;
}

.home-about p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* Home section spacing */
.home-section {
    margin-bottom: 2.5rem;
}

.blog-card .card-image-link img {
    aspect-ratio: 1;
    object-fit: cover;
}

/* CTA stamp — rotated trail-passport stamp */
.cta-stamp {
    position: absolute;
    top: 16px;
    right: -12px;
    padding: 6px 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 4px;
    transform: rotate(12deg);
    z-index: 3;
    opacity: 0.85;
    box-shadow: 0 0 0 1px rgba(232, 123, 53, 0.15);
}

/* --------------------------------------------------------------------------
   8. Cards (Base)
   -------------------------------------------------------------------------- */
.card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 1);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    padding: 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    padding: 0.5rem 0.6rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-title a {
    color: var(--color-text);
    transition: color var(--transition-fast);
}

.card-title a:hover {
    color: var(--color-accent);
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.card-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
    color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   9. Card Grid
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   10. Club Cards
   -------------------------------------------------------------------------- */
.clubs-page {
    max-width: 960px;
    margin: 0 auto;
}

.clubs-page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.clubs-intro {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.club-card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 1);
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-accent);
}

.club-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.club-card-image {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, #3a3a3a 0%, var(--color-surface) 70%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.club-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.club-card-image img {
    width: 75%;
    height: 75%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform var(--transition-base);
    position: relative;
    z-index: 1;
}

.club-card:hover .club-card-image img {
    transform: scale(1.08);
}

.club-card-body {
    padding: 1rem 1.25rem;
    text-align: center;
}

.club-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    color: var(--color-text);
    line-height: 1.3;
}

.club-region {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.club-tag-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    color: var(--color-accent);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 2;
}

/* Club single page header */
.club-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.club-logo-frame {
    max-width: 200px;
    margin-bottom: 1rem;
}

.club-logo-frame img {
    width: 100%;
    height: auto;
}

.club-info h1 {
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   11. Trail Cards
   -------------------------------------------------------------------------- */
.trail-card {
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 1);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.trail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.trail-card .card-image {
    position: relative;
}

.trail-date-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-accent);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.trail-club-tag {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(4px);
    color: var(--color-text);
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.trail-card .card-body {
    padding: 1.25rem;
}

.trail-card .card-title {
    font-size: 0.8rem;
}

.trail-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.trail-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
}

.trail-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* --------------------------------------------------------------------------
   12. Blog Cards
   -------------------------------------------------------------------------- */
.blog-card {
    display: block;
    background: transparent;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(180, 180, 180, 1);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.blog-card .card-image {
    aspect-ratio: auto;
    height: 100%;
}

.blog-card .card-image img {
    height: 100%;
}

.blog-card .card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-card .card-title {
    font-size: 0.8rem;
}

.blog-card .card-excerpt {
    margin-top: 0.5rem;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    transition: gap var(--transition-fast), color var(--transition-fast);
}

.blog-card .read-more:hover {
    color: var(--color-accent-hover);
    gap: 0.6rem;
}

/* --------------------------------------------------------------------------
   13. Gallery (Masonry)
   -------------------------------------------------------------------------- */
.gallery-masonry {
    display: flex;
    gap: 0.5rem;
}

.masonry-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-masonry .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: pointer;
    line-height: 0;
}

.gallery-masonry .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    background: #2d3748;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease, filter 0.3s ease;
}

.gallery-masonry .gallery-item img.loaded {
    opacity: 1;
}

.gallery-masonry .gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

@media (max-width: 480px) {
    .gallery-masonry { gap: 0.3rem; }
    .masonry-column { gap: 0.3rem; }
    .gallery-masonry .gallery-item { border-radius: var(--radius-sm); }
}

/* --------------------------------------------------------------------------
   14. Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    z-index: 2001;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(68, 68, 68, 0.8);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    z-index: 2001;
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev svg,
.lightbox-next svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.lightbox-info {
    position: absolute;
    bottom: 3.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2001;
    max-width: 85vw;
    white-space: nowrap;
}

.lightbox-info-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    overflow: hidden;
    text-overflow: ellipsis;
}

.lightbox-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 600;
    transition: color var(--transition-fast);
    white-space: nowrap;
    flex-shrink: 0;
}

.lightbox-link:hover {
    color: var(--color-accent-hover);
}

.lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --------------------------------------------------------------------------
   14b. Photo Gallery (Grid + Slider)
   -------------------------------------------------------------------------- */

/* ── Grid Mode (Bento) ── */
.pg-grid {
    display: grid;
    gap: 0.4rem;
    margin: 1.5rem 0;
}

.pg-grid-item {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(180, 180, 180, 1);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pg-grid-item:first-child {
    border-radius: 16px;
}

.pg-grid-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-card-hover);
}

.pg-grid .pg-grid-item img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 0;
}

/* ── Bento Count Layouts ── */

/* 1 image: full-width landscape hero */
.pg-grid[data-count="1"] {
    grid-template-columns: 1fr;
}
.pg-grid[data-count="1"] .pg-grid-item {
    aspect-ratio: 16 / 9;
}

/* 2 images: two equal columns */
.pg-grid[data-count="2"] {
    grid-template-columns: 1fr 1fr;
}

/* 3 images: hero left spanning 2 rows, 2 stacked right */
.pg-grid[data-count="3"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    height: 500px;
}
.pg-grid[data-count="3"] .pg-grid-item {
    aspect-ratio: auto;
}
.pg-grid[data-count="3"] .pg-grid-item:first-child {
    grid-row: 1 / 3;
}

/* 4 images: 2×2 uniform grid */
.pg-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    height: 500px;
}
.pg-grid[data-count="4"] .pg-grid-item {
    aspect-ratio: auto;
}

/* 5 images: hero 2×2 top-left, 4 small around */
.pg-grid[data-count="5"] {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
}
.pg-grid[data-count="5"] .pg-grid-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* 6 images: hero 2×2 top-left, 2 right, 3 bottom */
.pg-grid[data-count="6"] {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: 500px;
}
.pg-grid[data-count="6"] .pg-grid-item {
    aspect-ratio: auto;
}
.pg-grid[data-count="6"] .pg-grid-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* 7 images: staggered brick — 3 wide top, 4 narrow bottom */
.pg-grid[data-count="7"] {
    grid-template-columns: repeat(12, 1fr);
}
.pg-grid[data-count="7"] .pg-grid-item:nth-child(-n+3) {
    grid-column: span 4;
}
.pg-grid[data-count="7"] .pg-grid-item:nth-child(n+4) {
    grid-column: span 3;
}

/* 8 images: 4×2 uniform grid */
.pg-grid[data-count="8"] {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
}

/* ── Slider Mode ── */
.pg-slider {
    position: relative;
    margin: 1.5rem 0;
}

.pg-slider-track {
    position: relative;
    height: 462px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(45, 51, 51, 0.3);
}

.pg-slider-slide {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    transition: transform 0.4s ease, opacity 0.4s ease;
    cursor: pointer;
    width: 65%;
    height: 82%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.pg-slider-slide img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: var(--radius-md);
}

/* Active slide (center) */
.pg-slider-slide.is-active {
    opacity: 1;
    transform: translate(-50%, -54%) scale(1);
    z-index: 2;
    pointer-events: auto;
}

.pg-slider-slide.is-active img {
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}

/* Previous slide (peek left) */
.pg-slider-slide.is-prev {
    opacity: 0.5;
    transform: translate(-115%, -54%) scale(0.8);
    z-index: 1;
    pointer-events: auto;
}

/* Next slide (peek right) */
.pg-slider-slide.is-next {
    opacity: 0.5;
    transform: translate(15%, -54%) scale(0.8);
    z-index: 1;
    pointer-events: auto;
}

/* Navigation arrows */
.pg-slider-prev,
.pg-slider-next {
    position: absolute;
    top: 46%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.pg-slider-prev { left: 0.75rem; }
.pg-slider-next { right: 0.75rem; }

.pg-slider-prev:hover,
.pg-slider-next:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.08);
}

.pg-slider-prev svg,
.pg-slider-next svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Dot indicators — inside slider box, below photos */
.pg-slider-dots {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    flex-wrap: wrap;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pg-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.pg-slider-dot.is-active {
    background: var(--color-accent);
    transform: scale(1.3);
}

.pg-slider-dot:hover {
    background: var(--color-accent-hover);
}

/* ── Photo Gallery Lightbox ── */
.pg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.pg-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.pg-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    z-index: 2001;
}

.pg-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
}

.pg-lightbox-close svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.pg-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(68, 68, 68, 0.8);
}

.pg-lightbox-prev,
.pg-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    z-index: 2001;
}

.pg-lightbox-prev { left: 1.25rem; }
.pg-lightbox-next { right: 1.25rem; }

.pg-lightbox-prev:hover,
.pg-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.08);
}

.pg-lightbox-prev svg,
.pg-lightbox-next svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

.pg-lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    /* Count 1: keep full-width landscape */
    .pg-grid[data-count="1"] {
        grid-template-columns: 1fr;
    }

    /* Count 2: keep 2 columns */
    .pg-grid[data-count="2"] {
        grid-template-columns: 1fr 1fr;
    }

    /* Counts 3–8: hero full-width, rest in 2-col grid */
    .pg-grid[data-count="3"],
    .pg-grid[data-count="4"],
    .pg-grid[data-count="5"],
    .pg-grid[data-count="6"],
    .pg-grid[data-count="7"],
    .pg-grid[data-count="8"] {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }

    /* Count 7: reset brick layout to simple 2-col on mobile */
    .pg-grid[data-count="7"] .pg-grid-item:nth-child(-n+3),
    .pg-grid[data-count="7"] .pg-grid-item:nth-child(n+4) {
        grid-column: span 1;
    }

    .pg-grid[data-count="3"] .pg-grid-item:first-child,
    .pg-grid[data-count="5"] .pg-grid-item:first-child,
    .pg-grid[data-count="6"] .pg-grid-item:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    /* Last item spans full-width when remaining count is odd */
    .pg-grid[data-count="6"] .pg-grid-item:last-child,
    .pg-grid[data-count="7"] .pg-grid-item:last-child {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 9;
    }

    .pg-slider-track {
        height: 396px;
    }

    .pg-slider-slide {
        width: 75%;
    }

    .pg-slider-prev,
    .pg-slider-next {
        width: 34px;
        height: 34px;
    }

    .pg-slider-prev svg,
    .pg-slider-next svg {
        width: 16px;
        height: 16px;
    }

    .pg-lightbox-prev,
    .pg-lightbox-next {
        width: 36px;
        height: 36px;
    }

    .pg-lightbox-prev svg,
    .pg-lightbox-next svg {
        width: 16px;
        height: 16px;
    }

    .pg-lightbox {
        background: rgba(0, 0, 0, 1);
    }

    .pg-lightbox img {
        width: 100vw;
        height: 90vh;
        object-fit: contain;
        border-radius: 0;
        box-shadow: none;
    }

    .pg-lightbox-prev { left: 0.4rem; }
    .pg-lightbox-next { right: 0.4rem; }

    .pg-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 34px;
        height: 34px;
    }

    .pg-lightbox-counter {
        bottom: 0.75rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    /* Gallery lightbox mobile */
    .lightbox {
        background: rgba(0, 0, 0, 1);
    }

    .lightbox img {
        width: 100vw;
        height: 85vh;
        object-fit: contain;
        border-radius: 0;
        box-shadow: none;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 36px;
        height: 36px;
    }

    .lightbox-prev svg,
    .lightbox-next svg {
        width: 16px;
        height: 16px;
    }

    .lightbox-prev { left: 0.4rem; }
    .lightbox-next { right: 0.4rem; }

    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 34px;
        height: 34px;
    }

    .lightbox-info {
        bottom: 2.75rem;
        padding: 0.4rem 0.75rem;
        gap: 0.5rem;
        max-width: 92vw;
    }

    .lightbox-info-title {
        font-size: 0.7rem;
    }

    .lightbox-link {
        font-size: 0.65rem;
    }

    .lightbox-counter {
        bottom: 0.75rem;
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   15. Comments
   -------------------------------------------------------------------------- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.comments-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff;
}

.comments-loading {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-style: italic;
    animation: comment-fade-pulse 1.5s ease-in-out infinite;
}

@keyframes comment-fade-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.no-comments {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding: 2rem 1.5rem;
    text-align: center;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(180, 180, 180, 0.3);
    transition: border-color 0.3s ease;
}

.no-comments:hover {
    border-color: rgba(180, 180, 180, 0.5);
}

/* Individual comment */
.comment {
    position: relative;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: var(--color-surface);
    border: 1px solid rgba(180, 180, 180, 0.2);
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.comment:hover {
    transform: translateY(-2px);
    border-color: rgba(180, 180, 180, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(180, 180, 180, 0.3);
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.comment:hover .comment-avatar {
    border-color: rgba(180, 180, 180, 0.6);
    transform: scale(1.05);
}

.comment-author {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f7fafc;
    transition: color 0.3s ease;
}

.comment:hover .comment-author {
    color: #fff;
}

.comment-date {
    display: block;
    font-size: 0.72rem;
    color: var(--color-text-secondary);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

.comment-body {
    font-size: 0.88rem;
    color: rgba(247, 250, 252, 0.7);
    line-height: 1.7;
    padding-left: 3.35rem;
}

.comment-actions {
    margin-top: 0.5rem;
    padding-left: 3.35rem;
}

/* Reply button */
.btn-reply {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-accent);
    background: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    margin-left: 3.35rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.25s ease;
}

.btn-reply:hover {
    color: #fff;
    background: rgba(180, 180, 180, 0.1);
    border-color: rgba(180, 180, 180, 0.25);
    transform: translateY(-1px);
}

/* Nested replies */
.comment-replies {
    margin-top: 0.75rem;
    margin-left: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(180, 180, 180, 0.15);
    transition: border-color 0.3s ease;
}

.comment:hover > .comment-replies {
    border-color: rgba(180, 180, 180, 0.3);
}

.comment-replies .comment {
    background: var(--color-surface-elevated);
    padding: 1rem;
    margin-bottom: 0.75rem;
}

/* Reply indicator */
#comment-reply-info {
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--color-surface-elevated);
    border: 1px solid rgba(180, 180, 180, 0.2);
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

#comment-reply-info strong {
    color: #fff;
}

.btn-cancel-reply {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cancel-reply:hover {
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

/* Comment form wrapper */
.comment-form-wrapper {
    margin-top: 2.5rem;
    position: relative;
}

.comment-form-wrapper > h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: var(--color-surface-elevated);
    border: 1px solid rgba(180, 180, 180, 0.3);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    letter-spacing: 0.3px;
}

/* Comment form card */
.comment-form {
    background: var(--color-surface);
    border: 1px solid rgba(180, 180, 180, 0.3);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.4s ease;
}

.comment-form:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.comment-form .form-group {
    margin-bottom: 1.15rem;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f7fafc;
    margin-bottom: 0.4rem;
    letter-spacing: 0.03em;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--color-surface-elevated);
    border: 1px solid rgba(180, 180, 180, 0.2);
    border-radius: var(--radius-md);
    color: #f7fafc;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.comment-form input:hover:not(:focus),
.comment-form textarea:hover:not(:focus) {
    border-color: rgba(180, 180, 180, 0.4);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: rgba(180, 180, 180, 0.6);
    box-shadow: 0 0 0 3px rgba(180, 180, 180, 0.08);
    background: var(--color-surface-elevated);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: #718096;
    opacity: 1;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Submit button */
.comment-form .btn-accent {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.85rem 2rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.comment-form .btn-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.comment-form .btn-accent:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comment-form .btn-accent:hover::before {
    opacity: 1;
}

.comment-form .btn-accent:active {
    transform: translateY(0);
    box-shadow: none;
}

.comment-form .btn-accent:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Form messages */
.form-message {
    font-size: 0.82rem;
    margin-top: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 500;
}

.form-message.success {
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    color: #fca5a5;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 600px) {
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    .comment-body,
    .btn-reply {
        padding-left: 0;
        margin-left: 0;
    }
    .comment-replies {
        margin-left: 0.5rem;
        padding-left: 0.75rem;
    }
    .comment {
        padding: 1rem;
    }
}

/* --------------------------------------------------------------------------
   16. Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--color-border);
}

.sidebar-widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-accent);
}

.image-of-day .widget-heading {
    margin: 0 0 1rem;
}

.image-of-day {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.image-of-day img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-of-day-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(26, 26, 26, 0.9));
}

.image-of-day-caption p {
    font-size: 0.85rem;
    color: var(--color-text);
    margin: 0;
}

/* --------------------------------------------------------------------------
   17. CTA Join — Trail Map Card
   -------------------------------------------------------------------------- */
.cta-join {
    display: block;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 2.5rem 2rem 3rem;
    text-align: center;
    background: #1a1d1f;
    border: 2px solid #e87b35;
    cursor: pointer;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 0 20px rgba(232, 123, 53, 0.4), 0 0 50px rgba(232, 123, 53, 0.2);
}

.cta-join:hover {
    transform: translateY(-4px);
    border-color: #f09050;
    box-shadow: 0 0 30px rgba(232, 123, 53, 0.6), 0 0 70px rgba(232, 123, 53, 0.3);
}

/* Topographic contour lines — drifting slowly */
.cta-join::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M0 45 Q50 15 100 45 T200 40 T300 50 T400 42' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 95 Q65 60 130 90 T260 82 T400 98' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 150 Q70 120 140 148 T280 138 T400 155' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 205 Q55 175 110 200 T220 192 T330 208 T400 198' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 258 Q80 228 160 255 T320 245 T400 260' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 310 Q60 282 120 308 T240 298 T360 315 T400 305' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3Cpath d='M0 362 Q75 335 150 360 T300 350 T400 365' fill='none' stroke='%23e87b35' stroke-width='0.8'/%3E%3C/svg%3E");
    background-size: 400px 400px;
    opacity: 0.06;
    z-index: 0;
    animation: cta-drift 25s linear infinite;
}

/* Mountain ridge silhouette at bottom */
.cta-join::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(232, 123, 53, 0.1) 0%, transparent 100%);
    clip-path: polygon(
        0% 100%, 0% 82%, 3% 72%, 6% 68%, 10% 58%, 14% 52%, 17% 58%,
        20% 48%, 24% 38%, 27% 42%, 30% 35%, 34% 28%, 37% 32%,
        40% 38%, 44% 30%, 47% 24%, 50% 28%, 54% 20%, 57% 15%,
        60% 22%, 63% 30%, 66% 25%, 70% 35%, 74% 42%, 77% 36%,
        80% 45%, 84% 52%, 87% 46%, 90% 55%, 93% 62%, 96% 68%,
        100% 75%, 100% 100%
    );
    z-index: 0;
    transition: opacity 0.4s ease;
}

.cta-join:hover::after {
    opacity: 0.8;
}

/* Content layer */
.cta-join .cta-content {
    position: relative;
    z-index: 2;
}

/* Eyebrow text */
.cta-eyebrow {
    font-size: 0.975rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

/* Title — big, bold, adventure feel */
.cta-join-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

.cta-join-title br + * {
    color: var(--color-accent);
}

/* Description */
.cta-join-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 1.5rem;
    line-height: 1.5;
}

/* Button — clean, outlined trail marker style */
.cta-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    border: 1.5px solid var(--color-accent);
    box-shadow: 0 4px 20px rgba(232, 123, 53, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.cta-join:hover .cta-join-btn {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(232, 123, 53, 0.3);
}

.cta-btn-arrow {
    transition: transform 0.3s ease;
    display: flex;
}

.cta-join:hover .cta-btn-arrow {
    transform: translateX(4px);
}

/* Drift animation for topo lines */
@keyframes cta-drift {
    0% { transform: translate(0, 0); }
    50% { transform: translate(-80px, -60px); }
    100% { transform: translate(0, 0); }
}

/* Sidebar adjustments */
.sidebar .cta-join {
    padding: 2rem 1.25rem 2.5rem;
}

.sidebar .cta-stamp {
    top: 12px;
    right: -8px;
    font-size: 8px;
    padding: 4px 10px;
}

.sidebar .cta-join-title {
    font-size: 1.6rem;
}

.sidebar .cta-join-text {
    font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   18. Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding: 0.5rem 1.5rem 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li:not(:last-child)::after {
    content: '\203A';
    margin-left: 0.4rem;
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.breadcrumbs a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs li[aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   19. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
    list-style: none;
    margin-left: 0;
}

.pagination .page-item {
    list-style: none;
    margin-bottom: 0;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pagination .page-item .page-link::after {
    display: none;
}

.pagination .page-item .page-link:hover {
    color: #fff;
    background: rgba(232, 123, 53, 0.15);
    border-color: rgba(232, 123, 53, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(232, 123, 53, 0.15);
}

.pagination .page-item.active .page-link {
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(232, 123, 53, 0.35);
}

.pagination .page-item.active .page-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(232, 123, 53, 0.45);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.3;
    pointer-events: none;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
}

/* Arrow buttons — pill shape with CSS chevron icons */
.pagination .page-item:first-child .page-link,
.pagination .page-item:nth-child(2) .page-link,
.pagination .page-item:last-child .page-link,
.pagination .page-item:nth-last-child(2) .page-link {
    border-radius: 50%;
    min-width: 42px;
    padding: 0;
    font-size: 0;
    color: transparent;
    position: relative;
}

.pagination .page-item:first-child .page-link span,
.pagination .page-item:nth-child(2) .page-link span,
.pagination .page-item:last-child .page-link span,
.pagination .page-item:nth-last-child(2) .page-link span {
    font-size: 0;
    visibility: hidden;
}

/* Prev chevron */
.pagination .page-item:nth-child(2) .page-link::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-left: 2.5px solid var(--color-text-secondary);
    border-bottom: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-left: 3px;
    transition: border-color 0.25s ease;
}

/* Next chevron */
.pagination .page-item:nth-last-child(2) .page-link::before {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--color-text-secondary);
    border-top: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-right: 3px;
    transition: border-color 0.25s ease;
}

/* First — double chevron left */
.pagination .page-item:first-child .page-link::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-left: 2.5px solid var(--color-text-secondary);
    border-bottom: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-left: 6px;
    transition: border-color 0.25s ease;
}
.pagination .page-item:first-child .page-link::after {
    content: '' !important;
    display: block !important;
    width: 7px;
    height: 7px;
    border-left: 2.5px solid var(--color-text-secondary);
    border-bottom: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-left: -3px;
    transition: border-color 0.25s ease;
}

/* Last — double chevron right */
.pagination .page-item:last-child .page-link::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-right: 2.5px solid var(--color-text-secondary);
    border-top: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-right: -3px;
    transition: border-color 0.25s ease;
}
.pagination .page-item:last-child .page-link::after {
    content: '' !important;
    display: block !important;
    width: 7px;
    height: 7px;
    border-right: 2.5px solid var(--color-text-secondary);
    border-top: 2.5px solid var(--color-text-secondary);
    transform: rotate(45deg);
    margin-right: 6px;
    transition: border-color 0.25s ease;
}

/* Arrow hover — chevrons turn orange */
.pagination .page-item:first-child .page-link:hover::before,
.pagination .page-item:first-child .page-link:hover::after,
.pagination .page-item:nth-child(2) .page-link:hover::before,
.pagination .page-item:last-child .page-link:hover::before,
.pagination .page-item:last-child .page-link:hover::after,
.pagination .page-item:nth-last-child(2) .page-link:hover::before {
    border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   20. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: #e8e8e8;
    border-top: none;
    padding: 20px 0 0;
    margin-top: 4rem;
    color: #2d2d2d;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .site-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2d2d2d;
    margin-bottom: 1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: #555;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-brand p {
    color: #555;
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #555;
}

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

/* Footer text overrides for light bg */
.site-footer h4,
.site-footer .footer-heading {
    color: #2d2d2d;
}

.site-footer p,
.site-footer .footer-text {
    color: #666;
}

.site-footer .footer-nav a {
    color: var(--color-accent);
}

.site-footer .footer-nav a:hover {
    color: #c2612a;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--color-surface);
    border-radius: 50%;
    color: var(--color-text-secondary);
    font-size: 1rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-social a:hover {
    background: var(--color-accent);
    color: #fff;
}

/* --------------------------------------------------------------------------
   21. Single Page / Article
   -------------------------------------------------------------------------- */
.single-content {
    max-width: var(--content-width);
    font-size: 12px;
}

.article-header {
    margin-bottom: 1.5rem;
}

/* Floating club logo in article content */
.article-content .club-logo-float {
    float: left;
    width: 80px;
    height: auto;
    display: inline;
    max-height: none;
    margin: 0.25rem 1rem 0.75rem 0;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.article-content .club-logo-center {
    display: block;
    width: 80px;
    height: auto;
    max-height: none;
    margin: 0 auto 1rem;
    object-fit: contain;
    border-radius: 0;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.article-meta time {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
}

.single-header {
    margin-bottom: 2rem;
}

.single-header .card-meta {
    margin-bottom: 1rem;
}

.single-featured-image {
    width: calc(100% + 4rem);
    margin-left: -2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.single-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.single-content h1 { font-size: 1.75rem; margin-top: 2rem; }
.single-content h2 { font-size: 1.4rem; margin-top: 2rem; }
.single-content h3 { font-size: 1.5rem; margin-top: 1.5rem; }
.single-content h4 { font-size: 1.25rem; margin-top: 1.5rem; }

.single-content p {
    font-size: 0.91rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--color-text-secondary);
}

.single-content img {
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-content p {
    font-size: 0.91rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
    color: var(--color-text-secondary);
}

.article-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(232, 123, 53, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

.article-content a:hover {
    text-decoration-color: var(--color-accent);
}

.article-content img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-height: 500px;
    width: auto;
}

.article-content .club-card-image img {
    width: 75%;
    height: 75%;
    max-height: none;
    max-width: 100%;
}

.single-content .club-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0.3rem;
    color: var(--color-text);
    line-height: 1.3;
}

.single-content .club-card-link {
    text-decoration: none;
}

.single-content .club-region {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

.single-content .club-tag-badge {
    color: var(--color-accent);
}

.article-content video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: var(--radius-md);
}

.single-content div:has(> iframe) {
    margin: 1.5rem 0;
}

.single-content ul,
.single-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
    color: var(--color-text-secondary);
}

.single-content ul {
    list-style: disc;
}

.single-content ol {
    list-style: decimal;
}

.single-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-size: 0.91rem;
}

.single-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(232, 123, 53, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition-fast);
}

.single-content a:hover {
    text-decoration-color: var(--color-accent);
}

.single-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.single-tags a {
    padding: 0.3rem 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.single-tags a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   22. Contact Form
   -------------------------------------------------------------------------- */
.contact-form {
    max-width: 640px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

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

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 53, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.contact-form .btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.contact-form .btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.contact-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Registration form */
.registration-form {
    max-width: 640px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.registration-form .form-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.registration-form fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--color-surface-elevated);
    position: relative;
    overflow: hidden;
}

.registration-form fieldset legend {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.registration-form fieldset .fieldset-header {
    margin: 0 -1.25rem 1.25rem;
    padding: 0.75rem 1.5rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.registration-form .form-group {
    margin-bottom: 1rem;
}

.registration-form label {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.registration-form input,
.registration-form textarea {
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.registration-form input:focus,
.registration-form textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(232, 123, 53, 0.2);
    transform: translateY(-1px);
}

.registration-form input:hover:not(:focus),
.registration-form textarea:hover:not(:focus) {
    border-color: var(--color-text-muted);
}

.registration-form input::placeholder,
.registration-form textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

.registration-form .required {
    color: #fc8181;
}

.registration-form .optional {
    color: var(--color-text-muted);
    font-weight: 400;
    font-size: 0.8rem;
}

.registration-form .help-text {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.registration-form .pin-message {
    font-size: 0.8rem;
    margin-top: 0.4rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.registration-form .pin-message.success {
    color: #68d391;
    background: rgba(104, 211, 145, 0.1);
}

.registration-form .pin-message.error {
    color: #fc8181;
    background: rgba(252, 129, 129, 0.1);
}

.registration-form .pin-message.info {
    color: var(--color-accent);
    background: rgba(232, 123, 53, 0.1);
}

.registration-form .btn-submit {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(232, 123, 53, 0.3);
}

.registration-form .btn-submit:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(232, 123, 53, 0.4);
}

.registration-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-message.success {
    color: #68d391;
    background: linear-gradient(135deg, rgba(104, 211, 145, 0.1), rgba(104, 211, 145, 0.15));
    border: 2px solid #68d391;
}

.form-message.error {
    color: #fc8181;
    background: linear-gradient(135deg, rgba(252, 129, 129, 0.1), rgba(252, 129, 129, 0.15));
    border: 2px solid #fc8181;
}

/* --------------------------------------------------------------------------
   23. 404 Page
   -------------------------------------------------------------------------- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Tire tracks background */
.error-tracks {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 320px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
}

/* Compass rose behind the 404 */
.error-compass {
    width: 180px;
    height: 180px;
    margin: 0 auto 1rem;
    animation: compassSpin 60s linear infinite;
    opacity: 0.6;
}

@keyframes compassSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.error-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    letter-spacing: 0.08em;
    margin-top: -3.5rem;
    margin-bottom: 0.25rem;
    text-shadow: 0 0 80px rgba(232, 123, 53, 0.25);
}

.error-title {
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 3.5vw, 1.8rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.error-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 440px;
    margin: 0 auto 2rem;
}

.error-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.875rem 2.25rem;
    background: var(--color-accent);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.error-home-btn:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 123, 53, 0.3);
    color: #fff;
}

/* Navigation section */
.error-nav {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
}

.error-nav-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.error-nav-heading::before,
.error-nav-heading::after {
    content: "";
    display: inline-block;
    width: 2rem;
    height: 1px;
    background: var(--color-border);
    vertical-align: middle;
    margin: 0 0.75rem;
}

.error-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.error-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1.5rem 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.error-nav-card:hover {
    background: var(--color-surface-elevated);
    border-color: rgba(232, 123, 53, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.error-nav-card:hover .error-nav-icon {
    color: var(--color-accent);
    transform: scale(1.1);
}

.error-nav-icon {
    width: 28px;
    height: 28px;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    margin-bottom: 0.2rem;
}

.error-nav-icon svg {
    width: 100%;
    height: 100%;
}

.error-nav-label {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.error-nav-desc {
    font-size: 0.72rem;
    color: var(--color-text-muted);
    line-height: 1.3;
}

/* Responsive */
@media (max-width: 600px) {
    .error-page {
        padding: 2rem 1rem 3rem;
    }

    .error-compass {
        width: 140px;
        height: 140px;
    }

    .error-code {
        margin-top: -2.5rem;
    }

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

    .error-nav-heading::before,
    .error-nav-heading::after {
        width: 1rem;
    }

    .error-tracks {
        width: 160px;
        height: 260px;
    }
}

/* --------------------------------------------------------------------------
   24. Utility Classes
   -------------------------------------------------------------------------- */
.text-accent { color: var(--color-accent); }
.text-green { color: var(--color-accent-green); }
.text-gold { color: var(--color-gold); }
.text-secondary { color: var(--color-text-secondary); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; }

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    background: rgba(232, 123, 53, 0.2);
    color: #f59e4f;
}

.badge-gold {
    background: rgba(212, 168, 83, 0.15);
    color: var(--color-gold);
}

.badge-green {
    background: rgba(74, 124, 89, 0.15);
    color: var(--color-accent-green);
}

.badge-filled {
    background: var(--color-accent);
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
}

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
}

.btn-ghost:hover {
    color: var(--color-accent);
    background: rgba(232, 123, 53, 0.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

.section-header {
    margin-bottom: 2rem;
}

.section-header .section-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.section-header .section-subtitle {
    color: var(--color-text-secondary);
    font-size: 1rem;
}

.section-header .section-link {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.section-header .section-link:hover {
    color: var(--color-accent-hover);
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   25. Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.6s ease forwards;
}

.animate-slide-up-delay-1 {
    animation: slideUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.animate-slide-up-delay-2 {
    animation: slideUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.animate-slide-up-delay-3 {
    animation: slideUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

/* --------------------------------------------------------------------------
   25b. Related Posts
   -------------------------------------------------------------------------- */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.related-posts-heading {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 1.25rem;
}

.related-posts .card-grid {
    grid-template-columns: repeat(3, 1fr);
    font-size: 14px;
}

.related-posts .card-title a {
    color: var(--color-text);
    text-decoration: none;
}

.related-posts .card-title a:hover {
    color: var(--color-accent);
    text-decoration: none;
}

.related-posts .card-image-link img {
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0;
    border-radius: 0;
}

.related-posts .card-image-link .club-logo-icon {
    width: 32px;
    height: 32px;
    bottom: 1rem;
}

/* --------------------------------------------------------------------------
   26. Responsive
   -------------------------------------------------------------------------- */

/* 1024px and below — tablet landscape */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 260px;
        --header-height: 80px;
    }

    .site-logo .logo-img {
        height: 60px;
        max-height: 60px;
        padding: 3px 0 0;
    }

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

    .related-posts .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    /* Show hamburger, hide nav */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-surface);
        padding: calc(var(--header-height) + 1rem) 1.5rem 1.5rem;
        transform: translateX(100%);
        transition: transform var(--transition-base);
        z-index: 999;
        overflow-y: auto;
        box-shadow: var(--shadow-elevated);
    }

    .nav-menu.is-open {
        transform: translateX(0);
    }

    .nav-backdrop {
        display: block;
        pointer-events: none;
    }

    .nav-backdrop.is-visible {
        pointer-events: auto;
    }

    .nav-link {
        padding: 0.875rem 1rem;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--color-border);
        border-right: none;
        border-left: none;
    }

    .nav-link:first-child {
        border-left: none;
    }

    /* Mobile dropdown */
    .nav-dropdown {
        position: static;
    }

    .nav-dropdown-toggle {
        justify-content: space-between;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height var(--transition-base);
    }

    /* Disable hover on mobile — use JS toggle */
    .nav-dropdown:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-dropdown.is-open .nav-dropdown-menu {
        max-height: 500px;
    }

    .nav-dropdown-item {
        padding: 0.65rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* 768px and below — tablet portrait */
@media (max-width: 768px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hero-slider {
        height: 50vh;
        min-height: 300px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }
    .slider-btn svg {
        width: 18px;
        height: 18px;
    }
    .slider-prev { left: 0.5rem; }
    .slider-next { right: 0.5rem; }

    .cta-banner .cta-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .club-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .club-showcase-card {
        padding: 16px 8px 14px;
        gap: 8px;
    }

    .club-showcase-logo {
        width: 64px;
        height: 64px;
    }

    .club-showcase-name {
        font-size: 0.8rem;
    }

    .club-showcase-region {
        font-size: 0.65rem;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }


    .contact-form {
        padding: 1.5rem;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .single-featured-image {
        width: calc(100% + 3rem);
        margin-left: -1.5rem;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .related-posts .card-image-link .club-logo-icon {
        width: 26px;
        height: 26px;
        bottom: 0.75rem;
        right: 0.4rem;
    }

}

/* 480px and below — mobile */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }

    .container {
        padding: 0 1rem;
    }

    .club-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .club-showcase-card {
        padding: 12px 6px 10px;
        gap: 6px;
    }

    .club-showcase-logo {
        width: 56px;
        height: 56px;
    }

    .club-showcase-name {
        font-size: 0.75rem;
    }

    .club-showcase-region {
        font-size: 0.6rem;
    }

    .clubs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .club-name {
        font-size: 0.8rem;
    }

    .club-card-body {
        padding: 0.75rem;
    }

    .hero-slider {
        height: 40vh;
        min-height: 250px;
    }

    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .related-posts .card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        -webkit-line-clamp: 2;
    }

    .single-content h1 { font-size: 1.5rem; }
    .single-content h2 { font-size: 1.25rem; }

    .single-content p {
        font-size: 1rem;
    }

    .single-featured-image {
        width: calc(100% + 2rem);
        margin-left: -1rem;
    }

    .pagination .page-item .page-link {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }

    .comment {
        grid-template-columns: 36px 1fr;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
    }

    .comment-reply {
        margin-left: 2.5rem;
    }

    .cta-join {
        padding: 2rem 1.25rem 2.5rem;
    }

    .cta-stamp {
        top: 10px;
        right: -6px;
        font-size: 8px;
        padding: 4px 10px;
    }

    .cta-join-title {
        font-size: 1.5rem;
    }

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

/* --------------------------------------------------------------------------
   27. Topographic Pattern (reusable background class)
   -------------------------------------------------------------------------- */
.topo-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cpath d='M20 80 Q100 20 200 80 T380 80' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M20 120 Q120 60 200 120 T380 120' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.05'/%3E%3Cpath d='M20 160 Q80 100 200 160 T380 160' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M20 200 Q140 140 200 200 T380 200' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.04'/%3E%3Cpath d='M20 240 Q100 180 200 240 T380 240' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M20 280 Q130 220 200 280 T380 280' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.05'/%3E%3Cpath d='M20 320 Q90 260 200 320 T380 320' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.06'/%3E%3Cpath d='M20 360 Q110 300 200 360 T380 360' fill='none' stroke='%23e87b35' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E");
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .nav-backdrop,
    .lightbox {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .site-main {
        padding-top: 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
