/* style/sports.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the sports page content */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #000 from shared.css */
}

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

/* Sections */
.page-sports__hero-section,
.page-sports__overview-section,
.page-sports__why-choose-us,
.page-sports__promotions-section,
.page-sports__how-to-bet-section,
.page-sports__video-section,
.page-sports__faq-section,
.page-sports__cta-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden; /* Prevent content overflow */
}

/* Color schemes for sections */
.page-sports__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-sports__dark-bg {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

/* Hero Section */
.page-sports__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #000000; /* Ensure hero section has a background on dark body */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4; /* Slightly dim image for text readability */
}

.page-sports__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    color: #ffffff;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

.page-sports__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-sports__btn-link {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-sports__btn-link:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Titles */
.page-sports__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-sports__card-title,
.page-sports__faq-title,
.page-sports__step-title,
.page-sports__advantage-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-sports__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.1em;
}

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

.page-sports__feature-card,
.page-sports__promo-card {
    background-color: #ffffff;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px; /* Ensure cards have enough height for content */
}

.page-sports__feature-card img,
.page-sports__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

.page-sports__feature-icon {
    width: 100%; /* Occupy card width */
    height: auto;
}

.page-sports__advantage-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: left;
}

/* How-To-Bet Steps */
.page-sports__steps-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 900px;
}

.page-sports__step-item {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: left;
}

.page-sports__step-item:last-child {
    margin-bottom: 0;
}

.page-sports__step-description {
    margin-bottom: 20px;
}

/* Video Section */
.page-sports__video-section {
    background-color: #000000; /* Dark background for video */
    color: #ffffff;
}

.page-sports__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto 30px auto;
    border-radius: 10px;
}

.page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer; /* Indicate it's clickable */
}

.page-sports__video-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
}

/* FAQ Section */
.page-sports__faq-section {
    background-color: #ffffff;
    color: #333333;
}

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

.page-sports__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-sports__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
    background-color: #e0e0e0;
}

.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;
    background-color: #ffffff;
    color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px;
}

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

/* CTA Section */
.page-sports__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Global image styles */
.page-sports img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filters are applied */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__hero-title {
        font-size: 2.8em;
    }
    .page-sports__section-title {
        font-size: 2em;
    }
    .page-sports__features-grid,
    .page-sports__advantages-grid,
    .page-sports__promos-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-sports__hero-section {
        min-height: 400px;
    }
    .page-sports__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-sports__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-sports__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-sports__card-title,
    .page-sports__faq-title,
    .page-sports__step-title,
    .page-sports__advantage-title {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .page-sports__text-block {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary,
    .page-sports__btn-link {
        padding: 12px 20px;
        font-size: 0.9em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-sports__hero-cta,
    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }

    /* Images responsiveness */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure content images are not too small */
        min-height: 200px !important;
        object-fit: cover;
    }

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

    .page-sports__video-section,
    .page-sports__video-container,
    .page-sports__video-wrapper,
    .page-sports__container,
    .page-sports__hero-section,
    .page-sports__overview-section,
    .page-sports__why-choose-us,
    .page-sports__promotions-section,
    .page-sports__how-to-bet-section,
    .page-sports__faq-section,
    .page-sports__cta-section,
    .page-sports__feature-card,
    .page-sports__promo-card,
    .page-sports__advantage-item,
    .page-sports__step-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important;
    }

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

    .page-sports__video-wrapper {
        padding-bottom: 56.25% !important;
    }

    /* Ensure content area images are not smaller than 200px */
    .page-sports__content-area img,
    .page-sports__text-block img,
    .page-sports__features-grid img,
    .page-sports__promos-grid img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* For elements within .page-sports that are not specifically styled, ensure text color is readable */
.page-sports h1, .page-sports h2, .page-sports h3, .page-sports h4, .page-sports h5, .page-sports h6 {
    color: inherit;
}
.page-sports p, .page-sports li {
    color: inherit;
}

/* Specific contrast fixes if needed, though with dark/light sections it should be fine */
.page-sports__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-sports__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}