/* -----------------------------------------------------
   GLOBAL POST CARD
----------------------------------------------------- */
.ucp-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--uffizio-color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.25s ease;
}

.ucp-item:hover {
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
}

/* Thumbnail - fix uneven image sizes */
.ucp-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.ucp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content */
.ucp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px 20px;
    box-sizing: border-box;
}

/* Meta - Category Left / Date Right */
.ucp-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--uffizio-text-secondary);
}

.ucp-date {
    opacity: 0.8;
    text-align: right;
    color: var(--uffizio-text-secondary);
}

/* Title */
.ucp-title {
    margin-bottom: 20px !important;
    margin-top: 20px !important;
}

.ucp-title a {
    color: var(--uffizio-text-primary);
    font-family: var(--uffizio-font-body);
    text-transform: initial;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2em;
    max-height: 2.4em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    color:var(--uffizio-text-secondary);
}

/* .ucp-title a:hover {
    color: var(--uffizio-color-accent);
} */

/* Excerpt */
.ucp-excerpt {
    color: #555;
    margin-bottom: 30px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5em;
    max-height: 3em;
}

/* Read More link */
.uffizio-read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--uffizio-color-accent);
    text-decoration: none;
}

/* SVG arrow inside circular border */
.uffizio-read-more svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    padding: 3px;
    border-radius: 50%;
    border: 1px solid var(--uffizio-color-accent);
    background-color: transparent;
    fill: var(--uffizio-color-accent);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0) rotate(0deg);
}

/* SVG arrow inside circular border on card hover */
.ucp-item:hover .uffizio-read-more svg,
.uffizio-blog-item:hover .uffizio-read-more svg {
    transform: translateX(0%) rotate(-30deg);
}