/* style/the-thao.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-login-color: #C30808;
  --register-login-font-color: #FFFF00;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming shared.css sets body background to secondary-color which is light */
}

.page-the-thao__article-wrap {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: var(--primary-color);
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

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

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 20px;
  color: var(--text-color-light);
}

.page-the-thao__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--register-login-font-color); /* Using yellow for H1 for contrast on green */
  line-height: 1.2;
  letter-spacing: 0.5px;
}

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

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

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

.page-the-thao__btn-primary {
  background-color: var(--register-login-color);
  color: var(--text-color-light);
  border: 2px solid var(--register-login-color);
}

.page-the-thao__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-the-thao__btn-secondary {
  background-color: transparent;
  color: var(--register-login-font-color);
  border: 2px solid var(--register-login-font-color);
}

.page-the-thao__btn-secondary:hover {
  background-color: var(--register-login-font-color);
  color: var(--primary-color);
}

/* General Section Styling */
.page-the-thao__section {
  padding: 40px 0;
}

.page-the-thao__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-the-thao p {
  margin-bottom: 1em;
}

.page-the-thao a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-the-thao a:hover {
  text-decoration: underline;
}

/* Sports Categories Grid */
.page-the-thao__sports-categories {
  background-color: #f8f8f8;
}

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

.page-the-thao__sport-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-the-thao__sport-name {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-the-thao__sport-btn {
  margin-top: auto; /* Push button to bottom */
  width: auto;
  padding: 10px 20px;
  font-size: 0.9em;
}

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

.page-the-thao__guide-step {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-the-thao__guide-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin: 15px 0;
  display: block;
}

/* Bet Types */
.page-the-thao__bet-types ul {
  list-style: disc;
  padding-left: 25px;
  color: var(--text-color-dark);
}

.page-the-thao__bet-types li {
  margin-bottom: 10px;
}

.page-the-thao__bet-types strong {
  color: var(--primary-color);
}

/* Promotions Section */
.page-the-thao__promotions {
  background-color: #f8f8f8;
}

.page-the-thao__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 25px;
  margin-bottom: 25px;
  text-align: center;
}

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

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

.page-the-thao__promo-description {
  font-size: 1em;
  color: var(--text-color-dark);
  margin-bottom: 20px;
}

/* Tips Section */
.page-the-thao__tips-list {
  list-style: decimal;
  padding-left: 25px;
  color: var(--text-color-dark);
  margin-bottom: 25px;
}

.page-the-thao__tips-list li {
  margin-bottom: 10px;
}

.page-the-thao__tips-list strong {
  color: var(--primary-color);
}

.page-the-thao__tips-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

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

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

.page-the-thao__faq-item {
  background-color: #f0f0f0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  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(--primary-color);
  cursor: pointer;
  list-style: none;
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 0.95em;
  color: var(--text-color-dark);
  line-height: 1.5;
}

/* Bottom CTA */
.page-the-thao__cta-bottom {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
  padding: 50px 0;
}

.page-the-thao__cta-bottom-content {
  max-width: 800px;
}

.page-the-thao__cta-bottom .page-the-thao__section-title {
  color: var(--register-login-font-color);
  margin-bottom: 20px;
}

.page-the-thao__cta-bottom p {
  color: var(--text-color-light);
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-the-thao__btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

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

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-the-thao__article-wrap {
    padding: 0 15px;
  }

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

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

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

  .page-the-thao__sport-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-the-thao__sport-card, .page-the-thao__promo-card {
    padding: 20px;
  }

  .page-the-thao__guide-step {
    padding: 20px;
  }

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

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

/* Mobile Specific Styles (max-width: 768px) - MUST BE EXHAUSTIVE */
@media (max-width: 768px) {
  /* 1. Top Section (Hero) Title + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, not header-offset */
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller on mobile */
    line-height: 1.3 !important;
  }

  .page-the-thao__description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

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

  /* 2. Single Column Long Text Container */
  .page-the-thao__article-wrap,
  .page-the-thao__section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 1.5em !important;
    margin-bottom: 20px !important;
  }

  .page-the-thao p,
  .page-the-thao li {
    font-size: 0.95em !important;
  }

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

  .page-the-thao__hero-image,
  .page-the-thao__sport-image,
  .page-the-thao__guide-image,
  .page-the-thao__promo-image,
  .page-the-thao__tips-image {
    object-fit: cover !important;
    height: 180px !important; /* Consistent height for mobile cards/content images */
    border-radius: 5px !important;
  }

  /* 4. Buttons and Button Containers */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .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: 10px 15px !important;
    font-size: 0.95em !important;
  }

  .page-the-thao__cta-bottom-content .page-the-thao__btn-large {
    padding: 12px 20px !important;
    font-size: 1em !important;
  }

  .page-the-thao__sport-grid {
    grid-template-columns: 1fr !important; /* Single column for sport cards */
    gap: 15px !important;
  }

  .page-the-thao__sport-card {
    padding: 15px !important;
  }

  /* 5. Registration Tutorial and FAQ Blocks */
  .page-the-thao__guide-step {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__guide-title {
    font-size: 1.4em !important;
    margin-bottom: 10px !important;
  }

  .page-the-thao__faq-item {
    margin-bottom: 10px !important;
  }

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

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

  .page-the-thao__promo-card {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .page-the-thao__promo-image {
    height: 150px !important;
  }

  .page-the-thao__promo-title {
    font-size: 1.3em !important;
  }

  .page-the-thao__tips-list {
    padding-left: 20px !important;
  }

  .page-the-thao__cta-bottom {
    padding: 30px 0 !important;
  }

  .page-the-thao__cta-bottom .page-the-thao__section-title {
    font-size: 1.6em !important;
  }
}