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

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

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

.page-the-thao__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-the-thao__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 15px;
}

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

.page-the-thao__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  flex-grow: 1;
  margin-bottom: 15px;
}

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

.page-the-thao__section-subtitle {
  font-size: 1.2em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

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

.page-the-thao__btn-text {
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  margin-bottom: 20px;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

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

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

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

/* About Section */
.page-the-thao__about-section,
.page-the-thao__why-choose-section,
.page-the-thao__live-betting-section,
.page-the-thao__promotions-section,
.page-the-thao__how-to-start-section,
.page-the-thao__faq-section,
.page-the-thao__cta-section {
  padding: 60px 0;
}

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

.page-the-thao__category-card {
  text-align: center;
}

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

.page-the-thao__feature-card {
  text-align: center;
  padding: 30px 20px;
}

.page-the-thao__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-the-thao__content-layout {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-the-thao__text-content {
  flex: 1;
}

.page-the-thao__image-content {
  flex: 1;
  text-align: center;
}

.page-the-thao__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

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

.page-the-thao__promotion-card {
  text-align: center;
}

/* How to Start Section */
.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-card {
  text-align: center;
  padding: 30px 20px;
  position: relative;
}

.page-the-thao__step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--glow-color);
  color: var(--bg-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
  border: 2px solid var(--deep-green-color);
}

/* FAQ Section */
.page-the-thao__faq-list {
  margin-top: 40px;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-the-thao__faq-question:hover {
  background-color: rgba(var(--deep-green-color-rgb), 0.3);
}

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

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

.page-the-thao__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
  border-top: 1px solid var(--divider-color);
}

.page-the-thao__faq-answer p {
  margin-bottom: 10px;
}

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

/* CTA Section */
.page-the-thao__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Custom Colors */
:root {
  --bg-primary: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
  --deep-green-color-rgb: 10, 75, 44; /* For rgba */
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .page-the-thao__container {
    padding: 20px 30px;
  }

  .page-the-thao__hero-image {
    height: 500px;
  }

  .page-the-thao__hero-title {
    font-size: 3em;
  }

  .page-the-thao__content-layout {
    flex-direction: column;
  }

  .page-the-thao__text-content,
  .page-the-thao__image-content {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-the-thao__text-block {
    font-size: 0.95em;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    min-height: auto;
  }

  .page-the-thao__hero-image-wrapper {
    margin-bottom: 15px;
  }

  .page-the-thao__hero-image {
    height: auto !important;
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
    max-height: none !important;
    width: 100% !important;
  }

  .page-the-thao__hero-content {
    padding: 0 15px;
  }

  .page-the-thao__hero-title {
    font-size: 2.2em;
    margin-bottom: 10px;
  }

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

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Categories Section */
  .page-the-thao__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card-image {
    height: 200px;
  }

  /* Why Choose Section */
  .page-the-thao__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Live Betting Section */
  .page-the-thao__content-layout {
    flex-direction: column;
    gap: 20px;
  }

  /* Promotions Section */
  .page-the-thao__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* How to Start Section */
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  /* CTA Section */
  .page-the-thao__cta-section {
    padding-bottom: 40px;
  }

  /* General Images and Containers */
  .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__image-content,
  .page-the-thao__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}