.recent-updated-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
}

/* Первый элемент (большой) */
.recent-updated-item.featured-item {
    flex: 0 0 100%; /* На мобильных сначала full width */
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (min-width: 768px) {
    .recent-updated-item.featured-item {
        flex: 0 0 calc(50% - 10px); /* 50% на десктопах */
    }
}

/* Контейнер для плитки (вторая половина) */
.recent-updated-tiles {
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

@media (min-width: 768px) {
    .recent-updated-tiles {
        flex: 0 0 calc(50% - 10px);
    }
}

/* Элементы плитки */
.recent-updated-item.tile-item {
    display: flex;
    gap: 15px;
    border-radius: 6px;
    padding: 10px;
    transition: all 0.3s ease;
}

.recent-updated-item.tile-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ddd;
}

/* Изображения */
.recent-updated-item .item-image {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}

.featured-item .item-image {
    width: 100%;
    height: 200px;
}

@media (min-width: 768px) {
    .featured-item .item-image {
        width: 40%;
        height: auto;
    }
}

.recent-updated-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recent-updated-item:hover .item-image img {
    transform: scale(1.05);
}

/* Контент */
.recent-updated-item .item-content {
    flex: 1;
}

.featured-item .item-content {
    padding: 20px;
}

.tile-item .item-content {
    padding: 5px 0;
}

/* Заголовки */
.recent-updated-item .item-title {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.featured-item .item-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.recent-updated-item .item-title a {
    color: #333;
    text-decoration: none;
}

.recent-updated-item .item-title a:hover {
    color: #0073aa;
}

/* Дата */
.recent-updated-item .updated-date {
    color: #666;
    font-size: 0.85em;
    display: inline-block;
    margin-bottom: 10px;
}

/* Отрывок текста */
.recent-updated-item .item-excerpt {
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.featured-item .item-excerpt {
    margin-bottom: 20px;
}

/* Кнопка "Читать далее" */
.read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #005a87;
    color: #fff;
}

/* Сообщение, если страницы не найдены */
.no-pages-found {
    padding: 20px;
    background: #f8f8f8;
    text-align: center;
    color: #666;
    border-radius: 4px;
}
