/* style/sports.css */

/* Base styles for the page content, ensuring text color contrast against dark body background */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared.css, which is #000 */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px 40px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    overflow: hidden;
}

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

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text readability */
    border-radius: 10px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.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;
    box-sizing: border-box; /* Ensure padding doesn't make button overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-sports__cta-button--primary {
    background-color: #FFD700; /* Gold primary button */
    color: #000000; /* Black text for gold button */
    border: 2px solid #FFD700;
}

.page-sports__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-sports__cta-button--secondary {
    background-color: #1E90FF; /* Blue secondary button */
    color: #ffffff; /* White text for blue button */
    border: 2px solid #1E90FF;
    margin-left: 20px;
}

.page-sports__cta-button--secondary:hover {
    background-color: #1a7ae6;
    transform: translateY(-3px);
}

/* Video Section */
.page-sports__video-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 10px;
    margin-top: 30px;
}

.page-sports__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Why Choose Section */
.page-sports__why-choose-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #ffffff;
}

.page-sports__why-choose-section .page-sports__section-title,
.page-sports__why-choose-section .page-sports__section-description {
    color: #FFD700;
}

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

.page-sports__feature-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent card background */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-text {
    font-size: 1em;
    color: #e0e0e0;
}

.page-sports__main-image {
    display: block;
    margin: 50px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.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.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__sport-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-sports__sport-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.page-sports__sport-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__sport-title a:hover {
    color: #1E90FF; /* Blue on hover */
}

.page-sports__sport-text {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px 20px;
}

/* Betting Guide Section */
.page-sports__betting-guide-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-sports__betting-guide-section .page-sports__section-title,
.page-sports__betting-guide-section .page-sports__section-description {
    color: #FFD700;
}

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

.page-sports__guide-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    position: relative;
    padding-top: 60px; /* Space for step number */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__guide-step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background-color: #FFD700;
    color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-sports__guide-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__guide-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

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

.page-sports__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__promotion-image {
    width: 100%;
    height: 250px; /* Consistent image height */
    object-fit: cover;
    display: block;
}

.page-sports__promotion-title {
    font-size: 1.4em;
    color: #FFD700;
    margin: 15px 0 10px;
    padding: 0 15px;
}

.page-sports__promotion-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__promotion-title a:hover {
    color: #1E90FF;
}

.page-sports__promotion-text {
    font-size: 0.95em;
    color: #e0e0e0;
    padding: 0 15px 20px;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-sports__faq-section .page-sports__section-title {
    color: #FFD700;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-sports__faq-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

.page-sports__faq-toggle {
    font-size: 1.8em;
    color: #FFD700;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px;
}

.page-sports__faq-text {
    color: #e0e0e0;
    font-size: 1em;
    margin: 0;
}

/* Final CTA Section */
.page-sports__final-cta-section {
    padding: 80px 0;
    background-color: #0d0d0d;
    text-align: center;
}

.page-sports__final-cta-section .page-sports__section-title {
    color: #FFD700;
}

.page-sports__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

@media (max-width: 768px) {
    /* General mobile adaptations for content containers */
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__video-section,
    .page-sports__why-choose-section,
    .page-sports__popular-sports-section,
    .page-sports__betting-guide-section,
    .page-sports__promotions-section,
    .page-sports__faq-section,
    .page-sports__final-cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Hero Section */
    .page-sports__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-button {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
    }
    .page-sports__cta-button--secondary {
        margin-top: 0; /* Adjust for stacked buttons */
    }
    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__sport-image,
    .page-sports__promotion-image {
        height: auto !important; /* Let height adjust naturally */
    }

    /* Video responsiveness */
    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important; /* Ensure wrapper height adjusts */
        overflow: hidden !important;
    }
    .page-sports__video {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
    }

    /* Section titles and descriptions */
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
    }
}