header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 0 20px;
    font-family: var(--titleFont);
    width: 100%;
    height: 120px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-bottom: 1px var(--grey) solid;
    transition: height 0.3s ease;
}

nav#primary-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.home-link {
    height: 100%;
    display: flex;
    align-items: center;
}

.home-link a {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Shared styles for both logos */
.home-link img {
    height: 100%;
    width: auto;
    transition: all 0.3s ease;
}

/* Show only desktop logo by default */
.logo-desktop {
    display: block;
}

/* Mobile logo hidden by default */
.logo-mobile {
    display: none;
}

/* Show mobile logo, hide desktop below 943px */
@media screen and (max-width: 943px) {
    .logo-desktop {
        display: none;
    }
    .logo-mobile {
        display: block;
    }
}

header nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    height: 100%;
}

.menu {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: center;
    height: 100%;
}

.menu > li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.menu > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 20px;
    color: var(--fontColour);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.menu > li > a:hover,
.menu > li:hover > a {
    background-color: var(--grey);
    color: var(--orange2);
}

/* === DROPDOWN === */
.menu li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--grey);
    width: 101%;
    z-index: 9999;
    padding: 0;
    list-style: none;
    text-align: left;
}

.menu li:hover > ul {
    display: block;
}

.menu li ul li a {
    padding: 12px 5%;
    display: block;
    color: var(--fontColour);
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1.4;
    border-bottom: 1px solid var(--grey);
}

.menu li ul li:first-child a {
    border-top: 1px solid var(--grey);
}

.menu li ul li a:hover {
    background-color: var(--grey);
    color: var(--orange2);
}

header .donate-button {
    background-color: var(--orange2);
    color: white;
    border: none;
    padding: 15px 25px;
    font-family: var(--mainFont);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    height: 60px;
    margin-right: 30px;
    margin-left: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.10);
    align-self: center;
}

header .donate-button:hover {
    background-color: var(--orange3);
}

/* === RESPONSIVE HEADER HEIGHTS & ELEMENT ADJUSTMENTS === */

@media screen and (max-width: 1536px) {
    header {
        height: 100px;
    }
}

@media screen and (max-width: 1366px) {
    header {
        height: 90px;
    }
}

@media screen and (max-width: 1024px) {
    header {
        height: 80px;
    }
    header .donate-button {
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    .menu > li > a {
        padding: 0 14px;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 820px) {
    header {
        height: 70px;
    }
    header .donate-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .menu > li > a {
        padding: 0 12px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    header {
        height: 60px;
    }
    header .donate-button {
        padding: 8px 12px;
        font-size: 0.85rem;
        height: 50px;
    }
    .menu > li > a {
        padding: 0 10px;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 425px) {
    header {
        height: 50px;
    }
    header .donate-button {
        padding: 8px 12px;
        font-size: 0.75rem;
        height: 40px;
    }
    .menu > li > a {
        padding: 8px;
        font-size: 0.75rem;
    }
}

@media screen and (max-width: 375px) {
    header {
        height: 40px;
    }
    header .donate-button {
        padding: 8px 12px;
        font-size: 0.65rem;
        height: 30px;
    }
    .menu > li > a {
        padding: 6px;
        font-size: 0.65rem;
    }
}