/* style/sports.css */

/* --- General Page Styles --- */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #f9f9f9; /* Light background for the main content area */
}

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

.page-sports__section {
    padding: 60px 0;
    text-align: center;
}

.page-sports__section:nth-of-type(even) {
    background-color: #f0f0f0; /* Alternate background for sections */
}

.page-sports__section-title {
    font-size: 36px;
    color: #0A2342;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.page-sports p {
    font-size: 17px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* --- 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); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #0A2342 0%, #1A3F6D 100%); /* Dark blue gradient */
    color: #ffffff;
    overflow: hidden; /* For image */
}

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

.page-sports__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    border-radius: 12px;
}

.page-sports__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    min-height: 200px; /* Minimum size requirement */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-sports__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold for main title */
}

.page-sports__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-sports__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold button */
    color: #0A2342; /* Dark blue text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* --- Introduction Section --- */
.page-sports__section--introduction p {
    font-size: 18px;
}

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

.page-sports__card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.page-sports__card-title {
    font-size: 24px;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__card p {
    font-size: 16px;
    color: #555555;
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    flex-grow: 1;
}

.page-sports__image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 20px;
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-sports__image--center {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__image--full-width {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* --- Guide Section --- */
.page-sports__ordered-list {
    list-style: none;
    counter-reset: guide-step;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-sports__ordered-list li {
    counter-increment: guide-step;
    margin-bottom: 25px;
    padding-left: 50px;
    position: relative;
    font-size: 18px;
    color: #333333;
    line-height: 1.5;
}

.page-sports__ordered-list li strong {
    color: #0A2342;
    font-size: 19px;
}

.page-sports__ordered-list li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0;
    background: #FFD700;
    color: #0A2342;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__cta-button--small {
    padding: 12px 30px;
    font-size: 18px;
    margin-top: 30px;
}

/* --- Diverse Sports Section --- */
.page-sports__unordered-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-sports__unordered-list li {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333333;
    line-height: 1.5;
    padding-left: 40px;
    position: relative;
}

.page-sports__list-icons li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.page-sports__list-icon {
    font-size: 28px;
    margin-right: 15px;
    color: #FFD700; /* Gold icon */
    flex-shrink: 0;
    line-height: 1;
}

.page-sports__list-icons li strong {
    color: #0A2342;
    font-size: 19px;
}

/* --- Promotions Section --- */
.page-sports__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-sports__card--promotion {
    background: #FFD700; /* Gold background for promotion cards */
    color: #0A2342; /* Dark blue text */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__card--promotion .page-sports__card-title {
    color: #0A2342;
}

.page-sports__card--promotion p {
    color: #333333;
}

.page-sports__button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-sports__btn-primary {
    background: #0A2342;
    color: #ffffff;
    border-color: #0A2342;
}

.page-sports__btn-primary:hover {
    background: #1A3F6D;
    border-color: #1A3F6D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__btn-secondary {
    background: transparent;
    color: #0A2342;
    border-color: #0A2342;
}

.page-sports__btn-secondary:hover {
    background: #0A2342;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --- Advantages Section --- */
.page-sports__list-advantages {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-sports__list-advantages li {
    font-size: 17px;
    line-height: 1.5;
    color: #333333;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-sports__list-advantages li:hover {
    transform: translateY(-3px);
}

.page-sports__list-advantages li strong {
    color: #0A2342;
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
}

/* --- Tips Section --- */
.page-sports__card--tip {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__card--tip .page-sports__card-title {
    color: #0A2342;
}

.page-sports__card--tip p {
    color: #555555;
}

/* --- Security Section --- */
.page-sports__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.page-sports__feature-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.page-sports__feature-icon {
    font-size: 48px;
    color: #FFD700; /* Gold icon */
    margin-bottom: 20px;
    display: block;
}

.page-sports__feature-title {
    font-size: 24px;
    color: #0A2342;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__feature-item p {
    font-size: 16px;
    color: #555555;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

/* --- FAQ Section --- */
.page-sports__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-sports__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

/* 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;
    background: #f9f9f9; /* Light background for answer */
    color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 2000px !important; /* 🚨 Use !important and large value */
    padding: 20px 15px !important;
    opacity: 1;
    background: #ffffff; /* White background when active */
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 问题样式 */
.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #0A2342; /* Dark blue background for question */
    color: #ffffff; /* White text for question */
    border: 1px solid #0A2342;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-sports__faq-question:hover {
    background: #1A3F6D; /* Slightly lighter dark blue on hover */
    border-color: #1A3F6D;
}

.page-sports__faq-question:active {
    background: #071A31;
    border-color: #071A31;
}

/* 问题标题样式 */
.page-sports__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none; /* Prevent h3 from blocking click */
    color: #ffffff; /* White text */
}

/* 切换图标 */
.page-sports__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #FFD700; /* Gold toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
    color: #ffffff; /* White toggle when active */
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
    .page-sports__section {
        padding: 40px 0;
    }

    .page-sports__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .page-sports p {
        font-size: 16px;
        text-align: left;
    }

    /* HERO Section Mobile */
    .page-sports__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-sports__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
        max-height: 300px; /* Adjust hero image height for mobile */
    }

    .page-sports__hero-image img {
        min- /* Ensure minimum height on mobile */
    }

    .page-sports__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-sports__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-sports__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 15px;
        width: 100% !important; /* Mobile button full width */
        max-width: 300px !important; /* Max width for central alignment */
        margin-left: auto !important;
        margin-right: auto !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Grid Layouts Mobile */
    .page-sports__grid-3-cols,
    .page-sports__grid-2-cols,
    .page-sports__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .page-sports__card {
        padding: 20px;
    }

    .page-sports__card-title {
        font-size: 20px;
    }

    .page-sports__card p {
        font-size: 15px;
    }

    .page-sports__image {
        margin-top: 20px;
        margin-bottom: 10px;
        min-height: 200px !important; /* Ensure min size for all images */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to prevent image touching edges */
    }

    .page-sports__image--center,
    .page-sports__image--full-width {
        margin-left: auto;
        margin-right: auto;
    }

    /* Lists Mobile */
    .page-sports__ordered-list,
    .page-sports__unordered-list,
    .page-sports__list-advantages {
        margin: 20px auto;
        padding: 0 15px;
    }

    .page-sports__ordered-list li,
    .page-sports__unordered-list li,
    .page-sports__list-advantages li {
        font-size: 16px;
        padding-left: 40px;
        margin-bottom: 15px;
    }

    .page-sports__ordered-list li::before {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .page-sports__list-icon {
        font-size: 24px;
        margin-right: 10px;
    }

    /* Buttons Mobile */
    .page-sports__button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
        padding: 0 15px; /* Add padding to button group */
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Mobile */
    .page-sports__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-sports__faq-question h3 {
        font-size: 16px;
        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;
    }

    /* Ensure content area containers also respect mobile padding */
    .page-sports__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}