/* style/sports.css */

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

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

.page-sports__section-title {
  font-size: 2.5rem;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-sports__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

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

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

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  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: #d16b06;
  border-color: #d16b06;
}

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

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

.page-sports__btn-small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-sports__btn-large {
  padding: 15px 30px;
  font-size: 1.2rem;
}

/* Hero Section */
.page-sports__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  position: relative;
  overflow: hidden;
}

.page-sports__hero-content {
  z-index: 1;
  text-align: left;
  max-width: 600px;
  padding: 0 20px;
}

.page-sports__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-sports__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-sports__hero-buttons {
  display: flex;
  gap: 20px;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

/* About Section */
.page-sports__about-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-sports__text-block p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.page-sports__image-block {
  flex: 1;
  text-align: center;
}

.page-sports__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Highlight Section */
.page-sports__highlight-section {
  padding: 80px 0;
}

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

.page-sports__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-sports__feature-card .page-sports__card-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-sports__feature-card p {
  color: #f0f0f0;
  font-size: 1rem;
}

/* Video Section */
.page-sports__video-section {
  padding: 80px 0;
  background-color: #f0f5f9;
  text-align: center;
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-sports__video-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__video-cta {
  margin-top: 30px;
}

/* Guides Section */
.page-sports__guides-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-sports__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__guide-card .page-sports__card-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-sports__guide-card .page-sports__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports__guide-card .page-sports__card-title a:hover {
  text-decoration: underline;
}

.page-sports__guide-card p {
  padding: 0 20px;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  transform: rotate(45deg);
}

.page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 20px;
}

.page-sports__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-sports__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-sports__cta-content {
  max-width: 800px;
}

.page-sports__cta-section .page-sports__section-title,
.page-sports__cta-section .page-sports__section-description {
  color: #ffffff;
}

.page-sports__cta-section .page-sports__btn-primary {
  background-color: #EA7C07;
  border-color: #EA7C07;
}

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

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

  .page-sports__hero-description {
    font-size: 1.1rem;
  }

  .page-sports__section-title {
    font-size: 2rem;
  }

  .page-sports__content-wrapper {
    flex-direction: column;
  }

  .page-sports__image-block {
    margin-top: 30px;
  }

  .page-sports__feature-grid,
  .page-sports__guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Header offset for mobile */
  .page-sports__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    flex-direction: column;
    text-align: center;
  }

  .page-sports__hero-content {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-sports__hero-title {
    font-size: 2.5rem;
  }

  .page-sports__hero-description {
    font-size: 1rem;
  }

  .page-sports__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-sports__hero-buttons .page-sports__btn-primary,
  .page-sports__hero-buttons .page-sports__btn-secondary {
    width: 100%;
  }

  .page-sports__hero-image-wrapper {
    position: relative;
    height: 300px;
    margin-top: 30px;
  }

  .page-sports__section-title {
    font-size: 1.8rem;
  }

  .page-sports__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-sports__about-section,
  .page-sports__highlight-section,
  .page-sports__video-section,
  .page-sports__guides-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 40px 0;
  }

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

  /* Image responsive for mobile */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__content-image,
  .page-sports__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Video responsive for mobile */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  /* Button responsive for mobile */
  .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__hero-buttons,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-sports__hero-buttons {
    flex-direction: column;
  }

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

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

  .page-sports__guide-card .page-sports__card-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2rem;
  }

  .page-sports__hero-description {
    font-size: 0.9rem;
  }

  .page-sports__section-title {
    font-size: 1.5rem;
  }

  .page-sports__section-description {
    font-size: 0.9rem;
  }

  .page-sports__btn-large {
    font-size: 1rem;
    padding: 12px 20px;
  }
}