/* style/sports.css */

/* Base styles for the page-sports container */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #26A9E0; /* Brand primary color for hero background */
    color: #ffffff;
    overflow: hidden;
    text-align: center;
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make image subtle under text */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

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

/* General Section Styles */
.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0; /* Brand primary color for titles on light backgrounds */
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

/* Color contrast classes */
.page-sports__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

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

.page-sports__light-bg .page-sports__section-title {
    color: #26A9E0;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid transparent;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
    border-color: #ffffff;
}

/* Intro Section */
.page-sports__intro-section .page-sports__text-block {
    color: #333333; /* Dark text on light background */
}

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

/* Popular Sports Section */
.page-sports__popular-sports .page-sports__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-sports__popular-sports .page-sports__text-block {
    color: #f0f0f0;
    text-align: center;
}

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

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-sports__sport-card .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__sport-card .page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-sports__sport-card .page-sports__card-description {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__sport-card .page-sports__card-button {
    margin-top: auto; /* Push button to bottom */
    background-color: #EA7C07;
    color: #ffffff;
    border: none;
}

.page-sports__sport-card .page-sports__card-button:hover {
    background-color: #cc6a00;
}


/* Live Betting Section */
.page-sports__live-betting .page-sports__section-title {
    color: #26A9E0;
}

.page-sports__live-betting-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-sports__live-betting-content .page-sports__text-block {
    flex: 1;
    color: #333333;
}

.page-sports__video-wrapper {
    flex: 1;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}


/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__promotions-section .page-sports__text-block {
    color: #f0f0f0;
    text-align: center;
}

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

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
}

.page-sports__promo-card .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__promo-card .page-sports__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-sports__promo-card .page-sports__card-description {
    font-size: 0.95em;
    color: #e0e0e0;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__card-button {
    margin-top: auto;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.page-sports__promo-card .page-sports__card-button:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-sports__view-all-button {
    margin-top: 50px;
    background-color: #EA7C07;
    color: #ffffff;
    border: none;
}

.page-sports__view-all-button:hover {
    background-color: #cc6a00;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
    color: #26A9E0;
}

.page-sports__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #26A9E0;
}

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

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

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

.page-sports__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: #555555;
}


/* CTA Section */
.page-sports__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}

.page-sports__cta-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__cta-section .page-sports__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

.page-sports__cta-button {
    background-color: #EA7C07; /* Login color for CTA button */
    color: #ffffff;
    border: none;
    font-size: 1.2em;
    padding: 18px 40px;
}

.page-sports__cta-button:hover {
    background-color: #cc6a00;
}

/* 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;
    }
    .page-sports__live-betting-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 450px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .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;
        padding-right: 15px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__text-block {
        font-size: 1em;
    }
    .page-sports__container {
        padding: 20px 15px;
    }
    .page-sports__sports-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__sport-card .page-sports__card-image,
    .page-sports__promo-card .page-sports__card-image {
        height: auto; /* Allow height to adjust */
    }

    /* Mobile image and video responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Specific adjustment for live betting content on mobile */
    .page-sports__live-betting-content {
        gap: 20px;
    }
    .page-sports__video-wrapper {
        padding-bottom: 56.25%; /* Maintain aspect ratio */
        height: 0;
        overflow: hidden;
    }
    .page-sports__faq-question,
    .page-sports__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}