/* 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: var(--dark-bg-1); /* Inherited from shared.css, will use light text on this dark background */
}

/* Sections */
.page-sports__section {
  padding: 60px 20px;
  text-align: center;
}

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

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

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, not var(--header-offset) */
  overflow: hidden;
  background-color: #017439;
  color: #ffffff;
}

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

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

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

.page-sports__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  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;
}

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

.page-sports__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

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

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

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

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

/* General Content */
.page-sports__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  margin-bottom: 30px;
  font-weight: 700;
  color: inherit;
}

.page-sports__text-block {
  font-size: 1.05em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-sports__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 40px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-sports__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #ffffff;
}

.page-sports__light-bg .page-sports__feature-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__feature-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
  color: inherit;
}

.page-sports__feature-text {
  font-size: 0.95em;
  color: inherit;
}

/* Sport List */
.page-sports__sport-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__sport-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-sports__light-bg .page-sports__sport-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-sports__sport-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
  color: inherit;
}

.page-sports__sport-description {
  font-size: 0.9em;
  color: inherit;
}

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-sports__guide-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-sports__guide-item .page-sports__btn-primary {
  margin-top: 20px;
  align-self: flex-start;
}

.page-sports__guide-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
  font-weight: 700;
}

.page-sports__guide-text {
  font-size: 1em;
  color: #555555;
}

/* Evaluation List */
.page-sports__evaluation-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  text-align: left;
}

.page-sports__evaluation-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-sports__light-bg .page-sports__evaluation-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-sports__evaluation-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: 600;
  color: inherit;
}

.page-sports__evaluation-text {
  font-size: 0.95em;
  color: inherit;
}

/* Promotion List */
.page-sports__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__promo-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-sports__dark-bg .page-sports__promo-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-sports__promo-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  font-weight: 600;
  color: #017439;
}

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

.page-sports__promo-text {
  font-size: 0.95em;
  color: #555555;
}

.page-sports__dark-bg .page-sports__promo-text {
  color: #f0f0f0;
}

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

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

.page-sports__light-bg .page-sports__faq-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: inherit;
  list-style: none;
}

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

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

.page-sports__faq-answer {
  padding: 0 25px 18px 25px;
  font-size: 1em;
  color: inherit;
}

.page-sports__faq-answer p {
  margin: 0;
  color: inherit;
}

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

  .page-sports__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-sports__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-sports__description {
    font-size: 1em;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
  }

  .page-sports__section {
    padding: 40px 15px;
  }

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

  .page-sports__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
  }

  .page-sports__text-block {
    font-size: 0.95em;
  }

  .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__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  .page-sports__guide-item {
    padding: 20px;
  }

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

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