/* style/sports.css */
/* body đã padding-top: var(--header-offset)；trang này không được viết lại biến đó */
.page-sports {
  background-color: var(--background-color, #08160F); /* Màu nền tùy chỉnh */
  color: #F2FFF6; /* Màu chữ chính cho nền tối */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden; /* Ngăn cuộn ngang */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Hình ảnh trên, nội dung dưới */
  align-items: center;
  padding-top: 10px; /* Khoảng cách nhỏ ở trên */
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Màu xanh đậm cho phần hero */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 30px; /* Khoảng cách giữa hình ảnh và nội dung */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Kích thước tối thiểu cho hình ảnh */
  min-height: 200px; /* Kích thước tối thiểu cho hình ảnh */
}

.page-sports__hero-content-wrapper {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
}

.page-sports__hero-title {
  color: #F2C14E; /* Màu vàng cho tiêu đề chính */
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  font-size: clamp(2.2em, 5vw, 3.2em); /* Clamp cho H1 */
}

.page-sports__hero-description {
  color: #F2FFF6;
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-sports__hero-cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
  gap: 15px;
  justify-content: center;
}

/* --- General Section Styles --- */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-sports__section-title {
  color: #F2C14E; /* Màu vàng cho tiêu đề phần */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  font-size: 2.5em;
}

.page-sports__paragraph {
  color: #F2FFF6; /* Màu chữ chính */
  margin-bottom: 20px;
}

.page-sports__dark-section {
  background-color: #08160F; /* Nền tối */
  padding: 80px 0;
}

.page-sports__light-bg {
  background-color: #11271B; /* Màu nền thẻ */
  color: #F2FFF6; /* Màu chữ chính cho nền sáng (thẻ) */
}

/* --- Buttons --- */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  font-size: 1em;
}

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

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Màu vàng cho chữ nút phụ */
  border: 2px solid #2E7A4E; /* Màu viền */
}

.page-sports__btn-secondary:hover {
  background-color: #1E3A2A; /* Màu phân chia cho hover */
  color: #F2C14E;
  transform: translateY(-2px);
}

/* --- Grid Layouts --- */
.page-sports__grid-3-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__grid-2-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

/* --- Card Styles --- */
.page-sports__card {
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Màu viền */
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định để nhất quán */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Kích thước tối thiểu cho hình ảnh */
  min-height: 200px; /* Kích thước tối thiểu cho hình ảnh */
}

.page-sports__card-title {
  color: #F2C14E; /* Màu vàng cho tiêu đề thẻ */
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.4em;
}

.page-sports__card-text {
  color: #A7D9B8; /* Màu chữ phụ */
  margin-bottom: 20px;
  flex-grow: 1; /* Cho phép chữ chiếm không gian có sẵn */
}

.page-sports__card-button {
  margin-top: auto; /* Đẩy nút xuống dưới cùng */
}

/* --- Feature List --- */
.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__feature-item {
  background-color: #11271B; /* Nền thẻ */
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #2E7A4E;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-sports__feature-title {
  color: #F2C14E;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 1.3em;
}

.page-sports__feature-text {
  color: #A7D9B8;
}

/* --- How to Join Steps --- */
.page-sports__step-card {
  background-color: #11271B;
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E;
}

.page-sports__step-title {
  color: #F2C14E;
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 1.5em;
}

.page-sports__step-text {
  color: #A7D9B8;
  margin-bottom: 20px;
}

/* --- FAQ Section --- */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-sports__faq-item {
  background-color: #11271B;
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  padding: 20px 25px;
  transition: all 0.3s ease;
}

.page-sports__faq-item[open] {
  background-color: #0A4B2C; /* Xanh đậm khi mở */
  border-color: #57E38D; /* Viền màu phát sáng khi mở */
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #F2FFF6;
  font-size: 1.1em;
  list-style: none; /* Xóa dấu mặc định */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Xóa dấu mặc định cho webkit */
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Màu phát sáng cho nút bật/tắt */
}

.page-sports__faq-answer {
  color: #A7D9B8;
  padding-top: 15px;
  line-height: 1.5;
}

.page-sports__faq-answer a {
  color: #57E38D; /* Màu phát sáng cho liên kết trong FAQ */
  text-decoration: none;
}

.page-sports__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Call to Action Section --- */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
}

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

  .page-sports__hero-section {
    padding-bottom: 40px;
  }

  .page-sports__hero-title {
    font-size: clamp(1.8em, 5vw, 2.2em) !important; /* Clamp cho H1 trên di động */
  }

  .page-sports__hero-description {
    font-size: 1em;
  }

  .page-sports__dark-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 60px 0;
  }

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

  /* Hình ảnh phản hồi */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Hình ảnh thẻ cụ thể cho màn hình nhỏ hơn */
  .page-sports__card-image {
    height: auto !important; /* Cho phép chiều cao điều chỉnh */
    max-height: 250px; /* Chiều cao tối đa để tránh hình ảnh quá cao */
  }

  /* Các vùng chứa phản hồi */
  .page-sports__container,
  .page-sports__section,
  .page-sports__card,
  .page-sports__category-card,
  .page-sports__promo-card,
  .page-sports__step-card,
  .page-sports__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Nút phản hồi */
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports 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-sports__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column; /* Xếp chồng các nút theo chiều dọc */
    gap: 10px;
  }

  /* Khoảng cách trên cùng của phần video (nếu có video) */
  .page-sports__video-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  /* Đảm bảo khoảng cách thẻ cho di động */
  .page-sports__card {
    padding: 20px;
  }
}