/* Facilities Section Styles */
.facility-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(106, 20, 128, 0.1);
}

.facility-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 20, 128, 0.1), transparent);
    transition: left 0.5s;
}

.facility-card:hover::before {
    left: 100%;
}

.facility-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(106, 20, 128, 0.2);
    border-color: rgba(106, 20, 128, 0.3);
}

.facility-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.facility-icon.large {
    width: 150px;
    height: 150px;
}

.facility-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease;
}

.facility-card:hover .facility-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(106, 20, 128, 0.3);
}

.facility-card:hover .facility-icon img {
    transform: scale(1.05);
}

.facility-card h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.facility-card:hover h4 {
    color: #6a1480;
}

.facility-card p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    font-size: 15px;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 20px 40px rgba(106, 20, 128, 0.2);
    }
    50% {
        box-shadow: 0 20px 40px rgba(106, 20, 128, 0.4);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Apply animations */
.wow.fadeInUp {
    animation: fadeInUp 0.8s ease-out;
}

.facility-card:hover {
    animation: glow 2s infinite;
}

.facility-icon {
    animation: float 3s ease-in-out infinite;
}

/* Icon styling for better visual appeal */
.facility-card::after {
    content: '🏥';
    font-size: 2rem;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.1;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .facility-card {
        padding: 30px 20px;
        margin-bottom: 30px;
    }

    .facility-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 20px;
    }

    .facility-icon.large {
        width: 120px;
        height: 120px;
    }

    .facility-card h4 {
        font-size: 20px;
    }

    .facility-card p {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .facility-card {
        padding: 25px 15px;
    }

    .facility-icon {
        width: 80px;
        height: 80px;
    }

    .facility-icon.large {
        width: 100px;
        height: 100px;
    }

    .facility-card h4 {
        font-size: 18px;
    }
}
