/* style/sports.css */
.page-sports {
  padding-top: 120px; /* Khoảng cách cho fixed header trên desktop */
  color: #f0f0f0; /* Màu chữ nhạt cho nền tối của body */
  background-color: #0d0d0d; /* Nền body tối */
}

.page-sports__dark-section {
  background-color: #001f3f; /* Màu nền xanh đậm hơn cho các section */
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Nền xám đậm nhẹ cho các section */
  color: #f0f0f0;
  padding: 60px 0;
}

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

.page-sports__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-sports__section-description {
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #cccccc;
}

.page-sports__highlight {
  color: #FFCC00; /* Màu vàng cam cho điểm nhấn */
}

.page-sports__btn-primary {
  display: inline-block;
  background-color: #FFCC00; /* Nút chính màu vàng cam */
  color: #001f3f; /* Chữ xanh đậm trên nền vàng */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-sports__btn-primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  display: inline-block;
  background-color: #003366; /* Nút phụ màu xanh đậm */
  color: #ffffff; /* Chữ trắng trên nền xanh */
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid #003366;
  cursor: pointer;
}

.page-sports__btn-secondary:hover {
  background-color: #002244;
  transform: translateY(-2px);
}

.page-sports__btn-large {
  padding: 18px 35px;
  font-size: 20px;
  border-radius: 10px;
}

/* Hero Banner */
.page-sports__hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background-color: #001f3f;
  color: #ffffff;
  min-height: 500px;
}

.page-sports__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
  margin-right: 40px;
}

.page-sports__hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-sports__hero-description {
  font-size: 20px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Introduction Section */
.page-sports__introduction {
  padding: 80px 0;
}

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

.page-sports__feature-card {
  background-color: #003366;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5));
}

.page-sports__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-sports__feature-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Betting Halls Section */
.page-sports__betting-halls {
  padding: 80px 0;
}

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

.page-sports__hall-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hall-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-sports__hall-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__hall-title {
  font-size: 26px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-sports__hall-description {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Bet Types Section */
.page-sports__bet-types {
  padding: 80px 0;
}

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

.page-sports__type-card {
  background-color: #003366;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__type-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-sports__type-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Advantages Section */
.page-sports__advantages {
  padding: 80px 0;
}

.page-sports__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__advantage-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  font-size: 18px;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-sports__list-icon {
  font-size: 24px;
  color: #FFCC00;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-sports__list-strong {
  color: #ffffff;
}

.page-sports__advantages .page-sports__btn-primary {
  margin-top: 40px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Guide Section */
.page-sports__guide {
  padding: 80px 0;
}

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

.page-sports__step-card {
  background-color: #003366;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 60px; /* Space for step number */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFCC00;
  color: #001f3f;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  border: 3px solid #001f3f;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 15px;
}

.page-sports__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Tips Section */
.page-sports__tips {
  padding: 80px 0;
}

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

.page-sports__tip-item {
  background-color: #003366;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-sports__tip-icon {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 204, 0, 0.5));
}

.page-sports__tip-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFCC00;
  margin-bottom: 10px;
}

.page-sports__tip-text {
  font-size: 16px;
  line-height: 1.6;
  color: #e0e0e0;
}

/* FAQ Section */
.page-sports__faq {
  padding: 80px 0;
}

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

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Nền cho từng item FAQ */
  border: 1px solid #333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #003366; /* Nền câu hỏi */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #ffffff;
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  background-color: #1a1a1a; /* Nền câu trả lời */
  border-radius: 0 0 8px 8px;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: #cccccc;
}

/* Call To Action Section */
.page-sports__cta {
  padding: 80px 0;
  text-align: center;
  background-color: #001f3f;
}

.page-sports__cta-title {
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-sports__cta-description {
  font-size: 20px;
  line-height: 1.7;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Links within content */
.page-sports a {
  color: #FFCC00; /* Màu vàng cam cho các link trong nội dung */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-sports a:hover {
  color: #e6b800;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-banner {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-sports__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    max-width: 100%;
  }

  .page-sports__hero-title {
    font-size: 44px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__section-title {
    font-size: 32px;
  }

  .page-sports__section-description {
    font-size: 16px;
  }

  .page-sports__halls-grid,
  .page-sports__features-grid,
  .page-sports__types-grid,
  .page-sports__steps-grid,
  .page-sports__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-sports {
    padding-top: 100px; /* Khoảng cách cho fixed header trên mobile */
  }

  .page-sports__hero-banner {
    padding: 40px 15px;
    min-height: auto;
  }

  .page-sports__hero-title {
    font-size: 36px;
  }

  .page-sports__hero-description {
    font-size: 16px;
  }

  .page-sports__hero-btn {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-sports__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

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

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

  .page-sports__container {
    padding: 0 15px;
  }

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

  .page-sports__feature-card,
  .page-sports__hall-card,
  .page-sports__type-card,
  .page-sports__step-card,
  .page-sports__tip-item {
    padding: 25px;
  }

  .page-sports__feature-title,
  .page-sports__hall-title,
  .page-sports__type-title,
  .page-sports__step-title,
  .page-sports__tip-title {
    font-size: 20px;
  }

  .page-sports__feature-text,
  .page-sports__hall-description,
  .page-sports__type-text,
  .page-sports__step-text,
  .page-sports__tip-text {
    font-size: 15px;
  }

  .page-sports__advantage-list li {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-sports__list-icon {
    font-size: 20px;
    margin-right: 10px;
  }

  .page-sports__step-number {
    width: 40px;
    height: 40px;
    font-size: 24px;
    top: -15px;
  }

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

  .page-sports__faq-question h3 {
    font-size: 16px;
  }

  .page-sports__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px !important;
  }

  .page-sports__faq-answer p {
    font-size: 15px;
  }

  .page-sports__cta-title {
    font-size: 32px;
  }

  .page-sports__cta-description {
    font-size: 16px;
  }

  .page-sports__btn-large {
    font-size: 18px;
    padding: 15px 30px;
  }

  /* Ensure all images are responsive and prevent overflow */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
  }

  .page-sports__hero-image,
  .page-sports__feature-icon,
  .page-sports__hall-image,
  .page-sports__tip-icon {
    max-width: 100% !important;
    width: auto !important; /* Allow icons to scale down but not exceed original if small */
    height: auto !important;
  }

  .page-sports__feature-icon {
    width: 80px;
  }

  .page-sports__tip-icon {
    width: 60px;
  }

  .page-sports__hero-image-wrapper,
  .page-sports__introduction,
  .page-sports__betting-halls,
  .page-sports__bet-types,
  .page-sports__advantages,
  .page-sports__guide,
  .page-sports__tips,
  .page-sports__faq,
  .page-sports__cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Base link styling for content */
.page-sports p a, .page-sports li a {
  color: #FFCC00;
  text-decoration: underline;
}

.page-sports p a:hover, .page-sports li a:hover {
  color: #e6b800;
}