/* Cards container to hold all cards in a grid layout */
.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
    gap: 16px; /* Adjust spacing between cards */
    padding: 24px; /* Add padding to the container */
}

/* Individual card styling */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    transition: transform 0.2s ease-in-out;
}

/* Image inside the card */
.card img {
    width: 100%;
    height: 150px; /* Fixed height for uniformity */
    object-fit: cover; /* Ensure image doesn't stretch */
}

/* Card content */
.card-content {
    padding: 12px 0;
}

.card h6 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 12px 0;
}

/* Add hover effect for cards */
.card:hover {
    transform: scale(1.05);
}

/* Responsive layout for smaller screens */
@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr); /* 3 cards per row for tablets */
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row for small screens */
    }
}

@media (max-width: 480px) {
    .cards-container {
        grid-template-columns: 1fr; /* 1 card per row for mobile phones */
    }
}
