/* =============================================================
   tpl_clubsport — Template Stylesheet
   Version: 1.0.0
   ============================================================= */

/* ---------- Google Fonts import (fallback if not in PHP head) */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;900&family=Lato:wght@400;700&display=swap');

/* ---------- CSS Custom Properties ----------------------------- */
:root {
    /* Brand (overridden by inline PHP from templateDetails params) */
    --cs-primary:           #1D9E75;
    --cs-primary-dark:      #0F6E56;
    --cs-primary-darker:    #1C1B19;
    --cs-accent:            #FAC775;
    --cs-accent-dark:       #BA7517;
    --cs-primary-light:     #E1F5EE;

    /* Neutral palette */
    --cs-white:     #ffffff;
    --cs-gray-50:   #F8F8F6;
    --cs-gray-100:  #F1EFE8;
    --cs-gray-200:  #D3D1C7;
    --cs-gray-400:  #888780;
    --cs-gray-600:  #5F5E5A;
    --cs-gray-800:  #2C2C2A;
    --cs-gray-900:  #1A1A18;

    /* Semantic */
    --cs-danger:        #E24B4A;
    --cs-danger-light:  #FCEBEB;
    --cs-warning:       #BA7517;
    --cs-warning-light: #FAEEDA;
    --cs-success:       #1D9E75;
    --cs-success-light: #E1F5EE;

    /* Typography */
    --cs-font-display: 'Barlow Condensed', sans-serif;
    --cs-font-body:    'Lato', sans-serif;

    /* Layout */
    --cs-container:    1200px;
    --cs-radius:       8px;
    --cs-radius-lg:    12px;
    --cs-radius-xl:    16px;

    /* Shadows */
    --cs-shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
    --cs-shadow-md:    0 4px 12px rgba(0,0,0,0.1);

    /* Transitions */
    --cs-transition:   0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--cs-font-body);
    color: var(--cs-gray-800);
    background: var(--cs-gray-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--cs-primary); text-decoration: none; }
a:hover { color: var(--cs-primary-dark); }
ul { list-style: none; }
address { font-style: normal; }

/* ---------- Container --------------------------------------- */
.cs-container {
    max-width: var(--cs-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Grid ------------------------------------------- */
.cs-col { min-width: 0; }
.cs-col-12 { width: 100%; }
.cs-col-9  { width: 75%; }
.cs-col-6  { width: 50%; }
.cs-col-3  { width: 25%; }

/* ---------- Buttons ---------------------------------------- */
.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--cs-font-body);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    border: 2px solid transparent;
    border-radius: var(--cs-radius);
    cursor: pointer;
    transition: background var(--cs-transition), color var(--cs-transition), border-color var(--cs-transition), transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}
.cs-btn:active { transform: scale(0.98); }

.cs-btn--sm  { padding: 8px 18px; font-size: 13px; }
.cs-btn--md  { padding: 10px 22px; }
.cs-btn--lg  { padding: 13px 28px; font-size: 15px; }
.cs-btn--full{ width: 100%; justify-content: center; }

.cs-btn--primary {
    background: var(--cs-primary);
    color: var(--cs-white);
    border-color: var(--cs-primary);
}
.cs-btn--primary:hover {
    background: var(--cs-primary-dark);
    border-color: var(--cs-primary-dark);
    color: var(--cs-white);
}

.cs-btn--white {
    background: var(--cs-white);
    color: var(--cs-primary-dark);
    border-color: var(--cs-white);
}
.cs-btn--white:hover {
    background: var(--cs-gray-100);
    color: var(--cs-primary-dark);
}

.cs-btn--ghost {
    background: transparent;
    color: var(--cs-white);
    border-color: rgba(255,255,255,0.55);
}
.cs-btn--ghost:hover {
    background: rgba(255,255,255,0.15);
    color: var(--cs-white);
}

.cs-btn--outline {
    background: transparent;
    color: var(--cs-primary);
    border-color: var(--cs-primary);
}
.cs-btn--outline:hover {
    background: var(--cs-primary);
    color: var(--cs-white);
}

/* ---------- Tags / Badges ---------------------------------- */
.cs-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
}
.cs-tag--green   { background: var(--cs-primary-light); color: var(--cs-primary-dark); }
.cs-tag--amber   { background: var(--cs-warning-light); color: var(--cs-warning); }
.cs-tag--red     { background: var(--cs-danger-light);  color: var(--cs-danger); }
.cs-tag--neutral { background: var(--cs-gray-100);      color: var(--cs-gray-600); }

/* ============================================================
   TOPBAR
   ============================================================ */
.cs-topbar {
    background: var(--cs-primary-darker);
    color: rgba(255,255,255,0.75);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.cs-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 36px;
}
.cs-topbar__left,
.cs-topbar__right { display: flex; align-items: center; gap: 20px; }

