/* ===== Header ===== */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: #600193;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

#PageLogoButton {
    height: 52px;
    width: auto;
    filter: drop-shadow(0px 0px 9px rgb(255, 255, 255));
}
#PageTitleText {
    font-family: Gabriola;
    font-size: clamp(1.4rem, 6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}
#Side_Navigation_Button {
    width: 40px;
    height: 40px;
    cursor: pointer;
    filter: brightness(0) invert(1);
}
:target {
    scroll-margin-top: 100px; /* Desktop height */
}

@media (max-width: 768px) {
:target {
    scroll-margin-top: 60px; /* Mobile height */
}
}

/* ===== Side Navigation ===== */
.anchor { position: relative; top: -80px; }
#Side_Navigation_Bar {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    background: #600193;
    color: white;
    padding: 1.5rem;
    border-radius: 12px 0 0 12px;
    box-shadow: -6px 0 20px rgba(0,0,0,0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 99;
}
#Side_Navigation_Bar.open {
    transform: translateX(0);
}
#Side_Navigation_Bar nav ul {
    list-style: none;
}
#Side_Navigation_Bar nav a {
    display: block;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.3rem;
}
#Side_Navigation_Bar nav a:hover {
    background: rgba(255,255,255,0.15);
}
