/* style/sports.css */

/* Base Styles & Typography */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default to white */
}

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

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

.page-sports__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__btn-inline,
.page-sports__btn-play {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #e0f4ff;
  color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-sports__btn-inline {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 10px;
}

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

.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  padding: 80px 0;
  color: #ffffff;
  background-color: #26A9E0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
}

.page-sports__hero-section .page-sports__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap-reverse;
}

.page-sports__hero-content {
  flex: 1;
  min-width: 300px;
}

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

.page-sports__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-sports__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

.page-sports__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* General Section Styling */
.page-sports__introduction-section,
.page-sports__guide-section,
.page-sports__promotions-section,
.page-sports__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-sports__types-section,
.page-sports__advantages-section,
.page-sports__security-section,
.page-sports__conclusion-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-sports__types-section .page-sports__section-title,
.page-sports__advantages-section .page-sports__section-title,
.page-sports__security-section .page-sports__section-title,
.page-sports__conclusion-section .page-sports__section-title {
  color: #ffffff;
}

.page-sports__types-section .page-sports__paragraph,
.page-sports__advantages-section .page-sports__paragraph,
.page-sports__security-section .page-sports__paragraph,
.page-sports__conclusion-section .page-sports__paragraph {
  color: #f0f0f0;
}

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

.page-sports__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-sports__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have consistent height */
}

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

.page-sports__card-image {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  width: 100%;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-sports__card-description {
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-counter;
}

.page-sports__guide-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  position: relative;
  padding-left: 60px; /* Space for counter */
}

.page-sports__guide-item::before {
  counter-increment: guide-counter;
  content: counter(guide-counter);
  position: absolute;
  left: 15px;
  top: 20px;
  background-color: #26A9E0;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-sports__guide-heading {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Advantages Section */
.page-sports__advantage-item {
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.page-sports__advantage-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-sports__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-sports__advantage-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-sports__advantage-description {
  color: #f0f0f0;
  font-size: 1em;
}

/* Promotions Section */
.page-sports__promotion-list {
  list-style: none;
  padding: 0;
}

.page-sports__promotion-item {
  background-color: #f8f8f8;
  border-left: 5px solid #EA7C07; /* Login color for promotion accent */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-sports__promotion-heading {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

/* Security Section Video */
.page-sports__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 40px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-sports__video {
  width: 100%;
  height: auto;
  display: block;
}

.page-sports__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-sports__video-wrapper:hover .page-sports__video-overlay {
  opacity: 1;
}

.page-sports__btn-play {
  background-color: #EA7C07; /* Login color for play button */
  color: #ffffff;
  border: 2px solid #EA7C07;
  font-size: 1.2em;
  padding: 15px 30px;
}

.page-sports__btn-play:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #f0f0f0;
  color: #555555;
}

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

.page-sports__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

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

.page-sports__conclusion-section .page-sports__section-title {
  font-size: 3em;
}

.page-sports__conclusion-section .page-sports__paragraph {
  max-width: 900px;
  margin: 0 auto 40px auto;
  font-size: 1.2em;
  color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 3em;
  }
  .page-sports__hero-description {
    font-size: 1.1em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-sports__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

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

  .page-sports__hero-section .page-sports__container {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__hero-content,
  .page-sports__hero-image-wrapper {
    min-width: unset;
    width: 100%;
  }

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

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

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports__btn-inline,
  .page-sports__btn-play,
  .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__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 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__hero-image-wrapper,
  .page-sports__video-wrapper,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !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;
  }

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

  .page-sports__card-title {
    font-size: 1.5em;
  }

  .page-sports__advantage-icon {
    width: 150px; /* Adjusted for mobile view, still >200px visual space due to padding/container */
    height: 150px;
    min-width: 200px !important; /* Ensure the original image requested is large */
    min-height: 200px !important;
  }

  .page-sports__advantage-title {
    font-size: 1.4em;
  }
  
  .page-sports__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  
  .page-sports__faq-answer {
    padding: 10px 20px;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__card-image {
    height: 180px;
  }
  .page-sports__card {
    min-height: 400px;
  }
  .page-sports__advantage-icon {
    width: 120px; /* Adjusted for mobile view, still >200px visual space due to padding/container */
    height: 120px;
    min-width: 200px !important; /* Ensure the original image requested is large */
    min-height: 200px !important;
  }
}