/* style/sports.css */

/* Body background is #FFFFFF (light), so text should be dark */
.page-sports {
  color: #333333;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensure consistency with body background */
}

.page-sports__section {
  padding: 60px 20px;
}

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

/* 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 */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-sports__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly faded background image */
  display: block;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-sports__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-sports__description a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-sports__cta-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0; /* Primary color for section titles */
}

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

/* Text Blocks */
.page-sports__text-block {
  margin-bottom: 20px;
  font-size: 1.05rem;
  text-align: justify;
}

.page-sports__text-block a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-sports__dark-bg .page-sports__text-block {
  color: #f0f0f0;
}

.page-sports__dark-bg .page-sports__text-block a {
  color: #FFFFFF;
}

/* Cards */
.page-sports__grid-3-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

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

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

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

.page-sports__card-text {
  font-size: 0.95rem;
  padding: 0 15px;
  color: #555555;
}

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

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

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

.page-sports__feature-description {
  font-size: 1rem;
  color: #555555;
}

.page-sports__feature-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-top: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Guide List */
.page-sports__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-sports__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  padding-left: 80px;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-sports__guide-item::before {
  counter-increment: guide-step;
  content: "Bước " counter(guide-step);
  position: absolute;
  left: 30px;
  top: 30px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.page-sports__guide-step-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__guide-step-description {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

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

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

.page-sports__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 15px 10px;
  color: #26A9E0;
}

.page-sports__promo-description {
  font-size: 0.95rem;
  padding: 0 15px;
  color: #555555;
  margin-bottom: 20px;
}

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

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

.page-sports__reason-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #f0f0f0;
}

.page-sports__reason-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__reason-description {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* 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;
  color: #333333;
}

.page-sports__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  background-color: #f9f9f9;
  outline: none;
}

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

.page-sports__faq-qtext {
  flex-grow: 1;
}

.page-sports__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-sports__faq-answer a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Final CTA Section */
.page-sports__cta-final {
  text-align: center;
  padding: 80px 20px;
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-sports__cta-final-content {
  max-width: 900px;
}

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

.page-sports__cta-final .page-sports__description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #ffffff;
}

.page-sports__cta-final .page-sports__description a {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-sports__btn-large {
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

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

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

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

.page-sports__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1f8ec4;
  border-color: #1f8ec4;
}

/* Special Login Button Color */
.page-sports__cta-buttons .page-sports__btn-secondary[href*="redirect"] {
  background-color: #EA7C07;
  color: #FFFFFF;
  border-color: #EA7C07;
}

.page-sports__cta-buttons .page-sports__btn-secondary[href*="redirect"]:hover {
  background-color: #d86e00;
  border-color: #d86e00;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__section-title {
    font-size: 2rem;
  }
  .page-sports__hero-content {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-sports__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-sports__description {
    font-size: 1rem;
  }

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

  .page-sports__btn-primary,
  .page-sports__btn-secondary,
  .page-sports a[class*="button"],
  .page-sports a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-sports__card-image,
  .page-sports__promo-image {
    height: 180px;
  }

  .page-sports__card-title,
  .page-sports__promo-title {
    font-size: 1.3rem;
  }

  .page-sports__feature-title {
    font-size: 1.4rem;
  }

  .page-sports__guide-item {
    padding-left: 60px;
  }

  .page-sports__guide-item::before {
    left: 15px;
    top: 25px;
  }

  .page-sports__guide-step-title {
    font-size: 1.2rem;
  }

  .page-sports__faq-item summary {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-sports__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-sports__cta-final {
    padding: 60px 15px;
  }

  /* Ensure all images are responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all containers for images/videos/buttons are responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-image-wrapper,
  .page-sports__cta-buttons,
  .page-sports__button-group,
  .page-sports__btn-container,
  .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; /* Prevent content overflow */
  }
}

@media (max-width: 480px) {
  .page-sports__section-title {
    font-size: 1.6rem;
  }
  .page-sports__card-title,
  .page-sports__promo-title {
    font-size: 1.2rem;
  }
}

/* Ensure content area images are not smaller than 200px (desktop) */
.page-sports__card-image,
.page-sports__feature-image,
.page-sports__promo-image {
  min-width: 200px;
  min-height: 200px; /* Ensure images are not tiny, even if object-fit is used */
}

/* Specific min-size for content area images, overriding any smaller defaults */
.page-sports__grid-3-col img,
.page-sports__features-grid img,
.page-sports__promotions-grid img {
  width: auto; /* Allow natural width */
  height: auto; /* Allow natural height */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

@media (min-width: 769px) {
  .page-sports__grid-3-col img,
  .page-sports__features-grid img,
  .page-sports__promotions-grid img {
    width: 100%; /* Fill container on larger screens */
    height: 250px; /* Consistent height for cards on desktop */
    min-width: 200px;
    min-height: 200px;
  }
  .page-sports__feature-image {
    height: 300px;
  }
  .page-sports__promo-image {
    height: 200px;
  }
}