/* Header styles */
.site-header {
    box-shadow: 0 4px 16px rgba(0,0,0,0.22);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1002;
    width: 100%;
    background: var(--primaryColor);
}
.header-inner {
    margin: 0 auto;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 6px 24px;
    gap: 10px;
    font-size: 0.92rem;
    position: relative;
    z-index: 2;
}

.site-branding {
    flex-shrink: 0;
}

.header-search {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 999px;
    padding: 0 16px;
    max-width: 600px;
    min-width: 0;
    margin-left: 32px;
    height: 48px;
}

.header-search input {
    border: none;
    background: transparent;
    font-size: 1.1rem;
    padding: 12px 0;
    width: 100%;
    outline: none;
}

.header-search button {
    border: none;
    color: #fff;
    font-size: 1.3rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.header-search button:hover {
    background: #e0e0e0;
}

/* Navigation styles */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 28px;
    margin: 0;
    padding: 0;
}
.main-navigation a {
    color: var(--accentColor);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 5px;
    transition: background 0.2s, color 0.2s;
}
.main-navigation a:hover, .main-navigation .current-menu-item a {
    color: var(--accentColorHover);
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--accentColor);
    margin-left: auto;
    flex-shrink: 0;
}
.sidebar-menu {
    position: fixed;
    top: 0; 
    right: -320px;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.08);
    transition: right 0.3s;
    z-index: 1000;
    padding-top: 60px;
    display: block;
    overflow-y: auto;
}

.sidebar-menu.open { 
    right: 0; 
}

.sidebar-menu .main-navigation {
    display: block;
    padding: 0 16px;
}

.sidebar-menu .main-navigation ul {
    flex-direction: column;
    gap: 0;
}

.sidebar-menu .main-navigation a {
    display: block;
    padding: 14px 12px;
    color: #333;
    font-size: 1.2rem;
    font-family: var(--handwriteFont);
    font-weight: 200;
}

.sidebar-menu .main-navigation a:hover {
    color: var(--accentColorHover);
}

.sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.sidebar-close:hover {
    background: #e0e0e0;
}

.sidebar-features {
    display: block;
    padding: 20px 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.sidebar-features-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.sidebar-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sidebar-feature-item {
    display: block;
    padding: 10px 12px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.95rem;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.sidebar-feature-item:hover {
    background: var(--primaryColor);
    color: var(--accentColor);
}

.header-search input[type="text"] {
    font-size: 0.95rem;
    padding: 5px 10px;
    height: 28px;
    border-radius: 6px;
}
.header-search button {
    font-size: 1rem;
    height: 28px;
    width: 28px;
    padding: 0;
    background: none;
    color: #c6c6c6;
}
.header-avatar-menu {
    position: relative;
    display: inline-block;
    margin-left: 32px;
    flex-shrink: 0;
}
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #f3f3f3;
    transition: box-shadow 0.2s;
}
.avatar-circle img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.avatar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 48px;
    background: #222;
    color: #fff;
    min-width: 140px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    padding: 12px 0;
    z-index: 1003;
    font-size: 1rem;
}
.header-avatar-menu.open .avatar-dropdown {
    display: block;
}
.avatar-dropdown a, .avatar-dropdown span {
    display: block;
    padding: 8px 18px;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #333;
}
.avatar-dropdown a:last-child {
    border-bottom: none;
}
.avatar-dropdown a:hover {
    background: #333;
}

@media (max-width: 900px) {
    .header-inner {
        padding: 12px 16px;
        gap: 8px;
    }
    .header-search {
        margin: 0 16px 0 0;
        max-width: none;
        height: 40px;
        padding: 0 12px;
    }
    .header-search input {
        font-size: 0.95rem;
    }
    .main-navigation ul {
        gap: 12px;
    }
    .header-avatar-menu {margin-left: 0;}
}

@media (max-width: 768px) {
    .header-inner {
        padding: 8px 12px;
        gap: 6px;
    }
    .header-search {
        margin-left: 12px;
        margin-right: 8px;
        padding: 0 10px;
        height: 36px;
    }
    .header-search input {
        font-size: 0.9rem;
        padding: 8px 0;
    }
    .header-search button {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .header-avatar-menu {
        margin-left: 0;
    }
}