/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    /* Colors */
    --primary-color: #1e3a8a;      /* Deep blue (billiard cloth) */
    --primary-dark: #0f1f4f;
    --primary-light: #3b82f6;
    --secondary-color: #f59e0b;     /* Amber accent */
    --accent-color: #8b4513;        /* Brown (wood) */
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-display: 'Playfair Display', serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--bp-text, var(--text-dark));
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===========================
   Container & Layout
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--bp-text, var(--text-dark));
    margin-bottom: var(--spacing-sm);
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--bp-fill-blue, var(--primary-color)), var(--bp-fill-amber, var(--secondary-color)));
    margin: 0 auto;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--bp-muted, var(--text-light));
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    background: var(--bp-surface, var(--bg-white));
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    flex-wrap: nowrap;
    gap: var(--spacing-sm);
}

.nav-brand {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-brand h1 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--bp-ink-blue, var(--primary-color));
    letter-spacing: 2px;
}

.nav-brand .tagline {
    font-size: 0.75rem;
    color: var(--bp-muted, var(--text-light));
    margin-top: -5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.nav-menu a {
    color: var(--bp-text, var(--text-dark));
    font-weight: 500;
    padding: var(--spacing-xs) 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    white-space: nowrap;
    font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--bp-ink-blue, var(--primary-color));
    background: rgba(26, 95, 58, 0.1);
}

/* Language Selector Dropdown */
.language-selector {
    display: flex;
    align-items: center;
    margin-left: auto;
    min-height: 40px;
}

#languageSelect {
    background-color: var(--bp-surface, white);
    color: var(--bp-text, var(--text-dark));
    border: 1px solid var(--bp-line, var(--border-color));
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    font-size: 1.5rem;
    font-family: var(--font-primary);
    cursor: pointer;
    outline: none;
    transition: all var(--transition-fast);
    min-width: auto;
    text-align: center;
}

#languageSelect:hover {
    border-color: var(--bp-line-blue, var(--primary-color));
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.1);
}

#languageSelect:focus {
    border-color: var(--bp-line-blue, var(--primary-color));
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.15);
}

#languageSelect option {
    background-color: var(--bp-surface, white);
    color: var(--bp-text, var(--text-dark));
    padding: 0.5rem;
    cursor: pointer !important;
    min-height: 40px !important;
}

.goog-te-gadget-simple:hover {
    background-color: var(--bp-fill-blue, var(--primary-dark)) !important;
    border-color: var(--bp-line-blue, var(--primary-dark)) !important;
}

.goog-te-menu-value {
    color: white !important;
    vertical-align: middle !important;
}

.goog-te-menu-value span {
    color: white !important;
}

.goog-te-menu-value span:first-child {
    margin-right: 8px !important;
}

.goog-te-gadget-icon {
    margin-right: 0.5rem !important;
}

/* Hide the Google Translate banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(30, 64, 175, 0.8) 100%), url('/public/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><circle cx="200" cy="100" r="80" fill="rgba(255,255,255,0.03)"/><circle cx="800" cy="400" r="120" fill="rgba(255,255,255,0.03)"/><circle cx="1000" cy="150" r="60" fill="rgba(255,255,255,0.03)"/><circle cx="400" cy="450" r="90" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-md);
    max-width: 900px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 4rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.hero-cta-text {
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--bp-on-fill, var(--bg-white));
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid var(--bp-line-amber, var(--secondary-color));
    padding-bottom: 2px;
    transition: var(--transition-normal);
}

.hero-cta-link svg {
    transition: transform 0.2s;
}

.hero-cta-link:hover {
    color: var(--bp-ink-amber, var(--secondary-color));
}

.hero-cta-link:hover svg {
    transform: translateX(3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 36px;
    border: 2px solid var(--bp-line, var(--bg-white));
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--bp-surface, var(--bg-white));
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    50% { top: 18px; opacity: 0.5; }
    100% { top: 8px; opacity: 1; }
}

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

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--bp-fill-amber, var(--secondary-color));
    color: var(--bp-text, var(--text-dark));
}

.btn-primary:hover {
    background: var(--bp-fill-amber, #c49d2a);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
}

.btn-secondary:hover {
    background: var(--bp-fill-blue, var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--bp-on-fill, var(--bg-white));
    border: 2px solid var(--bp-line, var(--bg-white));
}

.btn-outline:hover {
    background: var(--bp-surface, var(--bg-white));
    color: var(--bp-ink-blue, var(--primary-color));
}

.btn-outline-dark {
    background: transparent;
    color: var(--bp-ink-blue, var(--primary-color));
    border: 2px solid var(--bp-line-blue, var(--primary-color));
}

.btn-outline-dark:hover {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
}

/* ===========================
   About Section
   =========================== */
