:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
  --border-rgb: 46, 122, 78; /* RGB for #2E7A4E */
}

/* style/sports.css */
/* body đã padding-top: var(--header-offset)；trang này cấm viết lại biến đó */
.page-sports {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-main); /* #F2FFF6 */
  background-color: var(--bg); /* #08160F */
  line-height: 1.6;
  font-size: 1.1rem;
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  padding-top: 10px; /* Khoảng đệm trên nhỏ, không phải --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 30px; /* Tách hình ảnh khỏi văn bản */
  min-width: 200px;
  min-height: 200px;
}

.page-sports__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  position: relative;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Kích thước font H1 đáp ứng */
  font-weight: 700;
  color: var(--text-main); /* #F2FFF6 */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Quan trọng cho tính đáp ứng của nút */
  max-width: 100%; /* Cho di động */
  white-space: normal; /* Cho phép văn bản nút xuống dòng trên di động */
  word-wrap: break-word; /* Cho phép văn bản nút xuống dòng trên di động */
  text-align: center;
}

.page-sports__btn-primary {
  background: var(--button); /* linear-gradient(180deg, #2AD16F 0%, #13994A 100%) */
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--glow-rgb), 0.4);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--text-main); /* #F2FFF6 */
  border: 2px solid var(--border); /* #2E7A4E */
}

.page-sports__btn-secondary:hover {
  background: rgba(var(--border-rgb), 0.2);
  box-shadow: 0 5px 15px rgba(var(--border-rgb), 0.2);
}

.page-sports__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--bg); /* #08160F */
  border-radius: 12px;
  margin-bottom: 40px;
}

.page-sports__section-title {
  font-size: 2.5rem;
  color: var(--text-main); /* #F2FFF6 */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-sports__subsection-title {
  font-size: 1.8rem;
  color: var(--text-main); /* #F2FFF6 */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-sports__text-block p {
  margin-bottom: 15px;
  color: var(--text-secondary); /* #A7D9B8 */
}

.page-sports__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-sports__list li {
  margin-bottom: 10px;
  color: var(--text-secondary); /* #A7D9B8 */
}

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

.page-sports__image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px; /* Ví dụ max-width cho hình ảnh nội dung */
  margin: 0 auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Yêu cầu kích thước tối thiểu */
  min-height: 200px;
}

.page-sports__faq-section {
  max-width: 900px;
  margin: 0 auto 40px auto;
  padding: 40px 20px;
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
}

.page-sports__faq-item {
  border-bottom: 1px solid var(--divider); /* #1E3A2A */
  margin-bottom: 10px;
  padding-bottom: 10px;
}

.page-sports__faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  cursor: pointer;
  color: var(--text-main); /* #F2FFF6 */
  font-weight: 600;
  font-size: 1.1rem;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold); /* #F2C14E */
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 0 15px 15px 0;
  color: var(--text-secondary); /* #A7D9B8 */
  line-height: 1.6;
}

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

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-sports__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

  .page-sports__cta-buttons {
    flex-direction: column; /* Xếp chồng các nút theo chiều dọc */
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section,
  .page-sports__faq-section {
    padding: 30px 15px;
    margin-bottom: 30px;
  }

  .page-sports__section-title {
    font-size: 2rem;
  }

  .page-sports__subsection-title {
    font-size: 1.5rem;
  }

  .page-sports img,
  .page-sports__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Đảm bảo kích thước tối thiểu được đáp ứng */
    min-height: 200px !important;
  }
  
  .page-sports__image-container,
  .page-sports__faq-item,
  .page-sports__faq-question {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-sports__content-area {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
}