/* Скрываем боковые элементы на главной */
.home .ads,
.home .aside {
    display: none;
}

/* Основной контейнер главной страницы */
.home .main {
    margin: 0 auto;
    padding: 30px;
    width: 100%;
    max-width: 1400px;
    background: white;
    grid-column: 1 / -1;
}

/* Сетка для анонсов записей: 3 равные колонки */
.home .loop {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr));
    gap: 30px;
    margin: 0 auto 30px;
}

/* Стили для каждого анонса */
.home .article-loop {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.home .article-loop:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.25);
    border-color: #3498db;
}

.home .article-loop img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.home .article-loop:hover img {
    transform: scale(1.05);
}

.home .article-loop h2 {
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.4;
    color: #2c3e50;
}

.home .article-loop h2 a {
    color: #2c3e50;
    text-decoration: none;
    transition: all 0.3s ease;
}

.home .article-loop h2 a:hover {
    color: #e74c3c;
    padding-left: 5px;
}

.home .article-loop .entry-excerpt {
    color: #7f8c8d;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.home .more-link {
    color: #3498db;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #3498db;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.home .more-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Пагинация */
.home .pag {
    margin: 40px 0 0 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.home .pag .page-numbers {
    display: inline-block;
    padding: 12px 18px;
    margin: 0 4px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
}

.home .pag .page-numbers:hover,
.home .pag .page-numbers.current {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Адаптивность для главной */
@media (max-width: 1200px) {
    .home .loop {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .home .loop {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .home .main {
        padding: 20px;
    }
    
    .home .article-loop {
        padding: 20px;
    }
    
    .home .article-loop img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .home .main {
        padding: 15px;
    }
    
    .home .article-loop {
        padding: 15px;
    }
    
    .home .article-loop img {
        height: 160px;
    }
    
    .home .pag .page-numbers {
        padding: 10px 14px;
        margin: 0 2px;
        font-size: 13px;
    }
}