/* style/sports.css */
.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 var(--black-color) */
}

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

/* Sections */
.page-sports__section {
    padding: 60px 0;
}

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

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

.page-sports__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from section background */
}

.page-sports__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Hero Section */
.page-sports__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

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

.page-sports__hero-title-link {
    color: inherit;
    text-decoration: none;
}

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

.page-sports__hero-actions {
    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;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4); /* Darken image for text readability */
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
    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;
    white-space: nowrap;
    box-sizing: border-box;
}

.page-sports__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

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

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

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-sports__light-bg .page-sports__btn-secondary {
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-sports__light-bg .page-sports__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Why Choose Section */
.page-sports__why-choose {
    background-color: #ffffff;
    color: #333333;
}

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

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

.page-sports__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-icon {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
}

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

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

/* Featured Sports Section */
.page-sports__featured-sports {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-sports__sport-category {
    margin-bottom: 60px;
    text-align: center;
}

.page-sports__category-title {
    font-size: 2em;
    margin-bottom: 25px;
    color: #ffffff;
}

.page-sports__category-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

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

/* How to Start Section */
.page-sports__how-to-start {
    background-color: #f0f8ff;
    color: #333333;
}

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

.page-sports__step-item {
    text-align: center;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

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

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

.page-sports__step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions {
    background-color: #26A9E0;
    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-item {
    background-color: #ffffff;
    color: #333333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
}

.page-sports__promo-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #26A9E0;
    padding: 0 20px;
}

.page-sports__promo-text {
    font-size: 0.95em;
    color: #555555;
    padding: 0 20px 20px 20px;
    flex-grow: 1;
}

.page-sports__promo-item .page-sports__btn-primary,
.page-sports__promo-item .page-sports__btn-secondary {
    margin: 0 20px 20px 20px;
    width: calc(100% - 40px);
}

/* Mobile Experience Section */
.page-sports__mobile-experience {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__mobile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.page-sports__mobile-text {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: left;
}

.page-sports__mobile-subtitle {
    font-size: 2em;
    margin-bottom: 20px;
    color: #26A9E0;
}

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

.page-sports__mobile-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}

.page-sports__mobile-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-sports__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__faq-item:last-child .page-sports__faq-question {
    border-bottom: none;
}

.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 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-sports__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section */
.page-sports__cta {
    background-color: #f0f8ff;
    color: #333333;
    text-align: center;
}

.page-sports__cta-content {
    padding: 60px 20px;
}

.page-sports__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-sports__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

.page-sports__cta-button {
    margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 3em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 500px;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    }
    .page-sports__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-sports__feature-grid,
    .page-sports__step-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__category-title {
        font-size: 1.6em;
    }
    .page-sports__category-text {
        font-size: 0.95em;
    }

    .page-sports__mobile-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-sports__mobile-text,
    .page-sports__mobile-image-wrapper {
        min-width: unset;
        max-width: 100%;
    }
    .page-sports__mobile-text {
        text-align: center;
    }
    .page-sports__mobile-subtitle {
        font-size: 1.8em;
    }
    .page-sports__mobile-description {
        font-size: 1em;
    }

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

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

    /* Global mobile image/video/container overrides */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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