/* ── NEWS / ARTICLES PAGE STYLES ── */

/* Page Banner */
.news-page-banner {
    background: var(--color-primary, #2d6a4f);
    padding: 18px 0;
}
.news-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.news-banner-title {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.03em;
}
.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}
.news-breadcrumb a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
}
.news-breadcrumb a:hover { color: #fff; }
.news-breadcrumb i { font-size: 10px; }

/* Page Layout */
.news-page {
    padding: 32px 0 60px;
    background: #f5f5f5;
    min-height: 60vh;
}
.news-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

/* ── Sidebar ── */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Search */
.ns-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}
.ns-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 13px;
    color: #333;
    background: transparent;
}
.ns-search button {
    background: none;
    border: none;
    padding: 9px 12px;
    cursor: pointer;
    color: #888;
    font-size: 14px;
    transition: color 0.15s;
}
.ns-search button:hover { color: var(--color-primary, #2d6a4f); }

/* Widget */
.ns-widget {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ns-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    cursor: pointer;
    user-select: none;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.ns-widget-arrow {
    font-size: 11px;
    color: #888;
    transition: transform 0.2s;
}
.ns-widget-arrow.rotated { transform: rotate(180deg); }

/* Category list */
.ns-cat-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
    transition: max-height 0.3s ease;
}
.ns-cat-list.collapsed { display: none; }
.ns-cat-list li a {
    display: block;
    padding: 7px 16px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.ns-cat-list li a:hover,
.ns-cat-list li.active a {
    background: #f0faf4;
    color: var(--color-primary, #2d6a4f);
}

/* Recent articles list */
.ns-recent-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}
.ns-recent-list.collapsed { display: none; }
.ns-recent-list li {
    border-bottom: 1px solid #f3f3f3;
}
.ns-recent-list li:last-child { border-bottom: none; }
.ns-recent-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.ns-recent-item:hover { background: #f9f9f9; }
.ns-recent-item img {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}
.ns-recent-info {}
.ns-recent-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ns-recent-item:hover .ns-recent-title { color: var(--color-primary, #2d6a4f); }
.ns-recent-date {
    font-size: 11px;
    color: #aaa;
}

/* ── Articles List Main ── */
.news-main {}

/* 3-column grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* News Card */
.news-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}
.news-card-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
}
.news-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}
.news-card-date i { margin-right: 3px; }
.news-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    flex: 1;
    transition: color 0.15s;
}
.news-card-title:hover { color: var(--color-primary, #2d6a4f); }
.news-card-btn {
    display: inline-block;
    background: #222;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 3px;
    text-decoration: none;
    align-self: flex-start;
    transition: background 0.15s;
}
.news-card-btn:hover { background: var(--color-primary, #2d6a4f); }

/* ── Article Detail ── */

/* Cover image with overlay */
.na-cover {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}
.na-cover-img {
    width: 100%;
    display: block;
    max-height: 420px;
    object-fit: cover;
}
.na-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.0) 100%);
    padding: 32px 24px 20px;
}
.na-cover-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.na-cover-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
}

/* Video embed */
.na-video-wrap {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.na-video-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.na-video-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.na-video-name {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}
.na-video-sub {
    font-size: 12px;
    color: #999;
}
.na-video-frame {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.na-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-sidebar { display: none; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-banner-inner { flex-direction: column; align-items: flex-start; }
    .na-cover-title { font-size: 16px; }
}

@media (max-width: 480px) {
    .news-grid { grid-template-columns: 1fr; }
}
