﻿.hizmetler-container {
    max-width: 1400px;
    margin: 0 auto 4rem auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.hizmetler-list {
    display: flex;
    gap: 5.5rem;
    justify-content: center;
    width: 100%;
}

.hizmetler-card {
    background: #F6F4F9;
    border: 1.5px solid #BDBDBD;
    border-radius: 8px;
    width: 400px;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px 24px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hizmetler-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
}

    .hizmetler-icon img {
        height: 120px;
    }

.hizmetler-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #F6861F;
    margin-bottom: 16px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.hizmetler-card:nth-child(2) .hizmetler-title {
    color: #482875;
}

.hizmetler-card:nth-child(3) .hizmetler-title {
    color: #F6861F;
}

.hizmetler-desc {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 500;
}

.hizmetler-detail {
    font-size: 1rem;
    color: #222;
    margin-bottom: 32px;
    text-align: center;
}

.hizmetler-link {
    display: flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 500;
    margin-top: auto;
    margin-bottom: 8px;
    text-decoration: none;
}

    .hizmetler-link .hizli-teklif {
        color: #F6861F;
    }

    .hizmetler-link .hizli-web {
        color: #482875;
    }

    .hizmetler-link .expo {
        color: #F6861F;
    }


    .hizmetler-link:hover .hizmetler-arrow-ht {
        transform: translateX(5px);
    }

    .hizmetler-link:hover .hizmetler-arrow-hw {
        transform: translateX(5px);
    }

    .hizmetler-link:hover .hizmetler-arrow-expo {
        transform: translateX(5px);
    }

.hizmetler-arrow-ht {
    font-size: 1.2rem;
    margin-left: 8px;
    color: #6B4FA1;
    transition: transform .3s ease, color .3s ease;
}

.hizmetler-arrow-hw {
    font-size: 1.2rem;
    margin-left: 8px;
    color: #191618;
    transition: transform .3s ease, color .3s ease;
}

.hizmetler-arrow-expo {
    font-size: 1.2rem;
    margin-left: 8px;
    color: #F6861F;
    transition: transform .3s ease, color .3s ease;
}

/* Responsive Media Queries */

/* Large screens - 1200px to 1400px */
@media (max-width: 1300px) {
    .hizmetler-list {
        gap: 3rem;
    }

    .hizmetler-card {
        width: 350px;
        min-height: 420px;
    }
}

/* Laptop/Tablet Landscape - 1024px to 1199px */
@media (max-width: 1199px) {
    .hizmetler-container {
        margin: 0 auto 3rem auto;
    }

    .hizmetler-list {
        gap: 2rem;
    }

    .hizmetler-card {
        width: 320px;
        min-height: 400px;
        padding: 30px 20px 20px 20px;
    }

    .hizmetler-title {
        font-size: 2rem;
    }
}

/* 2'li Grid Layout - 768px to 1023px */
@media (max-width: 1023px) {
    .hizmetler-container {
        margin: 0 auto 2.5rem auto;
    }

    .hizmetler-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        justify-items: center;
        max-width: 900px;
    }

    .hizmetler-card {
        width: 100%;
        max-width: 400px;
        min-height: 380px;
    }

        /* 3. kart için özel düzenleme - ortalanmış */
        .hizmetler-card:nth-child(3) {
            grid-column: 1 / -1;
            max-width: 400px;
            justify-self: center;
        }

    .hizmetler-title {
        font-size: 1.9rem;
    }

    .hizmetler-desc {
        font-size: 1.05rem;
    }
}

/* Tek Grid Layout - 768px ve altı */
@media (max-width: 767px) {
    .hizmetler-container {
        margin: 0 auto 2rem auto;
        padding: 0 0.75rem;
    }

    .hizmetler-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        justify-items: center;
    }

    .hizmetler-card {
        width: 100%;
        max-width: 400px;
        min-height: 360px;
        padding: 25px 18px 18px 18px;
    }

        /* 3. kart için özel düzenlemeyi kaldır */
        .hizmetler-card:nth-child(3) {
            grid-column: auto;
            max-width: 400px;
        }

    .hizmetler-icon {
        height: 100px;
        margin-bottom: 20px;
    }

        .hizmetler-icon img {
            height: 100px;
        }

    .hizmetler-title {
        font-size: 1.8rem;
        margin-bottom: 14px;
    }

    .hizmetler-desc {
        font-size: 1rem;
        margin-bottom: 14px;
    }

    .hizmetler-detail {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
}

