:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-color: #C30808;
    --login-color: #C30808;
    --background-color: #FFFFFF;
    --register-login-font-color: #FFFF00;
    --text-color-light-bg: #333333;
    --text-color-dark-bg: #ffffff;
    --border-color: #e0e0e0;
}

.page-the-thao-huong-dan-dat-cuoc {
    font-family: 'Arial', sans-serif;
    color: var(--text-color-light-bg);
    background-color: var(--background-color);
    line-height: 1.6;
}

.page-the-thao-huong-dan-dat-cuoc__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-the-thao-huong-dan-dat-cuoc__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #f0f0f0; /* Fallback background */
}

.page-the-thao-huong-dan-dat-cuoc__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-the-thao-huong-dan-dat-cuoc__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
}

.page-the-thao-huong-dan-dat-cuoc__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-color-light-bg);
    background: var(--secondary-color);
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with image */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao-huong-dan-dat-cuoc__main-title {
    font-size: clamp(28px, 4vw, 48px);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-the-thao-huong-dan-dat-cuoc__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-color-light-bg);
}

.page-the-thao-huong-dan-dat-cuoc__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-the-thao-huong-dan-dat-cuoc__btn-primary,
.page-the-thao-huong-dan-dat-cuoc__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-the-thao-huong-dan-dat-cuoc__btn-primary {
    background-color: var(--register-color); /* Using register color for primary action */
    color: var(--register-login-font-color); /* Using login font color for contrast */
    border: 2px solid var(--register-color);
}

.page-the-thao-huong-dan-dat-cuoc__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-the-thao-huong-dan-dat-cuoc__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-the-thao-huong-dan-dat-cuoc__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-the-thao-huong-dan-dat-cuoc__content-section {
    padding: 60px 0;
}

.page-the-thao-huong-dan-dat-cuoc__light-bg {
    background-color: var(--background-color);
    color: var(--text-color-light-bg);
}

.page-the-thao-huong-dan-dat-cuoc__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-color-dark-bg);
}

.page-the-thao-huong-dan-dat-cuoc__section-title {
    font-size: clamp(24px, 3.5vw, 42px);
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

.page-the-thao-huong-dan-dat-cuoc__section-title--light {
    color: var(--text-color-dark-bg);
}

.page-the-thao-huong-dan-dat-cuoc__article-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.8;
}

.page-the-thao-huong-dan-dat-cuoc__article-body p {
    margin-bottom: 20px;
}

.page-the-thao-huong-dan-dat-cuoc__article-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-the-thao-huong-dan-dat-cuoc__article-body a:hover {
    text-decoration: underline;
}

.page-the-thao-huong-dan-dat-cuoc__text-link {
    color: var(--register-login-font-color);
}

.page-the-thao-huong-dan-dat-cuoc__subsection-title {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-the-thao-huong-dan-dat-cuoc__subsection-title--light {
    color: var(--text-color-dark-bg);
}

.page-the-thao-huong-dan-dat-cuoc__list,
.page-the-thao-huong-dan-dat-cuoc__ordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-the-thao-huong-dan-dat-cuoc__list-item {
    margin-bottom: 10px;
}

.page-the-thao-huong-dan-dat-cuoc__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao-huong-dan-dat-cuoc__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

/* FAQ Section Styling */
details.page-the-thao-huong-dan-dat-cuoc__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--secondary-color);
}
details.page-the-thao-huong-dan-dat-cuoc__faq-item summary.page-the-thao-huong-dan-dat-cuoc__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color);
}
details.page-the-thao-huong-dan-dat-cuoc__faq-item summary.page-the-thao-huong-dan-dat-cuoc__faq-question::-webkit-details-marker {
  display: none;
}
details.page-the-thao-huong-dan-dat-cuoc__faq-item summary.page-the-thao-huong-dan-dat-cuoc__faq-question:hover {
  background: #f5f5f5;
}
.page-the-thao-huong-dan-dat-cuoc__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-the-thao-huong-dan-dat-cuoc__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-the-thao-huong-dan-dat-cuoc__faq-item .page-the-thao-huong-dan-dat-cuoc__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-light-bg);
}