.cs-topbar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.75);
}
.cs-topbar__item a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.cs-topbar__item a:hover { color: var(--cs-white); }

.cs-topbar__social {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.6);
    transition: color var(--cs-transition);
}
.cs-topbar__social:hover { color: var(--cs-white); }

/* ============================================================
   HEADER
   ============================================================ */
.cs-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-gray-200);
    box-shadow: var(--cs-shadow-sm);
}
.cs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

/* Brand */
.cs-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cs-header__logo { width: 44px; height: 44px; object-fit: contain; }
.cs-header__club-name {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 22px;
    color: var(--cs-primary);
    letter-spacing: 0.5px;
    line-height: 1.1;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}
.cs-header__tagline {
    font-family: var(--cs-font-body);
    font-weight: 400;
    font-size: 11px;
    color: var(--cs-gray-400);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Navigation */
.cs-header__nav { flex: 1; }

/* Joomla nav module output */
.cs-header__nav ul.nav,
.cs-header__nav ul.menu {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}
.cs-header__nav ul li { position: relative; }
.cs-header__nav ul li a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-gray-600);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--cs-radius);
    transition: color var(--cs-transition), background var(--cs-transition);
    text-decoration: none;
}
.cs-header__nav ul li a:hover,
.cs-header__nav ul li.current a,
.cs-header__nav ul li.active a {
    color: var(--cs-primary);
    background: var(--cs-primary-light);
}

/* Dropdown */
.cs-header__nav ul li ul {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius);
    box-shadow: var(--cs-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--cs-transition), transform var(--cs-transition);
    z-index: 100;
    flex-direction: column;
    gap: 0;
}
.cs-header__nav ul li:hover > ul,
.cs-header__nav ul li:focus-within > ul {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.cs-header__nav ul li ul li { width: 100%; }
.cs-header__nav ul li ul a {
    border-radius: 0;
    padding: 9px 16px;
    text-transform: none;
    font-size: 13px;
    border-bottom: 1px solid var(--cs-gray-100);
}
.cs-header__nav ul li ul li:last-child a { border-bottom: none; }

/* Actions */
.cs-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Hamburger */
.cs-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--cs-radius);
}
.cs-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cs-gray-600);
    border-radius: 2px;
    transition: transform var(--cs-transition), opacity var(--cs-transition);
}
.cs-hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.cs-hamburger.is-active span:nth-child(2) { opacity: 0; }
.cs-hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.cs-hero {
    position: relative;
    overflow: hidden;
}

/* Default (no modules) hero */
.cs-hero--default {
    background: linear-gradient(135deg, var(--cs-primary-darker) 0%, var(--cs-primary-dark) 45%, var(--cs-primary) 100%);
    padding: 72px 0 56px;
}
.cs-hero__overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}
.cs-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.cs-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.9);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
}
.cs-hero__title {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: clamp(38px, 5vw, 60px);
    line-height: 0.95;
    color: var(--cs-white);
    text-transform: uppercase;
    margin-bottom: 20px;
}
.cs-hero__subtitle {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 32px;
    max-width: 480px;
}
.cs-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stats grid */
.cs-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    flex-shrink: 0;
}
.cs-hero__stat {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--cs-radius-lg);
    padding: 22px 18px;
    text-align: center;
    min-width: 110px;
}
.cs-hero__stat-num {
    display: block;
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 42px;
    color: var(--cs-accent);
    line-height: 1;
}
.cs-hero__stat-lbl {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* ============================================================
   FEATURES STRIP
   ============================================================ */
.cs-features { padding: 48px 0; background: var(--cs-white); }
.cs-features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* cs_feature module style */
.cs-feature-block {
    background: var(--cs-gray-50);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius-lg);
    padding: 28px 22px;
    transition: transform var(--cs-transition), box-shadow var(--cs-transition);
}
.cs-feature-block:hover {
    transform: translateY(-4px);
    box-shadow: var(--cs-shadow-md);
}
.cs-feature-block__icon {
    width: 52px;
    height: 52px;
    background: var(--cs-primary-light);
    border-radius: var(--cs-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--cs-primary);
}
.cs-feature-block__title {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--cs-gray-800);
    margin-bottom: 8px;
}
.cs-feature-block__body {
    font-size: 14px;
    color: var(--cs-gray-600);
    line-height: 1.6;
}

/* ============================================================
   FULLWIDTH SECTION (agenda, news, etc.)
   ============================================================ */
.cs-fullwidth { padding: 52px 0; background: var(--cs-gray-100); }