/* Mobile Portrait - up to 575px */
@media (max-width: 575px) {
    .hizmetler-container {
        margin: 0 auto 1.5rem auto;
        padding: 0 0.5rem;
    }

    .hizmetler-list {
        gap: 1.5rem;
    }

    .hizmetler-card {
        width: 100%;
        max-width: none;
        min-height: 340px;
        padding: 20px 16px 16px 16px;
    }

        /* 3. kart için özel düzenlemeyi tamamen sıfırla */
        .hizmetler-card:nth-child(3) {
            grid-column: auto;
            max-width: none;
            justify-self: stretch;
            width: 100%;
        }

    .hizmetler-icon {
        height: 80px;
        margin-bottom: 16px;
    }

        .hizmetler-icon img {
            max-width: 80px;
            height: 80px;
        }

    .hizmetler-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .hizmetler-desc {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .hizmetler-detail {
        font-size: 0.9rem;
        margin-bottom: 24px;
        line-height: 1.4;
    }

    .hizmetler-link {
        font-size: 0.95rem;
    }

    .hizmetler-arrow-ht {
        font-size: 1.1rem;
    }

    .hizmetler-arrow-hw {
        font-size: 1.1rem;
    }

    .hizmetler-arrow-expo {
        font-size: 1.1rem;
    }
}

/* Very small screens - up to 400px */
@media (max-width: 400px) {
    .hizmetler-container {
        margin: 0 auto 1rem auto;
    }

    .hizmetler-card {
        padding: 18px 14px 14px 14px;
        min-height: 320px;
    }

        /* 3. kart için özel düzenlemeyi tamamen sıfırla */
        .hizmetler-card:nth-child(3) {
            grid-column: auto;
            max-width: none;
            justify-self: stretch;
            width: 100%;
        }

    .hizmetler-title {
        font-size: 1.5rem;
    }

    .hizmetler-desc {
        font-size: 0.9rem;
    }

    .hizmetler-detail {
        font-size: 0.85rem;
    }
}

/* Mobile Horizontal Scroll - up to 480px */
@media (max-width: 576px) {
    .hizmetler-container {
        margin: 0 auto 1.5rem auto;
        padding: 0;
        overflow: hidden;
    }

    .hizmetler-list {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: flex-start;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 1rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: gray #f1f1f1;
    }

        /* Webkit scrollbar styling */
        .hizmetler-list::-webkit-scrollbar {
            height: 6px;
        }

        .hizmetler-list::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .hizmetler-list::-webkit-scrollbar-thumb {
            background: #a3a3a3;
            border-radius: 10px;
        }

            .hizmetler-list::-webkit-scrollbar-thumb:hover {
                background: #838383;
            }

    .hizmetler-card {
        flex: 0 0 280px;
        width: 280px;
        min-height: 320px;
        padding: 18px 16px 16px 16px;
        max-width: none;
    }

        /* 3. kart için özel düzenlemeyi sıfırla */
        .hizmetler-card:nth-child(3) {
            grid-column: auto;
            max-width: none;
            justify-self: auto;
            width: 280px;
            flex: 0 0 280px;
        }

    .hizmetler-icon {
        height: 70px;
        margin-bottom: 14px;
    }

        .hizmetler-icon img {
            max-width: 70px;
            height: 70px;
        }

    .hizmetler-title {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .hizmetler-desc {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .hizmetler-detail {
        font-size: 0.8rem;
        margin-bottom: 20px;
        line-height: 1.3;
    }

    .hizmetler-link {
        font-size: 0.9rem;
    }

    .hizmetler-arrow-ht {
        font-size: 1rem;
    }

    .hizmetler-arrow-hw {
        font-size: 1rem;
    }

    .hizmetler-arrow-expo {
        font-size: 1rem;
    }
}
