/* style/the-thao.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login-color: #EA7C07;
}

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

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

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

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.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(--text-light);
}

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

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

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

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

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

.page-the-thao__btn-primary {
  background-color: var(--button-login-color); /* Use login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--button-login-color);
}

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

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

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

.page-the-thao__btn-tertiary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-the-thao__btn-tertiary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

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

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

.page-the-thao__section-title--light {
  color: var(--text-light);
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  margin-bottom: 30px;
  text-align: justify;
}

.page-the-thao__text-block p {
  margin-bottom: 15px;
}

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

.page-the-thao__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

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

.page-the-thao__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-the-thao__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

.page-the-thao__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

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

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

.page-the-thao__feature-description {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.page-the-thao__guide-section {
  padding: 60px 16px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1170px;
  margin: 0 auto;
}

.page-the-thao__guide-step {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__step-description {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.page-the-thao__faq-section {
  padding: 60px 16px;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

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

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−';
}

.page-the-thao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: var(--text-dark);
  border-top: 1px solid #e0e0e0;
}

.page-the-thao__cta-bottom-section {
  padding: 60px 16px;
  text-align: center;
}

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

.page-the-thao__cta-bottom-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    padding: 30px 16px;
    gap: 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.5rem);
  }

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

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

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

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    min-width: unset;
    width: 100%;
    text-align: center;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem; /* Adjusted for mobile readability */
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons - General */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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;
  }

  /* Content Sections */
  .page-the-thao__content-area,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 40px 15px;
  }

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

  .page-the-thao__text-block {
    font-size: 1rem;
  }

  /* Features Grid (similar to Module 1 but adapted) */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 15px 40px;
  }

  .page-the-thao__feature-card {
    padding: 20px;
  }

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

  /* Guide Steps */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

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

  .page-the-thao__step-title {
    font-size: 1.2rem;
  }

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

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

  /* Images - General */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers with images */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__cta-bottom-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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