/* ==========================================================
   style/the-thao.css — Flatsome 浅色落地风 (Red White)
   Scope: .page-the-thao (BEM)
   ========================================================== */

/* ---------- 基础 ---------- */
.page-the-thao {
  color: #333333;
  background: #F5F7FA;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
}

.page-the-thao__hero-section {
  padding-top: 10px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ---------- Hero 主图（强制上图下文，禁止叠字） ---------- */
.page-the-thao__hero-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

.page-the-thao__hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.page-the-thao__hero-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 12px 32px;
  text-align: center;
}

.page-the-thao__main-title {
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.5px;
  color: #E53935;
  margin: 0 0 12px 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-desc {
  font-size: 1.05rem;
  color: #333333;
  max-width: 780px;
  margin: 0 auto 24px auto;
}

.page-the-thao__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}

/* ---------- 按钮 ---------- */
.page-the-thao__btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-sizing: border-box;
  text-align: center;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn--primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #FFFFFF !important;
  border-color: transparent;
}

.page-the-thao__btn--secondary {
  background: #FFFFFF;
  color: #E53935 !important;
  border-color: #E53935;
}

.page-the-thao__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.3);
  opacity: 0.95;
}

/* ---------- Nền tảng / Logo 网格（4+2） ---------- */
.page-the-thao__platform-section {
  background: #FFFFFF;
  padding: 32px 16px;
  border: 1px solid #E0E0E0;
  border-radius: 16px;
  margin: 20px 12px;
}

.page-the-thao__section-header {
  text-align: center;
  margin-bottom: 24px;
}

.page-the-thao__section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #E53935;
  margin: 0 0 8px 0;
}

.page-the-thao__section-subtitle {
  font-size: 1rem;
  color: #333333;
  max-width: 700px;
  margin: 0 auto;
}

.page-the-thao__logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.page-the-thao__logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  max-width: 280px;
  width: 100%;
  transition: transform 0.2s ease;
}

.page-the-thao__logo-item:hover {
  transform: translateY(-4px);
}

.page-the-thao__logo-image {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 2/1;
  object-fit: contain;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 8px;
  background: #FAFAFA;
}

.page-the-thao__logo-name {
  font-weight: 600;
  color: #333333;
  font-size: 0.95rem;
}

/* 排行 5 & 6 —— 居中（4+2 布局） */
.page-the-thao__logo-item:nth-child(5),
.page-the-thao__logo-item:nth-child(6) {
  grid-column: auto;
}

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

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

.page-the-thao__platform-cta {
  text-align: center;
  margin-top: 28px;
}

/* ---------- Hướng dẫn / Guide ---------- */
.page-the-thao__guide-section {
  background: #F5F7FA;
  padding: 24px 12px 48px;
}

.page-the-thao__guide-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.page-the-thao__guide-title {
  text-align: center;
  color: #E53935;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.page-the-thao__guide-intro {
  text-align: center;
  font-size: 1.05rem;
  max-width: 750px;
  margin: 0 auto 28px auto;
}

.page-the-thao__guide-article {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}

.page-the-thao__guide-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: #E53935;
  margin: 0 0 10px 0;
}

.page-the-thao__guide-text {
  font-size: 1rem;
  margin: 0 0 12px 0;
}

.page-the-thao__text-link {
  color: #E53935;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-the-thao__text-link:hover {
  color: #FF5A4F;
}

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

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

.page-the-thao__guide-figure figcaption {
  font-size: 0.9rem;
  font-style: italic;
  color: #666666;
  text-align: center;
  margin-top: 8px;
}

.page-the-thao__guide-article--cta {
  text-align: center;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 100%);
  border: 2px solid #FF5A4F;
}

.page-the-thao__guide-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

/* ---------- FAQ ---------- */
.page-the-thao__faq-item {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.page-the-thao__faq-details {
  padding: 16px 20px;
  font-size: 1rem;
}

.page-the-thao__faq-details summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.page-the-thao__faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF5A4F;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.2s ease;
  user-select: none;
}

.page-the-thao__faq-details[open] .page-the-thao__faq-icon {
  background: #E53935;
  transform: rotate(45deg);
}

.page-the-thao__faq-content {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #E0E0E0;
  font-size: 0.98rem;
}

/* ---------- Hover 效果（禁止 filter 改变颜色） ---------- */
.page-the-thao__logo-image:hover,
.page-the-thao__guide-figure img:hover {
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

/* ==========================================================
   Responsive — Tablet / Mobile
   ========================================================== */
@media (max-width: 1024px) {
  .page-the-thao__hero-img {
    aspect-ratio: 16/6;
  }

  .page-the-thao__logo-grid {
    gap: 24px 16px;
  }

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

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

@media (max-width: 768px) {
  /* Hero 比例与顶距 */
  .page-the-thao__hero-section {
    padding-top: 10px;
  }

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

  .page-the-thao__hero-content {
    padding: 20px 12px 24px;
  }

  /* Logo 网格改 2 列；取消桌面 4+2 定位 */
  .page-the-thao__logo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 12px;
  }

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

  /* Guide 标题字号、figure 全宽 */
  .page-the-thao__guide-title {
    font-size: 1.4rem;
    line-height: 1.3;
  }

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

  /* 通用图片与按钮 max-width:100% */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    padding: 12px 20px;
  }

  .page-the-thao__hero-actions,
  .page-the-thao__guide-actions {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
  }

  .page-the-thao__hero-actions a,
  .page-the-thao__guide-actions a {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__platform-section {
    padding: 24px 12px;
    margin: 12px;
  }

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

  .page-the-thao__guide-article {
    padding: 18px;
  }

  .page-the-thao__guide-subtitle {
    font-size: 1.1rem;
  }

  .page-the-thao__faq-details {
    padding: 14px 16px;
  }
}

@media (max-width: 480px) {
  .page-the-thao__main-title {
    font-size: 1.35rem;
  }

  .page-the-thao__hero-desc {
    font-size: 0.96rem;
  }

  .page-the-thao__logo-name {
    font-size: 0.85rem;
  }
}