/* style/sports.css */

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

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

.page-sports__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-sports__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-sports p {
  margin-bottom: 15px;
}

.page-sports a {
  color: #26A9E0;
  text-decoration: none;
}

.page-sports a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px;
  background-color: #f5f5f5;
  overflow: hidden;
}

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

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-sports__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  text-align: center;
  color: #333333;
  background-color: #ffffff;
  margin-top: -80px; /* Pull content up slightly over the image, but not on top of it */
  position: relative;
  z-index: 1;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-sports__main-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.1;
}

.page-sports__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555555;
}

.page-sports__hero-cta-buttons {
  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;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.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: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-sports__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
}

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

.page-sports__btn-login:hover {
  background-color: #c46606;
  border-color: #c46606;
}

/* Text with Image Layout */
.page-sports__text-with-image {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}

.page-sports__text-with-image--reversed {
  flex-direction: row-reverse;
}

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

.page-sports__feature-image {
  flex: 0 0 400px;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.page-sports__sport-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-sports__sport-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__sport-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__sport-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
}

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

.page-sports__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-sports__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-sports__promotion-title {
  font-size: 20px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-sports__promotion-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px;
}

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

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-sports__guide-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-sports__guide-item p {
  margin-bottom: 0;
}

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 30px;
}

.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: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-sports__faq-item[open] .page-sports__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

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

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

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

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

.page-sports__faq-answer {
  padding: 20px;
  font-size: 16px;
  color: #555555;
  border-top: none;
}

/* Conclusion */
.page-sports__conclusion {
  text-align: center;
  padding: 60px 20px;
  background-color: #eaf6fa;
  border-radius: 10px;
  margin-top: 40px;
}

.page-sports__conclusion .page-sports__section-title {
  color: #26A9E0;
}

.page-sports__conclusion p {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

/* Global image responsiveness for content area */
.page-sports img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Content area image minimum size (not for shared elements like logo) */
.page-sports__content-area img,
.page-sports__sports-grid img,
.page-sports__promotions-grid img {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-sports__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }

  .page-sports__text-with-image {
    flex-direction: column;
    align-items: center;
  }

  .page-sports__text-with-image--reversed {
    flex-direction: column;
  }

  .page-sports__feature-image {
    flex: none;
    max-width: 100%;
    width: 100%;
  }
}

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

  .page-sports__content-area {
    padding: 20px 15px;
  }

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

  .page-sports__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-sports__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

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

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

  .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: 12px 20px;
  }

  .page-sports__text-with-image {
    gap: 20px;
  }

  .page-sports__feature-image {
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
  }

  .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__sports-grid,
  .page-sports__promotions-grid,
  .page-sports__guide-list,
  .page-sports__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-sports__sport-card,
  .page-sports__promotion-card,
  .page-sports__guide-item,
  .page-sports__faq-item {
    margin-left: 0;
    margin-right: 0;
  }

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

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

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

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(24px, 9vw, 36px);
  }

  .page-sports__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-sports__sub-title {
    font-size: clamp(18px, 5vw, 24px);
  }
}