/* static/css/cards.css */

/* Basic styles for card components */

.card {
    background-color: var(--white-color); /* White background */
    border-radius: var(--border-radius); /* Rounded corners */
    box-shadow: var(--box-shadow-sm); /* Subtle shadow */
    overflow: hidden; /* Hide content that overflows rounded corners */
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack content vertically */
    transition: transform var(--transition-fast), box-shadow var(--transition-fast); /* Smooth transition on hover */
}

.card:hover {
    transform: translateY(-5px); /* Slight lift effect on hover */
    box-shadow: var(--box-shadow-md); /* Slightly larger shadow on hover */
}

.card-body {
    padding: 1.5rem; /* Padding inside the card body */
    flex-grow: 1; /* Allow the body to take up available space */
}

.card-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-semibold);
    color: var(--primary-dark);
    margin-top: 0;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Optional: Styles for card images if you have them */
/* .card-img-top {
    width: 100%;
    height: 100%; /* Maintain aspect ratio */
    /* object-fit: cover; Cover the area without stretching */
    /* border-top-left-radius: var(--border-radius); */
    /* border-top-right-radius: var(--border-radius); */
/* } */ 

/* Optional: Styles for card footers */
.card-footer {
    padding: 0.75rem 1.5rem;
    background-color: var(--light-gray);
    border-top: 1px solid var(--medium-gray);
    font-size: 0.9rem;
    color: var(--dark-gray);
}

/* Example of a grid layout for cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 2rem; /* Space between cards */
}


/* Responsive adjustments for cards */
@media (max-width: 768px) {
    .card-body {
        padding: 1.2rem; /* Reduced padding */
    }

    .card-title {
        font-size: 1.2rem; /* Reduced title size */
        margin-bottom: 0.8rem;
    }

    .card-text {
        font-size: 0.95rem; /* Reduced text size */
        margin-bottom: 0.8rem;
    }

    .card-footer {
        padding: 0.6rem 1.2rem; /* Reduced padding */
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .card-body {
        padding: 1rem; /* Further reduced padding */
    }

    .card-title {
        font-size: 1.1rem; /* Further reduced title size */
        margin-bottom: 0.6rem;
    }

    .card-text {
        font-size: 0.9rem; /* Further reduced text size */
        margin-bottom: 0.6rem;
    }

    .card-footer {
        padding: 0.5rem 1rem; /* Further reduced padding */
        font-size: 0.8rem;
    }

    .card-grid {
        gap: 1.5rem; /* Reduced gap */
    }
}
