/* style/sports.css */

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

/* Section spacing and general layout */
.page-sports__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

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

.page-sports__section-title--white {
  color: #ffffff;
}

.page-sports__text-block {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__text-block--white {
  color: #ffffff;
}

.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

.page-sports__btn-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-sports__btn-link:hover {
  text-decoration: underline;
}

.page-sports__button-group {
  text-align: center;
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-sports__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__text-link:hover {
  color: #1a7fb8;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  text-align: center;
  min-height: 500px;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 40px 20px;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  margin: 20px;
}

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

.page-sports__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  line-height: 1.4;
  color: #f0f0f0;
}

/* Dark background sections */
.page-sports__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-sports__grid-container--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.page-sports__card:hover {
  transform: translateY(-10px);
}

.page-sports__card--dark-bg {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-sports__card--dark-bg .page-sports__card-title {
  color: #ffffff;
}

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

.page-sports__card-text {
  font-size: 15px;
  line-height: 1.5;
}

/* Sports Types Section */
.page-sports__sport-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
}

.page-sports__sport-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__sport-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin: 15px 10px 5px;
}

.page-sports__sport-description {
  font-size: 14px;
  color: #555555;
  padding: 0 15px 20px;
}

/* Guide Section */
.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-item {
  text-align: center;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background-color: #f9f9f9;
}

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

.page-sports__step-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__step-description {
  font-size: 15px;
  color: #555555;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
}

.page-sports__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-sports__promo-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #ffffff;
}

.page-sports__promo-description {
  font-size: 15px;
  padding: 0 15px 20px;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7ff;
  border-bottom: 1px solid #e0e0e0;
}

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

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

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

.page-sports__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #26A9E0;
  margin-left: 15px;
}

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

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__content-area {
    padding: 30px 15px;
  }

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

  .page-sports__hero-description {
    font-size: clamp(16px, 2vw, 20px);
  }

  .page-sports__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }

  .page-sports__grid-container,
  .page-sports__guide-steps,
  .page-sports__promo-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-sports {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-sports__hero-section {
    min-height: 400px;
    padding: 20px;
  }

  .page-sports__hero-content {
    padding: 30px 20px;
    margin: 10px;
  }

  .page-sports__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }

  .page-sports__hero-description {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 20px;
  }

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

  .page-sports__content-area {
    padding: 20px 15px;
  }

  .page-sports__dark-section {
    padding: 40px 15px;
  }

  .page-sports__grid-container,
  .page-sports__guide-steps,
  .page-sports__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__grid-container--3-cols {
    grid-template-columns: 1fr;
  }

  .page-sports__card,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__step-item,
  .page-sports__faq-item {
    padding: 20px 15px;
  }

  .page-sports__sport-image,
  .page-sports__promo-image {
    height: 180px;
  }

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

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

  /* Mobile specific overrides for images */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__hero-image-wrapper,
  .page-sports__content-area,
  .page-sports__dark-section,
  .page-sports__grid-container,
  .page-sports__sport-card,
  .page-sports__promo-card,
  .page-sports__guide-steps,
  .page-sports__faq-list,
  .page-sports__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__advantages-section,
  .page-sports__sports-types-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__responsible-gambling-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Mobile specific overrides for buttons */
  .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__button-group {
    flex-direction: column !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-content {
    padding: 20px 15px;
  }

  .page-sports__main-title {
    font-size: clamp(22px, 8vw, 30px);
  }

  .page-sports__hero-description {
    font-size: clamp(14px, 4vw, 16px);
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 10px 15px;
    font-size: 15px;
  }

  .page-sports__card-title,
  .page-sports__sport-title,
  .page-sports__step-title,
  .page-sports__promo-title {
    font-size: 18px;
  }
}