.widget-litcontent {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.widget-item {
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease; /* Плавная тень */
}
.widget-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.widget-content {
    position: relative;
}
.widget-image {
    float: left;
    width: 40%;
    max-width: 320px;
    margin: 0 0.7rem 0.2rem 0;
    overflow: hidden; /* Чтобы не вылазила увеличенная картинка */
    border-radius: 0.5rem;
}
.widget-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}
.widget-item:hover .widget-image img {
    transform: scale(1.05);
}
.widget-category-overlay {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    color: #888;
}
.widget-title {
    font-size: 1rem;
    margin: 0.5rem 0 1rem;
    line-height: 1.2;
    position: relative;
}
.widget-title a {
    color: #333;
    position: relative;
    display: inline-block;
    text-decoration: none;
    background-image: linear-gradient(to left, #333 100%, #333 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: right bottom;
    transition: background-size 0.4s ease;
}

.widget-item:hover .widget-title a {
    background-size: 100% 2px;
}
.widget-description {
    font-size: 0.9rem;
    color: #555;
}

.widget-button-wrapper {
    text-align: end;
}

.widget-litcontent .btn-primary {
    display: inline-block;
    padding: 0.4rem 1rem;
    text-decoration: none;
    border-radius: 0.375rem;
    font-size: 0.8rem;
    transition: background 0.3s;
    background: #007bff;
    color: #fff;
}
.widget-litcontent .btn-primary:hover {
    background: #0056b3;
}
.clear {
    clear: both;
}

/* Адаптивность */
@media (max-width: 468px) {
    .widget-image {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 1rem 0;
    }
    .widget-litcontent .btn-primary {
        width: 100%;
        text-align: center;
    }
}
