.page-sports {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --background-dark: #0D0E12;
  --background-card: #17191F;
  --text-light: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;

  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for dark background */
  background-color: var(--background-dark);
  line-height: 1.6;
}

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

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

.page-sports__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  max-width: 1920px; /* Ensure large image fits */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-sports__hero-content {
  z-index: 1;
  max-width: 900px;
}

.page-sports__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.7);
}

.page-sports__description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-sports__btn-primary,
.page-sports__btn-secondary,
.page-sports__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
  transform: translateY(-2px);
}

.page-sports__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 2px 8px rgba(255, 140, 26, 0.2);
}

.page-sports__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 4px 12px rgba(255, 140, 26, 0.4);
  transform: translateY(-2px);
}

/* Section Titles */
.page-sports__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 176, 77, 0.5);
}

.page-sports__text-block {
  font-size: 1.05em;
  color: var(--text-light);
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__light-bg .page-sports__text-block, 
.page-sports__light-bg .page-sports__card-description {
  color: #333333;
}

.page-sports__text-block--center {
  text-align: center;
}

.page-sports__text-block a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-sports__text-block a:hover {
  text-decoration: underline;
}

/* Card Styles */
.page-sports__card {
  background-color: var(--background-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-sports__light-bg .page-sports__card {
  background-color: #ffffff;
  color: #333333;
  border-color: #e0e0e0;
}

.page-sports__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-sports__light-bg .page-sports__card-title {
  color: var(--primary-color);
}

.page-sports__card-description {
  font-size: 0.95em;
  margin-bottom: 20px;
}

/* Intro Section */
.page-sports__intro-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-sports__intro-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Categories Grid */
.page-sports__categories-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

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

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

/* Live Betting Section */
.page-sports__live-betting-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-sports__live-betting-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 30px auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Promotions Section */
.page-sports__promotions-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
}

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

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

/* Why Us Section */
.page-sports__why-us-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

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

.page-sports__feature-icon {
  width: 100%;
  height: 150px; /* Ensure sufficient size, not small icon */
  object-fit: contain; /* Use contain for icons/logos */
  margin-bottom: 15px;
}

/* Video Section */
.page-sports__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--background-dark);
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: var(--background-card);
  border-radius: 10px;
  margin: 30px auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  width: 100%; /* Desktop width */
  max-width: 1000px; /* Max width for video container */
}

.page-sports__video-wrapper .page-sports__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: pointer;
}

.page-sports__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 10px;
}

/* FAQ Section */
.page-sports__faq-section {
  padding: 60px 20px;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-sports__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-sports__faq-item {
  margin-bottom: 15px;
  text-align: left;
  background-color: #f9f9f9;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-sports__faq-item details {
  width: 100%;
}

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

.page-sports__faq-item summary::-webkit-details-marker { /* Hide default marker */
  display: none;
}

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

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

.page-sports__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-sports__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #fefefe;
}

.page-sports__faq-item.active .page-sports__faq-answer {
  max-height: 2000px; /* For JS-controlled div */
  transition: max-height 0.5s ease-out;
}

.page-sports__faq-item:not(.active) .page-sports__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out;
}

.page-sports__faq-item.active .page-sports__faq-toggle {
  content: '−';
}

/* Final CTA Section */
.page-sports__cta-section {
  padding: 60px 20px;
  background-color: var(--background-dark);
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-sports__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-sports__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-sports__hero-section,
  .page-sports__intro-section,
  .page-sports__categories-section,
  .page-sports__live-betting-section,
  .page-sports__promotions-section,
  .page-sports__why-us-section,
  .page-sports__video-section,
  .page-sports__faq-section,
  .page-sports__cta-section {
    padding: 40px 15px;
  }

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

  .page-sports__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-sports__description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-sports__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-sports__text-block,
  .page-sports__card-description,
  .page-sports p,
  .page-sports li {
    font-size: 15px;
    line-height: 1.6;
  }

  /* Images responsiveness */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Video responsiveness */
  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  .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: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-sports__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio */
    height: 0 !important;
  }

  /* Button responsiveness */
  .page-sports__cta-button,
  .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: 12px 20px !important;
    font-size: 1em !important;
  }

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

  .page-sports__categories-grid,
  .page-sports__promotions-grid,
  .page-sports__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-sports__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-sports__faq-answer {
    padding: 10px 20px 15px;
  }

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

@media (max-width: 480px) {
  .page-sports__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-sports__section-title {
    font-size: 1.6em;
  }
}