/*
 * Nahinest — Design System CSS v3.0
 * Màu chủ: Xanh lá tươi + Nâu đất (Đà Lạt thiên nhiên)
 * Font: System UI (không cần load ngoài, nhanh hơn)
 * File: wp-content/themes/flatsome-child/nahinest.css
 */

/* ─── DESIGN TOKENS ─────────────────────────────── */
:root {
    /* Brand colors — theo logo NaHiNest */
    --nh-green:        #1A3D17;
    --nh-green-light:  #1A3D17;
    --nh-green-pale:   #E8F0E6;
    --nh-green-dark:   #0F2710;
    --nh-brown:        #C8890A;
    --nh-brown-light:  #E0A020;
    --nh-brown-pale:   #FDF4E0;
    --nh-cream:        #FFFDF7;
    --nh-gold:         #C8890A;

    /* Neutral */
    --nh-text:         #1A1A1A;
    --nh-text-2:       #555555;
    --nh-text-3:       #999999;
    --nh-border:       #E4EDE2;
    --nh-white:        #FFFFFF;

    /* Status */
    --nh-success:      #1D9E75;
    --nh-danger:       #A32D2D;

    /* Layout */
    --nh-radius:       10px;
    --nh-radius-lg:    16px;
    --nh-radius-xl:    24px;
    --nh-shadow:       0 2px 16px rgba(0,0,0,0.07);
    --nh-shadow-lg:    0 4px 32px rgba(0,0,0,0.10);
    --nh-max-width:    1160px;
}


/* ─── RESET & BASE ───────────────────────────────── */
.nahinest-wrap,
.nahinest-wrap *,
.nahinest-wrap *::before,
.nahinest-wrap *::after { box-sizing: border-box; }

.nahinest-wrap {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--nh-text);
    background: var(--nh-cream);
    font-size: 15px;
    line-height: 1.65;
}

.nh-builder-block {
    background: transparent;
}

.nahinest-wrap * { font-family: inherit; }

.nh-container {
    max-width: var(--nh-max-width);
    margin: 0 auto;
    padding: 0 20px;
}


/* ─── HEADER & NAV ──────────────────────────────── */
.nh-header {
    background: var(--nh-white);
    border-bottom: 1px solid var(--nh-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}

.nh-header-inner {
    max-width: var(--nh-max-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.nh-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.nh-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--nh-green);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nh-logo-icon i { color: #fff; font-size: 20px; }
.nh-logo-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--nh-green);
    letter-spacing: -0.3px;
    line-height: 1.1;
}
.nh-logo-tagline {
    font-size: 10px;
    color: var(--nh-brown);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Nav links */
.nh-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nh-nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--nh-text-2);
    text-decoration: none;
    transition: color 0.15s;
}
.nh-nav-link:hover,
.nh-nav-link.current { color: var(--nh-green); }

/* Hotline in header */
.nh-header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nh-phone-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--nh-green-pale);
    border: 1px solid var(--nh-green);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--nh-green);
    text-decoration: none;
    transition: background 0.15s;
}
.nh-phone-badge:hover { background: var(--nh-green); color: #fff; }
.nh-phone-badge i { font-size: 14px; }

.nh-header-cta {
    background: var(--nh-brown);
    color: #fff;
    border: none;
    border-radius: var(--nh-radius);
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s;
}
.nh-header-cta:hover { background: var(--nh-brown-light); color: #fff; }

/* Mobile hamburger */
.nh-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--nh-text);
    font-size: 24px;
}
.nh-mobile-nav {
    display: none;
    background: var(--nh-white);
    border-top: 1px solid var(--nh-border);
    padding: 12px 20px;
    flex-direction: column;
    gap: 12px;
}
.nh-mobile-nav.open { display: flex; }
.nh-mobile-nav .nh-nav-link { font-size: 15px; padding: 4px 0; }


/* ─── HERO ───────────────────────────────────────── */
.nh-hero {
    background: var(--nh-green);
    color: #fff;
    padding: 60px 20px 52px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.nh-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--nh-cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}
