/* Common Archive */
header {
    border-bottom: 1px solid var(--grey-dark);
}

section.banner {
    position: relative;
}

h1.h1 {
    font-size: calc(var(--h1-size) / 1.5);
    margin-bottom: calc(var(--h1-size) / 5.25);
}

/* Blog Navigation */

.article-top-left, .article-top-right {
    padding-bottom: var(--column-gap);
}

.article-top-left, nav#blogNav ul.menu {
    display: flex;
    gap: var(--column-gap);
    align-items: flex-end;
}
nav#blogNav {
    display: flex;
    justify-content: flex-end;
}
nav#blogNav ul.menu li a, .article-top-left p.small {
    font-size: var(--smaller-size);
    padding-bottom: 4px;
    color: var(--grey-medium);
    line-height: 110%;
}
nav#blogNav ul.menu li a {
    position: relative;
    transition:var(--smooth);
}
nav#blogNav ul.menu li a::after {
    content:'';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    transition:var(--smooth);
    width: 0;
    height:1px;
    background-color: var(--white);
    border-radius: 1px;
}
nav#blogNav ul.menu li a:hover {
    color: var(--white);
}
nav#blogNav ul.menu li a:hover::after {
    width: 100%;
}

/* Post Card */

.post-card {
    position:relative;
    border-radius: 4px;
    overflow: hidden;
}

.post-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--grey-dark);
    opacity: 45%;
}

.post-card > a {
    display: flex;
    position: relative;
    height: 100%;
    width: 100%;
    flex-direction: row-reverse;
}

.post-card.col-4 > a {
    gap:var(--column-gap);
    flex-direction: column;
}

.post-card picture.card-img {
    overflow: hidden;
}

.post-card.col-2 picture.card-img {
    height: 420px;
    width: 50%;
    position: relative;
}

.post-card.col-4 picture.card-img {
    height: 180px;
    position: relative;
}

.post-card picture.card-img .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    background: linear-gradient(0deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 55%;
}

.post-card.card-case-studies picture.card-img .overlay {
    display: none;
}

@media screen and (min-width:1100px) {
    .post-card.col-2 picture.card-img .overlay,
    .post-card.col-2 picture.card-img img {
        transition: var(--smooth);
    }
    .post-card.col-2:hover picture.card-img .overlay {
        opacity: 75%;
    }
    .post-card.col-2:hover picture.card-img img {
        scale: 1.1;
    }
}

.post-card.col-2 .card-content {
    padding: calc(var(--column-gap) * 2) var(--column-gap);
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.post-card.col-4 .card-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-inline: var(--column-gap);
    padding-bottom: calc(var(--column-gap) * 1.25);
}

.post-card.col-4 .card-content > p.small {
    margin-bottom: calc(52px + (var(--column-gap) / 2));
}

.post-card.col-2 .post-info {
    margin-bottom: var(--column-gap);
}

.post-card.col-4 .post-info {
    position: absolute;
    top:calc(180px - var(--small-size) - var(--column-gap));
    left: 0;
    width: 100%;
    padding-inline:var(--column-gap);
}

.post-info p {
    font-weight: 600;
}
.post-info p span {
    font-weight: 200;
}

.post-card .has-arrow {
    width: 52px;
    height: 52px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-regular);
    position: absolute;
    right: var(--column-gap);
    bottom: calc(var(--column-gap) * 1.25);
}

.post-card.col-2 .has-arrow {
    bottom: calc(var(--column-gap) * 2);
    right: unset;
    left:var(--column-gap);
}

.post-card .has-arrow svg {
    width: 28px;
    height: 28px;
    transition: var(--smooth);
}

.post-card a:hover .has-arrow svg {
    transform: rotate(45deg);
}

.post-card .has-arrow svg path {
    fill:var(--white);
}

@media screen and (max-width:1650px) and (orientation:landscape) {
    .post-card .has-arrow {
        width: 42px;
        height: 42px;
    }
    .post-card .has-arrow svg {
        width: 20px;
        height: 20px;
    }
}

