/* Insurance Logo Animations */

.insurance-logo-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.insurance-logo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
    transition: left 0.6s ease;
}

.insurance-logo-card:hover::before {
    left: 100%;
}

.insurance-logo-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.2);
}

.insurance-logo-wrapper {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f9fa;
    padding: 15px;
    transition: all 0.3s ease;
}

.insurance-logo-card:hover .insurance-logo-wrapper {
    background: #fff;
}

.insurance-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.5s ease;
    filter: grayscale(0.3);
}

.insurance-logo-card:hover .insurance-logo {
    transform: scale(1.1) rotate(2deg);
    filter: grayscale(0) brightness(1.1);
}

.insurance-logo-card h6 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0;
    transition: color 0.3s ease;
    font-size: 14px;
}

.insurance-logo-card:hover h6 {
    color: #0d6efd;
}

/* Pulse animation for on-load effect */
@keyframes pulseIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.insurance-logo-card {
    animation: pulseIn 0.6s ease-out;
}

/* Stagger animation delays for cards */
.insurance-logo-card:nth-child(1) { animation-delay: 0.1s; }
.insurance-logo-card:nth-child(2) { animation-delay: 0.2s; }
.insurance-logo-card:nth-child(3) { animation-delay: 0.3s; }
.insurance-logo-card:nth-child(4) { animation-delay: 0.4s; }
.insurance-logo-card:nth-child(5) { animation-delay: 0.5s; }
.insurance-logo-card:nth-child(6) { animation-delay: 0.6s; }
.insurance-logo-card:nth-child(7) { animation-delay: 0.7s; }
.insurance-logo-card:nth-child(8) { animation-delay: 0.8s; }

/* Add a subtle floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.insurance-logo-card:hover {
    animation: float 2s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .insurance-logo-card {
        padding: 20px 15px;
    }
    
    .insurance-logo-wrapper {
        height: 100px;
        padding: 10px;
    }
    
    .insurance-logo-card h6 {
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .insurance-logo-wrapper {
        height: 90px;
    }
    
    .insurance-logo-card h6 {
        font-size: 12px;
    }
}

/* Add shimmer effect on hover */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.insurance-logo-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insurance-logo-card:hover .insurance-logo-wrapper::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* Glow effect */
.insurance-logo-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #0d6efd, #0dcaf0, #0d6efd);
    border-radius: 15px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradient-rotate 3s ease infinite;
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.insurance-logo-card:hover::after {
    opacity: 1;
}
