/* style/the-thao.css */
.page-the-thao {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color */
  background-color: #B71C1C; /* Body Background color */
}

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

.page-the-thao__article-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-the-thao__hero-section {
  padding-top: 10px; /* Small top padding, header offset handled by body */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height for hero image */
  margin-bottom: 20px;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Slightly transparent background for readability */
  border-radius: 8px;
}

.page-the-thao__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-the-thao__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-the-thao__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
}

.page-the-thao__btn-secondary {
  background: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544;
  box-shadow: 0 4px 15px rgba(201, 31, 23, 0.4);
}

.page-the-thao__btn-secondary:hover {
  background: #E53935; /* Auxiliary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

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

.page-the-thao__dark-section {
  background-color: #D32F2F; /* Card BG color for dark sections */
  color: #FFF5E1;
}

.page-the-thao__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FFD86A; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-the-thao__section-title--light {
  color: #FFF5E1; /* Lighter text for dark backgrounds */
}

.page-the-thao__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-the-thao__text-block--light {
  color: #FFF5E1;
}

.page-the-thao__highlight {
  color: #FFD86A;
  font-weight: 600;
}

.page-the-thao__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-the-thao__list-items {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-the-thao__list-items li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-the-thao__list-items--light li {
  color: #FFF5E1;
}

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

.page-the-thao__cta-buttons--mt-large {
  margin-top: 60px;
}

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

.page-the-thao__game-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #7A0E0E; /* Deep Red border */
}

.page-the-thao__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-the-thao__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-the-thao__game-title {
  font-size: 1.6rem;
  color: #FFD86A; /* Gold */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-the-thao__game-description {
  font-size: 0.95rem;
  color: #FFF5E1;
  margin-bottom: 20px;
}

.page-the-thao__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.page-the-thao__faq-list {
  margin-top: 40px;
}

.page-the-thao__faq-item {
  background-color: #C91F17; /* Main color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__faq-question {
  font-size: 1.25rem;
  color: #FFD86A; /* Gold */
  padding: 20px 25px;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
  font-weight: 600;
}

.page-the-thao__faq-question:hover {
  background-color: #E53935; /* Auxiliary color */
}

.page-the-thao__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  padding: 0 25px;
  color: #FFF5E1;
  font-size: 1rem;
}

.page-the-thao__faq-answer p {
  padding-bottom: 20px;
  margin-bottom: 0;
}

.page-the-thao__faq-item.active .page-the-thao__faq-answer {
  max-height: 500px; /* Arbitrary large value to allow content to expand */
}

.page-the-thao__faq-item.active .page-the-thao__faq-question {
  background-color: #E53935;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-section {
    padding-bottom: 30px;
  }

  .page-the-thao__main-title {
    font-size: 3rem;
  }

  .page-the-thao__hero-description {
    font-size: 1.05rem;
  }

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

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

  .page-the-thao__game-cards {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

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

  /* 1. Top section title + CTA */
  .page-the-thao__hero-section {
    padding-top: 10px !important; /* Small top padding, header offset handled by body */
    padding-bottom: 20px;
  }

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

  .page-the-thao__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 10px;
  }

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

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

  /* 4. Buttons and button containers */
  .page-the-thao__btn,
  .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 {
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for multiple buttons */
  }

  /* 2. Single-column content container */
  .page-the-thao__section {
    padding: 30px 0;
  }

  .page-the-thao__container,
  .page-the-thao__article-wrap {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-the-thao__text-block,
  .page-the-thao__list-items li,
  .page-the-thao__game-description {
    font-size: 0.95rem;
  }

  /* 3. Generic images and figure */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-the-thao__game-image {
    height: auto; /* Allow height to adjust naturally on mobile */
  }

  .page-the-thao__game-title {
    font-size: 1.4rem;
  }

  /* 5. FAQ section (as text, no accordion JS needed for this page) */
  .page-the-thao__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-the-thao__faq-answer p {
    padding-bottom: 15px;
  }
}