/* style/sports.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base styles for the sports page */
.page-sports {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
}

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

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure nothing overflows */
    background-color: #08160F; /* Match background */
}

.page-sports__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
}

.page-sports__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-sports__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: bold;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-sports__hero-description {
    font-size: 1.2rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-sports__cta-buttons--center {
    margin-top: 40px;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #FFFFFF;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-sports__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-sports__btn-secondary {
    background-color: transparent;
    color: #57E38D; /* Glow */
    border: 2px solid #57E38D; /* Glow */
}

.page-sports__btn-secondary:hover {
    background-color: #57E38D; /* Glow */
    color: #08160F; /* Background */
    transform: translateY(-2px);
}

.page-sports__btn-tertiary {
    background-color: #1E3A2A; /* Divider */
    color: #A7D9B8; /* Text Secondary */
    border: none;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 5px;
}

.page-sports__btn-tertiary:hover {
    background-color: #2E7A4E; /* Border */
    color: #F2FFF6; /* Text Main */
}

/* General Section Styles */
.page-sports__section {
    padding: 60px 0;
    border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-sports__section:last-of-type {
    border-bottom: none;
}

.page-sports__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-sports__text-block {
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    text-align: justify;
}

.page-sports__text-block strong {
    color: #F2C14E; /* Gold */
}

.page-sports__text-block a {
    color: #57E38D; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-sports__text-block a:hover {
    color: #2AD16F; /* Lighter green from button gradient */
    text-decoration: underline;
}

.page-sports__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Why Choose Section */
.page-sports__why-choose-section {
    background-color: #11271B; /* Card BG */
}

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

.page-sports__feature-card {
    background-color: #0A4B2C; /* Deep Green */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-title {
    font-size: 1.4rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-sports__feature-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

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

.page-sports__step-card {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.page-sports__step-card:hover {
    transform: translateY(-3px);
}

.page-sports__step-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 10px;
}

.page-sports__step-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Bet Types Section */
.page-sports__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-sports__list-item {
    background-color: #0A4B2C; /* Deep Green */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #57E38D; /* Glow */
}

.page-sports__list-item strong {
    color: #F2C14E; /* Gold */
}

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

.page-sports__promo-card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-sports__promo-image {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-sports__promo-title {
    font-size: 1.3rem;
    color: #F2C14E; /* Gold */
    margin: 20px 15px 10px;
}

.page-sports__promo-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    padding: 0 15px 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-sports__promo-card .page-sports__btn-tertiary {
    margin: 0 15px 20px;
    align-self: center;
}

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

.page-sports__faq-item {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    -webkit-touch-callout: none; /* Disable text selection on iOS */
    -webkit-user-select: none;   /* Disable text selection on iOS */
    -khtml-user-select: none;    /* Disable text selection on Konqueror HTML */
    -moz-user-select: none;      /* Disable text selection on Firefox */
    -ms-user-select: none;       /* Disable text selection on Internet Explorer/Edge */
    user-select: none;           /* Disable text selection on modern browsers */
}

.page-sports__faq-question:hover {
    background-color: #1E3A2A; /* Divider */
}

.page-sports__faq-qtext {
    flex-grow: 1;
    color: #F2C14E; /* Gold */
}

.page-sports__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow */
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
    content: '−';
}

.page-sports__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

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

/* Conclusion Section */
.page-sports__conclusion-section {
    text-align: center;
    padding-bottom: 80px;
}

.page-sports__conclusion-content {
    background-color: #0A4B2C; /* Deep Green */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* --- Responsive Design --- */
/* Mobile First Approach */
@media (max-width: 768px) {
    .page-sports {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-sports__container {
        padding: 0 15px !important; /* Adjust padding for mobile */
    }

    .page-sports__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-sports__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-sports__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-sports__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        width: 100%; /* Ensure button container takes full width */
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-tertiary {
        width: 100% !important; /* Full width buttons on mobile */
        max-width: 100% !important;
        padding: 12px 15px !important; /* Adjust padding */
        font-size: 1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-sports__section {
        padding: 40px 0;
    }

    .page-sports__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    .page-sports__text-block {
        font-size: 1rem;
    }

    /* Images responsive */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size is still met */
        min-height: 200px !important;
        box-sizing: border-box !important;
    }

    .page-sports__image {
        margin: 30px auto !important;
    }

    /* Card/Grid adjustments */
    .page-sports__feature-grid,
    .page-sports__steps-grid,
    .page-sports__promo-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    .page-sports__feature-card,
    .page-sports__step-card,
    .page-sports__promo-card {
        padding: 20px;
        box-sizing: border-box;
    }

    .page-sports__promo-image {
        height: 180px; /* Adjust promo image height for mobile */
    }

    .page-sports__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-sports__faq-answer {
        padding: 15px;
    }

    .page-sports__conclusion-content {
        padding: 30px;
    }
}

/* Ensure content images within page-sports do not have width/height less than 200px */
.page-sports img:not(.page-sports__hero-image) {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
}
.page-sports__promo-image {
    min-width: 200px;
    min-height: 200px;
}