/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color 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;
    box-sizing: border-box;
}

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

.page-sports__sub-title {
    font-size: 1.8em;
    color: #ffffff; /* Light text for dark sections */
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-sports__text-block a {
    color: #26A9E0; /* Brand color for links */
    text-decoration: underline;
}

/* Color contrast enforcement */
.page-sports__dark-bg {
    background-color: #0a0a0a; /* Ensure dark background */
    color: #ffffff; /* Light text */
}

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

.page-sports__light-bg .page-sports__section-title {
    color: #26A9E0; /* Brand color on light background */
}

.page-sports__light-bg .page-sports__sub-title {
    color: #333333; /* Dark text on light background */
}

.page-sports__light-bg .page-sports__text-block {
    color: #555555; /* Darker text on light background */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

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

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

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Adjust as needed */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-sports__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-sports__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    /* NO filter to change color, only brightness allowed for contrast */
}

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

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

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

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

/* Intro Section */
.page-sports__intro-section {
    padding: 60px 0;
}

/* Products Section (Cards) */
.page-sports__products-section {
    padding: 60px 0;
}

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

.page-sports__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    padding-bottom: 20px;
    color: #ffffff; /* Light text for card content */
    display: flex;
    flex-direction: column;
}

.page-sports__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-sports__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for card titles */
    padding: 0 15px;
}

.page-sports__card-title a {
    color: inherit; /* Inherit color from parent */
    text-decoration: none;
}

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

.page-sports__card-description {
    font-size: 1em;
    padding: 0 15px;
    flex-grow: 1; /* Allow description to take available space */
    color: #f0f0f0;
}

/* Advantages Section */
.page-sports__advantages-section {
    padding: 60px 0;
}

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

.page-sports__advantage-item {
    background-color: #ffffff; /* White background for advantages */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #333333; /* Dark text for light background */
}

.page-sports__advantage-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto;
}

.page-sports__advantage-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-sports__advantage-description {
    font-size: 1em;
    color: #555555;
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 0;
}

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

.page-sports__guide-step {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent for subtle contrast */
    border-left: 5px solid #26A9E0;
    padding: 30px;
    border-radius: 8px;
    color: #f0f0f0;
}

.page-sports__guide-step .page-sports__sub-title {
    color: #26A9E0; /* Brand color for guide step titles */
    margin-top: 0;
}

.page-sports__guide-step .page-sports__text-block {
    color: #f0f0f0;
}

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

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

.page-sports__faq-item {
    background-color: #ffffff; /* White background for FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f8f8f8; /* Light gray for question background */
    color: #333333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

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

.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); /* Change to '-' visually */
}

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

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

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

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

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

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

.page-sports__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-sports__cta-button {
    font-size: 1.2em;
    padding: 18px 40px;
    background-color: #EA7C07; /* Login button color for emphasis */
    border-color: #EA7C07;
}

.page-sports__cta-button:hover {
    background-color: #c76706;
    border-color: #c76706;
}

/* Images: Ensure min size 200x200px and no filters */
.page-sports img {
    min-width: 200px;
    min-height: 200px;
    display: block; /* Ensure block level for width/height */
    /* No filter property to change color */
}

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

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

    .page-sports__hero-content {
        padding: 20px 15px;
    }

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

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

    .page-sports__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Buttons responsive adaptation */
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__cta-button {
        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__sub-title {
        font-size: 1.4em;
    }

    .page-sports__product-grid,
    .page-sports__advantages-grid,
    .page-sports__guide-content {
        grid-template-columns: 1fr;
    }
    
    /* Images responsive adaptation */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containing elements for images/videos/buttons */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__products-section,
    .page-sports__advantages-section,
    .page-sports__guide-section,
    .page-sports__faq-section,
    .page-sports__cta-section,
    .page-sports__hero-buttons,
    .page-sports__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive adaptation */
    .page-sports video,
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video container responsive adaptation */
    .page-sports__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__cta-title {
        font-size: 2em;
    }
    .page-sports__cta-description {
        font-size: 1em;
    }
    
    .page-sports__faq-question {
        font-size: 1.1em;
    }
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }
}