.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color from custom palette */
  background-color: var(--background, #08160F); /* Default background from custom palette */
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Adhering to the 10px top spacing for hero */
  padding-bottom: 60px;
  background-color: var(--background, #08160F);
}

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 16px;
  max-width: 1170px;
  margin: 0 auto;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-the-thao__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border, #2E7A4E);
}

.page-the-thao__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-the-thao__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-the-thao__intro-section {
  background-color: var(--card-b-g, #11271B);
  padding: 60px 0;
}

.page-the-thao__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-the-thao__feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--background, #08160F);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--deep-green, #0A4B2C);
  box-shadow: 0 0 0 8px rgba(var(--main-color-rgb), 0.2);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao__feature-title {
  font-size: 1.6em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-the-thao__popular-sports-section {
  background-color: var(--background, #08160F);
  padding: 60px 0;
}

.page-the-thao__sport-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-the-thao__sport-card {
  background-color: var(--card-b-g, #11271B);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
}

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

.page-the-thao__card-title {
  font-size: 1.5em;
  font-weight: 700;
  padding: 15px 20px 0;
}

.page-the-thao__card-link {
  color: var(--text-main, #F2FFF6);
  text-decoration: none;
}

.page-the-thao__card-link:hover {
  color: var(--primary-color, #11A84E);
}

.page-the-thao__card-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  padding: 10px 20px;
}

.page-the-thao__card-more {
  display: inline-block;
  padding: 10px 20px 15px;
  color: var(--primary-color, #11A84E);
  text-decoration: none;
  font-weight: 600;
}

.page-the-thao__card-more:hover {
  text-decoration: underline;
}

.page-the-thao__betting-types-section {
  background-color: var(--card-b-g, #11271B);
  padding: 60px 0;
}

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

.page-the-thao__content-block {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__content-block .page-the-thao__section-title,
.page-the-thao__content-block .page-the-thao__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 30px;
  color: var(--text-secondary, #A7D9B8);
}

.page-the-thao__list li {
  margin-bottom: 10px;
}

.page-the-thao__list strong {
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__image-block {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-the-thao__why-choose-section {
  background-color: var(--background, #08160F);
  padding: 60px 0;
}

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

.page-the-thao__advantage-item {
  background-color: var(--card-b-g, #11271B);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__advantage-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color, #11A84E);
}

.page-the-thao__advantage-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

.page-the-thao__guide-section {
  background-color: var(--card-b-g, #11271B);
  padding: 60px 0;
}

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

.page-the-thao__guide-item {
  background-color: var(--background, #08160F);
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__step-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__step-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

.page-the-thao__guide-image-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-the-thao__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

.page-the-thao__faq-section {
  background-color: var(--background, #08160F);
  padding: 60px 0;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-b-g, #11271B);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-main, #F2FFF6);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Remove default marker */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.8em;
  font-weight: 400;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color, #11A84E);
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-the-thao__faq-answer p {
  margin: 0;
}

.page-the-thao__cta-bottom-section {
  background-color: var(--primary-color, #11A84E);
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-the-thao__cta-bottom-section .page-the-thao__section-title {
  color: #ffffff;
}

.page-the-thao__cta-bottom-section .page-the-thao__section-description {
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* General image responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__container {
    padding: 20px 15px;
  }

  .page-the-thao__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-the-thao__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    text-align: center;
  }

  .page-the-thao__hero-description {
    text-align: center;
    font-size: 1em;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-the-thao__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__hero-image {
    order: -1; /* Image above text for mobile */
    width: 100%;
  }

  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Module 1: Intro Section */
  .page-the-thao__intro-section {
    padding: 30px 0;
  }

  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
  }

  /* Popular Sports Section */
  .page-the-thao__popular-sports-section {
    padding: 30px 0;
  }

  .page-the-thao__sport-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card-image {
    height: 180px;
  }

  /* Betting Types Section */
  .page-the-thao__betting-types-section {
    padding: 30px 0;
  }

  .page-the-thao__reverse-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__content-block .page-the-thao__section-title,
  .page-the-thao__content-block .page-the-thao__section-description {
    text-align: center;
  }

  .page-the-thao__list {
    margin-left: 15px;
    padding-left: 0;
  }

  .page-the-thao__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Section */
  .page-the-thao__why-choose-section {
    padding: 30px 0;
  }

  .page-the-thao__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__center-cta {
    margin-top: 30px;
  }

  /* Guide Section */
  .page-the-thao__guide-section {
    padding: 30px 0;
  }

  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-the-thao__faq-section {
    padding: 30px 0;
  }

  .page-the-thao__faq-list {
    margin-top: 20px;
  }

  .page-the-thao__faq-question {
    font-size: 1.05em;
    padding: 15px 20px;
  }

  .page-the-thao__faq-toggle {
    font-size: 1.5em;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }

  /* Bottom CTA Section */
  .page-the-thao__cta-bottom-section {
    padding: 30px 0;
  }

  /* General image and container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__feature-item,
  .page-the-thao__sport-card,
  .page-the-thao__advantage-item,
  .page-the-thao__guide-item,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}