
h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 40px;
    margin-top: 40px;
}

.card-item-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.card-link {
    text-decoration: none;
    color: inherit;
    perspective: 1000px;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border:none;
    /* Center the image horizontally */
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: #f2e7d8;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.05);
}

.card:hover {
    background-color: #fff;
    /* transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2); */
}
.card img {
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
}

.card:hover img {
    transform: rotateY(180deg);
}

.card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    transition: transform 0.5s ease;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* .card:hover img {
    transform: scale(1.05);
} */

.card-body {
    padding: 11px;
    text-align: center;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: normal;
}

.card-desc {
    font-size: 14px;
    color: #777;
}

@media (max-width: 600px) {
    .card img {
        height: 100px;
    }
}

