/*
    4 post cards:
        1. featured
        2. hero - !deleted!
        3. default
        4. wide
        5. list
*/
.post-card {
    overflow: hidden;
    border: 2px solid #FFF;
    background: #FFF;
    color: var(--text-secondary);
}

@media (min-width: 1264px) {
    .post-card {
        transition: 0.2s ease-in-out;
    }
}

.post-card__thumbnail {
    border-radius: 12px;
    width: 100%;
    height: 166px;
}

@media (min-width: 960px) {
    .post-card__thumbnail {
        border-radius: 16px;
        height: 300px;
    }
}

@media (min-width: 1264px) {
    .post-card__thumbnail {
        height: 406px;
    }
}

/* The radius sits on the image rather than clipping the wrapper, so the author
   badges can overhang the bottom edge the way the design has them. */
.post-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    border-radius: inherit;
}

.post-card__content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-card__tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.post-card__tag {
    border-radius: 32px;
    padding: 4px 8px;

    /* may be default tag should be changed */
    background: #FFF4E6;
    color: #F74E00;
    text-transform: uppercase;

}

.post-card__tag--product {
    background: #FFF4E6;
    color: #F74E00;
}

.post-card__tag--bdr {
    background: #F3EEFF;
    color: #6C3AFF;
}

.post-card__tag--business {
    background: #EAF3FF;
    color: #2560D9;
}

.post-card__tag--storage {
    background: #FEF2F2;
    color: #EF4444;
}

.post-card__tag--security {
    background: #ECFAF3;
    color: #359A51;
}

.post-card__meta {
    margin-bottom: 4px;
}
.post-card__meta_extra-mb {
    margin-bottom: 16px;
}
@media (min-width: 960px) {
    .post-card__meta_extra-mb {
        margin-bottom: 20px;
    }
}
@media (min-width: 1264px) {
    .post-card__meta_extra-mb {
        margin-bottom: 24px;
    }
}
@media (min-width: 1700px) {
    .post-card__meta_extra-mb {
        margin-bottom: 32px;
    }
}

.post-card__title {
    font-weight: 500;
}

.post-card__excerpt {
    font-size: 12px;
    line-height: 16px;

    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom,
            black 80%,
            transparent);

    /* display: -webkit-box; */
    /* -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    z-index: 0; */
}

