/* style/sports.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-sports {
    color: #ffffff; /* Light text for dark body background #121212 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Fixed header spacing - applied to the first main content section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* Ensure hero section is visible */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Apply header offset */
}

.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: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-sports__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFD700; /* Gold brand color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-sports__cta-group--center {
    justify-content: center;
    margin-top: 30px;
}

.page-sports__cta-button {
    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;
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-sports__cta-button--primary {
    background-color: #FFD700; /* Gold brand color */
    color: #121212; /* Dark text for contrast */
    border: 2px solid #FFD700;
}

.page-sports__cta-button--primary:hover {
    background-color: #e0b800;
    color: #121212;
    border-color: #e0b800;
}

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

.page-sports__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #121212;
    border-color: #FFD700;
}

.page-sports__cta-button--small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* General Section Styles */
.page-sports__section-padding {
    padding: 60px 20px;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
    box-sizing: border-box; /* Include padding in width calculation */
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color for section titles */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-sports__sub-title {
    font-size: 1.8em;
    color: #FFD700; /* Gold brand color for sub titles */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.page-sports__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Grid Layouts */
.page-sports__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__step-card,
.page-sports__security-card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.page-sports__feature-card:hover,
.page-sports__promo-card:hover,
.page-sports__step-card:hover,
.page-sports__security-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__card-title {
    font-size: 1.5em;
    color: #FFD700; /* Gold brand color for card titles */
    margin-bottom: 15px;
}

.page-sports__card-text {
    font-size: 1em;
    color: #cccccc; /* Slightly lighter text for card content */
    flex-grow: 1; /* Ensure text fills space */
}

/* Content with Image Grid */
.page-sports__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-sports__content-text {
    text-align: left;
}

/* Dark background sections */
.page-sports__dark-bg {
    background-color: #8B0000; /* Dark red auxiliary color */
    color: #ffffff;
}

.page-sports__dark-section {
    background-color: #8B0000; /* Dark red auxiliary color */
    color: #ffffff;
}

.page-sports__dark-section .page-sports__section-title {
    color: #FFD700; /* Gold title on dark red background */
}

.page-sports__dark-section .page-sports__text-block {
    color: #f0f0f0;
}

/* App Section Specifics */
.page-sports__app-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__app-image {
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.page-sports__app-features {
    text-align: left;
    max-width: 600px;
}

.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-sports__feature-list li {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-sports__feature-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #FFD700;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 30px;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFD700;
    background-color: #8B0000; /* Dark red for FAQ question background */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    margin: 0;
    color: #FFD700;
    font-size: 1em; /* Adjust font size to fit within question area */
}

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

.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;
    background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
}

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

.page-sports__faq-answer .page-sports__text-block {
    margin-top: 0;
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Bottom CTA Section */
.page-sports__cta-bottom-section {
    background-color: #1a1a1a; /* Dark background for bottom CTA */
    text-align: center;
}

.page-sports__cta-bottom-content {
    padding: 40px 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__sub-title {
        font-size: 1.5em;
    }
    .page-sports__content-grid {
        grid-template-columns: 1fr;
    }
    .page-sports__content-text {
        order: 2; /* Move text below image on smaller screens if needed */
    }
    .page-sports__image-content {
        order: 1;
    }
    .page-sports__app-content {
        flex-direction: column;
    }
    .page-sports__app-image {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    /* Fixed header spacing for mobile, controlled by shared.css var */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__sub-title {
        font-size: 1.3em;
    }
    .page-sports__text-block,
    .page-sports__card-text,
    .page-sports__feature-list li {
        font-size: 0.95em;
    }

    /* Mobile image responsiveness - CRITICAL */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness - CRITICAL (if video existed) */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all content containers are responsive and prevent overflow */
    .page-sports__section-padding,
    .page-sports__container,
    .page-sports__grid,
    .page-sports__feature-card,
    .page-sports__promo-card,
    .page-sports__step-card,
    .page-sports__security-card,
    .page-sports__content-grid,
    .page-sports__app-content,
    .page-sports__faq-list,
    .page-sports__faq-item,
    .page-sports__cta-bottom-section,
    .page-sports__cta-bottom-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important; /* Add padding to prevent content touching edges */
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button responsiveness - CRITICAL */
    .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: 12px 20px !important; /* Adjust padding for smaller screens */
    }

    .page-sports__cta-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px !important;
    }
    .page-sports__cta-group--center {
        flex-direction: column;
    }

    .page-sports__app-features {
        text-align: center;
    }
    .page-sports__feature-list {
        text-align: left;
        padding-left: 0;
    }
    .page-sports__feature-list li {
        padding-left: 25px;
    }
    .page-sports__feature-list li::before {
        left: 0;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__cta-button {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}