/* ===== page-the-thao styles ===== */
.page-the-thao {
  color: #ffffff;
  background-color: #B71C1C;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ---------- HERO ---------- */
.page-the-thao__hero-section {
  padding: 10px 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(180deg, #7A0E0E 0%, #B71C1C 100%);
}

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

.page-the-thao__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}

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

.page-the-thao__main-title {
  font-weight: 800;
  color: #FFF5E1;
  margin: 0 0 12px;
  line-height: 1.25;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

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

.page-the-thao__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.page-the-thao__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}

.page-the-thao__btn:hover {
  transform: translateY(-2px);
}

.page-the-thao__btn--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #333333;
  box-shadow: 0 4px 14px rgba(244, 211, 77, .35);
}

.page-the-thao__btn--secondary {
  background: #F4D34D;
  color: #333333;
}

.page-the-thao__btn--outline {
  background: transparent;
  border-color: #F2B544;
  color: #FFF5E1;
}

/* ---------- PARTNER LOGO ---------- */
.page-the-thao__trusted-section {
  padding: 48px 16px;
}

.page-the-thao__trusted-header {
  text-align: center;
  margin-bottom: 32px;
}

.page-the-thao__section-title {
  color: #F4D34D;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  display: inline-block;
  position: relative;
}

.page-the-thao__section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 80%;
  background: #E53935;
  border-radius: 20px;
  margin: 8px auto 0;
}

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

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

.page-the-thao__logo-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: contain;
  background-color: #FFF5E1;
  border-radius: 12px;
  padding: 6px;
  box-sizing: border-box;
}

.page-the-thao__logo-cta {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  background: #0477db;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  transition: opacity .2s;
}

.page-the-thao__logo-cta:hover {
  opacity: .85;
}

/* 4+2 grid layout */
.page-the-thao__logo-item:nth-child(5) {
  grid-column: 2;
}

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

/* ---------- GUIDE / BLOG ---------- */
.page-the-thao__guide-section {
  background: #D32F2F;
  border-top: 2px solid #F2B544;
}

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

.page-the-thao__guide-title {
  text-align: center;
  color: #F4D34D;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 40px;
}

.page-the-thao__guide-item {
  background-color: #7A0E0E;
  border: 1px solid #E53935;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

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

.page-the-thao__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.page-the-thao__guide-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #FFF5E1;
  margin: 0 0 8px;
}

.page-the-thao__guide-text {
  color: #FDE6C7;
  line-height: 1.6;
  margin: 0 0 16px;
}

.page-the-thao__guide-link {
  color: #F4D34D;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.page-the-thao__guide-link:hover {
  border-bottom-color: #F4D34D;
}

/* ====== TABLET ====== */
@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    padding: 10px 12px 0;
  }

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

  .page-the-thao__guide-inner {
    padding: 40px 12px 48px;
  }
}

/* ====== MOBILE 768 ====== */
@media (max-width: 768px) {
  .page-the-thao {
    padding-top: 0;
    margin-top: 0;
  }

  .page-the-thao__hero-section {
    padding-top: 10px;
  }

  .page-the-thao__hero-image {
    aspect-ratio: 16/10;
    border-radius: 12px;
  }

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

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

  .page-the-thao__hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

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

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

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

  /* guide figure full width */
  .page-the-thao__guide-title {
    font-size: 1.25rem;
  }

  .page-the-thao__guide-item {
    padding: 16px;
  }

  .page-the-thao__guide-image {
    aspect-ratio: 3/2;
  }

  /* all images inside .page-the-thao must be fluid */
  .page-the-thao img {
    max-width: 100% !important;
    height: auto !important;
  }

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

  .page-the-thao__guide-figure,
  .page-the-thao__guide-figure img {
    width: 100%;
  }
}