/* ─── Category Archive – Tin tức BĐS ────────────────────────────────────────
   Loaded only on category archive pages.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Container ───────────────────────────────────────────────────────────── */
.nc-wrap {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Category header banner ──────────────────────────────────────────────── */
.nc-header {
    background: linear-gradient(120deg, #111057 0%, #1e1a7a 35%, #312E8D 65%, #2b5a90 100%);
    padding: 40px 0 36px;
    position: relative;
    overflow: hidden;
}
.nc-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 15% 60%, rgba(255,255,255,.04) 0%, transparent 50%),
                      radial-gradient(circle at 85% 30%, rgba(255,255,255,.03) 0%, transparent 45%);
    pointer-events: none;
}
.nc-header__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}
.nc-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,.6);
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.nc-header__breadcrumb a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .15s;
}
.nc-header__breadcrumb a:hover { color: #fff; }
.nc-header__breadcrumb-sep { color: rgba(255,255,255,.35); }

.nc-header__title {
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -.4px;
}
.nc-header__count {
    font-size: 14px;
    color: rgba(255,255,255,.65);
}

/* ── Main body ───────────────────────────────────────────────────────────── */
.nc-body { padding: 48px 0 60px; }

/* ── Featured latest post ────────────────────────────────────────────────── */
.nc-featured {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E5E7EB;
}

.nc-feat {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 32px;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
.nc-feat:hover { text-decoration: none; color: inherit; }

.nc-feat__img-wrap {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #F3F4F6;
}
.nc-feat__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .4s;
}
.nc-feat:hover .nc-feat__img { transform: scale(1.04); }
.nc-feat__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #D1D5DB;
}

.nc-feat__body { }
.nc-feat__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #fff;
    background: var(--bds-primary, #312E8D);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.nc-feat__cat {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    margin-bottom: 10px;
}
.nc-feat__title {
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.nc-feat:hover .nc-feat__title { color: var(--bds-primary, #312E8D); }
.nc-feat__excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.65;
    margin: 0 0 18px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-feat__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.nc-feat__date,
.nc-feat__read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #9CA3AF;
}
.nc-feat__read-more {
    color: var(--bds-primary, #312E8D);
    font-weight: 600;
}
.nc-feat__read-more svg { transition: transform .15s; }
.nc-feat:hover .nc-feat__read-more svg { transform: translateX(3px); }

/* ── Section heading ─────────────────────────────────────────────────────── */
.nc-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px;
    padding-left: 14px;
    border-left: 4px solid var(--bds-primary, #312E8D);
    line-height: 1.3;
}

/* ── Posts grid ──────────────────────────────────────────────────────────── */
.nc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── News card ───────────────────────────────────────────────────────────── */
.nc-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #E5E7EB;
    transition: transform .15s, box-shadow .15s;
}
.nc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    text-decoration: none;
    color: inherit;
}

.nc-card__img-wrap {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #F3F4F6;
}
.nc-card__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .35s;
}
.nc-card:hover .nc-card__img { transform: scale(1.05); }
.nc-card__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #D1D5DB;
}

.nc-card__body { padding: 14px 16px 16px; }
.nc-card__cat {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    margin-bottom: 6px;
}
.nc-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 1.45;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.nc-card:hover .nc-card__title { color: var(--bds-primary, #312E8D); }
.nc-card__excerpt {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.55;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nc-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9CA3AF;
}

/* ── Pagination ──────────────────────────────────────────────────────────── */
.nc-pager {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.nc-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    background: #fff;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
}
.nc-pager .page-numbers:hover {
    background: var(--bds-primary-light, #EEF2FF);
    color: var(--bds-primary, #312E8D);
    border-color: #C7D2FE;
}
.nc-pager .page-numbers.current {
    background: var(--bds-primary, #312E8D);
    color: #fff;
    border-color: var(--bds-primary, #312E8D);
    font-weight: 700;
}
.nc-pager .page-numbers.dots {
    background: none;
    border: none;
    color: #9CA3AF;
    pointer-events: none;
}

/* ── Empty state ─────────────────────────────────────────────────────────── */
.nc-empty {
    text-align: center;
    padding: 64px 0;
    color: #6B7280;
}
.nc-empty svg { margin: 0 auto 16px; display: block; color: #D1D5DB; }
.nc-empty p { font-size: 16px; margin: 0; }

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

@media (max-width: 900px) {
    .nc-feat { grid-template-columns: 1fr; }
    .nc-feat__img-wrap { aspect-ratio: 16 / 9; }
    .nc-feat__title { font-size: 22px; }
    .nc-header__title { font-size: 24px; }
}

@media (max-width: 640px) {
    .nc-header__title { font-size: 20px; }
    .nc-grid { grid-template-columns: 1fr; }
    .nc-body { padding: 32px 0 48px; }
    .nc-featured { margin-bottom: 32px; padding-bottom: 32px; }
    .nc-feat__title { font-size: 19px; }
}
