:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --text-main-color: #333333;
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --border-color: #E0E0E0;
}

.page-sports {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for light background */
    background-color: var(--background-color);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--primary-color); /* Fallback color */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text contrast, without changing color */
}

.page-sports__hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    color: #ffffff; /* White text on primary color background */
    margin-top: -150px; /* Pull content slightly over image, but not covering it */
    background: linear-gradient(0deg, rgba(229, 57, 53, 0.9) 0%, rgba(229, 57, 53, 0.7) 50%, rgba(229, 57, 53, 0.0) 100%);
    padding-top: 150px; /* Compensate for negative margin */
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

.page-sports__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-sports__cta-buttons--center {
    margin-top: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #ffffff;
    border: none;
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background: var(--card-bg-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-sports__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-sports__btn-link {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
}

.page-sports__btn-link:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* General Sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-sports__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-sports__section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* About Section */
.page-sports__about-section {
    padding: 80px 0;
    background-color: var(--card-bg-color);
}

.page-sports__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__feature-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-icon {
    width: 200px; /* Ensuring min 200px */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforcing min-size for content images */
    min-height: 200px;
}

.page-sports__feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-sports__feature-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* Betting Options Section */
.page-sports__betting-options-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark background */
    color: #ffffff; /* White text */
}

.page-sports__betting-options-section .page-sports__section-title,
.page-sports__betting-options-section .page-sports__section-description {
    color: #ffffff;
}

.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.page-sports__sport-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__sport-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforcing min-size for content images */
    min-height: 200px;
}

.page-sports__sport-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.page-sports__sport-text {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* How to Start Section */
.page-sports__how-to-start-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__step-card {
    background-color: var(--card-bg-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    background-color: rgba(255, 90, 79, 0.1);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-sports__step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-sports__step-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* Strategies Section */
.page-sports__strategies-section {
    padding: 80px 0;
    background-color: var(--card-bg-color); /* Light background */
}

.page-sports__strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-sports__strategy-card {
    background-color: var(--background-color); /* Slightly different light background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-sports__strategy-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-sports__strategy-text {
    font-size: 1rem;
    line-height: 1.6;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-sports__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
}

.page-sports__faq-item {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    background-color: var(--card-bg-color);
    list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-sports__faq-question .page-sports__faq-toggle {
    font-size: 1.5rem;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
}

/* CTA Banner */
.page-sports__cta-banner {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background */
    color: #ffffff; /* White text */
    text-align: center;
}

.page-sports__cta-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-sports__cta-banner .page-sports__section-title,
.page-sports__cta-banner .page-sports__section-description {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__hero-section {
        padding-bottom: 40px;
    }

    .page-sports__hero-content {
        margin-top: -100px;
        padding-top: 100px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__main-title {
        font-size: 2rem;
    }

    .page-sports__subtitle {
        font-size: 1rem;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__section-title {
        font-size: 1.8rem;
    }

    .page-sports__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-sports__about-section,
    .page-sports__betting-options-section,
    .page-sports__how-to-start-section,
    .page-sports__strategies-section,
    .page-sports__faq-section,
    .page-sports__cta-banner {
        padding: 40px 0;
    }

    .page-sports__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__feature-card,
    .page-sports__sport-card,
    .page-sports__step-card,
    .page-sports__strategy-card {
        padding: 20px;
    }

    .page-sports__feature-icon {
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }

    .page-sports__sport-image {
        height: 200px;
        min-width: 200px;
        min-height: 200px;
    }

    /* Mobile image responsive override */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsive override - not used in this page but kept for robustness */
    .page-sports video,
    .page-sports__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    
    .page-sports__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* FAQ specific mobile styles */
    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-sports__faq-answer {
        padding: 0 15px 15px 15px;
    }
}