/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không cần thêm tại đây */

.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Text màu trắng trên nền tối */
  background-color: #1a1a2e; /* Kế thừa từ body, đảm bảo màu nền */
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
  background-color: #1a1a2e; /* Đảm bảo nền tối cho các section */
}

.page-sports__dark-bg {
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-sports__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-sports__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Nhỏ gọn ở trên, body đã lo khoảng cách top */
  overflow: hidden;
  text-align: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 30px; /* Khoảng cách giữa ảnh và nội dung */
}

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

.page-sports__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative; /* Đảm bảo nội dung nằm trên ảnh nếu có lớp phủ */
}

.page-sports__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Sử dụng clamp để giới hạn font-size */
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-sports__description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  box-sizing: border-box;
}

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

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

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-sports__btn-link:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Features Grid */
.page-sports__features-grid,
.page-sports__sports-grid,
.page-sports__promotions-grid,
.page-sports__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__feature-item,
.page-sports__sport-card,
.page-sports__promotion-card,
.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.08); /* Nền thẻ hơi sáng hơn */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-sports__feature-icon,
.page-sports__sport-image,
.page-sports__promotion-image {
  width: 100%;
  max-width: 250px; /* Giới hạn kích thước ảnh trong card */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__promotion-title,
.page-sports__step-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__feature-description,
.page-sports__sport-description,
.page-sports__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__live-betting-text {
  flex: 1;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-height: 200px; /* Đảm bảo kích thước tối thiểu */
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Nền thẻ FAQ */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #ffffff;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #26A9E0;
  outline: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  margin-left: 15px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-sports__description {
    font-size: 1.1em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__hero-section {
    padding: 10px 15px 40px; /* Nhỏ gọn ở trên, body đã lo khoảng cách top */
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__feature-item,
  .page-sports__sport-card,
  .page-sports__promotion-card,
  .page-sports__step-item {
    padding: 25px;
  }
  .page-sports img,
  .page-sports__hero-image,
  .page-sports__feature-icon,
  .page-sports__sport-image,
  .page-sports__promotion-image,
  .page-sports__live-betting-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__cta-buttons,
  .page-sports__live-betting-content,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-sports__hero-image-wrapper {
    padding: 0;
  }
  .page-sports__hero-image {
    border-radius: 0;
  }
  .page-sports__live-betting-text .page-sports__btn-primary {
    width: auto !important; /* Đảm bảo nút này không chiếm toàn bộ chiều rộng */
    max-width: none !important;
  }
}