/* style/sports.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --button-register-bg: #C30808;
  --button-login-bg: #C30808;
  --button-text-yellow: #FFFF00;
  --border-color: #e0e0e0;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Body background is white, so default text is dark */
}

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

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

.page-sports__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 40px;
  color: var(--primary-color);
  text-align: center;
}

.page-sports__sub-title {
  font-size: 24px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: left;
}

.page-sports__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-color-dark);
}

.page-sports__list {
  list-style: disc inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-sports__list-item {
  font-size: 17px;
  margin-bottom: 10px;
  color: var(--text-color-dark);
}

.page-sports__numbered-list {
  list-style: decimal inside;
  text-align: left;
  margin-bottom: 20px;
  padding-left: 20px;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  /* Fixed Header Offset */
  padding-top: var(--header-offset, 120px);
}

.page-sports__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-sports__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-sports__hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-color-light); /* Dark background in hero, so light text */
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-color-light); /* Dark background in hero, so light text */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-sports__cta-button.page-sports__btn-primary {
  background: var(--primary-color);
  color: var(--text-color-light);
}

.page-sports__cta-button.page-sports__btn-primary:hover {
  background: #005a2d; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-sports__cta-button.page-sports__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-sports__cta-button.page-sports__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Color Contrast */
.page-sports__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-sports__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
}

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

.page-sports__grid-item {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-sports__grid-item:hover {
  transform: translateY(-5px);
}

.page-sports__grid-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-sports__grid-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-sports__grid-description {
  font-size: 16px;
  color: var(--text-color-dark);
  text-align: justify;
}

/* Content with Image */
.page-sports__content-with-image {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-sports__image-content {
  flex: 1;
}

.page-sports__image-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

/* Button Group */
.page-sports__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-sports__button-group--center {
  justify-content: center;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  text-align: left;
}

.page-sports__faq-answer p {
  margin: 0;
  color: var(--text-color-dark);
  font-size: 16px;
}

.page-sports__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-sports__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-sports__faq-question:active {
  background: #eeeeee;
}

.page-sports__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--primary-color);
  text-align: left;
}

.page-sports__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  color: var(--text-color-dark);
  transform: rotate(45deg); /* Change from '-' to 'x' visually */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 40px;
  }

  .page-sports__hero-description {
    font-size: 18px;
  }

  .page-sports__section-title {
    font-size: 32px;
  }

  .page-sports__sub-title {
    font-size: 22px;
  }

  .page-sports__text-block, .page-sports__list-item, .page-sports__grid-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-sports__section {
    padding: 40px 15px;
  }

  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
}