/* Blog cards – match design mockup */
.tp-blog-area--cards {
    --blog-card-bg: #f3ece3;
    --blog-card-shadow: 0 18px 40px rgba(74, 52, 33, 0.1);
    --blog-date-bg: #4a3426;
    --blog-title: #2b2118;
    --blog-muted: #8a7460;
    --blog-category: #6b4f3a;
    --blog-go-bg: #d8c3a7;
    --blog-go-hover: #cbb08e;
}

.tp-blog-area--cards .tp-blog-item {
    height: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.tp-blog-area--cards .tp-blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--blog-card-bg);
    box-shadow: var(--blog-card-shadow);
}

.tp-blog-area--cards .tp-blog-thumb {
    position: relative;
    height: 240px;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.tp-blog-area--cards .tp-blog-thumb__link {
    display: block;
    width: 100%;
    height: 100%;
}

.tp-blog-area--cards .tp-blog-thumb img,
.tp-blog-area--cards .tp-blog-thumb .lazyload,
.tp-blog-area--cards .tp-blog-thumb .lazyloaded {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
    transition: transform 0.45s ease;
}

.tp-blog-area--cards .tp-blog-card:hover .tp-blog-thumb img {
    transform: scale(1.04);
}

.tp-blog-area--cards .tp-blog-date {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    padding: 8px 12px 7px;
    border-radius: 12px;
    background: var(--blog-date-bg);
    color: #fff;
    line-height: 1.15;
    text-align: center;
    box-shadow: 0 8px 18px rgba(42, 28, 18, 0.22);
}

.tp-blog-area--cards .tp-blog-date__day {
    display: block;
    font-size: 18px;
    font-weight: 800;
}

.tp-blog-area--cards .tp-blog-date__month {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
}

.tp-blog-area--cards .tp-blog-wave {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 68px;
    color: var(--blog-card-bg);
    pointer-events: none;
}

.tp-blog-area--cards .tp-blog-wave path {
    fill: currentColor;
}

.tp-blog-area--cards .tp-blog-content {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 28px;
    text-align: start;
}

.tp-blog-area--cards .tp-blog-category {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
    color: var(--blog-category) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none !important;
}

.tp-blog-area--cards .tp-blog-category:hover {
    color: var(--blog-title) !important;
}

.tp-blog-area--cards .tp-blog-title {
    margin: 0 0 12px;
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 800;
    line-height: 1.55;
    color: var(--blog-title);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.tp-blog-area--cards .tp-blog-title a {
    color: inherit !important;
    text-decoration: none !important;
}

.tp-blog-area--cards .tp-blog-title a:hover {
    color: var(--blog-category) !important;
}

.tp-blog-area--cards .tp-blog-excerpt,
.tp-blog-area--cards .tp-blog-content p.tp-blog-excerpt {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: var(--blog-muted);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.85;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tp-blog-area--cards .tp-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed rgba(107, 79, 58, 0.22);
}

.tp-blog-area--cards .tp-blog-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    min-width: 0;
}

.tp-blog-area--cards .tp-blog-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-muted);
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

.tp-blog-area--cards .tp-blog-meta-item svg {
    flex: 0 0 auto;
    color: var(--blog-category);
    opacity: 0.85;
}

.tp-blog-area--cards .tp-blog-go-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--blog-title) !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
}

.tp-blog-area--cards .tp-blog-go-wrap:hover {
    color: var(--blog-title) !important;
}

.tp-blog-area--cards .tp-blog-go-label {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.tp-blog-area--cards .tp-blog-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--blog-go-bg);
    color: var(--blog-title) !important;
    text-decoration: none !important;
    transition: background 0.25s ease, transform 0.25s ease;
}

.tp-blog-area--cards .tp-blog-go-wrap:hover .tp-blog-go {
    background: var(--blog-go-hover);
    transform: translateX(-2px);
}

.tp-blog-area--cards .tp-blog-go svg {
    display: block;
}

/* Override old theme date badge styles inside new cards */
.tp-blog-area--cards .tp-blog-meta,
.tp-blog-area--cards .tp-blog-meta-date,
.tp-blog-area--cards .tp-blog-tag {
    display: none !important;
}

@media (max-width: 767.98px) {
    .tp-blog-area--cards .tp-blog-card {
        border-radius: 24px;
    }

    .tp-blog-area--cards .tp-blog-thumb {
        height: 210px;
    }

    .tp-blog-area--cards .tp-blog-content {
        padding: 6px 18px 22px;
    }

    .tp-blog-area--cards .tp-blog-footer {
        flex-wrap: wrap;
    }

    .tp-blog-area--cards .tp-blog-go-label {
        display: none;
    }
}
