/* style/sports.css */
.page-sports {
  background-color: #08160F; /* Nền tối */
  color: #F2FFF6; /* Chữ sáng */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Nhỏ để tránh trùng lặp với body padding-top */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Giới hạn chiều cao hình ảnh */
  overflow: hidden;
  position: relative;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Làm mờ ảnh để chữ dễ đọc hơn */
}

.page-sports__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -100px; /* Kéo nội dung lên trên ảnh một chút */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, #08160F 100%); /* Nền gradient cho nội dung */
  border-radius: 10px;
  padding-top: 120px; /* Tạo khoảng trống cho phần kéo lên */
}

.page-sports__hero-title {
  font-size: 2.8em;
  font-weight: bold;
  color: #F2FFF6;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-sports__hero-buttons,
.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

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

.page-sports__btn-secondary:hover {
  background: #2AD16F;
  color: #08160F;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.2);
}

.page-sports__btn-card {
  background: #11A84E;
  color: #F2FFF6;
  border: none;
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-sports__btn-card:hover {
  background: #22C768;
  transform: translateY(-1px);
}

.page-sports__section-title {
  font-size: 2.2em;
  color: #F2FFF6;
  text-align: center;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.05em;
  color: #A7D9B8;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-sports__about-section,
.page-sports__categories-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__guide-section,
.page-sports__faq-section,
.page-sports__cta-section-bottom {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A;
}

.page-sports__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-sports__card {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-sports__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-sports__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-sports__card-title {
  font-size: 1.4em;
  color: #F2FFF6;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 0.95em;
  color: #A7D9B8;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__video-section {
  padding: 60px 0;
  border-bottom: 1px solid #1E3A2A;
}

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

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-sports__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15em;
  font-weight: bold;
  color: #F2FFF6;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-item summary:hover {
  background-color: #1a332a;
}

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

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

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

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

.page-sports__cta-section-bottom {
  padding-bottom: 80px;
  text-align: center;
  border-bottom: none;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px !important;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body đã xử lý padding-top */
    padding-bottom: 40px;
  }

  .page-sports__hero-image-wrapper {
    max-height: 400px;
  }

  .page-sports__hero-content {
    margin-top: -80px;
    padding-top: 100px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-title {
    font-size: 2em;
  }

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

  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

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

  .page-sports__section-title {
    font-size: 1.8em;
  }

  .page-sports__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-sports__about-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__guide-section,
  .page-sports__faq-section,
  .page-sports__cta-section-bottom {
    padding: 40px 0;
  }

  .page-sports__grid-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__card-image {
    height: 180px;
  }

  .page-sports__card-title {
    font-size: 1.2em;
  }

  .page-sports__card-description {
    font-size: 0.9em;
  }

  .page-sports__image-full-width {
    margin: 30px auto;
  }

  .page-sports__video-wrapper {
    margin: 30px auto;
  }

  .page-sports__video,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__video-section .page-sports__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-sports__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__hero-content {
    margin-top: -60px;
    padding-top: 80px;
  }
  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }
}