/* style/sports.css */

/* Căn chỉnh padding-top cho nội dung đầu tiên để tránh bị header cố định che khuất */
.page-sports {
  padding-top: 0; /* Sẽ được ghi đè bởi hero-banner */
  color: #f0f0f0; /* Màu chữ mặc định cho nền tối */
  background-color: var(--dark-bg-1); /* Giả định nền body là tối */
}

/* HERO Banner Section */
.page-sports__hero-banner {
  position: relative;
  width: 100%;
  min-height: 500px; /* Đảm bảo chiều cao tối thiểu */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #FFD700, #8B0000); /* Màu nền chuyển sắc */
  padding-top: 120px; /* Để tránh header cố định */
  box-sizing: border-box;
}

.page-sports__hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  text-align: center;
  color: #ffffff;
  padding: 40px;
  background: rgba(0, 0, 0, 0.4); /* Nền mờ để chữ nổi bật */
  border-radius: 10px;
  margin-right: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Vàng kim */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-sports__hero-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700; /* Vàng kim */
  color: #000000; /* Chữ đen để tăng tương phản */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__hero-button:hover {
  background-color: #e0b800; /* Vàng đậm hơn khi hover */
  transform: translateY(-3px);
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Làm mờ ảnh nền để chữ nổi bật */
  transform: scale(1.05); /* Hiệu ứng nhẹ */
}

/* General Section Styles */
.page-sports__section-padding {
  padding: 80px 20px;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Vàng kim */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.page-sports__section-title--light {
  color: #ffffff;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-sports__section-description--light {
  color: #e0e0e0;
}

/* Why Choose Us Section */
.page-sports__why-choose-us {
  background-color: var(--dark-bg-2);
  color: #f0f0f0;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-sports__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

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

/* Betting Types Section */
.page-sports__dark-section {
  background-color: #1a1a1a; /* Nền tối hơn */
}

.page-sports__tabs {
  margin-top: 40px;
}

.page-sports__tab-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-sports__tab-button {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid #FFD700;
  padding: 12px 25px;
  font-size: 1.1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-sports__tab-button:hover {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
}

.page-sports__tab-button--active {
  background-color: #FFD700;
  color: #000000;
  border-color: #FFD700;
  font-weight: bold;
}

.page-sports__tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-sports__tab-content--active {
  display: block;
}

.page-sports__tab-item {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sports__tab-image {
  width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-sports__tab-text-content h3 {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sports__tab-text-content p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-sports__tab-text-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-sports__tab-text-content ul li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Live Betting Section */
.page-sports__live-betting {
  background-color: var(--dark-bg-2);
  color: #f0f0f0;
}

.page-sports__live-betting-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-sports__live-betting-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-betting-text h3 {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-sports__live-betting-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__live-betting-text ul li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
}

.page-sports__live-betting-text ul li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700; /* Vàng kim */
  color: #000000; /* Chữ đen để tăng tương phản */
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
}

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

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-sports__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-sports__promo-image {
  width: 250px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-sports__promo-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sports__promo-text {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: #FFD700; /* Vàng kim */
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  border: 2px solid #FFD700;
  border-radius: 50px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-sports__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
}

.page-sports__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__cta-text--light {
  color: #e0e0e0;
}

/* Guide Section */
.page-sports__guide {
  background-color: var(--dark-bg-2);
  color: #f0f0f0;
}

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

.page-sports__guide-step {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
}

.page-sports__guide-icon-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 25px;
  background-color: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-sports__guide-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: brightness(0.2); /* Làm tối icon để nổi bật trên nền vàng */
}

.page-sports__step-number {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #8B0000;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  border: 2px solid #FFD700;
}

.page-sports__guide-step h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-sports__guide-step p {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-sports__guide-step p a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__guide-step p a:hover {
  text-decoration: underline;
}

.page-sports__guide-cta {
  text-align: center;
  margin-top: 60px;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.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 15px;
  opacity: 0;
  color: #e0e0e0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(0, 0, 0, 0.3); /* Nền tối hơn cho câu trả lời */
  border-radius: 0 0 5px 5px;
}

.page-sports__faq-answer p {
  margin: 0;
  line-height: 1.6;
}

.page-sports__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
}

.page-sports__faq-answer p a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-banner {
    min-height: 400px;
  }

  .page-sports__hero-title {
    font-size: 3em;
  }

  .page-sports__hero-description {
    font-size: 1.1em;
  }

  .page-sports__tab-item {
    flex-direction: column;
    align-items: center;
  }

  .page-sports__tab-image {
    width: 100%;
    max-width: 500px;
    margin-bottom: 20px;
  }

  .page-sports__live-betting-content {
    flex-direction: column;
  }

  .page-sports__live-betting-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-banner {
    padding-top: 100px; /* Mobile header adjustment */
    min-height: 350px;
  }

  .page-sports__hero-content {
    padding: 25px;
    margin-right: 0;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
  }

  .page-sports__hero-description {
    font-size: 0.95em;
  }

  .page-sports__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

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

  .page-sports__section-title {
    font-size: 2em;
  }

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

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

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

  .page-sports__feature-title {
    font-size: 1.3em;
  }

  .page-sports__tab-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-sports__tab-button {
    width: 100%;
  }

  .page-sports__tab-item {
    padding: 20px;
  }

  .page-sports__tab-image {
    height: 200px;
  }

  .page-sports__tab-text-content h3 {
    font-size: 1.5em;
  }

  .page-sports__live-betting-text h3 {
    font-size: 1.5em;
  }

  .page-sports__live-betting-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  .page-sports__promo-image {
    width: 200px;
    height: 120px;
  }

  .page-sports__promo-title {
    font-size: 1.3em;
  }

  .page-sports__guide-icon-wrapper {
    width: 100px;
    height: 100px;
  }

  .page-sports__guide-icon {
    width: 70px;
    height: 70px;
  }

  .page-sports__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.2em;
    top: -5px;
    right: -5px;
  }

  .page-sports__guide-step h3 {
    font-size: 1.5em;
  }

  .page-sports__cta-bottom,
  .page-sports__guide-cta {
    margin-top: 40px;
  }

  .page-sports__cta-text {
    font-size: 1em;
  }

  .page-sports__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-sports__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-sports__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers adapt to mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-sports__section-padding,
  .page-sports__container,
  .page-sports__hero-banner,
  .page-sports__hero-content,
  .page-sports__feature-card,
  .page-sports__tab-item,
  .page-sports__live-betting-content,
  .page-sports__promo-card,
  .page-sports__guide-step,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}