/* style/sports.css */

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

/* --- Hero Section --- */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-sports__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF; /* Ensure high contrast */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0; /* Slightly off-white for readability */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

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

/* --- General Section Styles --- */
.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Primary brand color for titles */
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333; /* Dark text for light backgrounds */
}

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

.page-sports__dark-bg {
    background-color: #017439; /* Primary brand color as dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-sports__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text for light background */
}

.page-sports__text-contrast-fix {
    color: #ffffff; /* Ensures text is white on dark backgrounds */
}

/* --- 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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure buttons don't exceed container width */
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #017439; /* Primary brand color for text */
    border: 2px solid #017439;
}

.page-sports__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #017439;
    border: 1px solid #017439;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-sports__btn-link:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__btn-primary--large,
.page-sports__btn-secondary--large {
    padding: 18px 40px;
    font-size: 1.1em;
}

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

.page-sports__cta-buttons--centered {
    text-align: center;
}

/* --- About Section --- */
.page-sports__about-section {
    padding: 80px 0;
}

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

.page-sports__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
}

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

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

/* --- Categories Section --- */
.page-sports__categories-section {
    padding: 80px 0;
}

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

.page-sports__category-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards are of similar height */
}

.page-sports__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

.page-sports__card-title a.page-sports__card-link {
    color: #017439;
    text-decoration: none;
}

.page-sports__card-title a.page-sports__card-link:hover {
    text-decoration: underline;
}

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

/* --- Live Betting Section --- */
.page-sports__live-betting-section {
    padding: 80px 0;
}

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

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

.page-sports__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-sports__list-item {
    background: url('/path/to/check-icon.svg') no-repeat left center; /* Placeholder for icon */
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    color: #333333;
    font-size: 1em;
}

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

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

.page-sports__promotion-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 450px;
}

.page-sports__promotion-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

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

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

.page-sports__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__step-icon {
    width: 60px;
    height: 60px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-sports__step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* --- Mobile App Section --- */
.page-sports__mobile-app-section {
    padding: 80px 0;
}

.page-sports__mobile-app-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-direction: row-reverse; /* Image on right, text on left for desktop */
}

/* --- FAQ Section --- */
.page-sports__faq-section {
    padding: 80px 0;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    color: #017439;
}

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

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

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

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

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

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value, !important for override */
    padding: 20px;
}

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

/* --- CTA Section --- */
.page-sports__cta-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-sports__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    /* General adjustments */
    .page-sports__hero-section {
        height: auto; /* Allow height to adjust */
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 15px 10px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Flex sections to stack vertically */
    .page-sports__live-betting-content,
    .page-sports__mobile-app-content {
        flex-direction: column;
    }

    /* Image responsive handling */
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-sports__cta-title {
        font-size: 2em;
    }
    .page-sports__cta-description {
        font-size: 1em;
    }

    /* FAQ specific mobile styles */
    .page-sports__faq-question {
        padding: 15px;
    }
    .page-sports__faq-title {
        font-size: 1em;
    }
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }

    .page-sports__list-item {
        font-size: 0.9em;
    }

    .page-sports__feature-item,
    .page-sports__category-card,
    .page-sports__promotion-card,
    .page-sports__step-item {
        min-height: unset; /* Remove fixed height on mobile */
    }
}

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