/* style/sports.css */

/* Base styles for the page content, ensuring contrast with dark body background */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text 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;
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #FFD700; /* Gold background */
    color: #121212; /* Dark text for gold background */
    border: 2px solid #FFD700;
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

.page-sports__btn-secondary:hover {
    background-color: #FFD700; /* Gold background on hover */
    color: #121212; /* Dark text for gold background */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #0d0d0d; /* Slightly darker than body for hero */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Make image subtle behind text */
}

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

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

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

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

/* Introduction Section */
.page-sports__introduction-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Darker background for contrast */
}

/* Game Types Section */
.page-sports__game-types-section {
    padding: 80px 0;
    background-color: #121212;
}

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

.page-sports__card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-sports__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__card-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-sports__card-text {
    font-size: 1em;
    margin-bottom: 20px;
}

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

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

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

.page-sports__promo-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-align: center;
}

.page-sports__promo-image {
    width: 100%;
    height: 281px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-sports__promo-card .page-sports__card-title {
    padding: 20px 20px 0;
    font-size: 1.6em;
}

.page-sports__promo-card .page-sports__promo-description {
    padding: 0 20px 20px;
    font-size: 1em;
}

.page-sports__promo-card .page-sports__btn-primary {
    margin-bottom: 20px;
}

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

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

.page-sports__video-link {
    display: block; /* Ensure the link covers the entire video area */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is above video */
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Why Choose Section */
.page-sports__why-choose-section {
    padding: 80px 0;
    background-color: #121212;
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-sports__feature-item {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

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

.page-sports__feature-description {
    font-size: 1em;
}

/* CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #8B0000; /* Deep red for CTA */
    color: #ffffff;
}

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

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

.page-sports__cta-buttons .page-sports__btn-primary {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
}

.page-sports__cta-buttons .page-sports__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border-color: #ffffff;
}
.page-sports__cta-buttons .page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #8B0000;
}


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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #2a2a2a;
    transition: background-color 0.3s ease;
}

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

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

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes a cross */
}

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

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

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

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

@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-sports__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top */
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
    }

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

    .page-sports__introduction-section,
    .page-sports__game-types-section,
    .page-sports__live-betting-section,
    .page-sports__promotions-section,
    .page-sports__video-section,
    .page-sports__why-choose-section,
    .page-sports__cta-section,
    .page-sports__faq-section {
        padding: 60px 0;
    }

    .page-sports__grid-3-cols,
    .page-sports__grid-2-cols,
    .page-sports__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Images */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__card,
    .page-sports__promo-card,
    .page-sports__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__promo-image {
        height: auto; /* Allow height to adjust for smaller screens */
    }

    /* Videos */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
    }
    .page-sports__faq-title {
        font-size: 1.1em;
    }
    .page-sports__faq-toggle {
        font-size: 1.3em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px;
    }
}

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

/* Ensure content images are not shrunk by CSS to less than 200px */
.page-sports img:not(.page-sports__hero-image) {
    min-width: 200px;
    min-height: 200px;
}
/* Specific overrides for card images to ensure they adhere to min size */
.page-sports__card-image, .page-sports__promo-image {
    min-width: 200px;
    min-height: 200px;
}