/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

.page-sports__section {
  padding: 80px 0;
}

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

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

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

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

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

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

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh; /* Full viewport height */
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  overflow: hidden;
}

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

.page-sports__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.page-sports__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

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

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

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

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

/* Why Choose Section */
.page-sports__why-choose .page-sports__section-title,
.page-sports__why-choose .page-sports__section-description {
  color: #333333;
}

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

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

.page-sports__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-sports__feature-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__feature-text {
  font-size: 16px;
  color: #555555;
}

/* Bet Types Section */
.page-sports__bet-types .page-sports__section-title,
.page-sports__bet-types .page-sports__section-description {
  color: #ffffff;
}

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

.page-sports__bet-type-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
}

.page-sports__bet-type-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__bet-type-text {
  font-size: 16px;
  color: #555555;
}

/* How To Bet Section */
.page-sports__how-to-bet .page-sports__section-title,
.page-sports__how-to-bet .page-sports__section-description {
  color: #333333;
}

.page-sports__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-sports__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 20px;
}

.page-sports__step-content {
  text-align: left;
}

.page-sports__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__step-text {
  font-size: 16px;
  color: #555555;
}

.page-sports__step-text a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-sports__how-to-bet .page-sports__cta-buttons {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Promotions Section */
.page-sports__promotions .page-sports__section-title,
.page-sports__promotions .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: 50px;
}

.page-sports__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-sports__promo-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

.page-sports__promo-card .page-sports__btn-primary {
  width: fit-content;
  margin: 0 auto;
}

/* FAQ Section */
.page-sports__faq-section .page-sports__section-title,
.page-sports__faq-section .page-sports__section-description {
  color: #333333;
}

.page-sports__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #333333;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: #26A9E0;
  font-size: 18px;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #26A9E0;
  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 25px;
  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; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px;
}

.page-sports__faq-answer p {
  margin: 0;
  font-size: 16px;
}

/* Conclusion Section */
.page-sports__conclusion {
  text-align: center;
}

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

.page-sports__conclusion .page-sports__btn-primary {
  margin-top: 30px;
  font-size: 20px;
  padding: 18px 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 48px;
  }
  .page-sports__hero-description {
    font-size: 20px;
  }
  .page-sports__section-title {
    font-size: 32px;
  }
  .page-sports__section-description {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-sports__hero-section {
    height: auto;
    min-height: 600px;
    padding: 100px 0 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-sports__hero-title {
    font-size: 36px;
  }
  .page-sports__hero-description {
    font-size: 18px;
  }
  .page-sports__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__hero-cta-buttons .page-sports__btn-primary,
  .page-sports__hero-cta-buttons .page-sports__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-sports__section {
    padding: 60px 0;
  }
  .page-sports__section-title {
    font-size: 28px;
  }
  .page-sports__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__features-grid,
  .page-sports__bet-types-grid,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-sports__feature-card,
  .page-sports__bet-type-card,
  .page-sports__promo-card {
    padding: 25px;
  }

  .page-sports__feature-title,
  .page-sports__bet-type-title,
  .page-sports__promo-title {
    font-size: 20px;
  }

  .page-sports__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-sports__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-sports__step-title {
    font-size: 20px;
  }

  .page-sports__how-to-bet .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__how-to-bet .page-sports__btn-primary,
  .page-sports__how-to-bet .page-sports__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-sports__faq-question {
    padding: 18px 20px;
  }
  .page-sports__faq-question h3 {
    font-size: 16px;
  }
  .page-sports__faq-answer {
    padding: 0 20px;
  }
  .page-sports__faq-item.active .page-sports__faq-answer {
    padding: 15px 20px 20px 20px;
  }

  .page-sports__conclusion .page-sports__btn-primary {
    font-size: 18px;
    padding: 15px 30px;
  }

  /* Mobile image and video responsive */
  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-sports video,
  .page-sports__hero-video {
    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-video-wrapper,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }
  .page-sports__cta-button,
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-sports__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}