/* ═══════════ Header Brand Navigation ═══════════ */

#site-brand-header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#site-brand-header .brand-link {
    color: #ffffff;
    opacity: 0.95;
}

#site-brand-header.scrolled {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 18px rgba(12, 12, 15, 0.06);
    backdrop-filter: none;
}

#site-brand-header.scrolled .brand-link {
    color: #0b1220;
    opacity: 1;
}

.brand-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.25s ease;
}

.brand-link:hover::after {
    width: 100%;
}

/* Dropdown styles */
.brand-menu-item:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.has-sub-menu:hover .sub-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.has-sub-menu:hover .sub-arrow {
    color: #0066cc;
    transform: translateX(3px);
}

.brand-menu-item:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.sub-dropdown-panel {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 2px 10px rgba(0, 0, 0, 0.08);
}

.dropdown-link {
    position: relative;
}

.dropdown-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: #0066cc;
    transition: height 0.2s ease;
}

.dropdown-link:hover::before {
    height: 60%;
}
