/* ─── Tin tức BĐS – Main news page ───────────────────────────────────────────
   Loaded only on the BDS – Tin tức BĐS page template.
   ─────────────────────────────────────────────────────────────────────────── */

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

/* ── Hero ────────────────────────────────────────────────────────────────── */
.nt-hero {
    background: linear-gradient(120deg, #111057 0%, #1e1a7a 35%, #312E8D 65%, #2b5a90 100%);
    position: relative;
    overflow: hidden;
}

.nt-hero__inner {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 280px;
}

.nt-hero__content {
    padding: 52px 40px 52px 0;
    position: relative;
    z-index: 2;
}

.nt-hero__title {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -.5px;
    line-height: 1.2;
}

.nt-hero__subtitle {
    font-size: 14px;
    color: rgba(255,255,255,.72);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 420px;
}

/* Search bar */
.nt-hero__search {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 18px;
    gap: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.3);
    max-width: 460px;
}
.nt-hero__search-icon { color: #9CA3AF; flex-shrink: 0; }
.nt-hero__search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #111827;
    min-width: 0;
    font-family: inherit;
}
.nt-hero__search-input::placeholder { color: #9CA3AF; }
.nt-hero__search-btn {
    background: var(--bds-primary, #312E8D);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    transition: background .15s;
    font-family: inherit;
}
.nt-hero__search-btn:hover { background: var(--bds-primary-dark, #231D7A); }

/* Hero building illustration */
.nt-hero__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding-top: 20px;
}
.nt-hero__svg { width: 100%; max-width: 480px; height: 280px; display: block; }

/* ── Section shared ──────────────────────────────────────────────────────── */
.nt-section { padding: 52px 0; background: #fff; }
.nt-section--alt { background: #F9FAFB; }

.nt-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
    flex-wrap: wrap;
}

.nt-section__title {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0;
    padding-left: 14px;
    border-left: 4px solid var(--bds-primary, #312E8D);
    line-height: 1.3;
}

.nt-view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    border: 1.5px solid var(--bds-primary, #312E8D);
    border-radius: 999px;
    padding: 6px 16px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.nt-view-all:hover { background: var(--bds-primary, #312E8D); color: #fff; text-decoration: none; }

/* ── Featured posts layout ───────────────────────────────────────────────── */
.nt-featured {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 28px;
    align-items: start;
}

/* Main large featured post */
.nt-feat-main {
    display: block;
    text-decoration: none;
    color: inherit;
}
.nt-feat-main:hover { text-decoration: none; color: inherit; }

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

.nt-feat-main__cat {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    margin-bottom: 8px;
}
.nt-feat-main__title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.nt-feat-main:hover .nt-feat-main__title { color: var(--bds-primary, #312E8D); }
.nt-feat-main__excerpt {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nt-feat-main__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9CA3AF;
}

/* Side small posts */
.nt-feat-side {
    display: flex;
    flex-direction: column;
}

.nt-feat-side__item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    padding: 18px 0;
    border-bottom: 1px solid #E5E7EB;
}
.nt-feat-side__item:first-child { padding-top: 0; }
.nt-feat-side__item:last-child { border-bottom: none; padding-bottom: 0; }
.nt-feat-side__item:hover { text-decoration: none; color: inherit; }

.nt-feat-side__img-wrap {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #F3F4F6;
    flex-shrink: 0;
}
.nt-feat-side__img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
    transition: transform .3s;
}
.nt-feat-side__item:hover .nt-feat-side__img { transform: scale(1.05); }
.nt-feat-side__no-img {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #D1D5DB;
}

.nt-feat-side__cat {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    margin-bottom: 4px;
}
.nt-feat-side__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.45;
    margin: 0 0 7px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.nt-feat-side__item:hover .nt-feat-side__title { color: var(--bds-primary, #312E8D); }
.nt-feat-side__date {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #9CA3AF;
}

/* ── News card (3-col grid sections) ─────────────────────────────────────── */
.nt-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.news-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;
}
.news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    text-decoration: none;
    color: inherit;
}

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

.news-card__body { padding: 14px 16px 16px; }
.news-card__cat {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--bds-primary, #312E8D);
    margin-bottom: 6px;
}
.news-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;
}
.news-card:hover .news-card__title { color: var(--bds-primary, #312E8D); }
.news-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;
}
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #9CA3AF;
}

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

@media (max-width: 900px) {
    .nt-hero__inner { grid-template-columns: 1fr; }
    .nt-hero__visual { display: none; }
    .nt-hero__content { padding: 44px 0; }
    .nt-hero__title { font-size: 30px; }
    .nt-featured { grid-template-columns: 1fr; }
    .nt-feat-main__title { font-size: 20px; }
}

@media (max-width: 640px) {
    .nt-hero__title { font-size: 24px; }
    .nt-hero__search { flex-wrap: wrap; border-radius: 14px; padding: 10px; gap: 8px; }
    .nt-hero__search-btn { width: 100%; justify-content: center; border-radius: 10px; }
    .nt-grid { grid-template-columns: 1fr; }
    .nt-feat-side__item { grid-template-columns: 90px 1fr; gap: 10px; }
    .nt-section { padding: 36px 0; }
    .nt-section__title { font-size: 17px; }
}
