/* 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; /* Vì body background là dark, nên text màu sáng */
  background-color: var(--black-color); /* Đồng bộ với body background */
}

.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;
  min-height: 500px;
  padding: 10px 0 60px 0; /* Chỉ một khoảng đệm nhỏ ở trên */
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Giới hạn chiều cao của ảnh hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Làm tối ảnh để chữ nổi bật */
}

.page-sports__hero-content {
  position: absolute;
  top: auto;
  bottom: 60px; /* Đặt nội dung ở phía dưới ảnh */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  max-width: 800px;
  padding: 0 20px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

.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, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

.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__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-sports__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-sports__dark-bg {
  background-color: var(--black-color);
  color: #ffffff;
  padding: 80px 0;
}

.page-sports__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-sports__why-choose-us .page-sports__section-title,
.page-sports__why-choose-us .page-sports__text-block {
  color: #333333;
}

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

.page-sports__feature-card,
.page-sports__type-card,
.page-sports__promo-card,
.page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.05); /* Nền tối nhẹ cho các card trên nền tối */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__light-bg .page-sports__feature-card,
.page-sports__light-bg .page-sports__promo-card {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__feature-image,
.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__light-bg .page-sports__card-title {
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 1rem;
  line-height: 1.6;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-sports__light-bg .page-sports__card-text {
  color: #555555;
}

.page-sports__btn-link {
  display: inline-block;
  margin-top: 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-sports__steps-grid .page-sports__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(38, 169, 224, 0.5);
}

.page-sports__text-center {
  text-align: center;
}

.page-sports__cta-bottom {
  margin-top: 50px;
}

.page-sports__faq-section .page-sports__section-title {
  color: #333333;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: #e6f7ff;
}

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

.page-sports__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  background-color: #f8f8f8;
}

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

.page-sports__cta-final {
  padding: 100px 0;
  text-align: center;
}

.page-sports__cta-final .page-sports__section-title,
.page-sports__cta-final .page-sports__text-block {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    bottom: 40px;
  }
}

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

  .page-sports__hero-section {
    min-height: 400px;
    padding: 10px 0 40px 0;
  }

  .page-sports__hero-content {
    bottom: 20px;
    padding: 0 15px;
  }

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

  .page-sports__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .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: 1rem;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-sports__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-sports__light-bg,
  .page-sports__dark-bg,
  .page-sports__dark-section {
    padding: 50px 0;
  }

  .page-sports__features-grid,
  .page-sports__types-grid,
  .page-sports__promo-grid,
  .page-sports__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__feature-card,
  .page-sports__type-card,
  .page-sports__promo-card,
  .page-sports__step-card {
    padding: 25px;
  }

  .page-sports__feature-image,
  .page-sports__promo-image {
    height: 180px;
  }

  .page-sports__card-title {
    font-size: 1.3rem;
  }

  .page-sports__card-text {
    font-size: 0.9rem;
  }

  .page-sports__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-sports__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile image responsiveness */
  .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__hero-section,
  .page-sports__why-choose-us,
  .page-sports__bet-types,
  .page-sports__promotions,
  .page-sports__how-to-start,
  .page-sports__faq-section,
  .page-sports__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body đã có padding-top */
    padding-left: 0;
    padding-right: 0;
  }

  .page-sports__hero-image-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}