.widget-litcontent {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.widget-litcontent-item {
    display: flex;
    flex-direction: column;
    width: calc(33.333% - 0.333rem);
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.widget-litcontent-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.widget-litcontent-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.widget-litcontent-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.widget-litcontent-item:hover .widget-litcontent-image {
    transform: scale(1.05);
}

.widget-litcontent-category {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(0, 123, 255, 0.85);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
    z-index: 2;
}

.widget-litcontent-category a {
    color: #fff;
    text-decoration: none;
}

.widget-litcontent-body {
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
    gap: 0.7rem;
    flex-grow: 1;
}

.widget-litcontent-title {
    font-size: 1.1rem;
    margin: 0;
}

.widget-litcontent-title a {
    color: #333;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
    display: inline;
}

.widget-litcontent-item:hover .widget-litcontent-title a {
    text-decoration-color: #007bff;
    color: #007bff;
}

.widget-litcontent-description {
    font-size: 0.9rem;
    color: #666;
    flex-grow: 1;
}

.widget-litcontent-footer {
    margin-top: auto;
    text-align: center;
}

.widget-litcontent-btn {
    display: inline-block;
    width: 100%;
    padding: 0.6rem 1rem;
    background: #007bff;
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.widget-litcontent-btn:hover {
    background: #0056b3;
}

/* Адаптивность */
@media (max-width: 992px) {
    .widget-litcontent-item {
        width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .widget-litcontent-item {
        width: 100%;
    }
}
