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

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

.page-the-thao__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 30px;
  text-align: left;
  line-height: 1.2;
}

.page-the-thao__section-title--centered {
  text-align: center;
}

.page-the-thao__section-title--light {
  color: #ffffff;
}

.page-the-thao__text-block p,
.page-the-thao__text-block li {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 1em;
}

.page-the-thao__text-block ul,
.page-the-thao__text-block ol {
  margin-bottom: 1em;
  padding-left: 25px;
}

.page-the-thao__text-block strong {
  color: #017439;
}

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

.page-the-thao__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
  margin: 0 auto;
}

.page-the-thao__image-wrapper figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

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

.page-the-thao__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

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

.page-the-thao__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-the-thao__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

/* Hero Carousel Section */
.page-the-thao__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding */
  background-color: #017439;
}

.page-the-thao__hero-slider {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed 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;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* Image above content */
}

.page-the-thao__hero-slide.is-active {
  opacity: 1;
}

.page-the-thao__hero-slide img {
  width: 100%;
  height: 70%; /* Image takes top 70% */
  object-fit: cover;
  display: block;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  background-color: #ffffff;
  padding: 20px 15px;
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  text-align: center;
  margin-top: -5px; /* Slight overlap with image for visual flow */
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-the-thao__hero-title {
  font-size: clamp(2.2em, 3.5vw, 3.2em);
  font-weight: 800;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-subtitle {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #017439;
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

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

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

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

/* Guide Box Section */
.page-the-thao__guide-box {
  background-color: #f0f0f0;
  padding: 50px 0;
  text-align: center;
}

.page-the-thao__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to start for staggered effect */
  gap: 20px;
  margin-top: 40px;
  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-decoration: none;
  color: #333333;
  display: block;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__guide-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-the-thao__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Staggered effect for guide cards */
.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; }

/* Content Area */
.page-the-thao__content-area {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-the-thao__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-the-thao__dark-bg .page-the-thao__section-title {
  color: #ffffff;
}

/* FAQ Specific Styles */
.page-the-thao__faq-list {
  margin-top: 30px;
}

.page-the-thao__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  border-radius: 8px;
  overflow: hidden;
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-the-thao__faq-question::-webkit-details-marker {
  display: none;
}

.page-the-thao__faq-qtext {
  flex-grow: 1;
}

.page-the-thao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-toggle {
  transform: rotate(45deg);
}

.page-the-thao__faq-answer {
  padding: 15px 20px;
  background-color: #ffffff;
  color: #555555;
  border-top: 1px solid #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
}

/* Blog Section */
.page-the-thao__blog-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-the-thao__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-the-thao__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-the-thao__blog-thumbnail-link {
  display: block;
  height: 200px;
  overflow: hidden;
}

.page-the-thao__blog-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-the-thao__blog-card:hover .page-the-thao__blog-thumbnail {
  transform: scale(1.05);
}

.page-the-thao__blog-content {
  padding: 20px;
}

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

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

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

.page-the-thao__blog-date {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-the-thao__blog-excerpt {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-the-thao__blog-read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

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

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

  .page-the-thao__hero-slide img {
    height: 65%;
  }

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

  .page-the-thao__guide-card {
    flex: 0 0 calc(33.333% - 13.333px); /* 3 cards per row */
    max-width: calc(33.333% - 13.333px);
  }

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

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-the-thao__container {
    padding: 0 15px;
  }

  .page-the-thao__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-the-thao__text-block p,
  .page-the-thao__text-block li {
    font-size: 1em;
  }

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

  .page-the-thao__hero-slider {
    height: auto;
    min-height: 400px;
  }

  .page-the-thao__hero-slide {
    flex-direction: column;
    justify-content: flex-start;
  }

  .page-the-thao__hero-slide img {
    height: 250px;
    width: 100%;
    object-fit: cover;
  }

  .page-the-thao__hero-content {
    padding: 15px 10px;
    margin-top: -5px;
    border-radius: 0;
    box-shadow: none;
  }

  .page-the-thao__hero-title,
  .page-the-thao__hero-subtitle {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  .page-the-thao__hero-cta-buttons {
    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;
    font-size: 1em;
  }

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

  /* 2. Guide Box + 5 Team Vertical Cards */
  .page-the-thao__guide-box {
    padding: 30px 0;
  }

  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Base grid for spans */
    gap: 10px;
    margin-top: 20px;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset staggered effect */
    flex: auto; /* Allow flex to adjust */
    max-width: 100%; /* Reset max-width */
  }

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

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

  /* 3. Home Content Box */
  .page-the-thao__home-content-box {
    max-width: 100%;
    height: auto !important; /* Full content visible */
    border: none;
    box-shadow: none;
    padding: 20px 15px;
    margin: 0;
  }

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

  /* 4. Blog Cards Section */
  .page-the-thao__blog-section {
    padding: 40px 0;
  }

  .page-the-thao__blog-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    margin-top: 30px;
  }

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

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

  .page-the-thao__blog-title {
    font-size: 1.1em;
  }

  .page-the-thao__blog-excerpt {
    font-size: 0.95em;
  }

  .page-the-thao__view-all-button-wrapper {
    margin-top: 30px;
  }

  /* 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__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;
  }

  /* FAQ Mobile Adjustments */
  .page-the-thao__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-the-thao__faq-answer {
    padding: 12px 15px;
    font-size: 0.95em;
  }
}

@media (max-width: 480px) {
  .page-the-thao__guide-grid {
    grid-template-columns: 1fr; /* Single column for very small 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; /* Each card takes full width */
  }
}