.badge-metadata {
    margin-top: -5px;
}

/* Level badges */
.badge.bg-info {
    background-color: #4285F4 !important; /* Google Blue */
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.2);
}

/* Level-specific styles */
.badge[data-level="introductory"] {
    background-color: #34A853 !important; /* Google Green */
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(52, 168, 83, 0.2);
}

.badge[data-level="intermediate"] {
    background-color: #FBBC05 !important; /* Google Yellow */
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.7rem;
    color: #202124 !important;
    box-shadow: 0 2px 4px rgba(251, 188, 5, 0.2);
}

.badge[data-level="advanced"] {
    background-color: #EA4335 !important; /* Google Red */
    border-radius: 20px;
    padding: 6px 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 0.7rem;
    box-shadow: 0 2px 4px rgba(234, 67, 53, 0.2);
}

/* Additional responsive adjustments */
@media (max-width: 767px) {
    .badge-img-container {
        height: 120px;
    }
}

/* Loading animation */
.loading-pulse {
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* Card hover animations */
.badge-card .badge-content {
    padding: 1rem;
}

.badge-card .badge-metadata {
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-card .badge-metadata .badge {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge-card:hover .badge-metadata .badge {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Custom animations for cards */
@keyframes slideInFromBottom {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.badge-card {
    animation: slideInFromBottom 0.5s ease-out forwards;
}

/* Staggered animation for multiple cards */
#badges-container .badge-card:nth-child(1) { animation-delay: 0.05s; }
#badges-container .badge-card:nth-child(2) { animation-delay: 0.1s; }
#badges-container .badge-card:nth-child(3) { animation-delay: 0.15s; }
#badges-container .badge-card:nth-child(4) { animation-delay: 0.2s; }
#badges-container .badge-card:nth-child(5) { animation-delay: 0.25s; }
#badges-container .badge-card:nth-child(6) { animation-delay: 0.3s; }
/* and so on for more items */
