/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Assumed dark from shared.css */
}

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

.page-sports__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  text-align: center;
}

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

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

.page-sports__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* Specific colors for Register/Login buttons */
.page-sports__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-sports__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #ffffff; /* Slightly change hover color for better contrast */
}

.page-sports__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-sports__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #ffffff; /* Slightly change hover color for better contrast */
}

.page-sports__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-sports__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  overflow: hidden;
  color: #ffffff;
  background-color: #017439;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

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

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

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

/* About Section */
.page-sports__about-section {
  background-color: #ffffff; /* Light background for contrast */
  color: #333333;
  padding: 80px 0;
}

.page-sports__about-section .page-sports__section-title {
  color: #017439;
}

.page-sports__about-section .page-sports__section-description {
  color: #555555;
}

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

.page-sports__feature-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__feature-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-sports__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Types Section */
.page-sports__types-section {
  background-color: #017439;
  padding: 80px 0;
}

.page-sports__types-section .page-sports__section-title,
.page-sports__types-section .page-sports__section-description {
  color: #ffffff;
}

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

.page-sports__sport-card {
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-sports__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-sports__sport-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

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

.page-sports__live-betting-section .page-sports__section-title {
  color: #017439;
}

.page-sports__live-betting-section .page-sports__section-description {
  color: #555555;
}

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

.page-sports__live-feature-item {
  text-align: center;
}

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

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

.page-sports__live-feature-text {
  font-size: 1em;
  color: #555555;
}

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

/* Promotions Section */
.page-sports__promotions-section {
  background-color: #017439;
  padding: 80px 0;
}

.page-sports__promotions-section .page-sports__section-title,
.page-sports__promotions-section .page-sports__section-description {
  color: #ffffff;
}

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

.page-sports__promo-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-sports__promo-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Get Started Section */
.page-sports__get-started-section {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-sports__get-started-section .page-sports__section-title {
  color: #017439;
}

.page-sports__get-started-section .page-sports__section-description {
  color: #555555;
}

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

.page-sports__step-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  background-color: #f0f0f0;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.page-sports__step-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Security Section */
.page-sports__security-section {
  background-color: #017439;
  padding: 80px 0;
}

.page-sports__security-section .page-sports__section-title,
.page-sports__security-section .page-sports__section-description {
  color: #ffffff;
}

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

.page-sports__security-item {
  text-align: center;
}

.page-sports__security-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-sports__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-sports__faq-section .page-sports__section-title {
  color: #017439;
}

.page-sports__faq-section .page-sports__section-description {
  color: #555555;
}

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

.page-sports__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f9f9f9;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.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(0deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

/* Call to Action Section */
.page-sports__cta-section {
  background-color: #017439;
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-section .page-sports__section-title,
.page-sports__cta-section .page-sports__section-description {
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.2em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px;
    min-height: 450px;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-register,
  .page-sports__btn-login,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-sports__features-grid,
  .page-sports__sport-cards-grid,
  .page-sports__live-features-grid,
  .page-sports__promo-grid,
  .page-sports__steps-grid,
  .page-sports__security-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-sports__about-section,
  .page-sports__types-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__get-started-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 60px 0;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
  }
  .page-sports__faq-answer {
    padding: 0 15px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__faq-question {
    font-size: 0.9em;
  }
}