/* style/sports.css */

/* --- General Page Styles --- */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

.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: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-sports__section-intro {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly lighter for readability on dark background */
}

.page-sports__center {
    text-align: center;
}

/* --- Color Contrast Classes (based on body bg #121212 dark) --- */
.page-sports__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter than body for sections */
    color: #ffffff;
    padding: 60px 0;
}

.page-sports__light-bg {
    background-color: #2a2a2a; /* Light background for sections, still dark */
    color: #ffffff;
    padding: 60px 0;
}

.page-sports__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

/* --- Hero Section --- */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure minimum height */
    padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

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

.page-sports__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.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: 1;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: #ffffff;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff; /* White text on dark overlay */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* --- Buttons --- */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    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, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #26A9E0; /* Brand primary color for text */
    border: 2px solid #26A9E0;
}

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

.page-sports__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

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

.page-sports__feature-item {
    text-align: center;
}

.page-sports__feature-icon {
    width: 100%; /* Full width for the image in the card */
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
}

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

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

/* --- Sports Categories Section --- */
.page-sports__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__category-card {
    text-align: center;
    padding: 0; /* Remove padding from card as image will take full width */
    overflow: hidden; /* Hide overflow for image border-radius */
}

.page-sports__category-image {
    width: 100%;
    height: 200px; /* Fixed height for category images */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-sports__category-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__category-title a {
    color: #26A9E0; /* Link color for category titles */
    text-decoration: none;
}

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

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

/* --- Live Betting Section --- */
.page-sports__live-betting-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__live-betting-text {
    flex: 1;
}

.page-sports__live-betting-image {
    flex: 1;
}

.page-sports__live-betting-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
    object-fit: cover;
}

.page-sports__live-betting-subtitle {
    font-size: 2em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-sports__live-betting-text p {
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-sports__live-betting-text ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-sports__live-betting-text li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #e0e0e0;
}

.page-sports__live-betting-text li::before {
    content: '✓';
    color: #26A9E0;
    position: absolute;
    left: 0;
    font-weight: bold;
}

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

.page-sports__promo-card {
    text-align: center;
    padding: 0; /* Remove padding from card as image will take full width */
    overflow: hidden;
}

.page-sports__promo-image {
    width: 100%;
    height: 250px; /* Fixed height for promo images */
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

.page-sports__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    padding: 0 15px;
}

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

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

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

.page-sports__cta-buttons {
    margin-top: 40px;
}

/* --- FAQ Section --- */
.page-sports__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 0; /* Override card padding for details/summary */
    border-radius: 8px;
}

.page-sports__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff; /* White text for questions */
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.page-sports__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-sports__faq-qtext {
    flex-grow: 1;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0; /* Brand color for toggle icon */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #e0e0e0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-sports__faq-answer p {
    margin: 0;
}

.page-sports__faq-answer a {
    color: #26A9E0;
    text-decoration: underline;
}

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

.page-sports__cta-section .page-sports__section-title {
    color: #ffffff;
    font-size: 2.8em;
}

.page-sports__cta-section .page-sports__section-intro {
    color: #f0f0f0;
    font-size: 1.2em;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__cta-section .page-sports__section-intro a {
    color: #ffffff;
    text-decoration: underline;
}

.page-sports__cta-section .page-sports__hero-buttons {
    margin-top: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__live-betting-content {
        flex-direction: column;
    }
    .page-sports__live-betting-image,
    .page-sports__live-betting-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Ensure header offset is applied to hero section on mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        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__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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-sports__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__section-intro {
        font-size: 0.95em;
    }
    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-sports__video,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .page-sports__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 10px 20px 15px;
    }

    /* Content area padding for mobile */
    .page-sports__container {
        padding: 0 15px;
    }
    .page-sports__dark-bg, .page-sports__light-bg {
        padding: 40px 0;
    }
    .page-sports__card {
        padding: 20px;
    }
    /* Mobile specific padding for video section */
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; 
    }
}

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

/* Ensure all images adhere to the minimum size and no filter rule */
.page-sports img {
    filter: none !important; /* Absolutely no CSS filters to change image colors */
}