/* ===== module-style: flatsome-light-the-thao ===== */
/* Root variables for consistent theming */
.page-the-thao { /* Root scope for theme variables */ }
.page-the-thao {
  --black-bg: #0A0A0A;
  --gold: #FFD36B;
  --gold-dark: #F2C14E;
  --accent-blue: #0477db;
  --card-bg: #111111;
  --border-gold: #3A2A12;
  --text-main: #FFF6D6;
  --btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: var(--text-main);
  background-color: var(--black-bg);
}
.page-the-thao a { transition: opacity 0.2s ease; }
.page-the-thao a:hover { opacity: 0.85; }

/* Buttons - Global */
.page-the-thao__btn {
  text-decoration: none;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
}
.page-the-thao__btn--primary {
  background: var(--btn-gradient);
  color: #000000;
  border: none;
  font-weight: 700;
}
.page-the-thao__btn--outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.page-the-thao__btn--primary:hover { opacity: 0.9; color: #000000; }
.page-the-thao__btn--outline:hover { background: rgba(255, 211, 107, 0.1); color: var(--gold); opacity: 1; }

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0A0A0A;
  padding-top: 10px;
}
.page-the-thao__hero-image-wrapper {
  order: 1;
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
}
.page-the-thao__hero-image {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 17/5;
  object-fit: cover;
  display: block;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.page-the-thao__hero-content {
  order: 2;
  width: 100%;
  max-width: 900px;
  text-align: center;
  padding: 24px 16px 28px;
  box-sizing: border-box;
}
.page-the-thao__hero-title {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin: 0 0 8px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.page-the-thao__hero-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #FFF6D6;
  max-width: 600px;
  margin: 10px auto 24px;
}
.page-the-thao__hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Trusted/Partner Section */
.page-the-thao__trusted-section {
  background: #0A0A0A;
  padding: 40px 16px 24px;
  width: 100%;
  box-sizing: border-box;
}
.page-the-thao__trusted-inner { width: 100%; max-width: 1200px; margin: 0 auto; }
.page-the-thao__trusted-label {
  display: block;
  text-align: center;
  color: #FFF6D6;
  opacity: 0.75;
  letter-spacing: 2px;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding-bottom: 16px;
}
.page-the-thao__partner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
  justify-items: center;
}
.page-the-thao__partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  padding: 20px 12px 12px;
  border-radius: 14px;
  transition: transform 0.2s ease;
  cursor: default;
}
.page-the-thao__partner-card:hover { transform: translateY(-4px); }
.page-the-thao__partner-logo {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: contain;
  max-width: 240px;
  height: auto;
}
.page-the-thao__partner-cta {
  background: var(--accent-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease;
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  text-align: center;
}
.page-the-thao__partner-cta:hover { background: #0461b8; color: #ffffff; opacity: 1; }

/* Guide Section */
.page-the-thao__guide-section { background: var(--black-bg); }
.page-the-thao__guide-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  box-sizing: border-box;
}
.page-the-thao__guide-title {
  font-size: clamp(1.8em, 4vw, 2.6em);
  line-height: 1.4;
  text-align: center;
  color: var(--gold);
  margin: 0 0 12px;
}
.page-the-thao__guide-caption,
.page-the-thao__guide-figure-caption,
.page-the-thao__guide-note { color: var(--text-main); }
.page-the-thao__guide-caption { text-align: center; font-style: italic; margin-bottom: 16px; }
.page-the-thao__guide-intro,
.page-the-thao__guide-content {
  color: var(--text-main);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 1rem;
}
.page-the-thao__guide-step-title {
  color: var(--gold);
  font-size: 1.4rem;
  line-height: 1.6;
  margin-bottom: 8px;
}
.page-the-thao__guide-figure {
  margin: 24px 0;
  text-align: center;
}
.page-the-thao__guide-figure img {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 2/1;
  object-fit: cover;
  border-radius: 12px;
  height: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.page-the-thao__guide-figure-caption { font-size: 0.9rem; margin-top: 8px; opacity: 0.8; }
.page-the-thao__guide-note { border-left: 3px solid var(--gold); padding-left: 12px; font-size: 0.9rem; }

/* Features */
.page-the-thao__features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 40px 0;
}
.page-the-thao__feature-card {
  background: var(--card-bg);
  padding: 24px 16px;
  border-radius: 14px;
  border-left: 4px solid var(--gold);
}
.page-the-thao__feature-icon { font-size: 2rem; line-height: 1; }
.page-the-thao__feature-title { color: var(--gold); font-size: 1.2rem; line-height: 1.5; margin: 8px 0; }
.page-the-thao__feature-content { color: var(--text-main); line-height: 1.8; }

/* CTA Banner */
.page-the-thao__cta-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
  padding: 40px 24px;
  margin: 40px 0;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 30px rgba(255, 211, 107, 0.1);
}
.page-the-thao__cta-content { width: 100%; max-width: 640px; margin: 0 auto; }
.page-the-thao__cta-title { color: var(--gold); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.4; }
.page-the-thao__cta-text { line-height: 1.8; margin-bottom: 24px; }
.page-the-thao__cta-button {
  display: block;
  text-decoration: none;
  background: var(--btn-gradient);
  color: #000000;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  margin: 0 auto 12px;
  line-height: 1.6;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}
