/* style/sports.css */
.page-sports {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000; /* Assuming body background is black from shared.css */
}

.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px; /* Adjusted padding-top for header offset */
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 40px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: #FFFF00;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-sports__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* General Section Styling */
.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
}

.page-sports__light-bg .page-sports__section-title {
    color: #017439;
}

.page-sports__dark-bg .page-sports__section-title {
    color: #FFFF00;
}

.page-sports__section-intro {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.page-sports__light-bg .page-sports__section-intro {
    color: #333333;
}

.page-sports__dark-bg .page-sports__section-intro {
    color: #f0f0f0;
}

/* Buttons */
.page-sports__cta-button {
    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, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.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: #e00b0b;
    transform: translateY(-3px);
}

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

.page-sports__btn-secondary:hover {
    background-color: #005a2e;
    transform: translateY(-3px);
}

/* Why Choose Section */
.page-sports__why-choose-section {
    padding: 80px 0;
}

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

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

.page-sports__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

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

/* How To Start Section */
.page-sports__how-to-start-section {
    padding: 80px 0;
}

.page-sports__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-sports__step-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__step-number {
    font-size: 3em;
    color: #FFFF00;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.page-sports__step-description {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.6;
    margin-bottom: 25px;
}

.page-sports__step-button {
    width: 100%;
    padding: 12px 20px;
}

/* Popular Sports Section */
.page-sports__popular-sports-section {
    padding: 80px 0;
}

.page-sports__sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__sport-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__sport-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__sport-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.page-sports__sport-card .page-sports__sport-title {
    font-size: 1.5em;
    color: #017439;
    margin: 20px 20px 10px;
}

.page-sports__sport-card .page-sports__sport-description {
    font-size: 0.95em;
    color: #555555;
    line-height: 1.6;
    padding: 0 20px 20px;
}

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

.page-sports__promotion-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-sports__promotion-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 5px solid #FFFF00;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-sports__promotion-item strong {
    color: #FFFF00;
}

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

/* Security Section */
.page-sports__security-section {
    padding: 80px 0;
}

.page-sports__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-sports__security-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__security-icon {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

.page-sports__security-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

/* Video Section */
.page-sports__video-section {
    padding: 80px 0;
    position: relative;
}

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-sports__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

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

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

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9;
    border-bottom: 1px solid #dcdcdc;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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, padding 0.3s ease;
    color: #555555;
    line-height: 1.6;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-sports__faq-answer p {
    margin: 0;
}

/* CTA Banner */
.page-sports__cta-banner {
    padding: 60px 20px;
    text-align: center;
}

.page-sports__cta-title {
    font-size: 2.8em;
    color: #FFFF00;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__cta-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding: 80px 15px 40px; /* Adjust padding for mobile */
    }

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

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

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

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

    .page-sports__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-sports__features-grid,
    .page-sports__steps-grid,
    .page-sports__sports-grid,
    .page-sports__security-grid {
        grid-template-columns: 1fr;
    }

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

    .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,
    .page-sports__section,
    .page-sports__card,
    .page-sports__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-sports__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

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

    .page-sports__cta-title {
        font-size: 2em;
    }

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

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }

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

    .page-sports__hero-cta-buttons .page-sports__cta-button {
        font-size: 1em;
        padding: 12px 20px;
    }
}