/* Post Card widget */
.tv-post-card {
    position: relative;
    display: flex;
    border-radius: var(--tv-card-radius, 0);
    overflow: hidden;
    background: var(--tv-color-white, #fff);
    transition: box-shadow .2s ease;
}

/* Optional drop shadow */
.tv-post-card--with-shadow {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Media — 30% width */
.tv-post-card__media {
    flex: 0 0 30%;
    min-height: 180px;
    padding: var(--tv-space-4, 1rem);
}

/* Block class repeated to outweigh `.elementor img` (0,1,1) — see widgets CSS specificity convention. */
.tv-post-card .tv-post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* No image: content takes full width */
.tv-post-card--no-image .tv-post-card__content {
    flex: 1;
}

/* Content — 70% */
.tv-post-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--tv-space-4, 1rem);
    padding: var(--tv-space-4, 1rem);
    /* Reserve space at bottom-right for the absolutely-positioned date */
    padding-right: calc(var(--tv-space-4, 1rem) + 4rem);
}

/* Date badge — absolutely positioned bottom-right of the card, flush to edges */
.tv-post-card__date {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0.5rem 1rem;
    background: var(--tv-card-date-bg, #EE7160);
    color: var(--tv-card-date-text, #fff);
    font-family: var(--tv-font-body, 'Work Sans', sans-serif);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    z-index: 1;
}

/* Title */
.tv-post-card .tv-post-card__title {
    margin: 0;
    font-family: var(--tv-font-heading, 'Lexend Deca', sans-serif);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tv-card-title-color, #000);
    line-height: 1.3;
}

/* Excerpt */
.tv-post-card__excerpt {
    font-family: var(--tv-font-body, 'Work Sans', sans-serif);
    font-size: 14px;
    color: var(--tv-card-excerpt-color, #000);
    line-height: 1.5;
    opacity: .85;
}

/* Link — block class repeated to outweigh `.elementor a` (0,1,1). */
.tv-post-card .tv-post-card__link {
    display: inline-block;
    margin-top: auto;
    font-family: var(--tv-font-accent, 'Lexend Deca', sans-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--tv-card-link-color, #66A386);
    text-decoration: none;
    transition: opacity .2s ease;
}

.tv-post-card .tv-post-card__link:hover {
    opacity: .8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tv-post-card .tv-post-card__link:focus-visible {
    outline: 2px solid var(--tv-color-coral, #EE7160);
    outline-offset: 2px;
    border-radius: var(--tv-radius-sm, 4px);
}

/* Responsive: stack on mobile */
@media (max-width: 767px) {
    .tv-post-card {
        flex-direction: column;
    }

    .tv-post-card__media {
        flex: none;
        min-height: 200px;
    }

    /* On mobile the link sits above the date; restore normal right padding */
    .tv-post-card__content {
        padding-right: var(--tv-space-4, 1rem);
        padding-bottom: calc(var(--tv-space-4, 1rem) + 2rem);
    }
}
