/* style/the-thao.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-page-color);
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as shared.css likely handles body padding */
  padding-bottom: 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 20px;
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn--primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-the-thao__content-section {
  padding: 60px 0;
}

.page-the-thao__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-main-color);
}

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

.page-the-thao__feature-card, .page-the-thao__promo-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

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

.page-the-thao__feature-title, .page-the-thao__promo-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-the-thao__feature-image, .page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__feature-text, .page-the-thao__promo-text {
  font-size: 1em;
  color: var(--text-main-color);
}

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

.page-the-thao__bet-type-card {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-the-thao__bet-type-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__bet-type-text {
  font-size: 0.95em;
  color: var(--text-main-color);
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter;
}

.page-the-thao__guide-step {
  background: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  padding-left: 70px;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-the-thao__guide-step::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  left: 20px;
  top: 30px;
  font-size: 2em;
  font-weight: 700;
  color: var(--secondary-color);
}

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

.page-the-thao__step-text {
  font-size: 1em;
  color: var(--text-main-color);
}

.page-the-thao__inline-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-the-thao__inline-link:hover {
  color: var(--secondary-color);
}

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

.page-the-thao__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-the-thao__tip-item {
  background: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  color: var(--text-main-color);
}

.page-the-thao__tip-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__tip-text {
  font-size: 1em;
  color: var(--text-main-color);
}

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

.page-the-thao__faq-item {
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker, 
.page-the-thao__faq-question::marker {
  display: none;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

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

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

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

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

.page-the-thao__conclusion-section .page-the-thao__section-description {
  color: #ffffff;
}

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

/* Tablet and Mobile styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    padding: 20px 15px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-the-thao__intro-text {
    font-size: 1em;
  }
  .page-the-thao__cta-buttons {
    gap: 15px;
  }
  .page-the-thao__btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.6em, 3.8vw, 2.5em);
  }
  .page-the-thao__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-the-thao__feature-grid, .page-the-thao__promo-grid, .page-the-thao__bet-type-grid, .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-the-thao__guide-step {
    padding-left: 60px;
  }
  .page-the-thao__guide-step::before {
    left: 15px;
    font-size: 1.8em;
  }
  .page-the-thao__tip-item {
    padding: 20px;
  }
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Top section title + Dual CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-the-thao__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
    margin-bottom: 10px;
  }
  .page-the-thao__intro-text {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-the-thao__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important; /* Ensure padding is within bounds */
    font-size: 1em !important;
  }
  .page-the-thao__btn--primary, .page-the-thao__btn--secondary {
    display: block;
  }

  /* 2. Single column long-form container */
  .page-the-thao__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__content-section {
    padding: 40px 0;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.5em, 5vw, 2em) !important;
    margin-bottom: 15px;
  }
  .page-the-thao__section-description {
    font-size: 0.9em;
    margin-bottom: 25px;
  }
  .page-the-thao__feature-card, .page-the-thao__promo-card, .page-the-thao__bet-type-card, .page-the-thao__guide-step, .page-the-thao__tip-item, .page-the-thao__faq-item {
    padding: 20px !important;
  }
  .page-the-thao__feature-title, .page-the-thao__promo-title, .page-the-thao__bet-type-title, .page-the-thao__step-title, .page-the-thao__tip-title {
    font-size: 1.2em !important;
    margin-bottom: 10px;
  }
  .page-the-thao__feature-text, .page-the-thao__promo-text, .page-the-thao__bet-type-text, .page-the-thao__step-text, .page-the-thao__tip-text, .page-the-thao__faq-answer p {
    font-size: 0.9em !important;
  }

  /* 3. General images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__hero-image-wrapper,
  .page-the-thao__feature-card,
  .page-the-thao__promo-card,
  .page-the-thao__bet-type-card,
  .page-the-thao__guide-step,
  .page-the-thao__tip-item,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-the-thao__feature-image, .page-the-thao__promo-image {
    height: 180px;
  }

  /* 4. Buttons and button containers (already covered in top section CTA, but reinforce) */
  .page-the-thao__cta-buttons, .page-the-thao__cta-center {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 5. Registration tutorial and FAQ blocks */
  .page-the-thao__guide-step {
    padding-left: 55px !important;
  }
  .page-the-thao__guide-step::before {
    left: 15px !important;
    font-size: 1.6em !important;
  }
  .page-the-thao__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 15px !important;
  }
  .page-the-thao__faq-toggle {
    font-size: 1.3em !important;
  }
}