/* News feature — landing section headline list */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    gap: 20px;
    align-items: stretch;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.news-item-thumb {
    flex: 0 0 180px;
    width: 180px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #1a1a1a;
}

.news-item-body {
    flex: 1 1 auto;
    min-width: 0;
    padding: 18px 20px 18px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.news-item-body.news-item-body-no-thumb { padding-left: 20px; }

.news-item-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.65;
    margin: 0 0 6px;
}

.news-item-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.news-item-descr {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .news-item { flex-direction: column; }
    .news-item-thumb { width: 100%; flex-basis: auto; aspect-ratio: 16 / 9; }
    .news-item-body,
    .news-item-body.news-item-body-no-thumb { padding: 16px 18px; }
}

.news-empty { text-align: center; color: #888; padding: 40px 0; }

/* Invisible trigger the gallery page watches with an IntersectionObserver
   to reveal more of the already-fetched batch as the visitor scrolls. */
.news-scroll-sentinel { height: 1px; }

/* Compact "Latest News" widget — homepage teaser, headline-only rows plus
   a link to the full news gallery. The full-card list above is used on the
   gallery page instead, where there's room for thumbnails and snippets. */
.news-widget {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 28px 28px 20px;
}

.news-widget-header {
    margin: 0 0 18px;
}

.news-widget-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 6px;
}

.news-widget-descr {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.65;
    margin: 0;
}

.news-widget-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.news-widget-item { font-size: 14px; line-height: 1.4; }

.news-widget-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.news-widget-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    background: #eee;
}

.news-widget-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-widget-thumb-empty::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

.news-widget-item-title { font-weight: 600; flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

.news-widget-item a:hover .news-widget-item-title { text-decoration: underline; }

.news-widget-empty { list-style: none; font-size: 13px; color: #888; }

.news-widget-more {
    display: block;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 14px;
}

.news-widget-more:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .news-widget-list { gap: 18px; }
    .news-widget-item { font-size: 15px; line-height: 1.45; }
    .news-widget-thumb { flex: 0 0 64px; width: 64px; height: 64px; }
}