.page-the-thao__cta-button--secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.page-the-thao__cta-button:hover { opacity: 0.9; transform: scale(1.02); color: #000000; }
.page-the-thao__cta-button--secondary:hover { color: var(--gold); }

/* FAQ */
.page-the-thao__faq-grid {
  display: grid;
  gap: 16px;
  margin: 40px 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.page-the-thao__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 0 16px;
  transition: border-color 0.2s ease;
}
.page-the-thao__faq-item[open] { border-color: var(--gold); }
.page-the-thao__faq-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-weight: 600;
  color: var(--text-main);
  flex-wrap: wrap;
}
.page-the-thao__faq-summary::-webkit-details-marker { display: none; }
.page-the-thao__faq-toggle {
  color: var(--gold);
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  font-weight: 400;
}
.page-the-thao__faq-item p {
  color: #fff6d6;
  opacity: 0.8;
  padding: 0 0 20px 0;
  margin: 0;
  font-size: 0.95rem;
}

/* Game Catalogue / Demo iframe */
.page-the-thao__game-catalog { margin: 48px 0 24px; }
.page-the-thao__catalog-title {
  color: var(--gold);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  text-align: center;
  line-height: 1.5;
  margin: 0 0 8px;
}
.page-the-thao__catalog-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.8;
}
.page-the-thao__game-frame {
  display: block;
  width: 100%;
  border: none;
  background: #111;
  border-radius: 16px;
  min-height: 400px;
  height: auto;
}

/* Insights List (Blog Cards) */
.page-the-thao__insights-grid {
  display: grid;
  gap: 24px;
  margin: 40px 0 0;
  grid-template-columns: 1fr;
}
.page-the-thao__insight-card {
  background: var(--card-bg);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 24px 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}
.page-the-thao__insight-title {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}
.page-the-thao__insight-heading {
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text-main);
  margin: 0 0 12px;
  font-weight: 700;
}
.page-the-thao__insight-card a {
  color: #FFF6D6;
  text-decoration: underline;
  word-break: break-word;
}
.page-the-thao__insight-card a:hover { color: var(--gold); }
.page-the-thao__link-more { display: inline-block; }
.page-the-thao__insight-content { color: var(--text-main); line-height: 1.7; margin-bottom: 12px; max-width: 100%; }

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .page-the-thao__hero-image { border-radius: 12px; }
}

/* Mobile Breakpoint - all major resets */
@media (max-width: 768px) {
  .page-the-thao {
    max-width: 100%;
    overflow-x: hidden;
  }
  .page-the-thao__hero-section { padding-top: 10px; }
  .page-the-thao__hero-image {
    aspect-ratio: 2/1;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
  }
  .page-the-thao__hero-content { padding: 20px 16px 24px; }
  .page-the-thao__hero-actions { width: 100%; max-width: 400px; }
  .page-the-thao__guide-inner { padding: 0 14px 40px; }
  .page-the-thao__guide-title { text-align: left; }
  .page-the-thao__guide-caption { text-align: left; }
  .page-the-thao__step-title { font-size: 1.4rem; }
  .page-the-thao__guide-section details { padding: 0 8px; }

  .page-the-thao__partner-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    justify-items: center;
  }
  .page-the-thao__partner-logo { aspect-ratio: 2/1; }

  .page-the-thao__cta-button {
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }

  .page-the-thao__game-frame {
    min-height: 300px;
    height: auto;
  }

  .page-the-thao__insight-card { width: 100%; }

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

  .page-the-thao__btn {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-the-thao__hero-actions .page-the-thao__btn--outline,
  .page-the-thao__hero-actions .page-the-thao__btn--primary {
    width: 100%;
  }
}

/* Desktop breakpoint for larger screens */
@media (min-width: 1025px) {
  .page-the-thao__hero-content { padding-top: 40px; }
  .page-the-thao__guide-inner { padding-bottom: 64px; }
  .page-the-thao__features-grid {
    gap: 30px;
  }
  .page-the-thao__feature-card { padding: 32px 24px; }
  .page-the-thao__partner-grid { grid-template-columns: repeat(4, 1fr); }
  .page-the-thao__partner-card:last-child { grid-column: span 2; max-width: 560px; }
  .page-the-thao__cta-button {
    display: inline-block;
    margin: 0 12px 12px;
    width: auto;
    max-width: 300px;
  }
  .page-the-thao__insights-grid { grid-template-columns: repeat(2, 1fr); }
  .page-the-thao__btn {
    max-width: 300px;
  }
  .page-the-thao__hero-actions {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .page-the-thao__guide-footer { text-align: center;
    border-top: 1px solid var(--border-gold);
    padding-top: 20px;
    margin-top: 40px;
    opacity: 0.7;
  }
}