/* style/the-thao.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-color-dark: #0D0E12;
  --card-background: #17191F;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-the-thao {
  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--background-color-dark);
}

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

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

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  color: var(--text-main-color);
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-the-thao__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-the-thao__btn-secondary {
  background: none;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 10px rgba(255, 140, 26, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.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 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-the-thao__intro-section {
  padding: 60px 0;
  background-color: var(--background-color-dark);
}

.page-the-thao__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-the-thao__content-area--dark {
  background-color: var(--background-color-dark);
  color: var(--text-main-color);
}

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

.page-the-thao__section-paragraph {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-main-color);
}

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

.page-the-thao__icon-box {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-the-thao__icon-box-media {
  width: 160px;
  height: 160px;
  aspect-ratio: 1/1;
  margin: 0 auto 25px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2), 0 0 20px rgba(255, 165, 58, 0.5);
}

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

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

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

.page-the-thao__popular-sports-section {
  padding: 60px 0;
  background-color: var(--background-color-dark);
}

.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(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

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

.page-the-thao__sport-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.page-the-thao__sport-card-description {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-main-color);
  flex-grow: 1;
}

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

.page-the-thao__guide-section {
  padding: 60px 0;
  background-color: var(--background-color-dark);
}

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

.page-the-thao__step-item {
  background-color: var(--card-background);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-icon {
  width: 60px;
  height: 60px;
  background: var(--button-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 165, 58, 0.6);
}

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

.page-the-thao__step-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

.page-the-thao__guide-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  display: block;
}

.page-the-thao__promo-section {
  padding: 60px 0;
  background-color: var(--background-color-dark);
}

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

.page-the-thao__promo-card {
  background-color: var(--card-background);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

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

.page-the-thao__promo-card-title {
  font-size: 1.6rem;
  font-weight: 600;
  padding: 20px 20px 10px;
  color: var(--primary-color);
}

.page-the-thao__promo-card-description {
  font-size: 1rem;
  line-height: 1.6;
  padding: 0 20px 20px;
  color: var(--text-main-color);
  flex-grow: 1;
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-the-thao__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-dark);
}

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

.page-the-thao__faq-item {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--card-background);
  user-select: none;
  list-style: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--secondary-color);
  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 20px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main-color);
}

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

/* General image responsiveness for content area */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-the-thao__hero-container {
    padding: 30px 15px;
    gap: 30px;
  }

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-the-thao__section-paragraph {
    font-size: 1rem;
  }

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

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

  .page-the-thao__sport-card-title,
  .page-the-thao__promo-card-title {
    font-size: 1.4rem;
  }

  .page-the-thao__faq-question {
    font-size: 1.1rem;
  }
}

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

  .page-the-thao__hero-container {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
    gap: 20px;
  }

  .page-the-thao__hero-content {
    order: 2; /* Content below image */
    flex: 1 1 100%;
  }

  .page-the-thao__hero-image {
    order: 1; /* Image above content */
    flex: 1 1 100%;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

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

  /* General content area padding for mobile */
  .page-the-thao__content-area,
  .page-the-thao__intro-section,
  .page-the-thao__popular-sports-section,
  .page-the-thao__guide-section,
  .page-the-thao__promo-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-bottom-section {
    padding: 30px 0;
  }

  .page-the-thao__content-area {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

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

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

  /* Module 1: Three-column circular images */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__icon-box-media {
    width: 120px; /* Still square */
    height: 120px;
    margin-bottom: 15px;
  }

  .page-the-thao__icon-box-title {
    font-size: 1.2rem;
  }

  .page-the-thao__icon-box-text {
    font-size: 0.9rem;
  }

  /* Sports Grid / Promo Grid */
  .page-the-thao__sports-grid,
  .page-the-thao__promo-grid,
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-the-thao__sport-card-title,
  .page-the-thao__promo-card-title {
    font-size: 1.3rem;
    padding: 15px 15px 8px;
  }

  .page-the-thao__sport-card-description,
  .page-the-thao__promo-card-description {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  .page-the-thao__promo-card .page-the-thao__btn-secondary {
    margin: 0 15px 15px;
    width: calc(100% - 30px);
  }

  /* Guide section */
  .page-the-thao__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-the-thao__step-title {
    font-size: 1.3rem;
  }

  .page-the-thao__step-description {
    font-size: 0.9rem;
  }

  .page-the-thao__guide-image {
    margin-top: 30px;
  }

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

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

  .page-the-thao__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* All images in content area */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* All containers with images */
  .page-the-thao__hero-image,
  .page-the-thao__sport-card,
  .page-the-thao__promo-card,
  .page-the-thao__guide-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* CTA bottom section buttons */
  .page-the-thao__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
}