.nm-blog {
    padding: 12px 0 48px;
    color: #2b2b2b;
}

.nm-blog-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.nm-blog-bar p {
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
}

.nm-btn {
    display: inline-block;
    background: #3a8f10;
    color: #fff !important;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    padding: 12px 18px;
    font-size: 15px;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;
}

.nm-btn.secondary {
    background: transparent;
    color: #3a8f10 !important;
    border: 1px solid #3a8f10;
}

.nm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.nm-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6e6e6;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
    overflow: hidden;
}

.nm-card:hover h2 {
    color: #3a8f10;
}

.nm-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #eef5ea;
    overflow: hidden;
}

.nm-card-media img,
.nm-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nm-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    letter-spacing: 0.04em;
    padding: 4px 8px;
    border-radius: 3px;
}

.nm-card-body {
    padding: 18px 18px 22px;
}

.nm-card time,
.nm-post time {
    display: block;
    color: #6d6d6d;
    font-size: 13px;
    margin-bottom: 8px;
}

.nm-card h2,
.nm-post h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.nm-card p,
.nm-post .nm-body p {
    margin: 0 0 12px;
    line-height: 1.7;
}

.nm-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
}

.nm-gallery img,
.nm-post video,
.nm-post iframe {
    width: 100%;
    display: block;
    background: #111;
}

.nm-post video,
.nm-post iframe {
    aspect-ratio: 16 / 9;
    border: 0;
    margin-bottom: 22px;
}

.nm-form {
    display: grid;
    gap: 16px;
    max-width: 760px;
}

.nm-form label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

.nm-form input[type="text"],
.nm-form input[type="url"],
.nm-form input[type="email"],
.nm-form input[type="password"],
.nm-form textarea {
    font: inherit;
    font-weight: 400;
    padding: 10px 12px;
    border: 1px solid #ccc;
    width: 100%;
    box-sizing: border-box;
}

.nm-form textarea {
    min-height: 180px;
    resize: vertical;
}

.nm-note {
    font-weight: 400;
    color: #666;
    font-size: 13px;
}

.nm-error {
    color: #a12626;
    margin: 0;
}

.nm-empty {
    padding: 24px 0;
}

.nm-blog [hidden] {
    display: none !important;
}

.nm-btn,
.nm-tool,
.nm-filter,
.nm-kicker,
.nm-form label {
    font-family: "Open Sans", sans-serif;
}

.nm-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nm-btn.danger {
    background: #fff;
    color: #a12626 !important;
    border: 1px solid #a12626;
}

.nm-kicker {
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3a8f10;
    font-weight: 700;
    margin: 0 0 12px;
}

.nm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.nm-filter {
    border: 1px solid #cfe3c4;
    background: #fff;
    color: #2f6e12;
    border-radius: 99px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
}

.nm-filter.is-on {
    background: #3a8f10;
    border-color: #3a8f10;
    color: #fff;
}

.nm-drafts {
    background: #fffaf0;
    border: 1px solid #f0e0b8;
    padding: 16px;
    margin-bottom: 28px;
}

.nm-card {
    position: relative;
}

.nm-card-open {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    min-height: 100%;
}

.nm-card-edit {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: #fff;
    color: #3a8f10;
    font-size: 12px;
    font-family: "Open Sans", sans-serif;
    padding: 4px 8px;
    border-radius: 3px;
    text-decoration: none;
}

.nm-card-meta {
    margin: 0 0 8px;
}

.nm-card-meta time,
.nm-card-meta .nm-read {
    display: inline;
    margin: 0;
    color: #6d6d6d;
    font-size: 13px;
}

.nm-card-chips {
    margin: 0 0 8px;
}

.nm-chip {
    display: inline-block;
    background: #eef5ea;
    color: #2f6e12;
    border-radius: 99px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    margin: 0 6px 6px 0;
}

.nm-chip-star {
    background: #fff4d6;
    color: #8a5a00;
}

.nm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
    color: #6d6d6d;
    font-size: 13px;
    margin-bottom: 16px;
}

.nm-draft-banner {
    background: #fff4d6;
    border: 1px solid #f0e0b8;
    padding: 10px 12px;
    margin: 0 0 16px;
}

