/* style/sports.css */

/* Base Styles & Global Resets within scope */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-sports__section-title {
    font-size: 2.5em;
    color: #ffffff; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Color Contrast Fixes (as per instructions) */
.page-sports__text-contrast-fix {
  color: #333333; /* Dark text for light backgrounds */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    box-sizing: border-box; /* Include padding in width */
}

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

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808; /* Use promo button border color */
}

.page-sports__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00;
}

.page-sports__btn-tertiary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-sports__btn-tertiary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Sections Backgrounds */
.page-sports__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

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

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

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3; /* Slightly dim the background image */
}

.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;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    text-align: center;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

/* Features Section */
.page-sports__features-section {
    padding: 80px 0;
}

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

.page-sports__feature-card {
    background-color: #ffffff; /* Light background for cards */
    color: #333333; /* Dark text for cards */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-sports__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439; /* Brand color for titles */
}

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

/* Guide Section */
.page-sports__guide-section {
    padding: 80px 0;
    text-align: center;
}

.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.1); /* Semi-transparent background for dark section */
    color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background-color: #017439; /* Brand color */
    color: #ffffff;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-sports__step-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFFF00; /* Login/Register font color for emphasis */
}

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

.page-sports__cta-bottom {
    margin-top: 50px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Promotions Section */
.page-sports__promotions-section {
    padding: 80px 0;
}

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

.page-sports__promo-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__promo-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    color: #017439;
}

.page-sports__promo-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-sports__all-promos-cta {
    margin-top: 50px;
    text-align: center;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-sports__faq-item.active {
    background-color: rgba(255, 255, 255, 0.15);
}

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

.page-sports__faq-question:hover {
    color: #FFFF00; /* Highlight on hover */
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.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-out, padding 0.3s ease-out;
    text-align: left;
    color: #f0f0f0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px 25px;
}

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

/* Contact CTA Section */
.page-sports__contact-cta-section {
    padding: 80px 0;
    text-align: center;
}

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


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

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

    .page-sports__hero-section {
        min-height: 60vh;
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

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

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

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

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-tertiary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 15px 20px;
        font-size: 1.1em;
    }

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

    .page-sports__section-description {
        font-size: 0.95em;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__hero-image {
        opacity: 0.2;
    }

    /* Video responsiveness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important;
    }

    /* Card and Grid responsiveness */
    .page-sports__features-grid,
    .page-sports__steps-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-sports__feature-card,
    .page-sports__step-card,
    .page-sports__promo-card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-sports__feature-image,
    .page-sports__promo-image {
        height: auto;
        max-height: 200px;
    }

    .page-sports__cta-bottom,
    .page-sports__contact-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-sports__all-promos-cta .page-sports__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* FAQ responsiveness */
    .page-sports__faq-item {
        margin-left: 15px;
        margin-right: 15px;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 10px 20px 20px;
    }

    .page-sports__container {
        padding: 0 15px;
    }
}

/* Ensure all content images in .page-sports are at least 200px wide/high */
.page-sports__feature-image,
.page-sports__promo-image {
    min-width: 200px;
    min-height: 200px;
}

/* Specific overrides for text contrast on light backgrounds */
.page-sports__light-bg .page-sports__section-title,
.page-sports__light-bg .page-sports__section-description,
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__feature-description,
.page-sports__light-bg .page-sports__promo-title,
.page-sports__light-bg .page-sports__promo-description {
    color: #333333;
}
.page-sports__light-bg .page-sports__feature-title,
.page-sports__light-bg .page-sports__promo-title {
    color: #017439;
}