.cardContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    flex-wrap: wrap;
    width: 100%;
}

.card {
    /* width: 100%; */
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    font-family: "Segoe UI", sans-serif;
    margin: 20px;
    overflow: hidden;
    position: relative;
}

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

.tilt {
    overflow: hidden;
}

.img {
    height: 200px;
    overflow: hidden;
}

.img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.info {
    padding: 20px;
}

.cat {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 5px;
}

.title {
    font-size: 18px;
    font-weight: 700;
    color: #18181b;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.desc {
    font-size: 13px;
    color: #52525b;
    line-height: 1.4;
    margin-bottom: 12px;
}

.bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}


.btn {
    background: linear-gradient(45deg, #18181b, #27272a);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: linear-gradient(45deg, #27272a, #3f3f46);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn:before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
}

.btn:hover:before {
    left: 100%;
}

.icon {
    transition: transform 0.3s;
}

.btn:hover .icon {
    transform: rotate(-10deg) scale(1.1);
}

@media (max-width: 400px) {
    .card {
        width: 90%;
    }

    .title {
        font-size: 16px;
    }

    .img {
        height: 180px;
    }

    .bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}