/* Services Section */
.services-section {
  padding: 40px 40px;
  background-color: #0d0d0d;
}

.services-header {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto 50px auto;
}

.services-title {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 15px 0;
  color: #ffffff;
  line-height: 42px;
}

.services-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: #ffffff;
  font-weight: 500;
}

.slider-marquee {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  padding: 10px 0 30px 0;
}

.slider-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollMarquee 100s linear infinite;
}

.slider-track:hover {
  animation-play-state: paused;
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 15px));
  }
}

/* Service Card Layout from index.css */
.service-card {
  flex: 0 0 auto;
  width: 350px;
  background-color: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card-header {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px;
  text-align: center;
  font-size: 26px;
  font-weight: 500;
}

.service-card-body {
  padding: 10px 20px 10px 20px;
  text-align: center;
  color: black;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card-desc {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  margin-bottom: 20px;
  color: #1A1A1A;
}

.service-btn {
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-body);
  margin-top: auto !important;
  /* Locks button to bottom for symmetry */
  transition: background-color 0.2s;
}

.service-btn:hover {
  background-color: var(--color-primary-dark);
}

.service-card-img-wrapper {
  background-color: var(--color-white);
  padding: 0 4px 4px 4px;
}

.service-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0 0 12px 12px;
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  .services-title {
    font-size: 30px;
  }

  .slider-marquee {
    overflow-x: auto;
    padding-bottom: 25px;
  }

  .slider-track {
    animation: none;
    width: max-content;
    padding-left: 15px;
  }

  .service-card {
    flex: 0 0 280px;
    width: 280px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
  }

  .service-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .service-btn {
    margin-top: auto;
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .services-title {
    font-size: 24px;
    line-height: 1.2;
  }

  .services-subtitle {
    font-size: 15px;
  }

  .service-card {
    flex: 0 0 250px;
    width: 250px;
    min-height: 440px;
  }
}
