/* Entry Maintenance Page Styles */

.service-detail {
  margin-top: 75px;
}

.service-hero {
  background: linear-gradient(to right, var(--primary-bg), var(--secondary-bg));
  color: var(--light);
  text-align: center;
  padding: 4rem 1rem;
  position: relative;
  overflow: hidden;
}

.service-hero::after {
  content: "";
  background: url('https://azure-hornet-996963.hostingersite.com/kandk/assets/logo.webp') no-repeat center center;
  background-size: 300px;
  opacity: 0.35;
  position: absolute;
  top: 23%;
  left: 60%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: 100%;
  z-index: 0;
}

.service-hero .hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-hero .hero-content .lead {
  font-size: 1.2rem;
  margin-bottom: 0;
  opacity: 0.9;
}

.service-content {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.service-content h2 {
  color: var(--brand-dark);
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.service-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: #333;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.service-content li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: #333;
}

.service-content .bullet-icon {
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--brand-teal);
}

.before-after-section {
  text-align: center;
  margin: 3rem auto;
  max-width: 600px;
}

.before-after-section h2 {
  color: var(--brand-dark);
  margin-bottom: 2rem;
}

.before-after-flip {
  position: relative;
  width: 100%;
  height: 300px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  margin-bottom: 1rem;
}

.before-img,
.after-img {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  object-fit: cover;
  border-radius: 10px;
}

.after-img {
  transform: rotateY(180deg);
}

.flip-caption {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
}

.browse-services-cta {
  text-align: center;
  margin: 2rem 0;
}

.browse-services-cta h3 {
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.service-cta {
  text-align: center;
  margin: 3rem auto;
  padding: 2rem 1rem;
  background: var(--gray);
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .service-hero .hero-content h1 {
    font-size: 2rem;
  }
  
  .service-content h2 {
    font-size: 1.8rem;
  }
  
  .before-after-flip {
    height: 250px;
  }
}

@media (max-width: 480px) {
  .service-hero .hero-content h1 {
    font-size: 1.8rem;
  }
  
  .service-content h2 {
    font-size: 1.6rem;
  }
  
  .before-after-flip {
    height: 200px;
  }
} 

@media (min-width: 810px){
    .service-hero::after{
        top: 80%;
        left: 60%;
    }
}