/*
Theme Name: Jenkar
Author: The Wonder Agency
Author URI: https://wonderagency.co.uk/
Version: 1.0
*/

/* Fonts */
@font-face {
    font-family: 'Montserrat';
    src: 
         local('Montserrat'),
         url('../woff2/montserrat-variablefont.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* Global */
* {
    font-family: 'Montserrat', sans-serif;
    box-sizing: border-box;
    margin: 0;
    scroll-behavior: smooth;
}
body {
    -webkit-text-size-adjust: 100%;
}
p {
    line-height: 1.4;
    margin-bottom: 20px;
}
p:empty {
    display: none;
}
main > p {
    text-align: center;
    padding: 40px 20px;
    margin-inline: auto;
    max-width: 1400px;
}
img {
    max-width: 100%;
    height: auto;
}
ol, ul {
    list-style: none;
    padding-inline-start: 0;
}
a {
    text-decoration: none;
    color: var(--colour-black);
}
p > a {
    text-decoration: underline;
    color: var(--colour-navy);
    font-weight: 500;
}
main {
    position: relative;
    top: 173px;
    overflow: hidden;
}
footer {
    position: relative;
    top: 290px;
    background-color: var(--colour-navy);
    padding-top: 60px;
}
footer:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 25vw solid transparent;
    border-right: 75vw solid transparent;
    border-bottom: 80px solid var(--colour-navy);
    position: absolute;
    z-index: 99;
    top: -80px;
}
@media screen and (min-width: 1200px) {
    main {
        top: 130px;
    }
    footer {
        top: 210px;
    }
    main > p {
        padding: 80px 40px 60px;
    }
}

/* Helper */
.constrained-width {
    max-width: 1500px;
    margin: auto;
}
.h2-title {
    padding-bottom: 25px;
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 700;
}
.h2-title-blue {
    font-size: 24px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--colour-navy);
}
.btn-contact {
    display: block;
    margin-top: 40px;
    width: 100%;
    background-color: var(--colour-yellow);
    padding: 10px 55px;
    font-weight: 700;
    text-transform: uppercase;
}
.full-width {
    width: 100% !important;
    position: relative;
}
@media screen and (min-width: 1200px) {
    .h2-title,
    .h2-title-blue {
        font-size: var(--font-36px);
    }
    .btn-contact {
        font-size: var(--font-24px);
    }
}

