/* Genel Stil ve Body Ayarları */
body {
    background-color: #F6F9F5;
    margin: 0;
    height: 100vh;
    padding-top: 100px;
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Hizmetlerimiz Resim Konumlama */
.servicestop-div {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 150px 20px;
    width: 950px;
    height: 300px;
    background-repeat: no-repeat;
    margin: auto;
    display: block;
}

/* Hizmetlerimiz Detay Açıklama */
.services-div {
    justify-content: space-between;
    align-items: center;
    width: 1000px;
    margin: 0 auto;
    padding: 20px;
    text-align: justify;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 28px;
}

/* Hizmetlerimiz Kayan Slide */
.mainsliding {
    position: relative;
    width: 175px;
    height: 250px;
}

.imgsliding {
    width: 175px;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.subsliding {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    border-radius: 8px;
}

.textsliding {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    font-weight: bold;
    z-index: 2;
    text-align: center;
    padding: 0 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.35);
}

/* Carousel - Butonlar container dışında ve ortada */
.carousel-box {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    min-height: 270px;
}
.custom-carousel-btn {
    position: static !important;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.custom-carousel-btn .carousel-control-prev-icon,
.custom-carousel-btn .carousel-control-next-icon {
    background-color: #222;
    width: 32px;
    height: 96px;
}

/* Carousel Responsive - Çoklu Öğeler İçin */
.carousel-inner .carousel-item .row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0;
}

.carousel-inner .carousel-item .col-2 {
    flex: 0 0 20%;
    max-width: 20%;
    min-width: 170px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding-left: 2px;
    padding-right: 2px;
    transition: all 0.3s;
}

/* Büyük ekranlar için */
@media (max-width: 1200px) {
    .servicestop-div {
        width: 90%;
        height: 250px;
        padding: 120px 15px;
    }
    .services-div {
        width: 90%;
        font-size: 18px;
        line-height: 26px;
        padding: 15px;
    }
    .carousel-inner .carousel-item .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Responsive: 4'lü görüntü */
@media (max-width: 1400px) {
    .carousel-inner .carousel-item .col-2 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
/* Responsive: 3'lü görüntü */
@media (max-width: 1100px) {
    .carousel-inner .carousel-item .col-2 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
/* Responsive: 2'li görüntü */
@media (max-width: 900px) {
    .carousel-inner .carousel-item .col-2 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Orta ekranlar için */
@media (max-width: 992px) {
    body {
        padding-top: 80px;
        height: auto;
    }
    .servicestop-div {
        width: 100%;
        height: 200px;
        padding: 100px 10px;
    }
    .services-div {
        width: 100%;
        font-size: 16px;
        line-height: 24px;
        padding: 10px;
        text-align: left;
    }
    .mainsliding {
        width: 140px;
        height: 200px;
        margin: 0 auto;
    }
    .imgsliding {
        width: 140px;
        height: 200px;
    }
    .textsliding {
        font-size: 16px;
    }
}

/* Mobil ve küçük ekranlar için */
@media (max-width: 600px) {
    .carousel-inner .carousel-item .col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .mainsliding, .imgsliding {
        width: 100% !important;
        max-width: 320px;
        min-width: 180px;
        height: 220px !important;
        min-height: 170px !important;
        margin: 0 auto;
    }
    .textsliding {
        font-size: 16px;
    }
    .custom-carousel-btn {
        width: 38px;
        height: 38px;
    }
    .custom-carousel-btn .carousel-control-prev-icon,
    .custom-carousel-btn .carousel-control-next-icon {
        width: 28px;
        height: 28px;
    }
}

/* Küçük ekranlar için */
@media (max-width: 768px) {
    .servicestop-div {
        width: 100%;
        height: 180px;
        padding: 80px 8px;
    }
    .services-div {
        font-size: 14px;
        line-height: 22px;
        padding: 8px;
    }
    .mainsliding,
    .imgsliding {
        width: 90vw !important;
        max-width: 220px;
        height: auto;
    }
    .textsliding {
        font-size: 14px;
        padding: 0 5px;
    }
}



/* Mobilde de oklar görünsün */
@media (max-width: 600px) {
  .custom-carousel-btn,
  .carousel-control-prev,
  .carousel-control-next {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

/* En küçük ekranlar için */
@media (max-width: 576px) {
    body {
        padding-top: 70px;
        padding-bottom: 30px;
    }
    h1 {
        font-size: 1.8rem;
    }
    h3, h5 {
        font-size: 1.3rem;
    }
    .form-control {
        padding: 0.5rem;
    }
    .btn-msgsender {
        height: 45px;
        font-size: 15px;
    }
    .servicestop-div {
        padding: 80px 8px;
        height: 140px;
    }
    .services-div {
        font-size: 13px;
        line-height: 18px;
        padding: 6px;
    }
    .mainsliding,
    .imgsliding {
        width: 90vw !important;
        max-width: 170px;
        height: auto;
    }
    .textsliding {
        font-size: 12px;
        padding: 0 3px;
    }
}