.news-page {
}

.news-header {
    margin-bottom: 1.8rem;
}

.news-header h2 {
    margin-bottom: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.news-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.news-card-img-link {
    display: block;
    overflow: hidden;
}

.news-card img,
.news-card .img-placeholder {
    width: 100%;
    min-height: 240px;
    height: 240px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.news-card:hover .news-card-img-link img {
    transform: scale(1.04);
}

.news-card-body {
    padding: 1rem;
}

.news-card-date {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.news-card-body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
}

.news-card-body h3 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.2s;
}

.news-card-body h3 a:hover {
    color: var(--brand);
}

.news-card-body p {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.97rem;
    line-height: 1.5;
}

/* ── News detail page ────────────────────────────────────────────── */
.news-detail-hero {
    width: 100%;
    max-height: 520px;
    overflow: hidden;
}

.news-detail-hero img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.news-detail-body {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    max-width: 820px;
}

.news-detail-header {
    margin-bottom: 1.8rem;
}

.news-detail-date {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    text-transform: capitalize;
}

.news-detail-header h1 {
    margin: 0;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.15;
}

.news-detail-content {
    color: #374151;
    font-size: 1.08rem;
    line-height: 1.75;
}

.news-detail-content p { margin: 0 0 1.1rem; }
.news-detail-content h2,
.news-detail-content h3 { margin: 1.6rem 0 0.7rem; }
.news-detail-content img { border-radius: 10px; margin: 1rem 0; }
.news-detail-content a { color: var(--brand); }

.news-detail-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.news-detail-gallery h3 {
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.detail-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.detail-gallery-grid figure {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.detail-gallery-grid figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.detail-gallery-grid figure:hover img {
    transform: scale(1.05);
}

.news-detail-back {
    margin-top: 2.5rem;
}

/* Breadcrumb (shared with adopt-details) */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover { color: var(--brand); }

.breadcrumb span:last-child {
    color: var(--text);
    font-weight: 500;
}

@media (max-width: 980px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img,
    .news-card .img-placeholder {
        min-height: 210px;
        height: 210px;
    }
}
