/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background (default body is white) */
  background-color: #FFFFFF; /* Explicitly set, matching default */
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for hero */
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-sports__hero-content {
  max-width: 800px;
  z-index: 1; /* Ensure text is above image if layered */
  margin-bottom: 40px;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 150px;
  text-align: center;
  font-size: 1.1em;
}

.page-sports__button--register {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Specified register color */
  border: 2px solid #FFFFFF;
}

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

.page-sports__button--login {
  background-color: #FCBC45; /* Specified login color */
  color: #000000; /* Dark text for contrast */
  border: 2px solid #FCBC45;
}

.page-sports__button--login:hover {
  background-color: #e0a53a; /* Slightly darker */
  border-color: #e0a53a;
}

.page-sports__hero-image-container {
  margin-top: 40px;
  max-width: 100%; /* Ensure image container doesn't overflow */
  z-index: 0;
}

.page-sports__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* General Content Sections */
.page-sports__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

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

.page-sports__text-content {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 20px;
  text-align: justify;
}

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

/* Features Section */
.page-sports__features-section {
  padding: 60px 0;
}

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

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

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

.page-sports__feature-icon {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain icon image size for card */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-sports__feature-description {
  font-size: 1em;
  color: #555555;
  text-align: center;
  flex-grow: 1; /* Allow description to take available space */
}

.page-sports__button--download {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-sports__button--download:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

/* Sports Covered Section */
.page-sports__sports-covered-section {
  background-color: #000000; /* Dark background */
  padding: 60px 0;
  color: #FFFFFF; /* Light text */
}

.page-sports__sports-covered-section .page-sports__section-title {
  color: #FFFFFF;
}

.page-sports__sports-covered-section .page-sports__text-content {
  color: #e0e0e0;
}

.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-color: #1a1a1a; /* Slightly lighter dark */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__sport-card:hover {
  transform: translateY(-10px);
}

.page-sports__sport-image {
  width: 100%;
  height: auto;
  max-width: 600px; /* Max width for card image */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-sports__sport-title {
  font-size: 1.6em;
  color: #FCBC45; /* Highlight with accent color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__sport-title a {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-sports__sport-description {
  font-size: 0.95em;
  color: #cccccc;
  text-align: justify;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__button--view-details,
.page-sports__button--bet-now {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: auto; /* Push to bottom of card */
}

.page-sports__button--view-details:hover,
.page-sports__button--bet-now:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

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

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

.page-sports__live-betting-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-sports__button--bet-live {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 20px;
}

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

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

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

.page-sports__promotions-section .page-sports__text-content {
  color: #e0e0e0;
}

.page-sports__promotions-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-sports__promotions-text {
  flex: 1;
}

.page-sports__promotions-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-sports__button--view-promos {
  background-color: #FFFFFF;
  color: #000000;
  border: 2px solid #FFFFFF;
  margin-right: 20px;
  margin-top: 20px;
}

.page-sports__button--view-promos:hover {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

.page-sports__button--claim-bonus {
  background-color: #FCBC45;
  color: #000000;
  border: 2px solid #FCBC45;
  margin-top: 20px;
}

.page-sports__button--claim-bonus:hover {
  background-color: #e0a53a;
  border-color: #e0a53a;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-section {
  padding: 60px 0;
}

.page-sports__responsible-gaming-section .page-sports__text-content {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__button--learn-more {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
}

.page-sports__button--learn-more:hover {
  background-color: #333333;
  border-color: #333333;
}

/* Call to Action Section */
.page-sports__cta-section {
  background-color: #FCBC45;
  padding: 60px 20px;
  text-align: center;
  color: #000000;
}

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

.page-sports__cta-section .page-sports__text-content {
  color: #333333;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__button--join-now {
  background-color: #000000;
  color: #FFFFFF;
  border: 2px solid #000000;
  margin-top: 30px;
}

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

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

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

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

  .page-sports__promotions-content .page-sports__promotions-image {
    order: -1; /* Image above text for promotions on mobile */
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
  }

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

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

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

  .page-sports__button {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-sports__text-content {
    font-size: 1em;
  }

  .page-sports__container {
    padding: 30px 15px;
  }

  /* Mobile image sizing and overflow prevention */
  .page-sports img {
    max-width: 100%; /* Prevent images from overflowing */
    height: auto;
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px; /* Ensure images are not too small */
  }

  .page-sports__feature-icon,
  .page-sports__sport-image,
  .page-sports__live-betting-image,
  .page-sports__promotions-image {
    max-width: 100%;
    height: auto;
  }

  .page-sports__button--view-promos {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

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

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