/**
 * Стили для страницы блога
 */

.blog-section {
    background: var(--bg-light);
    min-height: 60vh;
}

/* Empty Blog */
.empty-blog {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: 10px;
}

.empty-blog i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-blog p {
    font-size: 18px;
    color: var(--text-light);
}

/* Blog Grid */
.blog-grid {
    gap: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: auto; /* или можно aspect-ratio */
    aspect-ratio: 16 / 9; /* современный способ */
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* теперь не будет обрезать, т.к. пропорции совпадают */
    transition: transform 0.3s;
}

/*
.blog-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
*/

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta i {
    color: var(--primary-color);
}

.blog-title {
    font-size: 20px;
    margin-bottom: 15px;
}

.blog-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-preview {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s;
}

.blog-read-more:hover {
    gap: 12px;
}

/* Адаптивность */
@media screen and (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-image {
        height: 200px;
    }
}