:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f8f8f8; /* Slightly off-white for sections */
    --background-white: #ffffff;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-sports {
    font-family: 'Arial', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--background-white); /* Ensuring consistent background */
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-white) 100%);
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-sports__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-sports__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: var(--text-light); /* Text on gradient background */
}

.page-sports__hero-title {
    font-size: 3.2em;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-light); /* Ensure title is white on gradient */
}

.page-sports__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    color: var(--text-light); /* Ensure description is white */
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg);
    color: var(--button-register-text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button:hover {
    background: #a90707; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__cta-button--red {
    background: var(--button-register-bg);
    color: var(--button-register-text);
}

.page-sports__cta-button--light-border {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.page-sports__cta-button--light-border:hover {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* General Section Styling */
.page-sports__section {
    padding: 80px 20px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-sports__container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Inner padding for mobile */
}

.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.page-sports__section-title--light {
    color: var(--text-light);
}

.page-sports__text-block {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-dark);
}

.page-sports__text-block--light {
    color: var(--text-light);
}

.page-sports__text-block a,
.page-sports__link-register,
.page-sports__link-login,
.page-sports__link-download {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-sports__text-block a:hover,
.page-sports__link-register:hover,
.page-sports__link-login:hover,
.page-sports__link-download:hover {
    color: #005f2f;
}

.page-sports__link--light {
    color: var(--button-register-text); /* Use yellow for contrast on dark bg */
    text-decoration: underline;
}

.page-sports__link--light:hover {
    color: var(--secondary-color);
}

/* Backgrounds */
.page-sports__light-bg {
    background-color: var(--background-white);
    color: var(--text-dark);
}

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

/* Image styles */
.page-sports__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.page-sports__image-content--mobile-app {
    max-width: 400px; /* Specific size for mobile app image */
    margin: 20px auto;
}

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

.page-sports__card {
    background: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-dark);
    min-height: 250px; /* Ensure cards have some height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-sports__card--dark {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__card--dark:hover {
    background: rgba(255, 255, 255, 0.15);
}

.page-sports__card-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-weight: 600;
}

.page-sports__card-title--light {
    color: var(--secondary-color);
}

.page-sports__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-dark);
}

.page-sports__card-text--light {
    color: var(--text-light);
}

/* Registration Guide Steps */
.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: var(--background-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--shadow-light);
    text-align: left;
    position: relative;
    padding-top: 70px;
    color: var(--text-dark);
}

.page-sports__step-number {
    position: absolute;
    top: 20px;
    left: 30px;
    background: var(--primary-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-sports__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-sports__step-description {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-sports__promotion-card {
    /* Inherits from .page-sports__card */
    min-height: 200px;
}

/* Features List */
.page-sports__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 30px;
    text-align: left;
}

.page-sports__feature-item {
    background: var(--background-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-light);
    color: var(--text-dark);
}

.page-sports__feature-title {
    font-size: 1.4em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-sports__feature-description {
    font-size: 1em;
    color: var(--text-dark);
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: var(--background-light);
}

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

/* FAQ容器样式 */
.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* FAQ默认状态 - 答案隐藏 */
.page-sports__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important; /* 🚨 Sử dụng !important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
    padding: 20px 15px !important;
    opacity: 1;
    background: var(--background-white);
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.02);
}

/* Vấn đề kiểu dáng */
.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--background-white);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-sports__faq-question:hover {
    background: var(--background-light);
    border-color: #c0c0c0;
}

.page-sports__faq-question:active {
    background: #eeeeee;
}

/* Tiêu đề câu hỏi kiểu dáng */
.page-sports__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện click */
    color: var(--primary-color);
}

/* Biểu tượng chuyển đổi */
.page-sports__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Ngăn biểu tượng chặn sự kiện click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    color: var(--button-register-bg); /* Màu đỏ cho biểu tượng đang hoạt động */
    transform: rotate(45deg); /* Xoay để tạo hiệu ứng 'x' từ '+' */
}

/* Conclusion Section */
.page-sports__conclusion {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.5em;
    }
    .page-sports__hero-description {
        font-size: 1.1em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__feature-list {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .page-sports__hero-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-sports__hero-description {
        font-size: 1em;
    }
    .page-sports__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-sports__section {
        padding: 40px 0;
    }
    .page-sports__container {
        padding: 0 15px; /* Ensure padding on mobile */
    }
    .page-sports__section-title {
        font-size: 1.8em;
    }
    .page-sports__text-block {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-sports__cards-grid,
    .page-sports__steps-grid,
    .page-sports__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-sports__card,
    .page-sports__step-item,
    .page-sports__promotion-card,
    .page-sports__feature-item {
        padding: 25px;
    }
    .page-sports__step-number {
        top: 25px;
        left: 25px;
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }
    .page-sports__step-item {
        padding-top: 60px;
    }

    .page-sports__feature-list {
        grid-template-columns: 1fr;
    }

    /* FAQ Mobile */
    .page-sports__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-sports__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-sports__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-sports__faq-answer {
        padding: 0 15px;
    }
    
    .page-sports__faq-item.active .page-sports__faq-answer {
        padding: 15px !important;
    }

    /* Image responsiveness for all images within .page-sports */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__cta-buttons,
    .page-sports__button-group,
    .page-sports__btn-container,
    .page-sports__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding for sections on mobile to prevent content touching edges */
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Ensure button containers allow wrapping */
    .page-sports__cta-wrapper {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        align-items: center;
        width: 100%;
    }
}

/* Ensure no CSS filters on images */
.page-sports img {
    filter: none !important;
}