/* Base styles for the-thao-cac-mon-ca-cuoc page */
.page-the-thao-cac-mon-ca-cuoc {
  background-color: var(--bg-color, #0D0E12); /* Default to dark background */
  color: var(--text-main-color, #FFF3E6); /* Default to light text */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px;
}

.page-the-thao-cac-mon-ca-cuoc__hero-section {
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  text-align: center;
}

.page-the-thao-cac-mon-ca-cuoc__hero-content {
  order: 2; /* Content below image */
  padding: 20px;
  max-width: 800px;
  width: 100%;
  box-sizing: border-box;
}

.page-the-thao-cac-mon-ca-cuoc__hero-image {
  order: 1; /* Image above content */
  width: 100%;
  max-width: 1200px;
  margin-bottom: 20px;
}

.page-the-thao-cac-mon-ca-cuoc__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao-cac-mon-ca-cuoc__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5);
}

.page-the-thao-cac-mon-ca-cuoc__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-the-thao-cac-mon-ca-cuoc__cta-button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao-cac-mon-ca-cuoc__cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

.page-the-thao-cac-mon-ca-cuoc__cta-button--small {
  padding: 10px 20px;
  font-size: 1em;
}

.page-the-thao-cac-mon-ca-cuoc__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao-cac-mon-ca-cuoc__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.3;
}

.page-the-thao-cac-mon-ca-cuoc__grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.page-the-thao-cac-mon-ca-cuoc__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

.page-the-thao-cac-mon-ca-cuoc__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 176, 77, 0.3);
}

.page-the-thao-cac-mon-ca-cuoc__card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 8px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-the-thao-cac-mon-ca-cuoc__card-title {
  font-size: 1.4em;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao-cac-mon-ca-cuoc__content-block {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: #FFF3E6;
}

.page-the-thao-cac-mon-ca-cuoc__sub-title {
  font-size: 1.6em;
  color: #FFA53A;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao-cac-mon-ca-cuoc p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #FFF3E6;
}

.page-the-thao-cac-mon-ca-cuoc__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-the-thao-cac-mon-ca-cuoc__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-the-thao-cac-mon-ca-cuoc__image-inline {
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  float: left;
  margin-right: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

.page-the-thao-cac-mon-ca-cuoc__image-inline--right {
  float: right;
  margin-left: 20px;
  margin-right: 0;
}

.page-the-thao-cac-mon-ca-cuoc__steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.page-the-thao-cac-mon-ca-cuoc__step-card {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  color: #FFF3E6;
}

.page-the-thao-cac-mon-ca-cuoc__step-number {
  font-size: 2.5em;
  color: #FF8C1A;
  font-weight: bold;
  margin-bottom: 15px;
}

.page-the-thao-cac-mon-ca-cuoc__step-title {
  font-size: 1.5em;
  color: #FFA53A;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Ensure images in content blocks are cleared */
.page-the-thao-cac-mon-ca-cuoc__content-block::after {
  content: '';
  display: table;
  clear: both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao-cac-mon-ca-cuoc__grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-the-thao-cac-mon-ca-cuoc__steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao-cac-mon-ca-cuoc__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 20px;
  }

  .page-the-thao-cac-mon-ca-cuoc__hero-content {
    padding: 15px;
  }

  .page-the-thao-cac-mon-ca-cuoc__main-title {
    font-size: 2.2em;
  }

  .page-the-thao-cac-mon-ca-cuoc__hero-description {
    font-size: 1em;
  }

  /* General image adaptation */
  .page-the-thao-cac-mon-ca-cuoc 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-the-thao-cac-mon-ca-cuoc__section,
  .page-the-thao-cac-mon-ca-cuoc__card,
  .page-the-thao-cac-mon-ca-cuoc__container,
  .page-the-thao-cac-mon-ca-cuoc__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* service 四宫格 (now 2x2 or 1x4 if needed, but 2x2 is better for cards) */
  .page-the-thao-cac-mon-ca-cuoc__grid-container {
    grid-template-columns: 1fr; /* Single column for small screens */
    gap: 20px;
  }

  /* Long text / content area */
  .page-the-thao-cac-mon-ca-cuoc p,
  .page-the-thao-cac-mon-ca-cuoc__list li {
    font-size: 1em;
  }

  .page-the-thao-cac-mon-ca-cuoc__sub-title {
    font-size: 1.4em;
  }

  .page-the-thao-cac-mon-ca-cuoc__image-inline {
    float: none;
    margin: 0 auto 20px auto;
  }

  .page-the-thao-cac-mon-ca-cuoc__image-inline--right {
    float: none;
    margin: 0 auto 20px auto;
  }

  .page-the-thao-cac-mon-ca-cuoc__steps-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Buttons and button containers */
  .page-the-thao-cac-mon-ca-cuoc__cta-button,
  .page-the-thao-cac-mon-ca-cuoc__btn-primary,
  .page-the-thao-cac-mon-ca-cuoc__btn-secondary,
  .page-the-thao-cac-mon-ca-cuoc a[class*="button"],
  .page-the-thao-cac-mon-ca-cuoc 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;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-the-thao-cac-mon-ca-cuoc__cta-buttons,
  .page-the-thao-cac-mon-ca-cuoc__button-group,
  .page-the-thao-cac-mon-ca-cuoc__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-the-thao-cac-mon-ca-cuoc__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}