/**
 * Стили блока "Читайте наш блог" на главной странице
 * Файл: /local/templates/opk/include_areas/main_blog.css
 */

/* Blog Block */
.main-blog {
    margin-top: 50px;
    margin-bottom: 30px;
}

/* Title */
.main-blog-title {
    color: #02254E;
    font-size: 36px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 30px 0;
    word-wrap: break-word;
}

/* Grid */
.main-blog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
}

/* Blog Card */
.blog-card {
    width: 295px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card:hover .blog-card-title {
    color: #E32125;
}

/* Image */
.blog-card-image {
    height: 180px;
    background: #E8E8E8;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-image-placeholder {
    width: 73px;
    height: 73px;
    background: #FFFFFF;
}

/* Content */
.blog-card-content {
    padding: 24px;
    background: #FFFFFF;
    border-radius: 0 0 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Title */
.blog-card-title {
    color: #02254E;
    font-size: 16px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    transition: color 0.2s ease;

    /* Ограничение в 3 строки */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.blog-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.blog-card-date,
.blog-card-time {
    color: rgba(2, 37, 78, 0.40);
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 1280px) {
    .main-blog-grid {
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .blog-card {
        width: calc(50% - 10px);
        min-width: 280px;
    }

    .main-blog-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .main-blog {
        margin-top: 30px;
    }

    .blog-card {
        width: 100%;
        min-width: 100%;
    }

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

@media (max-width: 480px) {
    .blog-card-image {
        height: 150px;
    }

    .blog-card-content {
        padding: 16px;
    }

    .blog-card-title {
        font-size: 15px;
    }

    .blog-card-date,
    .blog-card-time {
        font-size: 13px;
    }
}
