:root {
    --vfc-blue: #005b8f;
    --vfc-blue-dark: #123d5a;
    --vfc-blue-light: #e8f3f8;
    --vfc-orange: #e87722;
    --vfc-text: #1f1f1f;
    --vfc-border: #d9e2e8;
    --vfc-white: #fff;
    --vfc-shell-width: 1160px;
}

body #page-container {
    padding-top: 0 !important;
}

/* Divi reserves space for its fixed header, which this child theme replaces. */
body #et-main-area {
    margin-top: 0 !important;
}

.vfc-skip-link {
    position: fixed;
    z-index: 100001;
    top: 8px;
    left: 8px;
    padding: 10px 16px;
    color: var(--vfc-white);
    background: var(--vfc-blue-dark);
    transform: translateY(-150%);
}

.vfc-skip-link:focus {
    transform: translateY(0);
}

.vfc-site-header {
    position: sticky;
    z-index: 9999;
    top: 0;
    background: var(--vfc-white);
    box-shadow: 0 12px 24px -10px rgba(18, 61, 90, 0.18);
}

.vfc-site-header__inner {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    align-items: center;
    width: 95%;
    max-width: 2500px;
    min-height: 87px;
    margin-inline: auto;
    padding-inline: 8px;
    gap: 14px;
}

.vfc-site-header__logo {
    display: inline-flex;
    align-items: center;
}

.vfc-site-header__logo img {
    display: block;
    width: min(100%, 200px);
    height: auto;
}

.vfc-primary-menu,
.vfc-primary-menu ul,
.vfc-language-switcher__options {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vfc-primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 21px;
    padding-left: 0;
}

.vfc-primary-menu > li {
    position: relative;
}

.vfc-primary-menu > li:first-child {
    position: static;
}

.vfc-primary-menu > li.menu-item-has-children {
    padding-right: 3px;
}

.vfc-primary-menu a {
    display: flex;
    align-items: center;
    padding: 5px 0;
    color: var(--vfc-text);
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
}

.vfc-primary-menu > li.menu-item-has-children > a::after {
    width: 5px;
    height: 5px;
    margin: -3px 1px 0 7px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    color: var(--vfc-blue);
    content: '';
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 160ms ease;
}

.vfc-primary-menu > li.menu-item-has-children:hover > a::after,
.vfc-primary-menu > li.menu-item-has-children:focus-within > a::after {
    margin-top: 3px;
    transform: rotate(225deg);
}

.vfc-primary-menu > li > a::before {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--vfc-orange);
    content: '';
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 160ms ease, transform 160ms ease;
}

.vfc-primary-menu > li:hover > a::before,
.vfc-primary-menu > li:focus-within > a::before,
.vfc-primary-menu > .current-menu-item > a::before,
.vfc-primary-menu > .current-menu-ancestor > a::before {
    opacity: 1;
    transform: scaleX(1);
}

