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

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

.page-the-thao__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  text-align: center;
  color: #FF8C1A;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-the-thao__section-description {
  font-size: 18px;
  text-align: center;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

.page-the-thao__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-the-thao__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-the-thao__btn-secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
  border-color: #FF8C1A;
  transform: translateY(-2px);
}

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  background-color: #0D0E12;
  padding-bottom: 50px;
}

.page-the-thao__hero-carousel-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Rely on body padding-top for header offset */
}

.page-the-thao__hero-slider {
  display: flex;
  position: relative;
  width: 100%;
  height: 675px; /* Fixed height for desktop */
}

.page-the-thao__hero-slide {
  min-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  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: rgba(0, 0, 0, 0.5);
  color: #FFF3E6;
  border: none;
  padding: 15px 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 24px;
  line-height: 1;
}

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

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

.page-the-thao__hero-slider-prev::before {
  content: '‹';
}

.page-the-thao__hero-slider-next::before {
  content: '›';
}

.page-the-thao__hero-content-block {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: center;
  padding: 0 15px;
}

.page-the-thao__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  color: #FF8C1A;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-the-thao__hero-description {
  font-size: 20px;
  color: #FFF3E6;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Why Choose Section */
.page-the-thao__why-choose-section {
  padding: 60px 0;
  background-color: #17191F;
}

.page-the-thao__guide-box {
  padding: 16px 20px 24px;
  background: #17191F;
  border-radius: 4px;
  border: 1px solid #A84F0C;
}

.page-the-thao__guide-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 15px;
  align-items: flex-start;
}

.page-the-thao__guide-card {
  flex: 0 0 20%;
  max-width: 20%;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

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

.page-the-thao__guide-card img {
  aspect-ratio: 250 / 350;
  object-fit: contain;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 2px solid #A84F0C;
}

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

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

/* Content Section */
.page-the-thao__content-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-the-thao__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #A84F0C;
  border-radius: 15px;
  box-shadow: 0 0 20px #FFB04D;
  height: 700px;
  background-color: #17191F;
  color: #FFF3E6;
}

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

.page-the-thao__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-the-thao__home-content-inner::-webkit-scrollbar-track {
  background: #0D0E12;
  border-radius: 10px;
}

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

.page-the-thao__content-heading {
  font-size: 36px;
  color: #FF8C1A;
  margin-top: 20px;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-the-thao__content-subheading {
  font-size: 28px;
  color: #FFA53A;
  margin-top: 35px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-the-thao__home-content-box p,
.page-the-thao__home-content-box li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-the-thao__home-content-box ul,
.page-the-thao__home-content-box ol {
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-the-thao__home-content-box li strong {
  color: #FF8C1A;
}

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

.page-the-thao__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #A84F0C;
}

.page-the-thao__image-caption {
  font-size: 15px;
  color: #FFA53A;
  margin-top: 10px;
}

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

.page-the-thao__faq-item {
  margin-bottom: 20px;
  border-bottom: 1px solid #A84F0C;
  padding-bottom: 15px;
}

.page-the-thao__faq-question {
  font-size: 20px;
  color: #FF8C1A;
  font-weight: 600;
  cursor: pointer;
  padding-right: 20px;
  position: relative;
  margin-bottom: 10px;
}

.page-the-thao__faq-answer {
  font-size: 16px;
  color: #FFF3E6;
  padding-left: 10px;
}

/* Blog Section */
.page-the-thao__blog-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-the-thao__blog-card {
  background-color: #17191F;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C;
}

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

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

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

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

.page-the-thao__blog-card-title {
  font-size: 20px;
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-the-thao__blog-card-excerpt {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-the-thao__blog-read-more {
  color: #FFA53A;
  font-weight: 600;
  display: inline-block;
}

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

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

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

  .page-the-thao__guide-card {
    flex: 0 0 22%;
    max-width: 22%;
  }

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

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

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

@media (max-width: 768px) {
  /* General responsiveness */
  .page-the-thao__container {
    padding: 0 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__section-title {
    font-size: 28px;
    padding-top: 20px;
  }

  .page-the-thao__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-the-thao__content-heading {
    font-size: 28px;
  }

  .page-the-thao__content-subheading {
    font-size: 22px;
  }

  .page-the-thao__home-content-box p,
  .page-the-thao__home-content-box li {
    font-size: 16px;
  }

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

  .page-the-thao__hero-slider {
    height: 350px !important; /* Adjust height for mobile */
  }

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

  .page-the-thao__main-title {
    font-size: 30px;
  }

  .page-the-thao__hero-description {
    font-size: 17px;
  }

  .page-the-thao__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    box-sizing: border-box !important;
  }

  /* Why Choose Section - 5 vertical guide cards */
  .page-the-thao__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* 6 columns for 2-3 layout */
    gap: 10px !important;
    align-items: flex-start !important;
    padding: 0 10px !important;
  }

  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset padding-top */
    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; /* First 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 !important; /* Remaining three cards span 2 columns each */
  }

  /* home_content box */
  .page-the-thao__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    padding: 15px !important;
    box-sizing: border-box !important;
  }

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

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

  .page-the-thao__blog-card-image {
    height: 150px !important;
  }

  .page-the-thao__blog-card-title {
    font-size: 18px !important;
  }

  .page-the-thao__blog-card-excerpt {
    font-size: 15px !important;
  }

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

  .page-the-thao__content-section,
  .page-the-thao__why-choose-section,
  .page-the-thao__blog-section {
    padding: 30px 0 !important;
  }
}

@media (max-width: 480px) {
  .page-the-thao__blog-grid {
    grid-template-columns: 1fr !important;
  }

  .page-the-thao__guide-grid {
    grid-template-columns: 1fr !important;
  }

  .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 !important;
  }
}