/* =========================================================
   News / Property Digest — Blog-Details Layout
   Exclusive House & Land – theme1
   ========================================================= */

/* ── Main content wrapper ────────────────────────────────── */
.news-main-wrap {
    background: var(--ehl-bg, #f9fbfc);
    flex: 1;
    padding: 40px 0 72px;
}

.news-main-wrap--hero {
    padding-top: var(--content-pad-after-hero);
}

/* ── Two-column grid ─────────────────────────────────────── */
.news-blog-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

/* ── Left: article detail ────────────────────────────────── */
.news-blog-content {
    min-width: 0;
}

.news-blog-loading {
    display: flex;
    justify-content: center;
    padding: 80px 0;
}

.news-no-articles {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--ehl-border, #eee);
    padding: 72px 32px;
    text-align: center;
    color: var(--ehl-text-sec, #777);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.news-no-articles p {
    margin: 0;
    font-size: 1rem;
}

/* ── Article detail card ─────────────────────────────────── */
.nad-article {
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--ehl-border, #eee);
    box-shadow: var(--ehl-shadow-md, 0 4px 20px rgba(0,0,0,0.08));
    overflow: hidden;
}

.nad-hero-img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 0;
}

.nad-inner {
    padding: 32px 36px 36px;
}

.nad-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.nad-tag-inline {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ehl-blue, #209EBB);
    border-radius: 4px;
    padding: 4px 10px;
}

.nad-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--ehl-text-light, #999);
    font-weight: 500;
}

.nad-title {
    line-height: 1.28;
    margin: 0 0 24px;
}

.nad-body {
    margin-bottom: 28px;
}

.nad-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #3d4f5c;
    margin: 0 0 18px;
}

.nad-body p:last-child {
    margin-bottom: 0;
}

/* Paragraph section labels — bold first word used as a visual aid */
.nad-body p strong {
    font-weight: 700;
    color: var(--ehl-text, #222);
}

/* ── CTA block ───────────────────────────────────────────── */
.nad-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: var(--ehl-blue-pale, #f0f9fb);
    border-left: 4px solid var(--ehl-blue, #209EBB);
    border-radius: 0 10px 10px 0;
    padding: 18px 22px;
    margin-bottom: 28px;
}

.nad-cta-text {
    flex: 1;
    min-width: 180px;
    font-size: 0.93rem;
    color: #3d4f5c;
    line-height: 1.5;
    margin: 0;
}

.nad-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ehl-blue, #209EBB);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 7px;
    transition: background 0.15s;
    white-space: nowrap;
}

.nad-cta-btn:hover {
    background: var(--ehl-blue-dark, #1a8ba5);
    text-decoration: none;
    color: #fff;
}

/* ── Tags at bottom of article ───────────────────────────── */
.nad-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--ehl-border, #eee);
}

.nad-tags-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ehl-text-light, #999);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.nad-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ehl-blue-dark, #1a8ba5);
    background: var(--ehl-blue-light, #e1f3f8);
    border-radius: 20px;
    padding: 4px 12px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.nad-tag:hover {
    background: var(--ehl-blue, #209EBB);
    color: #fff;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.news-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d0dde5 transparent;
}

.news-blog-sidebar::-webkit-scrollbar {
    width: 4px;
}

.news-blog-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.news-blog-sidebar::-webkit-scrollbar-thumb {
    background: #d0dde5;
    border-radius: 2px;
}

/* ── Sidebar widget ──────────────────────────────────────── */
.news-sidebar-widget {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--ehl-border, #eee);
    box-shadow: var(--ehl-shadow-sm, 0 1px 4px rgba(0,0,0,0.04));
    padding: 20px 22px;
}

.news-sidebar-heading {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ehl-border, #eee);
}

/* ── Search ──────────────────────────────────────────────── */
.news-sidebar-search-wrap {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--ehl-border, #eee);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.news-sidebar-search-wrap:focus-within {
    border-color: var(--ehl-blue, #209EBB);
}

.news-sidebar-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 9px 12px;
    font-size: 0.88rem;
    font-family: inherit;
    background: transparent;
    color: var(--ehl-text, #222);
    min-width: 0;
}

.news-sidebar-search-input::placeholder {
    color: var(--ehl-text-light, #999);
}

.news-sidebar-search-btn {
    border: none;
    background: var(--ehl-blue, #209EBB);
    color: #fff;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.15s;
}

.news-sidebar-search-btn:hover {
    background: var(--ehl-blue-dark, #1a8ba5);
}

/* ── Topics / categories ─────────────────────────────────── */
.news-sidebar-topics {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nst-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: none;
    background: transparent;
    padding: 7px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
    text-align: left;
}

.nst-btn:hover {
    background: var(--ehl-blue-pale, #f0f9fb);
}

.nst-btn--active {
    background: var(--ehl-blue, #209EBB);
}

.nst-btn--active .nst-label,
.nst-btn--active .nst-count {
    color: #fff;
}

.nst-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ehl-text, #222);
}

.nst-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ehl-text-light, #999);
    background: var(--ehl-field-bg, #f0f2f5);
    border-radius: 10px;
    padding: 1px 7px;
    min-width: 22px;
    text-align: center;
}

.nst-btn--active .nst-count {
    background: rgba(255,255,255,0.25);
}

/* ── Sidebar article list ────────────────────────────────── */
.news-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nsl-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--ehl-border, #eee);
}

.nsl-item:last-child {
    border-bottom: none;
}

.nsl-item:hover {
    background: var(--ehl-blue-pale, #f0f9fb);
}

.nsl-item--active {
    background: var(--ehl-blue-light, #e1f3f8);
}

.nsl-item--active:hover {
    background: #d2ecf5;
}

.nsl-thumb {
    width: 68px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}

.nsl-thumb--placeholder {
    width: 68px;
    height: 52px;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--ehl-field-bg, #f0f2f5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ehl-text-light, #999);
}

.nsl-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nsl-tag {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ehl-blue, #209EBB);
}

.nsl-title {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ehl-text, #222);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nsl-date {
    font-size: 0.72rem;
    color: var(--ehl-text-light, #999);
}

.news-sidebar-noresults {
    font-size: 0.85rem;
    color: var(--ehl-text-light, #999);
    margin: 8px 0 0;
    text-align: center;
}

/* ── Disclaimer ──────────────────────────────────────────── */
.news-disclaimer-wrap {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 28px;
}

.news-disclaimer-inner {
    background: #eef2f5;
    border-radius: 8px;
    padding: 14px 20px;
}

.news-disclaimer-inner p {
    margin: 0;
    font-size: 0.76rem;
    color: var(--ehl-text-light, #999);
    line-height: 1.55;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
    .news-blog-grid {
        grid-template-columns: 1fr;
    }

    .news-blog-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 640px) {
    .news-blog-grid {
        padding: 0 16px;
        gap: 24px;
    }

    .nad-inner {
        padding: 22px 20px 26px;
    }

    .nad-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-disclaimer-wrap {
        padding: 0 16px;
    }

    .news-main-wrap {
        padding: 24px 0 56px;
    }
}
