main {
  background-image: linear-gradient(to right, #252e37, #384553, #252e37);
}

/* Services Header */
.services-header {
  padding: 3rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
}

.services-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.services-header .lead {
  font-size: 1.25rem;
  color: #555;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Services Content */
.services-content {
  padding: 4rem 0;
  background-image: linear-gradient(to right, #252e37, #384553, #252e37);
}

.service-category {
  margin-bottom: 4rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 3rem 0;
}

.service-category:last-child {
  margin-bottom: 0;
}

.service-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #2c3e50;
}

.highlight-icon {
  width: 20px;
  height: 20px;
  color: #28a745;
  flex-shrink: 0;
}

/* Category Header - Now More Prominent */
.category-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 3px solid #2c3e50;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.category-icon {
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--orange) 100%);
  width: 80px;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.category-icon svg {
  width: 42px;
  height: 42px;
  color: white;
}

.category-info h2 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.category-info p {
  font-size: 1.25rem;
  color: #6c757d;
  margin: 0;
}

/* Carousel Container - Full Width */
.carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 500px;
}

.carousel-wrapper {
  padding: 0 10%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

/* Service Card - Full Width, No Card Styling */
.service-card {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: row;
  min-height: 500px;
  gap: 3rem;
  align-items: center;
  box-sizing: border-box;
  padding: 0 10%;
}

.service-image {
  flex: 0 0 45%;
  height: 500px;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

  background-image: var(--service-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.2),
    rgba(0,0,0,0.5)
  );
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.service-image-placeholder svg {
  width: 80px;
  height: 80px;
  color: #adb5bd;
}

/* Service Card Content - Right Side */
.service-card-content {
  flex: 1;
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-card-content h3 {
  font-size: 2.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-description {
  color: #6c757d;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  flex-grow: 1;
}

/* Service Card Footer */
.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 2px solid #e9ecef;
  gap: 1rem;
}

.service-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-orange);
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 1rem 2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark-orange) 0%, var(--orange) 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-learn-more:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-learn-more svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.btn-learn-more:hover svg {
  transform: translateX(4px);
}

/* Carousel Navigation Buttons */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-nav:hover {
  background: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
  transform: translateY(-50%) scale(1.1);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav svg {
  width: 28px;
  height: 28px;
  color: #2c3e50;
  transition: color 0.3s ease;
}

.carousel-nav:hover svg {
  color: white;
}

.carousel-nav.prev {
  left: 2rem;
}

.carousel-nav.next {
  right: 2rem;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.carousel-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e0;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: #a0aec0;
  transform: scale(1.3);
}

.carousel-indicator.active {
  background: var(--dark-orange);
  width: 40px;
  border-radius: 6px;
}

/* CTA Section */
.services-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 4rem 0;
  text-align: center;
  color: white;
  margin-top: 4rem;
}

.cta-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  background: transparent;
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 1400px) {
  .service-card {
    padding: 0 7.5%;
    gap: 2.5rem;
  }
  
  .service-card-content h3 {
    font-size: 2.25rem;
  }
}

@media (max-width: 1024px) {
  .carousel-container {
    min-height: 400px;
  }
  
  .service-card {
    flex-direction: row;
    min-height: 400px;
    gap: 2rem;
    align-items: center;
  }
  
  .service-image {
    flex: 0 0 45%;
    width: 45%;
    min-height: 350px;
    max-height: 400px;
  }
  
  .service-card-content {
    flex: 1;
    padding: 0;
  }
  
  .service-card-content h3 {
    font-size: 1.75rem;
  }
  
  .service-description {
    font-size: 0.95rem;
  }
  
  .carousel-nav.prev {
    left: 1rem;
  }
  
  .carousel-nav.next {
    right: 1rem;
  }
}

@media (max-width: 768px) {
  .services-header h1 {
    font-size: 2rem;
  }
  
  .services-header .lead {
    font-size: 1rem;
  }
  
  .service-category {
    padding: 2rem 0;
  }

  .service-highlights {
        display: none;
  }
  
  .category-header {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .category-info h2 {
    font-size: 1.5rem;
  }
  
  .category-info p {
    font-size: 0.95rem;
  }
  
  .carousel-container {
    min-height: 350px;
  }
  
  .service-card {
    flex-direction: row;
    min-height: 350px;
    gap: 1.5rem;
    padding: 0 2.5%;
    align-items: center;
  }
  
  .service-image {
    flex: 0 0 42%;
    width: 42%;
    min-height: 300px;
    max-height: 350px;
  }
  
  .service-card-content {
    flex: 1;
  }
  
  .service-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
  }
  
  .service-description {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    line-height: 1.5;
  }
  
  .service-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding-top: 1rem;
  }
  
  .service-price {
    font-size: 1.25rem;
  }
  
  .btn-learn-more {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .carousel-nav {
    width: 44px;
    height: 44px;
  }
  
  .carousel-nav svg {
    width: 22px;
    height: 22px;
  }
  
  .carousel-nav.prev {
    left: 0.5rem;
  }
  
  .carousel-nav.next {
    right: 0.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
}

/* ==================================================
   Mobile (<=480px) – image becomes card background
   Scoped & non-destructive
   ================================================== */
@media (max-width: 480px) {

  /* Hide inline image completely */
  .service-card .service-image {
    display: none;
  }

  /* Use CMS uploaded image as background */
  .service-card {
    background-image: var(--service-bg); /* <-- uses variable from inline style */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 280px;
    padding: 1rem;
    gap: 1rem;
    height: 400px;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
  }


  /* Readability overlay */
  .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
  }

  /* Content above overlay */
  .service-card-content {
    position: relative;
    z-index: 1;
    padding: 0rem 2rem;
  }

  .service-card-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #E85D04;
  }

  .service-description {
    font-size: 0.75rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: #ffffff;
  }

  .service-card-footer {
    gap: 0.5rem;
  }

  .service-price {
    font-size: 1.1rem;
  }

  .btn-learn-more {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .carousel-container {
    min-height: 280px;
  }

  .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .carousel-nav svg {
    width: 18px;
    height: 18px;
  }

  .carousel-nav.prev {
    left: 0.25rem;
  }

  .carousel-nav.next {
    right: 0.25rem;
  }

  .carousel-viewport {
    overflow: hidden;
    margin-inline: 1rem;
    box-sizing: border-box;
  }

  .carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease;
  }
}