/**
 * One Elementor - One Post Block Widget
 */
.oe-post-block {
    width: 100%;
    box-sizing: border-box;
}

.oe-post-block__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.oe-post-block__media {
    flex: 0 0 50%;
    width: 50%;
    min-width: 0;
}

.oe-post-block__media-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.oe-post-block__media img,
.oe-post-block__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* When image container has fixed height, make img fill with object-fit */
.oe-post-block__media-inner[style*="height"] .oe-post-block__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.oe-post-block__btn-wrap {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: auto;
    z-index: 2;
}

.oe-post-block__btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    background-color: #0099cc;
    padding: 10px 18px;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.oe-post-block__btn:hover {
    opacity: 0.95;
}

.oe-post-block__btn-text {
    white-space: nowrap;
}

.oe-post-block__btn-icon {
    display: inline-flex;
    align-items: center;
}

.oe-post-block__btn-icon svg {
    width: 1em;
    height: 1em;
}

.oe-post-block__content {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
}

.oe-post-block__title {
    margin: 0 0 0.5em 0;
    line-height: 1.3;
}

.oe-post-block__title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.oe-post-block__desc {
    margin: 0;
    line-height: 1.5;
}

.oe-post-block__desc p:last-child {
    margin-bottom: 0;
}

.oe-post-block__placeholder {
    margin: 0;
    padding: 1em;
    color: #666;
    font-style: italic;
}

@media (max-width: 767px) {
    .oe-post-block__inner {
        flex-direction: column;
    }

    .oe-post-block__media,
    .oe-post-block__media[style*="width"] {
        flex: 0 0 100% !important;
        width: 100% !important;
    }

    .oe-post-block__content {
        flex: 1 1 auto;
    }
}
