/* News listing — brand shell aligned with Media / Meetings */
.news-page {
    width: var(--site-content, min(1520px, calc(100% - 16px)));
    margin: 0 auto;
    padding: 8px 0 48px;
    box-sizing: border-box;
}

.news-page .clan-hero,
.news-hero {
    text-align: left;
    background-image:
        linear-gradient(180deg, rgba(10, 18, 36, 0.28) 0%, rgba(10, 18, 36, 0.78) 100%),
        url('../uploads/news/681a1f2e8a0fd_IMG_20241207_112645_009.jpg');
    background-size: cover;
    background-position: center;
}

.create-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    background: var(--clan-gold, #FFD700);
    color: var(--clan-navy, #1E3C72);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    font-size: 0.92rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.create-post-btn:hover {
    background: #ffe566;
    color: var(--clan-navy, #1E3C72);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

.news-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    overflow: hidden;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(20, 35, 63, 0.08);
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(30, 60, 114, 0.16);
    border-color: #c5d3ea;
}

.news-image {
    aspect-ratio: 16 / 10;
    height: auto;
    background: linear-gradient(135deg, var(--clan-navy, #1E3C72), var(--clan-blue, #2A5298));
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}

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

.news-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.news-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-date {
    color: var(--clan-blue, #2A5298);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.news-title {
    color: var(--clan-navy, #1E3C72);
    font-size: 1.05rem;
    margin: 0 0 10px;
    line-height: 1.35;
}

.news-excerpt {
    display: block;
    color: #5b6b86;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
}

.news-card .read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 8px 14px;
    background: var(--clan-blue, #2A5298);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.news-card .read-more:hover {
    background: var(--clan-navy, #1E3C72);
    transform: translateY(-1px);
}

.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 24px;
    color: #5b6b86;
    background: #fff;
    border: 1px dashed #c9d6ea;
    border-radius: 14px;
}

.post-modal.is-open { display: block; }

.post-form .form-group { margin-bottom: 14px; }
.post-form label { display: block; margin-bottom: 6px; font-weight: 700; color: var(--clan-navy, #1E3C72); }
.post-form input[type="text"],
.post-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c9d6ea;
    border-radius: 8px;
    box-sizing: border-box;
}
.post-form textarea { min-height: 140px; }
.submit-btn {
    background: var(--clan-navy, #1E3C72);
    color: #fff;
    padding: 10px 18px;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
    background: var(--clan-blue, #2A5298);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 60, 114, 0.2);
}

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

@media (max-width: 640px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-page { width: calc(100% - 12px); padding: 16px 0 36px; }
}
