.calls-intro {
    margin: 0 0 1.75rem;
    color: var(--text-muted, #64748b);
    font-size: 1.05rem;
    line-height: 1.8;
}

.news-page {
    padding: 2rem 0 4rem;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* News card — zstp-inspired list */
.news-card {
    display: grid;
    gap: 1.25rem 1.75rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.news-card:last-child {
    border-bottom: none;
}

/* List: متن راست + تصویر چپ (RTL) */
.news-card--list {
    grid-template-columns: 1fr minmax(200px, 280px);
}

/* Featured: تاریخ | متن | تصویر بزرگ (RTL) */
.news-card--featured {
    grid-template-columns: 80px minmax(0, 1fr) minmax(280px, 40%);
    grid-template-areas: 'date content media';
    padding: 2rem 0 2.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
    align-items: start;
}

.news-card--featured .news-card-date {
    grid-area: date;
}

.news-card--featured .news-card-main {
    grid-area: content;
}

.news-card--featured .news-card-media {
    grid-area: media;
}

.news-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    min-height: 72px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    flex-shrink: 0;
}

.news-card-date--large {
    width: 88px;
    min-height: 88px;
}

.news-day {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.news-card-date--large .news-day {
    font-size: 2rem;
}

.news-month {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.news-card-main {
    min-width: 0;
}

.news-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.news-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.55;
    margin-bottom: 0.6rem;
}

.news-card--featured .news-card-title {
    font-size: 1.35rem;
}

.news-card-title a {
    color: var(--text);
    transition: color 0.2s;
}

.news-card-title a:hover {
    color: var(--primary);
}

.news-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-meta-author {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.author-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.news-meta-comments::before {
    content: '💬 ';
    font-size: 0.75rem;
}

.news-card-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card--featured .news-card-excerpt {
    -webkit-line-clamp: 4;
}

.news-read-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    transition: color 0.2s;
}

.news-read-more:hover {
    color: var(--primary);
}

.news-card-media {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.news-card-media--featured {
    aspect-ratio: 16 / 10;
    min-height: 260px;
    max-height: 360px;
    width: 100%;
    align-self: stretch;
}

.news-card-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center;
    transition: transform 0.35s ease;
}

.news-card-media:hover img {
    transform: scale(1.04);
}

.news-date-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: 0.4rem 0.55rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: var(--shadow);
    text-align: center;
    line-height: 1.2;
}

.news-date-overlay .news-day {
    font-size: 1.35rem;
}

.news-date-overlay .news-month {
    font-size: 0.72rem;
    margin-top: 0.1rem;
}

.news-empty {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
}

/* Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.page-num,
.page-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    background: var(--surface);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-num:hover,
.page-nav:hover:not(.is-disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.page-num.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-nav.is-disabled {
    opacity: 0.4;
    cursor: default;
}

/* Detail page */
.page-banner--compact {
    padding: 1.25rem 0;
}

.news-article {
    padding: 2rem 0 4rem;
}

.news-article-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

.news-article-header {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.news-article-header h1 {
    font-size: clamp(1.3rem, 3vw, 1.75rem);
    font-weight: 800;
    line-height: 1.5;
    margin: 0.35rem 0 0.5rem;
    color: var(--text);
}

.news-article-image {
    margin-bottom: 1.5rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.news-article-image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
}

/* Gallery — up to 10 images */
.news-gallery {
    margin-bottom: 1.75rem;
}

.news-gallery-main {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: #000;
}

.news-gallery-main img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    background: #111;
    display: block;
}

.news-gallery-main figcaption {
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: var(--surface);
    border-top: 1px solid var(--border);
    min-height: 2.5rem;
}

.news-gallery-main figcaption:empty {
    display: none;
}

.news-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.news-gallery-thumb {
    flex: 0 0 calc(10% - 0.45rem);
    min-width: 64px;
    max-width: 90px;
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
    transition: border-color 0.2s, transform 0.2s;
}

.news-gallery-thumb:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.news-gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(232, 93, 4, 0.25);
}

.news-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-gallery-count {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .news-gallery-thumb {
        flex: 0 0 calc(20% - 0.4rem);
        min-width: 56px;
    }
}

.news-article-body {
    font-size: 1rem;
    line-height: 2;
    color: var(--text);
}

.news-article-body p {
    margin-bottom: 1rem;
}

.news-back-link {
    display: inline-block;
    margin-top: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.news-back-link:hover {
    color: var(--accent);
}

.news-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
}

.news-sidebar h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.news-sidebar-list {
    list-style: none;
}

.news-sidebar-list li {
    padding: 0.75rem 0;
    border-bottom: 1px dashed var(--border);
}

.news-sidebar-list li:last-child {
    border-bottom: none;
}

.news-sidebar-list a {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.news-sidebar-list a:hover {
    color: var(--primary);
}

.news-sidebar-list time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .news-card--list {
        grid-template-columns: 1fr;
    }

    .news-card--list .news-card-media {
        order: -1;
        max-height: 240px;
        aspect-ratio: 16/9;
    }

    .news-card--featured {
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            'date date'
            'content content'
            'media media';
    }

    .news-card--featured .news-card-media {
        min-height: 220px;
        max-height: 280px;
    }

    .news-article-grid {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .news-pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .page-nav {
        min-width: 40px;
        min-height: 40px;
    }
}

@media (max-width: 560px) {
    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-date {
        flex-direction: row;
        width: auto;
        min-height: auto;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        justify-self: start;
    }

    .news-day {
        font-size: 1.25rem;
    }
}
