.page-the-thao-lich-thi-dau {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-the-thao-lich-thi-dau__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao-lich-thi-dau__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-the-thao-lich-thi-dau__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-the-thao-lich-thi-dau__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit;
}

.page-the-thao-lich-thi-dau__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: inherit;
}

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

.page-the-thao-lich-thi-dau__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-the-thao-lich-thi-dau__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-the-thao-lich-thi-dau__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-the-thao-lich-thi-dau__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  border-color: #FFFF00;
}

.page-the-thao-lich-thi-dau__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__cta-wrapper .page-the-thao-lich-thi-dau__btn-primary,
.page-the-thao-lich-thi-dau__cta-wrapper .page-the-thao-lich-thi-dau__btn-secondary {
  margin: 0 10px;
}

/* Hero Carousel Section */
.page-the-thao-lich-thi-dau__hero-carousel-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding */
  overflow: hidden;
}

.page-the-thao-lich-thi-dau__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  overflow: hidden;
}

.page-the-thao-lich-thi-dau__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Image on top, content below */
  text-align: center;
}

.page-the-thao-lich-thi-dau__hero-slide.is-active {
  opacity: 1;
}

.page-the-thao-lich-thi-dau__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-the-thao-lich-thi-dau__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: #ffffff;
}

.page-the-thao-lich-thi-dau__hero-title {
  font-size: clamp(2em, 3.5vw, 3.5em); /* Responsive font size */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFF00;
}

.page-the-thao-lich-thi-dau__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao-lich-thi-dau__hero-actions .page-the-thao-lich-thi-dau__btn-primary,
.page-the-thao-lich-thi-dau__hero-actions .page-the-thao-lich-thi-dau__btn-secondary {
  margin: 0 10px;
}

.page-the-thao-lich-thi-dau__hero-slider-prev,
.page-the-thao-lich-thi-dau__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5em;
  z-index: 10;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-the-thao-lich-thi-dau__hero-slider-prev {
  left: 20px;
}

.page-the-thao-lich-thi-dau__hero-slider-next {
  right: 20px;
}

.page-the-thao-lich-thi-dau__hero-slider-prev::before {
  content: '‹';
}

.page-the-thao-lich-thi-dau__hero-slider-next::before {
  content: '›';
}

/* General Section Styling */
.page-the-thao-lich-thi-dau__intro-section,
.page-the-thao-lich-thi-dau__features-section,
.page-the-thao-lich-thi-dau__how-to-use-section,
.page-the-thao-lich-thi-dau__live-updates-section,
.page-the-thao-lich-thi-dau__sports-covered-section,
.page-the-thao-lich-thi-dau__benefits-section,
.page-the-thao-lich-thi-dau__blog-section,
.page-the-thao-lich-thi-dau__cta-bottom {
  padding: 80px 0;
}

.page-the-thao-lich-thi-dau__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
}

/* Features Section */
.page-the-thao-lich-thi-dau__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

.page-the-thao-lich-thi-dau__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* How-to-use Section */
.page-the-thao-lich-thi-dau__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__step-item {
  text-align: center;
}

.page-the-thao-lich-thi-dau__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-the-thao-lich-thi-dau__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
}

/* Sports Covered Section */
.page-the-thao-lich-thi-dau__sports-list {
  list-style-type: disc;
  text-align: left;
  max-width: 800px;
  margin: 40px auto;
  padding-left: 30px;
  font-size: 1.1em;
  color: #333333;
}

.page-the-thao-lich-thi-dau__sports-list li {
  margin-bottom: 10px;
}

/* Benefits Section */
.page-the-thao-lich-thi-dau__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  color: #ffffff;
}

.page-the-thao-lich-thi-dau__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

/* Guide Box Section */
.page-the-thao-lich-thi-dau__guide-box {
  padding: 80px 0;
  background-color: #f0f0f0; /* Light background for guide box */
}

