:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --background-dark: #0A0A0A;
  --card-bg: #111111;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --glow-color: #FFD36B;
  --text-light-contrast: #333333; /* For light backgrounds */
}

.page-sports {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background-dark); /* Ensure consistency, though body handles main background */
  line-height: 1.6;
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 20px;
  font-weight: bold;
}

.page-sports__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px; /* Add padding to ensure content below hero is visible */
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  overflow: hidden; /* Ensure no overflow issues */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit hero image height */
}

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

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font-size */
  color: var(--text-main);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5); /* Subtle glow */
}

.page-sports__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.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: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure text wraps within button */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sports__btn-primary {
  background: var(--button-gradient);
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-sports__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--background-dark); /* Dark text for contrast */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* General Card Styling */
.page-sports__card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  height: 100%; /* Ensure cards in grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 211, 107, 0.2);
}

.page-sports__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__card-text {
  font-size: 1em;
  color: var(--text-main);
  flex-grow: 1; /* Allow text to take up available space */
}

.page-sports__dark-section {
  background-color: var(--background-dark);
  color: var(--text-main);
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: #ffffff; /* Use pure white for light background */
  color: var(--text-light-contrast); /* Dark text for light background */
  padding: 60px 0;
}

.page-sports__text-contrast-fix {
  color: var(--text-light-contrast) !important; /* Force dark text on light backgrounds */
}

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

.page-sports__feature-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* Explore Sports Section */
.page-sports__explore-sports {
  padding: 60px 0;
}

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

.page-sports__sport-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px;
}

.page-sports__category-icon {
  width: 30px; /* Specific size for category icons */
  height: 30px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 5px var(--glow-color)); /* Add a subtle glow */
}

/* Live Betting Section */
.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.3);
}

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

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

.page-sports__promo-card .page-sports__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

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

.page-sports__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-main); /* Ensure text is main for dark card on light bg */
}

.page-sports__step-number {
  font-size: 3em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1;
}

/* Security Section */
.page-sports__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__security-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}

.page-sports__item-title {
  font-size: 1.4em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-sports__item-text {
  font-size: 1em;
  color: var(--text-main);
}

/* Mobile App Section */
.page-sports__mobile-app-flex {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

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

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

.page-sports__mobile-app-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 211, 107, 0.4);
}

.page-sports__app-download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.page-sports__app-hint {
  font-size: 0.9em;
  color: var(--text-main);
  margin-top: 15px;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
}

.page-sports__faq-item {
  background: var(--card-bg); /* FAQ item background, ensure contrast with text */
  border: 1px solid var(--border-color);
  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: var(--card-bg); /* Ensure question background is consistent */
  color: var(--text-main); /* Question text color */
  border-bottom: 1px solid transparent; /* No border initially */
}

.page-sports__faq-item.active .page-sports__faq-question {
  border-bottom: 1px solid var(--border-color); /* Border when active */
}

.page-sports__faq-question:hover {
  background: rgba(255, 211, 107, 0.1); /* Subtle hover effect */
}

.page-sports__faq-question .page-sports__card-title {
  margin: 0;
  color: var(--text-main); /* Question title color */
}

.page-sports__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: var(--secondary-color);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--card-bg); /* Answer background */
  color: var(--text-main); /* Answer text color */
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

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

.page-sports__testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-sports__testimonial-text {
  font-style: italic;
  font-size: 1.1em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-sports__testimonial-author {
  font-weight: bold;
  color: var(--secondary-color);
  text-align: right;
  margin-top: auto;
}

/* Partners Section */
.page-sports__partners-section {
  padding: 60px 0;
}

.page-sports__partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjusted for 2x5 grid of 167x127 */
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}

.page-sports__partner-logo {
  width: 167px; /* Fixed width for partner logos */
  height: 127px; /* Fixed height for partner logos */
  object-fit: contain;
  filter: grayscale(80%) brightness(120%); /* Subtle effect for logos */
  transition: filter 0.3s ease;
}

.page-sports__partner-logo:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 8px var(--glow-color));
}

/* Contact Section */
.page-sports__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-main); /* Ensure text is main for dark card on light bg */
}

.page-sports__contact-card .page-sports__btn-secondary {
  margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
}

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

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