.page-sports {
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Main text color for dark background */
  font-family: 'Arial', sans-serif;
  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;
  padding: 80px 20px 60px; /* Generous padding, not using --header-offset */
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-sports__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and text */
  border-radius: 12px;
}

.page-sports__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%; /* Ensure content block takes full width up to max-width */
}

.page-sports__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 */
  font-weight: 700;
  line-height: 1.2;
  color: #F2FFF6; /* Main text color */
  margin-bottom: 20px;
}

.page-sports__hero-description {
  font-size: 1.15rem;
  color: #A7D9B8; /* Secondary text color */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-sports__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure button container takes full width */
}

.page-sports__btn {
  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;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-sports__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
}

.page-sports__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-sports__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter shade of primary green */
  border: 2px solid #2AD16F;
}

.page-sports__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

/* Video Section */
.page-sports__video-section {
  padding: 10px 0 60px; /* Small top padding, not --header-offset */
  text-align: center;
  background-color: #0A4B2C; /* Deep Green from palette */
}

.page-sports__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  width: 100%; /* Ensure width: 100% for desktop */
  box-sizing: border-box;
}

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

/* General Section Styling */
.page-sports__section {
  padding: 60px 0;
  text-align: center;
}

.page-sports__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6;
  margin-bottom: 40px;
}

.page-sports__section-text {
  max-width: 900px;
  margin: 0 auto 30px;
  color: #A7D9B8;
  font-size: 1.05rem;
}

/* Card layout for sports categories/features */
.page-sports__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.page-sports__card {
  background-color: #11271B; /* Card BG color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

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

.page-sports__card-image {
  width: 100%;
  height: 200px; /* Minimum height 200px */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure it's a block element */
}

.page-sports__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 15px;
}

.page-sports__card-text {
  font-size: 1rem;
  color: #A7D9B8;
  flex-grow: 1;
}

.page-sports__image-full {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* How-to-start section */
.page-sports__steps-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-sports__step-item {
  background-color: #11271B;
  border-radius: 12px;
  padding: 30px;
  width: 100%;
  max-width: 350px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
}

.page-sports__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
}

.page-sports__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2FFF6;
  margin-bottom: 10px;
}

.page-sports__step-text {
  font-size: 1rem;
  color: #A7D9B8;
}

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

.page-sports__faq-item {
  background-color: #11271B;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.page-sports__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #F2FFF6;
  cursor: pointer;
  list-style: none; /* Hide default marker */
}

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

.page-sports__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-grow: 1;
}

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

.page-sports__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: #57E38D;
}

.page-sports__faq-item[open] .page-sports__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'x' or similar */
}

.page-sports__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8;
  line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-sports__hero-section {
    padding: 60px 15px 40px;
  }

  .page-sports__main-title {
    font-size: 2.2rem;
  }

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

  .page-sports__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }

  .page-sports__btn {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-sports__video-section {
    padding: 10px 0 40px;
  }

  .page-sports__video-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

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

  .page-sports__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

  .page-sports__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-sports__card {
    padding: 20px;
  }

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

  .page-sports__image-full {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }

  .page-sports__steps-list {
    padding: 0 15px;
  }

  .page-sports__step-item {
    max-width: 100%;
    padding: 25px;
  }

  .page-sports__faq-list {
    padding: 0 15px;
  }

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

  .page-sports__faq-answer {
    padding: 0 20px 18px;
  }

  /* Force responsive images, videos, and containers */
  .page-sports img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure width is 100% on mobile */
    height: auto !important;
    display: block !important;
  }

  .page-sports video,
  .page-sports__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure all content containers are responsive */
  .page-sports__section,
  .page-sports__card,
  .page-sports__container,
  .page-sports__hero-section,
  .page-sports__why-888p,
  .page-sports__categories,
  .page-sports__live-betting,
  .page-sports__promotions,
  .page-sports__how-to-start,
  .page-sports__responsible-gaming,
  .page-sports__faq {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* For sections that need internal padding on mobile */
  .page-sports__section:not(.page-sports__hero-section):not(.page-sports__video-section) {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Ensure no image filters */
.page-sports img {
  filter: none !important;
}

/* Ensure content area image CSS dimensions are not too small */
.page-sports__card-image, .page-sports__image-full {
  min-width: 200px;
  min-height: 200px;
}

@media (max-width: 768px) {
  /* Overriding potential smaller values in general rules for content images */
  .page-sports img {
    min-width: unset !important;
    min-height: unset !important;
  }
  .page-sports__card-image, .page-sports__image-full {
    min-width: unset !important;
    min-height: unset !important;
  }
}