/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 20px; /* Adjusted padding for hero section */
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439; /* Brand color as hero background */
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-small,
.page-sports__btn-register,
.page-sports__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-sports__btn-register,
.page-sports__btn-login {
  background-color: #C30808; /* Specific color for register/login */
  color: #FFFF00; /* Specific font color */
  border: 2px solid #C30808;
}

.page-sports__btn-register:hover,
.page-sports__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

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

.page-sports__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: justify;
}

/* Background color handling based on body background */
.page-sports__dark-bg {
  background-color: #1a1a2e; /* Matches body background for consistency */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-sports__introduction-section,
.page-sports__sports-types-section,
.page-sports__live-betting-section,
.page-sports__promotions-section,
.page-sports__guide-section,
.page-sports__safety-support-section,
.page-sports__faq-section {
  padding: 60px 0;
}

.page-sports__introduction-section .page-sports__section-title,
.page-sports__introduction-section .page-sports__text-block,
.page-sports__introduction-section .page-sports__card-title,
.page-sports__introduction-section .page-sports__card-description {
  color: #333333;
}

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

.page-sports__feature-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-sports__feature-icon {
  width: 200px; /* Min size 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #017439;
}

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-sports__sports-types-section .page-sports__section-title,
.page-sports__sports-types-section .page-sports__text-block,
.page-sports__sports-types-section .page-sports__card-title,
.page-sports__sports-types-section .page-sports__card-description {
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

.page-sports__live-betting-text {
  flex: 1;
}

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

.page-sports__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23017439" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-sports__feature-list li strong {
  color: #017439;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure minimum size */
}

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

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__text-block,
.page-sports__promotions-section .page-sports__card-title,
.page-sports__promotions-section .page-sports__card-description {
  color: #ffffff;
}

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

.page-sports__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__promotion-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-sports__guide-section .page-sports__section-title,
.page-sports__guide-section .page-sports__text-block,
.page-sports__guide-section .page-sports__guide-step-title,
.page-sports__guide-section .page-sports__guide-item p {
  color: #333333;
}

.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-sports__guide-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__guide-step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-sports__guide-item p {
  margin-bottom: 15px;
}

.page-sports__safety-support-section .page-sports__section-title,
.page-sports__safety-support-section .page-sports__text-block,
.page-sports__safety-support-section .page-sports__card-title,
.page-sports__safety-support-section .page-sports__card-description {
  color: #ffffff;
}

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

.page-sports__info-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  text-align: center;
}

.page-sports__info-card .page-sports__card-title {
  color: #ffffff;
}

.page-sports__info-card .page-sports__card-description {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-sports__faq-section .page-sports__section-title {
  color: #333333;
}

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

.page-sports__faq-item {
  background-color: #f8f8f8;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #333333;
}

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

.page-sports__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px; /* Adjust padding when active */
}

.page-sports__faq-answer p {
  margin-bottom: 15px;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
  }
  .page-sports__live-betting-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    min-height: 450px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-register,
  .page-sports__btn-login {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__container {
    padding: 15px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports__text-block {
    font-size: 1em;
  }
  .page-sports__feature-grid,
  .page-sports__sport-cards-grid,
  .page-sports__promotion-grid,
  .page-sports__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__feature-card,
  .page-sports__sport-card,
  .page-sports__promotion-card,
  .page-sports__info-card,
  .page-sports__guide-item,
  .page-sports__faq-item {
    padding: 20px;
  }
  .page-sports__feature-icon {
    width: 180px;
  }
  .page-sports__card-title {
    font-size: 1.3em;
  }
  .page-sports__live-betting-content {
    gap: 20px;
  }
  .page-sports__feature-list li {
    font-size: 1em;
    padding-left: 25px;
  }
  /* Images and videos responsiveness */
  .page-sports img {
    max-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__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}