/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #ffffff;
}

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

.page-the-thao__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-the-thao__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-the-thao__section-title--white {
  color: #FFFFFF;
}

.page-the-thao__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 20px auto;
  line-height: 1.8;
}

.page-the-thao__text-block--white {
  color: #FFFFFF;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__sport-card-btn,
.page-the-thao__step-btn,
.page-the-thao__blog-card-link {
  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;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

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

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

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

.page-the-thao__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-the-thao__btn-spacing {
  margin-top: 20px;
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Relying on body for --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

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

.page-the-thao__hero-content {
  padding: 40px 15px;
  max-width: 900px;
  margin-top: -80px; /* Pull content slightly over image for visual flow */
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  z-index: 10;
  position: relative;
}

.page-the-thao__main-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  color: #000000;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

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

/* Intro Section */
.page-the-thao__intro-section {
  background-color: #f8f8f8;
}

/* Sports Categories Section */
.page-the-thao__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-the-thao__sports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__sport-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__sport-card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-the-thao__sport-card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-the-thao__sport-card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__sport-card-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
}

.page-the-thao__sport-card-btn {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  margin: 0 15px;
}

.page-the-thao__sport-card-btn:hover {
  background-color: #c96706;
  border-color: #c96706;
}

/* Live Betting Section */
.page-the-thao__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-the-thao__live-betting-text {
  flex: 1;
  text-align: left;
}

.page-the-thao__live-betting-text .page-the-thao__section-title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__live-betting-text .page-the-thao__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-the-thao__live-betting-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Why Choose Us Section */
.page-the-thao__light-bg {
  background-color: #f8f8f8;
}

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

.page-the-thao__benefits-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
}

.page-the-thao__benefits-title {
  font-size: 22px;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-the-thao__benefits-description {
  font-size: 16px;
  color: #555555;
}

/* Promotions Section */
.page-the-thao__promotion-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-the-thao__promotion-text {
  flex: 1;
  text-align: left;
}

.page-the-thao__promotion-text .page-the-thao__section-title,
.page-the-thao__promotion-text .page-the-thao__text-block {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-the-thao__promotion-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-the-thao__promotion-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Guide Section */
.page-the-thao__guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-the-thao__step-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-the-thao__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-the-thao__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 10px;
}

.page-the-thao__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__step-btn {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
}

.page-the-thao__step-btn:hover {
  background-color: #1a7fb3;
  border-color: #1a7fb3;
}

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

.page-the-thao__blog-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.page-the-thao__blog-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-the-thao__blog-card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-the-thao__blog-card-title a:hover {
  text-decoration: underline;
}

.page-the-thao__blog-card-meta {
  font-size: 14px;
  color: #888888;
  margin-bottom: 15px;
}

.page-the-thao__blog-card-excerpt {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-the-thao__blog-card-link {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-the-thao__blog-card-link:hover {
  text-decoration: underline;
}

.page-the-thao__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Final CTA Section */
.page-the-thao__cta-final-content {
  text-align: center;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__section-title {
    font-size: 30px;
  }
  .page-the-thao__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-the-thao__main-title {
    font-size: clamp(28px, 4vw, 42px);
  }
  .page-the-thao__hero-description {
    font-size: 16px;
  }
  .page-the-thao__cta-buttons {
    gap: 15px;
  }
  .page-the-thao__sports-grid,
  .page-the-thao__benefits-list,
  .page-the-thao__guide-steps,
  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-the-thao__live-betting-content,
  .page-the-thao__promotion-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-the-thao__live-betting-text,
  .page-the-thao__promotion-text {
    text-align: center;
  }
  .page-the-thao__live-betting-text .page-the-thao__section-title,
  .page-the-thao__live-betting-text .page-the-thao__text-block,
  .page-the-thao__promotion-text .page-the-thao__section-title,
  .page-the-thao__promotion-text .page-the-thao__text-block {
    text-align: center;
  }
  .page-the-thao__live-betting-image-wrapper,
  .page-the-thao__promotion-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-the-thao {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-the-thao__section-spacing {
    padding: 40px 0;
  }
  .page-the-thao__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-the-thao__text-block {
    font-size: 16px;
    padding: 0 10px;
  }

  /* Hero Section */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }
  .page-the-thao__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__hero-content {
    margin-top: -40px;
    padding: 20px;
  }
  .page-the-thao__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }
  .page-the-thao__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Sports Categories */
  .page-the-thao__sports-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__sport-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__sport-card-btn {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Live Betting Section */
  .page-the-thao__live-betting-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__live-betting-text .page-the-thao__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-the-thao__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Why Choose Us Section */
  .page-the-thao__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Promotions Section */
  .page-the-thao__promotion-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-the-thao__promotion-text .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-the-thao__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Guide Section */
  .page-the-thao__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__step-btn {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Blog Section */
  .page-the-thao__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__blog-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-the-thao__view-all-button-wrapper .page-the-thao__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Final CTA Section */
  .page-the-thao__cta-final-content .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-the-thao__cta-final-content .page-the-thao__btn-primary,
  .page-the-thao__cta-final-content .page-the-thao__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General image and button overrides for mobile */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__cta-buttons,
  .page-the-thao__button-group,
  .page-the-thao__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .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;
  }
}