.page-sports {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF); /* Ensures it follows shared body background */
}

/* Fixed header offset - applies to the first content section */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop and mobile offset */
}

/* General container for content sections */
.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;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden; /* Ensure video doesn't overflow */
    background: #017439; /* Fallback for video or if video doesn't cover fully */
}

.page-sports__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-sports__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken video for text readability */
    /* pointer-events: none; */ /* Removed to allow click event to propagate from JS */
}

.page-sports__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
}

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

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

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

/* Section Titles */
.page-sports__section-title {
    font-size: 2.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Primary brand color for titles */
}

.page-sports__section-subtitle {
    font-size: 1.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
}

/* Light Background Section */
.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

/* Dark Background Section */
.page-sports__dark-bg {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

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

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

/* Introduction Section */
.page-sports__introduction-section .page-sports__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-sports__introduction-section .page-sports__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-sports__introduction-section .page-sports__image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-sports__sport-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #333333;
}

.page-sports__sport-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-sports__sport-card .page-sports__card-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    padding: 0 20px;
    color: #017439;
}

.page-sports__sport-card .page-sports__card-description {
    font-size: 1em;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allows description to take available space */
}

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

.page-sports__advantage-card {
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    color: #333333;
}

.page-sports__advantage-card img {
    width: 100%; /* Ensure images are large enough */
    max-width: 400px; /* Max width for consistency */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

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

.page-sports__advantage-card .page-sports__card-description {
    font-size: 1em;
    color: #555555;
}

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

.page-sports__guide-step {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-sports__guide-step img {
    width: 100%;
    height: 200px; /* Fixed height for guide step images */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-sports__guide-step .page-sports__step-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

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

/* Promotions Section */
.page-sports__promotion-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-sports__promotion-content img {
    width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.page-sports__promotion-text {
    width: 50%;
    text-align: left;
}

.page-sports__promotion-text p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-sports__promo-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-sports__promo-list li {
    margin-bottom: 8px;
}

/* FAQ Section */
.page-sports__faq-list {
    margin-top: 40px;
}

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

.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: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    color: #017439;
}

.page-sports__faq-item[open] > .page-sports__faq-question {
    background-color: #e0e0e0;
    border-bottom: none;
}

.page-sports__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
}

.page-sports__faq-answer {
    padding: 20px;
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Conclusion Section */
.page-sports__conclusion-content {
    text-align: center;
    margin-top: 40px;
}

.page-sports__conclusion-content p {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-register,
.page-sports__btn-join {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

/* Specific colors for register/login buttons as per custom配色 */
.page-sports__btn-register,
.page-sports__btn-login { /* Assuming a login button might appear later */
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-sports__btn-register:hover,
.page-sports__btn-login:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #FFFF00;
}

.page-sports__btn-join {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-top: 20px;
}

.page-sports__btn-join:hover {
    background-color: #005f2c;
    border-color: #005f2c;
}

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

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

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

    .page-sports__introduction-section .page-sports__content-grid {
        grid-template-columns: 1fr;
    }

    .page-sports__promotion-content {
        flex-direction: column;
    }

    .page-sports__promotion-content img,
    .page-sports__promotion-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-sports__container {
        padding: 15px;
    }

    /* Fixed header offset */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }

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

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

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

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

    .page-sports__section-subtitle {
        font-size: 1em;
    }

    /* Image responsive adaptions */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsive adaptions */
    .page-sports video,
    .page-sports__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}