/* public/css/card.css */

.card-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    background-color: #f9fafb;
}

.card-row {
    display: flex;
    gap: 24px;
}

.card-row-1 .card {
    flex: 1 1 100%;
}

.card-row-2 .card {
    flex: 1 1 48%;
}

.card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px; /* smoother modern rounded edges */
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    padding-top: 12px;
    width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 12px; /* softer image corners */
}

.card-content {
    padding: 20px;
    align-content: center;
}

.card-content h3 {
    text-align: center;
    margin: 0 0 12px 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: #3b82f6; /* modern blue */
}

.card-content p {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 0.95rem;
    line-height: 1.5;
}

.card-content a {
    color: #dc2626; /* modern red */
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: color 0.2s ease;
}

.card-content a:hover {
    text-decoration: underline;
    color: #b91c1c;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db; /* subtle border shift */
}

.center-link {
    display: block;
    margin: 0 auto;
    text-align: center;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }
}
