@keyframes appear {
    from {
        opacity: 0;
        scale: 0.5;
    }
    to {
        opacity: 1;
        scale: 1;
    }
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    /* height: 100vh; */
    padding: 20px;
    /* margin-top: 250px; */
    margin-bottom: 100px;
    animation: appear linear;
    animation-timeline: scroll();
    animation-range: entry 0 cover 40%;
}


.heading-h2{
    justify-items: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}



.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    width: 1200px;
}

.card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
    overflow: hidden;
    position: relative;
    align-content: center;
}

.card:hover {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #7e5bef;
    color: #f8fafc;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}

.image-container {
    padding: 10px;
    text-align: center;
}

.image-container img {
    width: 100%;
    border-radius: 8px;
}

.card-content {
    padding: 10px;
}

.card-content h5 {
    font-size: 18px;
    font-weight: bold;
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h5:hover {
    color: #7e5bef;
}

.card-content p {
    font-size: 14px;
    color: #6b7280;
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    .heading-h2{
        justify-items: center;
        text-align: center;
        font-size: 1rem ! important;
        font-weight: 700;
        color: #333;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}