.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem; /* reduced gap */
    padding: 0 1rem; /* reduced padding */
    margin-bottom: 4rem;
}

.card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    margin-bottom: 1rem; /* reduced margin */
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h2 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.btn {
    background-color: transparent;
    border: 2px solid #00a651;
    color: #00a651;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #00a651;
    color: white;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
