/* style/the-thao.css */

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

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

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-the-thao__description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 20px;
}

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

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

.page-the-thao__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

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

.page-the-thao__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 0;
}

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

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

.page-the-thao__hero-content {
  flex: 1 1 50%;
  color: var(--text-dark);
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Using clamp for responsive H1 */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

.page-the-thao__icon-box {
  flex: 0 0 calc(33.333% - 20px);
  max-width: calc(33.333% - 20px);
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  box-sizing: border-box;
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-sizing: border-box;
}

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

.page-the-thao__icon-box-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-the-thao__icon-box-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-the-thao__content-area {
  padding: 60px 0;
  background-color: var(--secondary-color);
}

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

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 25px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: block;
}

.page-the-thao__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: var(--text-dark);
}

.page-the-thao__list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

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

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

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

.page-the-thao__benefit-item {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
}

.page-the-thao__benefit-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-the-thao__benefit-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-light);
}

.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: #f8f9fa;
}

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

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

.page-the-thao__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  outline: none;
  user-select: none;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
  color: var(--primary-color);
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--primary-color);
  margin-left: 15px;
  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;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-the-thao__cta-final-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

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

.page-the-thao__cta-final-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* General image responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column-reverse; /* Image first, then content */
    text-align: center;
    padding: 20px 0;
    gap: 25px;
  }

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

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

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-the-thao__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 0 auto;
  }

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

  .page-the-thao__intro-section,
  .page-the-thao__content-area,
  .page-the-thao__trust-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-final-section {
    padding: 40px 0;
  }

  .page-the-thao__icon-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 25px;
  }

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

  .page-the-thao__icon-box-title {
    font-size: 1.3em;
  }

  .page-the-thao__sub-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-the-thao__list {
    margin-left: 20px;
    font-size: 0.95em;
  }

  .page-the-thao__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__benefit-item {
    padding: 25px;
  }

  .page-the-thao__benefit-title {
    font-size: 1.2em;
  }

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

  .page-the-thao__faq-item summary {
    padding: 18px 20px;
    font-size: 1.05em;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 18px;
  }

  /* Force responsive images for content area */
  .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;
  }

  /* Button container mobile adaptation */
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure buttons stack vertically */
  }
}