.about-section {
    background: var(--bp-surface, var(--bg-white));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bp-line-blue, var(--primary-light));
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: var(--bp-fill-blue, var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 40px;
    height: 40px;
    color: var(--bp-on-fill, var(--bg-white));
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bp-ink-blue, var(--primary-color));
}

.about-card p {
    color: var(--bp-muted, var(--text-light));
    line-height: 1.7;
}

/* ===========================
   Membership Section
   =========================== */
.membership-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.membership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.membership-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
    color: var(--bp-ink-blue, var(--primary-color));
}

.membership-info > p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-lg);
    line-height: 1.7;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-list li {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
}

.feature-list strong {
    display: block;
    color: var(--bp-text, var(--text-dark));
    margin-bottom: 4px;
}

.feature-list p {
    color: var(--bp-muted, var(--text-light));
    margin: 0;
}

.guest-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.guest-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--bp-ink-blue, var(--primary-color));
}

.guest-card > p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-md);
}

.guest-card ul {
    list-style: disc;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--bp-muted, var(--text-light));
}

.guest-card ul li {
    margin-bottom: var(--spacing-xs);
}

/* ===========================
   Tournaments Section
   =========================== */
.tournaments-section {
    background: var(--bp-surface, var(--bg-white));
}

.tournament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-md);
}

.tournament-card {
    background: var(--bp-surface, var(--bg-white));
    border: 2px solid var(--bp-line, var(--border-color));
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.tournament-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bp-line-blue, var(--primary-color));
}

.tournament-card.featured {
    background: linear-gradient(135deg, var(--bp-fill-blue, var(--primary-color)) 0%, var(--bp-fill-blue, var(--primary-dark)) 100%);
    color: var(--bp-on-fill, var(--bg-white));
    border: none;
}

.tournament-card.featured .tournament-badge {
    background: var(--bp-fill-amber, var(--secondary-color));
    color: var(--bp-text, var(--text-dark));
}

.tournament-card.featured h3,
.tournament-card.featured p,
.tournament-card.featured ul {
    color: var(--bp-on-fill, var(--bg-white));
}

.tournament-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.tournament-header h3 {
    font-size: 1.5rem;
    color: var(--bp-ink-blue, var(--primary-color));
    flex: 1;
}

.tournament-card.featured .tournament-header h3 {
    color: var(--bp-on-fill, var(--bg-white));
}

.tournament-badge {
    background: var(--bp-fill-blue, var(--primary-light));
    color: var(--bp-on-fill, var(--bg-white));
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.tournament-card > p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.tournament-details {
    list-style: none;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.tournament-details li {
    padding: var(--spacing-xs) 0;
    border-bottom: 1px solid var(--bp-line, var(--border-color));
    color: var(--bp-muted, var(--text-light));
}

.tournament-card.featured .tournament-details li {
    border-bottom-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
}

.tournament-details strong {
    color: var(--bp-text, var(--text-dark));
}

.tournament-card.featured .tournament-details strong {
    color: var(--bp-on-fill, var(--bg-white));
}

/* ===========================
   Location Section
   =========================== */
.location-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.location-info h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--bp-text, var(--text-dark));
    margin-bottom: var(--spacing-sm);
}

.address {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin: var(--spacing-lg) 0;
    box-shadow: var(--shadow-sm);
}

.address svg {
    width: 40px;
    height: 40px;
    color: var(--bp-ink-blue, var(--primary-color));
    flex-shrink: 0;
}

