
.menu .menu-item {
    list-style: none;
    position: relative;
    line-height: 23px;
    cursor: pointer;
    white-space: nowrap;
}

.external-link-icon:after {
    display: inline-block;
    content: '';
    width: 14px;
    height: 14px;
    background: url(../images/External_Link.svg);
    background-size: initial;
    margin-left: 8px;
}
.external-link-icon:hover:after, .menu-footer-menu-container>ul>li.external-link-icon:after  {
    background: url(../images/External_Link-hover.svg);
    background-size: initial;

}

footer#colophon {
    background: var(--jpl-secondary-color);
    padding: 48px 0 35px;
}

.footer-menu  .menu >.menu-item > a {
    color: #0251B1;
    font-size: 16px;
    line-height: 23px;
    letter-spacing: 0;
}

.footer-menu .sub-menu {
    padding: 7px 0 0;
}

.sub-menu a {
    font-size: 14px;
    line-height: 19px;
}

.footer-menu .menu >.menu-item:not(:first-child, :last-child) {
    padding: 0 18px 0 51px;
}

.footer-menu .menu >.menu-item:not(:first-child):before {
    content: '';
    display: block;
    width: 1px;
    height: 20px;
    position: absolute;
    top: 0;
    left: 0;
    background: var(--jpl-c2_grey-color);
}

.footer-menu  .menu >.menu-item:first-child {
    padding-right: 53px;
}

.footer-menu .menu >.menu-item:last-child {
    padding-left: 54px;
}


.social-media {
    display: flex;
    flex-wrap: wrap;
    max-width: 291px;
    padding: 0;
    margin: 0px 0px 0;
}

.social-media li {
    list-style: none;
    width: 26px;
    margin-bottom: 8px;
    margin-right: 32px;
    position: relative;
}


.site-footer .container {
    max-width: 1285px;
}

.footer-menu .sub-menu .menu-item {
    margin-bottom: 9px;
}

/* .footer-menu  .menu >.menu-item:not(:first-child, :last-child) > a {
    padding: 0 37px 0 0;
} */

.footer-menu .sub-menu .menu-item .sub-menu a {
    font-size: 12px;
    line-height: 17px;
}

.footer-menu .sub-menu .menu-item .sub-menu {
    padding-top: 0;
}

.footer-menu .sub-menu .menu-item .sub-menu .menu-item {
    margin-bottom: -2px;
}

.footer-top {
    padding: 0 0 48px;
}

.footer-middle .col-left img {
    max-width: 148px;
    display: inline-block;
    vertical-align: middle;
}

.footer-middle {
    display: flex;
    flex-wrap: wrap;
    padding: 0 0 36px;
}

.footer-middle .col-right {
    width: 347px;
}

.footer-middle .col-left {
    width: calc(100% - 347px);
}

.footer-middle .col-right p {
    margin: 0;
    width: calc(100% - 45px);
}

.footer-middle form.wpcf7-form label {
    font-size: 16px;
    line-height: 23px;
    color: #0251B1;
    margin-bottom: 15px;
}

.footer-middle .col-right input[type="email"] {
    border-bottom: 2px solid #0265DD;
    font-size: 14px;
    line-height: 19px;
    color: var(--jpl-c1_grey-color);
    padding: 5px 0;
    width: 100%;
    letter-spacing: 0;
    font-family: "Noto Sans HK", sans-serif;
}

.footer-middle .col-right input[type="submit"] {
    padding: 9px 30px;
    background: transparent;
    font-size: 14px;
    line-height: 21px;
}

.footer-middle form.wpcf7-form {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-end;
}

form.wpcf7-form .button {
    padding: 0;
    margin-left: 24px;
    margin-top: 34px;
}

form.wpcf7-form .button .wpcf7-spinner {
    position: absolute;
    bottom: 6px;
    left: 10px;
}

.footer-bottom .copy-right {
    font-size: 14px;
    line-height: 19px;
    letter-spacing: 0;
    padding-top: 54px;
    color: #000;
    width: calc(100% - 200px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.footer-bottom .col-right {
    text-align: right;
    width: 190px;
}

.footer-bottom .copy-right p {
    margin: 0;
}

.footer-bottom .col-right .custom-menu {
    padding-top: 13px;
}

.custom-menu .menu .menu-item a {
    font-size: 14px;
    line-height: 19px;
    color: #000;
}

.custom-menu .menu {
    column-gap: 32px;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.custom-menu .menu .menu-item a:hover, 
.custom-menu .menu .current-menu-item a {
    color: #0265DD;
}

button#button-back-to-top {
    padding: 0;
    border-radius: 50%;
    line-height: 0;
    pointer-events: all;
}

.button-sticky-wraper {
    position: absolute;
    top: 0px;
    right: 20px;
    cursor: pointer;
    flex-wrap: wrap;
    margin: 0;
    width: 42px;
    justify-content: center;
    z-index: 3;
    text-align: center;
    height: 100%;
    padding-bottom: calc(var(--footer-height) + 26px);
    pointer-events: none;
}

div#button-sticky {
    position: sticky;
    bottom: 50px;
    top: calc(100% - 112px);
    display: none;
}

div#page {
    position: relative;
}

