/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.page-sports__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

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

.page-sports__section-title {
  font-size: 3em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  box-sizing: border-box;
}

.page-sports__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

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

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

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

.page-sports__hero-video-wrapper {
  flex: 1;
  max-width: 600px;
  position: relative;
  padding-bottom: 33.75%; /* Aspect ratio 16:9 for videos */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.page-sports__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid transparent;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  font-size: 1.1em;
}

.page-sports__btn-primary:hover {
  background-color: #005f2c;
}

.page-sports__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  font-size: 1.1em;
}

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
}

/* Specific style for Register/Login buttons as per prompt */
.page-sports__btn-register-login {
  background: #C30808; /* Register/Login red */
  color: #FFFF00; /* Register/Login yellow text */
  border: 2px solid #C30808;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: inline-block;
  cursor: pointer;
  font-size: 1.1em;
}

.page-sports__btn-register-login:hover {
  background-color: #a30606; /* Slightly darker red */
}

.page-sports__small-btn {
  font-size: 0.9em;
  padding: 8px 15px;
}

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

/* Image Block */
.page-sports__image-block {
  text-align: center;
  margin: 40px 0;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-sports__text-block {
  margin-top: 20px;
  font-size: 1.1em;
  text-align: justify;
}

/* Types Section - Grid of Cards */
.page-sports__cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #333333; /* Ensure dark text on light card background */
}

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__card-title a {
  color: #017439; /* Brand color for card titles */
  text-decoration: none;
}

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

.page-sports__card-text {
  font-size: 0.95em;
  padding: 0 15px;
  text-align: justify;
}

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

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

.page-sports__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-sports__step-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-sports__tips-text {
  margin-top: 40px;
  font-style: italic;
  text-align: center;
}

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

.page-sports__live-betting-image {
  flex: 1;
  min-width: 300px;
}

.page-sports__live-betting-features {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-sports__feature-item {
  margin-bottom: 25px;
}

.page-sports__feature-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: inherit;
}

.page-sports__feature-text {
  font-size: 1.1em;
  line-height: 1.5;
  color: inherit;
}

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

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

.page-sports__promo-card .page-sports__card-image {
  height: 220px;
}

/* Why Choose Section - Features Grid */
.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__feature-item-large {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
}

.page-sports__feature-item-large .page-sports__feature-title {
  font-size: 1.8em;
  color: #ffffff;
}

.page-sports__feature-item-large .page-sports__feature-text {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Responsible Gambling Section */
.page-sports__responsible-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-sports__responsible-image {
  flex: 1;
  min-width: 300px;
}

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

.page-sports__responsible-item {
  margin-bottom: 25px;
}

.page-sports__responsible-subtitle {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #017439;
}

.page-sports__responsible-text {
  font-size: 1.1em;
  line-height: 1.5;
}

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

.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.05);
  color: #333333;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #017439;
  background-color: #e6f5ed; /* Light green for summary background */
  border-bottom: 1px solid #d4e9df;
  list-style: none; /* For details/summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none;
}

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
}

.page-sports__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  line-height: 1.6;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

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

/* CTA Section */
.page-sports__cta-content {
  text-align: center;
  padding: 60px 20px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }
  .page-sports__hero-content {
    max-width: 100%;
    margin-bottom: 30px;
  }
  .page-sports__hero-buttons {
    justify-content: center;
  }
  .page-sports__hero-video-wrapper {
    max-width: 100%;
    width: 100%;
  }
  .page-sports__live-betting-content,
  .page-sports__responsible-content {
    flex-direction: column;
  }
  .page-sports__live-betting-image,
  .page-sports__responsible-image {
    width: 100%;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
    padding: 0 !important; /* Reset padding, inner containers will handle it */
  }

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

  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  /* Ensure hero section padding is correct on mobile */
  .page-sports__hero-section {
    padding: 40px 15px !important; /* Adjusted for mobile */
    padding-top: var(--header-offset, 120px) !important; /* Fixed header offset */
    flex-direction: column !important; /* Stack content and video vertically */
    gap: 20px !important;
    min-height: auto !important;
  }

  .page-sports__hero-content {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 0 !important;
  }

  .page-sports__hero-title {
    font-size: 2.5em !important;
  }

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

  .page-sports__hero-video-wrapper {
    width: 100% !important;
    margin-top: 20px !important;
    padding-bottom: 56.25% !important; /* Standard 16:9 aspect ratio for mobile video */
  }

  .page-sports__hero-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 0 15px !important; /* Inner padding for buttons */
    box-sizing: border-box !important;
  }

  .page-sports__hero-buttons .page-sports__btn-register-login {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-sports__container,
  .page-sports__about-section,
  .page-sports__types-section,
  .page-sports__how-to-bet-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__why-choose-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Videos responsive */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container responsive */
  .page-sports__hero-video-wrapper,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-register-login,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important; /* Add some internal padding */
    padding-right: 15px !important; /* Add some internal padding */
  }

  /* Button groups responsive */
  .page-sports__cta-buttons,
  .page-sports__button-group {
    display: flex !important;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-sports__cards-grid,
  .page-sports__steps-grid,
  .page-sports__promotions-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr !important; /* Single column layout for cards on mobile */
    gap: 20px !important;
  }

  .page-sports__live-betting-content,
  .page-sports__responsible-content {
    flex-direction: column !important;
  }

  .page-sports__live-betting-image,
  .page-sports__responsible-image {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .page-sports__card-image {
    height: auto !important;
  }

  .page-sports__faq-question {
    font-size: 1.1em !important;
    padding: 15px !important;
  }

  .page-sports__faq-answer {
    font-size: 1em !important;
    padding: 15px !important;
  }
}