.vfc-primary-menu .sub-menu {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    visibility: hidden;
    width: 240px;
    padding: 20px 0;
    border: 0;
    border-radius: 0;
    background: var(--vfc-white);
    box-shadow: 0 14px 36px rgba(18, 61, 90, 0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.vfc-primary-menu .sub-menu .sub-menu {
    top: -20px;
    left: 100%;
}

.vfc-primary-menu li:hover > .sub-menu,
.vfc-primary-menu li:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.vfc-primary-menu .sub-menu a {
    min-height: 40px;
    padding: 6px 20px;
    line-height: 1.4;
}

.vfc-primary-menu .sub-menu a:hover,
.vfc-primary-menu .sub-menu a:focus {
    color: var(--vfc-blue);
}

.vfc-primary-menu > li:first-child > .sub-menu {
    top: 62px;
    right: auto;
    left: 8px;
    display: grid;
    grid-template-rows: repeat(4, minmax(46px, auto));
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row;
    width: 100%;
    padding: 43px 64px;
    column-gap: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.vfc-primary-menu > li:first-child > .sub-menu > li > a {
    width: 100%;
    min-height: 46px;
    padding: 5px 0;
}

.vfc-site-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vfc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 51px;
    padding: 12px 39px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.vfc-button--donate {
    color: var(--vfc-white);
    background: var(--vfc-orange);
}

.vfc-button--donate:hover,
.vfc-button--donate:focus {
    color: var(--vfc-white);
    background: #ca5e12;
}

.vfc-language-switcher {
    position: relative;
    min-width: 53px;
}

.vfc-language-switcher--mobile {
    display: none;
}

.vfc-language-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border: 0;
    color: var(--vfc-blue);
    background: transparent;
    font: inherit;
    font-size: 16px;
    cursor: pointer;
}

.vfc-language-switcher__options {
    position: absolute;
    top: 100%;
    right: 0;
    display: none;
    min-width: 84px;
    border: 1px solid var(--vfc-border);
    border-radius: 7px;
    background: var(--vfc-white);
    box-shadow: 0 10px 25px rgba(18, 61, 90, 0.12);
}

.vfc-language-switcher.is-open .vfc-language-switcher__options {
    display: block;
}

.vfc-language-switcher__options a {
    display: block;
    padding: 10px 14px;
    color: var(--vfc-blue);
    text-decoration: none;
}

.vfc-nav-toggle,
.vfc-submenu-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .vfc-site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto auto;
        min-height: 86px;
        padding-inline: 0;
        gap: 12px;
    }

    .vfc-site-header__logo img {
        width: min(100%, 230px);
    }

    .vfc-nav-toggle {
        grid-column: 3;
        grid-row: 1;
        display: inline-flex;
        align-items: center;
        justify-self: end;
        gap: 10px;
        padding: 10px;
        border: 0;
        color: var(--vfc-blue-dark);
        background: transparent;
        font: inherit;
        cursor: pointer;
    }

    .vfc-nav-toggle__label {
        position: absolute;
        overflow: hidden;
        width: 1px;
        height: 1px;
        clip: rect(0, 0, 0, 0);
    }

    .vfc-nav-toggle__icon {
        display: grid;
        width: 28px;
        gap: 5px;
    }

    .vfc-nav-toggle__icon span {
        display: block;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 160ms ease, opacity 160ms ease;
    }

    .vfc-nav-toggle[aria-expanded="true"] .vfc-nav-toggle__icon span:first-child {
        transform: translateY(7px) rotate(45deg);
    }

    .vfc-nav-toggle[aria-expanded="true"] .vfc-nav-toggle__icon span:nth-child(2) {
        opacity: 0;
    }

    .vfc-nav-toggle[aria-expanded="true"] .vfc-nav-toggle__icon span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    .vfc-primary-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        max-height: calc(100vh - 86px);
        overflow-y: auto;
        border-top: 1px solid var(--vfc-border);
        background: var(--vfc-white);
        box-shadow: 0 16px 28px rgba(18, 61, 90, 0.12);
    }

    .vfc-primary-navigation.is-open {
        display: block;
    }

    .vfc-primary-menu {
        display: block;
        width: min(calc(100% - 48px), var(--vfc-shell-width));
        margin: 0 auto;
        padding: 16px 0 0;
    }

    .vfc-primary-menu li {
        position: relative;
        border-bottom: 1px solid var(--vfc-border);
    }

    .vfc-primary-menu > li:first-child {
        position: relative;
    }

    .vfc-primary-menu a,
    .vfc-primary-menu .sub-menu a {
        padding: 14px 48px 14px 0;
        font-size: 16px;
    }

    .vfc-primary-menu > li > a::before,
    .vfc-primary-menu > li > a::after {
        display: none;
    }

    .vfc-primary-menu .sub-menu,
    .vfc-primary-menu .sub-menu .sub-menu {
        position: static;
        display: none;
        visibility: visible;
        width: auto;
        padding: 0 0 8px 20px;
        border: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        transform: none;
    }

    .vfc-primary-menu > li:first-child > .sub-menu {
        display: none;
        grid-template-rows: none;
        grid-auto-flow: row;
        width: auto;
        padding: 0 0 8px 20px;
    }

    .vfc-primary-menu .is-submenu-open > .sub-menu,
    .vfc-primary-menu > li:first-child.is-submenu-open > .sub-menu {
        display: block;
    }

    .vfc-submenu-toggle {
        position: absolute;
        top: 6px;
        right: 0;
        display: grid;
        width: 40px;
        height: 40px;
        border: 0;
        color: var(--vfc-blue);
        background: transparent;
        place-items: center;
        cursor: pointer;
    }

    .vfc-site-header__actions {
        grid-column: 2;
        grid-row: 1;
        gap: 0;
    }

    .vfc-button--donate {
        min-height: 48px;
        padding: 10px 24px;
        font-size: 16px;
    }

    .vfc-language-switcher--desktop {
        display: none;
    }

    .vfc-language-switcher--mobile {
        position: static;
        display: block;
        width: min(calc(100% - 48px), var(--vfc-shell-width));
        margin: 0 auto;
        border-bottom: 1px solid var(--vfc-border);
    }

    .vfc-language-switcher--mobile .vfc-language-switcher__toggle {
        width: 100%;
        padding: 14px 0;
        color: var(--vfc-text);
        font-size: 16px;
    }

    .vfc-language-switcher--mobile .vfc-language-switcher__options {
        position: static;
        min-width: 0;
        padding: 0 0 12px 20px;
        border: 0;
        box-shadow: none;
    }
}

@media (min-width: 1101px) and (max-width: 1400px) {
    .vfc-primary-menu {
        justify-content: flex-start;
        padding-left: 9px;
    }
}

@media (max-width: 620px) {
    .vfc-site-header__inner {
        gap: 8px;
    }

    .vfc-site-header__logo img {
        max-width: 210px;
    }

    .vfc-button--donate {
        min-width: clamp(88px, 23vw, 116px);
        padding-inline: 18px;
    }
}
