:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color-page: #F4F7FB;
  --text-main: #1F2D3D;
  --text-black: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for light background */
  background-color: var(--background-color-page);
}

.page-the-thao__hero-section {
  background: var(--primary-color);
  color: #ffffff;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
}

.page-the-thao__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
  z-index: 1;
}

.page-the-thao__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 600px;
  color: #ffffff;
  /* No fixed font-size for H1, relying on font-weight and line-height */
}

.page-the-thao__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 550px;
  color: #ffffff;
}

.page-the-thao__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  text-align: center;
}

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

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-the-thao__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

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

/* General container and section styles */
.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-the-thao__dark-section .page-the-thao__section-title,
.page-the-thao__dark-section .page-the-thao__section-description {
  color: #ffffff;
}

.page-the-thao__section-description {
  font-size: 1.125rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* Intro Section */
.page-the-thao__intro-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

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

.page-the-thao__feature-item {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 0 6px var(--glow-color);
}

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-black);
}

.page-the-thao__feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* Game Tabs Section */
.page-the-thao__game-tabs-section {
  background: var(--primary-color);
  color: #ffffff;
}

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

.page-the-thao__tab-button {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.page-the-thao__tab-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.page-the-thao__tab-button.is-active {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__tab-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-the-thao__game-panel {
  display: none;
  text-align: center;
}

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

.page-the-thao__panel-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-black);
}

.page-the-thao__panel-text {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
  color: var(--text-main);
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

.page-the-thao__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.page-the-thao__guide-text-block {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-the-thao__paragraph {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-the-thao__guide-subtitle {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-the-thao__guide-image {
  flex: 1 1 35%;
  min-width: 250px;
  text-align: center;
}

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

/* Promo Section */
.page-the-thao__promo-section {
  background: var(--primary-color);
  color: #ffffff;
}

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

.page-the-thao__promo-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-the-thao__promo-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-the-thao__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0 20px;
  color: var(--text-black);
}

.page-the-thao__promo-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 0 20px;
  flex-grow: 1;
  color: var(--text-main);
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin-top: auto;
  align-self: center;
}

/* Trust Section */
.page-the-thao__trust-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

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

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

.page-the-thao__trust-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-the-thao__trust-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

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

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

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

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-black);
  list-style: none;
  user-select: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--primary-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 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main);
}

/* Latest News/Blog Section */
.page-the-thao__latest-news-blog-section {
  background-color: var(--background-color-page);
  color: var(--text-main);
}

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

.page-the-thao__blog-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
}

.page-the-thao__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-the-thao__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-black);
}

.page-the-thao__blog-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
}

.page-the-thao__blog-excerpt {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-main);
  flex-grow: 1;
}

.page-the-thao__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__main-title {
    font-size: 2.8rem;
  }

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

  .page-the-thao__tab-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .page-the-thao__panel-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

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

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

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.95rem;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-the-thao__container {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

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

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

  .page-the-thao__icon-box-media {
    width: 160px;
    height: 160px;
    border-width: 3px;
    box-shadow: 0 0 0 4px var(--glow-color);
  }

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

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

  .page-the-thao__tab-button {
    width: 100%;
    max-width: 100%;
    padding: 10px 15px;
    font-size: 0.95rem;
  }

  .page-the-thao__tab-content {
    padding: 30px 20px;
  }

  .page-the-thao__panel-title {
    font-size: 1.6rem;
  }

  .page-the-thao__panel-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-the-thao__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__guide-text-block,
  .page-the-thao__guide-image {
    flex: 1 1 100%;
    min-width: unset;
  }

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

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

  .page-the-thao__promo-image {
    height: 180px;
  }

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

  .page-the-thao__trust-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__trust-subtitle {
    font-size: 1.3rem;
  }

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

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-the-thao__blog-image {
    height: 180px;
  }

  .page-the-thao__blog-title {
    font-size: 1.1rem;
  }

  /* General image responsiveness */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-the-thao__icon-box-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* All containers containing images or buttons */
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

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

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

  .page-the-thao__icon-box-media {
    width: 140px;
    height: 140px;
  }

  .page-the-thao__tab-button {
    font-size: 0.9rem;
    padding: 8px 12px;
  }

  .page-the-thao__panel-title {
    font-size: 1.4rem;
  }

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

  .page-the-thao__promo-title {
    font-size: 1.1rem;
  }

  .page-the-thao__trust-subtitle {
    font-size: 1.2rem;
  }

  .page-the-thao__blog-title {
    font-size: 1rem;
  }
}