/* Header */
.site-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    z-index: 999;
    
}
.site-header.fixed-to-top {
    position: fixed;
    top: 0;
}
.header-inner {
    display: flex;
    align-items: center;
    background-color: var(--colour-white);
    width: 100%;
    padding: 60px 35px 40px;
    position: relative;
    z-index: 2;
}
body.menu-toggled .site-header {
    position: fixed;
    height: 100%;
    overflow-y: scroll;
}
body.menu-toggled {
    overflow: hidden;
}
.header-logo {
    z-index: 99;
}
.header-logo img {
    height: auto;
    width: 200px;
}
.main-nav-container {
    min-height: 100vh;
    height: max-content;
    overflow: hidden;
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
}
.main-nav-container.toggled {
    pointer-events: all;
}
.main-navigation {
    transform: translateY(-100%);
    transition: .75s;
}
#menustate {
    display: none;
}
#menustate:checked ~ .site-header :is(.close) {
    display: none;
    visibility: hidden;
}
#menustate:checked ~ .site-header :is(.close) {
    display: block;
    visibility: visible;
}
#menustate:checked ~ .site-header :is(.main-navigation) {
    transform: translateY(0);
}
#menustate:checked ~ .site-header :is(.main-navigation nav:after) {
    height: 100px;
}
.menustate-label {
    position: relative;
    z-index: 99;
    cursor: pointer;
    height: 25px;
    width: 40px;
}
.menustate-label .open {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}
.menustate-label .open div {
    width: 40px;
    height: 5px;
    background-color: var(--colour-navy);
    transition: .75s;
    position: absolute;
}
.menustate-label .open div:nth-child(1),
.menustate-label .close div:nth-child(1) {
    top: 0;
    transform: rotate(0);
}
.menustate-label .open div:nth-child(2),
.menustate-label .close div:nth-child(2) {
    top: 10px;
    width: 20px;
}
.menustate-label .open div:nth-child(2) {
    left: 20px;
}
.menustate-label .open div:nth-child(3),
.menustate-label .close div:nth-child(3){
    top: 20px;
    transform: rotate(0);
}
.menustate-label:hover .open div:nth-child(2) {
    width: 40px;
    left: 0;
}
.menustate-label .open.toggled {
    z-index: -1;
    top: 10px;
    pointer-events: none;
}
.menustate-label .open.toggled div:nth-child(1) {
    transform: rotate(45deg);
}
.menustate-label .open.toggled div:nth-child(3) {
    transform: rotate(-45deg);
    top: 0;
}
.menustate-label .open.toggled div {
    opacity: 0;
    visibility: hidden;
}
.menustate-label .open.toggled ~ .close div:nth-child(1) {
    transform: rotate(45deg);
}
.menustate-label .open.toggled ~ .close div:nth-child(2) {
    opacity: 0;
}
.menustate-label .open.toggled ~ .close div:nth-child(3) {
    transform: rotate(-45deg);
    top: 0;
}
.menustate-label .open.toggled ~ .close {
    opacity: 1;
    right: 0;
    top: -15px;
}
.menustate-label .close {
    position: relative;
    top: 10px;
    transition-property: opacity;
    opacity: 0;
    visibility: hidden;
    right: -40px;
}
.menustate-label .close div {
    width: 40px;
    height: 5px;
    background-color: var(--colour-navy);
    position: absolute;
    transition: .75s;
    right: 0;
}
.header-btns {
    display: flex;
    align-items: center;
    position: absolute;
    right: 35px;
}
.main-navigation {
    position: relative;
    width: 100%;
    height: max-content;
    top: 0;
    left: 0;
}
.main-navigation nav {
    padding-top: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    background-color: var(--colour-white);
    position: relative;
    overflow-x: clip;
}
.main-navigation nav:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 100vw solid transparent;
    border-right: 100vw solid transparent;
    border-top: 120px solid var(--colour-white);
    position: absolute;
    z-index: 99;
    bottom: -100px;
}
.main-navigation nav .menu-item a {
    color: var(--colour-black);
    text-transform: uppercase;
}
.main-navigation nav .current_page_item a {
    color: var(--colour-navy);
}
.main-navigation nav .menu-item {
    font-size: var(--font-24px);
    font-weight: 700;
    text-align: center;
    padding-bottom: 24px;
}
.main-navigation nav .sub-menu .menu-item a {
    font-size: var(--font-16px);
    font-weight: 600;
    color: rgba(0, 0, 0, 0.56);
}
#menu-main-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.main-navigation #menu-main-menu > .menu-item:last-child {
    padding-top: 16px;
    margin-top: 16px;
    width: 200px;
    height: 40px;
    position: relative;
    background: var(--colour-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
}
.main-navigation #menu-main-menu > .menu-item:last-child:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}
.main-navigation #menu-main-menu > .menu-item:last-child:before {
    content: "";
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 20px solid var(--colour-yellow);
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
}
.main-navigation nav .menu-item:last-child a {
    font-weight: 600;
    position: relative;
    top: 4px;
    left: 10px;
}
.site-header nav .sub-menu {
    height: 0;
    overflow: hidden;
    transition: height .75s;
}
.main-navigation nav .sub-menu .menu-item:last-child a {
    position: static;
}
.main-navigation nav .sub-menu .menu-item:first-child {
    padding-top: 36px;
}
.main-navigation nav .menu-item-has-children > a {
    position: relative;
}
.main-navigation nav .menu-item-has-children > a:after {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-left: 20px solid var(--colour-yellow);
    border-bottom: 10px solid transparent;
    position: absolute;
    top: 5px;
    right: -30px;
    transition: .75s;
}
.main-navigation nav .menu-item.menu-expanded a:after {
    transform: rotate(90deg);
    top: 10px;
}
.nav-socials {
    padding: 115px 0 75px;
}
.nav-socials img {
    width: 40px;
    margin: 0 13px;
}
.main-nav-container-d  {
    display: none;
}
#menu-main-menu-desktop .sub-menu {
    opacity: 1;
    height: max-content;
    width: 100%;
    overflow: visible;
    display: flex !important;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 30px 20px;
    padding: 60px 0;
    position: relative;
}
#menu-main-menu-desktop .sub-menu-container {
    width: 100vw;
    height: max-content;
    background-color: var(--colour-white);
    position: absolute;
    left: 0;
    top: 130px;
    height: 0;
    overflow: hidden;
    transition: height .75s;
}
#menu-main-menu-desktop .sub-menu li {
    display: flex;
}
#menu-main-menu-desktop .sub-menu li a {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
#menu-main-menu-desktop .sub-menu li a span {
    background-color: var(--colour-yellow);
    text-align: center;
    padding: 10px 0;
    font-size: var(--font-22px);
    font-weight: 700;
}
#menu-main-menu-desktop .sub-menu li a img {
    height: 100%;
    max-height: 245px;
    object-fit: cover;
}
#menu-main-menu-desktop .sub-menu-container {
    display: none;
}
#menu-main-menu-desktop .sub-menu-container:has(li) {
    display: block;
}
#menu-main-menu-desktop .sub-menu li {
    width: 30%;
}
#menu-main-menu-desktop {
    display: flex;
    align-items: center;
    gap: 46px;
    margin-right: 20px;
}
#menu-main-menu-desktop > .menu-item {
    padding-bottom: 5px;
}
#menu-main-menu-desktop .menu-item a {
    color: var(--colour-black);
    font-size: var(--body-regular);
    font-weight: 600;
    text-transform: uppercase;
}
#menu-main-menu-desktop > .menu-item:last-child {
    width: 250px;
    height: 30px;
    position: relative;
    background: var(--colour-yellow);
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
    margin-bottom: 5px;
}
#menu-main-menu-desktop > .menu-item:last-child:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}
#menu-main-menu-desktop > .menu-item:last-child:before {
    content: "";
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 20px solid var(--colour-yellow);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}
#menu-main-menu-desktop > .menu-item:last-child a {
    position: relative;
    left: 10px;
}
.header-contact {
    display: flex;
    justify-content: end;
    position: relative;
    bottom: 25px;
    gap: 50px;
}
.header-contact a {
    color: var(--colour-black);
    font-size: 12px;
    text-decoration: underline;
}
@media screen and (min-width: 1200px) {
    .main-nav-container,
    .header-btns {
        display: none;
    }
    .main-nav-container-d {
        display: block;
    }
    .site-header {
        padding: 30px 35px;
        flex-direction: row;
        align-items: center;
        height: initial;
        background-color: var(--colour-white);
    }
    .header-inner {
        padding: 0;
        width: initial;
        background-color: transparent;
    }
    .header-logo img {
        width: 250px;
    }
    .site-header .current-menu-item:not(:last-child) {
        border-bottom: 3px solid var(--colour-yellow);
    }
    #menu-main-menu-desktop .menu-item-has-children:hover .sub-menu-container {
        height: 721px;
    }
}

