/* General styles for .page-sports scope */
.page-sports {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main, #333333); /* Fallback to #333333 */
    background-color: var(--page-bg-color, #F5F7FA); /* Fallback to #F5F7FA */
}

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

.page-sports__section-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-main, #333333);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
}

.page-sports__subsection-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main, #333333);
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-sports__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    font-size: 17px;
    line-height: 1.7;
}

.page-sports__text-block p {
    margin-bottom: 15px;
}

.page-sports__text-block strong {
    color: var(--primary-color, #E53935);
}

.page-sports__list {
    list-style-type: disc;
    padding-left: 25px;
    margin-bottom: 20px;
    font-size: 17px;
}

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

/* Colors from custom palette */
.page-sports__dark-bg {
    background: var(--primary-color, #E53935);
    color: #ffffff;
}

.page-sports__light-bg {
    background: var(--card-bg, #FFFFFF);
    color: var(--text-main, #333333);
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-sports__btn-primary {
    background: linear-gradient(180deg, var(--secondary-color, #FF5A4F) 0%, var(--primary-color, #E53935) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-sports__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-sports__btn-secondary {
    background: #ffffff;
    color: var(--primary-color, #E53935);
    border: 2px solid var(--primary-color, #E53935);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-sports__btn-secondary:hover {
    background: var(--primary-color, #E53935);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-sports__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instruction */
    margin-bottom: 40px;
    overflow: hidden;
}

.page-sports__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-sports__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, will change to contain on mobile */
    display: block;
}

.page-sports__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 40px 15px 60px;
    background: var(--page-bg-color, #F5F7FA); /* Ensure content has a background */
    color: var(--text-main, #333333);
}

.page-sports__main-title {
    font-size: clamp(32px, 4.5vw, 48px); /* H1 font size with clamp */
    font-weight: 800;
    color: var(--primary-color, #E53935);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-sports__subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
}

/* Intro Section */
.page-sports__intro-section {
    padding-bottom: 60px;
}

/* Betting Types Section */
.page-sports__betting-types-section {
    padding: 60px 0;
    color: #ffffff; /* Text color for dark background */
}

.page-sports__betting-types-section .page-sports__section-title {
    color: #ffffff; /* Title color for dark background */
}

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

.page-sports__card {
    background: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #E0E0E0);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main, #333333); /* Text color for light card */
}

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

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

.page-sports__card-title {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 20px 10px;
    color: var(--primary-color, #E53935);
}

.page-sports__card-description {
    font-size: 15px;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to grow */
}

.page-sports__card-btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
    padding: 12px 20px;
    font-size: 16px;
}

/* Download Guide Section & Promotions Section & Support Section */
.page-sports__download-guide-section,
.page-sports__promotions-section,
.page-sports__support-section {
    padding: 60px 0;
}

.page-sports__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-sports__content-wrapper .page-sports__text-block,
.page-sports__content-wrapper .page-sports__image-block {
    flex: 1;
    margin-bottom: 0; /* Override default margin */
}

.page-sports__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__download-guide-section .page-sports__list li {
    font-size: 16px;
}

.page-sports__promotions-section .page-sports__btn-primary {
    margin-top: 20px;
}

/* Features Section */
.page-sports__features-section {
    padding: 60px 0;
    color: #ffffff; /* Text color for dark background */
}

.page-sports__features-section .page-sports__section-title {
    color: #ffffff; /* Title color for dark background */
}

.page-sports__feature-card {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff; /* Ensure text is white */
}

.page-sports__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #ffffff;
}

/* Security Section */
.page-sports__security-section {
    padding: 60px 0;
    color: #ffffff;
}

.page-sports__security-section .page-sports__section-title {
    color: #ffffff;
}

/* FAQ Section */
.page-sports__faq-section {
    padding: 60px 0;
}

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

details.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid var(--border-color, #e0e0e0);
  overflow: hidden;
  background: var(--card-bg, #fff);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-sports__faq-item summary.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #333333); /* Ensure text color */
}
details.page-sports__faq-item summary.page-sports__faq-question::-webkit-details-marker {
  display: none;
}
details.page-sports__faq-item summary.page-sports__faq-question:hover {
  background: #f5f5f5;
}
.page-sports__faq-qtext {
  flex: 1;
  font-size: 17px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333); /* Ensure text color */
}
.page-sports__faq-toggle {
  font-size: 26px; /* Larger toggle */
  font-weight: bold;
  color: var(--primary-color, #E53935); /* Use primary color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Slightly larger width */
  text-align: center;
}
details.page-sports__faq-item .page-sports__faq-answer {
  padding: 0 25px 25px; /* Increased padding */
  background: var(--page-bg-color, #f9f9f9); /* Use page background color for answer */
  border-radius: 0 0 8px 8px;
  color: var(--text-main, #333333); /* Ensure text color */
}
details.page-sports__faq-item[open] summary.page-sports__faq-question {
    background: #f0f0f0; /* Slightly darker background when open */
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}


/* Conclusion Section */
.page-sports__conclusion-section {
    padding: 60px 0 80px;
    text-align: center;
    color: #ffffff;
}

.page-sports__conclusion-section .page-sports__section-title {
    color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-sports__container {
        padding: 20px 25px;
    }
    .page-sports__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-sports__content-wrapper .page-sports__text-block,
    .page-sports__content-wrapper .page-sports__image-block {
        max-width: 100%;
    }
    .page-sports__download-guide-section .page-sports__content-wrapper {
        flex-direction: column-reverse; /* Image above text for download guide on tablet */
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-sports__hero-section {
        padding-top: 10px; /* Force small top padding */
    }
    .page-sports__hero-image-wrapper {
        max-height: 300px; /* Adjust height for mobile */
    }
    .page-sports__hero-image {
        object-fit: contain !important; /* Mobile: object-fit: contain */
        aspect-ratio: unset !important; /* Mobile: unset aspect ratio */
        height: auto !important; /* Ensure height is auto for contain */
        width: 100% !important; /* Ensure width is 100% */
    }
    .page-sports__hero-content {
        padding: 30px 15px 40px;
    }
    .page-sports__main-title {
        font-size: clamp(28px, 8vw, 36px);
        margin-bottom: 15px;
    }
    .page-sports__subtitle {
        font-size: clamp(16px, 4vw, 18px);
        margin-bottom: 20px;
    }

    /* 通用图片与容器 */
    .page-sports img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-sports__section,
    .page-sports__card,
    .page-sports__container,
    .page-sports__text-block,
    .page-sports__image-block,
    .page-sports__content-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-sports__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        margin-top: 30px;
    }
    .page-sports__btn-primary,
    .page-sports__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 16px;
    }
    /* 确保按钮容器在移动端也有padding */
    .page-sports__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (Betting Types Grid) */
    .page-sports__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-sports__card-image {
        height: 180px; /* Adjust card image height for mobile */
    }
    .page-sports__card-title {
        font-size: 20px;
    }
    .page-sports__card-description {
        font-size: 14px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-sports__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-sports__subsection-title {
        font-size: 20px;
    }
    .page-sports__text-block {
        font-size: 16px;
    }
    .page-sports__list {
        font-size: 16px;
    }

    /* FAQ Section */
    details.page-sports__faq-item summary.page-sports__faq-question { padding: 15px; }
    .page-sports__faq-qtext { font-size: 15px; }
    details.page-sports__faq-item .page-sports__faq-answer { padding: 0 15px 15px; }
}