/**
 * Giao diện trang chuyên mục / lưu trữ bài viết.
 * Template: flatsome-child/archive.php
 */

.nma-archive {
    padding: 0 15px 45px;
}

/* Breadcrumb trên khung trắng */
.nma-archive__bc {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 4px;
}
.nma-archive__bc .nma-breadcrumbs {
    margin: 0;
    font-size: 13px;
    color: #6c757d;
}
.nma-archive__bc a { color: #6c757d; }
.nma-archive__bc a:hover { color: var(--primary-color); }

/* Khung thẻ trắng */
.nma-archive__card {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 14px rgba(0, 0, 0, .05);
    padding: 24px 28px 34px;
}

/* Tiêu đề "BLOG" */
.nma-archive__title {
    margin: 0 0 24px;
    padding-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #232535;
    border-bottom: 1px solid #ececec;
}

/* ===== 2 bài nổi bật (ảnh trên) ===== */
.nma-feat {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    margin-bottom: 30px;
}
@media (min-width: 768px) {
    .nma-feat { grid-template-columns: 1fr 1fr; gap: 30px; }
}
.nma-feat__item { margin: 0; }
.nma-feat__thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 14px;
    aspect-ratio: 16 / 10;
}
.nma-feat__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nma-feat__item:hover .nma-feat__thumb img { transform: scale(1.04); }
.nma-feat__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
}
.nma-feat__title a { color: #232535; }
.nma-feat__item:hover .nma-feat__title a { color: var(--primary-color); }
.nma-feat__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #6c757d;
}

/* ===== Hàng: danh sách + sidebar ===== */
.nma-archive__row {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.nma-archive__main {
    flex: 1 1 320px;
    min-width: 0;
}
.nma-archive__side { width: 100%; }
@media (min-width: 850px) {
    .nma-archive__side { flex: 0 0 280px; width: 280px; }
}

/* ===== Danh sách bài (ảnh trái) ===== */
.nma-list__item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    margin: 0;
    border-bottom: 1px solid #eee;
}
.nma-list__item:first-child { padding-top: 0; }
.nma-list__thumb {
    flex: 0 0 130px;
    width: 130px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
}
.nma-list__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.nma-list__item:hover .nma-list__thumb img { transform: scale(1.04); }
.nma-list__info { min-width: 0; }
.nma-list__title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}
.nma-list__title a { color: #232535; }
.nma-list__item:hover .nma-list__title a { color: var(--primary-color); }
.nma-list__excerpt {
    font-size: 13.5px;
    line-height: 1.6;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar "Danh mục": dùng chung panel với trang chi tiết bài viết
   (markup .nma-single + nma-single-post.css). Xem archive.php. */

/* ===== Responsive ===== */
@media (max-width: 549px) {
    .nma-archive__card { padding: 18px 14px 26px; }
    .nma-list__thumb { flex-basis: 100px; width: 100px; height: 78px; }
    .nma-list__title { font-size: 15px; }
}
