/**
 * Handzom UI Kit: Article Cards Widget CSS
 */

.hz-ac-wrapper {
    width: 100%;
}

.hz-ac-grid {
    display: grid;
    /* Columns and Gap set dynamically by Elementor */
}

.hz-ac-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Stretched Link */
.hz-ac-stretched-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Image */
.hz-ac-image-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* height set dynamically */
}

.hz-ac-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hz-hover-zoom img {
    transform: scale(1.02);
}

.hz-ac-card:hover .hz-hover-zoom img {
    transform: scale(1.1);
}

/* Content */
.hz-ac-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 2;
}

.hz-ac-category {
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 15px;
}

.hz-ac-title {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 40px 0;
    /* transition for hover effect */
    transition: color 0.3s ease;
}

/* Footer (Meta + Icon) */
.hz-ac-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hz-ac-meta {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hz-ac-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hz-ac-card:hover .hz-ac-icon {
    transform: translateX(8px);
}

/* Responsive */
@media (max-width: 768px) {
    .hz-ac-grid {
        grid-template-columns: 1fr !important;
    }
}
