/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: var(--deep-navy); /* Body background from shared */
}

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #113B7A; /* Main brand color for titles on light background */
}

.page-the-thao__section-title--light {
  color: #F3F8FF; /* Text Main for titles on dark background */
}

.page-the-thao__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  color: #333333; /* Default dark text */
}

.page-the-thao__section-description--light {
  color: #AFC4E8; /* Text Secondary for descriptions on dark background */
}

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #113B7A; /* Main brand color for sub-titles */
}

.page-the-thao__text-block {
  margin-bottom: 15px;
  color: #333333; /* Default dark text */
}

.page-the-thao__highlight-text {
  color: #1D5FD1; /* Auxiliary brand color for highlights */
  font-weight: bold;
}

.page-the-thao__dark-bg {
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__light-bg {
  background-color: #ffffff;
  color: #333333; /* Default dark text */
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.page-the-thao__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.page-the-thao__hero-slide.is-active {
  opacity: 1;
}

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

.page-the-thao__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
  padding: 40px 20px;
  box-sizing: border-box;
  text-align: center;
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #F2C14E; /* Gold */
}

.page-the-thao__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #AFC4E8; /* Text Secondary */
}

/* Buttons */
.page-the-thao__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
}

.page-the-thao__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #113B7A; /* Main brand color */
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #113B7A;
  cursor: pointer;
  box-sizing: border-box;
}

.page-the-thao__btn-secondary:hover {
  background: #113B7A;
  color: #ffffff;
}

/* Bet Types Guide Section */
.page-the-thao__bet-types-section {
  padding: 60px 0;
}

.page-the-thao__guide-box {
  background-color: #10233F; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align to top to allow padding-top effect */
  gap: 20px;
  flex-wrap: wrap;
}

.page-the-thao__guide-card {
  flex: 0 0 calc(20% - 16px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 16px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
  display: block;
}

.page-the-thao__guide-card:hover {
  transform: translateY(-10px);
}

.page-the-thao__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed vertical aspect ratio */
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.page-the-thao__guide-card--pos-1, .page-the-thao__guide-card--pos-5 {
  padding-top: 50px;
}

.page-the-thao__guide-card--pos-2, .page-the-thao__guide-card--pos-4 {
  padding-top: 25px;
}

/* Home Content Box (long text section) */
.page-the-thao__home-content-box {
  max-width: 91%;
  margin: 40px auto;
  padding: 10px 16px;
  border: 5px solid #244D84; /* Border color */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(17, 59, 122, 0.5); /* Glow effect from Main color */
  height: 700px; /* Fixed height for desktop */
  box-sizing: border-box;
  color: #333333;
}

.page-the-thao__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable for desktop */
  padding-right: 15px; /* Space for scrollbar */
  box-sizing: border-box;
}

.page-the-thao__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-thumb {
  background: #1D5FD1; /* Auxiliary color */
  border-radius: 10px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #113B7A; /* Main color */
}

.page-the-thao__image-figure {
  margin: 30px 0;
  text-align: center;
}

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

.page-the-thao__image-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-the-thao__feature-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-the-thao__list-item {
  margin-bottom: 10px;
}

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

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

.page-the-thao__faq-item {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F3F8FF; /* Text Main */
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #113B7A; /* Main brand color */
  color: #F3F8FF; /* Text Main */
  border-bottom: 1px solid #1B3357; /* Divider */
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #AFC4E8; /* Text Secondary */
}

/* Related Articles Section (Blog) */
.page-the-thao__related-articles-section {
  padding: 60px 0;
}

.page-the-thao__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.page-the-thao__blog-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-the-thao__blog-card a {
  text-decoration: none;
  color: inherit;
}

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

.page-the-thao__blog-card-title {
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px;
  color: #F3F8FF; /* Text Main */
  min-height: 60px;
  display: flex;
  align-items: center;
}

.page-the-thao__blog-card-meta {
  font-size: 0.9em;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 15px 15px;
}

.page-the-thao__button-group {
  text-align: center;
}

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

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

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

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__button-group {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-the-thao__guide-card {
    flex: 0 0 calc(33.333% - 14px); /* 3 cards per row */
    max-width: calc(33.333% - 14px);
  }
  .page-the-thao__guide-card--pos-1, .page-the-thao__guide-card--pos-5,
  .page-the-thao__guide-card--pos-2, .page-the-thao__guide-card--pos-4 {
    padding-top: 0;
  }
  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-the-thao__home-content-box {
    max-width: 95%;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding */
    margin-bottom: 30px;
  }
  .page-the-thao__hero-content {
    padding: 20px 15px;
  }
  .page-the-thao__hero-title {
    font-size: 2em; /* Adjusted for mobile */
  }
  .page-the-thao__hero-description {
    font-size: 1em;
  }

  /* General Text & Titles */
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-the-thao__sub-title {
    font-size: 1.5em;
  }
  .page-the-thao__text-block {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__feature-list {
    padding-left: 35px;
    padding-right: 15px;
  }

  /* Buttons */
  .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;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  .page-the-thao__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column; /* Stack buttons vertically */
    display: flex;
    gap: 10px; /* Space between buttons */
  }

  /* Images */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__container,
  .page-the-thao__image-figure,
  .page-the-thao__blog-card,
  .page-the-thao__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Bet Types Guide Section */
  .page-the-thao__guide-box {
    padding: 20px 15px;
  }
  .page-the-thao__guide-grid {
    display: grid; /* Use grid for specific mobile layout */
    grid-template-columns: repeat(6, 1fr); /* 6 column grid for 2-3-2 layout */
    gap: 10px;
    justify-items: center;
  }
  .page-the-thao__guide-card {
    flex: none; /* Override flex properties */
    max-width: 100%;
    padding-top: 0 !important; /* Reset padding-top */
  }
  .page-the-thao__guide-card--pos-1, .page-the-thao__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards take 3 columns each */
  }
  .page-the-thao__guide-card--pos-3, .page-the-thao__guide-card--pos-4, .page-the-thao__guide-card--pos-5 {
    grid-column: span 2; /* Bottom three cards take 2 columns each */
  }

  /* Home Content Box */
  .page-the-thao__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    margin: 30px 0;
    padding: 10px 0;
    border-radius: 0; /* No border radius on full width mobile */
  }
  .page-the-thao__home-content-inner {
    height: auto; /* Auto height for mobile */
    overflow: visible; /* No scrollbar on mobile */
    padding-right: 0;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  .page-the-thao__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-the-thao__faq-question,
  .page-the-thao__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }

  /* Related Articles Section */
  .page-the-thao__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* 1 card per row */
    gap: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__blog-card-image {
    height: 180px; /* Adjusted height for mobile cards */
  }
}