.nh-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #A8D5A2;
    margin-bottom: 14px;
}
.nh-hero h1 {
    font-size: clamp(26px, 5vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    color: #fff;
}
.nh-hero h1 em {
    color: #C8D96A;
    font-style: normal;
}
.nh-hero-sub {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Search box */
.nh-search-box {
    background: var(--nh-white);
    border-radius: var(--nh-radius-lg);
    padding: 16px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    max-width: 640px;
    margin: 0 auto 32px;
    box-shadow: var(--nh-shadow-lg);
}
.nh-sf { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 120px; }
.nh-sf label {
    font-size: 10px;
    font-weight: 700;
    color: var(--nh-text-3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nh-sf select,
.nh-sf input {
    font-size: 13px;
    padding: 8px 10px;
    border: 1px solid var(--nh-border);
    border-radius: 8px;
    background: #fafaf8;
    color: var(--nh-text);
    transition: border-color 0.15s;
}
.nh-sf select:focus,
.nh-sf input:focus {
    border-color: var(--nh-green);
    outline: none;
    background: #fff;
}
.nh-search-btn {
    background: var(--nh-green);
    color: #fff;
    border: none;
    border-radius: var(--nh-radius);
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    align-self: flex-end;
    transition: background 0.15s;
}
.nh-search-btn:hover { background: var(--nh-green-light); }

/* Stats */
.nh-hero-stats {
    display: flex;
    gap: 36px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 8px;
}
.nh-stat-num {
    font-size: 26px;
    font-weight: 700;
    color: #C8D96A;
    line-height: 1.1;
}
.nh-stat-label {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 2px;
}


/* ─── SECTIONS ───────────────────────────────────── */
.nh-section {
    padding: 52px 0;
}
.nh-section-alt {
    background: var(--nh-white);
}
.nh-section-dark {
    background: var(--nh-green-dark);
    color: #fff;
}
.nh-section-brown {
    background: var(--nh-brown);
    color: #fff;
}

.nh-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 10px;
}
.nh-section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--nh-green);
    margin-bottom: 4px;
}
.nh-section-alt .nh-section-title,
.nh-section-alt .nh-section-sub { color: inherit; }
.nh-section-title-center {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--nh-green);
    margin-bottom: 4px;
}
.nh-section-sub {
    font-size: 14px;
    color: var(--nh-text-3);
}
.nh-section-sub-center {
    text-align: center;
    font-size: 14px;
    color: var(--nh-text-3);
    margin-bottom: 32px;
}
.nh-see-all {
    font-size: 13px;
    color: var(--nh-brown);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nh-see-all:hover { text-decoration: underline; }


/* ─── UX BUILDER BLOCKS ──────────────────────────── */
.nh-builder-block .nh-section {
    padding: 18px 0;
}

.nh-builder-block .nh-container {
    max-width: 100%;
    padding: 0;
}

.nh-category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.nh-category-tile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--nh-white);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius);
    padding: 14px;
    text-decoration: none;
    color: var(--nh-text);
    min-height: 74px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.nh-category-tile:hover {
    border-color: var(--nh-green);
    box-shadow: var(--nh-shadow);
    transform: translateY(-1px);
}

.nh-category-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nh-green-pale);
    color: var(--nh-green);
    flex: 0 0 auto;
}

.nh-category-icon i {
    font-size: 20px;
}

.nh-category-label,
.nh-category-count {
    display: block;
}

.nh-category-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.nh-category-count {
    font-size: 12px;
    color: var(--nh-text-3);
    line-height: 1.25;
    margin-top: 2px;
}


/* ─── VILLA CARDS ────────────────────────────────── */
.nh-villa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}

.nh-villa-card {
    background: var(--nh-white);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius-lg);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
}
.nh-villa-card:hover {
    border-color: var(--nh-green-light);
    box-shadow: var(--nh-shadow-lg);
    transform: translateY(-2px);
}

.nh-villa-img {
    aspect-ratio: 16/9;
    height: auto;
    background: linear-gradient(135deg, var(--nh-green), var(--nh-green-light));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.nh-villa-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.nh-villa-img-placeholder { font-size: 52px; color: rgba(255,255,255,0.25); }

.nh-badge-cap {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--nh-green-dark);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.nh-badge-status {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.nh-badge-avail { background: var(--nh-green-pale); color: var(--nh-green); }
.nh-badge-booked { background: #FCEBEB; color: var(--nh-danger); }

.nh-villa-body { padding: 14px 16px; }
.nh-villa-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--nh-text); }
.nh-villa-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--nh-text-3);
    margin-bottom: 10px;
}
.nh-villa-meta span { display: flex; align-items: center; gap: 3px; }
.nh-villa-meta i { font-size: 13px; }

.nh-villa-desc { font-size: 13px; color: var(--nh-text-2); margin-bottom: 10px; line-height: 1.5; }

.nh-villa-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.nh-villa-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--nh-green-pale);
    color: var(--nh-green);
    border-radius: 5px;
    font-weight: 500;
}

.nh-villa-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
}
.nh-villa-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--nh-green);
    line-height: 1;
}
.nh-villa-price-unit { font-size: 12px; font-weight: 400; color: var(--nh-text-3); }
.nh-villa-price-weekend { font-size: 12px; color: var(--nh-text-3); }

.nh-hidden-notice {
    font-size: 11px;
    color: var(--nh-brown);
    background: var(--nh-brown-pale);
    border-radius: 6px;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 12px;
}

