/* style/the-thao.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-light: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --header-offset: 122px; /* Default value, assumed from shared.css */
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--background-light); /* Assuming light body background from shared.css */
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: var(--primary-color);
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-the-thao__hero-content {
  background-color: var(--card-bg);
  padding: 40px 20px;
  max-width: 1150px;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  border-radius: 12px;
  margin-top: -80px; /* Overlap slightly with image for visual effect */
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 clamp to avoid excessive size */
  color: var(--text-black);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-the-thao__intro-text {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

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

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

.page-the-thao__section {
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--text-black);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-the-thao__section p {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-the-thao__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

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

.page-the-thao__card-title, .page-the-thao__step-title {
  font-size: 1.4rem;
  color: var(--text-black);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-the-thao__card p {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__product-card .page-the-thao__btn, .page-the-thao__promo-card .page-the-thao__btn, .page-the-thao__step-card .page-the-thao__btn {
  align-self: flex-start;
  margin-top: auto;
}

.page-the-thao__app-download {
  margin: 40px auto;
  max-width: 800px;
  text-align: center;
}

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

.page-the-thao__app-caption {
  font-style: italic;
  color: var(--text-main);
  margin-top: 20px;
  font-size: 0.95rem;
}

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

.page-the-thao__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-black);
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.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;
  color: var(--text-main);
  line-height: 1.6;
}

.page-the-thao__faq-answer p {
  margin-bottom: 15px;
}

.page-the-thao__faq-answer .page-the-thao__btn {
  margin-top: 10px;
}

.page-the-thao__copyright-section {
  padding: 30px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
}

.page-the-thao__copyright-text {
  margin: 0;
}

/* --- Responsive Styles --- */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

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

  .page-the-thao__intro-text {
    font-size: 1rem;
  }

  .page-the-thao__section {
    padding: 50px 0;
  }

  .page-the-thao__section-title {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  }

  .page-the-thao__feature-grid, .page-the-thao__product-grid, .page-the-thao__promo-grid, .page-the-thao__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-the-thao__card-image {
    height: 180px;
  }

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

  .page-the-thao__faq-question {
    padding: 18px 20px;
    font-size: 1.1rem;
  }

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

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED MODULES */
@media (max-width: 768px) {
  /* 1. Top section/CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-the-thao__hero-content {
    margin-top: -40px !important;
    padding: 25px 15px !important;
    border-radius: 8px !important;
  }

  .page-the-thao__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__intro-text {
    font-size: 0.95rem !important;
    margin-bottom: 25px !important;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding: 0 15px !important; /* Ensure buttons are within padding */
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__cta-buttons--center {
    margin-top: 30px !important;
  }

  /* 2. Single-column text containers */
  .page-the-thao__section {
    padding: 40px 0 !important;
  }

  .page-the-thao__article-wrap {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__section p {
    font-size: 1rem !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__feature-grid, .page-the-thao__product-grid, .page-the-thao__promo-grid, .page-the-thao__steps-grid {
    grid-template-columns: 1fr !important; /* Single column layout */
    gap: 20px !important;
    margin-top: 30px !important;
  }

  .page-the-thao__card {
    padding: 25px !important;
    border-radius: 8px !important;
  }

  .page-the-thao__card-image {
    height: 160px !important;
    border-radius: 6px !important;
  }

  .page-the-thao__card-title, .page-the-thao__step-title {
    font-size: 1.2rem !important;
    margin-bottom: 10px !important;
  }

  .page-the-thao__card p {
    font-size: 0.95rem !important;
    margin-bottom: 15px !important;
  }

  /* 3. Generic images and figures */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-the-thao__app-download {
    padding: 0 15px !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and button containers */
  .page-the-thao__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__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 !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* 5. Registration tutorial (steps grid) and FAQ block */
  .page-the-thao__steps-grid .page-the-thao__step-card {
    padding: 20px !important;
  }

  .page-the-thao__faq-list {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__faq-question {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }

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

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

  .page-the-thao__copyright-section {
    padding: 20px 15px !important;
    font-size: 0.85rem !important;
  }
}