/* Footer */
.footer-menu {
    padding: 0 30px;
    display: flex;
    flex-wrap: wrap;
}
.footer-menu,
.footer-menu a {
    color: var(--colour-white);
}
.footer-menu li {
    padding-bottom: 10px;
}
.footer-menu ul {
    padding-bottom: 45px;
}
.footer-menu-item {
    flex: 1 0 50%;
}
.footer-menu-item:last-child ul {
    padding-bottom: 20px;
}
.footer-menu-item .nav-socials {
    margin-bottom: 80px;
    padding: 0;
}
.footer-menu-item .nav-socials .nav-social:first-of-type img {
    margin-left: 0;
}
.footer-menu-title {
    font-weight: 700;
    display: block;
    padding-bottom: 45px;
}
.footer-contact-link {
    text-decoration: underline;
}
.footer-logo {
    max-width: 320px;
    margin: 0 auto;
    display: block;
    padding-bottom: 90px;
}
@media screen and (min-width: 768px) {
    .footer-menu-item {
        flex: 1 0 33%;
    }
}
@media screen and (min-width: 1200px) {
    footer {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    .footer-menu {
        padding: 0;
        padding-right: 90px;
        gap: 30px;
    }
    .footer-menu-item {
        flex: 1 0 30%;
    }
    .footer-logo {
        height: max-content;
        padding: 0;
        margin: 0;
        position: relative;
        bottom: 35px;
        left: 90px;
    }
}
@media screen and (min-width: 1400px) {
    .footer-menu-item {
        flex: initial;
    }
    .footer-menu {
        gap: 80px;
    }
    .footer-logo {
        max-width: 375px;
    }
}

/* Hero/404 */
.hero-container {
    position: relative;
    min-height: 470px;
    display: flex;
    align-items: end;
}
.hero-image {
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 100% 90%, 50% 100%, 0 90%, 0% 75%);
}
.hero-text {
    padding: var(--section-spacing);
    color: var(--colour-white);
    font-size: var(--font-40px);
    max-width: 640px;
    position: relative;
    padding-bottom: 100px;
}
.hero-text::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-left: 30px solid var(--colour-yellow);
    border-bottom: 10px solid transparent;
    position: absolute;
    bottom: 110px;
    margin-left: 15px;
}
.hero-overlay {
    position: absolute;
    background: #000;
    height: 100%;
    width: 100%;
    top: 0;
    opacity: .4;
    clip-path: polygon(0% 0%, 100% 0%, 100% 75%, 100% 90%, 50% 100%, 0 90%, 0% 75%);
}
.hero-container hr {
    display: none;
}
@media screen and (min-width: 1200px) {
    .hero-text::after {
        content: "";
        width: 0;
        height: 0;
        border-top: 20px solid transparent;
        border-left: 50px solid var(--colour-yellow);
        border-bottom: 20px solid transparent;
        position: absolute;
        bottom: 150px;
        margin-left: 40px;
    }
    .hero-text {
        font-size: var(--font-96px);
        max-width: 1315px;
        padding-bottom: 120px;
    }
    .hero-container hr {
        display: block;
        width: 85%;
        border: 1px solid var(--colour-white);
        position: absolute;
        bottom: 90px;
        margin: 0 auto;
        left: 0;
        right: 0;
    }
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: end;
    }
    .hero-overlay {
        top: 0;
    }
}
@media screen and (min-width: 1400px) {
    .hero-text {
        text-align: end;
        right: 120px;
    }
    .hero-container {
        align-items: end;
    }
}

