/* Header trang con: tin-tuc, dan-piano */
.np-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.np-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0.5rem 1.25rem;
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
}

.np-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.np-logo img {
    height: 1.65rem;
    width: auto;
    max-height: 1.65rem;
    object-fit: contain;
}

.np-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

.np-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.np-nav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.np-nav-link.is-active {
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.np-nav-link--cta {
    margin-left: 0.35rem;
    padding-left: 1rem;
    padding-right: 1rem;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
}

.np-nav-link--cta:hover {
    background: #1e293b;
    color: #fff;
}

.np-nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.np-nav-toggle-bar {
    display: block;
    width: 1.1rem;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.2s ease;
}

.np-nav-toggle-bar + .np-nav-toggle-bar {
    margin-top: 4px;
}

.np-nav-toggle.is-open .np-nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.np-nav-toggle.is-open .np-nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.np-nav-toggle.is-open .np-nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.np-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
}

.np-nav-drawer:not(.is-open) {
    visibility: hidden !important;
    pointer-events: none !important;
}

.np-nav-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.np-nav-backdrop {
    position: absolute;
    inset: 0;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.np-nav-drawer.is-open .np-nav-backdrop {
    opacity: 1;
}

.np-nav-backdrop,
.np-nav-panel {
    position: absolute;
}

.np-nav-panel {
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 18rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.15);
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1rem 1.25rem;
}

.np-nav-drawer:not(.is-open) .np-nav-panel {
    transform: translateX(100%) !important;
}

.np-nav-drawer.is-open .np-nav-panel {
    transform: translateX(0);
}

.np-nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.np-nav-panel-title {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #64748b;
}

.np-nav-close-btn {
    border: none;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.4rem 0.7rem;
    border-radius: 9999px;
    cursor: pointer;
}

.np-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.np-nav-links .np-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.65rem;
    font-size: 0.95rem;
    border-radius: 0.6rem;
}

.np-nav-links .np-nav-link--cta {
    margin-top: 0.5rem;
    margin-left: 0;
    text-align: center;
}

@media (min-width: 768px) {
    .np-header-inner {
        min-height: 3.5rem;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .np-logo img {
        height: 1.75rem;
        max-height: 1.75rem;
    }

    .np-nav {
        display: flex;
    }

    .np-nav-toggle {
        display: none;
    }
}
