.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is white from shared.css */
}

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* HERO INTRO SECTION - Not a full hero, but an intro with H1 and CTA */
.page-the-thao__hero-intro-section {
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background-color: #f8f8f8;
  text-align: center;
}

.page-the-thao__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__intro-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-the-thao__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-the-thao__btn-secondary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* GENERAL CONTENT SECTIONS */
.page-the-thao__content-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-the-thao__content-section:nth-of-type(even) {
  background-color: #f8f8f8;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao__description-text {
  font-size: 1.05em;
  color: #555555;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-the-thao__two-column-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-the-thao__content-block {
  flex: 1;
}

.page-the-thao__content-block p {
  margin-bottom: 15px;
  color: #444444;
}

.page-the-thao__content-block .page-the-thao__btn-primary {
  margin-top: 20px;
}

.page-the-thao__image-block {
  flex: 1;
  text-align: center;
}

.page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

/* BET TYPES SECTION */
.page-the-thao__grid-layout {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__grid-three-columns {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-the-thao__grid-two-columns {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-the-thao__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid #eee;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-the-thao__card-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px;
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* GUIDE SECTION */
.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__guide-item {
  text-align: center;
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.page-the-thao__guide-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background-color: #e6f7ed; /* Light green background */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-the-thao__guide-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.page-the-thao__guide-title {
  font-size: 1.25em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__guide-text {
  font-size: 0.95em;
  color: #666666;
}

/* BENEFITS SECTION */
.page-the-thao__benefit-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.page-the-thao__benefit-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__benefit-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px;
  font-weight: 600;
}

.page-the-thao__benefit-text {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 25px;
}

/* FAQ SECTION */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-the-thao__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #e6f7ed; /* Light green background for question */
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question:hover {
  background-color: #d6f0e0;
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: #d6f0e0;
  color: #017439;
  border-bottom-color: #017439;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1;
  color: #017439;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  color: #017439;
}

.page-the-thao__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #eee;
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
}

/* HIDE DEFAULT DETAILS MARKER */
.page-the-thao__faq-item > summary::-webkit-details-marker,
.page-the-thao__faq-item > summary::marker {
  display: none;
}

/* FINAL CTA SECTION */
.page-the-thao__cta-final-section {
  background-color: #017439;
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.page-the-thao__cta-final-content .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__cta-final-content .page-the-thao__description-text {
  color: #e0e0e0;
}

.page-the-thao__cta-final-content .page-the-thao__btn-primary {
  background-color: #C30808;
  border-color: #C30808;
  color: #FFFF00;
}

.page-the-thao__cta-final-content .page-the-thao__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-the-thao__cta-final-content .page-the-thao__btn-secondary {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #017439;
}

.page-the-thao__cta-final-content .page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.4em;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
  }
  .page-the-thao__grid-two-columns {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO INTRO SECTION */
  .page-the-thao__hero-intro-section {
    padding-top: 10px !important; /* Enforce small top padding */
    padding-bottom: 40px;
  }
  .page-the-thao__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-the-thao__intro-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-the-thao__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* GENERAL CONTENT SECTIONS */
  .page-the-thao__content-section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-the-thao__description-text {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* TWO COLUMN LAYOUT */
  .page-the-thao__two-column-layout {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }
  .page-the-thao__content-block {
    width: 100%;
  }
  .page-the-thao__image-block {
    width: 100%;
  }
  .page-the-thao__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* GRID LAYOUTS */
  .page-the-thao__grid-three-columns,
  .page-the-thao__grid-two-columns {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-the-thao__card-image {
    height: 180px; /* Adjust height for mobile */
  }

  /* GUIDE SECTION */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-the-thao__guide-icon-wrapper {
    width: 80px;
    height: 80px;
  }
  .page-the-thao__guide-icon {
    width: 60px;
    height: 60px;
  }

  /* BENEFITS SECTION - using grid two columns */
  .page-the-thao__benefit-item {
    padding-bottom: 20px;
  }
  .page-the-thao__benefit-image {
    height: 200px;
  }

  /* FAQ SECTION */
  .page-the-thao__faq-list {
    padding: 0 15px;
  }
  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* FINAL CTA SECTION */
  .page-the-thao__cta-final-section {
    padding: 60px 0;
  }
  .page-the-thao__cta-final-content .page-the-thao__cta-group {
    padding: 0 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Ensure buttons stack */
    gap: 10px !important;
  }
}