/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* 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;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding as per requirement */
  background-color: #F4F7FB;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-sports__hero-content {
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  margin-top: -80px; /* Pull content up slightly over image */
  position: relative;
  z-index: 1;
}

.page-sports__main-title {
  color: #1F2D3D; /* Text Main */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  /* Using clamp for responsive font size, avoiding fixed large values */
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-sports__hero-description {
  color: #1F2D3D; /* Text Main */
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__sport-card-btn,
.page-sports__promotion-card-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF;
}

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

.page-sports__section-title {
  color: #1F2D3D; /* Text Main */
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__text-block {
  color: #1F2D3D; /* Text Main */
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.page-sports__intro-section,
.page-sports__sports-types-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 0;
}

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

.page-sports__sport-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid #D6E2FF; /* Border */
  display: flex;
  flex-direction: column;
}

.page-sports__sport-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-sports__sport-card-title {
  color: #1F2D3D; /* Text Main */
  font-size: 1.5rem;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-sports__sport-card-description {
  color: #1F2D3D; /* Text Main */
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 15px;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-sports__sport-card-btn {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  margin: 0 15px;
}

.page-sports__sport-card-btn:hover {
  opacity: 0.9;
}

.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-sports__live-betting-section .page-sports__section-title,
.page-sports__live-betting-section .page-sports__text-block {
  color: #ffffff;
}

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

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

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

.page-sports__feature-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-sports__feature-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #6FA3FF; /* Auxiliary Color */
  font-weight: bold;
}

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

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

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

.page-sports__promotion-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  border: 1px solid #D6E2FF; /* Border */
  display: flex;
  flex-direction: column;
}

.page-sports__promotion-card-image {
  width: 100%;
  height: 250px; /* Consistent image height */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-sports__promotion-card-title {
  color: #1F2D3D; /* Text Main */
  font-size: 1.4rem;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__promotion-card-description {
  color: #1F2D3D; /* Text Main */
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 15px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__promotion-card-btn {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  border: none;
  padding: 10px 25px;
  margin: 0 15px;
  border-radius: 8px;
}

.page-sports__promotion-card-btn:hover {
  opacity: 0.9;
}

.page-sports__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-sports__responsible-gaming-section {
  padding: 60px 0;
  text-align: center;
  background-color: #F4F7FB; /* Background */
}

.page-sports__responsible-gaming-section .page-sports__section-title,
.page-sports__responsible-gaming-section .page-sports__text-block {
  color: #1F2D3D;
}

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

.page-sports__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #f0f5ff; /* Light hover for interaction */
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #2F6BFF; /* Main Color */
}

.page-sports__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-sports__container {
    padding: 0 15px !important;
  }

  .page-sports__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important;
  }

  .page-sports__hero-content {
    margin-top: -60px; /* Adjust for smaller screens */
  }

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

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width */
    margin: 0 auto;
  }

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

  .page-sports__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

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

  .page-sports__sports-grid {
    gap: 20px;
  }

  .page-sports__sport-card-image {
    height: 180px;
  }

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

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

  .page-sports__promotion-cards {
    gap: 20px;
  }

  .page-sports__promotion-card-image {
    height: 200px;
  }

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

  .page-sports__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* Image responsiveness for all images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-sports__hero-image-wrapper,
  .page-sports__sport-card,
  .page-sports__live-betting-image-wrapper,
  .page-sports__promotion-card,
  .page-sports__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

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

  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__sports-types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-sports__live-betting-section {
    padding: 40px 0 !important;
  }

  .page-sports__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
  }
}