/* cs_section module style */
.cs-section-block { }
.cs-section-block__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cs-primary);
    margin-bottom: 6px;
}
.cs-section-block__title {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 32px;
    text-transform: uppercase;
    color: var(--cs-gray-800);
    margin-bottom: 28px;
    line-height: 1;
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.cs-breadcrumb-bar {
    padding: 10px 0;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-gray-200);
    font-size: 13px;
    color: var(--cs-gray-400);
}
.cs-breadcrumb-bar .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.cs-breadcrumb-bar .breadcrumb li + li::before {
    content: '›';
    margin-right: 6px;
    color: var(--cs-gray-200);
}
.cs-breadcrumb-bar .breadcrumb li a { color: var(--cs-primary); }
.cs-breadcrumb-bar .breadcrumb li.active { color: var(--cs-gray-400); }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.cs-main { padding: 52px 0; }

/* Layout wrappers */
.cs-content-wrapper {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.cs-layout-full  { }
.cs-layout-left  { flex-direction: row; }
.cs-layout-right { flex-direction: row; }
.cs-layout-both  { flex-direction: row; }

/* Content top / bottom */
.cs-content-top    { margin-bottom: 32px; }
.cs-content-bottom { margin-top: 32px; }

/* Sidebar */
.cs-sidebar {
    flex-shrink: 0;
    width: 25%;
}

/* cs_sidebar module style */
.cs-sidebar-block {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius-lg);
    padding: 20px;
    margin-bottom: 24px;
}
.cs-sidebar-block__title {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
    color: var(--cs-gray-800);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cs-primary);
}

/* cs_box module style */
.cs-box-block {
    background: var(--cs-white);
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.cs-box-block__title {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    color: var(--cs-gray-800);
    margin-bottom: 16px;
}

/* Joomla article styling */
.cs-content-main h1,
.cs-content-main h2,
.cs-content-main h3 {
    font-family: var(--cs-font-display);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--cs-gray-800);
    line-height: 1.1;
    margin-bottom: 0.6em;
}
.cs-content-main h1 { font-size: clamp(28px, 4vw, 42px); }
.cs-content-main h2 { font-size: clamp(22px, 3vw, 32px); }
.cs-content-main h3 { font-size: 22px; }
.cs-content-main p  { margin-bottom: 1em; color: var(--cs-gray-600); line-height: 1.7; }
.cs-content-main ul,
.cs-content-main ol { margin: 0 0 1em 1.4em; color: var(--cs-gray-600); }
.cs-content-main li { margin-bottom: 0.4em; }
.cs-content-main img { border-radius: var(--cs-radius); margin: 1rem 0; }

/* Article metadata */
.cs-content-main .article-info {
    font-size: 12px;
    color: var(--cs-gray-400);
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Pagination */
.cs-content-main .pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.cs-content-main .pagination li a,
.cs-content-main .pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius);
    font-size: 13px;
    font-weight: 700;
    color: var(--cs-gray-600);
    transition: background var(--cs-transition), color var(--cs-transition);
}
.cs-content-main .pagination li a:hover { background: var(--cs-primary-light); color: var(--cs-primary); }
.cs-content-main .pagination li.active span { background: var(--cs-primary); color: var(--cs-white); border-color: var(--cs-primary); }

/* Forms */
.cs-content-main input[type=text],
.cs-content-main input[type=email],
.cs-content-main input[type=tel],
.cs-content-main input[type=password],
.cs-content-main textarea,
.cs-content-main select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--cs-gray-200);
    border-radius: var(--cs-radius);
    font-family: var(--cs-font-body);
    font-size: 14px;
    color: var(--cs-gray-800);
    background: var(--cs-white);
    transition: border-color var(--cs-transition);
    margin-bottom: 14px;
}
.cs-content-main input:focus,
.cs-content-main textarea:focus,
.cs-content-main select:focus {
    outline: none;
    border-color: var(--cs-primary);
}
.cs-form-group { margin-bottom: 16px; }
.cs-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--cs-gray-600);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.cs-footer { background: var(--cs-primary-darker); }

.cs-footer__main { padding: 52px 0 40px; }
.cs-footer__grid {
    display: grid;
    gap: 36px;
}
.cs-footer__grid--1 { grid-template-columns: 1fr; }
.cs-footer__grid--2 { grid-template-columns: 1.5fr 1fr; }
.cs-footer__grid--3 { grid-template-columns: 1.5fr 1fr 1fr; }

