/* style/the-thao.css */
.page-the-thao {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--background-color-dark, #08160F);
}

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

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

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  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-slide img {
  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: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  border-radius: 5px;
}

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

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

.page-the-thao__hero-content-wrapper {
  position: relative;
  text-align: center;
  padding: 20px;
  max-width: 1200px;
  margin: 20px auto 0;
  background: var(--card-bg-color, #11271B);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.5);
}

.page-the-thao__intro-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-secondary-color, #A7D9B8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-the-thao__btn-primary {
  background: var(--button-gradient, linear-gradient(180deg, #2AD16F 0%, #13994A 100%));
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid transparent;
}

.page-the-thao__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--text-main-color, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(var(--border-color-rgb, 46, 122, 78), 0.2);
  transform: translateY(-2px);
}

.page-the-thao__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color, #F2C14E);
  text-shadow: 0 0 3px rgba(242, 193, 78, 0.3);
}

.page-the-thao__section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary-color, #A7D9B8);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__guide-box {
  background: var(--card-bg-color, #11271B);
  border-radius: 8px;
  padding: 40px 20px 60px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-the-thao__guide-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-the-thao__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-the-thao__guide-card:hover img {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(var(--deep-green-rgb, 10, 75, 44), 0.6);
}

.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__home-content-box {
  max-width: 1200px;
  margin: 0 auto 20px;
  padding: 30px;
  border: 5px solid var(--border-color, #2E7A4E);
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(var(--deep-green-rgb, 10, 75, 44), 0.7);
  background-color: var(--card-bg-color, #11271B);
  height: 700px; /* Fixed height for desktop */
  color: var(--text-main-color, #F2FFF6);
}

.page-the-thao__home-content-inner {
  height: 100%;
  overflow-y: auto; /* Scrollable content for desktop */
  padding-right: 15px; /* Space for scrollbar */
}

/* Custom scrollbar for webkit browsers */
.page-the-thao__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-track {
  background: var(--deep-green-color, #0A4B2C);
  border-radius: 10px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-thumb {
  background: var(--gold-color, #F2C14E);
  border-radius: 10px;
}

.page-the-thao__paragraph {
  margin-bottom: 15px;
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-the-thao__highlight {
  color: var(--gold-color, #F2C14E);
  font-weight: bold;
}

.page-the-thao__sub-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--divider-color, #1E3A2A);
  padding-bottom: 5px;
}

.page-the-thao__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-the-thao__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-the-thao__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--glow-color, #57E38D);
}

.page-the-thao__list-item strong {
  color: var(--text-main-color, #F2FFF6);
}

.page-the-thao__blog-section {
  background-color: var(--background-color-dark, #08160F);
  padding: 60px 20px;
}

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

.page-the-thao__blog-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(var(--deep-green-rgb, 10, 75, 44), 0.5);
}

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

.page-the-thao__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog card images */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

.page-the-thao__blog-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  padding: 15px;
  margin-bottom: 0;
}

.page-the-thao__blog-card-meta {
  font-size: 0.9rem;
  color: var(--text-secondary-color, #A7D9B8);
  padding: 0 15px;
  margin-bottom: 10px;
}

.page-the-thao__blog-card-excerpt {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-the-thao__blog-card-readmore {
  display: inline-block;
  padding: 10px 15px;
  color: var(--gold-color, #F2C14E);
  text-decoration: none;
  font-weight: bold;
  border-top: 1px solid var(--divider-color, #1E3A2A);
  margin-top: auto;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-the-thao__blog-card-readmore:hover {
  color: var(--glow-color, #57E38D);
}

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

.page-the-thao__cta-section {
  background-color: var(--deep-green-color, #0A4B2C);
  padding: 60px 20px;
  text-align: center;
  color: var(--text-main-color, #F2FFF6);
}

.page-the-thao__cta-section .page-the-thao__section-title {
  color: var(--gold-color, #F2C14E);
}

.page-the-thao__cta-section .page-the-thao__paragraph {
  max-width: 800px;
  margin: 0 auto 30px;
  color: var(--text-secondary-color, #A7D9B8);
}

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

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-the-thao__hero-content-wrapper {
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 15px;
  }

  .page-the-thao__guide-grid {
    gap: 10px;
  }

  .page-the-thao__guide-card {
    flex: 0 0 calc(33.333% - 7px);
    max-width: calc(33.333% - 7px);
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-5 {
    padding-top: 0;
  }

  .page-the-thao__guide-card--pos-2,
  .page-the-thao__guide-card--pos-4 {
    padding-top: 0;
  }

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

@media (max-width: 768px) {
  .page-the-thao__hero-carousel-section {
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-the-thao__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-the-thao__intro-description {
    font-size: 1rem;
  }

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

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    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__section-title {
    font-size: 2rem;
  }

  .page-the-thao__section-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for fine control */
    gap: 10px;
    padding: 0 10px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset desktop padding */
    flex: auto; /* Allow grid to manage sizing */
    max-width: 100%;
  }

  .page-the-thao__guide-card--pos-1,
  .page-the-thao__guide-card--pos-2 {
    grid-column: span 3; /* Two cards on top 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; /* Three cards on second row */
  }

  .page-the-thao__guide-card img {
    border: 1px solid var(--border-color, #2E7A4E); /* Thinner border for mobile */
  }

  .page-the-thao__home-content-box {
    height: auto; /* Full height for mobile */
    overflow: visible;
    padding: 20px;
    margin: 0 15px 20px;
    max-width: calc(100% - 30px);
  }

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

  .page-the-thao__sub-title {
    font-size: 1.5rem;
  }

  .page-the-thao__paragraph,
  .page-the-thao__list-item {
    font-size: 0.95rem;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column for blog cards */
    gap: 15px;
    padding: 0 15px;
  }

  .page-the-thao__blog-card img {
     /* Adjust height for mobile */
  }

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

  .page-the-thao__blog-card-excerpt {
    font-size: 0.9rem;
    padding: 0 15px 10px;
  }

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

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