/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #0a0a0a, so text is white */
  background-color: transparent; /* Body background handled by shared.css */
}

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

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

.page-sports__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff;
}

.page-sports__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for cards */
  color: #ffffff;
}

.page-sports__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #26A9E0; /* Brand color for titles */
  font-weight: bold;
}

.page-sports__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-sports__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
}

.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.4); /* Darken image for text readability */
}

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

.page-sports__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff; /* White text on dark background */
}

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

.page-sports__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

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

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

.page-sports__video-wrapper {
  max-width: 800px;
  margin: 40px auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background-color: #000;
}

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

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

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

.page-sports__card {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

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

.page-sports__card-text {
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__card .page-sports__btn-primary {
  margin-top: auto;
  width: auto; /* Override max-width for card buttons if needed */
}

/* Sicbo Rules Section */
.page-sports__flex-container {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

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

.page-sports__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-sports__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.page-sports__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #e0e0e0;
}

.page-sports__list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-sports__list strong {
  color: #26A9E0;
}

/* Why Choose Us Section */
.page-sports__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-sports__feature-item {
  background-color: #1a1a1a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  height: 100%;
  box-sizing: border-box;
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-sports__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-sports__cta-bottom {
  margin-top: 50px;
}

/* Registration Guide Section */
.page-sports__step-list {
  list-style-type: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__step-list li {
  background-color: #1a1a1a;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-sports__step-list li strong {
  color: #26A9E0;
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #26A9E0; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-sports__faq-question h3 {
  margin: 0;
  color: #ffffff;
  font-size: 1em; /* Adjust to fit parent font size */
}

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.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: #e0e0e0;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

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

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
}

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

.page-sports__cta-final-section .page-sports__text-block {
  color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__text-block {
    font-size: 1em;
  }
  .page-sports__flex-container {
    flex-direction: column;
  }
  .page-sports__image-block {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    min-height: 60vh;
  }
  .page-sports__hero-title {
    font-size: 2.5em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section {
    padding: 40px 0;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__sub-title {
    font-size: 1.5em;
  }
  .page-sports__text-block {
    font-size: 0.95em;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
  }
  .page-sports__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-sports__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-sports__feature-grid {
    grid-template-columns: 1fr;
  }
  .page-sports__container,
  .page-sports__card,
  .page-sports__section,
  .page-sports__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .page-sports__faq-list,
  .page-sports__step-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-sports img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for mobile if needed */
  }
  .page-sports__cta-group {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.5em;
  }
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-sports__faq-answer {
    padding: 15px;
  }
}