/* style/sports.css */

/* Base styles for the page, ensuring text color contrast with dark body background */
.page-sports {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background from 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: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-sports__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #CC3333; /* Red underline */
    border-radius: 2px;
}

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

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Slightly off-white for body text */
}

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

.page-sports__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-sports__list li {
    margin-bottom: 10px;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

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

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

.page-sports__hero-title {
    font-size: 3.8em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

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

/* Buttons */
.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: #FFD700;
    color: #CC3333;
}

/* Intro Section */
.page-sports__intro-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background for this section */
    color: #f0f0f0;
}

.page-sports__dark-section {
    background-color: #1a1a1a;
    color: #f0f0f0;
}

/* Categories Section */
.page-sports__categories-section {
    padding: 80px 0;
    background-color: #222222; /* Slightly lighter dark background */
}

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

.page-sports__category-card {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    padding-bottom: 20px; /* Space for text */
    display: flex;
    flex-direction: column;
}

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

.page-sports__category-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #CC3333;
}

.page-sports__category-title {
    font-size: 1.5em;
    color: #FFD700;
    margin: 20px 15px 10px;
}

.page-sports__category-description {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px;
    flex-grow: 1; /* Make description take available space */
}

/* Odds Section */
.page-sports__odds-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-sports__odds-display {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__odds-image {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    display: block;
}

.page-sports__odds-info {
    flex: 2;
    min-width: 300px;
}

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

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

.page-sports__promotion-card {
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
}

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

.page-sports__promotion-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    border-bottom: 3px solid #FFD700;
}

.page-sports__promotion-title {
    font-size: 1.6em;
    color: #FFD700;
    margin: 20px 15px 10px;
}

.page-sports__promotion-description {
    font-size: 1em;
    color: #cccccc;
    padding: 0 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

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


/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

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

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

.page-sports__feature-description {
    font-size: 1em;
    color: #cccccc;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__feature-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #CC3333; /* Main brand color for question background */
    color: #ffffff;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    margin: 0;
    color: #ffffff;
    font-size: 1.2em; /* Ensure title size consistency */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg);
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #444444; /* Darker background for answer */
    color: #e0e0e0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Important for override */
    padding: 20px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 5px; /* Adjust as needed */
    color: #e0e0e0;
}


/* CTA Section */
.page-sports__cta-section {
    padding: 80px 0;
    background-color: #CC3333; /* Main brand color for CTA */
    text-align: center;
    color: #ffffff;
}

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

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

/* Global Image and Video responsive styles (important for mobile) */
.page-sports img,
.page-sports video {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}

.page-sports__video-wrapper iframe,
.page-sports__video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


/* Responsive Adjustments */
@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__odds-display {
        flex-direction: column;
    }
    .page-sports__odds-image,
    .page-sports__odds-info {
        min-width: unset;
        width: 100%;
    }
}

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

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

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

    .page-sports__categories-grid,
    .page-sports__promotion-grid,
    .page-sports__features-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__section-title {
        font-size: 1.8em;
    }

    .page-sports__sub-title {
        font-size: 1.5em;
    }

    .page-sports__category-image,
    .page-sports__promotion-image {
        height: 180px;
    }

    /* Mobile image and video responsive rules */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports video {
        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; /* Prevent horizontal scroll */
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 15px 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px !important;
    }
}

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