/* style/the-thao.css */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color */
  background-color: #B71C1C; /* Background color */
}

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

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding */
  padding-bottom: 60px;
  background-color: #C91F17; /* Main brand color for hero background */
  color: #FFF5E1;
}

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFF5E1;
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.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: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: none;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: #FFF5E1;
  border: 2px solid #F2B544; /* Border color */
}

.page-the-thao__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.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;
  display: block;
  margin: 0 auto;
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1;
}

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

.page-the-thao__intro-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section,
.page-the-thao__final-cta-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background color */
}

.page-the-thao__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

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

.page-the-thao__feature-item,
.page-the-thao__card,
.page-the-thao__step-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #F2B544; /* Border color */
}

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

.page-the-thao__feature-title,
.page-the-thao__card-title,
.page-the-thao__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

.page-the-thao__feature-text,
.page-the-thao__card-text,
.page-the-thao__step-text {
  font-size: 1rem;
  color: #FFF5E1;
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px; /* Fixed height for card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-the-thao__step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.6); /* Glow */
}

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

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

.page-the-thao__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF5E1;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #E53935; /* Auxiliary color */
  color: #FFF5E1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
}

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

.page-the-thao__faq-question:hover {
  background-color: #C91F17; /* Main color */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #F4D34D;
}

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

.page-the-thao__faq-answer {
  padding: 20px;
  font-size: 1rem;
  color: #FFF5E1;
  line-height: 1.6;
}

.page-the-thao__final-cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-the-thao__btn-large {
  font-size: 1.3rem;
  padding: 18px 40px;
  margin-top: 30px;
}

/* Responsive styles for desktop/tablet */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
  }

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

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: calc(50% - 7.5px); /* Adjusted for gap */
  }
}

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

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

  .page-the-thao__hero-description,
  .page-the-thao__section-description {
    font-size: 1rem;
  }

  /* Buttons and button containers */
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .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; /* Ensure buttons wrap if horizontal */
    gap: 10px;
  }

  /* Module 1 three-column (features grid) */
  .page-the-thao__features-grid,
  .page-the-thao__grid-layout,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__feature-item,
  .page-the-thao__card,
  .page-the-thao__step-item {
    padding: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 150px; /* Still square for feature images */
    height: 150px;
    border-width: 3px;
  }

  /* Content sections (intro, guide, faq, final-cta) */
  .page-the-thao__section-title {
    font-size: 1.8rem;
  }

  .page-the-thao p,
  .page-the-thao li,
  .page-the-thao__feature-text,
  .page-the-thao__card-text,
  .page-the-thao__step-text {
    font-size: 0.95rem;
  }

  /* General image and container responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__container,
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure card images maintain reasonable size and aspect ratio */
  .page-the-thao__card-image {
    height: 180px; /* Adjusted height for mobile cards */
    min-height: 200px; /* Ensure images are not too small as per rule */
  }

  /* FAQ section */
  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }

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

  .page-the-thao__faq-answer {
    padding: 15px;
  }
}