/* /assets/css/news-widget.css */
.home-news-calendar {
    margin-top: 20px;
}

.home-news-calendar__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.home-news {
    display: flex;
    flex-direction: column;
    min-height: 520px;
    max-height: 520px;
    padding: 22px;
    border: 1px solid rgba(212, 166, 58, 0.12);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(35, 25, 19, 0.97), rgba(19, 14, 11, 0.99));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 14px 26px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.home-news__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex: 0 0 auto;
}

.home-news__eyebrow {
    margin: 0 0 6px;
    color: var(--color-accent);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-news__title {
    margin: 0;
    color: var(--color-text);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.7rem, 2.2vw, 2.3rem);
    line-height: 0.98;
}

.home-news__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
}

.home-news__body::-webkit-scrollbar {
    width: 10px;
}

.home-news__body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 999px;
}

.home-news__body::-webkit-scrollbar-thumb {
    background: rgba(212, 166, 58, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.home-news__body::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 166, 58, 0.32);
    background-clip: padding-box;
}

.home-news__list {
    display: grid;
    gap: 14px;
}

.home-news__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    border: 1px solid rgba(212, 166, 58, 0.09);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.014));
    transition:
        border-color 180ms ease,
        transform 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.home-news__card:hover {
    border-color: rgba(212, 166, 58, 0.18);
    background: rgba(255, 255, 255, 0.035);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}

.home-news__card--empty {
    min-height: 180px;
    justify-content: center;
}

.home-news__meta {
    margin: 0;
    color: var(--color-text-soft);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-news__card-title {
    margin: 0;
    color: var(--color-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.28;
}

.home-news__card-text {
    margin: 0;
    color: var(--color-text-muted);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.94rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .home-news-calendar__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-news {
        min-height: 420px;
        max-height: 420px;
        padding: 18px;
        border-radius: 18px;
    }

    .home-news__header {
        margin-bottom: 14px;
    }
}

/* mobile: let page scroll, not the widget card */
@media (max-width: 900px) {
    .calendar-widget,
    .calendar-widget__list,
    .calendar-widget__item,
    .news-widget,
    .news-widget__list,
    .news-widget__item {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
    }
}
