.hizmetlerimiz {
  text-align: center;
  padding: 40px 0 30px 0;
  background-color: #FAF9F6;
  font-family: 'Montserrat', Arial, sans-serif;
  position: relative;
}

.hizmetlerimiz h2 {
  display: inline-block;
  color: black;
  padding: 10px 20px;
  font-size: 35px;
  font-weight: 500;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  padding-bottom: 5px; /* Çizgi ile metin arasındaki boşluk */
}

.hizmetlerimiz h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 90%; /* Çizgi uzunluğu - isteğe bağlı olarak ayarlanabilir */
  height: 2px; /* Çizgi kalınlığı */
  background-color: #E51A1E;
  transform: translateX(-50%); /* Çizgiyi tam ortada tutar */
}

/* Slider ana kapsayıcısı */
.hizmet-kapsayici {
  position: relative;
  max-width: 1400px; /* 3 kutunun toplam genişliği (400 + 500 + 400) */
  margin: 0 auto;
  overflow: visible;
  padding: 0 0px;
}

/* Ok tuşları */
.prev-btn, .next-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.prev-btn {
  left: 30%;
}

.next-btn {
  right: 30%;
}

.prev-btn:hover, .next-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

/* Görüntüleme alanı - Sadece 3 kutuyu gösterir */
.hizmet-slider-viewport {
  overflow: hidden;
  position: relative;
  margin: 0 auto;
  width: 1300px; /* 3 kutunun toplam genişliği (400 + 500 + 400) */
}

/* Slider içerik */
.hizmet-slider {
  display: flex;
  position: relative;
  transition: transform 0.5s ease;
}

/* Hizmet kutuları */
.hizmet-link {
  flex: 0 0 auto;
  transition: all 0.5s ease;
  text-decoration: none;
  padding: 0 10px;
  box-sizing: border-box;
}

.hizmet-kutu {
  border-radius: 15px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: all 0.5s ease;
  width: 400px; /* Yan kutular için genişlik artırıldı */
  height: 500px; /* Yan kutular için yükseklik artırıldı */
  transform: scale(0.85);
  opacity: 0.7;
}

/* Aktif (ortadaki) kutu */
.hizmet-kutu.active {
  transform: scale(1);
  opacity: 1;
  width: 400px; /* Ortadaki kutu için genişlik artırıldı */
  height: 500px; /* Ortadaki kutu için yükseklik artırıldı */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Arka plan resimleri */
.kurtarici {
  background-image: url('../../../assets/img/anasayfa/hizmet4.jpg');
}

.sepetli-vinc {
  background-image: url('../../../assets/img/anasayfa/hizmet3.jpg');
}

.vinc-35-ton {
  background-image: url('../../../assets/img/anasayfa/hizmet1.jpg');
}

.vinc-20-ton {
  background-image: url('../../../assets/img/anasayfa/hizmet2.jpg');
}

.polip {
  background-image: url('../../../assets/img/anasayfa/hizmet5.jpg');
}

.hizmet-icerik {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 370px;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 15px;
  text-align: center;
  color: white;
  transition: all 0.3s ease;
}

.hizmet-icerik p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
}

.hizmet-kutu.active .hizmet-icerik p {
  text-align: center;
  font-size: 20px;
  font-weight: 500;
}

.hizmet-kutu:hover .hizmet-icerik {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Alt navigasyon noktaları */
.hizmet-nav-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 25px;
}

.hizmet-nav-dots span {
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hizmet-nav-dots span.active {
  width: 30px;
  background: #707070;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.hizmet-nav-dots span.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: scaleX(0);
  transform-origin: left;
  animation: progress 6s ease-in-out forwards;
}

@keyframes progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@media (max-width: 1350px) {

  .hizmetlerimiz {
    height: 630px;
  }
  
  .hizmetlerimiz h2 {
    font-size: 30px;
  }

  .hizmet-kapsayici {
    max-width: 990px;
  }

  .hizmet-slider-viewport {
    width: 890px;
  }

  .prev-btn {
    left: 22%;
  }
  
  .next-btn {
    right: 22%;
  }

  .hizmet-kutu {
    width: 300px;
    height: 300px;
    transform: scale(0.9);
  }

  .hizmet-kutu.active {
    width: 400px;
    height: 400px;
  }
}

/* Responsive tasarım */
@media (max-width: 992px) {

  .hizmetlerimiz h2 {
    font-size: 28px;
  }

  .hizmet-kapsayici {
    max-width: 765px;
  }

  .hizmet-slider-viewport {
    width: 665px; /* Daha küçük ekranlar için (300 + 400 + 300) */
  }

  .hizmet-kutu {
    width: 200px;
    height: 300px;
  }

  .hizmet-kutu.active {
    width: 250px;
    height: 400px;
  }

  .prev-btn {
    left: 22%;
  }
  
  .next-btn {
    right: 29%;
  }

}

@media (max-width: 768px) {
  .hizmetlerimiz h2 {
    font-size: 24px;
  }

  .hizmet-kapsayici {
    width: 575px;
  }

  .hizmet-slider-viewport {
    width: 540px; /* Daha küçük ekranlar için (300 + 400 + 300) */
  }

  .hizmet-kutu {
    width: 200px;
    height: 300px;
  }

  .hizmet-kutu.active {
    width: 250px;
    height: 400px;
  }

  .prev-btn {
    left: 15%;
  }
  
  .next-btn {
    right: 16%;
  }

  .hizmet-icerik {
    width: 250px;
    padding: 15px 0;
  }

}

@media (max-width: 576px) {

  .hizmetlerimiz {
    max-height: 500px;
  }

  .hizmetlerimiz h2 {
    font-size: 24px;
  }

  .hizmet-kapsayici {
    width: 400px;
  }

  .hizmet-slider-viewport {
    width: 300px; /* Daha küçük ekranlar için (300 + 400 + 300) */
  }

  .hizmet-kutu {
    width: 150px;
    height: 200px;
  }

  .hizmet-kutu.active {
    width: 230px;
    height: 350px;
  }

  .prev-btn {
    left: 4%;
  }
  
  .next-btn {
    right: 4%;
  }

  .hizmet-icerik {
    width: 230px;
    padding: 15px 0;
  }

  .hizmet-icerik p {
    font-size: 16px;
  }

  .hizmet-kutu.active .hizmet-icerik p {
    font-size: 14px;
  }
}

@media (max-width: 430px){

}