/* style/sports.css */
.page-sports {
  color: #333333; /* Default text color for light background */
}

.page-sports__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #000000; /* Dark background for hero text */
  overflow: hidden;
}

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

.page-sports__hero-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
  z-index: 2;
}

.page-sports__hero-content {
  text-align: center;
  color: #FFFFFF;
  max-width: 800px;
  position: relative;
  z-index: 3;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-sports__button {
  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;
}

.page-sports__button--register {
  background-color: #FCBC45; /* Login color for Register button as per custom colors */
  color: #000000;
}

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

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

.page-sports__button--login:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

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

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

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

.page-sports__text-content {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__text-content--light {
  color: #F0F0F0;
}

.page-sports__introduction-section,
.page-sports__popular-sports-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-sports__section--dark {
  background-color: #000000;
  color: #FFFFFF;
}

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

.page-sports__feature-card,
.page-sports__sport-card,
.page-sports__promo-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

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

.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FCBC45;
}

.page-sports__feature-description,
.page-sports__sport-description,
.page-sports__promo-description {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

.page-sports__sport-image,
.page-sports__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.page-sports__live-betting-image {
  width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-sports__live-betting-text {
  width: 50%;
}

.page-sports__button--live-betting,
.page-sports__button--claim-bonus,
.page-sports__button--final-cta {
  background-color: #FCBC45;
  color: #000000;
  padding: 15px 35px;
  font-size: 1.2em;
  margin-top: 20px;
}

.page-sports__button--live-betting:hover,
.page-sports__button--claim-bonus:hover,
.page-sports__button--final-cta:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-sports__button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-sports__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #FFFFFF;
}

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

.page-sports__step-description {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-sports__button--register-step,
.page-sports__button--deposit-step,
.page-sports__button--place-bet-step {
  background-color: #FCBC45;
  color: #000000;
  padding: 10px 25px;
  font-size: 1em;
}

.page-sports__button--register-step:hover,
.page-sports__button--deposit-step:hover,
.page-sports__button--place-bet-step:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

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

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

.page-sports__faq-question {
  font-size: 1.2em;
  padding: 20px;
  cursor: pointer;
  background-color: #000000;
  color: #FCBC45;
  border-bottom: 1px solid #333333;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question::after {
  content: '+';
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
  background-color: #FFFFFF;
  color: #333333;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 200px; /* Adjust as needed */
  padding: 20px;
}

.page-sports__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-sports__call-to-action-section {
  padding: 80px 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 2.2em;
  }
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }
  .page-sports__live-betting-image,
  .page-sports__live-betting-text {
    width: 100%;
  }
  .page-sports__live-betting-image {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 0;
  }
  .page-sports__hero-container {
    min-height: 400px;
    padding: 60px 15px 40px;
  }
  .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: 80%;
    margin: 0 auto;
  }
  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-sports__text-content {
    font-size: 0.95em;
  }
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promo-cards,
  .page-sports__steps-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-sports__sport-image, .page-sports__promo-image {
    height: 200px; /* Ensure images are not too small */
    max-width: 100%;
  }
  .page-sports__sport-card img, .page-sports__promo-card img, .page-sports__live-betting-image img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    object-fit: cover;
  }
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px;
  }
  .page-sports__container {
    padding: 20px 15px;
  }
  .page-sports__button--live-betting, .page-sports__button--claim-bonus, .page-sports__button--final-cta {
    font-size: 1.1em;
    padding: 12px 25px;
  }
  /* Mobile content area images must not cause horizontal scroll */
  .page-sports img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__hero-description {
    font-size: 0.9em;
  }
  .page-sports__button {
    width: 90%;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__feature-title, .page-sports__sport-title, .page-sports__promo-title, .page-sports__step-title {
    font-size: 1.5em;
  }
  .page-sports__sport-image, .page-sports__promo-image {
    height: 180px;
  }
}