/* Xəbərlər — premium grid / list */

.news-page {
    --news-ink: #0f172a;
    --news-muted: #64748b;
    --news-line: #e2e8f0;
    --news-accent: #ea580c;
    background:
        radial-gradient(ellipse 70% 40% at 90% 0%, rgba(234, 88, 12, 0.07), transparent 50%),
        linear-gradient(180deg, #f8fafc 0%, #fff 40%, #f8fafc 100%);
    padding: 36px 0 64px;
    min-height: 55vh;
}

.news-page__container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.news-page__title {
    margin: 0 0 6px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--news-ink);
}

.news-page__lead {
    margin: 0;
    color: var(--news-muted);
    font-size: 0.95rem;
}

.news-view-toggle {
    display: inline-flex;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--news-line);
    border-radius: 12px;
    gap: 4px;
}

.news-view-toggle__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--news-muted);
    font-size: 13px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease;
}

.news-view-toggle__btn.is-active {
    background: #0f172a;
    color: #fff;
}

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

.news-feed--list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-card {
    background: #fff;
    border: 1px solid var(--news-line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-feed--list .news-card {
    flex-direction: row;
    min-height: 168px;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.4);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.09);
}

.news-card__media {
    position: relative;
    display: block;
    background: #e2e8f0;
    overflow: hidden;
}

.news-feed--grid .news-card__media {
    aspect-ratio: 16 / 10;
}

.news-feed--list .news-card__media {
    flex: 0 0 280px;
    max-width: 38%;
    min-height: 100%;
}

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

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

.news-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 160px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: rgba(255, 255, 255, 0.55);
    font-size: 2rem;
}

.news-card__gallery-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.news-card__body {
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.news-card__badge {
    display: inline-flex;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    color: #fff;
    background: #0f172a;
}

.news-card__badge--promotion {
    background: #dc2626;
}

.news-card__badge--advice {
    background: #0369a1;
}

.news-card__badge--news {
    background: #0f172a;
}

.news-card__title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--news-ink);
}

.news-card__title a {
    color: inherit;
    text-decoration: none;
}

.news-card__title a:hover {
    color: var(--news-accent);
}

.news-card__excerpt {
    margin: 0 0 14px;
    color: var(--news-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    flex: 1;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    color: var(--news-muted);
    font-size: 0.84rem;
}

.news-card__footer span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news-card__read {
    color: var(--news-accent);
    font-weight: 700;
    text-decoration: none;
}

.news-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 16px;
    color: var(--news-muted);
}

.news-empty i {
    font-size: 2rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.news-page__pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

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

    .news-feed--list .news-card__media {
        flex-basis: 220px;
        max-width: 42%;
    }
}

@media (max-width: 720px) {
    .news-page {
        padding: 24px 0 48px;
    }

    .news-page__header {
        align-items: stretch;
    }

    .news-view-toggle {
        width: 100%;
    }

    .news-view-toggle__btn {
        flex: 1;
        justify-content: center;
    }

    .news-feed--grid {
        grid-template-columns: 1fr;
    }

    .news-feed--list .news-card {
        flex-direction: column;
        min-height: 0;
    }

    .news-feed--list .news-card__media {
        flex: none;
        max-width: none;
        width: 100%;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .news-card__body {
        padding: 14px 14px 12px;
    }

    .news-card__title {
        font-size: 1rem;
    }
}
