:root {
    --hpng-red: #cc0000;
    --hpng-text: #1b1b1b;
    --hpng-muted: #747474;
    --hpng-border: #ececec;
    --hpng-soft: #f7f7f7;
    --hpng-white: #ffffff;
    --hpng-radius: 3px;
    --hpng-shadow: 0 10px 30px rgba(0, 0, 0, 0.055);
}

.hpng,
.hpng * {
    box-sizing: border-box;
}

.hpng {
    width: 100%;
    color: var(--hpng-text);
    font-family: inherit;
}

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

.hpng-header {
    margin: 0 0 28px;
}

.hpng-title {
    margin: 0 0 5px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.hpng-subtitle {
    margin: 0;
    color: var(--hpng-muted);
    font-size: 16px;
}

.hpng-featured {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr);
    gap: 20px;
    margin: 0 0 32px;
}

.hpng-featured-main,
.hpng-featured-mini,
.hpng-card {
    background: var(--hpng-white);
    border: 1px solid var(--hpng-border);
    border-radius: var(--hpng-radius);
    overflow: hidden;
    box-shadow: var(--hpng-shadow);
}

.hpng-featured-main__link {
    display: block;
    min-height: 420px;
    position: relative;
    overflow: hidden;
}

.hpng-featured-main__image,
.hpng-featured-mini__image,
.hpng-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hpng-featured-main__link:hover .hpng-featured-main__image,
.hpng-featured-mini a:hover .hpng-featured-mini__image,
.hpng-card__media:hover .hpng-card__image {
    transform: scale(1.04);
}

.hpng-featured-main__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.76) 100%);
}

.hpng-featured-main__content {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #fff;
}

.hpng-featured-main__content strong {
    margin-top: 8px;
    font-size: clamp(24px, 3vw, 40px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hpng-featured-main__content span:not(.hpng-badges span) {
    max-width: 620px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.hpng-featured-main__content em,
.hpng-featured-mini__content em {
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.96);
    color: #1b1b1b;
    font-style: normal;
    font-size: 12px;
    font-weight: 700;
}

.hpng-featured-side {
    display: grid;
    gap: 18px;
}

.hpng-featured-mini a {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 128px;
}

.hpng-featured-mini__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    padding: 18px;
}

.hpng-featured-mini__content strong {
    font-size: 17px;
    line-height: 1.2;
}

.hpng-featured-mini__content em {
    margin-top: 2px;
    padding: 7px 12px;
    border: 1px solid var(--hpng-border);
    background: #fff;
}

.hpng-body {
    display: block;
}

.hpng-body--with-sidebar {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.hpng-sidebar {
    position: sticky;
    top: 24px;
}

.hpng-search,
.hpng-filter,
.hpng-latest {
    background: #fff;
    border: 1px solid var(--hpng-border);
    box-shadow: var(--hpng-shadow);
    padding: 18px;
    margin-bottom: 18px;
}

.hpng-sidebar-title,
.hpng-latest h3 {
    display: block;
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.hpng-search-row {
    display: flex;
    gap: 6px;
}

.hpng-search input,
.hpng-sort select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--hpng-border);
    background: #fff;
    color: var(--hpng-text);
    padding: 0 12px;
    border-radius: 2px;
    font: inherit;
}

.hpng-search button {
    width: 42px;
    min-width: 42px;
    border: 0;
    border-radius: 2px;
    background: var(--hpng-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hpng-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hpng-filter a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 10px;
    color: var(--hpng-muted);
    border-radius: 2px;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.hpng-filter a:hover,
.hpng-filter a.is-active {
    background: var(--hpng-soft);
    color: var(--hpng-text);
}

.hpng-filter a.is-active span {
    color: var(--hpng-red);
    font-weight: 700;
}

.hpng-filter small {
    color: var(--hpng-muted);
}

.hpng-latest a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--hpng-border);
}

.hpng-latest a:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.hpng-latest span {
    display: block;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.25;
}

.hpng-latest small,
.hpng-card__date {
    display: block;
    margin-top: 5px;
    color: var(--hpng-muted);
    font-size: 12px;
}

.hpng-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 0 0 18px;
}

.hpng-toolbar p {
    margin: 0;
    color: var(--hpng-muted);
    font-size: 14px;
}

.hpng-sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hpng-sort label {
    color: var(--hpng-muted);
    font-size: 13px;
    white-space: nowrap;
}

.hpng-sort select {
    min-width: 170px;
}

.hpng-grid {
    display: grid;
    grid-template-columns: repeat(var(--hpng-columns), minmax(0, 1fr));
    gap: 24px;
}

.hpng-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hpng-card__media {
    display: block;
    aspect-ratio: 1.35 / 1;
    overflow: hidden;
    background: #e9e9e9;
}

.hpng-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 20px 18px;
}

.hpng-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.hpng-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 2px 7px;
    border-radius: 50px;
    background: var(--hpng-red);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.035em;
}

.hpng-card__title {
    margin: 10px 0 0;
    font-size: 20px;
    line-height: 1.13;
    letter-spacing: -0.02em;
}

.hpng-card__title a:hover,
.hpng-latest a:hover span {
    color: var(--hpng-red);
}

.hpng-card__excerpt {
    margin: 12px 0 0;
    color: var(--hpng-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hpng-card__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 10px 18px;
    border: 1px solid var(--hpng-border);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hpng-card__excerpt + .hpng-card__button,
.hpng-card__date + .hpng-card__button,
.hpng-card__title + .hpng-card__button {
    margin-top: 18px;
}

.hpng-card__button:hover {
    background: var(--hpng-red);
    border-color: var(--hpng-red);
    color: #fff;
}

.hpng-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.hpng-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border: 1px solid var(--hpng-border);
    border-radius: 50px;
    background: #fff;
    font-weight: 700;
}

.hpng-pagination .page-numbers.current,
.hpng-pagination .page-numbers:hover {
    background: var(--hpng-red);
    border-color: var(--hpng-red);
    color: #fff;
}

.hpng-placeholder {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f2f2f2, #dedede);
    color: #bbb;
    font-size: 60px;
    font-weight: 800;
}

.hpng-empty {
    background: #fff;
    border: 1px solid var(--hpng-border);
    padding: 28px;
    color: var(--hpng-muted);
    text-align: center;
}

.hpng-featured-side article.hpng-featured-mini img.hpng-featured-mini__image.wp-post-image {
    height: 231px;
    object-position: 100% 0%;
    object-fit: cover;
}

@media (max-width: 1100px) {
    .hpng-body--with-sidebar {
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 22px;
    }

    .hpng-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .hpng-featured {
        grid-template-columns: 1fr;
    }

    .hpng-featured-main__link {
        min-height: 360px;
    }

    .hpng-body--with-sidebar {
        grid-template-columns: 1fr;
    }

    .hpng-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .hpng-featured-main__link {
        min-height: 300px;
    }

    .hpng-featured-main__content {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .hpng-featured-mini a {
        grid-template-columns: 110px 1fr;
    }

    .hpng-toolbar,
    .hpng-sort {
        align-items: stretch;
        flex-direction: column;
    }

    .hpng-grid {
        grid-template-columns: 1fr;
    }
}
