.recent-artickles {
    display: flex;
    flex-wrap: wrap;
}

.post-item {
    width: 100%;
}

.post-item .inner-wrapper {
    width: 100%;
    height: 100%;
    padding: 3.333rem 1.867rem 1.2rem;
    border: 4px solid !important;
    transition: all .3s ease;
    position: relative;
}

.post-item .inner-wrapper > a {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.post-item .post-title {
    font-size: 1.4em;
    text-transform: uppercase;
}

.post-item .read-more a {
    font-size: 1rem;
}

.post-item .inner-wrapper {
    background: var(--color);
    border-color: var(--color) !important;
}

#content .post-item .post-category {
    position: absolute;
    top: .667rem;
    right: -4px;
    background: var(--color);
    color: #fff;
    padding-right: .333rem;
    padding-left: .333rem;
    font-size: 0.867rem;
}

.post-item .post-category:after {
    content: '';
    position: absolute;
    top: .667rem;
    right: 100%;
    left: auto;
    width: 100%;
    height: .067rem;
    background-color: #fff;
    transition: all .5s ease;
}

.post-item:hover .post-category:after {
    background-color: var(--color);
}

.post-item .post-title,
.post-item .read-more a {
    color: #fff;
}

.post-item:hover .inner-wrapper {
    background: #fff;
}

.post-item:hover .post-title,
.post-item:hover .read-more a {
    color: var(--color);
}


@media screen and (min-width: 541px) {

    .recent-artickles {
        margin-right: -1rem;
        margin-left: -1rem;
    }

    .post-item {
        max-width: calc(50% - 2rem);
        margin-right: 1rem;
        margin-left: 1rem;
    }
}


@media screen and (min-width: 1024px) {
    .post-item {
        max-width: calc((100% / 3) - 2rem);
    }
}


@media screen and (min-width: 1400px) {
    .post-item {
        max-width: calc((100% / 5) - 3.6rem);
    }

    .post-item:not(:first-child):not(:last-child) {
        margin-right: 2.333rem;
        margin-left: 2.333rem;
    }
}


/* Articles of ikory.com: image, date, title, excerpt */
#content .recent-artickles.remote {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0;
}

#content .recent-artickles.remote .post-item {
    width: auto;
    max-width: none;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #dcdfe8;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow .25s ease, transform .25s ease;
}

#content .recent-artickles.remote .post-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(14, 40, 97, .12);
}

#content .recent-artickles.remote .post-img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #eef0f6;
    overflow: hidden;
}

#content .recent-artickles.remote .post-img:empty {
    position: relative;
    background: linear-gradient(135deg, #0E2861 0%, #1c3f8f 100%);
}

#content .recent-artickles.remote .post-img:empty::after {
    content: 'IKORY';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    letter-spacing: .4em;
    font-weight: 600;
    color: #D99F40;
}

#content .recent-artickles.remote .post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s ease;
}

#content .recent-artickles.remote .post-item:hover .post-img img {
    transform: scale(1.04);
}

#content .recent-artickles.remote .post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}

#content .recent-artickles.remote .post-date {
    margin: 0 0 8px;
    font-size: 12px !important;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #a87420;
    font-weight: 600;
}

#content .recent-artickles.remote .post-title {
    margin: 0 0 10px;
    font-size: 17px !important;
    line-height: 1.35;
    text-transform: none;
    font-weight: 600;
}

#content .recent-artickles.remote .post-title a {
    color: #0E2861;
    text-decoration: none;
}

#content .recent-artickles.remote .post-excerpt {
    margin: 0 0 16px;
    font-size: 14px !important;
    line-height: 1.55;
    color: #4a5068;
}

#content .recent-artickles.remote .post-more {
    margin-top: auto;
    font-size: 13px;
    font-weight: 600;
    color: #0E2861;
    text-decoration: none;
    border-bottom: 1px solid #D99F40;
    align-self: flex-start;
    padding-bottom: 1px;
}

#content .recent-artickles.remote .post-more::after {
    content: ' →';
}

#content .recent-artickles-all {
    margin: 36px 0 0;
    text-align: center;
}

#content .recent-artickles-all a {
    display: inline-block;
    padding: 14px 30px;
    border: 1px solid #0E2861;
    border-radius: 2px;
    color: #0E2861;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .2s ease, color .2s ease;
}

#content .recent-artickles-all a:hover {
    background: #0E2861;
    color: #fff;
}
@media screen and (max-width: 1100px) {
    #content .recent-artickles.remote { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (max-width: 540px) {
    #content .recent-artickles.remote { grid-template-columns: 1fr; }
}
