/* style/the-thao.css */
:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --page-bg-color: #F5F7FA;
  --border-color: #E0E0E0;
}

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

.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.5em;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Aligns with common rule for fixed header offset */
  padding-bottom: 60px;
  background-color: var(--page-bg-color);
}

.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-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

.page-the-thao__hero-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: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  text-align: center;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

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

.page-the-thao__intro-section {
  background-color: var(--card-bg-color);
  padding: 60px 0;
}

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

.page-the-thao__icon-box {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  background-color: var(--page-bg-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-the-thao__icon-box:hover {
  transform: translateY(-5px);
}

.page-the-thao__icon-box-media {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.page-the-thao__icon-box-text {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-main-color);
}

.page-the-thao__betting-types-section {
  padding: 60px 0;
}

.page-the-thao__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

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

.page-the-thao__layout-two-column {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-the-thao__text-block {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-the-thao__image-block {
  flex: 1 1 40%;
  text-align: center;
  min-width: 300px;
}

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__dark-section .page-the-thao__sub-title {
  color: var(--secondary-color);
}

.page-the-thao__guide-section {
  background-color: var(--page-bg-color);
  padding: 60px 0;
}

.page-the-thao__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-the-thao__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  font-weight: bold;
  border: 3px solid var(--card-bg-color);
}

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

.page-the-thao__step-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main-color);
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-the-thao__promo-section {
  padding: 60px 0;
}

.page-the-thao__light-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

.page-the-thao__promo-card {
  background-color: var(--page-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

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

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

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

.page-the-thao__promo-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: var(--text-main-color);
  padding: 0 15px 20px;
}

.page-the-thao__promo-card .page-the-thao__btn-secondary {
  margin-bottom: 20px;
  display: inline-flex;
}

.page-the-thao__sports-highlight-section {
  padding: 60px 0;
  background-color: var(--page-bg-color);
}

.page-the-thao__tab-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.page-the-thao__tab-button {
  background-color: transparent;
  border: none;
  padding: 12px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main-color);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

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

.page-the-thao__tab-button.is-active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.page-the-thao__tab-content {
  margin-top: 20px;
}

.page-the-thao__game-panel {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-the-thao__panel-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

.page-the-thao__panel-content > div {
  flex: 1 1 45%;
  min-width: 300px;
}

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

.page-the-thao__panel-text {
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 20px;
}

.page-the-thao__faq-section {
  padding: 60px 0;
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* Hide default marker for details summary */
  position: relative;
}

.page-the-thao__faq-question::-webkit-details-marker, /* Hide default marker for Chrome */
.page-the-thao__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

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

.page-the-thao__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-the-thao__faq-answer a:hover {
  color: #ffffff;
}

.page-the-thao__final-cta-section {
  background-color: var(--card-bg-color);
  padding: 60px 0;
  text-align: center;
}

.page-the-thao__final-cta-section .page-the-thao__section-title {
  color: var(--primary-color);
}

.page-the-thao__final-cta-section .page-the-thao__section-description {
  color: var(--text-main-color);
}

.page-the-thao__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-the-thao__content-container {
    padding: 20px 15px;
  }

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

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

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

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

  .page-the-thao__hero-content {
    text-align: center;
    flex: 1 1 100%;
  }

  .page-the-thao__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-the-thao__hero-description {
    font-size: 0.95em;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

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

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

  /* Betting Types Section */
  .page-the-thao__betting-types-section {
    padding: 40px 0;
  }

  .page-the-thao__layout-two-column {
    flex-direction: column;
    gap: 30px;
  }

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

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

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

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

  .page-the-thao__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1em;
    top: -12px;
  }

  .page-the-thao__cta-center {
    margin-top: 30px;
  }

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

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

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

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

  .page-the-thao__tab-nav {
    flex-direction: column;
    align-items: stretch;
    border-bottom: none;
  }

  .page-the-thao__tab-button {
    border-bottom: 2px solid var(--border-color);
    text-align: center;
  }

  .page-the-thao__tab-button.is-active {
    border-bottom-color: var(--primary-color);
  }

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

  .page-the-thao__panel-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-the-thao__panel-content > div {
    flex: 1 1 100%;
  }

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

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

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

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

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

  /* Final CTA Section */
  .page-the-thao__final-cta-section {
    padding: 40px 0;
  }

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

  /* General Image & Container rules for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__icon-box,
  .page-the-thao__promo-card,
  .page-the-thao__step-item,
  .page-the-thao__game-panel,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__icon-box-media {
    width: 120px;
    height: 120px;
  }
}