@media screen and (max-width:1440px) {
    .post-card.col-4 picture.card-img {
        height: 140px;
    }
    .post-card.col-4 .post-info {
        top: calc(140px - var(--small-size) - var(--column-gap));
    }
    .post-card .has-arrow {
        width: 40px;
        height: 40px;
    }
    .post-card.col-4 .card-content > p.small {
        margin-bottom: calc(40px + (var(--column-gap) / 2));
    }
    .post-card .has-arrow svg {
        width: 18px;
        height: 18px;
    }
    .post-card.col-4 .post-info,
    .post-card.col-4 .card-content {
        padding-inline:calc(var(--column-gap) / 1.5)
    }
    .post-card.col-2 picture.card-img {
        height: 340px;
    }
    .post-card.col-2 .post-info {
        margin-bottom: calc(var(--column-gap) / 1.5);
    }
    .post-card.col-2 .card-content {
        padding: calc(var(--column-gap) * 1.5) var(--column-gap);
    }
}

@media screen and (max-width:1280px) {
    .post-card.col-2 picture.card-img {
        height: 300px;
    }
    .post-card.col-2 .has-arrow {
        bottom: calc(var(--column-gap) * 1.5);
    }
}

@media screen and (max-width:1024px) and (orientation:portrait) {
    section.banner {
        padding-top: var(--column-gap);
    }
    .article-top-right {
        order:1;
        min-width: 100%;
    }
    section.banner .col-2 {
        order: 2;
        padding: 0;
        height: auto;
        min-width: 100%;
        padding-right: 40%;
    }
    nav#blogNav {
        justify-content: center;
    }
    nav#blogNav ul.menu li a {
        color: var(--white);
    }
    section.banner {
        border-bottom: 1px solid var(--grey-dark);
    }

    section.post-archive .post-card:not(.card-events) {
        width: calc(50% - (var(--column-gap) / 2));
    }
    section.post-archive .post-card:not(.card-events) a {
        flex-direction: column;
        gap:calc(var(--column-gap) * 1.25);
        height: auto;
    }
    section.post-archive .post-card:not(.card-events) picture.card-img {
        height: 220px;
        width: 100%;
    }
    section.post-archive .post-card:not(.card-events) .card-content {
        position: initial;
        width: 100%;
        padding-inline:calc(var(--column-gap) * 1.25)!important;
        padding-top: 0;
        padding-bottom: calc(var(--column-gap) * 1.5);
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    section.post-archive .post-card:not(.card-events) .card-content .post-info {
        position: absolute;
        left: 0;
        width: 100%;
        top:calc(220px  - var(--column-gap) - var(--small-size));
        padding-inline:calc(var(--column-gap) * 1.25);
    }
    section.post-archive .post-card:not(.card-events) .card-content h2 {
        min-width: 100%;
    }
    section.post-archive .post-card:not(.card-events) .card-content > p.small {
        display: block;
        /* width: calc(100% - 44px - var(--column-gap)); */
        width: 100%;
        min-height: 74px;
    }
    section.post-archive .post-card:not(.card-events) .card-content .has-arrow {
        position: initial;
        width: 44px;
        height: 44px;
        margin-top: var(--column-gap);
    }

}

@media screen and (max-width:520px) {
    .article-top-right {
        padding-block: calc(var(--column-gap) * 2);
    }
    nav#blogNav ul.menu li a {
        font-size: var(--small-size);
    }
    section.banner .col-2 {
        padding-right:0;
    }
    section.post-archive .post-card:not(.card-events) {
        width: 100%;
    }
    section.post-archive .post-card {
        margin-bottom: 10px;
    }
    .post-card::before {
        opacity: 65%;
    }
    section.post-archive .post-card:not(.card-events) picture.card-img {
        height: 160px;
    }
    section.post-archive .post-card:not(.card-events) .card-content .post-info {
        top:calc(160px  - var(--column-gap) - var(--small-size));
    }
    section.post-archive .post-card:not(.card-events) .card-content > p.small {
        font-size: var(--body-size);
    }
}