/* style/sports.css */

/* Base styles for the page content, ensuring text visibility on dark body background */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for the page content, contrasting with body #000000 */
    background-color: transparent; /* Allow body background to show through */
}

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

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

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

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

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

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

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

/* General Section Styles */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

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

/* Dark Background Section */
.page-sports__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than #000000 for sections */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-sports__feature-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-sports__feature-card:hover {
    transform: translateY(-10px);
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for feature titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* Categories Section */
.page-sports__categories-section {
    background-color: #000000; /* Use body background for this section */
    padding: 60px 0;
    color: #ffffff;
}

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

.page-sports__category-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-sports__category-card:hover {
    transform: translateY(-10px);
}

.page-sports__category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-sports__category-title {
    font-size: 1.4em;
    color: #26A9E0;
    padding: 15px 20px 5px;
    font-weight: bold;
}

.page-sports__category-title a {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-sports__category-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
}

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

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

.page-sports__live-betting-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__live-betting-info {
    flex: 1;
    max-width: 50%;
    color: #ffffff;
}

.page-sports__info-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: bold;
}

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

/* Promotions Section */
.page-sports__promotions-section {
    background-color: #000000;
    padding: 60px 0;
    color: #ffffff;
}

.page-sports__promotion-banner {
    width: 100%;
    border-radius: 10px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__promotion-details {
    margin-top: 40px;
    text-align: center;
}

.page-sports__details-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__details-text {
    font-size: 1.05em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-sports__mobile-app-content {
    display: flex;
    flex-direction: row-reverse; /* Image on right */
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__mobile-app-image {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__mobile-app-info {
    flex: 1;
    max-width: 50%;
    color: #ffffff;
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0; /* Brand color for question titles */
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-qtext {
    flex-grow: 1;
    color: #ffffff; /* Ensure question text is white */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-sports__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.03);
}

.page-sports__faq-answer ol {
    padding-left: 25px;
    margin-top: 10px;
}

.page-sports__faq-answer li {
    margin-bottom: 8px;
}

/* Style for details/summary to remove default marker */
.page-sports__faq-item summary {
    list-style: none;
}
.page-sports__faq-item summary::-webkit-details-marker {
    display: none;
}

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

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

/* Button Styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    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;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
    background-color: #1e87b7; /* Slightly darker on hover */
    border-color: #1e87b7;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__live-betting-content,
    .page-sports__mobile-app-content {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__live-betting-image,
    .page-sports__live-betting-info,
    .page-sports__mobile-app-image,
    .page-sports__mobile-app-info {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 60vh;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__section-description {
        font-size: 0.95em;
    }

    /* Mobile specific image, video, button adaptations */
    .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__hero-section,
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__live-betting-content,
    .page-sports__mobile-app-content,
    .page-sports__cta-buttons,
    .page-sports__hero-cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__video-section {
      padding-top: var(--header-offset, 120px) !important;
    }

    /* Buttons */
    .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; /* Make buttons full width on mobile */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add padding to button text */
        padding-right: 15px;
    }

    /* Button groups should stack or wrap */
    .page-sports__hero-cta-buttons,
    .page-sports__cta-buttons {
        flex-direction: column !important;
        gap: 15px;
    }

    /* Ensure images in cards/grids are responsive */
    .page-sports__category-image {
        height: auto; /* Allow height to adjust naturally */
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__feature-title,
    .page-sports__category-title,
    .page-sports__info-title,
    .page-sports__details-title {
        font-size: 1.3em;
    }
    .page-sports__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
}

/* Ensure no CSS filter changes image colors */
.page-sports img {
    filter: none; /* Explicitly remove any filters if they were inherited or accidentally applied */
}