.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  line-height: 1.6;
  background-color: var(--background-color, #FFFFFF);
}

.page-the-thao__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
  margin-bottom: 40px;
}

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 500px; /* Adjust height as needed */
  overflow: hidden;
}

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

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

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

.page-the-thao__hero-slider-prev,
.page-the-thao__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFFFFF;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 4px;
}

.page-the-thao__hero-slider-prev {
  left: 10px;
}

.page-the-thao__hero-slider-next {
  right: 10px;
}

.page-the-thao__hero-content {
  max-width: 900px;
  margin: 20px auto 0;
  padding: 20px;
  text-align: center;
}

.page-the-thao__main-title {
  font-size: clamp(2.2em, 3.5vw, 3.5em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-the-thao__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  margin-right: 15px;
}

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

.page-the-thao__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-the-thao__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bbd;
  border-color: #1a7bbd;
}

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

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

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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-the-thao__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #EA7C07; /* Login color for emphasis, ensuring contrast */
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-the-thao__text-block {
  font-size: 1.05em;
  margin-bottom: 15px;
  line-height: 1.7;
  color: #333333;
}

.page-the-thao__text-block strong {
  color: #26A9E0;
}

.page-the-thao__odds-types-section {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 50px 0;
}

.page-the-thao__guide-section .page-the-thao__container {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 30px 40px;
}

.page-the-thao__guide-box {
  background: #f5f5f5; /* Light background for the guide box */
  border-radius: 12px;
  padding: 30px 40px;
  text-align: center;
}

.page-the-thao__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.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: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: block;
}

.page-the-thao__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

/* Specific positioning for the 5 cards - desktop only */
.page-the-thao__guide-card--pos-1 {
  margin-top: 50px;
}

.page-the-thao__guide-card--pos-2 {
  margin-top: 25px;
}

.page-the-thao__guide-card--pos-4 {
  margin-top: 25px;
}

.page-the-thao__guide-card--pos-5 {
  margin-top: 50px;
}

.page-the-thao__blog-section {
  background-color: #f8f8f8;
  padding: 50px 0;
}

.page-the-thao__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
  gap: 30px;
}

.page-the-thao__blog-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.page-the-thao__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-the-thao__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images on desktop */
  object-fit: cover;
  display: block;
}

.page-the-thao__blog-card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #26A9E0;
  padding: 15px;
  margin-bottom: 5px;
  line-height: 1.4;
}

.page-the-thao__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 15px;
  margin-bottom: 0;
  line-height: 1.5;
}

.page-the-thao__blog-card-date {
  display: block;
  font-size: 0.85em;
  color: #999999;
  padding: 0 15px 15px;
}

.page-the-thao__why-choose-us-section {
  background-color: #26A9E0; /* Main brand color for dark background */
  color: #FFFFFF; /* White text for dark background */
  padding: 60px 0;
}

.page-the-thao__why-choose-us-section .page-the-thao__section-title {
  color: #FFFFFF;
}

.page-the-thao__why-choose-us-section .page-the-thao__text-block {
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

.page-the-thao__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-the-thao__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-the-thao__feature-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

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

.page-the-thao__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #f9f9f9;
}

.page-the-thao__faq-question:hover {
  background-color: #f0f0f0;
}

.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: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-the-thao__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 500;
}

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

.page-the-thao__cta-bottom-section {
  background-color: #EAF6F9; /* Light background for final CTA */
  padding: 60px 0;
  text-align: center;
}

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

.page-the-thao__cta-bottom-section .page-the-thao__section-title {
  margin-bottom: 20px;
}

.page-the-thao__cta-bottom-section .page-the-thao__text-block {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
}

/* General image and button responsive styles */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__cta-buttons,
.page-the-thao__button-group,
.page-the-thao__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for mobile responsiveness */
@media (max-width: 768px) {
  .page-the-thao {
    font-size: 15px;
  }

  .page-the-thao__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 20px;
  }

  .page-the-thao__hero-slider {
    height: 300px; /* Adjust height for mobile */
  }

  .page-the-thao__hero-slider-prev,
  .page-the-thao__hero-slider-next {
    padding: 8px 12px;
    font-size: 20px;
  }

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

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

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

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    padding: 10px 15px;
    margin-right: 0 !important;
  }

  .page-the-thao__section {
    padding: 20px 0;
    margin-bottom: 10px;
  }

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

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

  .page-the-thao__sub-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .page-the-thao__text-block {
    font-size: 0.95em;
    margin-bottom: 10px;
  }

  .page-the-thao__guide-section .page-the-thao__container {
    padding: 20px 15px;
  }

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for mobile grid layout */
    gap: 10px;
    margin-top: 20px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset desktop positioning */
    flex: none;
    max-width: none;
    margin-top: 0 !important;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2 {
    grid-column: span 3; /* First two cards take 3 columns each (2 per row) */
  }

  .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; /* Next three cards take 2 columns each (3 per row) */
  }

  .page-the-thao__guide-card img {
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
    object-fit: cover;
    width: 100%;
    height: auto;
  }

  .page-the-thao__news-section {
    padding: 30px 0;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for smaller mobile */
    gap: 15px;
  }

  .page-the-thao__blog-card-image {
    height: 150px; /* Adjust height for mobile blog images */
  }

  .page-the-thao__blog-card-title {
    font-size: 1.1em;
    padding: 10px;
  }

  .page-the-thao__blog-card-excerpt,
  .page-the-thao__blog-card-date {
    font-size: 0.85em;
    padding: 0 10px 10px;
  }

  .page-the-thao__why-choose-us-section {
    padding: 40px 0;
  }

  .page-the-thao__feature-list {
    grid-template-columns: 1fr; /* Single column for features on mobile */
    gap: 20px;
    margin-top: 20px;
  }

  .page-the-thao__feature-item {
    padding: 20px;
  }

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

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

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

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

  .page-the-thao__cta-bottom-section {
    padding: 40px 0;
  }

  /* General mobile image and container overrides */
  .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__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: 1fr; /* Single column for blog cards on small mobile */
  }
}

@media (max-width: 480px) {
  .page-the-thao__main-title {
    font-size: 1.8em;
  }

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

  .page-the-thao__blog-grid {
    grid-template-columns: 1fr;
  }
}