.seor-item-guia {
    border: 1px solid var(--wp--preset--color--primary, #3a5477);
    padding: 0;
    background: #fff;
    margin: 0;
    max-width: 100%;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.seor-item-guia .seor-pp-image-wrap {
    overflow: hidden;
    width: 100%;
}

.seor-item-guia .seor-pp-image-wrap img {
    width: 100%;
    height: 180px; /* Slightly taller for guia patients */
    object-fit: cover;
    display: block;
}

.seor-item-guia .seor-pp-content {
    border-top: 1px solid var(--wp--preset--color--primary, #3a5477);
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.seor-item-guia .seor-pp-meta {
    margin-bottom: 12px;
}

.seor-item-guia .seor-pp-site-label {
    background-color: var(--wp--preset--color--primary, #3a5477);
    border-radius: 0; /* Sharp edges for SEOR style */
    padding: 4px 12px;
    font-size: 0.75rem;
}

.seor-item-guia .seor-pp-excerpt {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 20px;
}

/* Animations */
.seor-item-guia.seor-pp-card-animated {
    overflow: hidden;
    transition: all 0.3s ease;
}

.seor-item-guia.seor-pp-card-animated:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.seor-item-guia.seor-pp-card-animated .seor-pp-image-wrap img {
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.seor-item-guia.seor-pp-card-animated:hover .seor-pp-image-wrap img {
    transform: scale(1.1);
}

.seor-item-guia.seor-pp-card-animated::before,
.seor-item-guia.seor-pp-card-animated::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    transform: scale(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 101;
}

.seor-item-guia.seor-pp-card-animated::after {
    width: 60px;
    height: 60px;
    background: var(--wp--preset--color--primary, #3a5477);
    transition-delay: 0.1s;
}

.seor-item-guia.seor-pp-card-animated::before {
    width: 120px;
    height: 120px;
    background: color-mix(in srgb, var(--wp--preset--color--primary, #3a5477) 30%, transparent);
    transition-delay: 0s;
}

.seor-item-guia.seor-pp-card-animated:hover::before,
.seor-item-guia.seor-pp-card-animated:hover::after {
    transform: scale(1);
    opacity: 1;
}

.seor-pp-more {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary, #f79420);
    text-decoration: none;
    margin-top: auto; /* Pushes to bottom */
    display: inline-flex; /* Changed to flex for alignment */
    align-items: center;
    align-self: flex-start;
    transition: color 0.2s ease;
}

.seor-pp-more::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    background-color: currentColor; /* Matches text color */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='7' y1='17' x2='17' y2='7'%3E%3C/line%3E%3Cpolyline points='7 7 17 7 17 17'%3E%3C/polyline%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-size: contain;
    transition: transform 0.5s ease-in-out; /* Matched to menu_horizontal speed */
}

/* Trigger animation when the card is hovered */
.seor-item-guia:hover .seor-pp-more::before {
    transform: translate(2px, 1px) scale(1.1) rotate(25deg);
}

.seor-item-guia:hover .seor-pp-more {
    text-decoration: underline;
    color: var(--wp--preset--color--primary, #3a5477);
}

.seor-pp-full-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 102;
}

/* Disable clicks in the editor to allow selection */
.is-visual-editor .seor-pp-full-link {
    pointer-events: none;
}
