/* css/blog.css */
/* Blog grid düzeni */
.blog-main-posts .blog-grid {
    display: grid;
    grid-auto-flow: row;
    justify-items: start;
    align-items: stretch;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Kart stili */
.blog-main-posts .post-prev-img {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}
.blog-main-posts .post-prev-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-main-posts .post-prev-img img:hover {
    transform: scale(1.05);
}

/* Modern başlık stili */
.blog-main-posts .post-prev-title {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: auto;
    min-height: 100px;
}
.blog-main-posts .post-prev-title h3 a {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3436;
    line-height: 1.4;
    letter-spacing: 0.3px;
    text-decoration: none;
}
.blog-main-posts .post-prev-title h3 a:hover {
    color: #0984e3;
    text-decoration: none;
}

/* Responsive ayarlar */
@media (max-width: 767px) {
    .blog-main-posts .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination ortalama */
.blog-pag {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

/* Widget boşlukları */
.widget {
    margin-bottom: 2rem;
}

/* Etiket stili */
.tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 6px 12px;
    margin: 4px;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}
.tags a:hover {
    background: #007bff;
    color: #fff;
}

/* Post kart stili */
.blog-main-posts .post-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}
.blog-main-posts .post-card:hover {
    transform: translateY(-5px);
}
.blog-main-posts .post-card .post-prev-img {
    margin-bottom: 1rem;
}
.blog-main-posts .post-card .post-prev-title {
    padding: 0 1rem 1rem;
    flex-grow: 1;
}
.blog-main-posts .post-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 4px;
    background-color: #007bff;
    transition:
        width 0.3s ease,
        left 0.3s ease;
}

.blog-main-posts .post-card:hover::after {
    width: 100%;
    left: 0;
}

/* Pagination vurgusu */
.blog-pag .pagination li a {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    border-radius: 4px;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}
.blog-pag .pagination li a:hover,
.blog-pag .pagination li.active a {
    background: #007bff;
    color: #fff;
}

/* Lazy-load blur efekti */
.post-prev-img img {
    filter: blur(10px);
    opacity: 0;
    transition:
        filter 0.4s ease-out,
        opacity 0.4s ease-out;
}
.post-prev-img img.loaded {
    filter: none;
    opacity: 1;
}

/* Sidebar sticky (mobil) */
@media (max-width: 767px) {
    .sidebar {
        position: sticky;
        top: 80px;
    }
}

/* Tipografi ayarları */
.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
}
.blog-main-posts .post-prev-title h3 a {
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
}
.blog-main-posts p,
.widget-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* Grid item bootstrap col çakışma düzeltmesi */
.blog-main-posts .blog-grid > .post-card {
    width: auto !important;
    float: none !important;
    padding-bottom: 0 !important;
    height: 100% !important;
}

/* Tek bir item olduğunda daha dar grid */
.blog-main-posts .blog-grid.single-item {
    grid-template-columns: minmax(320px, 600px);
    justify-content: center;
}
