/* style/the-thao.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --bg-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --border-light: #e0e0e0;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Body background is white, so use dark text */
  background-color: var(--bg-color);
}

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 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: 20px;
  line-height: 1.2;
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background-color: var(--register-color); /* Custom color for register/login */
  color: var(--register-login-font-color); /* Custom font color */
  border: 2px solid var(--register-color);
}

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

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

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

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

/* HERO Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--bg-color); /* Consistent with body */
  color: var(--text-dark);
}

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

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

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

.page-the-thao__hero-description {
  font-size: 1.2em;
  color: var(--text-dark);
  margin-bottom: 30px;
}

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

.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;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Intro Section (Dark Background) */
.page-the-thao__intro-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

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

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

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

.page-the-thao__feature-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__icon-box-media {
  width: 200px; /* Enforce square for feature images */
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.2);
}

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

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

/* Sports Categories Section */
.page-the-thao__categories-section {
  background-color: var(--bg-color);
  padding: 60px 0;
}

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

.page-the-thao__sport-card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-the-thao__sport-card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__sport-card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-the-thao__sport-card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-the-thao__sport-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao__sport-card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__sport-card-text {
  font-size: 1em;
  color: var(--text-dark);
}

/* Why Choose Section */
.page-the-thao__why-choose-section {
  background-color: var(--secondary-color);
  padding: 60px 0;
}

.page-the-thao__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-the-thao__text-block {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__text-block p {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-the-thao__advantages-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-the-thao__advantages-list li {
  font-size: 1em;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-dark);
}

.page-the-thao__advantages-list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

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

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

/* Promo Section (Dark Background) */
.page-the-thao__promo-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

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

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

.page-the-thao__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-card-content {
  padding: 20px;
  flex-grow: 1;
}

.page-the-thao__promo-card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-the-thao__promo-card-title a {
  color: var(--secondary-color);
  text-decoration: none;
}

.page-the-thao__promo-card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__promo-card-text {
  font-size: 1em;
  color: var(--text-light);
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: var(--bg-color);
  padding: 60px 0;
}

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

.page-the-thao__guide-step {
  text-align: center;
  padding: 30px 20px;
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
}

.page-the-thao__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px;
}

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

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

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

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

.page-the-thao__faq-item {
  background-color: var(--bg-color);
  border: 1px solid var(--border-light);
  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.15em;
  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.5em;
  font-weight: bold;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 10px;
}

/* Final CTA Section (Dark Background) */
.page-the-thao__cta-final {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

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

.page-the-thao__cta-final .page-the-thao__section-title {
  color: var(--text-light);
  font-size: 2.8em;
  margin-bottom: 25px;
}

.page-the-thao__cta-final .page-the-thao__section-description {
  color: var(--text-light);
  font-size: 1.2em;
  margin-bottom: 40px;
}


/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 20px 15px; /* Smaller padding on mobile */
  }

  .page-the-thao__section-title {
    font-size: 1.8em; /* Smaller font size for titles */
    margin-bottom: 15px;
  }

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

  /* HERO Section */
  .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; /* Stack content vertically */
    gap: 30px;
    padding: 0 15px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-the-thao__hero-side-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Intro Section */
  .page-the-thao__intro-section {
    padding: 40px 0;
  }

  .page-the-thao__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px; /* Smaller square for mobile */
    height: 150px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
  }

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

  /* Sports Categories Section */
  .page-the-thao__categories-section {
    padding: 40px 0;
  }

  .page-the-thao__sports-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-the-thao__sport-card-image {
    height: 200px; /* Adjust image height */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Why Choose Section */
  .page-the-thao__why-choose-section {
    padding: 40px 0;
  }

  .page-the-thao__content-wrapper {
    flex-direction: column; /* Stack content vertically */
    gap: 30px;
  }

  .page-the-thao__text-block,
  .page-the-thao__image-block {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__responsive-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promo Section */
  .page-the-thao__promo-section {
    padding: 40px 0;
  }

  .page-the-thao__promo-cards {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-the-thao__promo-card-image {
    height: 180px; /* Adjust image height */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  /* Guide Section */
  .page-the-thao__guide-section {
    padding: 40px 0;
  }
}