/* style/sports.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm padding-top cho các section đầu tiên. */

:root {
  --k9club-primary: #11A84E;
  --k9club-secondary: #22C768;
  --k9club-card-bg: #11271B;
  --k9club-background: #08160F;
  --k9club-text-main: #F2FFF6;
  --k9club-text-secondary: #A7D9B8;
  --k9club-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --k9club-border: #2E7A4E;
  --k9club-glow: #57E38D;
  --k9club-gold: #F2C14E;
  --k9club-divider: #1E3A2A;
  --k9club-deep-green: #0A4B2C;
}

.page-sports {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--k9club-text-main); /* Default text color for the page */
  background-color: var(--k9club-background); /* Default background color for the page */
}

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

.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--k9club-text-main);
  text-shadow: 0 0 8px rgba(87, 227, 141, 0.5); /* Glow effect */
}

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

.page-sports__text-main {
  color: var(--k9club-text-main);
}

.page-sports__text-secondary {
  color: var(--k9club-text-secondary);
}

/* Hero Section */
.page-sports__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small decorative top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: var(--k9club-background);
}

.page-sports__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  text-align: center;
  margin-top: -150px; /* Adjust to pull content up over the image slightly without overlapping text */
  background: linear-gradient(0deg, var(--k9club-background) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0) 100%);
  padding-top: 150px; /* Counteract negative margin to keep text readable */
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--k9club-gold);
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.8);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-sports__hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.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;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-sports__btn-primary {
  background: var(--k9club-button-gradient);
  color: var(--k9club-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-sports__btn-secondary {
  background: transparent;
  color: var(--k9club-glow);
  border: 2px solid var(--k9club-glow);
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.3);
}

.page-sports__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(87, 227, 141, 0.5);
}

.page-sports__btn-small {
  padding: 10px 20px;
  font-size: 1rem;
}

/* Video Section */
.page-sports__video-wrapper {
  margin: 40px auto;
  max-width: 1200px;
  width: 100%; /* Desktop width */
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sports__video-link {
  display: block;
  line-height: 0;
}

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

/* Image Styling */
.page-sports__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-sports__image--centered {
  margin-left: auto;
  margin-right: auto;
}

/* Card Backgrounds */
.page-sports__card-bg {
  background-color: var(--k9club-card-bg);
  padding: 60px 0;
}

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

.page-sports__sport-card {
  background-color: var(--k9club-background);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--k9club-border);
  transition: transform 0.3s ease;
}

.page-sports__sport-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-sports__card-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--k9club-gold);
}

.page-sports__card-description {
  font-size: 1rem;
}

/* Feature List */
.page-sports__feature-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

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

.page-sports__list-item {
  background-color: var(--k9club-card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-left: 4px solid var(--k9club-primary);
  font-size: 1.1rem;
}

.page-sports__list-item strong {
  color: var(--k9club-gold);
}

/* Guide Steps */
.page-sports__guide-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-sports__guide-step {
  background-color: var(--k9club-card-bg);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-left: 5px solid var(--k9club-gold);
}

.page-sports__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--k9club-gold);
}

.page-sports__step-description {
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.page-sports__promotion-card {
  background-color: var(--k9club-background);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--k9club-border);
  text-align: center;
}

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

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

/* FAQ Section */
.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-sports__faq-item {
  background-color: var(--k9club-background);
  border: 1px solid var(--k9club-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--k9club-text-main);
  background-color: var(--k9club-card-bg);
  border-bottom: 1px solid var(--k9club-divider);
  transition: background-color 0.3s ease;
  list-style: none; /* For <details> summary */
}

.page-sports__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> summary */
}

.page-sports__faq-item[open] .page-sports__faq-question {
  background-color: var(--k9club-deep-green);
  border-bottom: 1px solid var(--k9club-primary);
}

.page-sports__faq-qtext {
  flex-grow: 1;
  color: var(--k9club-text-main);
}

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--k9club-glow);
}

.page-sports__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: var(--k9club-text-secondary);
  background-color: var(--k9club-background);
}

/* Conclusion Section */
.page-sports__conclusion-section {
  padding: 80px 0;
  background-color: var(--k9club-deep-green);
}

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

  .page-sports__container {
    padding: 0 15px;
  }

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

  .page-sports__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

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

  .page-sports__hero-content {
    margin-top: -100px;
    padding-top: 100px;
  }

  /* Images, Videos, Buttons must be responsive */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important;
  }

  .page-sports__video-wrapper,
  .page-sports__video-link,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

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

  .page-sports__grid-layout,
  .page-sports__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__list-item,
  .page-sports__guide-step,
  .page-sports__sport-card,
  .page-sports__promotion-card,
  .page-sports__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__video-section {
    padding-top: 10px !important; /* Small decorative top padding for mobile */
  }

  .page-sports__hero-image {
    filter: brightness(0.5) !important; /* Slightly darker on mobile for contrast */
  }
}