/* style/sports.css */

/* Base styles for the sports page */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff;
}

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

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

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

.page-sports__section-title,
.page-sports__main-title,
.page-sports__cta-title {
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-sports__section-title {
  font-size: clamp(24px, 4vw, 36px);
  color: inherit;
}

.page-sports__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: #ffffff;
}

.page-sports__description {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

.page-sports__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a8cc7;
}

.page-sports__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 8px 15px;
  font-size: 14px;
}

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

/* Hero Section */
.page-sports__hero-section {
  padding: 10px 0 60px 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}

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

.page-sports__feature-card,
.page-sports__promo-card,
.page-sports__step-card,
.page-sports__bet-type-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-sports__feature-card:hover,
.page-sports__promo-card:hover,
.page-sports__step-card:hover,
.page-sports__bet-type-card:hover {
  transform: translateY(-5px);
}

.page-sports__feature-image,
.page-sports__promo-image,
.page-sports__app-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-sports__feature-description,
.page-sports__promo-description,
.page-sports__step-description,
.page-sports__bet-type-description {
  font-size: 15px;
  color: #555555;
  flex-grow: 1;
}

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

/* Betting Types */
.page-sports__betting-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-sports__bet-type-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__bet-type-title {
  color: #ffffff;
}

.page-sports__bet-type-description {
  color: #f0f0f0;
}

/* App Section */
.page-sports__app-section {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__app-image {
  flex: 1 1 300px;
  max-width: 500px;
}

.page-sports__app-content {
  flex: 2 1 400px;
}

.page-sports__app-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__app-description {
  font-size: 16px;
  margin-bottom: 25px;
  color: #555555;
}

.page-sports__app-benefits {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-sports__app-benefits li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%2326A9E0"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #555555;
}

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

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

.page-sports__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  content: '−';
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  line-height: 1.8;
  color: #f0f0f0;
}

/* CTA Banner */
.page-sports__cta-banner {
  padding: 80px 20px;
  text-align: center;
}

.page-sports__cta-container {
  max-width: 900px;
}

.page-sports__cta-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #ffffff;
  margin-bottom: 25px;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-sports__hero-image-wrapper {
    max-height: 500px;
  }

  .page-sports__app-section {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__app-image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-sports__app-benefits {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding-top: 10px !important; /* body has padding-top, only small decorative padding here */
    padding-bottom: 40px;
  }

  .page-sports__hero-image-wrapper {
    max-height: 300px;
  }

  .page-sports__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-sports__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box !important;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__section-title,
  .page-sports__cta-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 20px;
  }

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

  .page-sports__features-grid,
  .page-sports__promotions-grid,
  .page-sports__steps-grid,
  .page-sports__betting-types {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__feature-card,
  .page-sports__promo-card,
  .page-sports__step-card,
  .page-sports__bet-type-card {
    padding: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .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__app-section,
  .page-sports__cta-banner,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

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

  .page-sports__cta-banner {
    padding: 60px 15px;
  }

  .page-sports__app-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}