/* style/the-thao.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-color: #0A0A0A;
  --card-bg-color: #111111;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-the-thao {
  background-color: var(--background-color);
  color: var(--text-main-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-the-thao__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color);
}

.page-the-thao__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: #111111; /* Contrast with bright gradient */
  border: none;
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--card-bg-color);
  transform: translateY(-2px);
}

/* HERO Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--background-color);
}

.page-the-thao__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 16px;
}

.page-the-thao__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  color: var(--text-main-color);
}

.page-the-thao__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-the-thao__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

.page-the-thao__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-the-thao__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Intro Section */
.page-the-thao__intro-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-the-thao__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-the-thao__feature-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-the-thao__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-the-thao__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__feature-text {
  color: var(--text-main-color);
}

/* Sports Categories Section (Tabs) */
.page-the-thao__sports-categories {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-the-thao__tab-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-the-thao__tab-button {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
  padding: 12px 25px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-the-thao__tab-button:hover {
  background-color: var(--primary-color);
  color: #111111;
  border-color: var(--primary-color);
}

.page-the-thao__tab-button.is-active {
  background: var(--button-gradient);
  color: #111111;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-the-thao__game-panel {
  display: none;
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-the-thao__game-panel.is-active {
  display: block;
}

.page-the-thao__panel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-the-thao__panel-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-the-thao__panel-title {
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-the-thao__panel-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 900px;
  color: var(--text-main-color);
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-the-thao__step-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--button-gradient);
  color: #111111;
  font-size: 1.8em;
  font-weight: bold;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 10px var(--glow-color);
}

.page-the-thao__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__step-text {
  color: var(--text-main-color);
}

.page-the-thao__guide-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Promo Section */
.page-the-thao__promo-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-the-thao__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-the-thao__promo-card {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-the-thao__promo-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__promo-text {
  color: var(--text-main-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__full-promo-cta {
  text-align: center;
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: var(--background-color);
  padding: 60px 0;
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-the-thao__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.1em;
  color: var(--text-main-color);
}

.page-the-thao__faq-answer p {
  margin: 0;
}

/* General Image Responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-the-thao__container {
    padding: 20px 15px;
  }

  .page-the-thao__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-the-thao__section-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* HERO Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-the-thao__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
    text-align: center;
  }

  .page-the-thao__hero-description {
    font-size: 1em;
    text-align: center;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-the-thao__cta-button,
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao a[class*="button"],
  .page-the-thao a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Intro Section */
  .page-the-thao__intro-section {
    padding: 40px 0;
  }

  .page-the-thao__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-the-thao__icon-box-media {
    width: 150px;
    height: 150px;
    border-width: 2px;
  }

  /* Sports Categories Section (Tabs) */
  .page-the-thao__sports-categories {
    padding: 40px 0;
  }

  .page-the-thao__tab-nav {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 25px;
  }

  .page-the-thao__tab-button {
    width: 100%;
    font-size: 1em;
    padding: 10px 15px;
  }

  .page-the-thao__game-panel {
    padding: 20px;
  }

  .page-the-thao__panel-title {
    font-size: 1.5em;
  }

  .page-the-thao__panel-text {
    font-size: 1em;
  }

  /* Guide Section */
  .page-the-thao__guide-section {
    padding: 40px 0;
  }

  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-the-thao__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5em;
  }

  .page-the-thao__step-title {
    font-size: 1.2em;
  }

  /* Promo Section */
  .page-the-thao__promo-section {
    padding: 40px 0;
  }

  .page-the-thao__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }

  .page-the-thao__promo-title {
    font-size: 1.4em;
  }

  /* FAQ Section */
  .page-the-thao__faq-section {
    padding: 40px 0;
  }

  .page-the-thao__faq-item summary {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-the-thao__faq-answer {
    font-size: 1em;
    padding: 0 15px 15px;
  }

  /* General Image Responsiveness for content images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__hero-image,
  .page-the-thao__panel-content,
  .page-the-thao__guide-image,
  .page-the-thao__promo-card,
  .page-the-thao__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
}