/* posts.css */
.post-item {
    padding: 0.5rem; /* Reduce padding to make each item more compact */
    border: 1px solid #dee2e6; /* Keep the border subtle */
    border-radius: 0.25rem; /* Soften the corners */
    margin-bottom: 1rem; /* Keep consistent margin */
    background-color: #f8f9fa; /* Light background for better readability */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Slight shadow for depth */
}

.post-item img {
    /* width: 100%; Full width to utilize space */
    /* height: 100px; Fixed height for consistency */
    object-fit: cover; /* Ensure the image covers the area without stretching */
}

.post-item h5 {
    font-size: 1rem; /* Reduce font size for headings */
    margin-bottom: 0.25rem; /* Reduce space below headings */
}

.post-item p {
    font-size: 0.85rem; /* Smaller font size for content */
    margin-bottom: 0.5rem; /* Reduce spacing to fit more content */
}

.post-item small {
    font-size: 0.75rem; /* Smaller font size for additional details */
}

.post {
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    background-color: #f8f9fa;
}
.add-post {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: #ccc;
    font-size: 24px;
    transition: background-color 0.3s, color 0.3s;
}
.add-post:hover {
    background-color: #e9ecef;
    color: #888;
    cursor: pointer;
}
.header-with-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-with-button h1 {
    margin-bottom: 0; /* Removes default margin to align better with the button */
}