/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */
.page-sports {
  font-family: Arial, sans-serif;
  color: #333333; /* Mặc định cho nền sáng */
  background-color: var(--secondary-color, #FFFFFF); /* Sử dụng màu phụ trợ từ shared, mặc định trắng */
  line-height: 1.6;
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Chiều cao tối thiểu */
  overflow: hidden;
  padding-top: 10px; /* Chỉ một khoảng cách nhỏ, body đã xử lý padding-top chính */
  padding-bottom: 60px;
  color: #ffffff;
  background-color: #26A9E0; /* Màu chủ đạo */
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Tạo lớp phủ để chữ dễ đọc */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%;
  /* Không sử dụng font-size cố định quá lớn để tránh chiếm hết màn hình trên di động */
}

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

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

.page-sports__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-sports__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__dark-bg .page-sports__section-title {
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__highlight {
  color: #EA7C07;
  font-weight: bold;
}

.page-sports__dark-bg .page-sports__highlight {
  color: #FFFFFF;
}

.page-sports__image-container {
  margin: 40px auto;
  max-width: 800px;
}

.page-sports__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__numbered-list {
  list-style-type: decimal;
  padding-left: 25px;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__list-item {
  margin-bottom: 15px;
  font-size: 1.05em;
  position: relative;
  padding-left: 25px;
}

.page-sports__list-item::before {
  content: '✓';
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-sports__dark-bg .page-sports__list-item::before {
  color: #ffffff;
}

.page-sports__numbered-list .page-sports__list-item::before {
  content: none; /* Bỏ dấu tick cho danh sách số */
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-sports__btn-primary {
  background-color: #EA7C07; /* Màu login */
  color: #ffffff;
}

.page-sports__btn-primary:hover {
  background-color: #d16b06;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b0;
  transform: translateY(-2px);
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #e6e6e6;
  border-bottom: none;
}

.page-sports__faq-question:hover {
  background-color: #e6e6e6;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg);
}

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

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

.page-sports__faq-more {
  margin-top: 30px;
  font-size: 1em;
  color: #555555;
}

.page-sports__faq-more a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

/* Ẩn dấu mũi tên mặc định của details/summary */
.page-sports__faq-item summary::-webkit-details-marker,
.page-sports__faq-item summary::marker {
  display: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__paragraph,
  .page-sports__list-item,
  .page-sports__faq-question,
  .page-sports__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* Body đã có padding-top */
    padding-bottom: 40px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Sử dụng clamp để kiểm soát kích thước */
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-sports__hero-cta-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px; /* Thêm padding cho container của nút */
    box-sizing: border-box !important;
  }

  .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: 12px 20px;
  }

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

  .page-sports__paragraph,
  .page-sports__list-item {
    font-size: 0.95em;
  }

  .page-sports__image,
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__image-container,
  .page-sports__container,
  .page-sports__section,
  .page-sports__hero-section,
  .page-sports__faq-section,
  .page-sports__faq-list,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-sports__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
}