/* ========================================================
   GLOBAL HEADER & FOOTER STYLES - BÁC SĨ ĐẠI
   Áp dụng trên toàn bộ các trang thông thường của website
   ======================================================== */

/* Ẩn Header & Footer mặc định của Theme Nevo trên các trang này */
.site-header,
#masthead,
.page-header,
.site-footer,
#site-footer {
    display: none !important;
}

/* Các biến màu chủ đạo */
:root {
    --bsd-primary: #2487ce;
    --bsd-primary-dark: #1a6da8;
    --bsd-primary-light: #e8f4fc;
    --bsd-accent-red: #d32f2f;
    --bsd-accent-orange: #ff7a00;
    --bsd-accent-yellow: #f59e0b;
    --bsd-dark: #0f172a;
    --bsd-dark-heading: #1e293b;
    --bsd-text-body: #334155;
    --bsd-text-muted: #64748b;
    --bsd-border-color: #e2e8f0;
    --bsd-radius-sm: 8px;
    --bsd-radius-md: 14px;
    --bsd-radius-full: 9999px;
    --bsd-max-w: 1160px;
}

.bsd-container {
    width: 100%;
    max-width: var(--bsd-max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* 1. TOP NOTIFICATION BAR */
.bsd-top-notification-bar {
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff;
    font-size: 0.92rem;
    padding: 9px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 1000;
}

.bsd-top-notification-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.bsd-pulse-badge {
    background: #ffffff;
    color: #dc2626;
    padding: 2px 10px;
    border-radius: var(--bsd-radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.bsd-btn-top-cta {
    background: #f59e0b;
    color: #ffffff !important;
    padding: 3px 12px;
    border-radius: var(--bsd-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 2. SITE NAVBAR */
.bsd-site-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--bsd-border-color);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.bsd-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bsd-nav-logo img {
    height: 46px;
    width: auto;
    display: block;
}

.bsd-nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--bsd-dark-heading);
    margin: 0;
    padding: 0;
}

.bsd-nav-menu a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bsd-nav-menu a:hover {
    color: var(--bsd-primary);
}

.bsd-nav-menu .bsd-highlight-link {
    color: var(--bsd-accent-red);
    font-weight: 700;
}

.bsd-btn-nav-primary {
    background: var(--bsd-primary);
    color: #ffffff !important;
    padding: 8px 20px;
    border-radius: var(--bsd-radius-full);
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(36, 135, 206, 0.25);
}

.bsd-btn-nav-primary:hover {
    background: var(--bsd-primary-dark);
}

/* Mobile Nav Toggle */
.bsd-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.bsd-nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--bsd-dark-heading);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.bsd-nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.bsd-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.bsd-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* 3. GLOBAL FOOTER */
.bsd-site-footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 56px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.92rem;
    margin-top: 50px;
}

.bsd-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.bsd-footer-col-brand img {
    height: 44px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.bsd-footer-brand-desc {
    line-height: 1.65;
    margin-bottom: 18px;
    color: #94a3b8;
}

.bsd-footer-col-title {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: none;
}

.bsd-footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.bsd-footer-nav-list a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bsd-footer-nav-list a:hover {
    color: #38bdf8;
    padding-left: 4px;
}

.bsd-footer-legal-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--bsd-radius-sm);
    padding: 16px 20px;
    margin-bottom: 30px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #64748b;
}

.bsd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
}

.bsd-footer-bottom a {
    color: #38bdf8;
    text-decoration: none;
}

@media (max-width: 992px) {
    .bsd-top-notification-bar {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .bsd-top-notification-inner {
        gap: 6px 10px;
        line-height: 1.35;
    }
    .bsd-pulse-badge {
        padding: 2px 8px;
        font-size: 0.72rem;
    }
    .bsd-btn-top-cta {
        padding: 2px 10px;
        font-size: 0.75rem;
    }
    .bsd-site-navbar {
        position: relative;
    }
    .bsd-nav-toggle {
        display: flex;
    }
    .bsd-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #ffffff;
        flex-direction: column;
        padding: 16px 20px 24px 20px;
        gap: 8px;
        box-shadow: 0 16px 32px rgba(0,0,0,0.15);
        border-top: 1px solid var(--bsd-border-color);
        border-bottom: 3px solid var(--bsd-primary);
        z-index: 9999;
        box-sizing: border-box;
        margin: 0 !important;
        list-style: none !important;
    }
    .bsd-nav-menu.active {
        display: flex;
    }
    .bsd-nav-menu li {
        width: 100%;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .bsd-nav-menu a {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 16px !important;
        border-radius: var(--bsd-radius-sm);
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--bsd-dark-heading);
        text-decoration: none;
        box-sizing: border-box;
        width: 100%;
    }
    .bsd-nav-menu a:hover {
        background: var(--bsd-primary-light);
        color: var(--bsd-primary);
    }
    .bsd-nav-menu .bsd-btn-nav-primary {
        justify-content: center;
        text-align: center;
        margin-top: 8px;
        padding: 12px 20px !important;
    }
    .bsd-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
