/* ============================================================
   css/news-page.css — стили страницы «Мероприятия фонда»
   Использует переменные main.css, паттерны из documents/mission.css
   Подключать после main.css / effects.css.
   ============================================================ */

/* ---------- Хлебные крошки внутри hero ---------- */
.breadcrumbs {
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 3;
    padding: 0;
}
.breadcrumbs .container { text-align: left; }
.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.breadcrumbs__item { display: flex; align-items: center; gap: 6px; }
.breadcrumbs__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .68);
    transition: color .25s ease;
}
.breadcrumbs__link:hover { color: var(--color-white); }
.breadcrumbs__icon { width: 14px; height: 14px; }
.breadcrumbs__separator { color: rgba(255, 255, 255, .35); }
.breadcrumbs__current { color: rgba(255, 255, 255, .92); font-weight: 600; }

/* ---------- HERO ---------- */
.news-hero {
    position: relative;
    min-height: 46vh; /* было 42vh */
    display: flex;
    align-items: center;
    padding-bottom: 60px; /* было 30px */
    overflow: hidden;
    color: var(--color-white);
}
.news-hero__image-wrapper { position: absolute; inset: 0; z-index: 0; }
.news-hero__image { width: 100%; height: 100%; object-fit: cover; }
.news-hero__overlay { position: absolute; inset: 0; background: var(--gradient-hero); }

.news-hero .container { position: relative; z-index: 2; }
.news-hero__content { max-width: 640px; margin-top: 46px; }

.news-hero__title {
    font-family: var(--font-display), var(--font-main);
    font-size: clamp(30px, 4.2vw, 46px);
    color: var(--color-white);
    margin: 14px 0 16px;
    font-weight: 800;
}
.news-hero__subtitle {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .82);
    max-width: 540px;
}

@media (max-width: 640px) {
    .news-hero { min-height: 48vh; padding-bottom: 70px; text-align: center; }
    .breadcrumbs { top: 16px; }
    .breadcrumbs .container { text-align: center; }
    .breadcrumbs__list { justify-content: center; }
    .news-hero__content { margin-top: 64px; }
    .hero__eyebrow,
    .news-hero__title,
    .news-hero__subtitle { text-align: center; margin-left: auto; margin-right: auto; }
}

/* ---------- Секция мероприятий ---------- */
.news-section { padding: 70px 0 30px;
    position: relative;
    background: var(--color-cream); }

/* ---------- Фильтры ---------- */
.news-filters {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 auto 48px;
}
.news-filter {
    padding: 11px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border);
    background: var(--color-white);
    color: var(--color-text-muted);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}
.news-filter:hover {
    border-color: var(--color-plum);
    color: var(--color-plum);
}
.news-filter--active {
    background: var(--gradient-btn);
    border-color: transparent;
    color: var(--color-white);
    box-shadow: 0 10px 24px -10px rgba(62, 31, 50, .45);
}

/* ---------- Индикатор загрузки ---------- */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 0;
    color: var(--color-text-muted);
}
.news-loading.hidden { display: none; }

/* ---------- Сетка мероприятий ---------- */
.news-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    opacity: 0;
    transition: opacity .4s ease;
    justify-content: start;
}

.news-grid.loaded { opacity: 1; }

.news-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--color-text-muted);
    font-size: 16px;
}

/* ---------- Карточка мероприятия ---------- */
.news-card {
    max-width: 420px;
    width: 100%;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease;
}
.news-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-card-hover);
}

.news-card__image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.news-card:hover .news-card__image { transform: scale(1.06); }

.news-card__category {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(62, 31, 50, .82);
    color: var(--color-white);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.news-card__content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.news-card__date {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--color-plum);
    text-transform: capitalize;
}
.news-card__title {
    font-size: 17px;
    color: var(--color-plum-dark);
    font-family: var(--font-display), var(--font-main);
    line-height: 1.35;
}
.news-card__description {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
    flex: 1;
}
.news-card__link {
    align-self: flex-start;
    margin-top: 6px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 640px) {
    .news-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
    .news-filter { flex: 0 0 auto; }
    .news-grid { grid-template-columns: 1fr; }
}

.news-card__image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-white); /* подложка под затухающим фото */
}
.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
}
.news-card:hover .news-card__image { transform: scale(1.06); }

.news-card__content {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    margin-top: -18px;
    position: relative;
    z-index: 1;
}