/* =========================================
   TARGET IT — BLOG ARCHIVE
   ========================================= */

.target-blog {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #2e2e2e;
    font-family: "Syne", Arial, Helvetica, sans-serif;
}

.target-blog *,
.target-blog *::before,
.target-blog *::after {
    box-sizing: border-box;
}

/* =========================================
   HERO
   ========================================= */

.target-blog .target-blog__hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    width: 100%;
    min-height: 380px;
    margin: 0;
    padding: 100px 24px;

    background: #2e2e2e;
    color: #fff;
    text-align: center;
}

.target-blog__heading {
    margin: 0;
    color: #fff;

    font-size: clamp(36px, 3.3vw, 58px);
    font-weight: 600;
    line-height: 1.15;
}

.target-blog__description {
    max-width: 800px;
    margin: 0;
    color: #fff;

    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

/* =========================================
   POST GRID
   ========================================= */

.target-blog .target-blog__listing {
    width: 100%;
    margin: 0;
    padding: 120px 0 135px;

    background: #fff;
}

.target-blog__listing > .wp-block-query {
    width: min(1270px, calc(100% - 64px));
    margin: 0 auto;
}

.target-blog__listing .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 70px;
    row-gap: 70px;

    margin: 0;
    padding: 0;
    list-style: none;
}

.target-blog__listing .wp-block-post-template > li {
    min-width: 0;
    margin: 0;
}

/* =========================================
   ARTICLE CARDS
   ========================================= */

.target-blog .target-blog__card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;

    width: 100%;
    height: 100%;
    margin: 0;

    border: 1px solid #555;
    background: #f0eff2;

    transition:
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.target-blog__card:hover {
    border-color: #2e2e2e;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

/* Featured image */

.target-blog .target-blog__card-image {
    display: block;
    width: 100%;
    margin: 0;
    overflow: hidden;

    background: #d9d9d9;
}

.target-blog__card-image a {
    display: block;
    width: 100%;
    overflow: hidden;
}

.target-blog__card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 15 / 8;
    object-fit: cover;

    filter: grayscale(100%);

    transition:
        transform 350ms ease,
        filter 350ms ease;
}

.target-blog__card:hover .target-blog__card-image img {
    transform: scale(1.025);
}

/* Light-gray article summary */

.target-blog .target-blog__card-body {
    position: relative;
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 198px;
    margin: 0;
    padding: 27px 28px 66px;

    background: #f0eff2;
}

.target-blog__card-title {
    margin: 0 0 17px;

    color: #2e2e2e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.target-blog__card-title a {
    color: inherit;
    text-decoration: none;
}

.target-blog__card-title a:hover,
.target-blog__card-title a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.target-blog__card-excerpt {
    margin: 0 0 16px;
    color: #2e2e2e;
}

.target-blog__card-excerpt p,
.target-blog__card-excerpt .wp-block-post-excerpt__excerpt {
    margin: 0;

    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

/* Date in Target IT lime green */

.target-blog__card-date {
    margin: auto 0 0;

    color: #9ec857;
    font-size: 12px;
    line-height: 1.2;
}

.target-blog__card-date time {
    color: inherit;
}

/* =========================================
   BLACK PLUS BUTTON
   ========================================= */

.target-blog .target-blog__card-more {
    position: absolute;
    right: 0;
    bottom: 0;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 15px 0 0 0;

    background: #2e2e2e;
    color: #fff;

    font-size: 0;
    text-decoration: none;

    transition:
        background-color 200ms ease,
        color 200ms ease;
}

/* Visible plus; link retains its accessible text. */

.target-blog__card-more::after {
    content: "+";
    font-size: 14px;
    font-weight: 400;
}

.target-blog__card-more:hover,
.target-blog__card-more:focus-visible {
    background: #9ec857;
    color: #2e2e2e;
}

.target-blog__card-more:focus-visible {
    outline: 2px solid #2e2e2e;
    outline-offset: -4px;
}

/* =========================================
   PAGINATION
   ========================================= */

.target-blog__listing .wp-block-query-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;

    margin-top: 65px;
}

.target-blog__listing .wp-block-query-pagination a {
    color: #2e2e2e;
    font-size: 13px;
    text-decoration: none;
}

.target-blog__listing .wp-block-query-pagination a:hover {
    color: #719b35;
}

.target-blog__listing .page-numbers.current {
    font-weight: 700;
    color: #719b35;
}

.target-blog__empty {
    padding: 35px 0;
    text-align: center;
    font-size: 16px;
}

/* =========================================
   TABLET
   ========================================= */

@media (min-width: 768px) and (max-width: 1100px) {

    .target-blog__listing .wp-block-post-template {
        column-gap: 30px;
        row-gap: 40px;
    }

    .target-blog .target-blog__card-body {
        padding: 22px 22px 62px;
    }

    .target-blog__card-title {
        font-size: 16px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 767px) {

    .target-blog .target-blog__hero {
        min-height: 260px;
        gap: 25px;
        padding: 62px 25px;
    }

    .target-blog__heading {
        font-size: 31px;
    }

    .target-blog__description {
        max-width: 350px;
        font-size: 14px;
        line-height: 1.35;
    }

    .target-blog .target-blog__listing {
        padding: 60px 0 80px;
    }

    .target-blog__listing > .wp-block-query {
        width: calc(100% - 42px);
    }

    .target-blog__listing .wp-block-post-template {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .target-blog .target-blog__card-body {
        min-height: 185px;
        padding: 22px 22px 62px;
    }

    .target-blog__card-title {
        font-size: 16px;
    }

    .target-blog__card-excerpt p,
    .target-blog__card-excerpt .wp-block-post-excerpt__excerpt {
        font-size: 13px;
    }

    .target-blog__listing .wp-block-query-pagination {
        margin-top: 45px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .target-blog__card,
    .target-blog__card-image img,
    .target-blog__card-more {
        transition: none;
    }
}
