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

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-the-thao-text-main); /* Assume dark body bg from shared.css */
  background-color: var(--page-the-thao-bg);
}

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

.page-the-thao__section-title {
  font-size: 2.8em;
  color: var(--page-the-thao-secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.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(--page-the-thao-text-main);
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding to avoid double header offset */
  padding-bottom: 60px;
  background-color: var(--page-the-thao-bg);
}

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

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

.page-the-thao__hero-side-image {
  max-width: 600px;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-the-thao__main-title {
  font-size: 3.2em;
  color: var(--page-the-thao-secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-the-thao__description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: var(--page-the-thao-text-main);
}

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--page-the-thao-button-gradient);
  color: #ffffff; /* White text for contrast on gradient */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--page-the-thao-secondary-color);
  border: 2px solid var(--page-the-thao-secondary-color);
  box-shadow: 0 4px 10px rgba(255, 211, 107, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: var(--page-the-thao-secondary-color);
  color: var(--page-the-thao-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
  margin-top: 30px;
}

.page-the-thao__dark-section {
  background-color: var(--page-the-thao-bg);
  color: var(--page-the-thao-text-main);
  padding: 60px 0;
}

.page-the-thao__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--page-the-thao-text-main);
  padding: 60px 0;
}

.page-the-thao__intro-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

.page-the-thao__feature-item {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-the-thao-border-color);
  transition: transform 0.3s ease;
}

.page-the-thao__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--page-the-thao-primary-color);
  box-shadow: 0 0 0 8px rgba(242, 193, 78, 0.2);
}

.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.8em;
  color: var(--page-the-thao-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__feature-text {
  font-size: 1em;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__sports-types-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

.page-the-thao__type-card {
  background-color: var(--page-the-thao-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-the-thao-border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-the-thao__card-title {
  font-size: 1.6em;
  color: var(--page-the-thao-primary-color);
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-the-thao__card-text {
  font-size: 1em;
  color: var(--page-the-thao-text-main);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-the-thao__btn-text {
  display: inline-block;
  color: var(--page-the-thao-secondary-color);
  text-decoration: none;
  font-weight: bold;
  padding: 10px 20px 20px;
  transition: color 0.3s ease;
}

.page-the-thao__btn-text:hover {
  color: var(--page-the-thao-primary-color);
}

.page-the-thao__live-betting-section .page-the-thao__content-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-the-thao__live-betting-content {
  flex: 1 1 50%;
  min-width: 300px;
}

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

.page-the-thao__image-full-width {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-the-thao__promo-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

.page-the-thao__promo-card {
  background-color: var(--page-the-thao-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__guide-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

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

.page-the-thao__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background: var(--page-the-thao-button-gradient);
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-the-thao__step-text {
  font-size: 1em;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__game-tabs .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

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

.page-the-thao__tab-button:hover,
.page-the-thao__tab-button.is-active {
  background: var(--page-the-thao-button-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

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

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

.page-the-thao__panel-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-the-thao__panel-image {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

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

.page-the-thao__panel-text {
  font-size: 1em;
  color: var(--page-the-thao-text-main);
  flex: 1 1 50%;
  min-width: 300px;
}

.page-the-thao__faq-section .page-the-thao__section-title {
  color: var(--page-the-thao-secondary-color);
}

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

.page-the-thao__faq-item {
  background-color: var(--page-the-thao-card-bg);
  border: 1px solid var(--page-the-thao-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

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

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-the-thao-secondary-color);
}

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-the-thao__content-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: 30px;
  }

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

  .page-the-thao__hero-content {
    order: 2; /* Content below image */
  }

  .page-the-thao__hero-image {
    order: 1; /* Image above content */
  }

  .page-the-thao__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
  }

  .page-the-thao__description {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
  }

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

  /* Module 1: Intro Section (Three columns with round images) */
  .page-the-thao__intro-section {
    padding: 30px 0;
  }

  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__icon-box-media {
    width: 200px;
    height: 200px;
    margin-bottom: 15px;
    border-width: 3px;
    box-shadow: 0 0 0 6px rgba(242, 193, 78, 0.2);
  }

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

  /* Sports Types Section */
  .page-the-thao__sports-types-section {
    padding: 30px 0;
  }

  .page-the-thao__types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-the-thao__card-title {
    font-size: 1.4em;
    padding: 15px 15px 8px;
  }

  .page-the-thao__card-text {
    padding: 0 15px 15px;
  }

  /* Live Betting Section */
  .page-the-thao__live-betting-section .page-the-thao__content-container {
    flex-direction: column;
    gap: 20px;
    padding: 30px 15px;
  }

  .page-the-thao__live-betting-content {
    order: 2;
  }

  .page-the-thao__live-betting-image {
    order: 1;
  }

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

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

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

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

  .page-the-thao__step-item {
    padding: 20px;
  }

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

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

  /* Game Tabs Section */
  .page-the-thao__game-tabs {
    padding: 30px 0;
  }

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

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

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

  .page-the-thao__panel-content {
    flex-direction: column;
    gap: 20px;
  }

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

  .page-the-thao__panel-text {
    text-align: center;
  }

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

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

  .page-the-thao__faq-toggle {
    font-size: 1.3em;
  }

  .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }

  /* Universal image and container mobile styles */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__hero-container,
  .page-the-thao__content-container,
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container,
  .page-the-thao__tab-nav {
    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;
  }
}

/* Additional mobile adjustments for larger screens */
@media (max-width: 1024px) {
  .page-the-thao__hero-container,
  .page-the-thao__live-betting-section .page-the-thao__content-container,
  .page-the-thao__panel-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-the-thao__hero-content,
  .page-the-thao__hero-image,
  .page-the-thao__live-betting-content,
  .page-the-thao__live-betting-image,
  .page-the-thao__panel-content > * {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-the-thao__hero-image {
    order: 1;
  }

  .page-the-thao__hero-content {
    order: 2;
  }

  .page-the-thao__live-betting-image {
    order: 1;
  }

  .page-the-thao__live-betting-content {
    order: 2;
  }

  .page-the-thao__section-title {
    font-size: 2.5em;
  }

  .page-the-thao__main-title {
    font-size: 2.8em;
  }
}