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

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

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

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

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  background-color: #0a0a0a;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

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

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

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
  text-align: center;
}

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

.page-sports__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

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

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

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 5px 0;
  text-align: left;
}

.page-sports__btn-link:hover {
  text-decoration: underline;
}

/* Why Choose Section */
.page-sports__why-choose-section,
.page-sports__how-to-start-section,
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

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

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

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

.page-sports__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__feature-text {
  color: #f0f0f0;
}

/* Popular Sports Section */
.page-sports__popular-sports-section,
.page-sports__promotions-section,
.page-sports__responsible-gaming-section,
.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-sports__sport-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-sports__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__sport-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px;
}

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

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

.page-sports__sport-text {
  color: #f0f0f0;
  padding: 0 15px 15px;
}

/* Live Betting Section */
.page-sports__live-betting-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

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

.page-sports__live-betting-subtitle {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-sports__live-betting-text li {
  background-color: #2a2a2a;
  margin-bottom: 10px;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-sports__live-betting-text li a {
  color: #f0f0f0;
  text-decoration: none;
}

.page-sports__live-betting-text li a:hover {
  text-decoration: underline;
}

.page-sports__live-betting-text li::before {
  content: '✓';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-sports__live-betting-image-wrapper {
  flex: 1;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-sports__promo-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-sports__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promo-title {
  font-size: 1.4em;
  color: #26A9E0;
  padding: 15px;
}

.page-sports__promo-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-sports__promo-text {
  color: #f0f0f0;
  padding: 0 15px 15px;
}

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

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

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

.page-sports__step-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-sports__step-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-sports__responsible-gaming-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-sports__responsible-gaming-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__responsible-gaming-list {
  flex: 1;
  list-style: none;
  padding: 0;
}

.page-sports__responsible-gaming-list li {
  background-color: #2a2a2a;
  margin-bottom: 15px;
  padding: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-sports__responsible-gaming-list li a {
  color: #f0f0f0;
  text-decoration: none;
}

.page-sports__responsible-gaming-list li a:hover {
  text-decoration: underline;
}

.page-sports__responsible-gaming-list li::before {
  content: '→';
  color: #26A9E0;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #3a3a3a;
  transition: background-color 0.3s ease;
}

.page-sports__faq-question:hover {
  background-color: #4a4a4a;
}

.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 20px;
  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 value */
  padding: 20px;
}

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

.page-sports__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__faq-answer a:hover {
  text-decoration: underline;
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #0a0a0a;
}

.page-sports__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-sports__cta-final-section .page-sports__section-title {
  color: #26A9E0;
}

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

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

/* Global image rules for content area */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce minimum size for all content images */
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__live-betting-content,
  .page-sports__responsible-gaming-content {
    flex-direction: column;
  }
  .page-sports__live-betting-text, .page-sports__live-betting-image-wrapper,
  .page-sports__responsible-gaming-image, .page-sports__responsible-gaming-list {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 60vh;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-title {
    font-size: 2.2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary, .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 0.95em;
  }
  .page-sports__why-choose-section,
  .page-sports__popular-sports-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__how-to-start-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 60px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }

  /* Image responsive rules for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-sports__feature-image, .page-sports__sport-image, .page-sports__promo-image, .page-sports__live-betting-image, .page-sports__responsible-gaming-image {
    height: auto !important;
  }

  /* Ensure containers with images/buttons don't overflow */
  .page-sports__hero-section,
  .page-sports__why-choose-section,
  .page-sports__popular-sports-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__how-to-start-section,
  .page-sports__responsible-gaming-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section,
  .page-sports__container,
  .page-sports__hero-buttons,
  .page-sports__cta-buttons,
  .page-sports__features-grid,
  .page-sports__sports-grid,
  .page-sports__promo-grid,
  .page-sports__steps-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-sports__hero-content {
    padding: 0 15px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__cta-button, .page-sports__btn-primary, .page-sports__btn-secondary, .page-sports a[class*="button"], .page-sports a[class*="btn"] {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .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.2em;
  }
}

/* Dark/Light background utility classes - applied based on body background */
.page-sports__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

/* Specific color contrast enhancements */
.page-sports__feature-card,
.page-sports__sport-card,
.page-sports__promo-card,
.page-sports__step-card,
.page-sports__faq-item {
  background-color: #2a2a2a;
  color: #f0f0f0; /* Ensure light text on dark card background */
}

.page-sports__faq-question {
  background-color: #3a3a3a;
}

.page-sports__faq-question:hover {
  background-color: #4a4a4a;
}

.page-sports__live-betting-text li,
.page-sports__responsible-gaming-list li {
  background-color: #2a2a2a;
}

.page-sports__hero-title,
.page-sports__section-title,
.page-sports__feature-title,
.page-sports__sport-title,
.page-sports__promo-title,
.page-sports__live-betting-subtitle,
.page-sports__step-title,
.page-sports__faq-question span:first-child {
  color: #26A9E0;
}

.page-sports__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}
.page-sports__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__btn-link {
  color: #26A9E0;
}

/* Ensure all link texts within content are readable */
.page-sports a:not([class*="btn"]) {
  color: #26A9E0;
}

.page-sports a:not([class*="btn"]):hover {
  text-decoration: underline;
}

/* Specific color for login as per custom color rules */
.page-sports__btn-login {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}
.page-sports__btn-login:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}