/* ═══════════════════════════════════════════════════════════════
   News — Editorial magazine layout
   ═══════════════════════════════════════════════════════════════ */

/* ── Listing ──────────────────────────────────────────────────── */

.news-section {
    padding: 6rem 0 6rem;
    min-height: 60vh;
    background: linear-gradient(180deg, var(--cream) 0%, #f5f3ef 100%);
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-title {
    font-family: var(--serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text, #1c1c21);
    margin: 0 0 0.35rem;
}

.news-subtitle {
    font-size: 0.95rem;
    color: var(--text-3, #8a8a96);
    margin: 0;
}

.news-header-actions {
    display: flex;
    gap: 0.6rem;
}

.btn-secondary-dark {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.18);
    color: var(--text-2, #4a4a55);
}
.btn-secondary-dark:hover {
    border-color: var(--gold, #c8a960);
    color: var(--text, #1c1c21);
    background: transparent;
}

/* ── Search ───────────────────────────────────────────────────── */

.news-search {
    position: relative;
    max-width: 380px;
    margin-bottom: 2rem;
}

.news-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-3, #8a8a96);
    pointer-events: none;
}

.news-search-input {
    width: 100%;
    padding: 0.6rem 0.85rem 0.6rem 2.5rem;
    font-size: 0.88rem;
    font-family: inherit;
    border: 1px solid var(--border, rgba(0,0,0,0.1));
    border-radius: 6px;
    background: transparent;
    color: var(--text, #1c1c21);
    outline: none;
    transition: border-color 0.2s ease;
}

.news-search-input::placeholder {
    color: var(--text-3, #8a8a96);
}

.news-search-input:focus {
    border-color: var(--gold, #c8a960);
}

/* ── Pagination ──────────────────────────────────────────────── */

.news-pagination {
    text-align: center;
    padding: 2rem 0 0;
}

.news-show-more {
    background: var(--gold, #c8a960);
    border-color: var(--gold, #c8a960);
    color: #1a1a1a;
}
.news-show-more:hover {
    background: var(--gold-dim, #a8904d);
    border-color: var(--gold-dim, #a8904d);
    color: #1a1a1a;
    transform: translateY(-1px);
}

.news-pagination-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-3, #8a8a96);
}

/* 2-column card grid */
.news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-item-wrap {
    border-bottom: none !important;
}

.news-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border, rgba(0,0,0,0.07));
    border-radius: var(--radius, 8px);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
}

.news-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-item-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2520 0%, #1a1612 100%);
    flex-shrink: 0;
}

.news-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s var(--ease, ease);
}

.news-item:hover .news-item-image img {
    transform: scale(1.04);
}

.news-item-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.45) 40%,
        transparent 70%
    );
    padding: 1.1rem 1.1rem 1rem;
}

.news-item-title {
    font-family: var(--serif, 'Playfair Display', Georgia, serif);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.news-item-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1rem;
    flex-wrap: wrap;
}

.news-item-date {
    font-size: 0.67rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-dim, #a8904d);
}

.news-item-author {
    font-size: 0.7rem;
    color: var(--text-3, #8a8a96);
}

.news-item-meta-sep {
    color: var(--border, rgba(0,0,0,0.2));
    font-size: 0.7rem;
}

.news-item-excerpt {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-2, #4a4a55);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-3, #8a8a96);
}

.news-item-author {
    font-weight: 500;
}

/* Wrapper keeps admin controls separate from the link */
.news-item-wrap {
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.07));
}

.news-item-wrap:last-child {
    border-bottom: none;
}

.news-item-wrap .news-item {
    border-bottom: none;
}

.news-item-admin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0 0;
}

.news-empty {
    text-align: center;
    color: var(--text-3, #8a8a96);
    padding: 6rem 0;
    font-size: 1.05rem;
}

/* ── Visibility Badge ─────────────────────────────────────────── */

.news-badge-public {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(34,197,94,0.12);
    color: #16a34a;
}

.news-badge-private {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--gold-glow, rgba(200,169,96,0.15));
    color: var(--gold-dim, #a8904d);
}

/* ── Article Detail ───────────────────────────────────────────── */

.news-banner {
    width: 100%;
    height: 50vh;
    min-height: 320px;
    max-height: 520px;
    overflow: hidden;
    position: relative;
}

.news-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-article {
    padding: 3.5rem 0 5rem;
}

.news-article-inner {
    max-width: 680px;
    margin: 0 auto;
}

.news-article-title {
    font-family: var(--serif, 'Playfair Display', Georgia, serif);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text, #1c1c21);
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.news-article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    font-size: 0.85rem;
    color: var(--text-3, #8a8a96);
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.07));
}

.news-article-meta-sep {
    opacity: 0.35;
}

/* ── Article Body — Long-form Prose ───────────────────────────── */

.news-article-body {
    font-size: 1.08rem;
    line-height: 1.8;
    color: var(--text-2, #4a4a55);
}

.news-article-body h2 {
    font-family: var(--serif, 'Playfair Display', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text, #1c1c21);
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.news-article-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text, #1c1c21);
    margin: 2rem 0 0.5rem;
}

.news-article-body p {
    margin-bottom: 1.35rem;
}

.news-article-body blockquote {
    border-left: 3px solid var(--gold, #c8a960);
    padding: 0.25rem 0 0.25rem 1.5rem;
    margin: 2rem 0;
    color: var(--text-3, #8a8a96);
    font-style: italic;
    font-size: 1.1rem;
}

.news-article-body ul,
.news-article-body ol {
    margin: 1rem 0 1.35rem 1.5rem;
}

.news-article-body li {
    margin-bottom: 0.4rem;
}

.news-article-body a {
    color: var(--gold-dim, #a8904d);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius, 8px);
    margin: 2rem 0;
}

/* ── Article Footer ───────────────────────────────────────────── */

.btn-edit {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.btn-edit:hover {
    background: #15803d;
    border-color: #15803d;
    color: #fff;
}

.news-article-actions {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border, rgba(0,0,0,0.07));
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.news-article-back a {
    font-size: 0.88rem;
    color: var(--text-3, #8a8a96);
    text-decoration: none;
    transition: color 0.15s;
    letter-spacing: 0.01em;
}

.news-article-back a:hover {
    color: var(--gold, #c8a960);
}

/* ── Attachments ──────────────────────────────────────────────── */

.news-attachments {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border, rgba(0,0,0,0.07));
}

.news-attachments-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-3, #8a8a96);
    margin-bottom: 0.9rem;
}

.news-attachments-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.news-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    background: var(--cream-2, #f5f3ef);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 6px;
    font-size: 0.88rem;
    color: var(--text-2, #4a4a55);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-attachment-link:hover {
    border-color: var(--gold, #c8a960);
    background: var(--gold-glow, rgba(200,169,96,0.08));
    color: var(--text, #1c1c21);
}

.news-attachment-link svg:first-child {
    flex-shrink: 0;
    color: var(--gold-dim, #a8904d);
}

.news-attachment-dl {
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 0.5rem;
    color: var(--text-3, #8a8a96);
}

/* ── Admin Badges (manage page) ───────────────────────────────── */

.badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}

.badge-public {
    background: rgba(34,197,94,0.12);
    color: #16a34a;
}

.badge-private {
    background: var(--gold-glow, rgba(200,169,96,0.15));
    color: var(--gold-dim, #a8904d);
}

/* ── Responsive ───────────────────────────────────────────────── */

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

    .news-banner {
        height: 35vh;
        min-height: 220px;
    }
}
