/* style/sports.css */

/* Base styles for the page */
.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 (#0a0a0a) */
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
    background-color: #0a0a0a; /* Default section background for dark body */
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-sports__section-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding: 120px 0 80px; /* Default padding, will be adjusted by var(--header-offset) */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand colors */
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: none; /* Ensure no filter */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
    max-width: 900px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Buttons */
a.page-sports__btn-primary,
a.page-sports__btn-secondary,
a.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

a.page-sports__btn-primary {
    background: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

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

a.page-sports__btn-secondary:hover {
    background: #ffffff;
    color: #017439;
}

a.page-sports__btn-link {
    background: transparent;
    color: #FFFF00; /* Custom font color for emphasis */
    border: 1px solid #FFFF00;
    padding: 10px 20px;
    font-size: 1em;
}

a.page-sports__btn-link:hover {
    background: #FFFF00;
    color: #017439;
}

/* Introduction Section */
.page-sports__introduction {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

/* Popular Sports Section */
.page-sports__popular-sports {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff; /* Light text for card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__sport-card:hover {
    transform: translateY(-10px);
}

.page-sports__sport-image {
    width: 100%;
    max-width: 400px; /* Ensure images are not too wide on larger screens */
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no filter */
}

.page-sports__sport-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-sports__sport-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Advantages Section */
.page-sports__advantages {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

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

.page-sports__advantage-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-sports__advantage-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for emphasis */
}

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

/* Video Section */
.page-sports__video-section {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
    padding: 80px 0;
}

.page-sports__video-wrapper {
    max-width: 960px; /* Max width for video */
    margin: 30px auto;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    filter: none; /* Ensure no filter */
}

.page-sports__video-cta {
    margin-top: 30px;
}

/* Guide Section */
.page-sports__guide {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

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

.page-sports__guide-step {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__guide-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no filter */
}

.page-sports__guide-step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for emphasis */
}

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

/* Promotions Section */
.page-sports__promotions {
    background-color: #017439; /* Brand color dark background */
    color: #ffffff;
}

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

.page-sports__promo-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-sports__promo-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    filter: none; /* Ensure no filter */
}

.page-sports__promo-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for emphasis */
}

.page-sports__promo-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Make description take available space */
}

/* FAQ Section */
.page-sports__faq {
    background-color: #0a0a0a; /* Dark background from body */
    color: #ffffff;
}

.page-sports__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    text-align: left;
}

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

.page-sports__faq-item summary {
    list-style: none; /* Hide default marker */
}
.page-sports__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit */
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15); /* Slightly darker for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFF00; /* Custom font color for emphasis */
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an X or minus */
}

.page-sports__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.7;
}

/* Final CTA Section */
.page-sports__cta-final {
    background: linear-gradient(135deg, #017439, #005f2f); /* Brand colors */
    color: #ffffff;
    padding: 80px 0;
}

.page-sports__cta-final .page-sports__section-title {
    color: #FFFF00;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__hero-description {
        font-size: 1.2em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding: 0 15px !important;
    }

    /* General section padding */
    .page-sports__section {
        padding: 40px 0;
    }

    .page-sports__hero-section {
        padding: 100px 0 60px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

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

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

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

    /* Buttons responsive */
    a.page-sports__btn-primary,
    a.page-sports__btn-secondary,
    a.page-sports__btn-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .page-sports__hero-cta-buttons a.page-sports__btn-primary,
    .page-sports__hero-cta-buttons a.page-sports__btn-secondary,
    .page-sports__cta-final a.page-sports__btn-primary,
    .page-sports__cta-final a.page-sports__btn-secondary {
        width: calc(100% - 30px) !important; /* Account for container padding */
        margin: 0 auto;
    }

    /* Images responsive */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-sports__sport-image,
    .page-sports__guide-icon,
    .page-sports__promo-image {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video responsive */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        width: calc(100% - 30px) !important; /* Account for container padding */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* All containers with images/videos/buttons */
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__sports-grid,
    .page-sports__advantages-grid,
    .page-sports__guide-steps,
    .page-sports__promo-grid,
    .page-sports__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__cta-final .page-sports__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__section-title {
        font-size: 1.6em;
    }
    .page-sports__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    a.page-sports__btn-primary,
    a.page-sports__btn-secondary {
        font-size: 0.9em;
        padding: 10px 15px;
    }
}

/* Contrast Fixes - Ensure text is always readable */
/* Body background is #0a0a0a (dark), so main text should be light */
.page-sports {
    color: #ffffff;
}
.page-sports__section-title {
    color: #FFFF00; /* Use custom font color for titles for emphasis */
}
.page-sports__section-text {
    color: #f0f0f0;
}