/* style/sports.css */

/* Body background is #0a0a0a (dark), so main text color should be #ffffff */
.page-sports {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-sports__dark-bg {
  background-color: #0a0a0a; /* Inherited from body, or explicit dark section */
  color: #ffffff;
}

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

.page-sports__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for titles */
  line-height: 1.2;
}

.page-sports__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  text-align: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-sports__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff; /* White text for hero title */
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-sports__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

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

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
}

.page-sports__intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-sports__intro-image-wrapper {
  text-align: center;
}

.page-sports__intro-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  min-height: 200px; /* Minimum image size */
}

.page-sports__intro-text p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Featured Sports Section */
.page-sports__featured-sports {
  padding: 80px 0;
}

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

.page-sports__sport-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
}

.page-sports__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum image size */
}

.page-sports__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin: 20px 20px 10px;
  color: #26A9E0;
}

.page-sports__card-text {
  font-size: 0.95em;
  margin: 0 20px 20px;
  color: #e0e0e0;
}

.page-sports__card-link {
  display: inline-block;
  margin: 0 20px 20px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

.page-sports__card-link:hover {
  text-decoration: underline;
}

/* Features Section */
.page-sports__features-section {
  padding: 80px 0;
}

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

.page-sports__feature-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__feature-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

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

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
}

.page-sports__guide-steps ol {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
}

.page-sports__guide-steps li {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-sports__guide-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.2em;
  flex-shrink: 0;
}

.page-sports__guide-steps h3 {
  font-size: 1.6em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-sports__guide-steps p {
  color: #f0f0f0;
}

.page-sports__guide-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__guide-cta {
  margin-top: 40px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
}

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

.page-sports__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-sports__promo-card:hover {
  transform: translateY(-5px);
}

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

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

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

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  font-weight: 600;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #26A9E0;
  position: relative;
  user-select: none;
}

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #e0e0e0;
}

/* Why HK79 Section */
.page-sports__why-hk79-section {
  padding: 80px 0;
}

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

.page-sports__why-hk79-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-sports__why-hk79-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  min-height: 200px; /* Minimum image size */
}

.page-sports__why-hk79-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-sports__why-hk79-text {
  font-size: 1em;
  color: #e0e0e0;
}

.page-sports__contact-cta {
  margin-top: 40px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
  .page-sports__intro-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-sports__guide-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .page-sports__guide-steps ol {
    grid-column: 1 / 2;
  }
  .page-sports__guide-image {
    grid-column: 2 / 3;
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .page-sports__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-sports__section-description {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-sports__hero-title {
    font-size: 2em;
  }

  .page-sports__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__hero-cta-buttons,
  .page-sports__guide-cta,
  .page-sports__promotions-cta,
  .page-sports__contact-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-sports__intro-section,
  .page-sports__featured-sports,
  .page-sports__features-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__faq-section,
  .page-sports__why-hk79-section {
    padding: 50px 0;
  }

  .page-sports__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-sports__intro-image,
  .page-sports__card-image,
  .page-sports__feature-image,
  .page-sports__guide-image,
  .page-sports__promo-card .page-sports__card-image,
  .page-sports__why-hk79-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-sports__sport-card,
  .page-sports__feature-item,
  .page-sports__promo-card,
  .page-sports__why-hk79-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__guide-steps li {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-sports__guide-steps li::before {
    margin-bottom: 10px;
  }
}