/**
 * Palmira Garden Post Header Block
 * Shortcode: [palmira_garden_post_header]
 */

/* ==========================================
   Wrapper (Canvas/Full-Width compat — own max-width)
   ========================================== */
.pg-post-header {
    max-width: 1170px;
    margin: 0 auto;
    padding: 32px 0 0 0;
    font-family: var(--font-primary, Geometria, sans-serif);
    box-sizing: border-box;
}

/* ==========================================
   Breadcrumbs
   ========================================== */
.pg-post-header__breadcrumbs {
    font-size: 13px;
    color: #888;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pg-post-header__breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pg-post-header__breadcrumbs a:hover {
    color: #124734;
}

.pg-post-header__breadcrumbs-sep {
    color: #c0c0c0;
}

.pg-post-header__breadcrumbs-current {
    color: #124734;
    font-weight: 500;
}

/* ==========================================
   Title
   ========================================== */
.pg-post-header__title {
    font-family: var(--font-heading, Arkhip, sans-serif)!important;
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2;
    color: #333333;
    margin: 0 0 22px 0;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* ==========================================
   Meta: Author + Date row
   ========================================== */
.pg-post-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E8E8E8;
}

/* ==========================================
   Author
   ========================================== */
.pg-post-header__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pg-post-header__author-img-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(18, 71, 52, 0.15);
    border: 2px solid rgba(18, 71, 52, 0.1);
}

.pg-post-header__author-img-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.pg-post-header__author-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pg-post-header__author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.pg-post-header__author-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.pg-post-header__author-name:hover {
    color: #124734;
}

.pg-post-header__author-role {
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin: 0;
    line-height: 1.3;
}

/* ==========================================
   Separator
   ========================================== */
.pg-post-header__separator {
    width: 1px;
    height: 28px;
    background: #d9d9d9;
    flex-shrink: 0;
}

/* ==========================================
   Date
   ========================================== */
.pg-post-header__date {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 400;
    color: #888;
}

.pg-post-header__date svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    color: #124734;
    opacity: 0.7;
}

.pg-post-header__date span {
    line-height: 1;
}

/* ==========================================
   Featured Image
   ========================================== */
.pg-post-header__image {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #F2F3F4;
    box-shadow: 0 6px 28px rgba(18, 71, 52, 0.14);
}

.pg-post-header__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        transparent 55%,
        rgba(13, 61, 44, 0.45) 100%
    );
    pointer-events: none;
}

.pg-post-header__image-info {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.3;
    z-index: 1;
}

/* ==========================================
   Responsive: Tablet (<=1024px)
   ========================================== */
@media (max-width: 1024px) {
    .pg-post-header__title {
        font-size: 28px;
    }

    .pg-post-header__image {
        aspect-ratio: 16 / 9;
        border-radius: 14px;
    }
}

/* ==========================================
   Responsive: Mobile (<=767px)
   ========================================== */
@media (max-width: 767px) {
    .pg-post-header__title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .pg-post-header__meta {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 16px;
    }

    .pg-post-header__author-img-wrap {
        width: 38px;
        height: 38px;
    }

    .pg-post-header__separator {
        height: 24px;
    }

    /* НЕ используем aspect-ratio для широких пропорций на мобиле — фиксированная высота */
    .pg-post-header__image {
        aspect-ratio: auto;
        height: 240px;
        border-radius: 12px;
    }

    .pg-post-header__image-info {
    font-size: 8px;
    bottom: 10px;
    left: 12px;
    right: 12px;
}
}

@media (max-width: 480px) {
    .pg-post-header__image {
        height: 200px;
    }
}
