/* 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;
  --gradient-button: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: var(--background-page-color);
}

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

.page-the-thao__hero-content {
  flex: 1 1 500px; /* Allows content to grow but has a base width */
  color: var(--text-main-color);
}

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

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

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

.page-the-thao__hero-image {
  flex: 1 1 450px; /* Allows image to grow but has a base width */
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

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

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

.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__intro-section {
  padding: 60px 0;
  background-color: var(--card-bg-color);
}

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

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

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

.page-the-thao__feature-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__feature-item {
  flex: 1 1 300px;
  max-width: 350px;
  text-align: center;
  padding: 30px;
  border-radius: 12px;
  background-color: var(--background-page-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-the-thao__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__text-block {
  color: #ffffff;
}

.page-the-thao__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-main-color);
  text-align: justify;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  list-style: none; /* Hide 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.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
}

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

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

.page-the-thao__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-the-thao__cta-final-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-the-thao__cta-final-section .page-the-thao__section-title {
  margin-bottom: 25px;
}

.page-the-thao__cta-final-section .page-the-thao__section-description {
  margin-bottom: 40px;
}

.page-the-thao__copyright-section {
  padding: 30px 0;
  background-color: #222;
  color: #f0f0f0;
  text-align: center;
  font-size: 0.9rem;
}

.page-the-thao__copyright-text {
  margin: 0;
}

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

/* General responsive for all images and containers */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__section,
.page-the-thao__card,
.page-the-thao__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column-reverse;
    text-align: center;
    gap: 30px;
  }

  .page-the-thao__hero-content {
    flex: 1 1 auto;
  }

  .page-the-thao__main-title,
  .page-the-thao__hero-description {
    text-align: center;
  }

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

  .page-the-thao__hero-image {
    flex: 1 1 auto;
  }
}

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

  .page-the-thao__hero-container {
    padding: 20px 15px;
    gap: 20px;
  }

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

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

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

  /* 6. Buttons */
  .page-the-thao__btn,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao 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;
  }
  
  .page-the-thao__hero-cta-buttons,
  .page-the-thao__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 2. Module 1 Three-column circular images */
  .page-the-thao__intro-section {
    padding: 40px 0;
  }

  .page-the-thao__feature-list {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .page-the-thao__feature-item {
    max-width: 90%;
    width: 100%;
    padding: 25px;
  }

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

  /* 4. Content sections (Promo, Guide, Trust, Blog, Intro) */
  .page-the-thao__content-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-final-section {
    padding: 40px 0;
  }

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

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

  .page-the-thao__section-description,
  .page-the-thao__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* 5. General images and containers */
  .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;
  }

  .page-the-thao__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }

  /* FAQ specific */
  .page-the-thao__faq-question {
    padding: 15px 20px;
    font-size: 1.1rem;
  }

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

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

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