﻿.post-tile {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensures all tiles in a row have the same height */
    display: flex;
    flex-direction: column;
}

    .post-tile:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .post-tile .card-body {
        padding: 20px;
        flex-grow: 1; /* Allows the body to take up available space */
        display: flex;
        flex-direction: column;
        justify-content: space-between; /* Pushes the button to the bottom */
    }

    .post-tile .card-title {
        font-size: 1.25rem; /* Slightly smaller for titles within tiles */
        margin-bottom: 10px;
        color: #007bff; /* To mimic a clickable link, though the whole tile is the primary target */
    }

    .post-tile .post-meta {
        font-size: 0.875rem;
        color: #6c757d;
        margin-bottom: 15px;
    }

    .post-tile .status-badge {
        font-size: 0.75rem;
        padding: .3em .6em;
        border-radius: .25rem;
        display: inline-block; /* To make it wrap naturally */
    }

.status-published {
    background-color: #28a745; /* Green for Published */
    color: #fff;
}
.status-gray {
    background-color: gray; /* Green for Published */
    color: #fff;
}
.btn-view-post {
    margin-top: 15px;
    align-self: flex-start; /* Aligns button to the start */
}
