/* Категорії-теги */
.blog-tag {
    font-size: 14px;
    color: #555;
    padding: 8px 18px;
    background: #f0f2f5;
    border-radius: 50px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin: 4px;
}

.blog-tag:hover {
    background: #e1e4e8;
    color: #000;
}

.blog-tag.active {
    background: #0075FF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 117, 255, 0.3);
}

/* Картка статті */
.blog-card-premium {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f1f5 !important;
}

.blog-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
}

.blog-card-img-wrapper {
    min-height: 200px;
    overflow: hidden;
}

.blog-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.blog-card-title {
    font-size: 1.25rem;
    line-height: 1.4;
}

.blog-card-title a:hover {
    color: #0075FF !important;
}

.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.8em; /* Приблизно 3 рядка */
}

/* Адаптація */
@media (max-width: 768px) {
    .blog-card-img-wrapper {
        height: 200px;
    }
    .blog-card-title {
        font-size: 1.1rem;
    }
}
