.posts-list-hero {
    position: relative;
    padding: 155px 0 65px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(23, 55, 110, 0.1), rgba(155, 27, 34, 0.08));
}

.posts-list-title {
    max-width: 850px;
    margin: 12px 0;
    font-size: clamp(2.1rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.posts-list-lead {
    max-width: 720px;
    margin: 0;
    color: var(--text-body);
    font-size: 1rem;
}

.posts-list-content {
    padding: 48px 0 90px;
}

.posts-filter {
    padding: 24px;
    border-radius: 24px;
}

.posts-filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) minmax(140px, .7fr) auto;
    align-items: end;
    gap: 16px;
}

.posts-filter-field > span:first-child {
    display: block;
    margin-bottom: 7px;
    color: var(--text-heading);
    font-size: .78rem;
    font-weight: 800;
}

.posts-filter .form-control,
.posts-filter .form-select {
    min-height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: var(--bg-card);
    color: var(--text-heading);
}

.posts-search-control {
    position: relative;
    display: block;
}

.posts-search-control i {
    position: absolute;
    top: 50%;
    left: 14px;
    z-index: 2;
    color: var(--text-muted);
    transform: translateY(-50%);
}

.posts-search-control .form-control {
    padding-left: 40px;
}

.posts-filter-actions {
    display: flex;
    gap: 8px;
}

.posts-filter-actions .btn-premium,
.posts-filter-actions .btn-premium-outline {
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.posts-results-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 42px 0 24px;
}

.posts-results-heading h2 {
    margin-bottom: 5px;
    font-size: 1.7rem;
    font-weight: 900;
}

.posts-results-heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: .86rem;
}

.posts-back-link {
    padding: 9px 16px;
    border-radius: 12px;
    white-space: nowrap;
}

.posts-list-card {
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.posts-list-card .news-img-box {
    height: 205px;
}

.posts-list-card .news-sdg-badges {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.posts-list-card .news-sdg-badges .news-tag-badge {
    position: static;
}

.posts-list-card .news-sdg-badge {
    display: inline-flex;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid color-mix(in srgb, var(--news-sdg-color), transparent 35%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    color: var(--news-sdg-color);
    font-size: .68rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: normal;
}

.posts-card-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    max-width: calc(100% - 28px);
    padding: 6px 11px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 9px;
    background: rgba(3,8,18,.86);
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posts-state {
    padding: 70px 20px;
    color: var(--text-muted);
    text-align: center;
}

.posts-pagination {
    display: flex;
    justify-content: center;
    gap: 7px;
    margin-top: 36px;
}

.posts-page-button {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-card);
    color: var(--text-heading);
    font-size: .84rem;
    font-weight: 800;
    transition: var(--transition-smooth);
}

.posts-page-button:hover:not(:disabled),
.posts-page-button.active {
    border-color: hsl(var(--brand-accent));
    background: hsl(var(--brand-accent));
    color: #fff;
}

.posts-page-button:disabled {
    cursor: not-allowed;
    opacity: .4;
}

@media (max-width: 991px) {
    .posts-filter-grid { grid-template-columns: 1fr 1fr; }
    .posts-search-field { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .posts-list-hero { padding: 125px 0 50px; }
    .posts-filter { padding: 18px; }
    .posts-filter-grid { grid-template-columns: 1fr; }
    .posts-search-field { grid-column: auto; }
    .posts-filter-actions { flex-wrap: wrap; }
    .posts-results-heading { align-items: flex-start; flex-direction: column; }
}