.qr-code {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), #0265DD;
    width: 200px;
    min-height: 120px;
    padding: 10px;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    top: -18px;
    left: 0;
    transform: translate(0%, -100%);
}

.qr-code img{
    display: inline-block;
    vertical-align: middle;
}


.social-media li a {
    position: relative;
}

@media (min-width: 768px){
    .site-footer .social-media li:hover .qr-code {
        opacity: 1;
        visibility: visible;
    }

    .site-footer .qr-code:before {
        content: '';
        position: absolute;
        bottom: -9px;
        width: 13px;
        height: 12px;
        background: url('../images/Polygon.svg');
    }
}

@media (min-width: 1025px){
.menu {
    display: flex;
    padding: 0;
    margin: 0;
    justify-content: space-between;
}
}

@media (min-width: 1367px){
    .button-sticky-wraper {
        right: calc((100vw - 1440px) / 2 + 20px);
    }
}

@media (min-width: 1440px){
    .button-sticky-wraper {
        right: calc((100vw - 1440px) / 2 + 40px);
    }
}

@media (min-width: 1600px){
    .button-sticky-wraper {
        right: calc((100vw - 1440px) / 2 - 57px);
    }
}

@media (max-width: 1280px){

    .footer-menu .menu >.menu-item:not(:first-child, :last-child) {
        padding: 0 18px 0 30px;
    }

    .footer-menu .menu >.menu-item:first-child {
        padding-right: 30px;
    }

    .footer-menu .menu >.menu-item:last-child {
        padding-left: 30px;
    }

    .footer-menu .menu >.menu-item:not(:first-child, :last-child) > a {
        padding: 0 0px 0 0 ;
    }
}

@media (max-width: 1024px){
    .footer-top {
        display: none;
    }
}

@media (max-width: 767px){

    .qr-code {
        width: 200px;
        min-height: 200px;
    }
    
    .social-media li {
        margin-left: 16px;
        margin-right: 16px;
    }
    
    .footer-middle .col-left {
        width: 100%;
        order: 2;
        text-align: center;
    }

    .footer-social {
        display: block;
        width: 100%;
        order: 3;
        text-align: center;
    }
    
    .footer-middle .col-right {
        order: 1;
        padding-bottom: 42px;
        margin: 0 auto;
    }
    
    .footer-middle .col-left img {
        max-width: 103px;
        margin: 0 auto;
    }

    
    .footer-social .social-media {
        margin: 23px auto 0;
        justify-content: center;
    }
    
    .footer-bottom .copy-right {
        border-top: 1px solid var(--jpl-c2_grey-color);
        order: 2;
        padding-top: 25px;
        font-size: 12px;
        line-height: 17px;
        text-align: center;
        text-align: center;
        width: 100%;

    }
    
    .footer-bottom .col-right {
        border-top: 1px solid var(--jpl-c2_grey-color);
        width: 100%;
        text-align: center;
        order: 1;
        padding-top: 23px;
        padding-bottom: 24px;
    }
    
    .footer-middle {
        padding: 0 0 33px;
    }
    
    .footer-bottom .col-right img {
        width: 55px;
    }
    
    .footer-bottom .col-right .custom-menu {
        padding-top: 0px;
    }
    
    .footer-bottom .col-right .custom-menu ul {
        display: flex;
        justify-content: center;
        margin: 0;
    }
    
    .custom-menu .menu .menu-item a {
        font-size: 12px;
        line-height: 17px;
    }
    
    footer#colophon .menu .menu-item {
        line-height: 17px;
    }
    
    .footer-bottom .copy-right p {
        margin: 0 auto 9px auto;
        max-width: 282px;
    }
    
    footer#colophon {
        padding: 23px 0 52px;
    }

    .social-media li.open-popup .qr-code {
        opacity: 1;
        visibility: visible;
    }
    
    .social-media li.open-popup a {
        z-index: 10;
    }
    
    .footer-social .social-media li .qr-code {
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        position: fixed;
        z-index: 13;
    }
    
    .footer-social .social-media li:before {
        top: 0;
    }

    html.open-popup {
        overflow: hidden;
        
    }
    .footer-middle form.wpcf7-form{
        justify-content: center;
    }
    form.wpcf7-form .button{
        margin-left: 0px;
    }
}

@media screen and (max-width: 480px){
    .footer-middle .col-right p{
        width: 100%;
    }
}