/* ======================================================
   MET ACADEMY - POST CARD GRID
====================================================== */


/* ======================================================
   WRAPPER
====================================================== */

.met-category-post-wrap {
    width: 100%;
}


/* ======================================================
   GRID
====================================================== */

.met-category-post-grid {
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 16px;

    width: 100%;
}


/* ======================================================
   CARD
====================================================== */

.met-post-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    margin: 0;

    overflow: hidden;

    background: #ffffff;

    border: 0;
    border-radius: 12px;

    box-shadow: none;
}


/* ======================================================
   IMAGE
====================================================== */

.met-post-card-image {
    position: relative;

    display: block;

    width: 100%;

    /*aspect-ratio: 1.7 / 1;*/

    overflow: hidden;

    background: #f5f7fa;

    text-decoration: none !important;
}


.met-post-card-image img {
    display: block;

    width: 100%;
    height: 200px !important;
    max-height:200px;

    margin: 0;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.met-post-card:hover .met-post-card-image img {
    transform: scale(1.015);
}


/* NO FEATURED IMAGE */

.met-post-card-image-placeholder {
    display: block;

    width: 100%;
    height: 100%;

    background: #f4f6f9;
}


/* ======================================================
   CARD CONTENT
====================================================== */

.met-post-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    min-width: 0;

    padding: 14px 16px 14px;
}


/* ======================================================
   CATEGORY
====================================================== */

.met-post-card-category {
    margin: 0 0 9px;

    color: #2680ff;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


/* ======================================================
   TITLE
====================================================== */

.met-post-card-title {
    margin: 0 0 8px !important;
    padding: 0 !important;

    color: #182438;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;

    letter-spacing: -0.01em;
}


.met-post-card-title a {
    color: #182438 !important;

    font: inherit;

    text-decoration: none !important;
}


.met-post-card-title a:hover {
    color: #2680ff !important;
}


/* ======================================================
   EXCERPT
====================================================== */

.met-post-card-excerpt {
    margin: 0 0 24px;

    color: #7b8493;

    font-size: 12px;
    font-weight: 400;
    line-height: 1.55;
}


/* ======================================================
   FOOTER
====================================================== */

.met-post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #f0f2f5;
}


/* ======================================================
   DATE
====================================================== */

.met-post-card-date {
    flex: 1;

    color: #455064;

    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;

    white-space: nowrap;
}


.met-post-card-dot {
    margin: 0 3px;
}


/* ======================================================
   READ GUIDE
====================================================== */

.met-post-card-link {
    display: inline-flex;
    align-items: center;

    gap: 4px;

    flex-shrink: 0;

    color: #182438 !important;

    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;

    text-decoration: none !important;

    white-space: nowrap;

    transition: color 0.2s ease;
}


.met-post-card-link span {
    display: inline-block;

    transition: transform 0.2s ease;
}


.met-post-card-link:hover {
    color: #2680ff !important;
}


.met-post-card-link:hover span {
    transform: translateX(2px);
}


/* ======================================================
   PAGINATION
====================================================== */

.met-post-pagination {
    display: flex;
    justify-content: center;

    width: 100%;

    margin-top: 34px;
}


.met-post-pagination ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin: 0;
    padding: 0;

    list-style: none;
}


.met-post-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}


.met-post-pagination .page-numbers a,
.met-post-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding: 0 10px;

    border: 1px solid #e4e8ee;
    border-radius: 7px;

    background: #ffffff;

    color: #344054 !important;

    font-size: 11px;
    font-weight: 500;
    line-height: 1;

    text-decoration: none !important;
}


.met-post-pagination .page-numbers a:hover {
    border-color: #2680ff;

    color: #2680ff !important;
}


.met-post-pagination .page-numbers .current {
    border-color: #2680ff;

    background: #2680ff;

    color: #ffffff !important;
}


/* PREVIOUS / NEXT */

.met-post-pagination .prev,
.met-post-pagination .next {
    font-size: 14px;
}


/* ======================================================
   TABLET
====================================================== */

@media (max-width: 1024px) {

    .met-category-post-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

}


/* ======================================================
   MOBILE
====================================================== */

@media (max-width: 767px) {

    .met-category-post-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .met-post-card {
        border-radius: 10px;
    }


    .met-post-card-content {
        padding: 14px;
    }


    .met-post-card-title {
        font-size: 16px !important;
    }


    .met-post-card-excerpt {
        margin-bottom: 20px;

        font-size: 12px;
        line-height: 1.55;
    }


    .met-post-card-footer {
        padding-top: 12px;
    }


    .met-post-pagination {
        margin-top: 26px;
    }

}


/* ======================================================
   SMALL MOBILE
====================================================== */

@media (max-width: 420px) {

    .met-post-card-footer {
        gap: 8px;
    }


    .met-post-card-date {
        white-space: normal;
    }


    .met-post-pagination ul.page-numbers {
        gap: 4px;
    }


    .met-post-pagination .page-numbers a,
    .met-post-pagination .page-numbers span {
        min-width: 30px;
        height: 30px;

        padding: 0 8px;

        font-size: 10px;
    }

}


/* ======================================================
   RELATED ARTICLES
====================================================== */

.met-related-posts {
    width: 100%;
    max-width: 1000px;

    margin: 80px auto 0;
}

.met-related-posts-title {
    margin: 0 0 24px !important;

    color: #182438;

    font-size: 28px !important;
    font-weight: 600 !important;
    line-height: 1.25;
}

@media (max-width: 767px) {

    .met-related-posts {
        margin-top: 56px;
    }

    .met-related-posts-title {
        font-size: 24px !important;
    }

}
