/* style/sports.css */

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

/* Containers and Sections */
.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-sports__dark-section {
    background-color: #002060; /* good888 blue for sections */
    padding: 60px 0;
    margin-bottom: 20px;
}

.page-sports__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Wealth gold for titles */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-sports__section-paragraph {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding: 100px 20px;
    padding-top: calc(100px + var(--header-offset, 120px)); /* Ensure hero content is below header */
    background-color: #002060; /* Fallback background */
}

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

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    filter: none; /* Ensure no CSS filter changes original image color */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
}

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.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;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap for buttons */
    word-wrap: break-word; /* Allow text wrap for buttons */
}

.page-sports__btn-primary {
    background-color: #FFD700; /* Wealth gold */
    color: #002060; /* good888 blue */
    border: 2px solid #FFD700;
}

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

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

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

.page-sports__btn-link {
    background-color: #002060;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-sports__btn-link:hover {
    background-color: #FFD700;
    color: #002060;
}

/* Video Section */
.page-sports__video-section {
    padding-top: var(--header-offset, 120px); /* Desktop default */
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px; /* Max width for video */
    margin: 0 auto 30px auto;
    background: #000;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    filter: none; /* Ensure no CSS filter changes original video color */
}

.page-sports__video-cta {
    text-align: center;
    margin-top: 20px;
}

/* Sports Types Grid */
.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__sport-card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible on dark background */
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__sport-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
    filter: none; /* Ensure no CSS filter changes original image color */
}

.page-sports__sport-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-sports__sport-title a.page-sports__card-link {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__sport-title a.page-sports__card-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-sports__sport-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Benefits Section */
.page-sports__benefits-grid,
.page-sports__security-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__benefit-card,
.page-sports__security-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__benefit-icon,
.page-sports__security-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    filter: none; /* Ensure no CSS filter changes original image color */
}

.page-sports__benefit-title,
.page-sports__security-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-sports__benefit-description,
.page-sports__security-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Registration Steps */
.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

/* Tips List */
.page-sports__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-sports__tip-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-sports__tip-description {
    font-size: 0.95em;
    color: #f0f0f0;
}


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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    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;
    cursor: pointer;
    background-color: #002060; /* Darker background for question */
    color: #FFD700;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #003380; /* Slightly lighter on hover */
}

.page-sports__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFD700; /* Ensure title color is correct */
}

.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 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
    color: #f0f0f0;
    font-size: 0.95em;
}

/* IMPORTANT: Ensure FAQ answer expands correctly */
.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Use !important to override any other max-height */
    padding: 20px !important; /* Adjust padding for expanded state */
}

/* CTA Section */
.page-sports__cta-content {
    text-align: center;
}

/* --- Responsive Design --- */

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

    .page-sports__hero-section {
        min-height: 400px;
        padding-top: calc(60px + var(--header-offset, 80px)) !important; /* Adjusted for mobile header offset */
        padding-bottom: 60px;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__dark-section {
        padding: 40px 0;
    }

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

    .page-sports__section-paragraph {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-sports__container {
        padding: 0 15px; /* Add padding for content */
    }
}