/* ====== Page The Thao (f8beta) ====== */
.page-the-thao {
  color: #333333;
  background-color: #FFFFFF;
  max-width: 100%;
  overflow-x: hidden;
}

/* ---------- Hero Section ---------- */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

.page-the-thao__hero-image {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 8px;
}

.page-the-thao__hero-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.page-the-thao__hero-content {
  text-align: center;
  max-width: 980px;
  width: 100%;
  padding-bottom: 24px;
}

.page-the-thao__main-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439;
  margin-bottom: 12px;
}

.page-the-thao__hero-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 24px;
  color: #333333;
}

.page-the-thao__hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  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: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

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

.page-the-thao__btn--secondary {
  background-color: #FFFFFF;
  color: #C30808;
  border-color: #C30808;
}

.page-the-thao__btn--secondary:hover {
  background-color: #f5f5f5;
}

/* ---------- Logo Grid Section ---------- */
.page-the-thao__logo-grid-section {
  max-width: 1200px;
  width: 100%;
  margin: 24px auto 32px;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.page-the-thao__section-title {
  color: #017439;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-the-thao__section-subtitle {
  color: #555555;
  margin-bottom: 24px;
}

.page-the-thao__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  justify-items: center;
}

.page-the-thao__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
}

.page-the-thao__logo-item img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: 6px;
  background-color: #fff;
}

.page-the-thao__logo-cta {
  padding: 8px 20px;
  border-radius: 999px;
  background-color: #017439;
  color: #FFFFFF;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__logo-cta:hover {
  background-color: #015c2e;
}

/* Grid positions for the 5th and 6th items (4+2 layout) */
.page-the-thao__logo-item:nth-child(5) {
  grid-column: 2;
}

.page-the-thao__logo-item:nth-child(6) {
  grid-column: 3;
}

/* ---------- Guide Section ---------- */
.page-the-thao__guide-section {
  background-color: #f9f9f9;
  width: 100%;
}

.page-the-thao__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 32px 16px 48px;
  width: 100%;
  box-sizing: border-box;
}

.page-the-thao__guide-title {
  text-align: center;
  color: #017439;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.page-the-thao__guide-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.page-the-thao__guide-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.page-the-thao__guide-summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #017439;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #017439;
  font-weight: 700;
}

.page-the-thao__guide-content {
  padding: 0 20px 20px;
}

.page-the-thao__guide-figure {
  margin: 0 0 16px;
}

.page-the-thao__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.page-the-thao__guide-content p {
  line-height: 1.65;
}

/* ---------- Responsive (Tablet & Mobile) ---------- */
@media (max-width: 1024px) {
  .page-the-thao__hero-image img {
    aspect-ratio: 3 / 2;
  }
  
  .page-the-thao__logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-the-thao__logo-item:nth-child(5),
  .page-the-thao__logo-item:nth-child(6) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px;
    align-items: center;
  }

  .page-the-thao__hero-image img {
    aspect-ratio: 2 / 1;
    border-radius: 0;
  }

  .page-the-thao__hero-content {
    padding: 0 16px 24px;
  }

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

  .page-the-thao__hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .page-the-thao__btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-the-thao__logo-grid-section {
    padding: 0 12px;
  }

  .page-the-thao__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .page-the-thao__logo-item {
    max-width: 100%;
    gap: 8px;
  }

  .page-the-thao__logo-item img {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: contain;
  }

  .page-the-thao__logo-item:nth-child(5),
  .page-the-thao__logo-item:nth-child(6) {
    grid-column: auto;
  }

  .page-the-thao__logo-cta {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .page-the-thao__guide-inner {
    padding: 24px 12px 32px;
  }

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

  .page-the-thao__guide-figure img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }

  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
  }
}