/* style/sports.css */

/* BEM Naming for page-sports */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark #121212, so text is light */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-sports__text-block {
  font-size: 17px;
  line-height: 1.7;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #e0e0e0;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

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

.page-sports__btn-primary:hover {
  background: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
}

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

.page-sports__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87c2;
  border-color: #1e87c2;
  transform: translateY(-2px);
}

.page-sports__btn-link {
  background: none;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 10px 20px;
  font-size: 15px;
}

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

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

.page-sports a:hover {
  text-decoration: underline;
  color: #1e87c2;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  background-color: #1a1a1a;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-sports__main-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-sports__description {
  font-size: 19px;
  color: #e0e0e0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Why Choose Section */
.page-sports__why-choose-section,
.page-sports__betting-types-section,
.page-sports__how-to-bet-section,
.page-sports__top-leagues-section,
.page-sports__features-highlight-section,
.page-sports__promotions-section,
.page-sports__support-section,
.page-sports__faq-section,
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: #1f1f1f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.page-sports__why-choose-section {
  background-color: #121212;
}

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

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

.page-sports__feature-card:hover {
  transform: translateY(-5px);
  background: rgba(38, 169, 224, 0.15);
}

.page-sports__feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

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

.page-sports__feature-card p {
  font-size: 16px;
  color: #c0c0c0;
}

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

.page-sports__betting-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s ease;
}

.page-sports__betting-card:hover {
  border-color: #26A9E0;
}

.page-sports__betting-card .page-sports__card-title {
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__betting-card p {
  color: #b0b0b0;
  font-size: 16px;
}

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

.page-sports__step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.3s ease;
}

.page-sports__step-card:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.page-sports__step-card p {
  color: #c0c0c0;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-sports__league-card {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  text-align: center;
}

.page-sports__league-logo {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: grayscale(20%) brightness(1.1);
}

.page-sports__league-card ul {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sports__league-card li {
  color: #e0e0e0;
  font-size: 16px;
  margin-bottom: 8px;
}

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

.page-sports__highlight-card {
  background: rgba(38, 169, 224, 0.1);
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-sports__highlight-card .page-sports__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__highlight-card p {
  color: #c0c0c0;
  font-size: 16px;
}

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

.page-sports__promo-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
}

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

.page-sports__promo-card .page-sports__card-title {
  color: #ffffff;
  padding: 0 20px;
  margin-bottom: 10px;
}

.page-sports__promo-card p {
  color: #c0c0c0;
  font-size: 15px;
  padding: 0 20px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__promo-card .page-sports__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-sports__cta-promotions {
  text-align: center;
}

/* Support Section */
.page-sports__support-section {
  background-color: #121212;
}

.page-sports__contact-info {
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.page-sports__contact-info p,
.page-sports__contact-info ul {
  color: #e0e0e0;
  font-size: 17px;
  margin-bottom: 20px;
}

.page-sports__contact-info ul {
  list-style: none;
  padding: 0;
}

.page-sports__contact-info li {
  margin-bottom: 10px;
}

.page-sports__contact-info .page-sports__btn-primary {
  margin-top: 20px;
}

/* FAQ Section */
.page-sports__faq-section {
  background-color: #1f1f1f;
}

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

.page-sports__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-bottom-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background: rgba(38, 169, 224, 0.2);
  border-bottom-color: #26A9E0;
}

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

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

.page-sports__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  line-height: 1;
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #c0c0c0;
  line-height: 1.7;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-sports__faq-item[open] .page-sports__faq-answer {
  max-height: 2000px; /* Large enough to contain content */
  padding-top: 15px;
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding-bottom: 80px;
  background-color: #121212;
}

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

/* General Image Styles */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__hero-image {
    max-height: 500px;
  }
  .page-sports__main-title {
    font-size: clamp(32px, 4.5vw, 48px);
  }
  .page-sports__description {
    font-size: 18px;
  }
  .page-sports__section-title {
    font-size: clamp(26px, 3.8vw, 38px);
  }
  .page-sports__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-sports__hero-image {
    max-height: 350px;
    margin-bottom: 20px;
  }
  .page-sports__main-title {
    font-size: clamp(28px, 6vw, 40px);
  }
  .page-sports__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__container {
    padding: 0 15px;
  }

  .page-sports__section-title {
    font-size: clamp(24px, 5vw, 32px);
    margin-bottom: 30px;
  }

  .page-sports__why-choose-section,
  .page-sports__betting-types-section,
  .page-sports__how-to-bet-section,
  .page-sports__top-leagues-section,
  .page-sports__features-highlight-section,
  .page-sports__promotions-section,
  .page-sports__support-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section {
    padding: 50px 0;
  }

  .page-sports__feature-card,
  .page-sports__betting-card,
  .page-sports__step-card,
  .page-sports__league-card,
  .page-sports__highlight-card,
  .page-sports__promo-card,
  .page-sports__contact-info,
  .page-sports__faq-item {
    padding: 20px;
  }

  .page-sports__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-sports__promo-card .page-sports__btn-primary {
    width: calc(100% - 40px) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }

  .page-sports__cta-final .page-sports__btn-primary {
    width: calc(100% - 30px) !important;
    margin-left: 15px !important;
    margin-right: 15px !important;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-sports__faq-answer {
    padding: 0 20px 15px;
    font-size: 15px;
  }

  .page-sports__contact-info p,
  .page-sports__contact-info ul {
    font-size: 16px;
  }

  /* Ensure all containers containing images/videos/buttons are responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__why-choose-section,
  .page-sports__betting-types-section,
  .page-sports__how-to-bet-section,
  .page-sports__top-leagues-section,
  .page-sports__features-highlight-section,
  .page-sports__promotions-section,
  .page-sports__support-section,
  .page-sports__faq-section,
  .page-sports__conclusion-section,
  .page-sports__features-grid,
  .page-sports__betting-grid,
  .page-sports__steps-grid,
  .page-sports__league-grid,
  .page-sports__highlight-grid,
  .page-sports__promo-cards,
  .page-sports__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}

@media (max-width: 480px) {
  .page-sports__hero-image {
    max-height: 250px;
  }
  .page-sports__main-title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .page-sports__description {
    font-size: 15px;
  }
  .page-sports__cta-buttons {
    gap: 10px;
  }
  .page-sports__section-title {
    font-size: clamp(22px, 6vw, 28px);
  }
  .page-sports__feature-card,
  .page-sports__betting-card,
  .page-sports__step-card,
  .page-sports__league-card,
  .page-sports__highlight-card,
  .page-sports__promo-card {
    padding: 15px;
  }
  .page-sports__card-title {
    font-size: 20px;
  }
  .page-sports__feature-card p,
  .page-sports__betting-card p,
  .page-sports__step-card p,
  .page-sports__league-card li,
  .page-sports__highlight-card p,
  .page-sports__promo-card p {
    font-size: 14px;
  }
  .page-sports__step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 15px;
  }
  .page-sports__promo-image {
    height: 150px;
  }
}