.page-blog-sic-bo-rules-and-odds {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

.page-blog-sic-bo-rules-and-odds__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  background: linear-gradient(135deg, #017439, #004d26);
  color: #ffffff;
}

.page-blog-sic-bo-rules-and-odds__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog-sic-bo-rules-and-odds__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-blog-sic-bo-rules-and-odds__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-blog-sic-bo-rules-and-odds__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for H1 */
}

.page-blog-sic-bo-rules-and-odds__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog-sic-bo-rules-and-odds__btn-primary,
.page-blog-sic-bo-rules-and-odds__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-sic-bo-rules-and-odds__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom color for Register/Login font */
  border: 2px solid #C30808;
  margin-right: 15px;
}

.page-blog-sic-bo-rules-and-odds__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-blog-sic-bo-rules-and-odds__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-blog-sic-bo-rules-and-odds__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-blog-sic-bo-rules-and-odds__content-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for content area */
  color: #333333; /* Dark text for light background */
}

.page-blog-sic-bo-rules-and-odds__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog-sic-bo-rules-and-odds__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #017439;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.page-blog-sic-bo-rules-and-odds__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #333333;
}

.page-blog-sic-bo-rules-and-odds__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  min-width: 200px; /* Enforce min-size */
  min-height: 200px; /* Enforce min-size */
}

.page-blog-sic-bo-rules-and-odds__list {
  list-style: disc inside;
  margin-bottom: 20px;
  padding-left: 20px;
  color: #333333;
}

.page-blog-sic-bo-rules-and-odds__list-item {
  margin-bottom: 10px;
  font-size: 1rem;
}

.page-blog-sic-bo-rules-and-odds__table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.page-blog-sic-bo-rules-and-odds__payout-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller desktops */
}

.page-blog-sic-bo-rules-and-odds__payout-table th,
.page-blog-sic-bo-rules-and-odds__payout-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  font-size: 0.95rem;
  color: #333333;
}

.page-blog-sic-bo-rules-and-odds__payout-table th {
  background-color: #017439;
  color: #ffffff;
  font-weight: 600;
}

.page-blog-sic-bo-rules-and-odds__payout-table tbody tr:nth-child(odd) {
  background-color: #f9f9f9;
}

.page-blog-sic-bo-rules-and-odds__payout-table tbody tr:hover {
  background-color: #f0f0f0;
}

.page-blog-sic-bo-rules-and-odds__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-blog-sic-bo-rules-and-odds__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-blog-sic-bo-rules-and-odds__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-blog-sic-bo-rules-and-odds__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #eaf7ed;
  color: #017439;
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-blog-sic-bo-rules-and-odds__faq-question::-webkit-details-marker,
.page-blog-sic-bo-rules-and-odds__faq-question::marker {
  display: none;
}

.page-blog-sic-bo-rules-and-odds__faq-question:hover {
  background-color: #dcf0e0;
}

.page-blog-sic-bo-rules-and-odds__faq-item[open] .page-blog-sic-bo-rules-and-odds__faq-question {
  background-color: #017439;
  color: #ffffff;
}

.page-blog-sic-bo-rules-and-odds__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-blog-sic-bo-rules-and-odds__faq-item[open] .page-blog-sic-bo-rules-and-odds__faq-toggle {
  color: #ffffff;
}

.page-blog-sic-bo-rules-and-odds__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-blog-sic-bo-rules-and-odds__faq-item[open] .page-blog-sic-bo-rules-and-odds__faq-answer {
  max-height: 2000px; /* Large enough to accommodate content */
  padding-top: 15px;
}

.page-blog-sic-bo-rules-and-odds__faq-answer p {
  margin-bottom: 0;
  color: #333333;
}

.page-blog-sic-bo-rules-and-odds__copyright-section {
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff; /* Light text */
  padding: 30px 20px;
  text-align: center;
}

.page-blog-sic-bo-rules-and-odds__copyright-text {
  font-size: 0.9rem;
  color: #cccccc;
  margin: 0;
}

