.page-sports {
  color: #ffffff; /* Body background #0a0a0a is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

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

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff; /* Default for dark sections */
}

.page-sports__intro-section .page-sports__section-title,
.page-sports__bet-types-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-title,
.page-sports__security-support-section .page-sports__section-title,
.page-sports__cta-section .page-sports__section-title {
  color: #017439; /* Brand color for titles on light/transparent backgrounds */
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff; /* Default for dark sections */
}

.page-sports__intro-section .page-sports__text-block,
.page-sports__bet-types-section .page-sports__text-block,
.page-sports__promotions-section .page-sports__text-block,
.page-sports__security-support-section .page-sports__text-block,
.page-sports__cta-section .page-sports__text-block {
  color: #f0f0f0; /* Slightly lighter for readability on dark body */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px);
}

.page-sports__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-sports__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-sports__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  opacity: 0.9;
}

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

.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, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Custom colors for register/login buttons if they were directly in HTML */
.page-sports__btn-register,
.page-sports__btn-login {
  background-color: #C30808;
  color: #000000; /* Adjusted for WCAG AA contrast (original #FFFF00 fails) */
  border: 2px solid #C30808;
}

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

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

.page-sports__feature-card,
.page-sports__promotion-card,
.page-sports__info-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background for cards on dark body */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

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

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for card titles */
}

.page-sports__card-title a.page-sports__card-link {
  color: #017439;
  text-decoration: none;
}

.page-sports__card-title a.page-sports__card-link:hover {
  text-decoration: underline;
}

.page-sports__card-description {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-sports__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  color: #ffffff;
}

.page-sports__list-item:last-child {
  margin-bottom: 0;
}

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

.page-sports__list-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

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

.page-sports__cockfighting-section .page-sports__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__cockfighting-content {
  max-width: 900px;
  width: 100%;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

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

.page-sports__faq-item {
  background-color: 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 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: #ffffff;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  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; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

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

  .page-sports__hero-section {
    height: auto;
    min-height: 400px;
    padding: 100px 15px 40px 15px; /* Adjust padding for mobile hero */
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-sports__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  .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,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure buttons stack vertically on mobile */
  }

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

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

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

  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__info-grid,
  .page-sports__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__feature-card,
  .page-sports__promotion-card,
  .page-sports__info-card,
  .page-sports__step-card {
    padding: 25px;
  }

  .page-sports__feature-image,
  .page-sports__promotion-image,
  .page-sports__step-image,
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-sports__cockfighting-section .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
  }

  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

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

  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 18px 20px;
  }

  /* Ensure content area images display at least 200px on mobile */
  .page-sports__section img,
  .page-sports__card img {
    width: 100%; /* Will scale down due to max-width: 100% */
    min-width: 200px;
    min-height: 200px;
    height: auto;
  }
}

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

/* Global image rules for content area - ensure min 200px display size */
.page-sports img {
  min-width: 200px; 
  min-height: 200px; 
  width: auto; /* Allow flexible width */
  height: auto; /* Allow flexible height */
}

/* Override specific elements if they get smaller than 200px */
.page-sports__feature-image, 
.page-sports__promotion-image, 
.page-sports__step-image {
  min-width: 200px;
  min-height: 200px;
}