.homepage-news {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.homepage-news__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.homepage-news__head h2 {
    margin: 0;
    color: #0F263B;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
}

.homepage-news__more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cke-brand);
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.homepage-news__more-link img {
    width: 16px;
    height: 16px;
}

.homepage-news__filter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(319px, 100%);
}

.homepage-news__filter-label {
    color: #080808;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.homepage-news__filter-control {
    position: relative;
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: 1px solid #37506e;
    border-radius: 16px;
    background: #fbfbfb;
    color: #080808;
}

.homepage-news__filter-control:focus-within {
    outline: 2px solid #f5b301;
    outline-offset: 2px;
}

.homepage-news__filter-control select {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 0 64px 0 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.homepage-news__filter-control select::-ms-expand {
    display: none;
}

.homepage-news__filter-clear {
    position: absolute;
    top: 50%;
    right: 42px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    color: #080808;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.homepage-news__filter-clear:hover,
.homepage-news__filter-clear:focus-visible {
    text-decoration: none;
}

.homepage-news__filter-clear[hidden] {
    display: none;
}

.homepage-news__filter-clear img {
    width: 12px;
    height: 12px;
    display: block;
}

.homepage-news__filter-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: block;
    transform: translateY(-50%);
    pointer-events: none;
    object-fit: none;
    object-position: center;
}

.homepage-news__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.homepage-news__items[aria-busy="true"] {
    opacity: .65;
}

.homepage-news__empty {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.homepage-news__empty p {
    margin: 0;
}

.homepage-news__empty-link {
    color: var(--cke-brand);
    font-weight: 700;
}

.homepage-news__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.homepage-news__stack {
    display: grid;
    gap: 16px;
    align-items: stretch;
}

.homepage-news__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.homepage-news-card {
    overflow: hidden;
    background: var(--cke-surface-strong);
    border: 1px solid var(--cke-border);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08), 0 1px 1px rgba(0, 0, 0, 0.05);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.homepage-news-card--featured {
    display: grid;
    grid-template-rows: 196px minmax(0, 1fr);
}

.homepage-news-card--featured.homepage-news-card--without-image {
    grid-template-rows: minmax(0, 1fr);
}

.homepage-news-card__image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cke-surface-accent);
}

.homepage-news-card__image-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -15px;
    height: 62px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, #ffffff 65%);
    pointer-events: none;
}

.homepage-news-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.homepage-news-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 32px;
    min-width: 0;
}

.homepage-news-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    color: var(--cke-ink);
}

.homepage-news-card__date,
.homepage-news-card__meta-group {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: var(--cke-ink);
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.homepage-news-card__date > span,
.homepage-news-card__meta-group > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.homepage-news-card__meta-icon {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: block;
}

.homepage-news-card__date .homepage-news-card__meta-icon {
    filter: brightness(0) saturate(100%);
}

.homepage-news-card__meta-separator {
    width: 0;
    height: 8px;
    border-left: 1px solid #c1cddb;
    flex: 0 0 auto;
}

.homepage-news-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.homepage-news-card__chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 12px;
    border-radius: 80px;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.homepage-news-card__chip--purple,
.homepage-news-card__chip--violet {
    background: #eae6f7;
    color: #3f2791;
    border-color: currentColor;
}

.homepage-news-card__chip--green {
    background: #fafffa;
    color: #13800a;
    border-color: currentColor;
}

.homepage-news-card__chip--brown {
    background: #fee9d9;
    color: #2e1201;
    border-color: currentColor;
}

.homepage-news-card__chip--blue {
    background: #e4f0fb;
    color: #0052a3;
    border-color: currentColor;
}

.homepage-news-card__chip--neutral {
    background: #f4f7fa;
    color: var(--cke-ink);
    border-color: currentColor;
}

.homepage-news-card__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.homepage-news-card__title {
    margin: 0;
    color: var(--cke-brand);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.homepage-news-card--stacked .homepage-news-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.homepage-news-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cke-brand);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.homepage-news-card__cta:hover {
    text-decoration: none;
}

.homepage-news-card__cta img {
    width: 24px;
    height: 24px;
}

.homepage-news-card__lead {
    margin: 0;
    color: var(--cke-ink);
    font-size: 16px;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .homepage-news__head {
        align-items: flex-start;
        flex-direction: column;
    }

    .homepage-news__grid {
        grid-template-columns: 1fr;
    }

    .homepage-news-card--featured {
        grid-template-columns: 1fr;
    }

    .homepage-news-card__image-wrap {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .homepage-news-card__body {
        padding: 16px;
    }
}