.nh-villa-btns { display: flex; gap: 8px; }
.nh-btn-view {
    flex: 1;
    padding: 9px;
    background: var(--nh-green);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.15s;
}
.nh-btn-view:hover { background: var(--nh-green-light); color: #fff !important; }
.nh-btn-zalo {
    padding: 9px 12px;
    background: #0068FF;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s;
    white-space: nowrap;
}
.nh-btn-zalo:hover { background: #0052CC; color: #fff; }


/* ─── WHY US ─────────────────────────────────────── */
.nh-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 100%;
}
@media (max-width: 1024px) {
    .nh-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .nh-why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .nh-why-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; }
}
@media (max-width: 800px) {
    .nh-why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .nh-why-grid { grid-template-columns: 1fr; }
}
.nh-why-card {
    background: var(--nh-cream);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius-lg);
    padding: 22px 14px;
    text-align: center;
    transition: border-color 0.15s, transform 0.15s;
    min-width: 0;
    overflow: hidden;
}
.nh-why-card:hover { border-color: var(--nh-green); transform: translateY(-2px); }
.nh-why-icon {
    width: 48px;
    height: 48px;
    background: var(--nh-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.nh-why-icon i { color: #fff; font-size: 22px; }
.nh-why-title { font-size: 15px; font-weight: 700; color: var(--nh-green); margin-bottom: 6px; }
.nh-why-desc { font-size: 13px; color: var(--nh-text-3); line-height: 1.5; }


/* ─── TESTIMONIALS ───────────────────────────────── */
.nh-testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.nh-testi {
    background: var(--nh-white);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius-lg);
    padding: 18px;
}
.nh-testi-stars { color: var(--nh-gold); font-size: 14px; margin-bottom: 8px; }
.nh-testi-text {
    font-size: 14px;
    color: var(--nh-text-2);
    line-height: 1.65;
    margin-bottom: 14px;
    font-style: italic;
}
.nh-testi-author { display: flex; align-items: center; gap: 10px; }
.nh-testi-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nh-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.nh-testi-name { font-size: 13px; font-weight: 700; }
.nh-testi-loc { font-size: 11px; color: var(--nh-text-3); }


/* ─── NEWS CARDS ─────────────────────────────────── */
.nh-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}
.nh-news-card {
    background: var(--nh-white);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
    text-decoration: none;
    display: block;
}
.nh-news-card:hover { box-shadow: var(--nh-shadow-lg); transform: translateY(-2px); }
.nh-news-img {
    height: 150px;
    background: linear-gradient(135deg, var(--nh-brown), var(--nh-brown-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nh-news-img img { width: 100%; height: 100%; object-fit: cover; }
.nh-news-img i { font-size: 40px; color: rgba(255,255,255,0.3); }
.nh-news-img.green { background: linear-gradient(135deg, var(--nh-green), var(--nh-green-light)); }
.nh-news-body { padding: 14px 16px; }
.nh-news-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--nh-brown);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.nh-news-title { font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--nh-text); margin-bottom: 6px; }
.nh-news-date { font-size: 11px; color: var(--nh-text-3); }


/* ─── CTA BAND ───────────────────────────────────── */
.nh-cta-band {
    background: var(--nh-brown);
    color: #fff;
    padding: 52px 20px;
    text-align: center;
}
.nh-cta-band h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
.nh-cta-band p { font-size: 15px; opacity: 0.85; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.nh-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nh-cta-white {
    background: #fff;
    color: var(--nh-brown);
    border: none;
    border-radius: var(--nh-radius);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: opacity 0.15s;
}
.nh-cta-white:hover { opacity: 0.9; color: var(--nh-brown); }
.nh-cta-zalo {
    background: #0068FF;
    color: #fff;
    border: none;
    border-radius: var(--nh-radius);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
}
.nh-cta-zalo:hover { background: #0052CC; color: #fff; }
.nh-cta-call {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--nh-radius);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: border-color 0.15s, background 0.15s;
}
.nh-cta-call:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }


/* ─── FOOTER ─────────────────────────────────────── */
.nh-footer {
    background: var(--nh-green-dark);
    color: #fff;
    padding: 48px 0 0;
}
.nh-footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.nh-footer-brand-desc {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 12px;
    line-height: 1.7;
}
.nh-footer-col h4 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.55;
    margin-bottom: 14px;
}
.nh-footer-col ul { list-style: none; }
.nh-footer-col li { padding: 4px 0; }
.nh-footer-col a {
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    transition: color 0.15s;
}
.nh-footer-col a:hover { color: #fff; }
.nh-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}
.nh-footer-contact-item i { font-size: 15px; opacity: 0.7; margin-top: 1px; flex-shrink: 0; }
.nh-footer-contact-item span { font-size: 13px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.nh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
    gap: 8px;
}
.nh-footer-socials { display: flex; gap: 8px; }
.nh-social-btn {
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.15s;
}
.nh-social-btn:hover { background: rgba(255,255,255,0.2); }
.nh-social-btn i { color: #fff; font-size: 15px; }


/* ─── FLOAT BUTTONS (Gọi + Zalo) ────────────────── */
#nh-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.nh-float-item { position: relative; display: flex; align-items: center; gap: 8px; }

.nh-float-tooltip {
    background: rgba(30,30,30,0.82);
    color: #fff;
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 7px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    font-family: inherit;
    order: -1;
}
.nh-float-item:hover .nh-float-tooltip { opacity: 1; }

.nh-float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(0,0,0,0.22);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}
.nh-float-btn:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(0,0,0,0.28); }

