/* css/components/cards.css */
.card {
    background-color: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    box-shadow: var(--glass-card-shadow);
    padding: 20px;
    margin-bottom: 25px; /* Increased gap */
    overflow: hidden; /* For image fitting */
    /* .glass class adds backdrop-filter and main border-radius (16px from base.css) */

    /* Added for subtle interaction */
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    /* --- Flexbox properties for button alignment --- */
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 8px 16px rgba(0,0,0,0.15); /* More pronounced shadow on hover */
}


.card img.featured-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0; /* If image is at the very top of card content */
    margin-bottom: 15px;
}

.card h3 { /* For post cards in grids */
    color: var(--primary-accent);
    margin-bottom: 10px;
    font-size: 1.2em;
    line-height: 1.3;
}
.card h3 a {
    color: inherit;
    text-decoration: none;
}
.card h3 a:hover {
    text-decoration: none; /* MODIFIED: Removed underline on card title link hover */
    /* color: var(--primary-accent-darker); /* Optional: darker color on hover */
}

.card p { /* For excerpt in post cards */
    margin-bottom: 15px;
    font-size: 0.95em;
}

.card .meta { /* For date/category in post cards */
    font-size: 0.85em;
    color: var(--subtle-text);
    margin-bottom: 10px;
}
.card .meta a { /* For category links within card meta */
    text-decoration: none;
}
.card .meta a:hover {
    text-decoration: none;
    /* color: var(--primary-accent-darker); /* Optional */
}


/* --- Rule to push the "Read More" button to the bottom --- */
.card > a.btn { /* Targets an <a> tag with class 'btn' that is a DIRECT child of .card */
    margin-top: auto;   /* This is the magic: pushes the button to the bottom */
    align-self: flex-start; 
}