.page-the-thao {
  font-family: 'Arial', sans-serif;
  background-color: #0A0A0A;
  color: #FFF6D6; /* Text Main color for dark background */
}

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

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Default height for desktop */
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column; /* Image on top, content below */
}

.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-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  text-align: center;
  color: #FFF6D6;
  z-index: 10;
}

.page-the-thao__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.2;
  color: #FFD36B;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-the-thao__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* As per instructions for btn-primary */
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-the-thao__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B;
  border: 2px solid #FFD36B;
}

.page-the-thao__btn-secondary:hover {
  background: #FFD36B;
  color: #111111;
}

.page-the-thao__btn-center {
  display: block;
  margin: 20px auto;
  width: fit-content;
}

.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: #FFF6D6;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 20;
  font-size: 24px;
  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.7);
}

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

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

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 0 0 5px rgba(255, 211, 107, 0.3);
}

.page-the-thao__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #F2C14E;
  border-radius: 2px;
}

.page-the-thao__guide-box {
  background-color: #111111; /* Card BG */
  padding: 40px 20px 50px;
  margin: 40px auto;
  max-width: 1200px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.2);
  border: 1px solid #3A2A12; /* Border */
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  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: #FFF6D6;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
  overflow: hidden;
}

.page-the-thao__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

.page-the-thao__guide-card img {
  width: 100%;
  height: 350px; /* Fixed height for vertical image */
  object-fit: cover;
  display: block;
  border-radius: 10px;
  border: 2px solid #3A2A12;
}

/* Desktop specific padding for staggered effect */
.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-4 {
  padding-top: 25px;
}
.page-the-thao__guide-card--pos-5 {
  padding-top: 50px;
}

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

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

.page-the-thao__home-content-box {
  background-color: #111111; /* Card BG */
  border: 5px solid #3A2A12; /* Border */
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(242, 193, 78, 0.3);
  padding: 30px;
  height: 700px; /* Fixed height for scrolling content */
  overflow: hidden;
  box-sizing: border-box;
  max-width: 95%; /* Adjust for some margin */
  margin: 0 auto;
}

.page-the-thao__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Enable vertical scrolling */
  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: #333;
  border-radius: 10px;
}

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

.page-the-thao__content-title,
.page-the-thao__sub-title {
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-the-thao__content-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  text-align: center;
  margin-top: 0;
}

.page-the-thao__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  margin-top: 30px;
}

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

.page-the-thao__list,
.page-the-thao__ordered-list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-the-thao__ordered-list {
  list-style-type: decimal;
}

.page-the-thao__list li,
.page-the-thao__ordered-list li {
  margin-bottom: 8px;
}

.page-the-thao__inline-link {
  color: #FFD36B;
  text-decoration: underline;
}

.page-the-thao__inline-link:hover {
  color: #F2C14E;
}

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

.page-the-thao__figure-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  display: block;
  margin: 0 auto;
}

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

.page-the-thao__blog-section {
  padding: 40px 0 60px;
  background-color: #0A0A0A;
}

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

.page-the-thao__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3A2A12;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.4);
}

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

.page-the-thao__blog-thumbnail {
  width: 100%;
  height: 200px; /* Fixed height for blog thumbnails */
  object-fit: cover;
  display: block;
}

.page-the-thao__blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  padding: 15px;
  color: #FFD36B;
  min-height: 70px;
}

.page-the-thao__blog-meta {
  font-size: 0.9em;
  color: #F2C14E;
  padding: 0 15px 15px;
}

.page-the-thao__view-all-button-container {
  text-align: center;
}

/* Universal image styles for responsiveness */
.page-the-thao img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-slider {
    height: 500px;
  }

  .page-the-thao__guide-card {
    flex: 0 0 calc(33.333% - 13.333px); /* 3 cards per row */
    max-width: calc(33.333% - 13.333px);
    padding-top: 0 !important; /* Reset desktop staggering */
  }

  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-the-thao__hero-carousel-section {
    padding-top: 10px !important;
    margin-bottom: 20px;
  }

  .page-the-thao__hero-slider {
    height: 400px !important;
  }

  .page-the-thao__hero-content {
    padding: 20px 5%;
  }

  .page-the-thao__hero-title {
    font-size: 1.8rem !important;
  }

  .page-the-thao__hero-description {
    font-size: 0.9rem !important;
    margin-bottom: 15px;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 0.9rem !important;
  }

  .page-the-thao__hero-slider-prev,
  .page-the-thao__hero-slider-next {
    padding: 10px 5px !important;
    font-size: 20px !important;
  }

  .page-the-thao__guide-box {
    padding: 20px 15px 30px !important;
    margin: 20px auto !important;
  }

  .page-the-thao__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* Use grid for more control */
    gap: 10px !important;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Remove desktop staggering */
    flex: auto !important;
    max-width: 100% !important;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2 {
    grid-column: span 3 !important; /* Top two cards take half width 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 !important; /* Bottom three cards take a third width each */
  }

  .page-the-thao__guide-card img {
    height: 250px !important; /* Adjust height for mobile */
    object-fit: contain !important; /* Ensure image fits */
  }

  .page-the-thao__section-title {
    font-size: 1.5rem !important;
    margin-bottom: 20px !important;
  }

  .page-the-thao__content-section {
    padding: 20px 0 !important;
    margin-bottom: 20px;
  }

  .page-the-thao__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__home-content-box {
    height: auto !important; /* Auto height on mobile */
    overflow: visible !important;
    padding: 20px !important;
    max-width: 100% !important;
    border-width: 3px !important;
  }

  .page-the-thao__home-content-inner {
    height: auto !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }

  .page-the-thao__content-title {
    font-size: 1.8rem !important;
  }

  .page-the-thao__sub-title {
    font-size: 1.3rem !important;
    margin-top: 20px;
  }

  .page-the-thao p {
    font-size: 0.95rem;
  }

  .page-the-thao__list,
  .page-the-thao__ordered-list {
    margin-left: 20px;
  }

  .page-the-thao__blog-section {
    padding: 20px 0 40px !important;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: 1fr !important; /* Single column on mobile */
    gap: 20px !important;
    padding: 0 15px !important;
  }

  .page-the-thao__blog-thumbnail {
    height: 180px !important;
  }

  .page-the-thao__blog-card-title {
    font-size: 1.1rem !important;
    min-height: unset !important;
  }

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

  .page-the-thao__cta-button,
  .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;
  }

  .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;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-the-thao__cta-buttons {
    flex-direction: column !important; 
  }
}