/* style/the-thao.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color-page: #F4F7FB; /* Specific to this page, assuming body is light */
  --text-main-color: #1F2D3D;
  --text-dark-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--background-color-page); /* Page specific background */
}

/* Adjust body padding if shared.css doesn't handle it */
/* If shared.css already applies padding-top to body, this will be overridden. */
/* body.page-the-thao { padding-top: var(--header-offset, 120px); } */

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

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

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

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem); /* Using clamp for H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark-color);
}

.page-the-thao__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

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

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

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

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

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

.page-the-thao__intro-section,
.page-the-thao__offerings-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section {
  padding: 60px 0;
  background: var(--background-color-page);
}

.page-the-thao__intro-container,
.page-the-thao__offerings-container,
.page-the-thao__guide-container,
.page-the-thao__faq-container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

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

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

.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 {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 8px var(--glow-color);
}

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

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

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

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

.page-the-thao__grid-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-the-thao__item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark-color);
  padding: 15px 20px 10px;
}

.page-the-thao__item-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main-color);
  padding: 0 20px 20px;
}

.page-the-thao__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

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

.page-the-thao__step-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-the-thao__step-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 15px;
}

.page-the-thao__link-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-the-thao__link-text:hover {
  text-decoration: underline;
  color: var(--secondary-color);
}

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

.page-the-thao__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  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.15rem;
  font-weight: 600;
  color: var(--text-dark-color);
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
}

.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.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-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 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
}

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

.page-the-thao__faq-answer p:last-child {
  margin-bottom: 0;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }

  /* HERO section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-the-thao__hero-content {
    padding-right: 0;
    text-align: center;
    flex: 1 1 100%;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    margin: 0 auto;
  }

  .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__hero-image {
    flex: 1 1 100%;
    margin-top: 30px;
  }

  .page-the-thao__hero-side-image {
    border-radius: 8px;
  }

  /* Section titles and descriptions */
  .page-the-thao__intro-section,
  .page-the-thao__offerings-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section {
    padding: 40px 0;
  }

  .page-the-thao__intro-container,
  .page-the-thao__offerings-container,
  .page-the-thao__guide-container,
  .page-the-thao__faq-container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-the-thao__icon-box-media {
    width: 200px; /* Maintain square aspect ratio */
    height: 200px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px var(--glow-color);
  }

  .page-the-thao__feature-item {
    padding: 25px;
  }

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

  /* Offerings grid */
  .page-the-thao__grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__item-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-the-thao__item-title {
    font-size: 1.2rem;
    padding: 12px 15px 8px;
  }

  .page-the-thao__item-text {
    padding: 0 15px 15px;
  }

  .page-the-thao__view-all-button-container {
    margin-top: 30px;
  }

  /* Guide section steps */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-the-thao__step-image {
    height: 160px;
    margin-bottom: 15px;
  }

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

  /* FAQ section */
  .page-the-thao__faq-list {
    margin-top: 30px;
  }

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

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

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

  /* Universal image rules for content area */
  .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;
    padding-right: 15px;
    overflow-x: hidden;
  }
  /* Specific override for square images in Module 1 to prevent height:auto */
  .page-the-thao__icon-box-media img {
    height: 100% !important;
    object-fit: cover !important;
  }
}