.page-sports {
  color: #333333; /* Default text color for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

.page-sports__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #000000; /* Dark background for hero section */
  color: #ffffff;
  padding: 0;
}

.page-sports__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Minimum height for hero */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.6;
  filter: brightness(0.7); /* Slightly darken for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

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

.page-sports__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-sports__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-sports__button--explore {
  background-color: #FCBC45;
  color: #000000;
}

.page-sports__button--explore:hover {
  background-color: #e0a030;
  transform: translateY(-2px);
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 60px;
}

.page-sports__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Why TH77 Section */
.page-sports__why-th77-section {
  background-color: #f8f8f8;
  padding: 60px 0;
}

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

.page-sports__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-sports__feature-image {
  width: 100%; /* Ensures image fills container width */
  height: auto;
  max-width: 400px; /* Minimum 200px, but visually larger for content */
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-sports__feature-heading {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  color: #666666;
  font-size: 0.95em;
}

/* Categories Section */
.page-sports__categories-section {
  padding: 60px 0;
}

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

.page-sports__category-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__category-card:hover {
  transform: translateY(-5px);
}

.page-sports__category-image {
  width: 100%;
  height: auto;
  max-width: 350px; /* Minimum 200px */
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

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

.page-sports__category-text {
  color: #666666;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.page-sports__button--bet-now {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-sports__button--bet-now:hover {
  background-color: #e0a030;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__live-betting-section .page-sports__section-title {
  color: #FFFFFF;
}

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

.page-sports__live-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px; /* Minimum 200px */
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-sports__live-description {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-sports__live-features li {
  background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FCBC45"%3e%3cpath d="M0 0h24v24H0z" fill="none"/%3e%3cpath d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/%3e%3c/svg%3e') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-sports__button--live-bet {
  background-color: #FCBC45;
  color: #000000;
}

.page-sports__button--live-bet:hover {
  background-color: #e0a030;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-sports__promo-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

.page-sports__promo-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Minimum 200px */
  min-height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

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

.page-sports__promo-text {
  color: #666666;
  font-size: 0.9em;
  margin-bottom: 20px;
}

.page-sports__button--view-promo {
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-sports__button--view-promo:hover {
  background-color: #333333;
}

.page-sports__full-promo-link {
  text-align: center;
}

.page-sports__button--all-promos {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 30px;
}

.page-sports__button--all-promos:hover {
  background-color: #e0a030;
}

/* Mobile App Section */
.page-sports__mobile-app-section {
  padding: 60px 0;
}

.page-sports__mobile-app-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Image on right, text on left for desktop */
}

.page-sports__mobile-text-content {
  flex: 1;
  min-width: 300px;
}

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

.page-sports__mobile-features li {
  background: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FCBC45"%3e%3cpath d="M0 0h24v24H0z" fill="none"/%3e%3cpath d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/%3e%3c/svg%3e') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333333;
}

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

.page-sports__mobile-image {
  max-width: 400px; /* Minimum 200px */
  min-height: 200px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__button--download-app {
  background-color: #000000;
  color: #FFFFFF;
}

.page-sports__button--download-app:hover {
  background-color: #333333;
}

/* CTA Section */
.page-sports__cta-section {
  background-color: #FCBC45;
  padding: 60px 0;
  text-align: center;
  color: #000000;
}

.page-sports__cta-section .page-sports__section-title {
  color: #000000;
}

.page-sports__cta-section .page-sports__section-description {
  color: #333333;
}

.page-sports__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
}

.page-sports__button--join-now:hover {
  background-color: #333333;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 30px 0;
  text-align: center;
  background-color: #f0f0f0;
  font-size: 0.9em;
  color: #666666;
}

.page-sports__responsible-link {
  color: #000000;
  text-decoration: underline;
}

.page-sports__responsible-link:hover {
  color: #FCBC45;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }

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

  .page-sports__hero-container {
    min-height: 400px;
  }
}

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

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

  .page-sports__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__button {
    width: 80%;
    max-width: 300px;
  }

  .page-sports__live-content, .page-sports__mobile-app-container {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-image, .page-sports__mobile-image-wrapper {
    order: -1; /* Image appears above text on mobile */
  }

  .page-sports__live-image, .page-sports__mobile-image {
    max-width: 100%;
    height: auto;
  }

  /* Enforce minimum image size for content area images */
  .page-sports img {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
  }
}

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

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

  .page-sports__content-area {
    padding: 20px 15px;
  }

  .page-sports__hero-container {
    min-height: 300px;
  }
}

/* Ensure all content area images are at least 200px wide */
.page-sports__feature-image, 
.page-sports__category-image, 
.page-sports__live-image, 
.page-sports__promo-image, 
.page-sports__mobile-image {
  min-width: 200px;
  min-height: 200px;
}