/* style/sports.css */

/* Base styles for the page-sports scope */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background is white */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-bottom: 60px; /* Add some padding at the bottom */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    max-width: 900px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Section Styles */
.page-sports__introduction-section,
.page-sports__bet-types-section,
.page-sports__sports-available-section,
.page-sports__betting-guide-section,
.page-sports__promotions-section,
.page-sports__benefits-section,
.page-sports__faq-section,
.page-sports__conclusion-section {
    padding: 80px 0;
}

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color */
}

.page-sports__section-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-sports__image-content {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Specific Section Backgrounds & Colors */
.page-sports__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

.page-sports__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-sports__text-white {
    color: #FFFFFF;
}

/* Lists */
.page-sports__list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-sports__guide-list {
    list-style: decimal;
    margin-left: 20px;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-sports__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* Buttons */
.page-sports__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.page-sports__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color */
    border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

/* Sports Grid */
.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__sport-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    transition: transform 0.3s ease;
    color: #333333; /* Ensure text is dark on light card background */
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
}

.page-sports__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-sports__card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__card-text {
    font-size: 1em;
    padding: 0 15px;
    text-align: justify;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #f9f9f9;
}

.page-sports__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #f0f0f0;
}

.page-sports__faq-question h3 {
    margin: 0;
    flex-grow: 1;
    color: #017439; /* FAQ question color */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Adjust padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust to prevent double padding */
}

.page-sports__faq-answer p {
    margin-bottom: 0;
}

/* Conclusion Section */
.page-sports__conclusion-section {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Fixed header offset for mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%; /* Ensure buttons take full width */
    }
    .page-sports__cta-button {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-sports__introduction-section,
    .page-sports__bet-types-section,
    .page-sports__sports-available-section,
    .page-sports__betting-guide-section,
    .page-sports__promotions-section,
    .page-sports__benefits-section,
.page-sports__faq-section,
    .page-sports__conclusion-section {
        padding: 50px 0;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-paragraph {
        font-size: 0.95em;
    }
    .page-sports__list-item {
        font-size: 0.95em;
    }

    .page-sports__sports-grid {
        grid-template-columns: 1fr; /* Single column for sports cards */
    }

    .page-sports__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    /* Ensure all images are responsive */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ specific mobile adjustments */
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px;
        padding-top: 0;
    }
}

/* Ensure no filter is used for images */
.page-sports img {
    filter: none !important; /* Absolute guarantee no filter is applied */
}

/* Contrast Fixes for specific elements if needed - example */
.page-sports__dark-section .page-sports__section-paragraph,
.page-sports__dark-section .page-sports__list-item {
  color: #FFFFFF; /* Ensure white text on dark background */
}