/* style/the-thao.css */

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

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

/* Hero Section */
.page-the-thao__hero-section {
  background-color: var(--primary-color);
  padding-top: 10px; /* Aligned with shared.css body padding-top, minimal here */
  padding-bottom: 60px;
  color: var(--text-light);
}

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

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

.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;
  opacity: 0.9;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  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-color: var(--button-register);
  color: var(--button-font-color);
  border: 2px solid var(--button-register);
}

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

.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__hero-image {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

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

/* General Section Styling */
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
  color: var(--primary-color);
}

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

.page-the-thao__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.page-the-thao__dark-section .page-the-thao__section-description {
  color: rgba(255, 255, 255, 0.85);
}

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

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

/* Intro Section */
.page-the-thao__intro-section p {
  text-align: justify;
  margin-bottom: 20px;
}

/* Features Section (Module 1 equivalent for inner page) */
.page-the-thao__features-section {
  padding-bottom: 60px;
}

.page-the-thao__feature-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;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 25px;
  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;
  border-radius: 50%;
  display: block;
}

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

.page-the-thao__feature-text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Popular Sports Section */
.page-the-thao__popular-sports-section {
  padding-bottom: 60px;
}

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

.page-the-thao__sport-item {
  background-color: var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-the-thao__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-the-thao__sport-item h3,
.page-the-thao__sport-item p {
  padding: 0 20px;
}

.page-the-thao__sport-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__sport-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 20px;
}

/* Promotions Section */
.page-the-thao__promo-section {
  padding-bottom: 60px;
}

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

.page-the-thao__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.page-the-thao__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 0 20px;
  color: var(--text-light);
}

.page-the-thao__promo-text {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  padding: 0 20px;
}

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

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

.page-the-thao__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-the-thao__guide-item {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--primary-color);
}

.page-the-thao__guide-step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-the-thao__guide-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 15px;
  text-align: left;
}

.page-the-thao__small-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-width: 1px;
}

/* FAQ Section */
.page-the-thao__faq-section {
  padding-bottom: 60px;
}

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

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.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(--text-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-the-thao__faq-item[open] > .page-the-thao__faq-question {
  background-color: rgba(255, 255, 255, 0.15);
}

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

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  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: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  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; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
  text-align: left;
}

.page-the-thao__faq-answer .page-the-thao__btn-secondary {
  color: var(--text-light);
  border-color: var(--text-light);
}

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

/* Final CTA Section */
.page-the-thao__cta-final-section {
  padding: 80px 20px;
  text-align: center;
}

.page-the-thao__cta-final-content {
  max-width: 900px;
}

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

.page-the-thao__cta-final-section .page-the-thao__section-description {
  color: var(--text-dark);
  margin-bottom: 40px;
}

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

/* Image and Container Responsive Defaults */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-the-thao__hero-content {
    order: 2;
  }

  .page-the-thao__hero-image {
    order: 1;
    margin-bottom: 30px;
  }

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

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

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

  .page-the-thao__feature-grid,
  .page-the-thao__sport-list,
  .page-the-thao__promo-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
  }
}

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

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

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .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: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  .page-the-thao__container {
    padding: 30px 15px !important;
  }

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

  .page-the-thao__section-description {
    font-size: 0.95rem !important;
    margin-bottom: 30px !important;
  }

  /* Module 1 (Features) specific styles for 768px */
  .page-the-thao__feature-grid {
    gap: 20px !important;
  }

  .page-the-thao__icon-box-media {
    width: 180px !important;
    height: 180px !important;
    border-width: 3px !important;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2) !important;
    margin-bottom: 20px !important;
  }

  .page-the-thao__feature-title {
    font-size: 1.4rem !important;
  }

  .page-the-thao__feature-text {
    font-size: 0.9rem !important;
  }

  /* Popular Sports & Promotions specific styles for 768px */
  .page-the-thao__sport-list,
  .page-the-thao__promo-grid {
    gap: 20px !important;
  }

  .page-the-thao__sport-image,
  .page-the-thao__promo-image {
    height: 180px !important;
  }

  .page-the-thao__sport-title,
  .page-the-thao__promo-title {
    font-size: 1.3rem !important;
    margin-top: 15px !important;
  }

  .page-the-thao__sport-text,
  .page-the-thao__promo-text {
    font-size: 0.9rem !important;
  }

  /* Guide Section specific styles for 768px */
  .page-the-thao__guide-item {
    padding: 25px !important;
  }

  .page-the-thao__guide-step-title {
    font-size: 1.4rem !important;
  }

  .page-the-thao__guide-item p {
    font-size: 0.95rem !important;
  }

  .page-the-thao__small-btn {
    padding: 8px 15px !important;
    font-size: 0.85rem !important;
  }

  /* FAQ Section specific styles for 768px */
  .page-the-thao__faq-question {
    padding: 18px 20px !important;
    font-size: 1.1rem !important;
  }

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

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

  /* Final CTA Section specific styles for 768px */
  .page-the-thao__cta-final-section {
    padding: 60px 15px !important;
  }

  /* Generic image and container handling for 768px */
  .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 !important;
    padding-right: 15px !important;
  }
}