/* =====================
   COLOR PALETTE & VARIABLES
   ===================== */
:root {
    --primary-color: #1e3a5f;    /* Deep blue/navy */
    --primary-color-rgb: 30, 58, 95;    /* RGB values for primary color */
    --secondary-color: #3b82f6;   /* Bright blue accent */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --gray-light: #f9fafb;
    --gray-medium: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --footer-dark: #0f1e30;
}

/* =====================
   RESET & BASE STYLES
   ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    /* Subtle linen texture */
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,.02) 35px, rgba(255,255,255,.02) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,.02) 35px, rgba(0,0,0,.02) 70px);
}

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

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary-color); }

section h2 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
  position: relative;
  font-weight: 700;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: #1E3A8A;
  margin-top: 8px;
  border-radius: 4px;
}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

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

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    color: var(--text-dark);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* =====================
   NAVIGATION - STICKY
   ===================== */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 1rem 0;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: opacity 0.3s ease;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
}


.bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* =====================
   HERO SECTION - CHESS BOARD
   ===================== */
.hero {
    background: url('moso-hero.jpg') center center/cover;
    position: relative;
    color: #fff;
    padding: 5.4rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 450px;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: brightness(0.75);
}

.hero-title,
.hero-subtitle,
.next-tournament,
.hero-buttons {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 3px 6px rgba(0,0,0,0.7);
    color: #ffffff;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
    color: #ffffff;
    font-weight: 500;
}

/* Tournament Badge */
.tournament-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.badge-icon {
    font-size: 1.2rem;
}

/* Quick Facts Section */
.quick-facts {
    padding: 3rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-medium);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.fact-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.fact-item div {
    text-align: left;
}

.fact-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.fact-item span {
    color: var(--text-dark);
    font-size: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* =====================
   BUTTONS - IMPROVED
   ===================== */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 600;
    text-align: center;
    border-radius: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    background-color: #152d4a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: none;
    box-shadow: none;
    text-transform: none;
    padding: 0.5rem 0;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: gap 0.3s ease;
}

.btn-secondary::after {
    content: "→";
    font-size: 1.2rem;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #ffffff;
    transform: none;
    box-shadow: none;
    opacity: 1;
    gap: 0.8rem;
}

/* =====================
   NEWS BOX
   ===================== */
.news-box {
    background-color: var(--white);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow-sm);
}

.news-box h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* =====================
   SECTIONS
   ===================== */
section {
    padding: 4rem 0;
}

.about {
    background-color: #F8FAFC;
    padding: 5rem 0;
}

.training {
    background-color: var(--white);
}

.contact {
    background-color: #F8FAFC;
}

/* =====================
   CHILDREN TRAINING SECTION
   ===================== */
.children-training {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: 5rem 0;
}

/* Section Header with Segmented Control */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    margin-bottom: 0;
}

/* iOS-style Segmented Control */
.segmented-control {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.segment {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--text-dark);
    min-width: 80px;
}

.segment.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Give Æfingar subtle priority */
.segment[data-tab="aefingar"] {
    font-weight: 700;
}

.segment[data-tab="aefingar"].active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.segment[data-tab="skakmot"].active {
    background: rgba(30, 58, 95, 0.85);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.segment:not(.active):hover {
    background: rgba(30, 58, 95, 0.1);
}

/* Tab Content */
.tab-content {
    display: none;
    min-height: 500px; /* Increased to prevent jumping when switching */
}

.tab-content.active {
    display: block;
}

.section-intro {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.training-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    min-height: 180px; /* Ensure consistent container height */
}

.time-slot {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 140px; /* Increased to ensure consistent height */
    box-sizing: border-box; /* Ensure consistent border calculations */
}

.time-slot:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.time-icon {
    font-size: 3rem;
    line-height: 1;
}

.time-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.time-info p {
    margin: 0;
    color: var(--text-dark);
}

.training-cta {
    text-align: center;
    margin-top: 3rem;
}

.training-cta p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.training-cta a {
    text-decoration: none;
}

/* Tournament Content - Lighter and more compact */
.tournament-info {
    max-width: 600px;
    margin: 0 auto;
}

.next-tournament-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 1.5rem;
}

