/* style/sports.css */

/* Base styles for the page */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
}

.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-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Button styles */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

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

.page-sports__dark-bg {
    background-color: #26A9E0; /* Brand color as dark background */
    color: #ffffff; /* White text for contrast */
}

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

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

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff; /* White text on dark hero */
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0; /* Slightly off-white for description */
}

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 40px auto;
    border-radius: 10px;
}

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

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

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
}

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

.page-sports__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333333;
    transition: transform 0.3s ease;
}

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

.page-sports__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-sports__feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    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;
}

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

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

.page-sports__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
}

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

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

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

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

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

.page-sports__live-betting-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin: 40px auto;
    display: block;
}

.page-sports__live-betting-cta {
    margin-top: 40px;
}

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

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

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

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

.page-sports__promotion-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-sports__promotion-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
}

.page-sports__promotion-title a.page-sports__link-title {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-sports__promotions-cta {
    margin-top: 50px;
    text-align: center;
}

/* 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(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    color: #333333;
}

.page-sports__step-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

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

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

.page-sports__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #f8f8f8;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

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

.page-sports__faq-answer {
    padding: 15px 25px 25px;
    font-size: 1em;
    color: #555555;
    border-top: 1px solid #eee;
}

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

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

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

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

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

    .page-sports__hero-buttons,
    .page-sports__cta-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__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-sports__video-section,
    .page-sports__features-section,
    .page-sports__categories-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__how-to-start-section,
    .page-sports__faq-section,
    .page-sports__cta-section {
        padding: 50px 0;
    }

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

    /* Images responsiveness */
    .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;
    }

    /* Video responsiveness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-sports__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-sports__faq-answer {
        padding: 10px 20px 20px;
    }
}

/* Ensure images meet minimum size requirements for content areas */
/* This is a general rule for content images, not icons */
.page-sports__feature-icon,
.page-sports__category-image,
.page-sports__live-betting-image,
.page-sports__promotion-image {
    min-width: 200px;
    min-height: 200px;
    /* object-fit: cover; is already set */
}

/* No CSS filter on images */
.page-sports img {
    filter: none;
}