* {
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

.con {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    /* max-width: 320px;   */
    /* margin-right: auto; */
    margin-left: 0;
    margin-top: 3.2em;
}

/* Temel Sıfırlama ve Konteyner Stilleri */
.ilan-kart-kapsayici {
    /* width: 187px;  */
    /* margin: 20px; */
    gap: 20px;
    /* display: inline-block; */
}

.ilan-kart {
    border: none;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: #e1e1e1;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Resim Alanı */
.resim-alani {
    position: relative;
    height: 150px;
    /* Resim alanının yüksekliği */
    overflow: hidden;
    /* Resmin büyüyüp taşan kısmını gizler */
}

.ilan-resmi {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
    display: block;
}

/* Resim Üzerindeki Bilgi Katmanı */
.bilgi-katmani {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
    /* Hafif koyu ve yarı saydam bir geçiş efekti */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.bilgi-katmani .baslik {
    font-size: 0.8em;
    font-weight: 600;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bilgi-katmani .konum {
    font-size: 0.7em;
    opacity: 0.9;
}

/* Detay Alanı (Fiyat ve Etiketler) */
.detay-alani {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.detay-alani .fiyat {
    font-size: 1em;
    font-weight: 500;
    color: #242424;
    margin-bottom: 7px;
}

.etiketler {
    display: flex;
    gap: 8px;
    /* Etiketler arası boşluk */
}

.etiket {
    padding: 2px 7px;
    border-radius: 3px;
    font-size: 0.7em;
    font-weight: 500;
    color: #fff;
    background: #707070;
    /* Görseldeki gibi koyu, hafif gradyanlı düğme */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
}

/* HOVER EFEKTİ */

/* Kart üzerine gelince resmin büyümesi */
.ilan-kart:hover .ilan-resmi {
    transform: scale(1.05);
    /* Resmi hafifçe büyüt (%8 zoom) */
}



.page-item.active .page-link {
    background-color: #343a40;
    color: #ffffff;
    font-weight: 500;
    border: none;
}

.page-item .page-link {
    /* border-radius: 50%;  */
    width: auto;
    height: auto;
    font-weight: 500;
    line-height: normal;
    background: none;
    color: #161616;
    font-size: 17px;
    transition: 0.3s ease-out;
}

.page-link:hover {
    background: #dbdbdb;
}

.pagination {
    list-style: none;
    padding: 0;
    gap: 16px;
    margin: 35px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.current-page .active {
    /* background-color: #000F8F; */
    /* color: wheat; */
}

.current-page {
    /* background: black; */
    /* color: black; */
}

.footer-text-right a {
    color: #ffffff;
    background-color: #dc2626;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: auto 5px;
}

.footer-top {
    padding: 0;
}

@media (max-width: 1300px) {
    .con {
        /* margin: auto; */
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 38px;
        /* max-width: 320px;   */
        /* margin-right: auto; */
        /* margin-left: 0;    */
        /* width: 270px; */
        /* width: 85%; */
        margin-top: 6em;
    }
}

@media (max-width: 1070px) {
    .con {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 44px;
    }
}

@media (max-width: 768px) {
    .con {
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 44px;
        /* max-width: 320px;   */
        /* margin-right: auto; */
        /* margin-left: 0;    */
        /* width: 270px; */
        margin-top: 6em;
    }

    .ilan-kart-kapsayici {
        /* width: 187px;  */
        /* margin: 20px; */
        gap: 60px;
        /* display: inline-block; */
    }

    .ilan-kart {
        border: none;
        border-radius: 3px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        background-color: #e1e1e1;
        overflow: hidden;
        cursor: pointer;
    }

    /* Resim Alanı */
    .resim-alani {
        position: relative;
        height: 150px;
        /* Resim alanının yüksekliği */
        overflow: hidden;
        /* Resmin büyüyüp taşan kısmını gizler */
    }

    .ilan-resmi {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* Resmi alana sığdırır */
        transition: transform 0.4s ease-in-out;
        /* Büyüme (zoom) efekti için geçiş süresi */
        display: block;
    }

    /* Resim Üzerindeki Bilgi Katmanı */
    .bilgi-katmani {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 15px;
        color: #fff;
        /* Hafif koyu ve yarı saydam bir geçiş efekti */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    }

    .bilgi-katmani .baslik {
        font-size: 0.8em;
        font-weight: 600;
        margin: 0 0 5px 0;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .bilgi-katmani .konum {
        font-size: 0.7em;
        opacity: 0.9;
    }

    /* Detay Alanı (Fiyat ve Etiketler) */
    .detay-alani {
        padding: 15px;
    }

    .detay-alani .fiyat {
        font-size: 1em;
        font-weight: 500;
        color: #242424;
        margin-bottom: 7px;
    }

    .etiketler {
        display: flex;
        gap: 8px;
        /* Etiketler arası boşluk */
    }

    .etiket {
        padding: 2px 7px;
        border-radius: 3px;
        font-size: 0.7em;
        font-weight: 500;
        color: #fff;
        background: #707070;
        /* Görseldeki gibi koyu, hafif gradyanlı düğme */
        box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2);
    }

    /* HOVER EFEKTİ */

    /* Kart üzerine gelince resmin büyümesi */
    .ilan-kart:hover .ilan-resmi {
        transform: scale(1.05);
        /* Resmi hafifçe büyüt (%8 zoom) */
    }

    .footer-top {
        min-height: 0;
        padding: 0;
    }

    .social-icons {
        gap: 22px;
    }
}


@media (max-width: 495px) {
    .con {
        margin: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        max-width: 100%;
        /* margin-right: auto; */
        /* margin-left: 0;    */
        margin-top: 6em;
    }
}