/* style/sports.css */
/* Base styles for the sports page */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#1a1a2e) */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-sports__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

/* Color contrast classes */
.page-sports__dark-bg {
    background-color: #1a1a2e; /* Dark background */
    color: #ffffff; /* Light text */
}

.page-sports__light-bg {
    background-color: #f8f9fa; /* Light background */
    color: #333333; /* Dark text */
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't push width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-sports__btn-primary:hover {
    background-color: #1e87b8; /* Slightly darker primary */
    border-color: #1e87b8;
}

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

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

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

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

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

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

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

/* Video Section */
.page-sports__video-section {
    position: relative;
    width: 100%;
    padding: 60px 20px;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px; /* Max width for video */
    margin: 30px auto 0 auto;
    background-color: #000; /* Black background for video player */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* About Section */
.page-sports__about-section .page-sports__section-title,
.page-sports__about-section .page-sports__text-block {
    color: #333333; /* Dark text for light background */
}

/* Sports Categories Section */
.page-sports__sports-categories .page-sports__section-title,
.page-sports__sports-categories .page-sports__text-block {
    color: #ffffff; /* Light text for dark background */
}

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

.page-sports__category-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

.page-sports__category-card p {
    font-size: 1em;
    color: #f0f0f0;
}

.page-sports__image-full {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

/* Benefits Section */
.page-sports__benefits-section .page-sports__section-title,
.page-sports__benefits-section .page-sports__text-block,
.page-sports__benefits-section .page-sports__card-title,
.page-sports__benefits-section .page-sports__benefit-card p {
    color: #333333; /* Dark text for light background */
}

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

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

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

.page-sports__image-centered {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

/* Guide Section */
.page-sports__guide-section .page-sports__section-title,
.page-sports__guide-section .page-sports__text-block,
.page-sports__guide-section .page-sports__step-title,
.page-sports__guide-section .page-sports__step-item p {
    color: #ffffff; /* Light text for dark background */
}
.page-sports__guide-section .page-sports__step-item a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}
.page-sports__guide-section .page-sports__step-item a:hover {
    color: #1e87b8;
}

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

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

/* Promotions Section */
.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__text-block,
.page-sports__promotions-section .page-sports__promo-list li {
    color: #333333; /* Dark text for light background */
}
.page-sports__promotions-section .page-sports__promo-list li strong {
    color: #26A9E0;
}
.page-sports__promotions-section .page-sports__text-block a {
    color: #26A9E0;
    text-decoration: underline;
}
.page-sports__promotions-section .page-sports__text-block a:hover {
    color: #1e87b8;
}


.page-sports__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-sports__promo-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
}

/* Mobile App Section */
.page-sports__mobile-app-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.page-sports__mobile-app-content {
    flex: 1;
    min-width: 300px;
    color: #ffffff;
}

.page-sports__mobile-app-content .page-sports__section-title {
    text-align: left;
    color: #ffffff;
}

.page-sports__mobile-app-content .page-sports__text-block {
    color: #f0f0f0;
}

.page-sports__app-features {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-sports__app-features li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.page-sports__mobile-app-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 250px;
}

.page-sports__mobile-app-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Safety Section */
.page-sports__safety-section .page-sports__section-title,
.page-sports__safety-section .page-sports__text-block {
    color: #333333; /* Dark text for light background */
}
.page-sports__safety-section .page-sports__text-block strong {
    color: #26A9E0;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title {
    color: #ffffff;
}

.page-sports__faq-list {
    margin-top: 40px;
}

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

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

.page-sports__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.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); /* Plus sign rotates to form an X or minus */
}

.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
    font-size: 1.1em;
}

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

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

.page-sports__image-centered {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 10px;
}

/* CTA Section */
.page-sports__cta-section .page-sports__section-title,
.page-sports__cta-section .page-sports__text-block {
    color: #ffffff;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__mobile-app-flex {
        flex-direction: column;
        text-align: center;
    }
    .page-sports__mobile-app-content .page-sports__section-title {
        text-align: center;
    }
    .page-sports__app-features {
        text-align: left; /* Keep list left-aligned */
        margin: 0 auto 30px auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__container {
        padding: 20px 15px; /* Adjust padding for mobile */
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__mobile-app-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsiveness */
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-sports__video,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to wrapper for mobile */
    }
    .page-sports__video-wrapper {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Mobile button responsiveness */
    .page-sports__cta-button,
    .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-direction: column !important; /* Stack buttons vertically */
        gap: 15px; /* Spacing between stacked buttons */
    }

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

@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;
    }
    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100%;
    }
}

/* Ensure content area images are not too small */
.page-sports__about-section img,
.page-sports__sports-categories img,
.page-sports__benefits-section img,
.page-sports__guide-section img,
.page-sports__promotions-section img,
.page-sports__mobile-app-section img,
.page-sports__safety-section img,
.page-sports__faq-section img,
.page-sports__cta-section img {
    min-width: 200px;
    min-height: 200px;
}