/* ═══════════════════════════════════════════════════════════════════
HEADER - APPLE LIQUID GLASS (Đồng bộ CSS variables mới)
═══════════════════════════════════════════════════════════════════ */

/* ─── CORE BASE ────────────────────────────────────────────────── */
.header-liquid-wrapper {
position: fixed;
top: 0;
left: 0;
width: 100%;
z-index: 1030;
}

/* ─── 1. TOP LIQUID BANNER ────────────────────────────────────── */
.bsp-top-banner-glass {
/* Sử dụng gradient giữa Mộc và Thủy – tượng trưng cho sự kết hợp */
background: linear-gradient(135deg, var(--color-primary, #4CAF50) 0%, var(--color-secondary, #1565C0) 100%);
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 5px 0;
color: #f3f4f6;
font-size: 0.8rem;
min-height: 40px;
z-index: 1;
position: relative;
}

.bsp-banner-content {
display: flex;
align-items: center;
justify-content: space-between;
max-width: 1400px;
margin: 0 auto;
min-height: 36px;
padding: 0 15px;
gap: 10px;
}

.bsp-brand {
display: flex;
align-items: center;
flex-shrink: 0;
}

.bsp-banner-link {
display: inline-flex;
align-items: center;
gap: 8px;
text-decoration: none;
color: #fff;
transition: opacity 0.2s ease;
font-size: 15px;
font-weight: 500;
}
.bsp-banner-link:hover {
opacity: 0.9;
color: #ffffff;
}
.bsp-logo {
height: 63px;
width: auto;
border-radius: 4px;
}
.bsp-text strong {
color: #ffffff;
}
.bsp-text strong:hover {
text-decoration: underline;
}

.bsp-info {
display: flex;
align-items: center;
gap: 10px;
font-size: 15px;
font-weight: 600;
color: rgba(243, 244, 246, 0.85);
flex-wrap: wrap;
}
.bsp-divider {
opacity: 0.3;
}
.bsp-contact a {
color: #fff;
text-decoration: none;
}
.bsp-contact a:hover {
text-decoration: underline;
}

/* Services Glass Button */
.bsp-services-wrapper {
position: relative;
flex-shrink: 0;
}
.bsp-services-btn-glass {
display: inline-flex;
align-items: center;
background: rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.25);
backdrop-filter: blur(10px);
border-radius: 99px;
padding: 4px 14px;
color: #ffffff;
font-size: 15px;
font-weight: 600;
cursor: pointer;
transition: all 0.25s ease;
gap: 10px;
min-height: 34px;
}
.bsp-services-btn-glass:hover {
background: rgba(255, 255, 255, 0.25);
border-color: rgba(255, 255, 255, 0.4);
}
.bsp-services-wrapper.active .bsp-services-btn-glass .bi-chevron-down {
transform: rotate(180deg);
}

/* Glass Mega Dropdown – sử dụng màu chính cho accent */
.bsp-mega-dropdown-glass {
position: absolute;
top: 40px;
right: 0;
width: 760px;
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(30px) saturate(190%);
-webkit-backdrop-filter: blur(30px) saturate(190%);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 20px;
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.9);
opacity: 0;
visibility: hidden;
transform: translateY(-8px) scale(0.98);
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 1050;
overflow: hidden;
pointer-events: none;
}
.bsp-services-wrapper.active .bsp-mega-dropdown-glass {
opacity: 1;
visibility: visible;
transform: translateY(0) scale(1);
pointer-events: auto;
}