.address h3 {
    font-size: 1.5rem;
    color: var(--bp-text, var(--text-dark));
    margin-bottom: 4px;
}

.address p {
    color: var(--bp-muted, var(--text-light));
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background: var(--bp-surface, var(--bg-white));
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    transform: translateX(5px);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-item a {
    font-weight: 500;
}

.location-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 400px;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--bp-fill-blue, var(--primary-dark));
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

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

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
}

.footer-col h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bp-ink-amber, var(--secondary-color));
}

.footer-col h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    color: var(--bp-ink-amber, var(--secondary-color));
}

.footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-col a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--bp-ink-amber, var(--secondary-color));
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ===========================
   Page Header
   =========================== */
.page-header {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.8) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(30, 64, 175, 0.8) 100%), url('/public/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    min-height: 16rem;
    text-align: center;
}

/* Cover image: shown as real <img> on mobile, hidden on desktop (bg handles it) */
.page-header__cover-mobile {
    display: none;
}
.tournament-cover-status {
    display: none;
}

@media (max-width: 768px) {
    /* Override generic mobile banner padding; the cover itself is the header. */
    .page-header.page-header--has-cover {
        background: none !important;
        min-height: 0;
        padding: 0 !important;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .page-header--has-cover .page-header__cover-mobile {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        /* Keep round logos and posters fully visible within the cover height. */
        object-fit: contain;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
    }
    .page-header--has-cover .page-header__status {
        display: none;
    }
    .tournament-cover-status {
        display: block;
        margin: 0.5rem 0 0;
    }
}

.bk-logo {
    max-width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-md);
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .bk-logo {
        max-width: 150px;
    }
}

.page-header h1 {
    font-family: var(--font-display);
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ===========================
   Tournament Info Page
   =========================== */
.tournament-info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

.info-main {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.lead {
    font-size: 1.125rem;
    color: var(--bp-muted, var(--text-light));
    line-height: 1.7;
}

.info-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bp-line, var(--border-color));
    transition: var(--transition-normal);
}

.info-card:hover {
    border-color: var(--bp-line-blue, var(--primary-color));
    box-shadow: var(--shadow-md);
}

.info-card.highlight {
    background: var(--bp-surface-soft, var(--bg-light));
    border-color: var(--bp-line-blue, var(--primary-color));
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--bp-ink-blue, var(--primary-color));
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--bp-muted, var(--text-light));
}

.info-card a {
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: 600;
}

.info-card a:hover {
    text-decoration: underline;
}

.info-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.quick-facts,
.cta-box,
.tips-box {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.quick-facts h3,
.cta-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--bp-ink-blue, var(--primary-color));
}

.fact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bp-line, var(--border-color));
}

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

.fact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.fact-item strong {
    display: block;
    color: var(--bp-text, var(--text-dark));
    margin-bottom: 2px;
}

.fact-item p {
    color: var(--bp-muted, var(--text-light));
    margin: 0;
}

.cta-box {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
}

.cta-box h3 {
    color: var(--bp-on-fill, var(--bg-white));
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-md);
}

.tips-box h4 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-sm);
}

.tips-box ul {
    list-style: none;
    padding: 0;
}

.tips-box li {
    padding: var(--spacing-xs) 0;
    color: var(--bp-muted, var(--text-light));
    padding-left: var(--spacing-md);
    position: relative;
}

.tips-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: bold;
}

/* ===========================
   BK Page Styles
   =========================== */
.bk-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.event-list {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.event-list li {
    font-size: 1.125rem;
    color: var(--bp-muted, var(--text-light));
}

.event-list a {
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: 600;
}

.award-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.award-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.award-badge {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.trophy-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-sm);
}

.award-badge h2 {
    font-size: 1.5rem;
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-xs);
}

.award-year {
    color: var(--bp-muted, var(--text-light));
    font-size: 0.875rem;
}