.nh-float-call {
    background: var(--nh-danger);
    animation: nh-pulse-call 2.5s ease-in-out infinite;
}
.nh-float-call i { color: #fff; font-size: 22px; }

.nh-float-zalo {
    background: #0068FF;
    animation: nh-pulse-zalo 2.5s ease-in-out infinite;
    overflow: hidden;
    padding: 0;
}
.nh-float-zalo svg { display: block; }

@keyframes nh-pulse-call {
    0%,100%  { box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 0 0 0 rgba(163,45,45,0.4); }
    50%      { box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 0 0 12px rgba(163,45,45,0); }
}
@keyframes nh-pulse-zalo {
    0%,100%  { box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 0 0 0 rgba(0,104,255,0.4); }
    50%      { box-shadow: 0 4px 18px rgba(0,0,0,0.22), 0 0 0 12px rgba(0,104,255,0); }
}
.nh-float-btn:hover { animation: none; }


/* ─── ARCHIVE VILLA PAGE ────────────────────────── */
.nh-archive { background: var(--nh-cream); }
.nh-archive-layout { display: flex; gap: 24px; }
.nh-archive-sidebar {
    width: 210px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    align-self: flex-start;
    background: var(--nh-white);
    border: 1px solid var(--nh-border);
    border-radius: var(--nh-radius-lg);
    padding: 18px;
}
.nh-sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--nh-text-3);
    margin-bottom: 10px;
}
.nh-filter-group { margin-bottom: 18px; }
.nh-filter-group label { font-size: 12px; color: var(--nh-text-2); display: block; margin-bottom: 5px; font-weight: 500; }
.nh-filter-group select,
.nh-filter-group input {
    width: 100%;
    font-size: 12px;
    padding: 7px 10px;
    border: 1px solid var(--nh-border);
    border-radius: 8px;
    background: #fafaf8;
    color: var(--nh-text);
}
.nh-price-row { display: flex; gap: 6px; }
.nh-price-row input { flex: 1; }
.nh-tag-filter { display: flex; flex-wrap: wrap; gap: 5px; }
.nh-filter-tag {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    cursor: pointer;
    border: 1px solid var(--nh-border);
    background: var(--nh-white);
    color: var(--nh-text-2);
    transition: all 0.15s;
}
.nh-filter-tag.active,
.nh-filter-tag:hover { background: var(--nh-green-pale); border-color: var(--nh-green); color: var(--nh-green); }
.nh-archive-content { flex: 1; min-width: 0; }
.nh-sort-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 13px;
}
.nh-sort-bar span { color: var(--nh-text-3); }
.nh-sort-bar select {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid var(--nh-border);
    border-radius: 8px;
    background: var(--nh-white);
}
.nh-pagination { text-align: center; margin-top: 32px; }
.nh-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid var(--nh-border);
    border-radius: 8px;
    font-size: 13px;
    text-decoration: none;
    color: var(--nh-text-2);
    transition: all 0.15s;
}
.nh-pagination .page-numbers.current,
.nh-pagination .page-numbers:hover { background: var(--nh-green); color: #fff; border-color: var(--nh-green); }


/* ─── SINGLE VILLA PAGE ─────────────────────────── */
.nh-single-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.nh-breadcrumb { padding: 16px 0; font-size: 13px; color: var(--nh-text-3); display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.nh-breadcrumb a { color: var(--nh-text-3); text-decoration: none; }
.nh-breadcrumb a:hover { color: var(--nh-green); }
.nh-breadcrumb-sep { color: #ccc; }

.nh-villa-hero { margin-bottom: 24px; }
.nh-villa-hero h1 { font-size: clamp(22px, 4vw, 30px); font-weight: 700; margin-bottom: 10px; }
.nh-villa-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-villa-badge { font-size: 12px; padding: 4px 12px; border-radius: 20px; font-weight: 600; }
.nh-badge-blue { background: #E6F1FB; color: #0C447C; }
.nh-badge-green { background: var(--nh-green-pale); color: var(--nh-green-dark); }
.nh-badge-gray { background: #F0EFE8; color: #555; }
.nh-badge-avail-pill { background: var(--nh-green-pale); color: var(--nh-green); }
.nh-badge-booked-pill { background: #FCEBEB; color: var(--nh-danger); }

/* Gallery */
.nh-gallery-main { border-radius: var(--nh-radius-lg); overflow: hidden; margin-bottom: 8px; }
.nh-gallery-main img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.nh-gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 28px; }
.nh-gallery-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; position: relative; cursor: pointer; }
.nh-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.nh-gallery-thumb:hover img { transform: scale(1.05); }
.nh-gallery-more { position: absolute; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: 700; }

/* Single sections */
.nh-single-section { margin-bottom: 32px; }
.nh-single-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--nh-border); color: var(--nh-text); }

.nh-specs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.nh-spec { background: #f8f9f6; border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.nh-spec i { font-size: 20px; color: var(--nh-green); flex-shrink: 0; }
.nh-spec-label { font-size: 11px; color: var(--nh-text-3); }
.nh-spec-val { font-size: 14px; font-weight: 600; }

.nh-amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.nh-amenity { display: flex; align-items: center; gap: 10px; background: #f8f9f6; border-radius: 10px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.nh-amenity-icon { font-size: 20px; }

.nh-video-wrap { position: relative; padding-bottom: 56.25%; border-radius: var(--nh-radius-lg); overflow: hidden; }
.nh-video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

.nh-lich-note { background: var(--nh-brown-pale); border: 1px solid #E8D090; border-radius: var(--nh-radius); padding: 10px 14px; font-size: 13px; color: var(--nh-brown); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.nh-lich-note a { color: var(--nh-green); }
.nh-lich-wrap { border-radius: var(--nh-radius); overflow: hidden; border: 1px solid var(--nh-border); }
.nh-lich-wrap iframe { width: 100%; height: 400px; border: none; display: block; }

.nh-map-hidden { background: #f5f5f2; border: 1px solid var(--nh-border); border-radius: var(--nh-radius); height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 20px; }
.nh-map-hidden i { font-size: 32px; color: var(--nh-text-3); }
.nh-map-hidden p { font-size: 14px; color: var(--nh-text-2); }
.nh-map-hidden small { font-size: 12px; color: var(--nh-text-3); }
.nh-map-real { border-radius: var(--nh-radius); overflow: hidden; height: 320px; margin-bottom: 12px; }
.nh-map-real iframe { width: 100%; height: 100%; border: none; }
.nh-btn-map { display: inline-flex; align-items: center; gap: 6px; background: var(--nh-green); color: #fff; text-decoration: none; padding: 9px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }

.nh-admin-only { background: #FFF8E8; border: 1.5px dashed #FAC775; border-radius: var(--nh-radius); padding: 18px 20px; }
.nh-private-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nh-private-full { grid-column: 1 / -1; }
.nh-private-item { background: #fff; border: 1px solid #FAC775; border-radius: 8px; padding: 10px 14px; }
.nh-private-item label { font-size: 11px; color: #888; display: block; margin-bottom: 3px; }
.nh-private-item span { font-size: 13px; font-weight: 600; color: var(--nh-text-2); }
.nh-private-item a { color: var(--nh-green); text-decoration: none; }

.nh-policy { background: #FFFBF0; border-left: 4px solid var(--nh-gold); border-radius: 0 10px 10px 0; padding: 14px 18px; font-size: 14px; color: var(--nh-text-2); line-height: 1.9; }

.nh-faq { display: flex; flex-direction: column; gap: 8px; }
.nh-faq-item { border: 1px solid var(--nh-border); border-radius: 10px; overflow: hidden; }
.nh-faq-item summary { padding: 13px 16px; font-size: 14px; font-weight: 600; cursor: pointer; background: #f9f9f7; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.nh-faq-item summary::after { content: '+'; font-size: 20px; color: var(--nh-text-3); font-weight: 400; }
.nh-faq-item[open] summary::after { content: '−'; }
.nh-faq-item p { padding: 13px 16px; font-size: 13px; color: var(--nh-text-2); line-height: 1.7; margin: 0; }

/* Booking sidebar */
.nh-booking-card { background: var(--nh-white); border: 1.5px solid var(--nh-border); border-radius: var(--nh-radius-xl); overflow: hidden; box-shadow: var(--nh-shadow-lg); position: sticky; top: 80px; }
.nh-booking-head { background: var(--nh-green); padding: 20px 22px; }
.nh-booking-price { font-size: 28px; font-weight: 700; color: #fff; line-height: 1; }
.nh-booking-price span { font-size: 14px; font-weight: 400; opacity: 0.8; }
.nh-booking-price-sub { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.nh-booking-info { padding: 14px 22px; border-bottom: 1px solid var(--nh-border); }
.nh-bi-row { display: flex; justify-content: space-between; font-size: 13px; padding: 5px 0; border-bottom: 1px solid #f5f5f2; }
.nh-bi-row:last-child { border-bottom: none; }
.nh-bi-row span { color: var(--nh-text-3); }
.nh-bi-row strong { color: var(--nh-text); }
.nh-hidden-notice-sidebar { margin: 12px 22px; background: var(--nh-brown-pale); border: 1px solid #E8D090; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: var(--nh-brown); display: flex; align-items: center; gap: 6px; }
.nh-booking-form { padding: 0 22px 22px; }
.nh-form-row { margin-bottom: 12px; }
.nh-form-row label { display: block; font-size: 12px; font-weight: 600; color: var(--nh-text-2); margin-bottom: 4px; }
.nh-form-req { color: var(--nh-danger); }
.nh-form-row input,
.nh-form-row select,
.nh-form-row textarea { width: 100%; font-size: 13px; padding: 9px 12px; border: 1px solid var(--nh-border); border-radius: 8px; background: #fafaf8; color: var(--nh-text); transition: border-color 0.15s; }
.nh-form-row input:focus,
.nh-form-row textarea:focus { border-color: var(--nh-green); outline: none; background: #fff; }
.nh-form-row textarea { min-height: 70px; resize: vertical; }
.nh-price-calc { background: #f0f7ec; border: 1px solid #B0D09A; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.nh-pc-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--nh-text-2); padding: 2px 0; }
.nh-pc-total { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; padding: 8px 0 3px; border-top: 1px solid #B0D09A; margin-top: 4px; color: var(--nh-green); }
.nh-pc-dep { font-size: 12px; color: var(--nh-text-3); margin-top: 4px; }
.nh-btn-submit { width: 100%; padding: 13px; background: var(--nh-green); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s; display: flex; align-items: center; justify-content: center; gap: 7px; }
.nh-btn-submit:hover { background: var(--nh-green-light); }
.nh-btn-submit:disabled { opacity: 0.6; cursor: default; }
.nh-form-note { font-size: 11px; color: var(--nh-text-3); text-align: center; margin-top: 8px; }
.nh-form-success { background: var(--nh-green-pale); border: 1px solid #9FE1CB; border-radius: 8px; padding: 12px 14px; font-size: 13px; color: var(--nh-success); text-align: center; margin-top: 10px; }
.nh-form-error { background: #FCEBEB; border: 1px solid #F09595; border-radius: 8px; padding: 10px 14px; font-size: 13px; color: var(--nh-danger); margin-top: 10px; }
.nh-booked-msg { padding: 22px; text-align: center; font-size: 14px; color: var(--nh-danger); background: #FCEBEB; }

/* Sidebar call buttons */
.nh-sidebar-contact { padding: 0 22px 22px; display: flex; gap: 8px; }
.nh-sidebar-call {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--nh-danger); color: #fff; border: none; border-radius: 9px;
    padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.nh-sidebar-call:hover { background: #8B2020; color: #fff; }
.nh-sidebar-zalo-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: #0068FF; color: #fff; border: none; border-radius: 9px;
    padding: 11px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none;
    transition: background 0.15s;
}
.nh-sidebar-zalo-btn:hover { background: #0052CC; color: #fff; }


/* ─── CONTACT PAGE ───────────────────────────────── */
.nh-contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.nh-contact-info { background: var(--nh-green); color: #fff; border-radius: var(--nh-radius-lg); padding: 28px; }
.nh-contact-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.nh-ci-item { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.nh-ci-icon { width: 38px; height: 38px; background: rgba(255,255,255,0.15); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nh-ci-icon i { font-size: 17px; color: #fff; }
.nh-ci-label { font-size: 11px; opacity: 0.65; margin-bottom: 2px; }
.nh-ci-val { font-size: 14px; font-weight: 600; }
.nh-ci-val a { color: #fff; text-decoration: none; }
.nh-contact-form { background: var(--nh-white); border: 1px solid var(--nh-border); border-radius: var(--nh-radius-lg); padding: 28px; }
.nh-form-title { font-size: 18px; font-weight: 700; color: var(--nh-green); margin-bottom: 20px; }
.nh-cf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nh-map-box { height: 180px; background: var(--nh-green-pale); border-radius: var(--nh-radius); display: flex; align-items: center; justify-content: center; margin-top: 16px; border: 1px solid var(--nh-border); }
.nh-map-box i { font-size: 40px; color: var(--nh-green); }


/* ─── ABOUT PAGE ─────────────────────────────────── */
.nh-about-story { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.nh-about-img { background: linear-gradient(135deg, var(--nh-green), var(--nh-green-light)); border-radius: var(--nh-radius-lg); height: 260px; display: flex; align-items: center; justify-content: center; }
.nh-about-img i { font-size: 72px; color: rgba(255,255,255,0.2); }
.nh-about-stats { display: flex; gap: 28px; margin-top: 24px; flex-wrap: wrap; }
.nh-about-stat-num { font-size: 26px; font-weight: 700; color: var(--nh-green); }
.nh-about-stat-label { font-size: 12px; color: var(--nh-text-3); }

.nh-value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.nh-value-card { border-left: 4px solid var(--nh-green); padding: 14px 18px; background: var(--nh-white); border-radius: 0 var(--nh-radius) var(--nh-radius) 0; }
.nh-value-title { font-size: 15px; font-weight: 700; color: var(--nh-green); margin-bottom: 6px; }
.nh-value-desc { font-size: 13px; color: var(--nh-text-2); line-height: 1.55; }


/* ─── NEWS/BLOG PAGE ─────────────────────────────── */
.nh-news-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.nh-news-full-card { background: var(--nh-white); border: 1px solid var(--nh-border); border-radius: var(--nh-radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; text-decoration: none; display: block; }
.nh-news-full-card:hover { box-shadow: var(--nh-shadow-lg); transform: translateY(-2px); }
.nh-nf-img { height: 180px; overflow: hidden; }
.nh-nf-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.nh-news-full-card:hover .nh-nf-img img { transform: scale(1.04); }
.nh-nf-img-placeholder { height: 180px; background: linear-gradient(135deg, var(--nh-brown), var(--nh-brown-light)); display: flex; align-items: center; justify-content: center; }
.nh-nf-img-placeholder i { font-size: 48px; color: rgba(255,255,255,0.25); }
.nh-nf-img-placeholder.green { background: linear-gradient(135deg, var(--nh-green), var(--nh-green-light)); }
.nh-nf-body { padding: 16px; }
.nh-nf-cat { font-size: 11px; font-weight: 700; color: var(--nh-brown); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; }
.nh-nf-title { font-size: 16px; font-weight: 700; line-height: 1.4; color: var(--nh-text); margin-bottom: 8px; }
.nh-nf-excerpt { font-size: 13px; color: var(--nh-text-3); line-height: 1.55; margin-bottom: 12px; }
.nh-nf-footer { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--nh-text-3); }
.nh-nf-read { color: var(--nh-green); font-weight: 600; }

.nh-news-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.nh-ncat { padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; border: 1px solid var(--nh-border); cursor: pointer; background: var(--nh-white); color: var(--nh-text-2); transition: all 0.15s; text-decoration: none; display: inline-block; }
.nh-ncat.active { background: var(--nh-green); color: #fff; border-color: var(--nh-green); }


/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
    .nh-footer-grid { grid-template-columns: 1fr 1fr; }
    .nh-single-layout { grid-template-columns: 1fr 300px; }
}

@media (max-width: 768px) {
    .nh-nav, .nh-header-phone { display: none; }
    .nh-hamburger { display: flex; }
    .nh-single-layout { grid-template-columns: 1fr; }
    .nh-booking-card { position: static; }
    .nh-archive-layout { flex-direction: column; }
    .nh-archive-sidebar { width: 100%; position: static; }
    .nh-contact-grid { grid-template-columns: 1fr; }
    .nh-about-story { grid-template-columns: 1fr; }
    .nh-specs-grid { grid-template-columns: repeat(2,1fr); }
    .nh-gallery-main img { aspect-ratio: 16/9; height: auto; }
    .nh-gallery-grid { grid-template-columns: repeat(2,1fr); }
    .nh-cf-2 { grid-template-columns: 1fr; }
    .nh-private-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .nh-hero { padding: 40px 16px 48px; }
    .nh-hero-stats { gap: 20px; }
    .nh-search-box { padding: 12px 14px; }
    .nh-sf { min-width: 100%; }
    .nh-section { padding: 36px 0; }
    .nh-footer-grid { grid-template-columns: 1fr; }
    .nh-villa-grid { grid-template-columns: 1fr; }
    .nh-specs-grid { grid-template-columns: 1fr 1fr; }
    #nh-float { bottom: 16px; right: 14px; }
    .nh-float-btn { width: 48px; height: 48px; }
    .nh-float-tooltip { display: none; }
    .nh-news-full-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════
   ĐỒNG BỘ FONT TOÀN TRANG
   Override Flatsome font mặc định
═══════════════════════════════════════════════ */
html, body,
body *,
h1, h2, h3, h4, h5, h6,
p, a, span, li, td, th,
input, select, textarea, button,
.entry-title, .post-title,
.page-title, .widget-title {
    font-family: 'Segoe UI', system-ui, -apple-system,
                 BlinkMacSystemFont, 'Helvetica Neue',
                 Arial, sans-serif !important;
}


/* ═══════════════════════════════════════════════
   ĐỒNG BỘ HOÀN TOÀN TOÀN TRANG — Nahinest
   Override Flatsome typography hoàn toàn
═══════════════════════════════════════════════ */

/* Font toàn trang */
html, body, body * {
    font-family: 'Segoe UI', system-ui, -apple-system,
                 BlinkMacSystemFont, 'Helvetica Neue',
                 Arial, sans-serif !important;
}

/* Body text */
body {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #1A1A1A !important;
    background-color: #FFFDF7 !important;
}

/* Heading H1 */
h1, .h1, .entry-title,
.page-title, .post-title,
.product_title {
    font-size: clamp(24px, 4vw, 36px) !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    color: #1A1A1A !important;
    letter-spacing: -0.3px !important;
}

/* Heading H2 */
h2, .h2 {
    font-size: clamp(20px, 3vw, 28px) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1A1A1A !important;
}

/* Heading H3 */
h3, .h3 {
    font-size: clamp(17px, 2.5vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    color: #1A1A1A !important;
}

/* Heading H4, H5, H6 */
h4, h5, h6, .h4, .h5, .h6 {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1A1A1A !important;
}

/* Paragraph & nội dung bài viết */
p, .entry-content p,
.post-content p,
article p {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #4A4A4A !important;
    margin-bottom: 1rem !important;
}

/* Link */
a {
    color: #1A3D17 !important;
    text-decoration: none !important;
    transition: color 0.15s !important;
}
a:hover { color: #2D5A27 !important; }

/* Menu nav — giữ màu trắng nếu nền tối */
.nav-bar a,
.nav-dark a,
header a,
.header-main a {
    color: inherit !important;
}

/* Button Flatsome */
.button, .btn,
input[type="submit"],
button[type="submit"] {
    font-family: inherit !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    border-radius: 10px !important;
}

/* Entry content bài viết */
.entry-content {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #4A4A4A !important;
}

.entry-content h2 { color: #1A3D17 !important; margin-top: 2rem !important; }
.entry-content h3 { color: #1A3D17 !important; margin-top: 1.5rem !important; }

/* Table trong bài viết */
.entry-content table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 14px !important;
}
.entry-content th {
    background: #1A3D17 !important;
    color: #fff !important;
    padding: 10px 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}
.entry-content td {
    padding: 9px 14px !important;
    border-bottom: 1px solid #E0D9D0 !important;
    color: #4A4A4A !important;
}
.entry-content tr:nth-child(even) td { background: #FFFDF7 !important; }

/* List trong bài viết */
.entry-content ul, .entry-content ol {
    padding-left: 1.5rem !important;
    margin-bottom: 1rem !important;
}
.entry-content li {
    font-size: 15px !important;
    line-height: 1.8 !important;
    color: #4A4A4A !important;
    margin-bottom: 4px !important;
}

/* Widget titles */
.widget-title,
.sidebar .widget-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #1A3D17 !important;
}

/* Breadcrumb Flatsome */
.breadcrumbs,
.woocommerce-breadcrumb {
    font-size: 13px !important;
    color: #888 !important;
}

/* Form fields toàn trang */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
textarea, select {
    font-family: inherit !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    border: 1px solid #E0D9D0 !important;
    padding: 9px 12px !important;
    color: #1A1A1A !important;
    background: #fafaf8 !important;
    transition: border-color 0.15s !important;
}
input:focus, textarea:focus, select:focus {
    border-color: #1A3D17 !important;
    outline: none !important;
    background: #fff !important;
}

/* Pagination */
.pagination a,
.pagination span,
.page-numbers {
    font-size: 13px !important;
    border-radius: 8px !important;
}

/* Tắt Flatsome custom font nếu có load */
@font-face { font-family: 'Flatsome'; src: local('Arial'); }


/* ─── YOUTUBE CAROUSEL ───────────────────────── */
.nh-yt-carousel-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nh-yt-carousel {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 12px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 2px 6px;
    width: 100%;
}
.nh-yt-carousel::-webkit-scrollbar { display: none; }

.nh-carousel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nh-white);
    border: 0.5px solid var(--nh-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s;
    color: var(--nh-text);
    font-size: 16px;
}
.nh-carousel-btn:hover { background: var(--nh-green-pale); color: var(--nh-green); border-color: var(--nh-green); }

/* ── Shorts — dọc 9:16 */
.nh-short-card { flex-shrink: 0 !important; width: 150px !important; min-width: 150px !important; max-width: 150px !important; scroll-snap-align: start; display: block !important; box-sizing: border-box !important; }
.nh-short-thumb {
    display: block; position: relative;
    border-radius: var(--nh-radius-lg); overflow: hidden;
    aspect-ratio: 9/16; background: #111; text-decoration: none;
}
.nh-short-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.nh-short-thumb:hover img { transform: scale(1.04); }
.nh-short-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.18); opacity: 0; transition: opacity 0.2s;
}
.nh-short-thumb:hover .nh-short-play { opacity: 1; }
/* ── Shorts stats — gradient đẹp trong ảnh ── */
.nh-short-stats {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 24px 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nh-short-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.nh-short-stats i { font-size: 12px; }

/* ── Shorts title — gọn, không hiện hashtag ── */
.nh-short-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--nh-text);
    margin-top: 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* ── Video card meta ── */
.nh-video-meta { padding: 10px 0 0; }
.nh-video-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--nh-text);
    line-height: 1.45;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nh-video-views {
    font-size: 12px;
    color: var(--nh-text-3);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Video duration badge — trắng, không vàng ── */
.nh-video-duration {
    position: absolute;
    bottom: 7px; right: 7px;
    background: rgba(0,0,0,0.82);
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.3px;
}

/* ── Video thường — ngang 16:9 */
.nh-video-card { flex-shrink: 0 !important; width: 280px !important; min-width: 280px !important; max-width: 280px !important; scroll-snap-align: start; display: block !important; box-sizing: border-box !important; }
.nh-video-thumb {
    display: block; position: relative;
    border-radius: var(--nh-radius-lg); overflow: hidden;
    aspect-ratio: 16/9; background: #111; text-decoration: none;
}
.nh-video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.nh-video-thumb:hover img { transform: scale(1.04); }
.nh-video-play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.2s;
}
.nh-video-thumb:hover .nh-video-play { opacity: 1; }
.nh-video-duration {
    position: absolute; bottom: 7px; right: 7px;
    background: rgba(0,0,0,0.75); color: #fff;
    font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px;
}
.nh-video-meta { padding: 8px 2px 0; }
.nh-video-title { font-size: 12px; font-weight: 600; color: var(--nh-text); line-height: 1.4; margin-bottom: 3px; }
.nh-video-views { font-size: 11px; color: var(--nh-text-3); display: flex; align-items: center; gap: 3px; }

@media (max-width: 768px) {
    /* Shorts mobile — 2 card visible */
    .nh-short-card { width: 130px !important; min-width: 130px !important; }
    .nh-short-title { font-size: 11px; -webkit-line-clamp: 2; }

    /* Video mobile — 1.5 card visible */
    .nh-video-card { width: 220px !important; min-width: 220px !important; }
    .nh-video-title { font-size: 12px; -webkit-line-clamp: 2; }
    .nh-video-views { font-size: 11px; }

    /* Buttons nhỏ hơn */
    .nh-carousel-btn { width: 28px; height: 28px; font-size: 13px; }

    /* Ẩn nút prev/next trên mobile — swipe tay */
    .nh-carousel-prev { display: none !important; }
    .nh-carousel-next { display: none !important; }

    /* Padding carousel */
    .nh-yt-carousel { gap: 10px; padding: 4px 0 8px; }
}

/* ─── FIX NÚT XEM CHI TIẾT MẤT CHỮ ─── */
a.nh-btn-view,
a.nh-btn-view:link,
a.nh-btn-view:visited,
a.nh-btn-view:hover,
a.nh-btn-view:active,
.nh-card-actions a.nh-btn-view,
.nahinest-wrap a.nh-btn-view {
    color: #ffffff !important;
    text-decoration: none !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* ══ FIX NÚT MẤT CHỮ — OVERRIDE FLATSOME ══ */
.nahinest-wrap a.nh-btn-view,
.nahinest-wrap a.nh-btn-view *,
body a.nh-btn-view,
body .nh-btn-view {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.nahinest-wrap .nh-search-btn,
.nahinest-wrap .nh-search-btn *,
body .nh-hero-cta a,
body .nh-hero-cta a * {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
/* CTA band buttons */
.nh-cta-band a,
.nh-cta-band button,
.nh-cta-band a *,
.nh-cta-band button * {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
}