/* Brand column */
.cs-footer__logo {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 26px;
    color: var(--cs-accent);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.cs-footer__tagline {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    margin-bottom: 14px;
}
.cs-footer__address {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.cs-footer__contact { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.cs-footer__contact-link {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    text-decoration: none;
    transition: color var(--cs-transition);
}
.cs-footer__contact-link:hover { color: var(--cs-white); }

.cs-footer__social { display: flex; gap: 10px; margin-top: 4px; }
.cs-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: var(--cs-radius);
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
    transition: background var(--cs-transition), color var(--cs-transition);
}
.cs-footer__social-link:hover {
    background: var(--cs-primary);
    color: var(--cs-white);
}

/* Widget columns */
.cs-footer__widget { }

/* cs_footer_widget module style */
.cs-footer-widget__title {
    font-family: var(--cs-font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cs-footer-widget__content { }
.cs-footer-widget__content ul li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cs-footer-widget__content ul li a {
    display: block;
    padding: 8px 0;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    text-decoration: none;
    transition: color var(--cs-transition), padding-left var(--cs-transition);
}
.cs-footer-widget__content ul li a:hover {
    color: var(--cs-white);
    padding-left: 6px;
}

/* Footer bottom bar */
.cs-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
}
.cs-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.cs-footer__copy { font-size: 12px; color: rgba(255,255,255,0.45); }
.cs-footer__legal { display: flex; gap: 20px; }
.cs-footer__legal a { font-size: 12px; color: rgba(255,255,255,0.45); text-decoration: none; }
.cs-footer__legal a:hover { color: rgba(255,255,255,0.8); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.cs-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 800;
    width: 44px;
    height: 44px;
    background: var(--cs-primary);
    color: var(--cs-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--cs-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity var(--cs-transition), transform var(--cs-transition);
}
.cs-back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.cs-back-to-top:hover { background: var(--cs-primary-dark); }

/* ============================================================
   ERROR & OFFLINE PAGES
   ============================================================ */
.cs-body--error,
.cs-body--offline {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cs-gray-50);
}
.cs-error-page,
.cs-offline-page {
    text-align: center;
    max-width: 480px;
    padding: 40px 24px;
}
.cs-error-page__code {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 100px;
    color: var(--cs-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.cs-error-page__title {
    font-family: var(--cs-font-display);
    font-weight: 900;
    font-size: 32px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.cs-error-page__message { color: var(--cs-gray-600); margin-bottom: 32px; }
.cs-error-page__debug {
    background: var(--cs-gray-100);
    border-radius: var(--cs-radius);
    padding: 12px;
    font-size: 12px;
    text-align: left;
    margin-bottom: 24px;
    overflow-x: auto;
}

.cs-offline-page__icon { color: var(--cs-primary); margin: 0 auto 20px; }
.cs-offline-page__club { font-family: var(--cs-font-display); font-weight: 900; font-size: 36px; text-transform: uppercase; margin-bottom: 10px; }
.cs-offline-page__message { color: var(--cs-gray-600); margin-bottom: 32px; }
.cs-offline-page__login { text-align: left; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    /* Show hamburger, hide desktop nav */
    .cs-hamburger { display: flex; }
    .cs-header__nav {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--cs-white);
        border-bottom: 1px solid var(--cs-gray-200);
        padding: 12px 0;
        box-shadow: var(--cs-shadow-md);
        display: none;
    }
    .cs-header__nav.is-open { display: block; }
    .cs-header__nav ul.nav,
    .cs-header__nav ul.menu {
        flex-direction: column;
        align-items: stretch;
        padding: 0 16px;
        gap: 2px;
    }
    .cs-header__nav ul li ul {
        position: static;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--cs-gray-50);
        border-radius: var(--cs-radius);
        margin: 4px 0;
        padding: 4px 0;
    }

    /* Hero responsive */
    .cs-hero__inner { grid-template-columns: 1fr; }
    .cs-hero__stats { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }
    .cs-hero__stat { padding: 14px 10px; }
    .cs-hero__stat-num { font-size: 30px; }

    /* Layout */
    .cs-content-wrapper { flex-direction: column; }
    .cs-sidebar { width: 100%; }
    .cs-col-12, .cs-col-9, .cs-col-6, .cs-col-3 { width: 100%; }

    /* Footer */
    .cs-footer__grid--2,
    .cs-footer__grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cs-topbar__left  { gap: 12px; }
    .cs-topbar__right { gap: 8px; }
    .cs-hero__stats   { grid-template-columns: 1fr 1fr; }
    .cs-hero__actions { flex-direction: column; }
    .cs-features__grid { grid-template-columns: 1fr; }
    .cs-footer__bottom-inner { flex-direction: column; text-align: center; }
    .cs-footer__legal { justify-content: center; flex-wrap: wrap; }
    .cs-back-to-top { bottom: 16px; right: 16px; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .cs-topbar, .cs-header, .cs-hero, .cs-features,
    .cs-back-to-top, .cs-footer { display: none; }
    .cs-main { padding: 0; }
}
