/**
 * THIQLA Intranet – Berita & Pengumuman Styles
 * v2.1 – Rich Text Editor + Lampiran File
 */

/* ─── Admin Toolbar ───────────────────────────────────────────────────────── */
#newsAdminToolbar {
    background: linear-gradient(90deg,#1e3a8a,#2563eb);
    color:#fff; padding:10px 20px; border-radius:10px;
    margin-bottom:18px; display:flex; align-items:center;
    gap:12px; font-size:14px;
}
#newsAdminToolbar i { font-size:16px; color:#93c5fd; }
#newsAdminToolbar .toolbar-hint { opacity:.8; font-size:12px; flex:1; }
.btn-news-add {
    background:rgba(255,255,255,.18); border:1px solid rgba(255,255,255,.4);
    color:#fff; border-radius:9px; padding:8px 18px;
    font-size:13px; font-weight:600; cursor:pointer;
    display:flex; align-items:center; gap:7px;
    transition:background .2s; white-space:nowrap;
}
.btn-news-add:hover { background:rgba(255,255,255,.3); }

/* ─── Filter Bar ──────────────────────────────────────────────────────────── */
.news-filter-bar {
    display:flex; gap:10px; align-items:center;
    margin-bottom:22px; flex-wrap:wrap;
}
.news-search-wrap {
    flex:1; min-width:200px; display:flex; align-items:center;
    gap:8px; background:#fff; border:1px solid #e2e8f0;
    border-radius:10px; padding:9px 14px;
    transition:border-color .2s, box-shadow .2s;
}
.news-search-wrap:focus-within { border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.news-search-wrap i { color:#94a3b8; font-size:13px; }
.news-search-wrap input { border:none; outline:none; background:none; font-size:13px; color:#1e293b; flex:1; font-family:inherit; }
.news-filter-select {
    border:1px solid #e2e8f0; border-radius:10px;
    padding:9px 14px; font-size:13px; color:#374151;
    background:#fff; outline:none; cursor:pointer;
    font-family:inherit; transition:border-color .2s;
}
.news-filter-select:focus { border-color:#2563eb; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.news-layout {
    display:grid; grid-template-columns:1fr 300px;
    gap:20px; align-items:start;
}

/* ─── Featured Card ───────────────────────────────────────────────────────── */
.news-featured {
    background:#fff; border:1px solid #e2e8f0;
    border-radius:16px; overflow:hidden;
    margin-bottom:16px; transition:box-shadow .2s, transform .2s;
    cursor:pointer; position:relative;
}
.news-featured:hover { box-shadow:0 8px 32px rgba(0,0,0,.1); transform:translateY(-2px); }
.news-featured-banner {
    padding:26px 28px 20px; position:relative; overflow:hidden;
    background:linear-gradient(135deg,#1e3a8a 0%,#2563eb 100%);
}
.news-featured-banner::before {
    content:''; position:absolute; top:-60px; right:-60px;
    width:220px; height:220px; background:rgba(255,255,255,.07); border-radius:50%;
}
.news-featured-banner::after {
    content:''; position:absolute; bottom:-40px; left:-40px;
    width:160px; height:160px; background:rgba(255,255,255,.04); border-radius:50%;
}
.news-featured-label {
    background:rgba(255,255,255,.2); border:1px solid rgba(255,255,255,.3);
    color:#fff; font-size:10px; font-weight:800; padding:3px 12px;
    border-radius:20px; text-transform:uppercase; letter-spacing:1px;
    display:inline-flex; align-items:center; gap:5px;
    margin-bottom:12px; position:relative; z-index:1;
}
.news-featured-banner h2 {
    font-size:19px; font-weight:800; color:#fff; margin:0 0 10px;
    line-height:1.35; position:relative; z-index:1;
}
.news-featured-banner p {
    font-size:13px; color:rgba(255,255,255,.78); line-height:1.65;
    position:relative; z-index:1; margin:0;
}
.news-featured-body { padding:18px 28px 6px; }
.news-featured-body p { font-size:13.5px; color:#475569; line-height:1.75; margin:0; }
.news-featured-footer {
    padding:14px 28px; background:#f8fafc;
    border-top:1px solid #e2e8f0;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:10px;
}
.news-meta-group { display:flex; gap:16px; flex-wrap:wrap; }
.news-meta-item { font-size:11.5px; color:#94a3b8; display:flex; align-items:center; gap:4px; }

/* Admin overlay on featured */
.news-featured-admin-btns {
    position:absolute; top:10px; right:10px; z-index:10;
    display:flex; gap:6px; opacity:0; transition:opacity .2s;
}
.news-featured:hover .news-featured-admin-btns { opacity:1; }

/* ─── News Card List ──────────────────────────────────────────────────────── */
.news-card-list { display:flex; flex-direction:column; gap:12px; }
.news-card {
    background:#fff; border:1px solid #e2e8f0;
    border-radius:12px; padding:18px 20px;
    transition:box-shadow .2s, border-color .2s, transform .2s;
    cursor:pointer; position:relative; overflow:hidden;
}
.news-card::before {
    content:''; position:absolute; left:0; top:0; bottom:0;
    width:4px; border-radius:4px 0 0 4px;
    background:var(--nc-accent, #e2e8f0);
    transition:background .2s;
}
.news-card:hover { box-shadow:0 4px 20px rgba(0,0,0,.08); border-color:#c7d7ff; transform:translateX(3px); }
.news-card-top { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.news-card h3 { font-size:14.5px; font-weight:700; color:#1e293b; margin:0 0 8px; line-height:1.4; }
.news-card p  { font-size:13px; color:#64748b; line-height:1.65; margin:0 0 12px;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.news-card-meta { display:flex; gap:14px; flex-wrap:wrap; }
.news-card-meta span { font-size:11.5px; color:#94a3b8; display:flex; align-items:center; gap:4px; }

/* Admin action buttons on card */
.news-card-admin-btns {
    position:absolute; top:10px; right:10px;
    display:flex; gap:4px; opacity:0; transition:opacity .2s;
}
.news-card:hover .news-card-admin-btns { opacity:1; }
.btn-news-edit, .btn-news-del {
    border:none; border-radius:7px; width:28px; height:28px;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:12px; transition:all .18s;
    box-shadow:0 1px 4px rgba(0,0,0,.12);
}
.btn-news-edit { background:#dbeafe; color:#2563eb; }
.btn-news-edit:hover { background:#2563eb; color:#fff; }
.btn-news-del  { background:#fee2e2; color:#dc2626; }
.btn-news-del:hover  { background:#dc2626; color:#fff; }

/* ─── Category Tags ───────────────────────────────────────────────────────── */
.news-cat-tag {
    font-size:10.5px; font-weight:700; padding:3px 10px;
    border-radius:20px; text-transform:uppercase; letter-spacing:.4px;
    display:inline-flex; align-items:center; gap:4px;
}
.cat-urgent     { background:#fee2e2; color:#dc2626; }
.cat-info       { background:#dbeafe; color:#1d4ed8; }
.cat-program    { background:#d1fae5; color:#059669; }
.cat-hr         { background:#f5f3ff; color:#7c3aed; }
.cat-event      { background:#fffbeb; color:#d97706; }
.cat-achievement{ background:#ecfdf5; color:#065f46; }

/* ─── Sidebar Widgets ─────────────────────────────────────────────────────── */
.news-sidebar-col { display:flex; flex-direction:column; gap:16px; }
.news-widget {
    background:#fff; border:1px solid #e2e8f0;
    border-radius:14px; overflow:hidden;
    position:sticky; top:84px;
}
.news-widget + .news-widget { position:static; }
.news-widget-header {
    padding:14px 18px 12px; border-bottom:1px solid #f1f5f9;
    display:flex; align-items:center; justify-content:space-between;
}
.news-widget-header h4 { font-size:13px; font-weight:700; color:#1e293b; display:flex; align-items:center; gap:8px; margin:0; }
.news-widget-header h4 i { color:#2563eb; font-size:13px; }
.news-widget-body { padding:12px 16px 14px; }

/* Category filter list */
.news-cat-filter { display:flex; flex-direction:column; gap:2px; }
.news-cat-item {
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 10px; border-radius:8px; cursor:pointer;
    font-size:13px; font-weight:500; color:#64748b;
    transition:background .15s, color .15s;
}
.news-cat-item:hover { background:#f8fafc; color:#1e293b; }
.news-cat-item.active { background:#eff6ff; color:#2563eb; font-weight:600; }
.news-cat-item-left { display:flex; align-items:center; gap:8px; }
.news-cat-dot { width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.news-cat-count {
    font-size:11px; font-weight:700; background:#f1f5f9; color:#64748b;
    padding:1px 8px; border-radius:20px;
}
.news-cat-item.active .news-cat-count { background:#dbeafe; color:#2563eb; }

/* Recent items */
.news-recent-item {
    display:flex; gap:10px; padding:9px 0;
    border-bottom:1px solid #f1f5f9; cursor:pointer;
    transition:opacity .15s;
}
.news-recent-item:hover { opacity:.75; }
.news-recent-item:last-child { border-bottom:none; padding-bottom:0; }
.news-recent-date {
    font-size:10px; background:#eff6ff; color:#2563eb;
    padding:3px 8px; border-radius:6px; font-weight:700;
    flex-shrink:0; height:fit-content; white-space:nowrap;
}
.news-recent-item h5 { font-size:12.5px; font-weight:600; color:#1e293b; line-height:1.4; margin:0 0 2px; }
.news-recent-item p  { font-size:11px; color:#94a3b8; margin:0; }

/* Stats widget */
.news-stat-row {
    display:flex; align-items:center; justify-content:space-between;
    padding:8px 0; border-bottom:1px solid #f1f5f9;
    font-size:13px;
}
.news-stat-row:last-child { border-bottom:none; padding-bottom:0; }
.news-stat-label { color:#64748b; display:flex; align-items:center; gap:7px; }
.news-stat-value { font-weight:700; color:#1e293b; }

/* ─── Detail Panel (Baca Berita) ──────────────────────────────────────────── */
.news-detail-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.55);
    z-index:9200; display:flex; align-items:center; justify-content:center;
    padding:20px; animation:newsFadeIn .2s ease;
}
.news-detail-modal {
    background:#fff; border-radius:16px;
    width:100%; max-width:760px; max-height:92vh;
    display:flex; flex-direction:column; overflow:hidden;
    box-shadow:0 24px 60px rgba(0,0,0,.25);
    animation:newsSlideUp .25s ease;
}
@keyframes newsFadeIn  { from{opacity:0} to{opacity:1} }
@keyframes newsSlideUp { from{transform:translateY(28px);opacity:0} to{transform:translateY(0);opacity:1} }
.news-detail-header {
    padding:20px 24px 16px; border-bottom:1px solid #e2e8f0;
    background:#f8fafc;
}
.news-detail-header-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.news-detail-close {
    background:#fee2e2; border:none; border-radius:8px;
    width:34px; height:34px; color:#dc2626; font-size:16px;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:background .18s; flex-shrink:0;
}
.news-detail-close:hover { background:#dc2626; color:#fff; }
.news-detail-cat { margin-bottom:8px; }
.news-detail-title { font-size:18px; font-weight:800; color:#1e293b; margin:0 0 10px; line-height:1.35; }
.news-detail-meta { display:flex; gap:14px; flex-wrap:wrap; }
.news-detail-meta span { font-size:12px; color:#94a3b8; display:flex; align-items:center; gap:4px; }
.news-detail-body { flex:1; overflow-y:auto; padding:22px 24px; }

/* Konten HTML rich text di modal detail – TANPA white-space:pre-wrap */
.news-detail-content { font-size:14px; color:#374151; line-height:1.8; }
.news-detail-content h2 { font-size:1.25em; font-weight:800; margin:.6em 0 .3em; color:#0f172a; }
.news-detail-content h3 { font-size:1.1em;  font-weight:700; margin:.5em 0 .25em; color:#1e293b; }
.news-detail-content h4 { font-size:1em;    font-weight:700; margin:.4em 0 .2em; color:#334155; }
.news-detail-content p  { margin:.4em 0; line-height:1.75; }
.news-detail-content blockquote {
    border-left:4px solid #6366f1; margin:.6em 0;
    padding:.5em 1em; background:#f0f4ff; border-radius:0 8px 8px 0;
    color:#4338ca; font-style:italic;
}
.news-detail-content ul,
.news-detail-content ol  { padding-left:1.6em; margin:.5em 0; }
.news-detail-content li  { margin:.25em 0; line-height:1.65; }
.news-detail-content a   { color:#2563eb; text-decoration:underline; }
.news-detail-content a:hover { color:#1d4ed8; }
.news-detail-content strong { font-weight:700; }
.news-detail-content em     { font-style:italic; }

.news-detail-footer {
    padding:14px 24px; border-top:1px solid #e2e8f0;
    background:#f8fafc; display:flex; justify-content:flex-end;
}

/* ─── Admin CRUD Modal ────────────────────────────────────────────────────── */
.news-modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.52);
    z-index:9300; display:flex; align-items:center; justify-content:center;
    padding:20px; animation:newsFadeIn .2s ease;
}
.news-modal {
    background:#fff; border-radius:16px;
    width:100%; max-width:640px; max-height:92vh;
    display:flex; flex-direction:column; overflow:hidden;
    box-shadow:0 20px 60px rgba(0,0,0,.26);
    animation:newsSlideUp .25s ease;
}
.news-modal-header {
    padding:16px 20px; border-bottom:1px solid #e2e8f0;
    display:flex; align-items:center; justify-content:space-between;
    background:#f8fafc;
}
.news-modal-header h3 { font-size:15px; font-weight:700; margin:0; color:#1e293b; }
.news-modal-close {
    background:#fee2e2; border:none; border-radius:8px;
    width:32px; height:32px; color:#dc2626; font-size:15px;
    cursor:pointer; display:flex; align-items:center; justify-content:center;
    transition:background .18s;
}
.news-modal-close:hover { background:#dc2626; color:#fff; }
.news-modal-body {
    flex:1; overflow-y:auto; padding:18px 20px;
    display:flex; flex-direction:column; gap:14px;
}
.news-modal-footer {
    padding:14px 20px; border-top:1px solid #e2e8f0;
    display:flex; justify-content:flex-end; gap:10px;
    background:#f8fafc;
}

/* Form fields */
.nf { display:flex; flex-direction:column; gap:5px; }
.nf label { font-size:12.5px; font-weight:600; color:#374151; }
.nf .req  { color:#ef4444; }
.nf input[type="text"], .nf input[type="datetime-local"],
.nf select, .nf textarea {
    border:1px solid #d1d5db; border-radius:8px;
    padding:9px 12px; font-size:13px; color:#1e293b;
    outline:none; font-family:inherit; width:100%; box-sizing:border-box;
    transition:border-color .2s, box-shadow .2s;
}
.nf input:focus, .nf select:focus, .nf textarea:focus {
    border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.nf textarea { resize:vertical; min-height:130px; }
.nf .field-hint { font-size:11.5px; color:#94a3b8; }
.nf-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.nf-toggle-row {
    display:flex; align-items:center; justify-content:space-between;
    background:#f8fafc; border:1px solid #e2e8f0; border-radius:10px;
    padding:10px 14px;
}
.nf-toggle-row label { font-size:13px; font-weight:600; color:#374151; cursor:pointer; }
.nf-toggle { position:relative; display:inline-block; width:46px; height:24px; }
.nf-toggle input { opacity:0; width:0; height:0; }
.nf-toggle-slider {
    position:absolute; inset:0; background:#cbd5e1;
    border-radius:24px; cursor:pointer; transition:background .3s;
}
.nf-toggle-slider::before {
    content:''; position:absolute; height:18px; width:18px;
    left:3px; bottom:3px; background:#fff; border-radius:50%;
    transition:transform .3s; box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.nf-toggle input:checked + .nf-toggle-slider { background:#2563eb; }
.nf-toggle input:checked + .nf-toggle-slider::before { transform:translateX(22px); }

/* Modal buttons */
.btn-news-save {
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff; border:none; border-radius:10px;
    padding:10px 24px; font-size:14px; font-weight:600;
    cursor:pointer; transition:opacity .2s;
}
.btn-news-save:hover { opacity:.88; }
.btn-news-save:disabled { opacity:.5; cursor:not-allowed; }
.btn-news-cancel {
    background:#f1f5f9; color:#64748b; border:none;
    border-radius:10px; padding:10px 20px;
    font-size:14px; cursor:pointer; transition:background .2s;
}
.btn-news-cancel:hover { background:#e2e8f0; }

/* Delete modal */
.news-delete-content { text-align:center; padding:6px 0; }
.news-delete-icon {
    width:58px; height:58px; background:#fee2e2; border-radius:50%;
    margin:0 auto 14px; display:flex; align-items:center;
    justify-content:center; font-size:24px; color:#dc2626;
}
.news-delete-content h4 { font-size:16px; font-weight:700; margin:0 0 6px; color:#1e293b; }
.news-delete-content p  { font-size:13px; color:#64748b; margin:0 0 4px; }
.news-delete-name {
    display:inline-block; background:#fee2e2; color:#dc2626;
    font-weight:600; padding:3px 14px; border-radius:20px;
    font-size:13px; margin-top:6px; max-width:380px;
    overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.btn-news-del-confirm {
    background:linear-gradient(135deg,#dc2626,#b91c1c);
    color:#fff; border:none; border-radius:10px;
    padding:10px 24px; font-size:14px; font-weight:600;
    cursor:pointer; transition:opacity .2s;
}
.btn-news-del-confirm:hover { opacity:.88; }
.btn-news-del-confirm:disabled { opacity:.5; cursor:not-allowed; }

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.news-empty {
    text-align:center; padding:60px 20px; color:#94a3b8;
}
.news-empty i { font-size:48px; display:block; margin-bottom:12px; }
.news-empty p { font-size:14px; margin:0; }

/* ─── Toast ───────────────────────────────────────────────────────────────── */
#newsToast {
    position:fixed; bottom:24px; right:24px; z-index:9999;
    background:#1e293b; color:#fff; padding:12px 20px;
    border-radius:10px; display:none; align-items:center; gap:10px;
    font-size:14px; box-shadow:0 4px 24px rgba(0,0,0,.3);
}
@keyframes newsSlideInToast {
    from{transform:translateX(60px);opacity:0} to{transform:translateX(0);opacity:1}
}

/* ─── Page Loader ─────────────────────────────────────────────────────────── */
#newsLoader {
    position:fixed; inset:0; background:rgba(255,255,255,.88);
    z-index:9000; display:none; flex-direction:column;
    align-items:center; justify-content:center;
    gap:14px; font-size:14px; color:#64748b;
}
#newsLoader .n-spinner {
    width:44px; height:44px; border:4px solid #e2e8f0;
    border-top-color:#2563eb; border-radius:50%;
    animation:nSpin .8s linear infinite;
}
@keyframes nSpin { to{transform:rotate(360deg)} }
.hidden { display:none !important; }

/* ══════════════════════════════════════════════════════════════
   RICH TEXT EDITOR
══════════════════════════════════════════════════════════════ */
.rte-wrap {
    border:1px solid #d1d5db; border-radius:10px;
    overflow:hidden; background:#fff;
    transition:border-color .2s, box-shadow .2s;
}
.rte-wrap:focus-within {
    border-color:#2563eb; box-shadow:0 0 0 3px rgba(37,99,235,.1);
}

/* Toolbar */
.rte-toolbar {
    display:flex; flex-wrap:wrap; align-items:center; gap:3px;
    padding:7px 10px; background:#f8fafc;
    border-bottom:1px solid #e2e8f0;
}
.rte-group { display:flex; align-items:center; gap:2px; }
.rte-divider {
    width:1px; height:22px; background:#e2e8f0; margin:0 4px; flex-shrink:0;
}

/* Toolbar buttons */
.rte-btn {
    min-width:30px; height:28px; padding:0 7px;
    border:1px solid transparent; border-radius:6px;
    background:transparent; color:#374151;
    cursor:pointer; font-size:13px; font-family:inherit;
    display:flex; align-items:center; justify-content:center; gap:4px;
    transition:background .14s, border-color .14s, color .14s;
    white-space:nowrap;
}
.rte-btn:hover   { background:#e0e7ff; color:#4338ca; border-color:#c7d2fe; }
.rte-btn.active  { background:#dbeafe; color:#1d4ed8; border-color:#93c5fd; font-weight:700; }
.rte-btn-danger:hover { background:#fee2e2; color:#dc2626; border-color:#fca5a5; }

/* Font-size / formatBlock selects */
.rte-font-size {
    height:28px; border:1px solid #e2e8f0; border-radius:6px;
    padding:0 6px; font-size:12px; color:#374151; background:#fff;
    cursor:pointer; outline:none; font-family:inherit;
    transition:border-color .2s;
}
.rte-font-size:focus { border-color:#2563eb; }

/* Color pickers */
.rte-color-btn {
    min-width:30px; height:28px; padding:0 7px;
    border:1px solid transparent; border-radius:6px;
    background:transparent; color:#374151; cursor:pointer;
    display:flex; align-items:center; justify-content:center; gap:3px;
    font-size:13px; font-weight:700; transition:background .14s;
    position:relative; overflow:hidden;
}
.rte-color-btn:hover { background:#e0e7ff; border-color:#c7d2fe; }
.rte-color-input {
    position:absolute; inset:0; opacity:0; cursor:pointer;
    width:100%; height:100%; border:none; padding:0; margin:0;
}

/* Editable body */
.rte-body {
    min-height:200px; max-height:360px; overflow-y:auto;
    padding:14px 16px; font-size:14px; color:#1e293b;
    line-height:1.75; outline:none;
    font-family:'Inter', sans-serif;
}
.rte-body:empty::before {
    content:attr(data-placeholder);
    color:#94a3b8; pointer-events:none;
}

/* Styles inside editor */
.rte-body h2 { font-size:1.35em; font-weight:800; margin:.5em 0 .3em; color:#0f172a; }
.rte-body h3 { font-size:1.15em; font-weight:700; margin:.5em 0 .25em; color:#1e293b; }
.rte-body h4 { font-size:1em;    font-weight:700; margin:.4em 0 .2em; color:#334155; }
.rte-body p  { margin:.3em 0; }
.rte-body blockquote {
    border-left:4px solid #6366f1; margin:.5em 0;
    padding:.4em .8em; background:#f0f4ff; border-radius:0 8px 8px 0;
    color:#4338ca; font-style:italic;
}
.rte-body ul, .rte-body ol { padding-left:1.6em; margin:.4em 0; }
.rte-body li { margin:.2em 0; }
.rte-body a  { color:#2563eb; text-decoration:underline; }
.rte-body a:hover { color:#1d4ed8; }

/* ══════════════════════════════════════════════════════════════
   LAMPIRAN FILE – EDITOR FORM
══════════════════════════════════════════════════════════════ */
.att-wrap { display:flex; flex-direction:column; gap:8px; }
.att-url-row {
    display:flex; gap:6px; align-items:center;
}
.att-url-row input { flex:1; }
.att-clear-btn {
    width:34px; height:36px; border:1px solid #fca5a5; border-radius:8px;
    background:#fee2e2; color:#dc2626; cursor:pointer; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:14px;
    transition:background .15s;
}
.att-clear-btn:hover { background:#dc2626; color:#fff; }

.att-preview { margin-top:2px; }
.att-chip {
    display:inline-flex; align-items:center; gap:8px;
    background:#eff6ff; border:1px solid #bfdbfe;
    border-radius:8px; padding:7px 12px;
    font-size:12.5px; color:#1d4ed8; max-width:100%;
}
.att-chip i { font-size:14px; color:#3b82f6; flex-shrink:0; }
.att-chip span { flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.att-chip-link {
    font-size:11.5px; font-weight:600; color:#1d4ed8;
    text-decoration:none; white-space:nowrap; flex-shrink:0;
    padding:3px 8px; background:#dbeafe; border-radius:6px;
    transition:background .15s;
}
.att-chip-link:hover { background:#2563eb; color:#fff; }

/* ══════════════════════════════════════════════════════════════
   LAMPIRAN FILE – TAMPILAN DETAIL BERITA
══════════════════════════════════════════════════════════════ */
#newsDetailAttachment { margin-top:16px; }
.nd-att-box {
    display:flex; align-items:center; gap:14px;
    background:#f8fafc; border:1.5px solid #e2e8f0;
    border-radius:12px; padding:14px 18px;
    transition:border-color .2s, box-shadow .2s;
}
.nd-att-box:hover { border-color:#6366f1; box-shadow:0 4px 16px rgba(99,102,241,.1); }
.nd-att-icon {
    width:44px; height:44px; border-radius:10px; flex-shrink:0;
    display:flex; align-items:center; justify-content:center; font-size:20px;
}
.nd-att-info { flex:1; display:flex; flex-direction:column; gap:2px; overflow:hidden; }
.nd-att-label { font-size:11px; font-weight:600; color:#94a3b8; text-transform:uppercase; letter-spacing:.5px; }
.nd-att-name  { font-size:13.5px; font-weight:700; color:#1e293b; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nd-att-btn {
    display:flex; align-items:center; gap:7px; flex-shrink:0;
    background:linear-gradient(135deg,#6366f1,#4f46e5);
    color:#fff; text-decoration:none;
    padding:9px 18px; border-radius:9px;
    font-size:13px; font-weight:600;
    transition:opacity .2s;
}
.nd-att-btn:hover { opacity:.88; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .news-layout { grid-template-columns:1fr; }
    .news-widget { position:static !important; }
}
@media (max-width: 600px) {
    .nf-row { grid-template-columns:1fr; }
    .news-featured-banner { padding:20px 18px 16px; }
    .news-featured-body, .news-featured-footer { padding-left:18px; padding-right:18px; }
    .news-modal { max-height:96vh; }
    .rte-toolbar { gap:2px; }
    .nd-att-btn { padding:8px 12px; font-size:12px; }
}
