/* style/the-thao.css */
:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --btn-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color);
  background-color: var(--background-page-color);
}

.page-the-thao__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 40px;
  background-color: var(--primary-color);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  z-index: 2;
}

.page-the-thao__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-the-thao__hero-description {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f8ff;
}

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

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-top: 30px;
  z-index: 1;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-the-thao__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-the-thao__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

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

.page-the-thao__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-the-thao__dark-section .page-the-thao__text-block {
  color: #f0f8ff;
}

.page-the-thao__highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.page-the-thao__dark-section .page-the-thao__highlight {
  color: var(--secondary-color);
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-the-thao__list-item {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  color: var(--text-main-color);
}

.page-the-thao__dark-section .page-the-thao__list-item {
  color: #f0f8ff;
}

.page-the-thao__list-item::before {
  content: '✓';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.2rem;
}

.page-the-thao__dark-section .page-the-thao__list-item::before {
  color: var(--secondary-color);
}

.page-the-thao__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-the-thao__ordered-list .page-the-thao__list-item {
  padding-left: 0;
}

.page-the-thao__ordered-list .page-the-thao__list-item::before {
  content: none;
}

.page-the-thao__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-the-thao__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-main-color);
}

.page-the-thao__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-the-thao__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-the-thao__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-main-color);
  padding: 0 15px;
}

.page-the-thao__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-the-thao__btn-primary,
.page-the-thao__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(47, 107, 255, 0.5);
}

.page-the-thao__btn-secondary {
  background-color: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-the-thao__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

.page-the-thao__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-the-thao__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-the-thao__faq-item[open] .page-the-thao__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-the-thao__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  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: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f8ff;
}

.page-the-thao__cta-content {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-the-thao__button-group {
  margin-top: 30px;
}

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

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

  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Rely on body padding for header offset */
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

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

  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-the-thao__container {
    padding: 30px 15px;
  }

  .page-the-thao__section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

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

  .page-the-thao__list-item::before {
    font-size: 1rem;
  }

  .page-the-thao__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-the-thao__card-image {
    height: 180px;
  }

  .page-the-thao__card-title {
    font-size: 1.3rem;
  }

  .page-the-thao__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-the-thao__faq-toggle {
    font-size: 1.2rem;
  }

  .page-the-thao__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mandatory 768px rules for homepage elements (even if not in HTML for this page) */
  .page-the-thao__hero-carousel-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-the-thao__hero-slider {
    width: 100%;
    overflow: hidden;
  }
  .page-the-thao__hero-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-the-thao__hero-slider-prev, .page-the-thao__hero-slider-next {
    display: none; /* Hide arrows on mobile */
  }
  
  .page-the-thao__guide-box {
    padding: 10px 15px;
  }
  .page-the-thao__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }
  .page-the-thao__guide-card {
    padding-top: 0 !important; /* Reset specific padding for mobile */
    flex: none;
    max-width: 100%;
    grid-column: span 3; /* Default to 2 columns */
  }
  .page-the-thao__guide-card--pos-1, .page-the-thao__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards take 3/6 = 1/2 width */
  }
  .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 take 2/6 = 1/3 width, making 3 cards per row */
  }
  .page-the-thao__guide-card img {
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  .page-the-thao__home-content-box {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Full content visible */
    border: none;
    box-shadow: none;
    padding: 15px;
    border-radius: 0;
  }
  .page-the-thao__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }

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

  /* General image and container rules for mobile */
  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .page-the-thao__cta-buttons, .page-the-thao__button-group {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    max-width: 760px;
  }
  .page-the-thao__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-the-thao__hero-description {
    font-size: 1.05rem;
  }
  .page-the-thao__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-the-thao__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 16px 20px;
  }
  .page-the-thao__faq-answer {
    padding: 0 20px 18px;
  }
  /* Mandatory 1024px rules for homepage elements (even if not in HTML for this page) */
  .page-the-thao__guide-grid {
    grid-template-columns: repeat(5, 1fr); /* Adjust for 5 items in a row */
  }
  .page-the-thao__guide-card {
    flex: 0 0 20%;
    max-width: 20%;
  }
  .page-the-thao__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns for tablet */
  }
}