/* Find your way */
.fyw-copy {
    padding: 60px var(--section-spacing) var(--section-spacing);
}
.find-your-way h2 {
    color: var(--colour-navy);
    font-size: var(--font-36px);
    font-weight: 700;
}
.find-your-way .btn-contact {
    width: max-content;
}
.fyw-image {
    border-bottom: 20px solid var(--colour-yellow)
}
@media screen and (min-width: 1200px) {
    .find-your-way .btn-contact {
        font-size: var(--font-16px);
    }
    .fyw-copy {
        width: 55%;
        max-width: 840px;
        padding-left: 70px;
    }
    .fyw-image {
        width: 45%;
        object-fit: cover;
        max-height: 300px;
    }
    .find-your-way {
        padding-block: 70px 160px;
        display: flex;
        justify-content: space-between;
        position: relative;
        overflow-x: clip;
    }
}

/* Webtrack Banner */
.webtrack-banner {
    margin-top: 20px;
}
.webtrack-banner .btn-contact {
    width: max-content;
    margin-inline: auto;
}
.webtrack-banner .banner-contents {
    background: var(--colour-navy);
    position: relative;
    overflow: hidden;
}
.webtrack-banner .tracking-actions-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: var(--section-spacing);
}
.webtrack-banner .track-cargo {
    color: var(--colour-white);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 270px;
}
.webtrack-banner .step-by-step {
    width: max-content;
    background-color: var(--colour-white);
    color: var(--colour-navy);
    padding: 25px;
    font-weight: 700;
}
.webtrack-arrow {
    position: absolute;
    top: 50%;
    right: 45px;
    transform: translateY(-50%);
    width: 65px;
    height: 220px;
}
.webtrack-arrow:last-child {
    right: 5px;
}
.track-cargo-desktop {
    display: none;
}
.webtrack-banner .tracking-btns-desktop {
    display: none;
}
.tracking-arrows-container {
    display: none;
}
@media screen and (min-width: 768px) {
    .webtrack-arrow {
        right: 60px;
    }
    .webtrack-arrow:last-child {
        right: 15px;
    }
}
@media screen and (min-width: 1200px) {
    .webtrack-banner .banner-contents .tracking-actions-container {
        padding-inline: calc(var(--section-spacing)*2);
    }
    .webtrack-banner .track-cargo,
    .webtrack-banner .step-by-step {
        font-size: var(--font-20px);
    }
    .webtrack-arrow {
        right: 75px;
    }
    .webtrack-arrow:last-child {
        right: 25px;
    }
}
@media screen and (min-width: 1425px) {
    .webtrack-banner .banner-contents {
        display: flex;
    }
    .webtrack-banner .track-cargo {
        font-size: var(--font-40px);
        max-width: initial;
        margin-bottom: 15px;
        height: 112px;
    }
    .track-cargo-desktop {
        display: block;
        color: var(--colour-white);
    }
    .webtrack-banner .step-by-step {
        display: none;
    }
    .webtrack-banner .tracking-btns-desktop {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        left: -12.5px;
        margin-top: 30px;
        max-width: 850px;
    }
    .webtrack-banner .tracking-btns-desktop > div {
        width: 50%;
        padding: 12.5px;
    }
    .webtrack-banner .tracking-btns-desktop a {
        background-color: var(--colour-white);
        color: var(--colour-navy);
        padding: 15px 25px;
        font-weight: 700;
        display: block;
        font-size: var(--font-20px);
    }
    .webtrack-banner .banner-contents > .webtrack-arrow {
        display: none;
    }
    .webtrack-banner .tracking-actions-container {
        width: 60%;
        gap: 0;
        padding: 50px calc(var(--section-spacing)*3) !important;
    }
    .tracking-arrows-container {
        width: 40%;
        position: relative;
        display: block;
        display: flex;
        justify-content: end;
        align-items: center;
    }
    .tracking-arrows-container a {
        background-color: var(--colour-white);
        color: var(--colour-navy);
        padding: 15px 25px;
        font-weight: 700;
        display: block;
        font-size: var(--font-20px);
        height: max-content;
        width: max-content;
        margin-right: calc(var(--section-spacing)*3);
    }
    .tracking-arrows-container .webtrack-arrow {
        position: absolute;
        top: -17%;
        left: -36px;
        height: 550px;
        width: max-content;
        transform: none;
    }
    .tracking-arrows-container::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 5px;
        background: var(--colour-navy);
        left: 0;
    }
    .tracking-arrows-container .webtrack-arrow:nth-child(2) {
        left: 40px;
    }
    .tracking-arrows-container .webtrack-arrow:nth-child(3) {
        left: 105px;
    }
    .track-shipment {
        display: none;
    }
}

