/* News list + detail pages — minimal, professional styling layered on top of the Churche theme tokens. */

/* ---------- Shared state blocks (loading / empty / error) ---------- */
.news-state {
    text-align: center;
    padding: 70px 20px;
}

.news-state__icon {
    font-size: 2.75rem;
    color: var(--main-600);
    margin-bottom: 18px;
    display: inline-flex;
}

.news-state__title {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsl(var(--heading-color));
    margin-bottom: 8px;
}

.news-state__text {
    color: hsl(var(--body-color));
    max-width: 460px;
    margin: 0 auto 22px;
    line-height: 1.6;
}

.news-state .btn-retry {
    border: 1px solid var(--main-600);
    background: transparent;
    color: var(--main-600);
    border-radius: 999px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}

.news-state .btn-retry:hover {
    background: var(--main-600);
    color: #fff;
}

/* ---------- Card grid ---------- */
.news-card {
    background: hsl(var(--white));
    border: 1px solid rgba(13, 26, 38, 0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: inherit;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px 0 rgba(29, 31, 21, 0.12);
}

.news-card__image-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1efe9;
}

.news-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card__image {
    transform: scale(1.05);
}

.news-card__image--placeholder {
    object-fit: contain;
    padding: 44px;
    opacity: 0.75;
}

.news-card:hover .news-card__image--placeholder {
    transform: none;
}

.news-card__body {
    padding: 24px;
}

.news-card__date {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--main-600);
    margin-bottom: 10px;
}

.news-card__title {
    font-size: 1.12rem;
    font-weight: 600;
    color: hsl(var(--heading-color));
    margin-bottom: 10px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__summary {
    font-size: 0.92rem;
    color: hsl(var(--body-color));
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card__cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--main-600);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Skeleton loading ---------- */
.news-skeleton-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(13, 26, 38, 0.06);
    background: hsl(var(--white));
}

.news-skeleton-card__image {
    aspect-ratio: 16 / 10;
    background: linear-gradient(90deg, #f1efe9 25%, #e9e5db 37%, #f1efe9 63%);
    background-size: 400% 100%;
    animation: news-skeleton-shimmer 1.4s ease infinite;
}

.news-skeleton-card__line {
    height: 12px;
    margin: 18px 20px 0;
    border-radius: 6px;
    background: linear-gradient(90deg, #f1efe9 25%, #e9e5db 37%, #f1efe9 63%);
    background-size: 400% 100%;
    animation: news-skeleton-shimmer 1.4s ease infinite;
}

.news-skeleton-card__line--short {
    width: 40%;
}

.news-skeleton-card__line:last-child {
    margin-bottom: 20px;
}

@keyframes news-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: 0 0; }
}

/* ---------- Pagination ---------- */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
}

.news-pagination button {
    border: 1px solid rgba(13, 26, 38, 0.15);
    background: hsl(var(--white));
    color: hsl(var(--heading-color));
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-pagination button:hover:not(:disabled) {
    background: var(--main-600);
    color: #fff;
    border-color: var(--main-600);
}

.news-pagination button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.news-pagination__indicator {
    font-size: 0.9rem;
    color: hsl(var(--body-color));
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* ---------- Article (detail page) ---------- */
.news-article {
    max-width: 860px;
    margin: 0 auto;
}

.news-article__image {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
    max-height: 460px;
}

.news-article__image--placeholder {
    background: #f1efe9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    min-height: 260px;
}

.news-article__image--placeholder img {
    max-height: 180px;
    width: auto;
    opacity: 0.65;
}

.news-article__content {
    margin-top: 36px;
}

.news-article__date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--main-600);
    margin-bottom: 16px;
}

.news-article__title {
    font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem);
    font-weight: 700;
    color: hsl(var(--heading-color));
    line-height: 1.3;
    margin-bottom: 20px;
}

.news-article__summary {
    font-size: 1.1rem;
    color: hsl(var(--body-color));
    line-height: 1.7;
    font-style: italic;
    border-left: 3px solid var(--main-600);
    padding-left: 18px;
    margin-bottom: 30px;
}

.news-article__body {
    font-size: 1.02rem;
    color: hsl(var(--body-color));
    line-height: 1.9;
}

.news-article__body p {
    margin-bottom: 20px;
}

.news-article__source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--main-600);
    text-decoration: none;
    margin-top: 8px;
}

.news-article__source:hover {
    text-decoration: underline;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: hsl(var(--heading-color));
    text-decoration: none;
    margin-bottom: 32px;
}

.news-back-link:hover {
    color: var(--main-600);
}