.nm-editor {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.nm-editor .nm-form {
    max-width: none;
}

.nm-section {
    display: grid;
    gap: 12px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.nm-editor input[type="text"],
.nm-editor input[type="url"],
.nm-editor select,
.nm-editor textarea {
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    background: #fff !important;
    font-family: "Open Sans", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400;
    color: #222;
    padding: 10px 12px !important;
    width: 100%;
    box-sizing: border-box;
    min-height: 0 !important;
    resize: vertical;
}

.nm-editor textarea {
    min-height: 72px !important;
}

.nm-form label.nm-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.nm-form label.nm-check input {
    width: auto;
}

.nm-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nm-tool {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    color: #2b2b2b;
}

.nm-tool:hover {
    border-color: #3a8f10;
    color: #3a8f10;
}

.nm-rte,
.nm-body {
    font-family: Lora, serif;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
    color: #2b2b2b;
}

.nm-rte {
    min-height: 280px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px 14px;
    background: #fff;
    outline: none;
}

.nm-rte:focus {
    border-color: #3a8f10;
}

.nm-rte:not(.is-filled):before {
    content: attr(data-placeholder);
    color: #9a9a9a;
    pointer-events: none;
}

.nm-rte h2,
.nm-body h2 {
    font-size: 28px;
    line-height: 1.25;
    margin: 0.8em 0 0.35em;
    font-weight: 400;
}

.nm-rte h3,
.nm-body h3 {
    font-size: 22px;
    line-height: 1.3;
    margin: 0.8em 0 0.3em;
    font-weight: 400;
}

.nm-rte strong,
.nm-rte b,
.nm-body strong,
.nm-body b {
    font-weight: 700;
}

.nm-rte ul,
.nm-rte ol,
.nm-body ul,
.nm-body ol {
    margin: 0 0 16px;
    padding-left: 1.3em;
}

.nm-body a {
    color: #3a8f10;
}

.nm-rte blockquote,
.nm-body blockquote {
    margin: 0 0 16px;
    padding: 4px 0 4px 14px;
    border-left: 3px solid #c8c8c8;
    color: #444;
}

.nm-rte blockquote.nm-tip,
.nm-body blockquote.nm-tip,
.nm-rte blockquote.nm-remember,
.nm-body blockquote.nm-remember {
    padding: 12px 14px;
}

.nm-rte blockquote.nm-tip,
.nm-body blockquote.nm-tip {
    background: #eef5ea;
    border-left-color: #3a8f10;
}

.nm-rte blockquote.nm-remember,
.nm-body blockquote.nm-remember {
    background: #fff8e8;
    border-left-color: #c48a12;
}

.nm-rte blockquote.nm-tip::before,
.nm-body blockquote.nm-tip::before,
.nm-rte blockquote.nm-remember::before,
.nm-body blockquote.nm-remember::before {
    display: block;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.nm-rte blockquote.nm-tip::before,
.nm-body blockquote.nm-tip::before {
    content: "Sfat";
    color: #3a8f10;
}

.nm-rte blockquote.nm-remember::before,
.nm-body blockquote.nm-remember::before {
    content: "De reținut";
    color: #8a5a00;
}

.nm-drop {
    border: 1px dashed #8fbf78;
    background: #f7fbf5;
    border-radius: 6px;
    padding: 18px;
    text-align: center;
}

.nm-drop.over {
    background: #e7f5e0;
}

.nm-drop p {
    margin: 0;
}

.nm-text-btn {
    background: none;
    border: 0;
    color: #3a8f10;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    font: inherit;
}

.nm-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.nm-thumb {
    position: relative;
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 8px;
    display: grid;
    gap: 6px;
}

.nm-thumb.is-cover {
    border-color: #3a8f10;
}

.nm-thumb.over {
    outline: 2px solid #3a8f10;
}

.nm-thumb img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.nm-cover-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #3a8f10;
    color: #fff;
    font-family: "Open Sans", sans-serif;
    font-size: 11px;
    padding: 3px 6px;
    border-radius: 3px;
}

.nm-thumb-actions {
    display: flex;
    gap: 10px;
}

.nm-thumb-actions button {
    background: none;
    border: 0;
    color: #3a8f10;
    cursor: pointer;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    font-size: 13px;
}

.nm-thumb-actions button:last-child {
    color: #a12626;
}

.nm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 12px 0;
}

.nm-preview-title {
    font-size: 26px;
    line-height: 1.3;
    margin: 0 0 10px;
    font-weight: 400;
}

.nm-preview {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 16px 16px 8px;
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.nm-cover {
    margin: 0 0 18px;
}

.nm-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: #eef5ea;
}

.nm-gallery figure {
    margin: 0;
}

.nm-cover figcaption,
.nm-gallery figcaption {
    font-size: 13px;
    color: #666;
    margin-top: 6px;
}

a.nm-card-open,
a.nm-card-open:hover {
    color: #2b2b2b;
}

.nm-blog .nm-btn {
    background: #3a8f10;
    color: #fff !important;
    border: 0;
}

.nm-blog .nm-btn.secondary {
    background: #fff;
    color: #3a8f10 !important;
    border: 1px solid #3a8f10;
}

.nm-blog .nm-btn.danger {
    background: #fff;
    color: #a12626 !important;
    border: 1px solid #a12626;
}

.nm-blog button.nm-filter {
    background: #fff;
    color: #2f6e12;
    border: 1px solid #cfe3c4;
}

.nm-blog button.nm-filter.is-on {
    background: #3a8f10;
    border-color: #3a8f10;
    color: #fff;
}

.nm-blog button.nm-tool,
.nm-blog button.nm-text-btn,
.nm-blog .nm-thumb-actions button {
    background: #fff;
    color: #2b2b2b;
}

.nm-blog button.nm-text-btn,
.nm-blog .nm-thumb-actions button {
    background: none;
    color: #3a8f10;
}

.nm-blog .nm-thumb-actions button:last-child {
    color: #a12626;
}

@media (max-width: 900px) {
    .nm-editor {
        grid-template-columns: 1fr;
    }

    .nm-preview {
        position: static;
        max-height: none;
    }
}
