/* 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;
  line-height: 1.6;
  color: #ffffff; /* Sáng màu trên nền body tối */
  background-color: transparent; /* Body đã có nền #0a0a0a */
}

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

.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Nhỏ gọn, không trùng với body padding */
  padding-bottom: 60px;
  background-color: #0a0a0a; /* Đảm bảo nền tối cho hero */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

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

.page-sports__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Kéo nội dung lên trên hình ảnh một chút */
  position: relative;
  z-index: 2; /* Đảm bảo nội dung nằm trên hình ảnh nếu có chồng chéo */
  background: linear-gradient(to top, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.7) 50%, rgba(10, 10, 10, 0.0) 100%);
  padding-top: 120px;
  padding-bottom: 60px;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word; /* Ngắt từ */
  text-align: center;
}

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

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

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

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

.page-sports__section-title {
  font-weight: bold;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__text-block {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__intro-section,
.page-sports__sports-types,
.page-sports__promotions,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #0d0d0d; /* Nền tối cho các section */
}

.page-sports__advantages-section,
.page-sports__live-betting,
.page-sports__how-to-start,
.page-sports__final-cta {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền tối nhạt hơn */
}

.page-sports__dark-bg {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-sports__card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__advantage-card .page-sports__advantage-icon,
.page-sports__sport-card .page-sports__sport-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-sports__advantage-title,
.page-sports__sport-title,
.page-sports__promo-title {
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__advantage-description,
.page-sports__sport-description,
.page-sports__promo-description {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  max-width: 1000px;
}

.page-sports__promo-card {
  max-width: 800px;
  margin: 40px auto;
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__step-title {
  color: #26A9E0;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-sports__step-description {
  color: #f0f0f0;
  font-size: 0.9em;
}

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1em;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  color: #f0f0f0;
  font-size: 0.95em;
  background-color: rgba(255, 255, 255, 0.03);
}

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

.page-sports__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ gọn, không trùng với body padding */
  background-color: #1a1a1a; /* Nền tối cho phần video */
}

.page-sports__video-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 30px;
}

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

.page-sports__video-cta {
  margin-top: 40px;
}

/* Link styling for text blocks */
.page-sports__text-block a,
.page-sports__step-description a,
.page-sports__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-sports__text-block a:hover,
.page-sports__step-description a:hover,
.page-sports__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -50px;
    padding-top: 80px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: 0;
    padding: 20px;
    padding-top: 60px;
  }
  .page-sports__main-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-sports__intro-section,
  .page-sports__advantages-section,
  .page-sports__sports-types,
  .page-sports__live-betting,
  .page-sports__promotions,
  .page-sports__how-to-start,
  .page-sports__faq-section,
  .page-sports__final-cta,
  .page-sports__video-section {
    padding: 40px 0 !important;
  }
  .page-sports__video-section {
    padding-top: 10px !important; /* body đã xử lý padding-top */
  }

  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__advantage-grid,
  .page-sports__sports-grid,
  .page-sports__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
}