/* ==========================================================================
    КАРТКА СТАТТІ (POST-CARD) — ВИПРАВЛЕНА ВЕРСІЯ
   ========================================================================== */

.post-card {
	position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
}

.post-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Контейнер зображення */
.post-image {
    flex: 0 0 50%;
    max-width: 500px;
    position: relative; /* КРИТИЧНО для іконок */
    overflow: hidden;   /* Щоб зум картинки не виходив за межі */
    border-radius: 4px;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Ефект наїзду */
.post-card:hover .post-image img {
    transform: scale(1.08);
}

/* Спільні стилі для іконок на фото */
.post-icon-photo,
.post-icon-sticky {
    position: absolute;
    z-index: 2;
    background: rgba(76, 175, 80, 0.9);
    color: #fff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.post-icon-photo {
    bottom: 10px;
    left: 10px;
}

.post-icon-sticky {
    top: 10px;
    right: 10px;
    background: #ffc107; /* Золотий для закріплених */
}

/* Інфо-блок (текст) */
.post-info {
    flex: 1; /* Займає решту простору */
    padding-left: 10px;
    min-width: 0; /* Фікс для Chrome, щоб текст не розтягував флекс */
}

.post-info h2 {
    font-size: 22px;
    line-height: 1.3;
    margin: 10px 0;
}

.post-info h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.2s;
}

.post-info h2 a:hover {
    color: var(--green, #4CAF50);
}

/* Мета-дані */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.post-meta .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    color: #333;
}

/* Уривок тексту */
.post-excerpt {
    color: #444;
    line-height: 1.6;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Адмін-інструменти та категорія */
.post-admin-tools-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0; /* Краще зверху, щоб відділити від тексту */
    padding-top: 15px;
    margin-top: auto;
}

.post-categories-list {
    display: flex;
    align-items: center;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 4px;
}

.post-categories-list a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
}

/* Адаптивність */
@media screen and (max-width: 1200px) {
    .post-card {
        flex-direction: column;
    }
    
    .post-image, 
    .post-info {
        width: 100%;
        max-width: 100%;
        flex: none;
        padding-left: 0;
    }
    
    .post-image {
        margin-bottom: 15px;
    }

    .post-info h2 {
        font-size: 20px;
    }
}