/* Biến màu sắc */
:root {
  --page-the-thao-primary-color: #11A84E;
  --page-the-thao-secondary-color: #22C768;
  --page-the-thao-dark-bg: #08160F;
  --page-the-thao-card-bg: #11271B;
  --page-the-thao-text-main: #F2FFF6;
  --page-the-thao-text-secondary: #A7D9B8;
  --page-the-thao-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-the-thao-border-color: #2E7A4E;
  --page-the-thao-glow-color: #57E38D;
  --page-the-thao-gold-color: #F2C14E;
  --page-the-thao-divider-color: #1E3A2A;
  --page-the-thao-deep-green: #0A4B2C;
}

.page-the-thao {
  font-family: 'Arial', sans-serif;
  color: var(--page-the-thao-text-main); /* Sử dụng màu chữ chính cho toàn bộ trang */
  background-color: var(--page-the-thao-dark-bg);
}

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

.page-the-thao__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  color: var(--page-the-thao-text-main);
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-the-thao__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  color: var(--page-the-thao-text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.page-the-thao__hero-section {
  position: relative;
  padding-top: 10px; /* Nhỏ hơn so với header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-the-thao__hero-image-wrap {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-the-thao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-the-thao__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -150px; /* Kéo nội dung lên trên ảnh một chút để tạo hiệu ứng */
  background: rgba(17, 39, 27, 0.85); /* Card BG với độ trong suốt */
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--page-the-thao-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

.page-the-thao__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-the-thao-text-main);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-the-thao__btn-primary {
  background: var(--page-the-thao-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-the-thao__btn-secondary {
  background: transparent;
  color: var(--page-the-thao-glow-color);
  border: 2px solid var(--page-the-thao-glow-color);
  box-shadow: 0 4px 15px rgba(87, 227, 141, 0.2);
}

.page-the-thao__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(87, 227, 141, 0.4);
}

.page-the-thao__why-choose-section,
.page-the-thao__guide-section,
.page-the-thao__faq-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-dark-bg);
}

.page-the-thao__sports-highlight-section,
.page-the-thao__promo-section,
.page-the-thao__conclusion-section {
  padding: 80px 0;
  background-color: var(--page-the-thao-card-bg);
}

.page-the-thao__dark-section {
  background-color: var(--page-the-thao-dark-bg);
}

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

.page-the-thao__feature-card {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--page-the-thao-border-color);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__card-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--page-the-thao-gold-color);
  margin-bottom: 15px;
}

.page-the-thao__feature-card p {
  font-size: 16px;
  color: var(--page-the-thao-text-secondary);
  line-height: 1.6;
}

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

.page-the-thao__sport-card {
  background-color: var(--page-the-thao-dark-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--page-the-thao-border-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-the-thao__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-the-thao__sport-card .page-the-thao__card-title {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  text-align: left;
}

.page-the-thao__sport-card p {
  padding: 0 20px 20px;
  color: var(--page-the-thao-text-secondary);
  flex-grow: 1;
  text-align: left;
  line-height: 1.6;
}

.page-the-thao__sport-card .page-the-thao__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

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

.page-the-thao__step-card {
  background-color: var(--page-the-thao-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--page-the-thao-border-color);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  padding-top: 60px;
}

.page-the-thao__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--page-the-thao-button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  border: 3px solid var(--page-the-thao-deep-green);
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-the-thao__step-card .page-the-thao__card-title {
  color: var(--page-the-thao-glow-color);
  margin-top: 15px;
}

.page-the-thao__step-card p {
  color: var(--page-the-thao-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-the-thao__promo-section {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 80px 20px;
  background-color: var(--page-the-thao-card-bg);
}

.page-the-thao__promo-content {
  flex: 1;
  max-width: 600px;
}

.page-the-thao__promo-content .page-the-thao__section-title,
.page-the-thao__promo-content .page-the-thao__section-description {
  text-align: left;
}

.page-the-thao__promo-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
  color: var(--page-the-thao-text-main);
  font-size: 17px;
  line-height: 1.8;
}

.page-the-thao__promo-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 30px;
}

.page-the-thao__promo-list li::before {
  content: '✔';
  color: var(--page-the-thao-glow-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-the-thao__promo-image-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-the-thao__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--page-the-thao-border-color);
}

.page-the-thao__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-the-thao__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--page-the-thao-border-color);
  overflow: hidden;
  background: var(--page-the-thao-card-bg);
}

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

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: var(--page-the-thao-deep-green);
}