.award-text h3 {
    font-size: 1.75rem;
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.award-text blockquote {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-left: 4px solid var(--bp-line-amber, var(--secondary-color));
    border-radius: var(--radius-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--bp-muted, var(--text-light));
}

.award-text blockquote p {
    margin-bottom: var(--spacing-sm);
}

.proud-text {
    font-weight: 600;
    color: var(--bp-text, var(--text-dark));
}

.membership-bk-section {
    background: var(--bp-surface, var(--bg-white));
}

.membership-description {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.membership-details-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.detail-card {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bp-line, var(--border-color));
}

.detail-card h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bp-ink-blue, var(--primary-color));
    text-align: center;
}

.benefits-card ul {
    list-style: none;
    padding: 0;
}

.benefits-card li {
    padding: var(--spacing-xs) 0;
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
    color: var(--bp-muted, var(--text-light));
}

.benefits-card li span {
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: bold;
    flex-shrink: 0;
}

.cta-section {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-section h3 {
    color: var(--bp-on-fill, var(--bg-white));
    margin-bottom: var(--spacing-sm);
}

.cta-section p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-md);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.contact-box {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.contact-box h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.contact-link {
    display: inline-block;
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: var(--spacing-sm);
}

.welcome-message {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
}

.welcome-message h2 {
    color: var(--bp-on-fill, var(--bg-white));
    margin-bottom: var(--spacing-sm);
}

.welcome-message p {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
}

/* ===========================
   Contact Page
   =========================== */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-sm);
}

.contact-form-wrapper > p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-lg);
}

.alert {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
}

.alert-success {
    background: var(--bp-surface-green, #d4edda);
    color: var(--bp-ink-green, #155724);
    border: 1px solid var(--bp-line-green, #c3e6cb);
}

.alert-error {
    background: var(--bp-surface-red, #f8d7da);
    color: var(--bp-ink-red, #721c24);
    border: 1px solid var(--bp-line-red, #f5c6cb);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--bp-text, var(--text-dark));
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--bp-line, var(--border-color));
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--bp-line-blue, var(--primary-color));
    box-shadow: 0 0 0 3px rgba(26, 95, 58, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--bp-line-red, #dc3545);
}

.form-group textarea {
    resize: vertical;
}

.contact-info-card,
.hours-card,
.map-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

.contact-info-card h3,
.hours-card h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.info-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--bp-line, var(--border-color));
}

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

.info-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--bp-surface-soft, var(--bg-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: var(--bp-ink-blue, var(--primary-color));
}

.info-item h4 {
    color: var(--bp-text, var(--text-dark));
    margin-bottom: 4px;
}

.info-item p,
.info-item a {
    color: var(--bp-muted, var(--text-light));
    margin: 0;
}

.info-item a:hover {
    color: var(--bp-ink-blue, var(--primary-color));
}

.hours-card p {
    margin-bottom: var(--spacing-sm);
    color: var(--bp-muted, var(--text-light));
}

.map-card {
    padding: 0;
    overflow: hidden;
}

/* ===========================
   Gallery Page
   =========================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    background: var(--bp-surface-soft, var(--bg-light));
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: var(--spacing-md);
    color: var(--bp-on-fill, var(--bg-white));
    transform: translateY(100%);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

.gallery-placeholder {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--bp-muted, var(--text-light));
}

/* ===========================
   Scandinavian Masters Page
   =========================== */
.masters-header {
    background: linear-gradient(135deg, #005293 0%, #ba0c2f 20%, #003580 40%, #0072ce 60%, #fecb00 80%, #00205b 100%);
}

/* Country-specific header colors */
.masters-header.sweden {
    background: linear-gradient(135deg, #005293 0%, #006aa7 50%, #fecb00 100%);
}

.masters-header.norway {
    background: linear-gradient(135deg, #ba0c2f 0%, #00205b 50%, #ffffff 100%);
}

.masters-header.finland {
    background: linear-gradient(135deg, #003580 0%, #ffffff 50%, #003580 100%);
}

.masters-header.finland h1,
.masters-header.finland p {
    color: #003580;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.masters-header.estonia {
    background: linear-gradient(135deg, #0072ce 0%, #000000 50%, #ffffff 100%);
}

.sponsors-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.sponsor-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@media (max-width: 768px) {
    .sponsor-logo {
        height: 100px;
    }
}

.masters-intro {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.masters-intro h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.format-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.format-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bp-line, var(--border-color));
    transition: var(--transition-normal);
    text-align: center;
}

.format-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bp-line-blue, var(--primary-color));
}

.format-card.featured {
    background: linear-gradient(135deg, var(--bp-fill-blue, var(--primary-color)) 0%, var(--bp-fill-blue, var(--primary-dark)) 100%);
    color: var(--bp-on-fill, var(--bg-white));
    border: none;
}

.format-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.format-card h3 {
    font-size: 1.5rem;
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
    text-align: center !important;
    width: 100%;
    display: block;
    word-wrap: break-word;
    hyphens: auto;
}

.format-card.featured h3 {
    color: var(--bp-on-fill, var(--bg-white));
    text-align: center !important;
}

.format-card p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.format-card.featured p {
    color: rgba(255,255,255,0.9);
}

.format-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: var(--spacing-md);
}

.format-card ul li {
    padding: var(--spacing-xs) 0;
    color: var(--bp-muted, var(--text-light));
    padding-left: var(--spacing-md);
    position: relative;
}

.format-card.featured ul li {
    color: rgba(255,255,255,0.9);
}

.format-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: bold;
}

.format-card.featured ul li::before {
    color: var(--bp-ink-amber, var(--secondary-color));
}

.prize-section {
    background: var(--bp-surface, var(--bg-white));
}

.prize-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-lg);
}

.prize-info {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    height: fit-content;
}

.prize-info h3,
.prize-final h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
}

