/* style/sports.css */

/* Body background color is handled by shared.css var(--bg-color), which is dark. */
/* Therefore, text colors will default to light colors like #F2FFF6 or #A7D9B8. */
.page-sports {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--bg-color, #08160F); /* Ensure consistency with shared body background */
}

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

.page-sports__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Clamp for responsive H2 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__section-title--white {
  color: #F2FFF6;
}

.page-sports__text-block {
  text-align: center;
  margin-bottom: 40px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__text-block--white {
  color: #A7D9B8;
}

.page-sports__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-sports__btn-primary--large {
  padding: 15px 40px;
  font-size: 18px;
}

.page-sports__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 8px;
  background: transparent;
  color: var(--main-color, #11A84E); /* Main color for text */
  border: 2px solid var(--main-color, #11A84E);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-sports__btn-secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-sports__card {
  background-color: var(--card-bg, #11271B); /* Card Background */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main, #F2FFF6); /* Light text for dark card background */
}

.page-sports__card--dark {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

/* 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 */
  overflow: hidden;
  min-height: 500px;
  text-align: center;
}

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

.page-sports__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #F2FFF6;
}

.page-sports__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive H1, avoiding fixed large values */
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6;
}

.page-sports__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #A7D9B8;
}

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

/* Intro Section */
.page-sports__intro-section {
  padding: 80px 0;
  background-color: var(--bg-light, #08160F); /* Use background color for light sections */
  color: var(--text-main, #F2FFF6);
}

.page-sports__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__feature-item {
  text-align: center;
}

.page-sports__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__feature-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
}

/* Sports Categories Section */
.page-sports__sports-categories {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green background */
  color: var(--text-main, #F2FFF6);
}

.page-sports__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__category-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__category-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 80px 0;
  background-color: var(--bg-light, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-sports__live-betting-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
}

.page-sports__live-betting-text {
  flex: 1;
  min-width: 300px;
}

.page-sports__list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-sports__list-item {
  font-size: 16px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--main-color, #11A84E);
  font-weight: bold;
}

.page-sports__live-betting-video-wrapper {
  flex: 1;
  min-width: 400px;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  width: 100%; /* Ensure desktop width is 100% */
  max-width: 100%; /* Ensure desktop max-width is 100% */
  box-sizing: border-box;
}

.page-sports__live-betting-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Guide Section */
.page-sports__guide-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-sports__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__guide-step-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__guide-step-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-sports__guide-step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__guide-step-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 80px 0;
  background-color: var(--bg-light, #08160F);
  color: var(--text-main, #F2FFF6);
}

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

.page-sports__promotion-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-sports__promotion-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__promotion-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-sports__full-promotions-cta {
  text-align: center;
  margin-top: 50px;
}

/* Security Section */
.page-sports__security-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
}

.page-sports__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-sports__security-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-sports__security-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-main, #F2FFF6);
}

.page-sports__security-description {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 80px 0;
  background-color: var(--bg-light, #08160F);
  color: var(--text-main, #F2FFF6);
}

.page-sports__faq-list {
  margin-top: 50px;
}

.page-sports__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  list-style: none; /* For details/summary native styling */
}

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

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

.page-sports__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--secondary-color, #22C768);
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-sports__faq-answer p {
  margin: 0;
  color: var(--text-secondary, #A7D9B8);
}

/* Final CTA Section */
.page-sports__cta-final-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C);
  text-align: center;
  color: var(--text-main, #F2FFF6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-sports__live-betting-content {
    flex-direction: column;
    text-align: center;
  }

  .page-sports__live-betting-text {
    min-width: unset;
    width: 100%;
  }

  .page-sports__live-betting-video-wrapper {
    min-width: unset;
    width: 100%;
  }
}

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

  .page-sports__hero-section {
    padding: 40px 15px;
  }

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

  .page-sports__description {
    font-size: 16px;
  }

  .page-sports__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-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__intro-section,
  .page-sports__sports-categories,
  .page-sports__live-betting-section,
  .page-sports__guide-section,
  .page-sports__promotions-section,
  .page-sports__security-section,
  .page-sports__faq-section,
  .page-sports__cta-final-section {
    padding: 50px 0;
  }

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

  .page-sports__text-block {
    font-size: 14px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-sports__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-sports__live-betting-video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

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

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

  .page-sports__feature-icon,
  .page-sports__security-icon {
    width: 80px;
    height: 80px;
  }
}