.icon-badge-cards-grid {
    display: grid;
    width: 100%;
    align-items: stretch;
}

.badge-card-item {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: visible;
}

/* Card hover effect */
/* .badge-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
} */

.badge-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Heading and Badge on same line */
.card-heading-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
/*     gap: 10px; */
}

.card-heading {
    font-weight: bold;
    margin: 0;
    transition: all 0.3s ease;
    flex: 1;
}

.badge-icon {
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.badge-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Badge hover animation */
/* .badge-card-item:hover .badge-icon {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
} */

/* Pulse animation on badge */
@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(155, 76, 114, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(155, 76, 114, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(155, 76, 114, 0);
    }
}

/* .badge-card-item:hover .badge-icon {
    animation: badgePulse 1.5s infinite;
}

.badge-card-item:hover .card-heading {
    transform: translateX(3px);
} */

.card-description {
    border-top: 1px solid #E5E5E9;
    padding-top: 30px;
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
    flex-grow: 1;
}

/* .badge-card-item:hover .card-description {
    opacity: 0.9;
} */

/* Subtle background overlay on hover */
.badge-card-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: inherit;
    z-index: 0;
}

/* .badge-card-item:hover::before {
    opacity: 1;
} */

/* Responsive - Tablet */
@media (max-width: 1024px) {
    .icon-badge-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .icon-badge-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
/*     .badge-card-item:hover {
        transform: translateY(-3px);
    } */
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .badge-card-item,
    .badge-card-item *,
    .badge-icon {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}