.prize-details {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-md);
}

.prize-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--bp-line, var(--border-color));
}

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

.prize-item.highlight {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-md);
    margin: var(--spacing-sm) calc(-1 * var(--spacing-lg));
    border-bottom: none;
}

.prize-label {
    font-weight: 600;
}

.prize-value {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--bp-ink-blue, var(--primary-color));
}

.prize-item.highlight .prize-value {
    color: var(--bp-ink-amber, var(--secondary-color));
}

.payout-table {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--bp-line-blue, var(--primary-color));
}

.payout-table h4 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.payout-table table {
    width: 100%;
    border-collapse: collapse;
}

.payout-table th,
.payout-table td {
    padding: var(--spacing-sm);
    text-align: center;
    border-bottom: 1px solid var(--bp-line, var(--border-color));
}

.payout-table th {
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    font-weight: 600;
}

.payout-table tbody tr:hover {
    background: var(--bp-surface-soft, var(--bg-light));
}

.benefits-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.benefit-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bp-line-blue, var(--primary-color));
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.benefit-card h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-sm);
}

.benefit-card p {
    color: var(--bp-muted, var(--text-light));
    line-height: 1.7;
}

.countries-section {
    background: var(--bp-surface, var(--bg-white));
}

.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.country-card {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-normal);
    border: 2px solid var(--bp-line, var(--border-color));
    display: flex;
    flex-direction: column;
    align-items: center;
}

.country-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--bp-line-blue, var(--primary-color));
    background: var(--bp-surface, var(--bg-white));
}

.country-flag {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
}

.country-card h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    margin-bottom: var(--spacing-sm);
}

.country-card p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.country-link {
    color: var(--bp-ink-blue, var(--primary-color));
    font-weight: 600;
    margin-top: auto;
}