.page-the-thao-lich-thi-dau__guide-grid {
  display: flex;
  flex-wrap: nowrap; /* Ensure no wrap on desktop */
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__guide-card {
  flex: 0 0 calc(20% - 8px);
  max-width: calc(20% - 8px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-the-thao-lich-thi-dau__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
}

.page-the-thao-lich-thi-dau__guide-card--pos-1,
.page-the-thao-lich-thi-dau__guide-card--pos-5 {
  padding-top: 50px;
}

.page-the-thao-lich-thi-dau__guide-card--pos-2,
.page-the-thao-lich-thi-dau__guide-card--pos-4 {
  padding-top: 25px;
}

/* Home Content Box (FAQ) */
.page-the-thao-lich-thi-dau__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #017439;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(1, 116, 57, 0.5);
  height: 700px; /* Fixed height for scrolling content */
  background-color: #ffffff;
  color: #333333;
  margin-top: 80px;
  margin-bottom: 80px;
}

.page-the-thao-lich-thi-dau__home-content-inner {
  height: 100%;
  overflow-y: auto;
  padding-right: 15px; /* For scrollbar space */
}

.page-the-thao-lich-thi-dau__home-content-inner h3.page-the-thao-lich-thi-dau__faq-question {
  font-size: 1.3em;
  color: #017439;
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-the-thao-lich-thi-dau__home-content-inner p.page-the-thao-lich-thi-dau__faq-answer {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Blog Section */
.page-the-thao-lich-thi-dau__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao-lich-thi-dau__blog-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-the-thao-lich-thi-dau__blog-card a {
  text-decoration: none;
  color: inherit;
  display: contents; /* Allow child elements to handle clicks */
}

.page-the-thao-lich-thi-dau__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
}

.page-the-thao-lich-thi-dau__blog-card-title {
  font-size: 1.2em;
  font-weight: bold;
  padding: 15px;
  margin-bottom: 0;
  flex-grow: 1; /* Make title take available space */
  color: #FFFF00;
}

.page-the-thao-lich-thi-dau__blog-card-date {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
  padding: 0 15px 15px;
}

/* CTA Bottom */
.page-the-thao-lich-thi-dau__cta-bottom {
  padding-bottom: 80px;
}

.page-the-thao-lich-thi-dau__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-the-thao-lich-thi-dau__section,
.page-the-thao-lich-thi-dau__card,
.page-the-thao-lich-thi-dau__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .page-the-thao-lich-thi-dau {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-the-thao-lich-thi-dau__container {
    padding: 0 15px;
  }

  .page-the-thao-lich-thi-dau__section-title {
    font-size: 2em;
  }

  .page-the-thao-lich-thi-dau__section-description {
    font-size: 1em;
  }

  /* Hero Carousel Section */
  .page-the-thao-lich-thi-dau__hero-carousel-section {
    padding-top: 10px !important;
  }

  .page-the-thao-lich-thi-dau__hero-slider {
    height: 400px; /* Adjust height for mobile */
  }

  .page-the-thao-lich-thi-dau__hero-content {
    padding: 20px 15px;
  }

  .page-the-thao-lich-thi-dau__hero-title {
    font-size: 1.8em !important;
  }

  .page-the-thao-lich-thi-dau__hero-description {
    font-size: 0.9em !important;
    margin-bottom: 20px;
  }

  .page-the-thao-lich-thi-dau__hero-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .page-the-thao-lich-thi-dau__hero-actions .page-the-thao-lich-thi-dau__btn-primary,
  .page-the-thao-lich-thi-dau__hero-actions .page-the-thao-lich-thi-dau__btn-secondary {
    margin: 0 !important;
    width: 100% !important;
  }

  .page-the-thao-lich-thi-dau__hero-slider-prev,
  .page-the-thao-lich-thi-dau__hero-slider-next {
    padding: 10px;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }

  .page-the-thao-lich-thi-dau__hero-slider-prev {
    left: 10px;
  }

  .page-the-thao-lich-thi-dau__hero-slider-next {
    right: 10px;
  }

  /* Features Section */
  .page-the-thao-lich-thi-dau__feature-grid {
    grid-template-columns: 1fr;
  }

  /* How-to-use Section */
  .page-the-thao-lich-thi-dau__steps-grid {
    grid-template-columns: 1fr;
  }

  /* Sports Covered Section */
  .page-the-thao-lich-thi-dau__sports-list {
    padding-left: 20px;
  }

  /* Benefits Section */
  .page-the-thao-lich-thi-dau__benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Guide Box Section */
  .page-the-thao-lich-thi-dau__guide-box {
    padding: 40px 0;
  }

  .page-the-thao-lich-thi-dau__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
  }

  .page-the-thao-lich-thi-dau__guide-card {
    padding-top: 0 !important;
    flex: auto; /* Reset flex properties */
    max-width: 100%;
  }

  .page-the-thao-lich-thi-dau__guide-card--pos-1,
  .page-the-thao-lich-thi-dau__guide-card--pos-2 {
    grid-column: span 3;
  }

  .page-the-thao-lich-thi-dau__guide-card--pos-3,
  .page-the-thao-lich-thi-dau__guide-card--pos-4,
  .page-the-thao-lich-thi-dau__guide-card--pos-5 {
    grid-column: span 2;
  }

  /* Home Content Box (FAQ) */
  .page-the-thao-lich-thi-dau__home-content-box {
    max-width: 100%;
    height: auto; /* Auto height for mobile */
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 10px;
  }

  .page-the-thao-lich-thi-dau__home-content-inner {
    height: auto;
    overflow: visible; /* Make content visible */
    padding-right: 0;
  }

  .page-the-thao-lich-thi-dau__home-content-inner h3.page-the-thao-lich-thi-dau__faq-question {
    font-size: 1.2em;
  }

  /* Blog Section */
  .page-the-thao-lich-thi-dau__blog-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-the-thao-lich-thi-dau__blog-card-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  /* CTA Bottom */
  .page-the-thao-lich-thi-dau__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao-lich-thi-dau__cta-buttons .page-the-thao-lich-thi-dau__btn-primary,
  .page-the-thao-lich-thi-dau__cta-buttons .page-the-thao-lich-thi-dau__btn-secondary {
    width: 100% !important;
    margin: 0 !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* General image and button mobile adaptation */
  .page-the-thao-lich-thi-dau img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-the-thao-lich-thi-dau__section,
  .page-the-thao-lich-thi-dau__card,
  .page-the-thao-lich-thi-dau__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao-lich-thi-dau__cta-button,
  .page-the-thao-lich-thi-dau__btn-primary,
  .page-the-thao-lich-thi-dau__btn-secondary,
  .page-the-thao-lich-thi-dau a[class*="button"],
  .page-the-thao-lich-thi-dau 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 !important;
    padding-right: 15px !important;
  }

  .page-the-thao-lich-thi-dau__cta-buttons,
  .page-the-thao-lich-thi-dau__button-group,
  .page-the-thao-lich-thi-dau__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}