.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF);
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-sports__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 120px 0 60px; /* Adjusted padding-top to account for header-offset */
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.page-sports__hero-section .page-sports__container {
    position: relative;
    z-index: 2;
    padding-top: var(--header-offset, 120px); /* Ensure content is below header if body doesn't handle it */
}

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

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-sports__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary,
.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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;
    text-align: center;
}

.page-sports__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

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

/* General Section Styling */
.page-sports__why-choose-section,
.page-sports__video-section,
.page-sports__categories-section,
.page-sports__promotions-section,
.page-sports__guide-section,
.page-sports__tips-section,
.page-sports__faq-section,
.page-sports__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: inherit; /* Inherit from section background */
}

.page-sports__section-description {
    font-size: 1.1em;
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: inherit;
}

/* Features Grid */
.page-sports__features-grid,
.page-sports__categories-grid,
.page-sports__promos-grid,
.page-sports__steps-grid,
.page-sports__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

.page-sports__feature-icon,
.page-sports__category-image,
.page-sports__promo-image {
    width: 100%; /* Ensure images fill card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-sports__feature-title,
.page-sports__category-title,
.page-sports__promo-title,
.page-sports__step-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-sports__feature-text,
.page-sports__category-text,
.page-sports__promo-text,
.page-sports__step-text {
    font-size: 1em;
    color: #555555;
}

/* Video Section */
.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto 0;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

.page-sports__video-link {
    display: block;
}

.page-sports__video-link:hover .page-sports__video {
    opacity: 0.9;
}

/* Promotions Section */
.page-sports__btn-tertiary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-top: 20px;
}

.page-sports__btn-tertiary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
}

/* Guide Section */
.page-sports__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-top: 20px;
    padding: 10px 20px;
}

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

/* Tips Section */
.page-sports__tip-item {
    background-color: #2093c9; /* Slightly darker brand color for contrast */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    color: #ffffff;
}

.page-sports__tip-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
}

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

.page-sports__responsible-gaming-text {
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-sports__support-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-sports__support-links .page-sports__btn-link {
    border-color: #ffffff;
    color: #ffffff;
}

.page-sports__support-links .page-sports__btn-link:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

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

.page-sports__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

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

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

.page-sports__faq-title {
    margin: 0;
    color: inherit;
}

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

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

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

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px;
}

.page-sports__faq-answer p {
    margin-bottom: 10px;
    color: inherit;
}

.page-sports__faq-answer a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-sports__faq-answer a:hover {
    text-decoration: underline;
}

/* Bottom CTA */
.page-sports__cta-bottom-section {
    padding: 100px 0;
}

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

.page-sports__btn-large {
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 10px;
}

/* 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 {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
        min-height: auto;
    }

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

    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-tertiary,
    .page-sports__btn-link {
        width: 100%;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 40px;
    }

    .page-sports__features-grid,
    .page-sports__categories-grid,
    .page-sports__promos-grid,
    .page-sports__steps-grid,
    .page-sports__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__feature-card,
    .page-sports__category-card,
    .page-sports__promo-card,
    .page-sports__step-card,
    .page-sports__tip-item {
        padding: 20px;
    }

    .page-sports__feature-title,
    .page-sports__category-title,
    .page-sports__promo-title,
    .page-sports__step-title {
        font-size: 1.3em;
    }

    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__feature-icon,
    .page-sports__category-image,
    .page-sports__promo-image {
        height: auto; /* Allow auto height on mobile for better scaling */
        max-height: 250px; /* Optional: set a max height if needed */
    }

    /* Mobile video responsiveness */
    .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; /* Ensure aspect ratio */
    }

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

    .page-sports__faq-answer {
        padding: 0 20px;
    }

    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
    
    .page-sports__why-choose-section,
    .page-sports__video-section,
    .page-sports__categories-section,
    .page-sports__promotions-section,
    .page-sports__guide-section,
    .page-sports__tips-section,
    .page-sports__faq-section,
    .page-sports__cta-bottom-section {
        padding: 40px 0;
    }
}

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

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

    .page-sports__btn-large {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}