@import "./hizmetlerbanner.css";

body {
    margin: 0;
    padding: 0;
    background-color: #FEFEFE;
}

/* Hizmetler Ana Container */
.services-container-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Montserrat', Arial, sans-serif;
}

.services-container {
    padding: 20px;
}

/* Tüm servis satırları için genel stil */
.service-row {
    margin-bottom: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* Her bir hizmet bloğu */
._35tonlukvinc, ._20tonlukvinc,.sepetlivinc, .polip, .kurtarici {
    display: flex;
}

._35tonlukvinc, .sepetlivinc, .kurtarici {
    background-color: #FEFEFE;
}

._20tonlukvinc, .polip {
    background-color: #FAF9F6;
}

/* Resim alanı (solda, %30 genişlik) */
.service-image {
    width: 30%;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    display: block;
}

/* Sağ alan (açıklama ve buton) */
.service-right {
    width: 70%;
    display: flex;
    align-items: center;
}

/* Açıklama alanı (ortada, %40 genişlik) */
.service-description {
    width: 70%;
    padding: 20px;
}

.service-description h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-description p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* Buton alanı (sağda) */
.service-button {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.service-button a {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.service-button a:hover {
    background-color: #0056b3;
}

/* Alt sınıflara özel özelleştirmeler */
._35tonlukvinc .service-description h2 { color: #2c3e50; }
._20tonlukvinc .service-description h2 { color: #2980b9; }
.sepetlivinc .service-description h2 { color: #8e44ad; }
.polip .service-description h2 { color: #16a085; }
.kurtarici .service-description h2 { color: #c0392b; }

/* Mobil Uyumluluk için Media Query */
@media (max-width: 768px) {
    ._35tonlukvinc, ._20tonlukvinc,.sepetlivinc, .polip, .kurtarici {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
        height: 200px;
    }
    
    .service-right {
        width: 100%;
        flex-direction: column;
    }
    
    .service-description, .service-button {
        width: 100%;
        padding: 15px;
        text-align: center;
    }
}

/* Hedeflenen hizmet için vurgulama animasyonu */
.service-row:target {
    scroll-margin-top: 100px; /* Sabit menü için ayarlayın (header yüksekliği) */
}

/* JavaScript ile eklenecek vurgulama sınıfı */
.highlight-service {
    animation: highlightPulse 3s ease-out;
}

@keyframes highlightPulse {
    0% {
        background-color: transparent;
    }
    10% {
        background-color: rgba(255, 215, 0, 0.4); /* Altın sarısı vurgulama */
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
    100% {
        background-color: transparent;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}

.quality-assurance {
    margin-top: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.quality-assurance-container {
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9; /* Arka plan rengi, isteğe göre değiştirilebilir */
}

/* Kalite Güvencemiz kısmı */
.quality-assurance .title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 500;
}

.quality-assurance .title .line {
    flex: 1;
    height: 1px;
    background-color: #ccc; /* Çizgi rengi, isteğe göre değiştirilebilir */
    margin: 0 10px; /* Çizgiler ile metin arasındaki boşluk */
}

.quality-assurance .title span {
    font-size: 32px; /* Metin boyutu, isteğe göre ayarlanabilir */
    font-weight: bold;
    color: #444; /* Metin rengi, isteğe göre değiştirilebilir */
    white-space: nowrap; /* Metnin tek satırda kalmasını sağlar */
}

/* Logolar kısmı */
.quality-assurance .logos {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.quality-assurance .logos img {
    max-width: 200px; /* Logoların maksimum genişliği, isteğe göre ayarlanabilir */
    height: auto; /* Oranını korumak için */
    vertical-align: middle; /* Alt hizalamayı düzeltir */
}

.separator {
    width: 100%;
    border: 1px solid #e0e0e0; /* İnce ve hafif gri bir çizgi */
    margin: 20px auto; /* Merkezleme ve boşluk */
}

/* Mobil Uyumluluk için Media Query */
@media (max-width: 768px) {
    ._35tonlukvinc, ._20tonlukvinc, .polip, .kurtarici {
        flex-direction: column;
    }
    
    .service-image {
        width: 100%;
    }
    
    .service-image img {
        height: 200px;
        object-fit: cover; /* Görüntüyü kırpmak yerine tam dolduracak şekilde ayarlar */
    }
    
    .service-right {
        width: 100%;
        flex-direction: column;
    }
    
    .service-description {
        width: 100%;
        padding: 15px;
        text-align: center;
    }
    
    .service-button {
        width: 100%;
        padding: 0 15px 20px;
        text-align: center;
    }
    
    .service-button a {
        width: 80%; /* Butonun genişliğini arttır */
        padding: 12px 0;
        display: inline-block;
    }
    
    .service-description h2 {
        font-size: 20px; /* Başlık boyutunu küçült */
    }
    
    .service-description p {
        font-size: 14px; /* Metin boyutunu küçült */
    }
    
    .service-row {
        margin-bottom: 20px; /* Satırlar arası boşluğu azalt */
    }

    .services-container {
        padding: 10px; /* Container boşluğunu azalt */
    }
}

/* Responsive tasarım için */
@media (max-width: 600px) {
    .quality-assurance .logos {
        flex-direction: row; /* Küçük ekranlarda da yan yana kalsın */
        justify-content: space-between; /* Boşlukları koru */
        gap: 5px; /* Logolar arasında minimum boşluk */
    }

    .quality-assurance .logos img {
        max-width: 100px; /* Küçük ekranlarda logoları daha da küçült (120px -> 80px) */
    }

    .quality-assurance .title span {
        font-size: 20px; /* Mevcut ayar korundu */
    }
}

/* Diğer medya sorgusu (768px) için ek ayar */
@media (max-width: 768px) {
    .quality-assurance .logos {
        justify-content: space-between; /* 768px ve altında da space-between korunsun */
    }

    .quality-assurance .logos img {
        max-width: 150px; /* 768px için orta boy logo */
    }
}