/* --- Responsive Styles --- */

/* Desktop/Tablet (up to 1024px, though 768px is the main breakpoint) */
@media (max-width: 1024px) {
  .page-blog-sic-bo-rules-and-odds__hero-section {
    padding-bottom: 30px;
  }

  .page-blog-sic-bo-rules-and-odds__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog-sic-bo-rules-and-odds__description {
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  }

  .page-blog-sic-bo-rules-and-odds__section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  }

  .page-blog-sic-bo-rules-and-odds__btn-primary,
  .page-blog-sic-bo-rules-and-odds__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-blog-sic-bo-rules-and-odds__payout-table th,
  .page-blog-sic-bo-rules-and-odds__payout-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* Mobile Styles (max-width: 768px) - MUST INCLUDE ALL REQUIRED SECTIONS */
@media (max-width: 768px) {
  .page-blog-sic-bo-rules-and-odds {
    font-size: 16px; /* Mobile base font size */
    line-height: 1.6;
  }

  /* 1. HERO 主图区域 */
  .page-blog-sic-bo-rules-and-odds__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on body for header offset */
    padding-bottom: 30px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-blog-sic-bo-rules-and-odds__hero-image-wrapper {
    margin-bottom: 20px !important;
  }

  .page-blog-sic-bo-rules-and-odds__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    margin-bottom: 15px !important;
  }

  .page-blog-sic-bo-rules-and-odds__description {
    font-size: 1rem !important;
    margin-bottom: 25px !important;
  }

  /* 2. 产品展示图区域 (Not explicitly present as 'products', but general content images) */
  /* This page does not have a 'products-section' or 'gameshow' grid. General image rules apply. */

  /* 3. 通用图片与容器 */
  .page-blog-sic-bo-rules-and-odds img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Remove min-width for mobile */
    min-height: unset !important; /* Remove min-height for mobile */
  }

  .page-blog-sic-bo-rules-and-odds__container,
  .page-blog-sic-bo-rules-and-odds__content-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Table specific for mobile */
  .page-blog-sic-bo-rules-and-odds__table-wrapper {
    margin: 20px 0 !important;
  }

  .page-blog-sic-bo-rules-and-odds__payout-table {
    min-width: unset !important; /* Allow table to shrink */
    width: 100% !important;
  }

  .page-blog-sic-bo-rules-and-odds__payout-table th,
  .page-blog-sic-bo-rules-and-odds__payout-table td {
    padding: 10px !important;
    font-size: 0.85rem !important;
  }

  /* 4. 按钮与按钮容器 */
  .page-blog-sic-bo-rules-and-odds__btn-primary,
  .page-blog-sic-bo-rules-and-odds__btn-secondary,
  .page-blog-sic-bo-rules-and-odds a[class*="button"],
  .page-blog-sic-bo-rules-and-odds a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-right: 0 !important; /* Remove right margin for single column */
  }

  .page-blog-sic-bo-rules-and-odds__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* 5. 其他内容模块 (e.g., FAQ, general text blocks) */
  .page-blog-sic-bo-rules-and-odds__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    margin-top: 30px !important;
    margin-bottom: 20px !important;
  }

  .page-blog-sic-bo-rules-and-odds__text-block {
    font-size: 0.95rem !important;
  }

  .page-blog-sic-bo-rules-and-odds__list {
    padding-left: 15px !important;
  }

  .page-blog-sic-bo-rules-and-odds__list-item {
    font-size: 0.95rem !important;
  }

  .page-blog-sic-bo-rules-and-odds__faq-question {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }

  .page-blog-sic-bo-rules-and-odds__faq-toggle {
    font-size: 1.2rem !important;
  }

  .page-blog-sic-bo-rules-and-odds__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.95rem !important;
  }

  .page-blog-sic-bo-rules-and-odds__copyright-section {
    padding: 20px 15px !important;
  }

  .page-blog-sic-bo-rules-and-odds__copyright-text {
    font-size: 0.85rem !important;
  }
}