.hc-085446df-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
    width: 100%;
}

.hc-085446df-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 30px;
    background-color: #ffffff;
    transition: background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    min-height: 100%;
    box-sizing: border-box;
}

/* Card Image Background */
.hc-085446df-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0.15; /* subtle image by default */
    transform: scale(var(--hc-img-scale-initial, 1));
}

.hc-085446df-card:hover .hc-085446df-bg-image {
    transform: scale(var(--hc-img-scale-hover, 1.05));
}

.hc-085446df-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hc-085446df-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.hc-085446df-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #222222;
    transition: color 0.3s ease;
}

.hc-085446df-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555555;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive Grid adjustment */
@media screen and (max-width: 991px) {
    .hc-085446df-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        grid-auto-rows: 200px !important;
    }
    .hc-085446df-card {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

@media screen and (max-width: 480px) {
    .hc-085446df-gallery {
        grid-template-columns: 1fr !important;
        grid-auto-rows: 180px !important;
    }
}