/* Responsive Styling */
@media (max-width: 1024px) {
    .page-the-thao-huong-dan-dat-cuoc__container {
        padding: 15px;
    }
    .page-the-thao-huong-dan-dat-cuoc__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
    .page-the-thao-huong-dan-dat-cuoc__main-title {
        font-size: clamp(26px, 4.5vw, 40px);
    }
    .page-the-thao-huong-dan-dat-cuoc__intro-text {
        font-size: 17px;
    }
    .page-the-thao-huong-dan-dat-cuoc__btn-primary,
    .page-the-thao-huong-dan-dat-cuoc__btn-secondary {
        padding: 12px 25px;
        font-size: 17px;
    }
    .page-the-thao-huong-dan-dat-cuoc__section-title {
        font-size: clamp(22px, 3.8vw, 36px);
    }
    .page-the-thao-huong-dan-dat-cuoc__article-body {
        font-size: 16px;
    }
    .page-the-thao-huong-dan-dat-cuoc__subsection-title {
        font-size: clamp(19px, 2.8vw, 26px);
    }
}

@media (max-width: 849px) {
    .page-the-thao-huong-dan-dat-cuoc__hero-image {
        object-fit: contain !important; /* Mobile: contain to show full image */
        aspect-ratio: unset !important; /* Remove aspect ratio if set */
    }
}

@media (max-width: 768px) {
    .page-the-thao-huong-dan-dat-cuoc__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* HERO 主图区域 */
    .page-the-thao-huong-dan-dat-cuoc__hero-section {
        padding-top: 10px; /* Small top padding, body handles header offset */
    }
    .page-the-thao-huong-dan-dat-cuoc__hero-image-wrapper {
        max-height: 400px; /* Adjust max height for mobile hero */
    }
    .page-the-thao-huong-dan-dat-cuoc__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Ensure image is fully visible */
        aspect-ratio: unset !important;
    }
    .page-the-thao-huong-dan-dat-cuoc__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }
    .page-the-thao-huong-dan-dat-cuoc__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .page-the-thao-huong-dan-dat-cuoc__intro-text {
        font-size: 16px;
    }

    /* 按钮与按钮容器 */
    .page-the-thao-huong-dan-dat-cuoc__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .page-the-thao-huong-dan-dat-cuoc__btn-primary,
    .page-the-thao-huong-dan-dat-cuoc__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        font-size: 16px;
        padding: 12px 20px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-the-thao-huong-dan-dat-cuoc__section-title {
        font-size: clamp(20px, 5vw, 32px);
        margin-bottom: 30px;
    }
    .page-the-thao-huong-dan-dat-cuoc__article-body {
        font-size: 15px;
        padding: 0 5px; /* Slight padding for content */
    }
    .page-the-thao-huong-dan-dat-cuoc__subsection-title {
        font-size: clamp(18px, 4.5vw, 24px);
        margin-top: 25px;
        margin-bottom: 15px;
    }

    /* 通用图片与容器 */
    .page-the-thao-huong-dan-dat-cuoc img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-the-thao-huong-dan-dat-cuoc__content-image {
        margin: 20px auto;
    }
    .page-the-thao-huong-dan-dat-cuoc__content-section {
        padding: 40px 0;
    }
    .page-the-thao-huong-dan-dat-cuoc__list,
    .page-the-thao-huong-dan-dat-cuoc__ordered-list {
        padding-left: 15px;
    }

    /* FAQ Section */
    details.page-the-thao-huong-dan-dat-cuoc__faq-item summary.page-the-thao-huong-dan-dat-cuoc__faq-question { padding: 15px; }
    .page-the-thao-huong-dan-dat-cuoc__faq-qtext { font-size: 16px; }
    .page-the-thao-huong-dan-dat-cuoc__faq-toggle { font-size: 20px; width: 24px; height: 24px; margin-left: 10px;}
    details.page-the-thao-huong-dan-dat-cuoc__faq-item .page-the-thao-huong-dan-dat-cuoc__faq-answer { padding: 0 15px 15px; }

    /* Product display section (not applicable for this page, but as a general rule if it were present) */
    .page-the-thao-huong-dan-dat-cuoc__products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        gap: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-the-thao-huong-dan-dat-cuoc__products-grid .page-the-thao-huong-dan-dat-cuoc__product-card:nth-child(n+3) { /* For example, ensure 2-column layout */
        grid-column: span 1; /* Each card takes 1 column */
    }
    .page-the-thao-huong-dan-dat-cuoc__cta-bottom-section {
        padding: 60px 0;
    }
}