:root {
  --i9top-main-color: #11A84E;
  --i9top-aux-color: #22C768;
  --i9top-bg-dark: #08160F;
  --i9top-card-bg: #11271B;
  --i9top-text-main: #F2FFF6;
  --i9top-text-secondary: #A7D9B8;
  --i9top-border: #2E7A4E;
  --i9top-glow: #57E38D;
  --i9top-gold: #F2C14E;
  --i9top-divider: #1E3A2A;
  --i9top-deep-green: #0A4B2C;
  --i9top-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

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

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  background-color: var(--i9top-bg-dark);
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height to prevent excessive image size */
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability if text were overlaid, but it's below */
}

.page-the-thao__hero-content-wrapper {
  position: relative; /* Not absolute, to flow below image */
  z-index: 2;
  padding: 40px 20px 0;
  max-width: 900px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-the-thao__hero-description {
  font-size: 1.25rem;
  color: var(--i9top-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-cta-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-the-thao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-the-thao__btn--primary {
  background: var(--i9top-button-gradient);
  color: var(--i9top-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

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

.page-the-thao__btn--secondary {
  background: transparent;
  color: var(--i9top-aux-color);
  border: 2px solid var(--i9top-aux-color);
  box-shadow: 0 2px 8px rgba(34, 199, 104, 0.2);
}

.page-the-thao__btn--secondary:hover {
  background: rgba(34, 199, 104, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 199, 104, 0.4);
}

.page-the-thao__btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* General Section Styles */
.page-the-thao__section {
  padding: 80px 0;
  background-color: var(--i9top-bg-dark);
  border-bottom: 1px solid var(--i9top-divider);
}

.page-the-thao__section:last-of-type {
  border-bottom: none;
}

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

.page-the-thao__sub-title {
  font-size: 1.8rem;
  color: var(--i9top-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__paragraph {
  font-size: 1.1rem;
  color: var(--i9top-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

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

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

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

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

.page-the-thao__feature-title {
  font-size: 1.5rem;
  color: var(--i9top-aux-color);
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.page-the-thao__feature-description {
  font-size: 1rem;
  color: var(--i9top-text-secondary);
  text-align: center;
}

/* Sports Types Section */
.page-the-thao__image-text-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-the-thao__image-text-grid--reverse {
  flex-direction: row-reverse;
}

.page-the-thao__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-the-thao__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--i9top-border);
}

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

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

.page-the-thao__promo-item {
  background-color: var(--i9top-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--i9top-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__promo-title {
  font-size: 1.4rem;
  color: var(--i9top-gold);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__promo-description {
  font-size: 1rem;
  color: var(--i9top-text-secondary);
}

/* 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 {
  background-color: var(--i9top-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--i9top-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--i9top-aux-color);
  color: var(--i9top-text-main);
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--i9top-glow);
}

.page-the-thao__step-title {
  font-size: 1.4rem;
  color: var(--i9top-text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-the-thao__step-description {
  font-size: 1rem;
  color: var(--i9top-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* Betting Tips Section */
.page-the-thao__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-the-thao__tips-item {
  background-color: var(--i9top-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--i9top-border);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-the-thao__tips-title {
  font-size: 1.4rem;
  color: var(--i9top-aux-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao__tips-description {
  font-size: 1rem;
  color: var(--i9top-text-secondary);
}

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

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

.page-the-thao__faq-item summary {
  list-style: none;
}

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

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--i9top-text-main);
  cursor: pointer;
  background-color: var(--i9top-card-bg);
  border-bottom: 1px solid var(--i9top-divider);
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid var(--i9top-border);
}

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

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

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-the-thao__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: var(--i9top-text-secondary);
  text-align: justify;
}

/* Conclusion Section */
.page-the-thao__section--conclusion {
  text-align: center;
  padding-bottom: 80px;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 2.2rem;
  }

  .page-the-thao__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-the-thao__hero-description {
    font-size: 1.1rem;
  }

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

  .page-the-thao__image-text-grid {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-the-thao__image-text-grid--reverse {
    flex-direction: column; /* Keep consistent for mobile */
  }

  .page-the-thao__image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-the-thao__text-content {
    width: 100%;
  }
}

/* Mobile Specific Styles (max-width: 768px) */
@media (max-width: 768px) {
  /* 1. Top Section / Hero */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small padding, relying on body padding-top */
    padding-bottom: 40px;
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-the-thao__hero-cta-group {
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  /* 2. Single Column Long Text Container (Generic sections) */
  .page-the-thao__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section {
    padding: 40px 0;
  }

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

  .page-the-thao__sub-title {
    font-size: 1.5rem;
  }

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

  /* 3. Generic Images and Figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__image-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 4. Buttons and Button Containers */
  .page-the-thao__btn,
  .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;
    padding-right: 15px;
  }

  .page-the-thao__cta-center {
    flex-direction: column; /* Stack buttons */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Why Choose Section */
  .page-the-thao__feature-card {
    padding: 25px;
  }

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

  /* Promotions Section */
  .page-the-thao__promo-item {
    padding: 25px;
  }

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

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

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

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

  /* Betting Tips Section */
  .page-the-thao__tips-item {
    padding: 25px;
  }

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

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

  .page-the-thao__faq-toggle {
    font-size: 1.5rem;
  }

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

  .page-the-thao__section--conclusion {
    padding-bottom: 40px;
  }
}