/* Custom Header Styles */
.custom-site-header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 99999;
    width: 100%;
}

.custom-header-inner {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
}

/* Branding */
.custom-site-branding {
    flex-shrink: 0;
}

.custom-site-branding .custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.custom-site-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.custom-site-title:hover {
    color: #4361ee;
}

/* Navigation - centered absolutely */
.custom-site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.custom-site-nav ul {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-site-nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: block;
}

.custom-site-nav ul li a:hover,
.custom-site-nav ul li.current-menu-item a {
    color: #4361ee;
    background: rgba(67, 97, 238, 0.08);
}

/* Hamburger toggle - hidden on desktop */
.custom-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    justify-content: center;
}

.custom-nav-toggle-icon {
    display: block;
    width: 24px;
    height: 18px;
    position: relative;
}

.custom-nav-toggle-icon::before,
.custom-nav-toggle-icon::after {
    content: "";
    display: block;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.custom-nav-toggle-icon::before {
    margin-bottom: 6px;
    box-shadow: 0 6px 0 #333;
}

.custom-nav-toggle[aria-expanded="true"] .custom-nav-toggle-icon::before {
    box-shadow: none;
    transform: translateY(4px) rotate(45deg);
}

.custom-nav-toggle[aria-expanded="true"] .custom-nav-toggle-icon::after {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .custom-header-inner {
        flex-wrap: wrap;
        padding: 12px 20px;
    }

    .custom-nav-toggle {
        display: flex;
    }

    .custom-site-nav {
        position: static;
        left: auto;
        transform: none;
        display: none;
        width: 100%;
        order: 3;
        padding-top: 10px;
        border-top: 1px solid #eee;
        margin-top: 10px;
    }

    .custom-header-inner.nav-open .custom-site-nav {
        display: block;
    }

    .custom-site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .custom-site-nav ul li a {
        padding: 12px 15px;
        border-radius: 4px;
    }
}
