/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định màu chữ tối trên nền sáng */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không dùng var(--header-offset) */
  padding-bottom: 60px;
  background-color: #f0f8ff; /* Nền nhẹ nhàng cho phần hero */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Sử dụng clamp để đảm bảo kích thước phù hợp */
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-sports__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-sports__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  width: 100%; /* Đảm bảo container chiếm toàn bộ chiều rộng */
  max-width: 600px; /* Giới hạn chiều rộng cho nhóm nút */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-sports__btn-primary:hover {
  background-color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-sports__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}

.page-sports__about-section,
.page-sports__live-betting,
.page-sports__security,
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #FFFFFF; /* Nền sáng */
  color: #333333;
}

.page-sports__game-types,
.page-sports__promotions,
.page-sports__guide,
.page-sports__contact-cta {
  padding: 60px 20px;
  background-color: #26A9E0; /* Nền đậm */
  color: #FFFFFF;
}

.page-sports__dark-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-sports__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  max-width: 900px;
  text-align: justify;
}

.page-sports__image-content {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-sports__card {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho hình ảnh thẻ */
  object-fit: cover;
  display: block;
}

.page-sports__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 0.95em;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-sports__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-sports__btn-link:hover {
  background-color: #1a7fb0;
}

.page-sports__video-wrapper {
  width: 100%;
  max-width: 1000px;
  height: auto;
  position: relative;
  padding-bottom: 56.25%; /* Tỷ lệ 16:9 */
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
  box-sizing: border-box;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #FFFFFF;
}

.page-sports__guide-step-title {
  font-size: 1.3em;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__guide-item .page-sports__text-block {
  color: #f0f0f0;
}

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

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

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  list-style: none; /* Ẩn marker mặc định của details */
  user-select: none;
}

.page-sports__faq-item summary::-webkit-details-marker {
  display: none; /* Ẩn marker trên WebKit */
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

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

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

.page-sports__contact-cta .page-sports__description {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }
  .page-sports__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.2em);
  }
  .page-sports__hero-image {
    height: 500px;
  }
  .page-sports__video-wrapper {
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section,
  .page-sports__about-section,
  .page-sports__game-types,
  .page-sports__live-betting,
  .page-sports__promotions,
  .page-sports__security,
  .page-sports__guide,
  .page-sports__faq-section,
  .page-sports__contact-cta {
    padding: 30px 15px !important; /* Điều chỉnh padding cho di động */
  }
  .page-sports__hero-image {
    height: 300px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-sports__description {
    font-size: 1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column; /* Nút xếp chồng trên di động */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 15px;
  }
  .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;
    padding: 12px 20px !important;
    font-size: 0.95em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__grid {
    grid-template-columns: 1fr; /* Một cột trên di động */
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__content-wrapper,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ngăn tràn nội dung */
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* height:auto không hợp lý với padding-bottom trick */
    display: block !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important;
  }
  .page-sports__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 0 20px 15px;
  }
}