/* 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 {
    /* Your existing styles */
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-radius: 1px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    /* Ensure the card takes up full width and maintains flexibility */
    flex: 1 1 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card img {
    /* Adjusted styles for image */
    padding-top:10px;
    width: 90%; /* Image takes full width of its container */
    height: auto; /* Ensures image maintains aspect ratio */
    display: block;
    margin: 0 auto; /* Centers the image horizontally within its container */
    object-fit: cover; /* Ensures the image covers the entire space */
}



.card-content {

    padding: 16px;
    align-content: center;
    
}

.card-content h3 {
    text-align:center;
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #5478b6;
}

.card-content p {
    margin: 0 0 16px 0;
    color: #4a5568;
}

.card-content a {
    color: #960606;
    text-decoration: none;
    font-weight: bold;
    align-content: center;
}

.card-content a:hover {
    text-decoration: underline;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}


.center-link {
    display: block;
    margin: 0 auto;
    text-align: center;
}









/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .card-row {
        flex-direction: column; /* Stack cards vertically on smaller screens */
    }

    .card {
        flex: 1 1 100%; /* Full width on small screens */
    }
}
