/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: var(--secondary-color, #1A202C); /* Ensure dark background */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Header offset for main content or hero section */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* General container for content sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

/* Subtitles */
.page-sports__sub-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

/* Text blocks (paragraphs) */
.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-color: #1A202C; /* Dark background for hero */
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding: 60px 20px;
    box-sizing: border-box;
}

.page-sports__hero-content {
    max-width: 600px;
    text-align: center;
    z-index: 1;
    position: relative;
}

.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__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* Buttons */
.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: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-sports__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #1A202C; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

.page-sports__btn-primary:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A202C;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-sports__btn-link:hover {
    color: #e6c200;
}

/* Section specific styles */
.page-sports__introduction-section,
.page-sports__types-section,
.page-sports__promotions-section,
.page-sports__responsible-gaming-section,
.page-sports__cta-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for light background */
}

.page-sports__dark-bg {
    background-color: #1A202C;
    color: #ffffff;
}

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

/* Video Section */
.page-sports__video-section {
    background-color: #1A202C;
    padding: 60px 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-sports__video-cta {
    margin-top: 30px;
}

/* Grid for types/features/promotions */
.page-sports__grid,
.page-sports__features-grid,
.page-sports__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* Card styles */
.page-sports__card {
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

.page-sports__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__card-title {
    font-size: 1.4em;
    color: #1A202C; /* Dark text for card titles */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-sports__card-link {
    text-decoration: none;
    color: #1A202C;
}

.page-sports__card-link:hover {
    color: #FFD700;
}

.page-sports__card-description {
    font-size: 0.95em;
    color: #555555;
}

/* Feature items */
.page-sports__feature-item {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for features on dark section */
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
}

.page-sports__feature-icon {
    width: 200px; /* Ensure images meet minimum size */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

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

.page-sports__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__cta-buttons--center {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Getting Started Steps */
.page-sports__step-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #FFD700;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    color: #ffffff;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-sports__image-text-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.page-sports__image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure min width for image wrapper */
}

.page-sports__responsive-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__text-content {
    flex: 1;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #1A202C;
    color: #ffffff;
    padding: 60px 20px;
}

.page-sports__faq-list {
    margin-top: 30px;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700;
}

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

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

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

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

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

/* Call to Action Section */
.page-sports__cta-section {
    background-color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    color: #333333;
}

.page-sports__cta-content {
    max-width: 800px;
}

/* General image responsiveness */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-sports__hero-section {
        flex-direction: column;
        text-align: center;
    }

    .page-sports__hero-content {
        max-width: 90%;
    }

    .page-sports__hero-title {
        font-size: 2.8em;
    }

    .page-sports__image-text-layout {
        flex-direction: column;
    }
}

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

    /* Enforce mobile responsiveness for all images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Enforce mobile responsiveness for all video */
    .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;
    }
    /* Specific padding-top for video section on mobile for header offset */
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    /* Enforce mobile responsiveness for all buttons */
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link,
    .page-sports a[class*="button"],
    .page-sports a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some horizontal padding */
        padding-right: 15px;
    }

    /* Button groups on mobile */
    .page-sports__hero-buttons,
    .page-sports__cta-buttons,
    .page-sports__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add some horizontal padding */
        padding-right: 15px;
    }

    .page-sports__section-title {
        font-size: 2em;
    }

    .page-sports__hero-title {
        font-size: 2.2em;
    }

    .page-sports__hero-description {
        font-size: 1.1em;
    }

    .page-sports__container {
        padding: 20px 15px;
    }

    .page-sports__card-image {
        height: auto; /* Allow auto height for responsive card images */
    }

    .page-sports__card,
    .page-sports__feature-item,
    .page-sports__step-item,
    .page-sports__faq-item {
        padding: 15px;
    }

    .page-sports__faq-question {
        padding: 10px 15px;
    }

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

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
}