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

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

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

.page-sports__hero-content {
  z-index: 1;
  max-width: 800px;
  margin-right: 20px;
  text-align: left;
}

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

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

.page-sports__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.page-sports__btn-register,
.page-sports__btn-login {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-register {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom font color for Register */
}

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

.page-sports__btn-login {
  background-color: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom font color for Login */
}

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

.page-sports__hero-image-wrapper {
  flex-shrink: 0;
  margin-left: 40px;
}

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

.page-sports__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-sports__dark-section {
  background-color: #017439;
  padding: 80px 0;
  color: #ffffff;
}

.page-sports__why-choose-section {
  padding: 80px 0;
}

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

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

.page-sports__feature-item:hover {
  transform: translateY(-10px);
}

.page-sports__feature-icon {
  width: 100%; /* Ensure large images are used */
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
  border-radius: 8px;
}

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

.page-sports__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__betting-options-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-sports__category-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__category-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
}

.page-sports__category-text {
  font-size: 1em;
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-sports__category-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-sports__category-list li {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 8px 15px;
  margin-bottom: 5px;
  border-radius: 5px;
  color: #f0f0f0;
}

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

.page-sports__cta-buttons--center {
  justify-content: center;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

.page-sports__live-betting-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

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

.page-sports__video-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.page-sports__video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4em;
  color: #ffffff;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.page-sports__video-wrapper:hover .page-sports__video-play-button {
  opacity: 1;
}

.page-sports__video-caption {
  margin-top: 15px;
  font-style: italic;
  color: #cccccc;
}

.page-sports__promotions-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.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.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-sports__promo-text {
  font-size: 1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-sports__how-to-start-section {
  padding: 80px 0;
}

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

.page-sports__step-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-sports__step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-sports__step-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-sports__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-sports__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-sports__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  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: #f0f0f0;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    flex-direction: column;
    padding: 60px 20px;
  }

  .page-sports__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }

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

  .page-sports__hero-buttons {
    justify-content: center;
  }

  .page-sports__hero-image-wrapper {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-sports__btn-register,
  .page-sports__btn-login,
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-sports__hero-buttons,
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

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

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

  .page-sports__dark-section,
  .page-sports__why-choose-section,
  .page-sports__betting-options-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__how-to-start-section,
  .page-sports__faq-section {
    padding: 40px 0;
  }

  .page-sports__container,
  .page-sports__video-wrapper,
  .page-sports__promo-card,
  .page-sports__feature-item,
  .page-sports__category-card,
  .page-sports__step-item,
  .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;
  }
  
  .page-sports img {
    max-width: 100% !important;
    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__feature-icon {
    min-width: 200px;
    min-height: 150px;
    object-fit: cover;
  }

  .page-sports__promo-image {
    min-width: 200px;
    min-height: 150px;
    object-fit: cover;
  }

  .page-sports__hero-image {
    min-width: 200px;
    min-height: 150px;
    object-fit: cover;
  }

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

  .page-sports__faq-answer {
    padding: 0 15px;
  }

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

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }

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

  .page-sports__feature-title,
  .page-sports__category-title,
  .page-sports__promo-title,
  .page-sports__step-title {
    font-size: 1.4em;
  }

  .page-sports__faq-title {
    font-size: 1em;
  }
}