.next-tournament-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tournament-date {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.tournament-location {
    font-size: 0.95rem;
    color: var(--text-light);
}

.tournament-details {
    text-align: center;
    margin-bottom: 2rem;
}

.tournament-details p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.frequency {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.9rem !important;
}

/* Tournament content - EXACT same styling as training */
.tournament-slot {
    /* Remove all custom styling to match .time-slot exactly */
}

.tournament-cta-section {
    margin-top: 3rem;
}

.tournament-cta {
    text-align: center;
}

/* =====================
   COACHES SECTION
   ===================== */
.coaches {
    background-color: var(--white);
    padding: 5rem 0;
}

.coaches-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.coaches-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.coaches-image {
    text-align: center;
}

.coaches-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coaches-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* =====================
   CONTACT SECTION
   ===================== */
.contact {
    background-color: #F8FAFC;
    padding: 6rem 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-intro {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.contact-response {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

.contact-icon {
    font-size: 2.5rem;
}

.email-link {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    opacity: 0.8;
}

.response-note {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* =====================
   OVERVIEW SECTION
   ===================== */
.overview {
    padding: 5rem 0;
    background: var(--white);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.overview-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--gray-medium);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.overview-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.overview-card p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 2rem;
}

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

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

/* =====================
   PAGE HEADER
   ===================== */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #2563eb);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin: 0;
    color: var(--white) !important;
}

/* =====================
   TRAINING SCHEDULE
   ===================== */
.training-schedule {
    padding: 5rem 0;
    background: var(--white);
}

.training-schedule h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* =====================
   LOCATION DETAILS
   ===================== */
.location-details {
    padding: 5rem 0;
    background: var(--gray-light);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* =====================
   WHAT TO EXPECT
   ===================== */
.what-to-expect {
    padding: 5rem 0;
    background: var(--white);
}

.what-to-expect h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.expectations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.expectation {
    padding: 1.5rem;
    text-align: center;
}

.expectation h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* =====================
   TOURNAMENT SECTIONS
   ===================== */
.upcoming-tournament {
    padding: 5rem 0;
    background: var(--gray-light);
}

.tournament-highlight {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--white);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.tournament-date {
    text-align: center;
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 1rem;
    min-width: 120px;
}

.date-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.tournament-info h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    text-align: center;
}

.tournament-details p {
    margin: 0.5rem 0;
    color: var(--text-dark);
}

.tournament-info .btn {
    display: block;
    margin: 2rem auto 0;
    text-align: center;
    width: fit-content;
}

.tournament-info-section {
    padding: 5rem 0;
    background: var(--white);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--gray-light);
    padding: 2.5rem;
    border-radius: 1rem;
    text-align: center;
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card ul {
    list-style: none;
    text-align: left;
}

.info-card li {
    padding: 0.5rem 0;
    color: var(--text-dark);
}

/* =====================
   TOURNAMENT FORMAT
   ===================== */
.tournament-format {
    padding: 5rem 0;
    background: var(--gray-light);
}

.format-details {
    margin-top: 3rem;
}

.format-section {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.format-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* =====================
   PAST EVENTS
   ===================== */
.past-events {
    padding: 5rem 0;
    background: var(--white);
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.event-card {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
}

.event-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.event-date {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* =====================
   REGISTRATION CTA
   ===================== */
.registration-cta {
    padding: 5rem 0;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    color: var(--white);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
}

.cta-buttons .btn-primary:hover {
    background: var(--gray-light);
}

.cta-buttons .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* =====================
   ACTIVE NAV LINK
   ===================== */
.nav-link.active {
    color: var(--secondary-color);
    font-weight: 600;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 768px) {
    .tournament-highlight {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .overview-grid,
    .details-grid,
    .expectations-grid,
    .info-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* =====================
   TRAINING SECTION - SIMPLIFIED
   ===================== */
/* Other activities styling */
.other-activities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.activity-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    border: 1px solid var(--gray-medium);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

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

.activity-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.activity-card p {
    margin-bottom: 0.5rem;
}

.activity-card p:last-child {
    margin-bottom: 0;
    color: var(--text-light);
}

.training-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.simple-card {
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    border: 1px solid var(--gray-medium);
}

.simple-card strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.schedule-simple {
    list-style: none;
    background-color: var(--gray-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin-top: 2rem;
    border: 1px solid var(--gray-medium);
}

.schedule-simple li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 1rem;
}

/* =====================
   CONTACT SECTION - SIMPLIFIED
   ===================== */
.contact-simple {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
}

.contact-simple .contact-info {
    padding: 2rem;
    background-color: var(--white);
    border-radius: 0.75rem;
    border: 1px solid var(--gray-medium);
}

.contact-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

/* Goals list */
.goals {
    margin-top: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #E5E7EB;
}

.goals ul {
    list-style: none;
    color: var(--text-dark);
}

.goals li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.goals ul li::before {
    content: "◉ ";
    color: #1E3A8A;
}

/* =====================
   INFO CARD
   ===================== */
.info-card {
    background-color: var(--white);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-sm);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-medium);
}

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

/* =====================
   TRAINING CARDS
   ===================== */
.training-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.training-card {
    background-color: var(--gray-light);
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.training-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.time {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

.highlight-note {
    background-color: var(--gray-light);
    color: var(--text-dark);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 1px solid var(--gray-medium);
}

/* =====================
   SCHEDULE TABLE
   ===================== */
.schedule-table {
    width: 100%;
    background-color: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-top: 2rem;
}

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

.schedule-table th,
.schedule-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-medium);
}

.schedule-table th {
    background-color: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
}

.schedule-table td {
    color: var(--text-dark);
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background-color: var(--gray-light);
}

.schedule-time {
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.schedule-activity {
    font-weight: 600;
}

.schedule-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

/* =====================
   CONTACT FORM
   ===================== */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-form {
    background-color: var(--gray-light);
    padding: 2rem;
    border-radius: 0.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--gray-medium);
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.contact-info {
    padding: 2rem;
}

.info-item {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: #152d4a;
    transform: translateY(-2px);
    opacity: 1;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.success-message {
    background-color: var(--gray-light);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    text-align: center;
    font-weight: 600;
    border: 2px solid var(--primary-color);
}

/* =====================
   FOOTER - FULL WIDTH
   ===================== */
footer {
    background-color: var(--footer-dark);
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: var(--white);
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links .social-link {
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer-links .social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

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

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

section {
    opacity: 0;
    transition: opacity 0.6s ease;
}

section.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Active navigation link */
.nav-link.active {
    color: var(--primary-color);
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* =====================
   RESPONSIVE DESIGN
   ===================== */
@media (max-width: 768px) {
    /* Reduced padding on mobile */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    /* Navigation - Mobile improvements */
    .navbar {
        position: relative;
        z-index: 1000;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-logo a {
        font-size: 1.2rem;
        line-height: 1.2;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        left: 0;
        top: 70px;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        border-top: 1px solid var(--gray-medium);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        padding: 1.5rem 20px;
        gap: 0;
        margin: 0;
    }
    
    .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-light);
        display: block;
        color: var(--text-dark);
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        color: var(--primary-color);
    }
    
    .nav-link.active {
        color: var(--primary-color);
        font-weight: 600;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Header adjustments for mobile */
    header {
        position: sticky;
        top: 0;
        background: var(--white);
        border-bottom: 1px solid var(--gray-light);
    }
    
    /* Hero adjustments */
    .hero {
        padding: 3rem 0 2rem;
        min-height: 400px;
        background-position: center 20%; /* Better focal point on mobile */
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .tournament-badge {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .badge-icon {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    /* Section header responsive */
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-bottom: 1.5rem;
    }
    
    .section-header h2 {
        text-align: left;
        width: 100%;
    }
    
    .segmented-control {
        align-self: stretch;
        justify-content: center;
        order: -1; /* Toggle stays above heading on mobile */
    }
    
    .segment {
        flex: 1;
        text-align: center;
    }
    
    /* Ensure cards stack properly on mobile */
    .training-times {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Keep CTA visible without excessive scrolling */
    .training-cta, .tournament-cta-section {
        margin-top: 2rem;
    }
    
    /* Coaches responsive */
    .coaches-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .coaches-image {
        order: -1; /* Image on top on mobile */
    }
    
    /* Contact responsive */
    .contact-info {
        padding: 2rem 1.5rem;
    }
    
    .email-contact {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .email-link {
        font-size: 1.1rem;
    }

    /* Training cards */
    .training-groups {
        grid-template-columns: 1fr;
    }
    
    .training-card {
        padding: 1.5rem;
    }

    /* Schedule table responsive */
    .schedule-table {
        overflow-x: auto;
    }
    
    .schedule-table table {
        min-width: 500px;
    }

    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    
    /* Reduced margins */
    h1, h2, h3, h4 {
        margin-bottom: 0.75rem;
    }
    
    p {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    /* Even more reduced padding */
    .container {
        padding: 0 10px;
    }

    section {
        padding: 2rem 0;
    }
    
    .hero {
        padding: 1.8rem 0;
    }
    
    /* Smaller form padding */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.5rem;
    }
}