/* Badges Section Styles */
#badges {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

#badges h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

#badges h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
}

.badges-grid {
    display: grid;
    gap: 30px;
    padding: 20px;
    margin: 0 auto;
    max-width: 1400px;
}

.badge-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.badge-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.badge-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 20px;
}

.badge-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.badge-card:hover img {
    transform: scale(1.05);
}

.badge-card h3 {
    margin-top: 15px;
    font-size: 1.1em;
    color: #2c3e50;
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.badge-card:hover h3 {
    color: #3498db;
}

/* Loading Animation */
.badge-card {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Add a subtle gradient overlay on hover */
.badge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(52, 152, 219, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Responsive adjustments */
@media (max-width: 1200px) {
    .badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    /* #badges h2 {
        font-size: 2em;
    } */
}

@media (max-width: 480px) {
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .badge-card {
        max-width: 320px;
        margin: 0 auto;
    }
}