.post-card {
    margin-bottom: 20px;
    border: none;
    border-radius: 8px;
    background-color: #1f1f1f;
}

.card-header {
    background-color: #2c2c2c;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #444;
}

.card-img-top {
    object-fit: cover;
    cursor: pointer;
    border-radius: 0;
}

.card-body {
    background-color: #2c2c2c;
    border-radius: 0 0 8px 8px;
}

.read-more-link {
    color: #aaa;
    text-decoration: none;
    cursor: pointer;
}

.read-more-link:hover {
    text-decoration: underline;
    color: gray;
}

.post-time {
    color: #aaa;
    font-size: 0.85rem;
}

#previewImage {
    max-height: 90vh;
}

/* Modal Post */
#postModal .modal-body {
    padding: 0;
}

#postModal .modal-body .row {
    margin: 0;
}

/* Left column: image */
#postModalImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    max-height: 80vh;
}

/* Right column: details, scrollable */
#postModalDetails {
    max-height: 80vh;
    overflow-y: auto;
}

#postModal .modal-content {
    border-radius: 8px;
}

#postModalComments div {
    padding: 0.5rem;
    border-bottom: 1px solid #444;
}

#postModalComments div:last-child {
    border-bottom: none;
}

#postModalComments {
    max-height: 250px;
    overflow-y: auto;
}

#postModalDescription {
    white-space: normal;
    word-wrap: break-word;
}

/* input comment */
.comment-input-group .form-control,
#postModalCommentInput {
    background-color: #2c2c2c;
    border: 1px solid #444;
    color: #fff;
}

.comment-input-group .form-control:focus,
#postModalCommentInput:focus {
    background-color: #2c2c2c;
    border-color: #4db5ff;
    color: #fff;
}

.comment-input-group .form-control::placeholder,
#postModalCommentInput::placeholder {
    color: #aaa;
}