/* style/sports.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --body-background-color: #1a1a2e;
    --text-light: #ffffff;
    --text-dark: #333333;
    --card-background-dark-mode: rgba(255, 255, 255, 0.1);
    --card-background-light-mode: #ffffff;
}

.page-sports {
    font-family: 'Arial', sans-serif;
    color: var(--text-light); /* Default text color for dark body background */
    line-height: 1.6;
    background-color: var(--body-background-color);
}

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

.page-sports__center-align {
    text-align: center;
}

.page-sports__dark-bg {
    background-color: var(--body-background-color);
    color: var(--text-light);
}

.page-sports__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-dark);
}

.page-sports__section-title {
    font-size: 2.5em;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-sports__light-bg .page-sports__section-title {
    color: var(--primary-color);
}

.page-sports__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-sports__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.page-sports__hero-title {
    font-size: 3.5em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-sports__hero-description {
    font-size: 1.3em;
    color: var(--secondary-color);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.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;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

.page-sports__btn-primary {
    background-color: var(--register-login-button-color);
    color: var(--register-login-font-color);
    border: 2px solid var(--register-login-button-color);
}

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

.page-sports__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-sports__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Offerings Section */
.page-sports__offerings-section {
    padding: 60px 0;
}

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

.page-sports__card {
    background-color: var(--card-background-dark-mode);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: var(--text-light);
    padding-bottom: 20px;
}

.page-sports__light-bg .page-sports__card {
    background-color: var(--card-background-light-mode);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-sports__card-title {
    font-size: 1.5em;
    margin: 0 15px 10px;
    color: var(--secondary-color);
}

.page-sports__light-bg .page-sports__card-title {
    color: var(--primary-color);
}

.page-sports__card-description {
    font-size: 1em;
    margin: 0 15px 20px;
}

.page-sports__card-link {
    display: inline-block;
    margin: 0 15px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__card-link:hover {
    color: var(--secondary-color);
}

.page-sports__light-bg .page-sports__card-link {
    color: var(--primary-color);
}

.page-sports__light-bg .page-sports__card-link:hover {
    color: #005a2e;
}

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

.page-sports__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

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

.page-sports__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
    opacity: 1;
}

.page-sports__video-cta-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--register-login-button-color);
    color: var(--register-login-font-color);
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 90%;
}

.page-sports__video-cta-button:hover {
    background-color: #a30606;
}

.page-sports__video-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    color: var(--text-dark);
}

/* Guide Section */
.page-sports__guide-section {
    padding: 60px 0;
}

.page-sports__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-sports__guide-item {
    background-color: var(--card-background-light-mode);
    border-left: 5px solid var(--primary-color);
    margin-bottom: 25px;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    color: var(--text-dark);
}

.page-sports__guide-item::before {
    counter-increment: guide-step;
    content: "0" counter(guide-step);
    position: absolute;
    left: -25px;
    top: 20px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-sports__guide-step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding-left: 30px;
}

.page-sports__guide-item p {
    font-size: 1em;
    padding-left: 30px;
}

.page-sports__guide-item a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.page-sports__guide-item a:hover {
    text-decoration: underline;
}

/* Advantages Section */
.page-sports__advantages-section {
    padding: 60px 0;
}

.page-sports__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-sports__advantage-card {
    background-color: var(--card-background-dark-mode);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    transition: transform 0.3s ease;
}

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

.page-sports__advantage-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: none; /* Ensure no filter changes image color */
}

.page-sports__advantage-title {
    font-size: 1.4em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

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

.page-sports__promotion-list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: var(--text-dark);
}

.page-sports__promotion-list li {
    margin-bottom: 10px;
}

.page-sports__promotion-list strong {
    color: var(--primary-color);
}

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

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

.page-sports__faq-item {
    background-color: var(--card-background-dark-mode);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-light);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.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;
}

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

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

/* Final CTA Section */
.page-sports__cta-section {
    padding: 60px 0;
}

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

/* Responsive Design */
@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;
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
    }
    .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;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__container,
    .page-sports__grid-container,
    .page-sports__advantages-grid,
    .page-sports__faq-list,
    .page-sports__cta-buttons {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-sports__card-image,
    .page-sports__advantage-icon,
    .page-sports__hero-image,
    .page-sports video,
    .page-sports__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        object-fit: cover !important;
    }

    .page-sports__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-sports__video-cta-button {
        max-width: 90% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-sports__guide-item::before {
        position: static;
        display: inline-flex;
        margin-right: 15px;
        margin-bottom: 10px;
        vertical-align: middle;
    }
    .page-sports__guide-step-title, .page-sports__guide-item p {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .page-sports__hero-title {
        font-size: 1.8em;
    }
    .page-sports__hero-description {
        font-size: 0.9em;
    }
    .page-sports__section-title {
        font-size: 1.5em;
    }
    .page-sports__card-title {
        font-size: 1.3em;
    }
    .page-sports__advantage-title {
        font-size: 1.2em;
    }
    .page-sports__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-sports__faq-answer {
        padding: 15px;
    }
}