.masters-contact-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.masters-contact-card {
    background: linear-gradient(135deg, var(--bp-fill-blue, var(--primary-color)) 0%, var(--bp-fill-blue, var(--primary-dark)) 100%);
    color: var(--bp-on-fill, var(--bg-white));
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.masters-contact-card h2 {
    color: var(--bp-on-fill, var(--bg-white));
    margin-bottom: var(--spacing-md);
}

.masters-contact-card > p {
    color: rgba(255,255,255,0.9);
    margin-bottom: var(--spacing-lg);
    font-size: 1.125rem;
}

.contact-methods {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.method {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.method strong {
    color: var(--bp-ink-amber, var(--secondary-color));
}

.method a {
    color: var(--bp-on-fill, var(--bg-white));
    font-size: 1.125rem;
    font-weight: 600;
}

.method a:hover {
    color: var(--bp-ink-amber, var(--secondary-color));
}

.contact-footer {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 0 !important;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .membership-content,
    .location-grid,
    .tournament-info-grid,
    .contact-page-grid,
    .award-content,
    .membership-details-grid,
    .contact-grid,
    .prize-content,
    .format-grid {
        grid-template-columns: 1fr;
    }
    
    .location-map {
        min-height: 300px;
    }
    
    .award-badge {
        position: static;
    }
    
    .masters-intro h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .language-selector {
        order: -1;
        margin-left: auto;
        margin-right: var(--spacing-sm);
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: var(--bp-surface, var(--bg-white));
        width: 100%;
        max-width: 300px;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        align-items: flex-start;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .goog-te-gadget-simple {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .hero-cta {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .tournament-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .about-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Country Qualifier Pages
   =========================== */
.country-header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.country-logo {
    height: 140px;
    width: auto;
    object-fit: contain;
}

.country-flag-large {
    font-size: 4rem;
}

.qualifier-intro {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.qualifier-intro h2 {
    color: var(--bp-ink-blue, var(--primary-color));
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.qualifier-intro .lead {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--bp-muted, var(--text-light));
}

.qualifier-structure {
    max-width: 900px;
    margin: var(--spacing-lg) auto;
}

.qualifier-structure h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.structure-list {
    list-style: none;
    padding: 0;
}

.structure-list li {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--bp-line-blue, var(--primary-color));
}

.structure-list li strong {
    display: block;
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.structure-list li p {
    color: var(--bp-muted, var(--text-light));
    line-height: 1.6;
}

.structure-list li a {
    color: var(--bp-ink-blue, var(--primary-light));
    text-decoration: none;
    font-weight: 600;
}

.structure-list li a:hover {
    text-decoration: underline;
}

/* Events Section */
.events-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.events-section h2 {
    text-align: center;
    color: var(--bp-ink-blue, var(--primary-color));
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.event-card {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    position: relative;
}

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

/* Past event styling */
.event-card.past-event {
    background: linear-gradient(135deg, var(--bp-surface-soft, #f5f5f5) 0%, var(--bp-surface-soft, #e8e8e8) 100%);
    opacity: 0.85;
    position: relative;
}

.event-card.past-event::before {
    content: 'AVSLUTAD';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 3rem;
    font-weight: bold;
    color: rgba(150, 150, 150, 0.15);
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
}

.event-card.past-event .event-number {
    background: var(--bp-surface-raised, #999999);
}

.event-card.past-event h3 {
    color: var(--bp-muted, #666666);
}

.event-card.past-event:hover {
    transform: translateY(-2px);
}

.event-number {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 50px;
    height: 50px;
    background: var(--bp-fill-blue, var(--primary-color));
    color: var(--bp-on-fill, var(--bg-white));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.event-card h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    padding-right: 60px;
}

.event-details {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-md);
}

.event-details li {
    padding: var(--spacing-xs) 0;
    color: var(--bp-muted, var(--text-light));
    border-bottom: 1px solid var(--bp-line, var(--border-color));
}

.event-details li:last-child {
    border-bottom: none;
}

.event-details strong {
    color: var(--bp-text, var(--text-dark));
    display: inline-block;
    width: 100px;
}

.event-notice {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    text-align: center;
    color: var(--bp-muted, var(--text-light));
    font-style: italic;
}

.events-note {
    text-align: center;
    color: var(--bp-muted, var(--text-light));
    font-style: italic;
    margin-top: var(--spacing-md);
}

/* Info Section */
.info-section {
    background: var(--bp-surface, var(--bg-white));
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.info-box {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.info-box h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.info-box p {
    color: var(--bp-muted, var(--text-light));
    margin-bottom: var(--spacing-md);
}

.info-box .btn {
    margin-top: var(--spacing-sm);
}

/* Contact & Social Section */
.contact-social-section {
    background: var(--bp-surface-soft, var(--bg-light));
}

.contact-social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.social-box,
.contact-box-country {
    background: var(--bp-surface, var(--bg-white));
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.social-box h3,
.contact-box-country h3 {
    color: var(--bp-ink-blue, var(--primary-color));
    font-size: 1.75rem;
    margin-bottom: var(--spacing-md);
}

.social-box p,
.contact-box-country p {
    color: var(--bp-muted, var(--text-light));
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.social-box p strong,
.contact-box-country p strong {
    color: var(--bp-text, var(--text-dark));
    display: block;
    margin-bottom: 0.25rem;
}

.social-box a,
.contact-box-country a {
    color: var(--bp-ink-blue, var(--primary-light));
    text-decoration: none;
}

.social-box a:hover,
.contact-box-country a:hover {
    text-decoration: underline;
}

.closing-text {
    text-align: center;
    font-size: 1.125rem;
    color: var(--bp-muted, var(--text-light));
    max-width: 800px;
    margin: var(--spacing-lg) auto 0;
    font-style: italic;
}

/* Responsive styles for country pages */
@media (max-width: 768px) {
    .country-flag-large {
        font-size: 3rem;
    }
    
    .qualifier-intro h2 {
        font-size: 2rem;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-social-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   Qualified Players Section
   =========================== */
.qualified-section {
    background: linear-gradient(180deg, var(--bp-surface-soft, #f8f9fa) 0%, var(--bp-surface, #ffffff) 100%);
}

.qualified-controls {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: var(--bp-fill-green, #28a745);
    color: white;
}

.btn-secondary:hover {
    background: var(--bp-fill-green, #218838);
    transform: translateY(-2px);
}

.qualified-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.qualified-country {
    background: var(--bp-surface, var(--bg-white));
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.qualified-country:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.qualified-country-header {
    padding: var(--spacing-md);
    text-align: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.qualified-country-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.qualified-players-list {
    padding: var(--spacing-sm);
}

.qualified-player {
    background: var(--bp-surface-soft, var(--bg-light));
    padding: 0.75rem var(--spacing-sm);
    margin-bottom: 0.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    transition: all var(--transition-fast);
    border-left: 4px solid transparent;
}

.qualified-player:hover {
    background: var(--bp-surface-soft, #e8eaf0);
    border-left-color: var(--bp-line-blue, var(--primary-light));
    padding-left: 1.25rem;
    transform: translateX(5px);
}

.player-rank-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 50px;
    flex-shrink: 0;
}

.player-rank {
    font-weight: 700;
    color: var(--bp-ink-blue, var(--primary-light));
    font-size: 1.125rem;
}

.player-rank-points {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    min-width: 50px;
    flex-shrink: 0;
}

.player-rank {
    font-weight: 700;
    color: var(--bp-ink-blue, var(--primary-light));
    font-size: 1.125rem;
}

.player-info {
    flex: 1;
    min-width: 0;
}

.player-name {
    font-weight: 600;
    color: var(--bp-text, var(--text-dark));
    font-size: 1rem;
    word-wrap: break-word;
}

.player-club {
    font-size: 0.85rem;
    color: var(--bp-muted, var(--text-light));
    font-style: italic;
    word-wrap: break-word;
}

.player-points {
    background: linear-gradient(135deg, var(--bp-fill-blue, var(--primary-light)) 0%, var(--bp-fill-blue, var(--primary-color)) 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.75rem;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    text-align: center;
}

.no-ranking-data {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--bp-muted, var(--text-light));
    font-style: italic;
    font-size: 1.125rem;
}

.qualified-footer {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--bp-muted, var(--text-light));
    font-size: 0.9rem;
    background: var(--bp-surface-soft, var(--bg-light));
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.qualified-footer p {
    margin: 0.25rem 0;
}

.qualified-footer em {
    color: var(--bp-ink-blue, var(--primary-color));
}

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

@media (max-width: 768px) {
    .qualified-grid {
        grid-template-columns: 1fr;
    }
    
    .qualified-country-header h3 {
        font-size: 1.25rem;
    }
    
    .player-name {
        font-size: 0.9rem;
    }
    
    .player-club {
        font-size: 0.8rem;
    }
}
