/* service-item.css - Tam kare görseller için düzeltilmiş CSS */

/* Yeni servis kartı ana container */
.service-item-new {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

/* Görsel container - Tam kare (300px x 300px) */
.service-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 (kare) aspect ratio */
    overflow: hidden;
}

/* Ana görsel */
.service-image-container > img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

/* Hover görsel */
.service-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

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

/* Overlay (görselin üzerine gelen açıklama) */
.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.service-overlay-content {
    text-align: center;
    padding: 20px;
    color: #fff;
}

.service-overlay-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.service-overlay-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: #FFA500;
}

.service-overlay-content p {
    font-size: 14px;
    line-height: 1.5;
}

/* Başlık container */
.service-title-container {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.service-title-container h4 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

/* Buton container */
.service-button-container {
    padding: 20px;
    text-align: center;
    margin-top: auto; /* Altta kalır */
}

/* Hover efektleri */
.service-item-new:hover .service-hover {
    opacity: 1;
}

.service-item-new:hover .service-overlay {
    opacity: 1;
}

.service-item-new:hover .service-image-container > img {
    transform: scale(1.1);
}

/* Responsive ayarları */
@media (max-width: 991px) {
    .service-overlay-content h3 {
        font-size: 20px;
    }
    
    .service-overlay-content p {
        font-size: 13px;
    }
    
    .service-title-container h4 {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .service-overlay-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .service-overlay-content p {
        font-size: 12px;
    }
}