body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    background: #fff;
    color: #333;
}

.manage-posts-container {
    padding: 2rem;
    max-width: 1200px;
    margin: auto;
}

.blog-txt {
    position: absolute;
    color: #7b2cbf;
}

.create-post-btn {
    background: #7b2cbf;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    float: right;
    margin-bottom: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.post-grid {
    margin-top: 80px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.post-card {
    border: 1px solid #eee;
    padding: 1rem;
    width: 350px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.post-card .date-share {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #999;
}

.post-card h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.post-card p {
    font-size: 0.9rem;
    color: #444;
}

.post-card .btn-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.btn-group button {
    flex: 1;
    padding: 0.4rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-group .edit {
    background: #7b2cbf;
    color: white;
}

.btn-group .delete {
    border: 1px solid red;
    color: red;
    background: white;
}

.empty-message {
    text-align: center;
    font-size: 1.2rem;
    color: gray;
    margin-top: 2rem;
}

.hidden {
    display: none;
}