.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
}

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

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

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-the-thao__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

.page-the-thao__highlight-text {
  color: #57E38D; /* Glow */
  font-weight: 600;
}

.page-the-thao a {
  color: #57E38D; /* Glow */
  text-decoration: none;
}

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

/* Hero Section */
.page-the-thao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared */
  padding-bottom: 40px;
}

.page-the-thao__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop default */
  filter: brightness(0.7); /* Darken image slightly for text contrast */
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-the-thao__hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  color: #F2FFF6; /* Text Main */
}

.page-the-thao__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* Buttons */
.page-the-thao__btn-primary,
.page-the-thao__btn-secondary,
.page-the-thao__btn-tertiary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.page-the-thao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-the-thao__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-the-thao__btn-secondary {
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D; /* Glow */
}

.page-the-thao__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background - ensure contrast */
  transform: translateY(-2px);
}

.page-the-thao__btn-tertiary {
  background: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-the-thao__btn-tertiary:hover {
  background: #13994A; /* Slightly lighter green */
  transform: translateY(-1px);
}

/* Sports Categories Section */
.page-the-thao__sports-categories {
  background-color: #08160F; /* Background */
}

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

.page-the-thao__category-card {
  background: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Border */
}

.page-the-thao__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-the-thao__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-the-thao__card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Benefits Section */
.page-the-thao__benefits-section {
  background-color: #0A4B2C; /* Deep Green */
}

.page-the-thao__dark-section {
  background: #0A4B2C;
  color: #F2FFF6; /* Text Main */
}

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

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

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

.page-the-thao__benefit-item {
  background: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-the-thao__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-the-thao__benefit-description {
  font-size: 16px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
}

/* Guide Section */
.page-the-thao__guide-section {
  background-color: #08160F; /* Background */
}

.page-the-thao__guide-content {
  margin-top: 30px;
}

.page-the-thao__guide-subtitle {
  font-size: 26px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-top: 35px;
  margin-bottom: 15px;
}

.page-the-thao__guide-list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-the-thao__guide-list li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.page-the-thao__guide-list li strong {
  color: #F2FFF6; /* Text Main */
}

/* FAQ Section */
.page-the-thao__faq-section {
  background-color: #11271B; /* Card BG */
  padding: 40px 20px;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #08160F; /* Background */
}

details.page-the-thao__faq-item summary.page-the-thao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

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

details.page-the-thao__faq-item summary.page-the-thao__faq-question:hover {
  background: #133020; /* Slightly lighter dark green */
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}

.page-the-thao__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 25px 20px;
  background: #0A1E14; /* Deep Green, slightly lighter */
  border-radius: 0 0 10px 10px;
  color: #A7D9B8; /* Text Secondary */
}

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

/* CTA Section */
.page-the-thao__cta-section {
  text-align: center;
  background-color: #08160F; /* Background */
  padding: 60px 20px;
}

.page-the-thao__cta-content {
  max-width: 800px;
}

.page-the-thao__cta-group {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-the-thao__responsible-gaming {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 40px;
}


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

  .page-the-thao__hero-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }

  .page-the-thao__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }

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

  .page-the-thao__benefit-item {
    padding: 25px;
  }

  .page-the-thao__benefit-title {
    font-size: 20px;
  }

  .page-the-thao__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 849px) {
  /* HERO Chủ Đề Hình Ảnh - object-fit:contain cho di động */
  .page-the-thao__hero-image {
    object-fit: contain !important; /* Ngăn chặn cắt xén trên màn hình nhỏ hơn */
    aspect-ratio: unset !important; /* Cho phép tỷ lệ khung hình tự nhiên */
    height: auto !important;
    max-height: 400px; /* Điều chỉnh chiều cao tối đa cho di động */
  }
}

@media (max-width: 768px) {
  .page-the-thao__section {
    padding: 30px 15px;
  }

  .page-the-thao__container {
    padding: 0 10px;
  }

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

  .page-the-thao__text-block {
    font-size: 16px;
    line-height: 1.7;
  }

  .page-the-thao__hero-section {
    padding-top: 10px; /* Đảm bảo khoảng đệm trên nhỏ, không phải var(--header-offset) */
    padding-bottom: 30px;
  }

  .page-the-thao__hero-image-wrapper {
    margin-bottom: 15px;
  }

  .page-the-thao__hero-title {
    font-size: 30px;
    margin-bottom: 10px;
  }

  .page-the-thao__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

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

  /* Nút thích ứng di động */
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary,
  .page-the-thao__btn-tertiary,
  .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 !important;
    padding-right: 15px !important;
  }

  /* Hình ảnh thích ứng */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-the-thao__introduction-section,
  .page-the-thao__sports-categories,
  .page-the-thao__benefits-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__cta-section,
  .page-the-thao__category-card,
  .page-the-thao__benefit-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Lưới Sản phẩm/Danh mục - 2 cột trên di động */
  .page-the-thao__category-grid {
    grid-template-columns: 1fr 1fr; /* Hai cột trên di động */
    gap: 15px;
    overflow-x: hidden; /* Ngăn chặn cuộn ngang */
  }

  .page-the-thao__card-image {
    height: 160px; /* Điều chỉnh chiều cao hình ảnh thẻ cho di động */
  }

  .page-the-thao__card-title {
    font-size: 20px;
  }

  .page-the-thao__card-description {
    font-size: 14px;
  }

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

  .page-the-thao__benefit-title {
    font-size: 18px;
  }

  .page-the-thao__guide-subtitle {
    font-size: 22px;
    margin-top: 30px;
  }

  .page-the-thao__guide-list {
    margin-left: 20px;
  }

  .page-the-thao__faq-qtext {
    font-size: 16px;
  }

  .page-the-thao__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px 20px;
  }

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

  .page-the-thao__cta-section {
    padding: 40px 15px;
  }

  .page-the-thao__cta-content {
    padding: 0 10px;
  }
}