/* Grid Layout - Force CSS Grid */
.hs-grid {
    display: grid;
    /* Default is overridden by Elementor control, but good fallback */
    grid-template-columns: repeat(4, 1fr); 
    width: 100%;
    box-sizing: border-box;
}

/* Responsive defaults if control isn't loaded yet */
@media (max-width: 1024px) {
    .hs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .hs-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Card Style */
.hs-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    width: 100%; /* Ensure it fills grid cell */
    box-sizing: border-box;
}

.hs-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

/* Icon */
.hs-icon {
    transition: transform 0.3s ease;
    line-height: 1;
}

.hs-card:hover .hs-icon {
    transform: scale(1.1);
}

/* Title */
.hs-title {
    margin: 0;
    font-weight: 600;
    font-size: 16px; /* Slightly smaller default */
    line-height: 1.3;
}

/* Arrow Decoration */
.hs-arrow {
    margin-top: 10px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #ffffff;
    font-size: 14px;
}

.hs-card:hover .hs-arrow {
    opacity: 1;
    transform: translateX(0);
}
