/*
 Theme Name:   ALDEE Elementor Theme Child
 Theme URI:    http://example.com/my-theme-child/
 Description:  Дочерняя тема для hello-elementor
 Author:       Ты
 Author URI:   http://example.com
 Template:     hello-elementor
 Version:      1.0
*/

@import url("../hello-elementor/style.css");

/* === ТВОЙ КАСТОМНЫЙ CSS НИЖЕ === */
/* === ГРИД КАРТОЧЕК === */

/* ТЕСТОВЫЙ СТИЛЬ */


.all-posts-grid {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 15px;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
    color: #1a1a1a;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    /*transform: translateY(-8px);*/
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.post-card:hover .card-img {
    /*transform: scale(1.05);*/
}

.post-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
    line-height: 1.4;
    color: #1a1a1a;
}

.post-title a {
    color: inherit;
    text-decoration: none;
}

.post-title a:hover {
    color: #c00;
}

.post-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid #388E3C;
    border-radius: 6px;
    color: #388E3C;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #4CAF50;
		border: 2px solid #4CAF50;
    color: white;
}

/* === Пагинация === */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.pagination .current {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

.pagination a:hover {
    background: #f5f5f5;
}

/* === Адаптивность === */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
    .page-title {
        font-size: 1.8rem;
    }
}


/* === ФИЛЬТР КАТЕГОРИЙ === */
.category-filter {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* === КАТЕГОРИИ В КАРТОЧКЕ === */
.post-categories {
    margin: 8px 0 12px;
    font-size: 0.85rem;
    color: #388E3C;
    font-weight: 500;
}

.post-categories a {
    color: inherit;
    text-decoration: none;
}

.post-categories a:hover {
    text-decoration: underline;
}

/* === ХОВЕР — ТОЛЬКО ТЕНЬ === */
.post-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Убираем scale у изображения */
.card-img {
    transition: none;
}

/* Убираем "Uncategorized" из всех ссылок */
.post-categories a[href*="uncategorized"] {
    display: none;
}

/* Плавная анимация появления */
#posts-container {
    min-height: 400px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

#posts-container.loading {
    opacity: 0.6;
}

.btn-view-all{
	color:#FFF;	
}

.btn-view-all:hover{
	color:#FFF;
	text-decoration:underline;
}