.page-the-thao {
  color: var(--text-main); /* Default text color for the page, light text for dark body background */
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--color-deep-navy);
  color: var(--text-main);
}

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

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-the-thao__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

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

.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: 8px;
  display: block;
  margin: 0 auto;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
  color: inherit; /* Inherit from section for contrast */
}

.page-the-thao__section-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-the-thao__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

/* Intro Section */
.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--color-deep-navy);
  color: var(--text-main);
}

.page-the-thao__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-the-thao__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--border-color);
}

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-the-thao__feature-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Betting Types Section */
.page-the-thao__betting-types-section {
  padding: 60px 0;
  background-color: var(--light-bg);
  color: var(--text-dark-contrast);
}

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

.page-the-thao__betting-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-the-thao__betting-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-the-thao__betting-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.page-the-thao__betting-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 20px 20px;
  color: #555555;
}

/* Guide Section */
.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: var(--color-deep-navy);
  color: var(--text-main);
}

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

.page-the-thao__guide-step {
  background-color: var(--card-bg);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-the-thao__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background-color: var(--glow);
  color: var(--color-deep-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.page-the-thao__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold);
}

.page-the-thao__step-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

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

/* Promo Section */
.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: var(--light-bg);
  color: var(--text-dark-contrast);
}

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

.page-the-thao__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-the-thao__promo-card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.page-the-thao__promo-card-text {
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: #555555;
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin: 0 20px 20px;
  align-self: flex-start;
}

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

/* FAQ Section */
.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--color-deep-navy);
  color: var(--text-main);
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main);
}

.page-the-thao__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  color: var(--gold);
}

.page-the-thao__faq-item summary::-webkit-details-marker {
  display: none; /* Hide Chrome/Safari default marker */
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--glow);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 10px 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider);
}

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

/* Bottom CTA Section */
.page-the-thao__cta-bottom-section {
  padding: 60px 0;
  background-color: var(--light-bg);
  color: var(--text-dark-contrast);
}

.page-the-thao__text-center {
  text-align: center;
}

/* Reusable Button Styles */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Global color variables */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --color-deep-navy: #08162B;
  --light-bg: #f8f9fa; /* Safe light background for dark text */
  --text-dark-contrast: #333333; /* Safe dark text for light background */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-the-thao__hero-cta-buttons {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-title {
    font-size: 2.2rem;
  }

  .page-the-thao__hero-description {
    font-size: 1rem;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    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;
  }

  .page-the-thao__intro-section,
  .page-the-thao__betting-types-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 40px 0;
  }

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

  .page-the-thao__section-title {
    font-size: 2rem;
  }

  .page-the-thao__section-description {
    margin-bottom: 30px;
  }

  .page-the-thao__features-grid,
  .page-the-thao__betting-grid,
  .page-the-thao__guide-steps,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 150px; /* Still square */
    height: 150px;
    border-width: 3px;
  }

  .page-the-thao__feature-title {
    font-size: 1.3rem;
  }

  .page-the-thao__betting-card-image,
  .page-the-thao__promo-card-image {
    height: 160px;
  }

  .page-the-thao__betting-card-title,
  .page-the-thao__promo-card-title {
    font-size: 1.2rem;
  }

  .page-the-thao__guide-step {
    padding-top: 50px;
  }

  .page-the-thao__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .page-the-thao__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

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

  /* General image responsive styles */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}