.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f8f9fa;
}

.page-the-thao__hero-carousel-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  background-color: #26A9E0;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  max-width: 1020px; /* Specific width for carousel */
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-the-thao__hero-slide {
  display: none;
  width: 100%;
}

.page-the-thao__hero-slide.is-active {
  display: block;
}

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

.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: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.page-the-thao__hero-slider-prev:hover,
.page-the-thao__hero-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

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

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

.page-the-thao__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-the-thao__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 15px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-the-thao__hero-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-the-thao__btn-primary,
.page-the-thao__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;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

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

.page-the-thao__guide-box {
  padding: 40px 20px;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 40px;
}

.page-the-thao__guide-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-the-thao__guide-subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to the top to allow for staggered effect */
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-the-thao__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards with gap */
  max-width: calc(20% - 12px);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

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

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

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

.page-the-thao__guide-card--pos-3 {
  padding-top: 0;
}

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

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

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

.page-the-thao__home-content-box {
  max-width: 90%;
  margin: 0 auto 40px auto;
  padding: 30px;
  border: 5px solid #26A9E0;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.5);
  height: 700px; /* Desktop fixed height */
  box-sizing: border-box;
}

.page-the-thao__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Desktop scroll */
  padding-right: 15px; /* For scrollbar space */
}

.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: #26A9E0;
  border-radius: 10px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-thumb:hover {
  background: #1e88e5;
}

.page-the-thao__content-title {
  font-weight: bold;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-the-thao__content-title:first-of-type {
  margin-top: 0;
}

.page-the-thao__sub-title {
  font-weight: bold;
  color: #333333;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-the-thao p {
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

.page-the-thao figure {
  margin: 20px 0;
  text-align: center;
}

.page-the-thao__content-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}

.page-the-thao figcaption {
  font-style: italic;
  color: #555555;
  margin-top: 10px;
  font-size: 0.9em;
}

.page-the-thao__faq-question {
  font-weight: bold;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 5px;
  cursor: default;
}

.page-the-thao__faq-answer {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #555555;
}

.page-the-thao__blog-section {
  padding: 40px 20px;
  background-color: #26A9E0; /* Brand color as dark background */
  color: #FFFFFF;
  text-align: center;
}

.page-the-thao__blog-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-the-thao__blog-subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-the-thao__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.page-the-thao__blog-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  color: #333333; /* Ensure dark text on light background */
}

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

.page-the-thao__blog-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 400; /* Aspect ratio for blog images */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

.page-the-thao__blog-card-title a {
  color: #26A9E0; /* Brand color for blog titles */
  text-decoration: none;
}

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

.page-the-thao__blog-card-meta {
  font-size: 0.9em;
  color: #777777;
  margin: 0 15px 10px 15px;
}

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

.page-the-thao__blog-readmore {
  display: inline-block;
  margin: 0 15px 15px 15px;
  color: #EA7C07; /* Login color for read more */
  text-decoration: none;
  font-weight: bold;
}

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

.page-the-thao__blog-actions {
  margin-top: 20px;
}

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

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__hero-actions,
.page-the-thao__blog-actions {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  /* 1. Top Carousel Section */
  .page-the-thao__hero-carousel-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-the-thao__hero-slider {
    border-radius: 0;
  }

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

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

  .page-the-thao__hero-title {
    font-size: 1.8em; /* Adjusted for mobile */
    margin-bottom: 10px;
  }

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

  .page-the-thao__hero-actions {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

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

  /* 2. Guide Box (5 vertical team cards) */
  .page-the-thao__guide-box {
    padding: 20px 15px;
  }

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Base grid for 2-3 layout */
    gap: 10px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset staggered padding */
    flex: unset; /* Override flex properties */
    max-width: 100%; /* Ensure cards take full grid space */
    background-color: transparent; /* Make background transparent on mobile */
  }

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

  .page-the-thao__guide-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 250 / 350; /* Maintain aspect ratio */
  }

  /* 3. Home Content Box */
  .page-the-thao__home-content-box {
    max-width: 100%;
    margin: 0 auto 30px auto;
    padding: 20px 15px;
    height: auto; /* Auto height on mobile */
    border-radius: 0;
    box-shadow: none;
  }

  .page-the-thao__home-content-inner {
    height: auto; /* No fixed height on mobile */
    overflow-y: visible; /* No scroll on mobile */
    padding-right: 0;
  }

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

  .page-the-thao__sub-title {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 8px;
  }

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

  /* 4. Blog Card Section */
  .page-the-thao__blog-section {
    padding: 30px 15px;
  }

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

  .page-the-thao__blog-card {
    margin-bottom: 0;
  }

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

  .page-the-thao__blog-card-meta,
  .page-the-thao__blog-card-excerpt,
  .page-the-thao__blog-readmore {
    font-size: 0.85em;
    margin-left: 10px;
    margin-right: 10px;
  }

  /* 5. General Images and Buttons */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section,
  .page-the-thao__card,
  .page-the-thao__container,
  .page-the-thao__blog-actions {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-the-thao__blog-grid {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .page-the-thao__blog-grid {
    grid-template-columns: 1fr; /* 1 column on smaller mobile screens */
  }
  .page-the-thao__guide-grid {
    grid-template-columns: 1fr; /* 1 column on smaller mobile screens */
  }
  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2,
  .page-the-thao__guide-card--pos-3,
  .page-the-thao__guide-card--pos-4,
  .page-the-thao__guide-card--pos-5 {
    grid-column: span 1; /* Full width for each card */
  }
}