#editor-area {
    border: 1px solid #ddd;
    padding: 15px;
    min-height: 250px;
    background: #fafafa;
}

.fas-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem;
    font-family: sans-serif;
    width: 100%;
}

/* Top section layout */
/* ============ Default Desktop Layout ============ */
.fas-top-section {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.fas-top-section.with-image {
    flex-wrap: nowrap;
}

.fas-top-section.with-image .fas-image-left {
    flex: 0 0 50%;
    max-width: 50%;
}

.fas-top-section.with-image .fas-text-right {
    flex: 1;
    max-width: 50%;
}

.fas-top-section.no-image {
    flex-direction: column;
}

.fas-top-section.no-image .fas-text-right {
    max-width: 100%;
    flex: 1 1 100%;
}

/* ============ Responsive Mobile Layout ============ */
@media (max-width: 768px) {
    .fas-top-section {
        flex-direction: column;
    }

    .fas-top-section.with-image .fas-image-left,
    .fas-top-section.with-image .fas-text-right {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .fas-image-left img {
        width: 100%;
        height: auto;
        display: block;
    }
}

/* Title and meta */
.fas-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.fas-meta-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.fas-avatar {
    border-radius: 50%;
}

.fas-meta-text {
    font-size: 0.95rem;
    color: #444;
}

.fas-author-name {
    font-weight: bold;
    color: #111;
}

.fas-meta {
    color: #777;
    font-size: 0.85rem;
}

/* First paragraph */
.fas-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

/* Remaining body */
.fas-post-body {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 2rem;
}

.fas-post-body p {
    margin-bottom: 1rem;
}

/* Attachments */
.fas-attachment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.fas-attachment-col {
    flex: 1 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
}

.fas-attachments {
    margin-top: 3rem;
    border-top: 1px solid #ddd;
    padding-top: 1.5rem;
}

.fas-attachments h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.fas-attachment-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.fas-file-link {
    color: #0066cc;
    text-decoration: underline;
}

.fas-no-files {
    color: #777;
    font-style: italic;
}

.fas-comments {
    margin-top: 4rem;
    border-top: 1px solid #ddd;
    padding-top: 2rem;
}

.fas-breadcrumbs {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.fas-breadcrumbs a {
    color: #0073aa;
    text-decoration: none;
}

.fas-breadcrumbs a:hover {
    text-decoration: underline;
}
/*───────────────────────────────────────────────
  File‐upload widgets (both create & edit forms)
───────────────────────────────────────────────*/
.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 1em;
}

.custom-file-btn {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 0.25em;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}
.custom-file-btn:hover {
    background-color: #005177;
}

.custom-file-name {
    font-style: italic;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}

/*───────────────────────────────────────────────
  “Current Attachments” list in the edit form
───────────────────────────────────────────────*/
.fas-current-attachments {
    margin-top: 2em;
}

.fas-current-attachments h4 {
    margin-bottom: 0.5em;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Flex list items: filename on left, delete button on right */
.fas-current-attachments ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.fas-current-attachments ul li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em 0;
    border-bottom: 1px solid #e3e3e3;
}

.fas-current-attachments ul li:last-child {
    border-bottom: none;
}

.fas-current-attachments ul li a {
    color: #0073aa;
    text-decoration: none;
}
.fas-current-attachments ul li a:hover {
    text-decoration: underline;
}

/* Delete button */
.fas-remove-attachment {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.25em 0.4em;
    border-radius: 4px;
    cursor: pointer;
    color: #d63638;
    font-size: 1rem;
    line-height: 1;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.fas-remove-attachment:hover {
    background: #d63638;
    color: #fff;
    border-color: #c12a2c;
}