/* 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__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Nhỏ gọn hơn, tránh trùng padding-top của body */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Nền bán trong suốt cho nội dung hero */
  border-radius: 10px;
}

.page-sports__main-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-sports__hero-description {
  color: #A7D9B8; /* Text Secondary */
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 30px;
}

.page-sports__highlight {
  color: #57E38D; /* Glow */
  font-weight: bold;
}

.page-sports__section {
  padding: 60px 20px;
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

.page-sports__section:last-of-type {
  border-bottom: none;
}

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

.page-sports__section-title {
  color: #F2C14E; /* Gold */
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.page-sports__text-block {
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.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;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 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: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-sports__btn-secondary:hover {
  background: #2AD16F; /* Highlight color */
  color: #F2FFF6; /* Text Main */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.2);
}

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

.page-sports__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__card-title {
  color: #F2C14E; /* Gold */
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__card-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  text-align: justify;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-sports__list-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__list-item strong {
  color: #F2C14E; /* Gold */
}

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

.page-sports__feature-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__feature-title {
  color: #57E38D; /* Glow */
  font-size: 1.4rem;
  margin-bottom: 10px;
  text-align: center;
}

.page-sports__feature-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  text-align: justify;
}

.page-sports__ordered-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin: 30px 0;
}

.page-sports__ordered-list .page-sports__list-item {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__ordered-list .page-sports__list-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main */
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

.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-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #F2C14E; /* Gold */
  font-size: 1.2rem;
  font-weight: bold;
  background-color: #0A4B2C; /* Deep Green */
  border-bottom: 1px solid #1E3A2A; /* Divider */
}

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

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

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #2E7A4E; /* Border */
}

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

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #57E38D; /* Glow */
}

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

.page-sports__faq-answer {
  padding: 20px 25px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1rem;
  text-align: justify;
}

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

@media (max-width: 768px) {
  .page-sports__main-title {
    font-size: clamp(2rem, 6vw, 2.8rem);
  }

  .page-sports__hero-description {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  }

  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-sports__text-block {
    font-size: 1rem;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

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

  .page-sports__card-text,
  .page-sports__feature-text {
    font-size: 0.95rem;
  }

  .page-sports__list-item,
  .page-sports__ordered-list .page-sports__list-item {
    font-size: 1rem;
    padding-left: 45px;
  }

  .page-sports__ordered-list .page-sports__list-item::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

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

  .page-sports__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Mobile responsive for images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__hero-section,
  .page-sports__section,
  .page-sports__container,
  .page-sports__grid-container,
  .page-sports__features-grid,
  .page-sports__card,
  .page-sports__feature-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

  .page-sports__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-image-wrapper {
    position: relative; /* Change to relative for mobile to avoid text overlay issues */
    height: 250px; /* Adjust height for mobile hero image */
  }

  .page-sports__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .page-sports__hero-content {
    position: relative;
    margin-top: -80px; /* Pull content up slightly over the image */
    background: linear-gradient(to top, #08160F, rgba(8, 22, 15, 0.8)); /* Gradient to blend with background */
    padding-top: 20px;
    border-radius: 10px 10px 0 0;
  }

  .page-sports__hero-section {
    flex-direction: column; /* Ensure image is above content */
  }

  .page-sports__hero-image-wrapper + .page-sports__hero-content {
    margin-top: -80px; /* Adjust to pull content up */
  }

  /* Ensure content containers inside sections are also responsive */
  .page-sports__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}