/*==================================================
Post Card
==================================================*/

.th-post-card {
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: all .35s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}


.th-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .15);
}

/*==================================================
Image
==================================================*/

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.35),
        rgba(0,0,0,.05)
    );
    opacity: 0;
    transition: opacity .35s ease;
    z-index: 1;
}

.th-post-card:hover .card-image::before {
    opacity: 1;
}

.th-post-card .card-img-top {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}

.th-post-card:hover .card-img-top {
    transform: scale(1.08);
}

/*==================================================
Body
==================================================*/

.th-post-card .card-body {
    padding: 20px;
}

.th-post-card .badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
}

.th-post-card .card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
}

.th-post-card .card-title a {
    color: var(--text);
    text-decoration: none;
    transition: color .3s ease;
}

.th-post-card:hover .card-title a {
    color: var(--primary);
}

.th-post-card .card-text {
    margin-top: 12px;
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

/*==================================================
Footer
==================================================*/

.th-post-card .card-footer {
    padding: 0 20px 20px;
    background: transparent;
    border: 0;
}

.th-post-card .btn {
    border-radius: 8px;
    transition: all .3s ease;
}

.th-post-card .btn:hover {
    transform: translateY(-2px);
}

/*==================================================
Responsive
==================================================*/

@media (max-width: 991px) {

    .th-post-card .card-img-top {
        height: 200px;
    }

}

@media (max-width: 767px) {

    .th-post-card .card-img-top {
        height: 180px;
    }

    .th-post-card .card-title {
        font-size: 18px;
    }

}