/* Xəbər detalı + qalereya */

.news-detail {
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #ea580c;
    background: #f8fafc;
    padding: 28px 0 64px;
}

.news-detail__container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-detail__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

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

.news-detail__header {
    margin-bottom: 22px;
}

.news-detail__badge {
    display: inline-flex;
    padding: 5px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.news-detail__header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1.2;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

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

.news-gallery {
    margin-bottom: 28px;
}

.news-gallery__main {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e2e8f0;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.news-gallery__main img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.news-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.news-gallery__thumb {
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    padding: 0;
    background: #e2e8f0;
    cursor: pointer;
    aspect-ratio: 1;
}

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

.news-gallery__thumb.is-active,
.news-gallery__thumb:hover {
    border-color: var(--accent);
}

.news-detail__body {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px 26px;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.75;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.news-detail__body p {
    margin: 0 0 1em;
}

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

.news-related {
    margin-top: 48px;
}

.news-related h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ink);
}

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

.news-related__card {
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-related__card:hover {
    transform: translateY(-3px);
    border-color: rgba(234, 88, 12, 0.4);
}

.news-related__media {
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

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

.news-related__ph {
    display: grid;
    place-items: center;
    color: #94a3b8;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.news-related__card h3 {
    margin: 0;
    padding: 12px 12px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

    .news-detail__container {
        padding: 0 14px;
    }

    .news-detail__body {
        padding: 16px;
        border-radius: 14px;
        font-size: 0.98rem;
    }

    .news-gallery__main {
        border-radius: 14px;
    }

    .news-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

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