.bsp-mega-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
border-bottom: 1px solid rgba(229, 231, 235, 0.7);
background: rgba(255, 255, 255, 0.4);
}
.bsp-mega-header h5 {
margin: 0;
font-size: 0.925rem;
font-weight: 700;
color: var(--text-body, #111827);
}
.bsp-view-all {
font-size: 0.8rem;
color: var(--color-primary, #4CAF50);
text-decoration: none;
font-weight: 600;
}
.bsp-view-all:hover {
color: var(--color-primary-dark, #228B22);
}

.bsp-mega-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
padding: 16px 0;
}
.bsp-mega-column {
padding: 0 20px;
border-right: 1px solid rgba(229, 231, 235, 0.6);
}
.bsp-mega-column:last-child {
border-right: none;
}
.bsp-column-header {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 12px;
padding-bottom: 8px;
border-bottom: 2px solid rgba(229, 231, 235, 0.5);
font-size: 0.825rem;
font-weight: 700;
color: var(--text-body, #111827);
}
.bsp-column-header i {
color: var(--color-primary, #4CAF50) !important; /* ghi đè inline style */
}

.bsp-service-list {
list-style: none;
padding: 0;
margin: 0;
}
.bsp-service-list li {
margin-bottom: 4px;
}
.bsp-service-list a {
display: flex;
align-items: flex-start;
gap: 10px;
padding: 8px;
border-radius: 12px;
text-decoration: none;
color: var(--text-muted, #374151);
transition: all 0.2s ease;
}
.bsp-service-list a:hover {
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.08);
color: var(--color-primary, #4CAF50);
transform: translateX(3px);
}
.bsp-service-list a i {
font-size: 1rem;
color: #9ca3af;
margin-top: 2px;
}
.bsp-service-list a:hover i {
color: var(--color-primary, #4CAF50);
}
.bsp-service-list a strong {
font-size: 0.82rem;
font-weight: 600;
display: block;
}
.bsp-service-list a small {
font-size: 0.72rem;
color: #6b7280;
}

.bsp-mega-footer {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 20px;
background: rgba(243, 244, 246, 0.7);
border-top: 1px solid rgba(229, 231, 235, 0.8);
}
.bsp-stats {
display: flex;
gap: 20px;
}
.bsp-stat-item {
display: flex;
flex-direction: column;
text-align: center;
}
.bsp-stat-item strong {
font-size: 1rem;
font-weight: 700;
color: var(--text-body, #111827);
}
.bsp-stat-item span {
font-size: 0.65rem;
color: #6b7280;
}
.bsp-cta-btn-glass {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 7px 16px;
background: var(--color-primary, #4CAF50);
color: #ffffff;
border-radius: 99px;
font-size: 0.8rem;
font-weight: 600;
text-decoration: none;
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bsp-cta-btn-glass:hover {
background: var(--color-primary-dark, #228B22);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
color: #ffffff;
}

/* ─── 2. CAROUSEL GLASS BAR ───────────────────────────────────── */
.bsp-carousel-glass-section {
background: rgba(255, 255, 255, 0.45);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border-bottom: 2px solid rgba(229, 231, 235, 0.6);
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
display: block;
}
.bsp-carousel-wrapper {
max-width: 1400px;
margin: 0 auto;
padding: 0 15px;
}
.bsp-carousel {
position: relative;
height: 28px;
overflow: hidden;
}
.bsp-carousel-item {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
opacity: 0;
transform: translateY(15px);
transition: all 0.4s ease;
font-size: 0.8rem;
color: var(--text-body, #374151);
font-weight: 500;
}
.bsp-carousel-item.active {
opacity: 1;
transform: translateY(0);
}
.bsp-carousel-item i {
color: var(--color-primary, #4CAF50);
}

/* ─── 3. MAIN LIQUID NAVBAR ───────────────────────────────────── */
.navbar-liquid {
padding: 8px 16px;
background: transparent;
}
.glass-nav-container {
background: rgba(255, 255, 255, 0.85);
/* backdrop-filter: blur(30px) saturate(190%); */
-webkit-backdrop-filter: blur(25px) saturate(190%);
border: 1px solid rgba(255, 255, 255, 0.7);
border-radius: 20px;
padding: 6px 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05),
            0 10px 25px rgba(0, 0, 0, 0.1),
            0 20px 50px rgba(0, 0, 0, 0.05),
            inset 0 1px 1px rgba(255, 255, 255, 0.9);
width: 100%;
max-width: 100% !important;
}

.logo-img {
border-radius: 10px;
height: 60px;
width: auto;
object-fit: contain;
}

/* Glass Links – sử dụng màu chính cho active và hover */
.glass-link {
color: var(--text-body, #1f2937) !important;
font-size: 0.85rem;
font-weight: 600;
letter-spacing: 0.02em;
padding: 8px 14px !important;
border-radius: 99px;
display: inline-flex;
align-items: center;
background: rgba(243, 244, 246, 0.7);
backdrop-filter: blur(12px) saturate(160%);
-webkit-backdrop-filter: blur(12px) saturate(160%);
border: 1px solid rgba(209, 213, 219, 0.6);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03),
            inset 0 1px 1px rgba(255, 255, 255, 0.9);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-link i {
font-size: 0.95rem;
color: var(--color-primary, #4CAF50);
transition: color 0.2s ease, transform 0.2s ease;
margin-right: 6px;
}
.glass-link:hover {
color: var(--color-primary-dark, #228B22) !important;
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.08);
border-color: rgba(var(--color-primary-rgb, 76, 175, 80), 0.3);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(var(--color-primary-rgb, 76, 175, 80), 0.15),
            inset 0 1px 1px rgba(255, 255, 255, 1);
}
.glass-link:hover i {
color: var(--color-primary-dark, #228B22);
transform: scale(1.1);
}
.glass-link.active {
color: var(--color-primary-dark, #228B22) !important;
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.12);
border-color: rgba(var(--color-primary-rgb, 76, 175, 80), 0.4);
box-shadow: 0 4px 12px -2px rgba(var(--color-primary-rgb, 76, 175, 80), 0.25),
            inset 0 1px 1.5px rgba(255, 255, 255, 1);
}
.glass-link.active i {
color: var(--color-primary-dark, #228B22);
}

/* User Pill Button */
.glass-user-pill {
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.1);
border: 1px solid rgba(var(--color-primary-rgb, 76, 175, 80), 0.2);
border-radius: 99px;
padding: 6px 14px !important;
color: var(--color-primary, #4CAF50) !important;
font-size: 0.825rem;
font-weight: 600;
display: inline-flex;
align-items: center;
transition: all 0.2s ease;
}
.glass-user-pill:hover {
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.18);
border-color: rgba(var(--color-primary-rgb, 76, 175, 80), 0.35);
color: var(--color-primary-dark, #228B22) !important;
}
.glass-user-pill i {
color: var(--color-primary, #4CAF50);
}
.unread-badge {
font-size: 0.6rem;
margin-left: 4px;
}

/* Dropdown Glass Panels */
.dropdown-menu-glass {
background: rgba(255, 255, 255, 0.85);
backdrop-filter: blur(25px) saturate(190%);
-webkit-backdrop-filter: blur(25px) saturate(190%);
border: 1px solid rgba(255, 255, 255, 0.8);
border-radius: 16px;
box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08), inset 0 1px 1px rgba(255, 255, 255, 0.9);
padding: 8px;
min-width: 240px;
}
.dropdown-menu-glass .dropdown-item {
border-radius: 10px;
padding: 8px 12px;
font-size: 0.875rem;
font-weight: 500;
color: var(--text-body, #374151);
transition: all 0.2s ease;
}
.dropdown-menu-glass .dropdown-item:hover {
background: rgba(var(--color-primary-rgb, 76, 175, 80), 0.08);
color: var(--color-primary, #4CAF50);
transform: translateX(3px);
}
.dropdown-menu-glass .dropdown-item i {
color: var(--color-primary, #4CAF50);
}
.dropdown-header {
font-weight: 700;
color: #9ca3af;
font-size: 0.68rem;
letter-spacing: 0.08em;
padding: 6px 12px;
}

/* Submenu Hover Logic (Desktop) */
.dropdown-submenu {
position: relative;
}
.dropdown-submenu .dropdown-menu {
top: 0;
right: 100%;
left: auto;
margin-top: -6px;
display: none;
}
.dropdown-submenu:hover > .dropdown-menu {
display: block;
animation: slideIn 0.2s ease;
}
.dropdown-submenu .dropdown-item i {
width: 20px;
text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════
RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════ */

/* ─── MOBILE: < 576px (iPhone 14 Pro Max, SE, v.v.) ────────── */
@media (max-width: 575.98px) {
body {
    padding-top: 96px !important;
}

/* TOP BANNER */
.bsp-top-banner-glass {
    padding: 2px 0;
    min-height: 28px;
}
.bsp-banner-content {
    padding: 0 8px;
    min-height: 28px;
    gap: 4px;
}
.bsp-brand .bsp-banner-link {
    font-size: 0;
    gap: 4px;
}
.bsp-logo {
    height: 20px !important;
}
.bsp-text {
    display: none;
}
.bsp-info {
    display: none !important;
}
.bsp-services-wrapper {
    margin-left: auto;
}
.bsp-services-btn-glass {
    padding: 2px 8px;
    font-size: 14px;
    gap: 2px;
    min-height: 26px;
    background: rgba(255, 255, 255, 0.15);
}
.bsp-services-btn-glass span {
    display: none;
}
.bsp-services-btn-glass .bi-chevron-down {
    font-size: 10px;
    margin-left: 0;
}
.bsp-services-btn-glass i:first-child {
    font-size: 14px;
}

/* MEGA DROPDOWN - full màn hình */
.bsp-mega-dropdown-glass {
    position: fixed;
    left: 8px;
    right: 8px;
    top: 48px;
    width: auto !important;
    max-height: 60vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 0;
}
.bsp-mega-header {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 4px;
}
.bsp-mega-header h5 {
    font-size: 0.85rem;
}
.bsp-view-all {
    font-size: 0.7rem;
}
.bsp-mega-grid {
    grid-template-columns: 1fr !important;
    padding: 6px 0;
}
.bsp-mega-column {
    padding: 0 14px;
    border-right: none;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    padding-bottom: 8px;
    margin-bottom: 6px;
}
.bsp-mega-column:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.bsp-column-header {
    font-size: 0.75rem;
    margin-bottom: 4px;
    padding-bottom: 4px;
}
.bsp-service-list a {
    padding: 5px 6px;
    gap: 6px;
}
.bsp-service-list a i {
    font-size: 0.8rem;
}
.bsp-service-list a strong {
    font-size: 0.75rem;
}
.bsp-service-list a small {
    font-size: 0.65rem;
}
.bsp-mega-footer {
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
}
.bsp-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 12px;
}
.bsp-stat-item strong {
    font-size: 0.8rem;
}
.bsp-stat-item span {
    font-size: 0.55rem;
}
.bsp-cta-btn-glass {
    padding: 5px 12px;
    font-size: 0.7rem;
}

/* CAROUSEL - ẩn trên mobile */
.bsp-carousel-glass-section {
    display: none !important;
}

/* MAIN NAVBAR */
.navbar-liquid {
    padding: 4px 8px;
}
.glass-nav-container {
    padding: 4px 10px !important;
    border-radius: 14px;
}
.logo-img {
    height: 36px !important;
}
.navbar-toggler.glass-toggler {
    padding: 4px 6px;
    border: none;
    background: transparent;
}
.navbar-toggler .navbar-toggler-icon {
    width: 1.3rem;
    height: 1.3rem;
}

/* MENU COLLAPSE - dạng cột */
.navbar-collapse {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 10px 8px;
    margin-top: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    max-height: 55vh;
    overflow-y: auto;
}
.nav-menu {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 4px;
    width: 100%;
}
.nav-item {
    width: 100%;
}
.glass-link {
    padding: 10px 14px !important;
    font-size: 0.85rem;
    border-radius: 12px;
    background: rgba(243, 244, 246, 0.6);
    border: none;
    box-shadow: none;
    width: 100%;
    justify-content: flex-start;
}
.glass-link i {
    font-size: 1rem;
    width: 28px;
    text-align: center;
    margin-right: 6px;
}
.glass-link span {
    font-size: 0.85rem;
}

/* User pill full width */
.glass-user-pill {
    padding: 10px 14px !important;
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
    font-size: 0.85rem;
}
.glass-user-pill i {
    width: 28px;
    text-align: center;
}

/* DROPDOWN ADMIN - inline */
.dropdown-menu-glass {
    position: static !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    padding: 4px 0 4px 16px !important;
    border-radius: 0 !important;
    margin-top: 2px !important;
    width: 100%;
}
.dropdown-menu-glass .dropdown-item {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
}
.dropdown-menu-glass .dropdown-item i {
    width: 24px;
}
.dropdown-submenu .dropdown-menu {
    padding-left: 16px !important;
    border-left: 2px solid rgba(229, 231, 235, 0.8) !important;
}
.dropdown-submenu .dropdown-item {
    padding-left: 20px !important;
}

/* BANNER */
.banner {
    height: 100px !important;
}
.unread-badge {
    font-size: 0.5rem;
    padding: 0.15rem 0.4rem;
}
}

/* ─── MOBILE VỪA: 576px – 767px ────────────────────────────── */
@media (min-width: 576px) and (max-width: 767.98px) {
body {
    padding-top: 100px !important;
}

.bsp-top-banner-glass {
    padding: 3px 0;
}
.bsp-banner-content {
    padding: 0 12px;
    gap: 6px;
}
.bsp-brand .bsp-banner-link {
    font-size: 12px;
    gap: 6px;
}
.bsp-logo {
    height: 22px !important;
}
.bsp-text {
    font-size: 0.65rem;
    display: inline;
}
.bsp-text strong {
    font-size: 0.65rem;
}
.bsp-info {
    display: none !important;
}
.bsp-services-btn-glass {
    padding: 3px 10px;
    font-size: 13px;
    min-height: 30px;
}
.bsp-services-btn-glass span {
    font-size: 12px;
}

.bsp-mega-dropdown-glass {
    width: 460px;
    right: 0;
    left: auto;
    top: 36px;
}
.bsp-mega-grid {
    grid-template-columns: 1fr 1fr;
}
.bsp-mega-column:last-child {
    grid-column: 1 / -1;
    border-bottom: none;
}

.bsp-carousel-glass-section {
    display: block;
}
.bsp-carousel-item {
    font-size: 0.7rem;
}

.navbar-liquid {
    padding: 6px 12px;
}
.glass-nav-container {
    padding: 4px 14px !important;
    border-radius: 16px;
}
.logo-img {
    height: 44px !important;
}
.glass-link {
    font-size: 0.78rem;
    padding: 6px 12px !important;
}
.glass-link i {
    font-size: 0.85rem;
}
.glass-user-pill {
    font-size: 0.78rem;
    padding: 4px 12px !important;
}

.banner {
    height: 140px !important;
}
}

/* ─── TABLET (IPAD): 768px – 1024px ────────────────────────── */
@media (min-width: 768px) and (max-width: 1024px) {
body {
    padding-top: 130px !important;
}

.bsp-top-banner-glass {
    padding: 4px 0;
}
.bsp-banner-content {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 40px;
}
.bsp-brand .bsp-banner-link {
    font-size: 14px;
}
.bsp-logo {
    height: 28px !important;
}
.bsp-text {
    font-size: 0.75rem;
}
.bsp-text strong {
    font-size: 0.75rem;
}
.bsp-info {
    gap: 6px 10px;
    font-size: 13px;
    flex-wrap: wrap;
}
.bsp-info .bsp-tag {
    white-space: nowrap;
}
.bsp-services-btn-glass {
    font-size: 13px;
    padding: 4px 12px;
    min-height: 32px;
}

.bsp-mega-dropdown-glass {
    width: 600px;
    right: 0;
    left: auto;
    top: 38px;
}
.bsp-mega-grid {
    grid-template-columns: 1fr 1fr 1fr;
}
.bsp-mega-column {
    padding: 0 14px;
}
.bsp-service-list a {
    padding: 6px 6px;
}
.bsp-service-list a strong {
    font-size: 0.75rem;
}
.bsp-service-list a small {
    font-size: 0.65rem;
}

.bsp-carousel-glass-section {
    display: block;
}
.bsp-carousel-item {
    font-size: 0.75rem;
}

.navbar-liquid {
    padding: 6px 16px;
}
.glass-nav-container {
    padding: 6px 18px !important;
    border-radius: 18px;
}
.logo-img {
    height: 48px !important;
}
.glass-link {
    font-size: 0.8rem;
    padding: 6px 12px !important;
}
.glass-link i {
    font-size: 0.85rem;
}
.glass-user-pill {
    font-size: 0.8rem;
    padding: 4px 12px !important;
}

.banner {
    height: 180px !important;
}

/* Dropdown submenu trên iPad vẫn giữ hover */
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
}

/* ─── IPAD PRO: 1025px – 1366px ────────────────────────────── */
@media (min-width: 1025px) and (max-width: 1366px) {
body {
    padding-top: 130px !important;
}

.bsp-banner-content {
    max-width: 1200px;
    padding: 0 24px;
}
.bsp-mega-dropdown-glass {
    width: 680px;
}
.bsp-mega-grid {
    grid-template-columns: repeat(3, 1fr);
}
.glass-nav-container {
    max-width: 1200px;
    margin: 0 auto;
}
}

/* ─── DESKTOP LỚN: > 1366px ──────────────────────────────────── */
@media (min-width: 1367px) {
.bsp-banner-content {
    max-width: 1400px;
}
.glass-nav-container {
    max-width: 1400px;
    margin: 0 auto;
}
}

/* ─── ANIMATION ────────────────────────────────────────────────── */
@keyframes slideIn {
from {
    opacity: 0;
    transform: translateY(-6px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}