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

.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Chỉ một khoảng đệm nhỏ, không dùng --header-offset */
  padding-bottom: 60px;
  background-color: #0d0d0d;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-sports__hero-content {
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  color: #FFFFFF;
}

.page-sports__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
  /* Không đặt font-size cố định quá lớn, dùng clamp nếu cần */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.page-sports__hero-description {
  font-size: 1.125rem;
  margin-bottom: 30px;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background-color: #C30808; /* Màu Đăng Ký/Đăng Nhập */
  color: #FFFF00; /* Màu chữ Đăng Ký/Đăng Nhập */
  border: 2px solid #C30808;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #005c2d;
  border-color: #005c2d;
}

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

.page-sports__about-section,
.page-sports__features-section,
.page-sports__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Nền sáng */
  color: #333333;
}

.page-sports__dark-bg {
  background-color: #017439; /* Nền tối */
  color: #FFFFFF;
}

.page-sports__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-sports__text-block {
  font-size: 1.125rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__types-section {
  padding: 80px 0;
}

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

.page-sports__sport-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

.page-sports__sport-card .page-sports__card-image {
  width: 100%;
  height: 200px; /* Chiều cao cố định cho ảnh thẻ */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-description {
  font-size: 1rem;
  padding: 0 15px;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #F8F8F8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 1.375rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-sports__feature-description {
  font-size: 1rem;
  color: #555555;
}

.page-sports__promotions-section {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-sports__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-bottom: 40px;
  }
  .page-sports__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-sports__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-sports__hero-description {
    font-size: 1rem;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-sports__about-section,
  .page-sports__types-section,
  .page-sports__features-section,
  .page-sports__promotions-section,
  .page-sports__cta-section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 1rem;
  }
  .page-sports__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__grid-layout,
  .page-sports__feature-list {
    gap: 20px;
  }
  .page-sports__sport-card .page-sports__card-image {
    height: 180px;
  }
  .page-sports__card-title {
    font-size: 1.3rem;
  }
  .page-sports__feature-item {
    padding: 20px;
  }
  .page-sports__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-sports__feature-title {
    font-size: 1.2rem;
  }
  /* Mobile responsive images/videos/buttons - IMPORTANT */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__hero-image-wrapper,
  .page-sports__sport-card,
  .page-sports__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__hero-section {
    padding-top: 10px !important;
  }
}

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-sports__section-title {
    font-size: 1.5rem;
  }
  .page-sports__sport-card .page-sports__card-image {
    height: 160px;
  }
  .page-sports__feature-icon {
    width: 60px;
    height: 60px;
  }
}