@media (min-width: 1264px) {
    .post-card__excerpt {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 1700px) {
    .post-card__excerpt {
        font-size: 14px;
        line-height: 24px;
    }
}

a.post-card__link {
    padding: 8px 16px 8px 0;
}

.post-card:has(.post-card__link:hover) {
    box-shadow: 0 16px 20px 0 rgba(0, 0, 0, 0.10);
}

.post-card:has(.post-card__link:focus) {
    border: 2px solid #2560D9;
}

/* featured START */
.post-card--featured {
    padding: 16px;
    display: grid;
    gap: 16px;
}

.post-card--featured .post-card__thumbnail {
    order: 1;
}

.post-card--featured .post-card__title {
    font-size: 20px;
    line-height: 24px;
    margin-block: 0 8px;
}

.post-card--featured .post-card__excerpt {
    font-size: 12px;
    line-height: 16px;
}

@media (min-width: 960px) {
    .post-card--featured {
        padding: 20px;
        grid-template-columns: auto 420px;
        gap: 20px;
    }

    .post-card--featured .post-card__title {
        font-size: 20px;
        line-height: 36px;
    }

    .post-card--featured .post-card__excerpt {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (min-width: 1264px) {
    .post-card--featured {
        padding: 24px;
        grid-template-columns: auto 568px;
        gap: 24px;
    }

    .post-card--featured .post-card__title {
        font-size: 28px;
        line-height: 40px;
        margin-block: 0 12px;
    }

    .post-card--featured .post-card__excerpt {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (min-width: 1700px) {
    .post-card--featured {
        padding: 32px;
        gap: 32px;
    }

    .post-card--featured .post-card__title {
        font-size: 32px;
        line-height: 48px;
        margin-block: 0 16px;
    }

    .post-card--featured .post-card__excerpt {
        font-size: 16px;
        line-height: 28px;
    }
}

/* featured END */

/* default START */
.post-card--default {
    padding: 8px 12px;
}

.post-card--default .post-card__title {
    font-size: 16px;
    line-height: 20px;
    margin-block: 0 8px;
}

@media (min-width: 960px) {
    .post-card--default {
        padding: 8px 16px;
        min-height: 300px;
    }

    .post-card--default .post-card__title {
        font-size: 20px;
        line-height: 32px;
    }
}

@media (min-width: 1264px) {
    .post-card--default {
        padding: 12px 20px;
        min-height: 350px;
    }

    .post-card--default .post-card__title {
        font-size: 28px;
        line-height: 36px;
        margin-block: 0 12px;
    }
}

@media (min-width: 1700px) {
    .post-card--default {
        padding: 16px 24px;
        min-height: 395px;
    }

    .post-card--default .post-card__title {
        margin-block: 0 16px;
    }
}

/* default END */

/* wide START */
.post-card--wide {
    padding: 8px;
    display: grid;
    gap: 16px;
    align-content: start;
}

.post-card--wide .post-card__title {
    font-size: 20px;
    line-height: 24px;
    margin-block: 0 16px;
    flex: 1;
}

@media (min-width: 960px) {
    .post-card--wide {
        padding: 12px;
        gap: 20px;
        grid-template-columns: 420px auto;
        min-height: 328px;
    }

    .post-card--wide .post-card__title {
        font-size: 20px;
        line-height: 36px;
        margin-block: 0 20px;
    }
}

@media (min-width: 1264px) {
    .post-card--wide {
        padding: 16px;
        gap: 24px;
        grid-template-columns: 1fr;
        min-height: 580px;
    }

    .post-card--wide .post-card__title {
        font-size: 28px;
        line-height: 40px;
        margin-block: 0 24px;
    }
}

@media (min-width: 1700px) {
    .post-card--wide {
        padding: 20px;
        gap: 32px;
        min-height: 678px;
    }

    .post-card--wide .post-card__title {
        font-size: 32px;
        line-height: 48px;
        margin-block: 0 32px;
    }
}

/* wide END */

/* list START */
.post-card--list {
    padding: 8px;
}

.post-card--list .post-card__title {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    margin-block: 0 8px;
}

.post-card--list .post-card__excerpt {
    margin-block: 0;
}

@media (min-width: 960px) {
    .post-card--list {
        min-height: 150px;
    }
}

@media (min-width: 1264px) {
    .post-card--list {
        padding: 8px 12px;
    }

    .post-card--list .post-card__title {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (min-width: 1700px) {
    .post-card--list {
        padding: 12px 16px;
        min-height: 210px;
    }

    .post-card--list .post-card__title {
        font-size: 20px;
        line-height: 32px;
    }
}

/* list END */

/* bg styling */
@media (min-width: 1264px) {

    .post-card--default.tag-hash-bg-orange,
    .post-card--default.tag-hash-bg-blue,
    .post-card--default.tag-hash-bg-violet,
    .post-card--default.tag-hash-bg-green,
    .post-card--default.tag-hash-bg-pink {
        background-position: right bottom;
        background-size: contain;
        background-repeat: no-repeat;
    }

    .post-card--default.tag-hash-bg-orange {
        background-image: url(../images/card-bg/bg-orange.webp);
    }

    .post-card--default.tag-hash-bg-blue {
        background-image: url(../images/card-bg/bg-blue.webp);
    }

    .post-card--default.tag-hash-bg-violet {
        background-image: url(../images/card-bg/bg-violet.webp);
    }

    .post-card--default.tag-hash-bg-green {
        background-image: url(../images/card-bg/bg-green.webp);

    }

    .post-card--default.tag-hash-bg-pink {
        background-image: url(../images/card-bg/bg-pink.webp);
    }
}