/* Services */
.services-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0 auto;
    gap: 30px 20px;
    padding: 80px 30px;
}
.service-block {
    display: flex;
    width: 100%;
}
.service-block-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}
.service-block-link span {
    background-color: var(--colour-yellow);
    text-align: center;
    padding: 10px 0;
    font-size: var(--font-18px);
    font-weight: 700;
}
.service-block-link img {
    height: 100%;
    max-height: 175px;
    object-fit: cover;
}
@media screen and (min-width: 992px) {
    .services-grid {
        padding: 80px 0;
    }
    .service-block:nth-child(-n+3) {
        width: 30%;
    }
    .service-block:nth-child(n+4) {
        width: 22.1%;
    }
    .service-block:nth-child(n+4) img {
        max-height: 200px;
    }
    .service-block:nth-child(n+4) span {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        height: 77px;
    }
    .service-block-link span {
        font-size: var(--font-24px);
        font-size: var(--font-20px);
    }
    .service-block-link img {
        max-height: 245px;
    }
}
@media screen and (min-width: 1200px) {
    .service-block-link span {
        font-size: var(--font-24px);
    }
}

/* Latest Posts */
.latest-posts-container {
    position: relative;
    width: 100%;
    background-color: #ECEFF2;
    margin-top: 300px;
    padding-bottom: 90px;
}
.latest-posts-container:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 25vw solid transparent;
    border-right: 75vw solid transparent;
    border-bottom: 80px solid #ECEFF2;
    position: absolute;
    z-index: 99;
    top: -80px;
}
.latest-posts-container .h2-title {
    color: var(--colour-navy);
    text-align: center;
}
.latest-posts-container > p {
    position: relative;
    bottom: 240px;
    text-align: center;
    display: none;
}
.latest-posts-container:has(.posts-categories) {
    margin-top: 75px;
}
.latest-posts-container:has(.posts-categories) .lp-heading-container {
    position: static;
}
.latest-posts {
    padding: 0 var(--section-spacing);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.latest-post {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 99;
    padding-top: 50px;
}
.latest-post-title {
    display: block;
    width: 100%;
    text-align: start;
    font-size: var(--font-24px);
    font-weight: 700;
}
.latest-post-thumbnail img {
    height: 155px;
    object-fit: cover;
}
.btn-read-more {
    align-self: start;
    display: inline-flex;
    padding: 11px 57px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: var(--colour-yellow);
    text-transform: uppercase;
    font-weight: 700;
}
.latest-posts hr {
    width: 100%;
    margin-block: 35px 25px;
    border: 1px solid var(--colour-navy);
}
.lp-svg-container {
    display: none;
}
.lp-heading-container {
    position: absolute;
    top: -250px;
    width: 100%;
    text-align: center;
    padding-inline: var(--section-spacing);
}
@media screen and (min-width: 1200px) {
    .latest-posts {
        flex-direction: row;
        max-width: 1400px;
        align-items: initial;
        padding-bottom: 100px;
    }
    .latest-posts hr {
        width: 2px;
        height: 430px;
        margin: 0 60px;
        position: relative;
        bottom: 0;
        top: 30px;
    }
    .latest-posts hr:last-child {
        display: none;
    }
    .latest-posts-container:after {
        border-left: 50vw solid transparent;
        border-right: 50vw solid transparent;
    }
    .latest-posts-container {
        margin-top: 350px;
        padding-bottom: 0;
    }
    .latest-posts-container .h2-title {
        position: relative;
        bottom: 0;
    }
    .latest-posts-container > p {
        display: block;
    }
    .latest-posts-container .triangles-animated {
        height: 0;
        top: -30%;
    }
}
@media screen and (min-width: 1400px) {
    .latest-posts-svg {
        width: 1300px;
        position: relative;
        top: 35px;
    }
    .lp-svg-container {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        position: absolute;
        top: -4%;
    }
    .lp-svg-circle {
        background-color: #fff;
        width: 25px;
        height: 25px;
        border-radius: 50%;
        position: absolute
    }
    .lp-svg-circle:nth-of-type(1) {
        left: 30px;
        top: 315px;
    }
    .lp-svg-circle:nth-of-type(2) {
        left: 23%;
        top: 390px;
    }
    .lp-svg-circle:nth-of-type(3) { 
        right: 46.2%;
        top: 35px;
    }
    .lp-svg-circle:nth-of-type(4) {
        right: 18.7%;
        top: 125px;
    }
    .lp-svg-circle:nth-of-type(5) {
        right: 2%;
        top: 350px;
    }
    .latest-posts-svg path {
        stroke-dashoffset: 2000;
        stroke-dasharray: 2000;
    }
    .latest-posts.animating .latest-posts-svg path {
        animation: dash 3s linear forwards infinite;
    }
    @keyframes dash {
        to {
            stroke-dashoffset: 0;
        }
    }
}

/* Contact */
.footer-contact-container {
    position: relative;
    overflow-x: clip;
}
.footer-contact {
    padding: var(--section-spacing);
    text-align: center;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: clip;
    padding-bottom: 80px;
    margin-top: 90px;
}
.footer-contact > p {
    max-width: 830px;
}
.footer-contact .h2-title {
    color: var(--colour-navy);
}
.footer-contact-container:after {
    content: "";
    width: 0;
    height: 0;
    border-left: 25vw solid transparent;
    border-right: 75vw solid transparent;
    border-bottom: 45px solid var(--colour-white);
    position: absolute;
    z-index: 99;
    top: -45px;
}
@media screen and (min-width: 768px) {
    .footer-contact-container:after {
        display: none;
    }
    .footer-contact > a {
        max-width: 290px;
    }
}
@media screen and (min-width: 1200px) {
    .footer-contact {
            padding-block: 140px;    
        }
    }

/* Blog Listing Page */
.posts-content {
    text-align: center;
    padding: 40px 20px 0;
    margin-bottom: 40px;
}
.posts-categories {
    margin: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}
.posts-category {
    min-width: max-content;
    font-weight: 700;
    border: 1px solid var(--colour-yellow);
    padding: 3px 15px;
}
.posts-category.category-active {
    background-color: var(--colour-yellow);
}
.post-categories {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.post-categories a {
    min-width: max-content;
    border: 1px solid var(--colour-yellow);
    padding: 3px 15px;
}
.post-author, 
.post-date {
    display: block;
    margin: 5px 0;
}
.post-card {
    padding: 20px 20px 40px;
    border-bottom: 2px solid var(--colour-yellow);
    position: relative;
    overflow: hidden;
}
.post-card .triangles-animated {
    bottom: 47%;
}
.post-title,
.post-excerpt {
    margin: 20px 0;
}
.post-title {
    font-size: var(--font-24px);
}
.post-btn {
    background-color: var(--colour-yellow);
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 60px;
    margin-top: 35px;
    width: max-content;
    display: block;
}
.wp-pagenavi {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    font-size: var(--font-24px);
}
.wp-pagenavi a,
.wp-pagenavi a:hover, .wp-pagenavi span.current {
    border: none !important;
}
.wp-pagenavi span.current {
    color: var(--colour-navy);
    text-decoration: underline;
}
.wp-pagenavi .nextpostslink,
.wp-pagenavi .previouspostslink {
    font-size: 0;
    position: relative;
}
.wp-pagenavi .nextpostslink::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 7px;
    border-top: 10px solid transparent;
    border-left: 22px solid var(--colour-yellow);
    border-bottom: 10px solid transparent;
}
.wp-pagenavi .previouspostslink::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    top: 7px;
    right: 5px;
    border-top: 10px solid transparent;
    border-right: 22px solid var(--colour-yellow);
    border-bottom: 10px solid transparent;
}
.post-rule {
    color: var(--colour-yellow);
    font-weight: 700;
    font-size: var(--font-18px);
}
.posts-desktop {
    display: none;
}
.archive-title {
    display: none;
}
.author-desktop,
.date-desktop {
    display: none;
}
.archive-breadcrumbs {
    padding: 20px;
}
.breadcrumb-link {
    text-decoration: underline;
}
.breadcrumb-link, 
.breadcrumb-active {
    text-transform: uppercase;
    font-weight: 300;
}
.post-slide-view-all {
    display: none;
}
@media screen and (min-width: 992px) {
    .post-card {
        padding: 40px 60px;
    }
    .posts-content {
        padding: 40px 60px 0;
    }
    .archive-breadcrumbs {
        padding: 20px 60px 0;
    }
}
@media screen and (min-width: 1200px) {
    .posts-mobile,
    .wp-pagenavi {
        display: none;
    }
    .archive .wp-pagenavi,
    .archive .posts-categories {
        display: flex;
    }
    .posts-archive {
        display: flex;
        flex-wrap: wrap;
        padding: 40px 15px;
        text-align: center;
    }
    .posts-archive .post-card {
        width: 33%;
        padding: 0 15px;
        margin-top: 60px;
        border-bottom: none;
    }
    .archive-title {
        display: block;
        font-size: var(--font-48px);
        color: var(--colour-navy);
        text-align: center;
        text-transform: uppercase;
    }
    .archive-breadcrumbs {
        padding: 20px 30px 60px;
    }
    .posts-content {
        padding-top: 60px;
    }
    .posts-desktop {
        display: block;
    }
    .post-title {
        font-size: var(--font-36px);
        color: var(--colour-navy);
        text-transform: uppercase;
        padding-left: 25px;
    }
    .post-slider-title,
    .posts-archive .post-title {
        font-size: var(--font-24px);
        margin-top: 35px;
        color: var(--colour-navy);
    }
    .post-category {
        padding: 50px 25px;
    }
    .post-categories {
        justify-content: center;
        margin: 30px 0 35px;
    }
    .post-categories a {
        padding: 3px 10px;
    }
    .post-slide {
        padding-inline: 25px;
    }
    .post-slider{
        padding-top: 60px;
        display: flex;
        text-align: center;
        flex-wrap: wrap;
    }
    .post-slider .splide__track {
        padding-right: 20% !important;
    }
    .post-slider .splide__arrow {
        background-color: var(--colour-navy);
        opacity: 1;
        height: 3em;
        width: 3em;
        transition: .3s opacity;
    }
    .post-slider .splide__arrow:disabled {
        opacity: .5;
    }
    .post-slider .splide__arrow path {
        fill: var(--colour-white);
    }
    .post-slide .wp-post-image,
    .posts-archive .wp-post-image {
        clip-path: polygon(50% 0%, 100% 10%, 100% 100%, 50% 90%, 0 100%, 0 10%);
        height: 280px;
        object-fit: cover;
    }
    .post-btn {
        width: 100%;
        margin-top: 35px;
    }
    .post-author, 
    .post-date {
        display: inline;
    }
    .author-mobile,
    .date-mobile {
        display: none;
    }
    .author-desktop,
    .date-desktop {
        display: inline;
    }
    .post-card .triangles-animated {
        display: none;
    }
    .pc-container .triangles-animated {
        height: 50%;
        top: 0;
    }
    .post-slide-view-all {
        display: flex;
    }
    .post-slide-inner {
        clip-path: polygon(50% 0%, 100% 10%, 100% 100%, 50% 90%, 0 100%, 0 10%);
        background-color: var(--colour-navy);
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .post-slide-inner > a {
        font-size: var(--font-32px);
        color: var(--colour-white);
        text-transform: uppercase;
        text-decoration: underline;
        font-weight: 700;
        position: relative;
    }
    .post-slide-inner > a::after {
        content: "";
        width: 0;
        height: 0;
        border-top: 15px solid transparent;
        border-left: 30px solid var(--colour-yellow);
        border-bottom: 15px solid transparent;
        position: absolute;
        top: 6px;
        margin-left: 15px;
    }
}
@media screen and (min-width: 1400px) {
    .post-category {
        padding: 50px 40px;
    }
    .post-slide {
        padding-inline: 40px;
    }
    .post-title {
        padding-left: 40px;
    }
}

/* Article */
.article-wrapper > p {
    max-width: 800px;
    padding: 0 30px;
    margin: 20px auto;
}
.article-wrapper > p:last-of-type {
    padding-bottom: 60px;
}
.article-wrapper .wp-block-image {
    margin: 20px auto;
    max-width: 800px;
}
.article-wrapper > .wp-block-heading {
    padding: 0 30px;
    margin: 20px auto;
    max-width: 800px;
}
.article-wrapper > .wp-block-list {
    max-width: 800px;
    padding: 0 30px;
    margin: auto;
}
.article-wrapper img:not(.hero-image) {
    border-bottom: 20px solid var(--colour-yellow);
}
.article-wrapper h2 {
    color: var(--colour-navy);
}
ul.wp-block-list {
    list-style-type: disc;
}
ol.wp-block-list {
    list-style-type: decimal;
}
.wp-block-list li {
    margin-bottom: 5px;
    margin-left: 20px;
}
@media screen and (min-width: 1200px) {
    .article-wrapper > * {
        padding-inline: 0 !important;
    }
}

/* Animated Triangles */
@keyframes rotate360 {
    0% {
      transform: rotate( 0deg ) scale( 0.75 ) translateX(0);
    }
    
    100% {
      transform: rotate( 360deg ) scale( 1 ) translateX(100px);
    }
  }
  @keyframes rotate180 {
    0% {
      transform: rotate( 0deg ) scale( 1 );
    }
      
    100% {
      transform: rotate( 180deg ) skewX( 1 );
    }
  }
  @keyframes rotate90 {
    0% {
      transform: rotate( 0deg ) scale( 1 );
    }
      
    100% {
      transform: rotate( 90deg ) scale( 1.25 );
    }
  }
.triangles-animated {
    position: absolute;
    bottom: 0;
    height: 100%;
    width: 100%;
    pointer-events: none;
    overflow-x: clip;
}
.triangles-animated .triangle {
    width: 0px;
    height: 0px;
    border-color: transparent transparent #F6F7F8 transparent;
    border-style: solid;
    position: absolute;
    z-index: -1;
}
.triangles-animated .triangle-1 {
    border-width: 0 117px 60px 25px;
    transform: rotate(-10deg);
    top: 50px;
    left: 0;
    transform: scale(.75);
    animation: rotate360 60s linear infinite alternate-reverse;
}
.triangles-animated .triangle-2 {
    border-width: 0 120px 36px 100px;
    transform: rotate(142deg);
    bottom: 50px;
    left: 0;
    animation: rotate180 30s linear infinite alternate;
}
.triangles-animated .triangle-3 {
    border-width: 0 90px 40px 40px;
    transform: rotate(90deg);
    left: 500px;
    bottom: -15px;
    animation: rotate360 50s linear infinite alternate;
}
.triangles-animated .triangle-4 {
    border-width: 0 25px 78px 25px;
    transform: rotate(104deg);
    bottom: -120px;
    right: 400px;
    animation: rotate90 10s linear infinite alternate-reverse;
}
.triangles-animated .triangle-5 {
    border-width: 0 48px 115px 12.5px;
    transform: rotate(107deg);
    bottom: -15px;
    right: 30px;
    animation: rotate180 25s linear infinite alternate;
}
.triangles-animated .triangle-6 {
    border-width: 0 120px 36px 100px;    
    transform: rotate(142deg);
    right: -50px;
    bottom: -165px;
    animation: rotate180 15s linear infinite alternate;
}
@media screen and (min-width: 1200px) {
    .triangles-animated .triangle-1 {
        border-width: 0 235px 120px 50px;
    }
    .triangles-animated .triangle-2 {
        border-width: 0 240px 72px 200px;
        left: 100px;
    }
    .triangles-animated .triangle-3 {
        border-width: 0 180px 80px 80px;
    }
    .triangles-animated .triangle-4 {
        border-width: 0 50px 136px 50px;
    }
    .triangles-animated .triangle-5 {
        border-width: 0 96px 230px 23px;
        right: 150px;
    }
    .triangles-animated .triangle-6 {
        border-width: 0 240px 72px 200px;    
    }
}

/* Privacy Policy */
.privacy-policy {
    margin: auto;
}
.privacy-policy > p,
.privacy-policy > ul,
.privacy-policy > .wp-block-heading {
    text-align: center;
    padding: 0 15px;
    max-width: 800px;
    margin-inline: auto;
    line-height: 1.4;
}
.privacy-policy li {
   margin-bottom: 20px;
}
.privacy-policy > .wp-block-heading {
    margin-block: 40px 20px;
}

/* Jobs */
@media screen and (min-width: 992px) {
    .careers .frm_style_formidable-style.with_frm_style .form-field,
    .frm_form_field:not(.frm_compact) .frm_dropzone,
    .careers .contact-form-container .frm_form_field button  {
        margin-inline: auto !important;
    }
    .careers .contact-form-container fieldset, .contact-form-container .frm_fields_container {
        display: block !important;
    }
}