/* ============================================================
   CORE CSS - BIẾN MÀU VÀ GIAO DIỆN DÙNG CHUNG TOÀN TRANG
   ============================================================ */
:root {
    --navy: #850F1D;
    --navy-mid: #9c1525;
    --sky: #B88B4A;
    --gold: #B88B4A;
    --crimson: #850F1D;
    --surface: #F8FAFC;
    --white: #FFFFFF;
    --text: #1E293B;
    --muted: #64748B;
    --border: #E2E8F0;
    --green: #0D5C4B;
    --red-light: #FEE2E2;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--surface);
    color: var(--text);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* ANIMATIONS (Hiệu ứng nhịp đập) */
@keyframes pulseRing {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

@keyframes pulseScale {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(2.2);
        opacity: 0;
    }
}

/* HEADER */
.header {
    background: url(https://datafiles.hanoi.gov.vn/gov-hni/themes/default/uibanner/images/bg-header.jpg) no-repeat center center #ffff;
    padding: 0 40px;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(11, 36, 71, 0.05);
    z-index: 1000;
    position: sticky;
    top: 0;
    flex-shrink: 0;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.bns-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.bns-site-desc {
    font-size: 13px;
    font-weight: 700;
    color: #dc2626;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bns-site-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f3c7a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: 0.3s;
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--sky);
    background: rgba(30, 95, 168, 0.05);
}

.btn-login {
    background-color: var(--navy) !important;
    color: var(--white) !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    box-shadow: 0 4px 10px rgba(11, 36, 71, 0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    background-color: var(--navy-mid) !important;
}

/* NÚT BACK (Sử dụng chung cho trang chi tiết hoặc trang con) */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.btn-back:hover {
    background: var(--surface);
    color: var(--navy);
    border-color: var(--sky);
}

@media (max-width: 992px) {
    .header {
        padding: 0 16px;
    }

    .header-nav {
        display: none;
    }

    .bns-site-desc {
        font-size: 10px;
    }

    .bns-site-title {
        font-size: 14px;
    }
}