/* style/ththao.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-ththao {
  background-color: #08160F; /* Nền chính theo tùy chỉnh */
  color: #F2FFF6; /* Màu chữ chính theo tùy chỉnh */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

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

.page-ththao__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px 40px;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ, không dùng var(--header-offset) */
  background-color: #08160F; /* Đảm bảo nền khớp */
}

.page-ththao__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Hoặc kích thước phù hợp với hero */
  margin-bottom: 30px;
}

.page-ththao__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-ththao__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-ththao__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Sử dụng clamp để kiểm soát kích thước */
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-ththao__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Màu chữ phụ */
}

.page-ththao__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng trên mobile */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-ththao__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo nút không tràn */
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ */
}

.page-ththao__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  border: none;
}

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

.page-ththao__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border: 2px solid #2AD16F;
}

.page-ththao__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
}

/* Video Section */
.page-ththao__video-section {
  padding: 40px 20px;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

.page-ththao__video-section .page-ththao__section-title {
  color: #F2FFF6;
  margin-bottom: 30px;
}

.page-ththao__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  width: 100%; /* Quan trọng cho desktop */
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-ththao__video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block; /* Đảm bảo video là block */
}

/* Content Sections */
.page-ththao__content-section {
  padding: 40px 20px;
  background-color: #08160F;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-ththao__section-title {
  font-size: 2.2em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-ththao__sub-title {
  font-size: 1.8em;
  color: #22C768; /* Auxiliary color */
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-ththao__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-ththao__image-container {
  margin: 30px 0;
  text-align: center;
}

.page-ththao__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-ththao__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.page-ththao__list-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #F2FFF6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-ththao__list-item::before {
  content: '✓';
  color: #57E38D; /* Glow */
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

/* FAQ Section */
.page-ththao__faq-section {
  padding: 60px 20px;
  background-color: #0A4B2C; /* Deep Green */
}

.page-ththao__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-ththao__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-ththao__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  background-color: #11271B;
  color: #F2FFF6;
  border-bottom: 1px solid transparent; /* default */
}

.page-ththao__faq-item[open] .page-ththao__faq-question {
  border-bottom: 1px solid #2E7A4E; /* border when open */
}

.page-ththao__faq-question::-webkit-details-marker {
  display: none;
}

.page-ththao__faq-question::marker {
  display: none;
}

.page-ththao__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-ththao__faq-item[open] .page-ththao__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-ththao__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .page-ththao__hero-section {
    padding: 40px 15px 30px;
    padding-top: 10px !important; /* Ensure small top padding on mobile */
  }

  .page-ththao__main-title {
    font-size: 2em;
    max-width: 100%;
  }

  .page-ththao__description {
    font-size: 1em;
  }

  .page-ththao__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  .page-ththao__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-ththao__section,
  .page-ththao__content-section,
  .page-ththao__faq-section,
  .page-ththao__cta-section {
    padding: 30px 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-ththao__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-ththao__sub-title {
    font-size: 1.5em;
  }

  .page-ththao__text-block,
  .page-ththao__list-item,
  .page-ththao__faq-question,
  .page-ththao__faq-answer {
    font-size: 0.95em;
  }

  /* Images responsive */
  .page-ththao img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__image-container,
  .page-ththao__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Container padding handles this */
    padding-right: 0; /* Container padding handles this */
  }

  /* Videos responsive */
  .page-ththao video,
  .page-ththao__video-player {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-ththao__video-section,
  .page-ththao__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }
  .page-ththao__video-section {
    padding-top: 10px !important;
  }
}

/* Ensure no filter on images */
.page-ththao img {
  filter: none !important;
}