﻿/* ========== Base ========== */
body {
    font-family: 'Poppins', sans-serif;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.page-subtitle {
    font-size: 1rem;
    color: #6c757d;
}


.dash-card {
    border-radius: 15px;
    padding: 30px 15px;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    transition: transform .3s, box-shadow .3s;
}

    .dash-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 25px rgba(0,0,0,.18);
    }

    .dash-card .card-title {
        font-size: 1.2rem;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .dash-card .card-text {
        font-size: .9rem;
        margin-bottom: 15px;
    }

    .dash-card .btn {
        font-weight: 600;
        border-radius: 10px;
        padding: 6px 15px;
        transition: all .3s;
    }

        .dash-card .btn:hover {
            transform: scale(1.05);
        }


.news-card {
    position: relative;
    border-radius: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible; /* gölge taşarsa kesilmesin */
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 26px rgba(0,0,0,.12);
    }

    /* 🔹 GÖRSEL: kart içine gömülmüş görünüm */
    .news-card > .card-img-top.same-ann-img {
        display: block;
        /* kart kenarlarından içeri al */
        margin: 10px 10px 0 10px;
        width: calc(100% - 20px) !important; /* .card-img-top: width:100%’ü ezer */
        height: 330px;
        object-fit: cover;
        border-radius: 12px; /* karttan bir kademe küçük radius */
        box-shadow: 0 4px 12px rgba(0,0,0,.08);
        transition: transform .35s ease;
    }

    .news-card:hover > .card-img-top.same-ann-img {
        transform: scale(1.03);
    }

    /* 🔹 İçerik alanı */
    .news-card .card-body {
        padding: 14px 16px 18px; /* görsel altındaki boşluk dengesi */
        display: flex;
        flex-direction: column;
    }

.card-title {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: .5rem;
}

.card-text {
    font-size: .95rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
}

/* “Devamı için tıklayınız” görünümü */
.read-more-text {
    color: #007bff;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, text-decoration .2s ease;
    white-space: nowrap;
}

    .read-more-text:hover {
        color: #0056b3;
        text-decoration: underline;
    }

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .news-card > .card-img-top.same-ann-img {
        margin: 8px 8px 0;
        width: calc(100% - 16px) !important;
        height: 280px;
        border-radius: 10px;
    }

    .news-card .card-body {
        padding: 12px;
    }
}

@media (max-width: 576px) {
    .news-card > .card-img-top.same-ann-img {
        height: 220px;
    }
}
