/* ===== Flatsome Landing – bjj88 Thể Thao (Hero→Logo grid 4+2→Guide) ===== */
.page-the-thao {
  background: #ffffff;
  color: #333333;
}

/* ---------- 1. Hero Section (Image on top, content below) ---------- */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background: #f3f8f5;
  padding: 10px 0 0 0;
  margin: 0;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 12px;
  box-sizing: border-box;
}

.page-the-thao__hero-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 6;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

.page-the-thao__hero-content {
  width: 100%;
  max-width: 1200px;
  text-align: center;
  padding: 18px 16px 22px;
  box-sizing: border-box;
}

.page-the-thao__hero-title {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 10px;
  color: #017439;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.page-the-thao__hero-description {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444444;
}

/* ---------- 2. Main Page CTA (outside hero, for conversion) ---------- */
.page-the-thao__main-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 12px;
}

.page-the-thao__main-cta-link {
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  transition: opacity .25s ease, transform .2s ease;
}

.page-the-thao__main-cta-link:hover {
  opacity: .85;
  transform: translateY(-2px);
}

.page-the-thao__main-cta-register,
.page-the-thao__main-cta-login {
  background: #C30808;
  color: #FFFF00;
  padding: 12px 30px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-the-thao__main-cta-download {
  background: #017439;
  color: #ffffff;
  padding: 12px 30px;
  font-size: 1rem;
}

.page-the-thao__main-cta-download:hover {
  background: #01572c;
}

/* ---------- 3. Logo Grid Section (4 columns, item 5 & 6 centered = 4+2 layout) ---------- */
.page-the-thao__logo-section {
  width: 100%;
  background: #ffffff;
  padding: 12px 0 16px;
}

.page-the-thao__logo-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: #017439;
  margin: 0 0 6px;
}

.page-the-thao__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 18px;
  justify-items: center;
  align-items: stretch;
  max-width: 1160px;
  margin: 0 auto;
  padding: 12px 16px 8px;
  box-sizing: border-box;
}

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

.page-the-thao__logo-image {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: 8px;
  background: #f9fbfa;
  transition: opacity .2s ease;
}

.page-the-thao__logo-item:hover .page-the-thao__logo-image {
  opacity: .88;
}

.page-the-thao__logo-cta {
  padding: 10px 28px;
  border-radius: 999px;
  background: #017439;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  display: inline-block;
  transition: background .25s ease, transform .2s ease;
  white-space: normal;
  text-align: center;
}

.page-the-thao__logo-cta:hover {
  background: #01572c;
  transform: translateY(-2px);
}

/* Center items #5 and #6 in a 4-col grid (the 4+2 trick) */
.page-the-thao__logo-item:nth-child(5) {
  grid-column: 2;
}
.page-the-thao__logo-item:nth-child(6) {
  grid-column: 3;
}

/* ---------- 4. Guide Section (Blog-like illustrations) ---------- */
.page-the-thao__guide-section {
  width: 100%;
  background: #ffffff;
  padding: 24px 0 48px;
}

.page-the-thao__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__guide-title {
  text-align: center;
  font-size: 1.9rem;
  font-weight: 800;
  color: #017439;
  margin: 16px 0 12px;
}

.page-the-thao__guide-intro {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555555;
  margin-bottom: 28px;
}

.page-the-thao__guide-step-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 26px 0 8px;
}

.page-the-thao__guide-step-content {
  line-height: 1.75;
  font-size: 1rem;
  color: #333333;
  margin-bottom: 12px;
}

.page-the-thao__guide-figure {
  margin: 18px 0;
  text-align: center;
}

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

.page-the-thao__guide-text {
  line-height: 1.8;
  margin-bottom: 16px;
  color: #333333;
}

/* ---------- 5. FAQ ---------- */
.page-the-thao__faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  margin: 14px 0;
  overflow: hidden;
  background: #fafcfb;
}

.page-the-thao__faq-item summary {
  cursor: pointer;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  color: #017439;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-the-thao__faq-answer {
  padding: 14px 20px;
  border-top: 1px solid #e6e6e6;
  background: #ffffff;
}

/* ---------- Desktop (1024px) ---------- */
@media (max-width: 1024px) {
  .page-the-thao__hero-image {
    aspect-ratio: 17 / 6;
  }

  .page-the-thao__logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

/* ---------- Mobile & Under 768px ---------- */
@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 8px;
  }

  .page-the-thao__hero-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
  }

  .page-the-thao__hero-content {
    padding: 14px 12px 18px;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.35rem, 4vw, 1.7rem);
    line-height: 1.3;
  }

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

  .page-the-thao__main-cta {
    padding: 4px 10px 16px;
  }

  .page-the-thao__main-cta-register,
  .page-the-thao__main-cta-login,
  .page-the-thao__main-cta-download {
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 20px;
  }

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

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

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

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

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

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

  .page-the-thao__guide-figure img {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
  }

  /* Global image guard inside main */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-the-thao {
    max-width: 100%;
    overflow-x: hidden;
  }
}