﻿
.news-detail-page {
    background: #f4f7fb;
    padding: 48px 0 80px;
    min-height: 60vh;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.news-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.news-article-cover {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.news-article-body {
    padding: 36px 40px;
}

.news-article-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e94560;
    margin-bottom: 10px;
}

.news-article h1 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
    margin-bottom: 12px;
}

.news-article-meta {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeef2;
}

.news-article-content {
    font-size: 15px;
    color: #333;
    line-height: 1.85;
}

    .news-article-content p {
        margin-bottom: 16px;
    }

    .news-article-content img {
        max-width: 100%;
        border-radius: 8px;
        margin: 16px 0;
    }

    .news-article-content h2, .news-article-content h3 {
        color: #1a1a2e;
        font-weight: 700;
        margin: 28px 0 12px;
    }

/* Sidebar reuse */
.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    margin-bottom: 24px;
}

    .sidebar-card h3 {
        font-size: 15px;
        font-weight: 700;
        color: #1a1a2e;
        margin-bottom: 14px;
        padding-bottom: 10px;
        border-bottom: 2px solid #e94560;
    }

.sidebar-news-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    color: inherit;
}

    .sidebar-news-item:last-child {
        border-bottom: none;
    }

    .sidebar-news-item img {
        width: 64px;
        height: 48px;
        object-fit: cover;
        border-radius: 6px;
        flex-shrink: 0;
    }

.sidebar-news-title {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-date {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.7);
    text-decoration: none;
    margin-bottom: 16px;
}

    .back-link:hover {
        color: #fff;
    }

.skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .5
    }
}

@media (max-width: 860px) {
    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-article-body {
        padding: 24px 20px;
    }
}