.page-the-thao__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--page-the-thao-text-main);
}

.page-the-thao__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-the-thao-glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-the-thao__faq-item .page-the-thao__faq-answer {
  padding: 0 20px 20px;
  background: var(--page-the-thao-deep-green);
  border-radius: 0 0 5px 5px;
  color: var(--page-the-thao-text-secondary);
  line-height: 1.7;
}

.page-the-thao__conclusion-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
  .page-the-thao__hero-content {
    margin-top: -100px;
  }
  .page-the-thao__promo-section {
    flex-direction: column;
    text-align: center;
  }
  .page-the-thao__promo-content,
  .page-the-thao__promo-image-wrap {
    max-width: 100%;
  }
  .page-the-thao__promo-content .page-the-thao__section-title,
  .page-the-thao__promo-content .page-the-thao__section-description {
    text-align: center;
  }
  .page-the-thao__promo-list {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 30px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-the-thao__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-the-thao__hero-image {
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important;
    height: auto !important;
  }
  .page-the-thao__hero-content {
    margin-top: -80px; /* Điều chỉnh lại khoảng cách */
    padding: 20px 15px;
    max-width: calc(100% - 30px);
  }
  .page-the-thao__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-the-thao__hero-description {
    font-size: clamp(15px, 3vw, 18px);
  }
  .page-the-thao__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-the-thao__btn-primary,
  .page-the-thao__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 产品展示图区域 (Features Grid) */
  .page-the-thao__features-grid,
  .page-the-thao__sports-grid,
  .page-the-thao__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-the-thao__section-title {
    font-size: clamp(24px, 7vw, 28px);
    padding: 0 15px;
  }
  .page-the-thao__section-description {
    font-size: clamp(14px, 3.5vw, 16px);
    padding: 0 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-the-thao__section-title-wrap,
  .page-the-thao__article-body,
  .page-the-thao__article-figure {
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-the-thao__article-body p,
  .page-the-thao__article-body li {
    font-size: 15px;
    line-height: 1.7;
  }

  /* 通用图片与容器 */
  .page-the-thao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-the-thao__container,
  .page-the-thao__promo-section,
  .page-the-thao__promo-content,
  .page-the-thao__promo-image-wrap,
  .page-the-thao__feature-card,
  .page-the-thao__sport-card,
  .page-the-thao__step-card,
  .page-the-thao__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-the-thao__promo-section {
    flex-direction: column;
    padding: 40px 0;
  }
  .page-the-thao__promo-content .page-the-thao__section-title,
  .page-the-thao__promo-content .page-the-thao__section-description {
    text-align: center;
  }
  .page-the-thao__promo-list {
    padding-left: 20px;
    margin-bottom: 20px;
  }
  .page-the-thao__promo-image {
    margin-top: 30px;
  }

  /* FAQ */
  details.page-the-thao__faq-item summary.page-the-thao__faq-question {
    padding: 15px;
  }
  .page-the-thao__faq-qtext {
    font-size: 16px;
  }
  details.page-the-thao__faq-item .page-the-thao__faq-answer {
    padding: 0 15px 15px;
  }

  /* Sections padding */
  .page-the-thao__why-choose-section,
  .page-the-thao__sports-highlight-section,
  .page-the-thao__guide-section,
  .page-the-thao__faq-section,
  .page-the-thao__conclusion-section {
    padding: 40px 0;
  }
}