/* style/the-thao.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --login-button-color: #EA7C07;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding as shared.css handles body padding */
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Example gradient, adjust if needed */
  color: var(--text-color-light);
}

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

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

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

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

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

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

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

.page-the-thao__btn-primary:hover {
  background: #c76706; /* Darken #EA7C07 */
  border-color: #c76706; /* Darken #EA7C07 */
}

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

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

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

.page-the-thao__hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

/* General Content Sections */
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

.page-the-thao p {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-color-dark);
}

.page-the-thao ul,
.page-the-thao ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: var(--text-color-dark);
}

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

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

/* Intro Section Features */
.page-the-thao__intro-section {
  background: #f8f8f8;
  padding: 60px 0;
}

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

.page-the-thao__feature-item {
  flex: 1 1 300px;
  background: var(--secondary-color);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 180px; /* Adjusted from 240px to fit better with 400x400 image */
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image itself is circular within the container */
  display: block;
}

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

/* Guide Section */
.page-the-thao__guide-section {
  background: #eaf6fa;
  padding: 60px 0;
}

.page-the-thao__guide-steps {
  list-style: none;
  counter-reset: step-counter;
  padding: 0;
}

.page-the-thao__guide-steps li {
  margin-bottom: 25px;
  position: relative;
  padding-left: 60px;
  font-size: 1.1rem;
  color: var(--text-color-dark);
}

.page-the-thao__guide-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  background: var(--primary-color);
  color: var(--text-color-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.page-the-thao__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

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

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

.page-the-thao__faq-item {
  background: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  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;
  list-style: none; /* For details/summary */
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  color: var(--primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

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

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

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

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

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

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

  .page-the-thao__feature-item {
    flex: 1 1 90%;
    max-width: 400px;
  }
}

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

  .page-the-thao__hero-container,
  .page-the-thao__container {
    padding: 20px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__main-title {
    font-size: 2rem !important;
    text-align: center;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    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;
  }

  /* Module 1 (three-column icon-box-media) - Must remain square */
  .page-the-thao__icon-box-media {
    width: 150px !important; /* Smaller but still square */
    height: 150px !important;
    border-width: 3px !important;
  }

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

  .page-the-thao p,
  .page-the-thao li {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  .page-the-thao ul,
  .page-the-thao ol {
    padding-left: 20px !important;
  }

  .page-the-thao__guide-steps li {
    padding-left: 50px !important;
  }

  .page-the-thao__guide-steps li::before {
    width: 35px !important;
    height: 35px !important;
    font-size: 1rem !important;
  }

  .page-the-thao__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }

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

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

  .page-the-thao__feature-item {
    padding: 20px !important;
  }
}