/* style/sports.css */

/* Base styles for the page content */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

/* Ensure padding for header offset, but only once */
.page-sports__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background-color: #017439; /* Brand primary green */
    color: #FFFFFF; /* White text for dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
}

.page-sports__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 1;
}

.page-sports__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Register/Login font color for prominence */
    line-height: 1.2;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    min-width: 180px;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
}

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

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

.page-sports__btn-secondary {
    background-color: #017439; /* Brand primary green */
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

.page-sports__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #017439;
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* General section styling */
.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #017439; /* Brand primary green for titles on light background */
}

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

.page-sports__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 80px 20px;
}

.page-sports__dark-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 20px;
}

.page-sports__dark-section .page-sports__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}

.page-sports__dark-section .page-sports__section-description {
    color: #f0f0f0;
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

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

.page-sports__feature-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-sports__feature-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

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

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

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for step numbers */
    margin-bottom: 15px;
}

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

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

.page-sports__image-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 60px auto 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-sports__image-wrapper--registration {
    max-width: 800px;
}

.page-sports__image-wrapper--sports {
    max-width: 1000px;
}

.page-sports__image-wrapper--promotions {
    max-width: 1200px;
}

.page-sports__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px;
}

.page-sports__cta-bottom {
    text-align: center;
    margin-top: 40px;
}

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

.page-sports__type-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-sports__type-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-sports__type-text {
    font-size: 1em;
    color: #555555;
}

/* Promotions Section */
.page-sports__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-sports__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.page-sports__promo-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-sports__promo-text {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-sports__app-text {
    flex: 1;
    min-width: 300px;
}

.page-sports__app-subtitle {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

.page-sports__app-description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 20px;
}

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

.page-sports__app-features li {
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
    background-size: 20px;
    padding-left: 30px;
    margin-bottom: 10px;
    font-size: 1em;
    color: #333333;
}

.page-sports__app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__app-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Video Section */
.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video container */
    margin: 40px auto 0 auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer; /* Indicate video is clickable */
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #017439; /* Brand primary green */
    color: #FFFFFF;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-title {
    margin: 0;
    font-size: 1.1em;
    color: #FFFFFF;
}

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

.page-sports__faq-item.active .page-sports__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

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

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

/* Final CTA Section */
.page-sports__cta-final {
    text-align: center;
    padding: 80px 20px;
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-sports__cta-final .page-sports__section-description {
    color: #f0f0f0;
}

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: var(--header-offset, 80px) !important; /* Adjust for mobile header offset */
        padding-bottom: 40px;
    }
    .page-sports__hero-title {
        font-size: 2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-cta {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__light-bg,
    .page-sports__dark-section {
        padding: 40px 15px;
    }

    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-sports__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-sports__features-grid,
    .page-sports__steps-grid,
    .page-sports__types-grid,
    .page-sports__promo-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__feature-card,
    .page-sports__step-item,
    .page-sports__type-card,
    .page-sports__promo-card {
        padding: 20px;
    }

    .page-sports__feature-title,
    .page-sports__step-title,
    .page-sports__type-title,
    .page-sports__promo-title {
        font-size: 1.3em;
    }

    /* Mobile image responsiveness */
    .page-sports img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is still met, but scales down */
        min-height: 200px !important;
    }
    
    .page-sports__image-wrapper,
    .page-sports__app-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px; /* Add padding to image wrappers */
    }

    /* Mobile video responsiveness */
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 112px !important; /* 16:9 for 200px width */
    }
    
    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        margin-left: auto;
        margin-right: auto;
        padding: 0 15px; /* Add padding to video wrapper */
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    }

    .page-sports__app-content {
        flex-direction: column;
    }
    .page-sports__app-text,
    .page-sports__app-image-wrapper {
        min-width: unset;
        width: 100%;
    }

    .page-sports__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-sports__faq-title {
        font-size: 1em;
    }
    .page-sports__faq-toggle {
        font-size: 1.5em;
    }
    .page-sports__faq-answer {
        padding: 0 20px;
    }
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px 20px;
    }
}

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