/* style/sports.css */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

.page-sports__dark-bg {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
}

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

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

.page-sports__container--center-text {
  text-align: center;
}

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

.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding for content */
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 675px; /* Max height for 16:9 ratio with 1200px width */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and text */
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-sports__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-sports__cta-buttons--center {
  justify-content: center;
}

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

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

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

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

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
}

.page-sports__dark-bg .page-sports__section-title,
.page-sports__dark-bg .page-sports__description {
  color: #ffffff;
}

.page-sports__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-sports__text-block {
  flex: 1;
}

.page-sports__image-block {
  flex: 1;
  min-width: 300px; /* Ensure image block has a minimum width */
}

.page-sports__image-full {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

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

.page-sports__sport-card {
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-sports__sport-card .page-sports__card-title {
  color: #26A9E0;
  font-size: 1.5em;
  margin-bottom: 15px;
}

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

.page-sports__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
}

.page-sports__feature-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-sports__feature-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-sports__dark-bg .page-sports__feature-title {
  color: #ffffff;
}

.page-sports__promotions-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 800px;
}

.page-sports__promotions-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
}

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

.page-sports__guide-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: left;
}

.page-sports__guide-card .page-sports__card-title {
  color: #26A9E0;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.page-sports__guide-card ol {
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-sports__guide-card ol li {
  margin-bottom: 10px;
  color: #333333;
}

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

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

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

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

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

.page-sports__faq-answer {
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-section {
    min-height: 400px;
  }
  .page-sports__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__content-wrapper {
    flex-direction: column;
  }
}

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

  .page-sports__hero-section {
    padding: 10px 15px 40px;
    min-height: 350px;
  }

  .page-sports__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    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__section {
    padding: 40px 0;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__content-wrapper {
    gap: 20px;
  }

  .page-sports__image-full,
  .page-sports__feature-image,
  .page-sports__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__container,
  .page-sports__section,
  .page-sports__sport-grid,
  .page-sports__feature-grid,
  .page-sports__guide-steps,
  .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;
  }

  .page-sports__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-sports__faq-answer {
    padding: 15px;
  }

  .page-sports__promotions-item {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-section {
    min-height: 300px;
  }
  .page-sports__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__cta-buttons {
    gap: 10px;
  }
}