/* style/sports.css */
.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  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__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff;
  padding: 60px 0;
}

.page-sports__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

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

.page-sports__hero-content {
  flex: 1;
  max-width: 50%;
  padding-right: 40px;
  z-index: 1;
  padding-left: 20px;
}

.page-sports__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

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

.page-sports__hero-image-wrapper {
  flex: 1;
  max-width: 50%;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* CTA Buttons */
.page-sports__cta-buttons {
  display: flex;
  gap: 20px;
  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: bold;
  font-size: 1.1em;
  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: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* Section Titles */
.page-sports__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

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

.page-sports__light-bg .page-sports__section-title {
  color: #333333;
}

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

.page-sports__light-bg .page-sports__text-block {
  color: #555555;
}

/* Grid Layout for Game Types & Guide */
.page-sports__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-sports__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  box-sizing: border-box;
  color: #ffffff;
}

.page-sports__light-bg .page-sports__card {
  background-color: #ffffff;
  color: #333333;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-sports__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-sports__light-bg .page-sports__card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-sports__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-sports__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-sports__card-description {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-sports__card-link {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-sports__card-link:hover {
  color: #1a8bbd;
}

.page-sports__light-bg .page-sports__card-link {
  color: #26A9E0;
}

.page-sports__light-bg .page-sports__card-link:hover {
  color: #1a8bbd;
}

/* Advantages Section */
.page-sports__advantage-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-sports__advantage-item {
  background-color: #f8f8f8;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Video Section */
.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* Promotions Section */
.page-sports__promo-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

.page-sports__promo-cta {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
}

/* FAQ Section */
.page-sports__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
  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;
  color: #555555;
}

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

.page-sports__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Conclusion Section */
.page-sports__conclusion-section .page-sports__text-block {
  margin-bottom: 30px;
}

.page-sports__conclusion-section .page-sports__btn-primary {
  width: fit-content;
  margin: 0 auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__hero-title {
    font-size: 2.8em;
  }
  .page-sports__section-title {
    font-size: 2em;
  }
  .page-sports__hero-content {
    max-width: 60%;
  }
  .page-sports__hero-image-wrapper {
    max-width: 40%;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-sports__hero-content,
  .page-sports__hero-image-wrapper {
    max-width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }
  .page-sports__hero-image-wrapper {
    margin-top: 30px;
    justify-content: center;
  }
  .page-sports__hero-title {
    font-size: 2em;
  }
  .page-sports__hero-description {
    font-size: 1em;
  }
  .page-sports__section-title {
    font-size: 1.8em;
  }
  .page-sports__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    width: 100% !important;
    max-width: 300px !important; /* Constrain buttons slightly */
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-sports__container {
    padding: 0 15px;
  }
  .page-sports__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-sports__advantage-item {
    font-size: 1em;
  }
  .page-sports__video-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-sports__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section has correct padding-top */
  }
  .page-sports__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .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__video-section,
  .page-sports__video-container,
  .page-sports__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: auto !important; /* Allow height to adjust */
  }
  .page-sports__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}

@media (max-width: 480px) {
  .page-sports__hero-title {
    font-size: 1.8em;
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
  .page-sports__btn-primary,
  .page-sports__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }
}