﻿.hizmetlerimiz-section {
    padding: 40px 20px;
    text-align: center;
}

.hizmetlerimiz-baslik {
    background: linear-gradient(90deg, #d32f2f, #ff9800);
    color: #fff;
    padding: 25px 0;
    margin-bottom: 40px;
}

.hizmet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.hizmet-kart {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hizmet-ikon {
    font-size: 60px;
    color: #e53935;
    margin-bottom: 15px;
}

.hizmet-kart h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.hizmet-ozet {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 15px;
    min-height: 68px;
}

.devamini-oku-btn {
    background-color: #ffc107;
    color: #000;
    font-weight: 600;
    padding: 10px 22px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.2s;
}

    .devamini-oku-btn:hover {
        background-color: #ffb300;
    }

/* Modal */
.hizmet-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

    .hizmet-modal-overlay.aktif {
        display: flex;
    }

.hizmet-modal-kutu {
    background: #fff;
    max-width: 520px;
    width: 90%;
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    position: relative;
    animation: modalAcilis 0.2s ease-out;
}

@keyframes modalAcilis {
    from {
        transform: scale(0.95);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.hizmet-modal-kapat {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #888;
}

    .hizmet-modal-kapat:hover {
        color: #000;
    }

.hizmet-modal-ikon {
    font-size: 55px;
    color: #e53935;
    margin-bottom: 15px;
    display: inline-block;
}

#modalBaslik {
    font-weight: 700;
    margin-bottom: 15px;
}

#modalMetin {
    color: #555;
    line-height: 1.6;
    text-align: left;
    white-space: pre-line;
}

/* Ürün resmi büyütme modalı (hizmet-modal-kutu üzerine override) */
/* Ürün resmi büyütme modalı (hizmet-modal-kutu üzerine override) */
.resim-modal-kutu {
    max-width: 90vw;
    padding: 20px;
    background: transparent;
    box-shadow: none;
}

    .resim-modal-kutu img {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 8px;
        display: block;
        margin: 0 auto;
    }

/* Kapatma butonunu kutuya değil, ekranın sağ üst köşesine sabitle */
#resimModal .hizmet-modal-kapat {
    position: fixed;
    top: 24px;
    right: 24px;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: #333;
    z-index: 1001;
}

    #resimModal .hizmet-modal-kapat:hover {
        color: #000;
        background: #f2f2f2;
    }

@media (max-width: 992px) {
    .hizmet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hizmet-grid {
        grid-template-columns: 1fr;
    }
}

.urun-actions {
    display: flex;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}

    .urun-actions a,
    .urun-actions .devamini-oku-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 38px;
        padding: 0 18px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 4px;
        line-height: 1;
        white-space: nowrap;
        box-sizing: border-box;
    }


    .urun-actions a {
        gap: 6px;
        background-color: #e53935;
        color: #fff;
        text-transform: none;
        transition: background-color 0.2s;
        margin-top: 0;
    }

        .urun-actions a:hover {
            background-color: #c62828;
            color: #fff;
        }

        .urun-actions a i {
            margin-left: 0;
            font-size: 13px;
        }

    .urun-actions .devamini-oku-btn {
        background-color: #ffc107;
        color: #000;
        border: none;
        cursor: pointer;
    }

        .urun-actions .devamini-oku-btn:hover {
            background-color: #ffb300;
        }

/* Buton satırını kartın en altına sabitle — farklı uzunluktaki
   açıklama metinlerine rağmen tüm kartlarda butonlar aynı hizada dursun */
.urun-actions {
    margin-top: auto;
    padding-top: 10px;
}
