/*
Theme Name: Nomina Mirip
Theme URI: https://example.com/nomina-mirip
Author: Nomina Mirip
Author URI: https://example.com
Description: Theme portal berita original dengan tampilan terinspirasi theme Nomina — header putih, navigasi biru, headline slider, blok kategori, dan widget khas portal berita Indonesia (trending, cuaca BMKG, jadwal sholat, kurs dollar & emas, harga BBM). Mobile-first dan responsif.
Version: 1.0.1
Requires at least: 5.7
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nomina-mirip
Tags: news, portal-berita, blog, responsive, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   NOMINA MIRIP — stylesheet utama (ditulis dari nol)
   Mobile-first: gaya dasar untuk layar kecil, lalu diperluas
   pada breakpoint 768px dan 992px.
   ============================================================ */

/* ---------- Token desain ---------- */
:root {
    --nm-nav: #0673b8;        /* biru bilah navigasi */
    --nm-nav-dark: #055a91;   /* biru nav saat hover */
    --nm-accent: #f51700;     /* merah: tombol HOME, ticker, aksen */
    --nm-search: #21409a;     /* biru tua tombol cari */
    --nm-header-bg: #ffffff;  /* latar header atas */
    --nm-header-text: #1a1a1a;
    --nm-ink: #1a1a1a;
    --nm-body: #333333;
    --nm-muted: #777777;
    --nm-line: #e5e8ec;
    --nm-card: #f6f9fc;       /* biru muda kartu trending */
    --nm-footer-a: #0a2a6b;   /* gradasi footer: biru tua */
    --nm-footer-b: #0673b8;   /* gradasi footer: biru terang */
    --nm-wa: #25d366;         /* hijau tombol WhatsApp */
    --nm-radius: 8px;
    --nm-font: 'Poppins', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Dasar ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
    max-width: 100%;
    overflow-x: hidden;       /* halaman tidak boleh geser ke samping */
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--nm-font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--nm-body);
    background: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: var(--nm-nav); text-decoration: none; }
a:hover { color: var(--nm-accent); }

h1, h2, h3, h4 { color: var(--nm-ink); line-height: 1.35; margin: 0 0 12px; }
p { margin: 0 0 14px; }

.nm-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

.screen-reader-text {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Header atas (putih) ---------- */
.nm-top-header {
    background: var(--nm-header-bg);
    color: var(--nm-header-text);
    padding: 14px 0;
    border-bottom: 1px solid var(--nm-line);
}

.nm-top-header .nm-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

/* Logo: lingkaran merah "N" + teks biru */
.nm-logo { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.nm-logo-mark {
    flex: 0 0 auto;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--nm-accent); color: #fff;
    font-size: 26px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.nm-logo-text { line-height: 1.15; min-width: 0; }
.nm-logo-name {
    font-size: 22px; font-weight: 800; letter-spacing: .3px;
    color: var(--nm-search);
    text-transform: uppercase; white-space: nowrap;
}
.nm-logo-name a { color: var(--nm-search); }
.nm-logo-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
    color: var(--nm-nav); text-transform: uppercase;
}
.nm-logo img { max-height: 52px; width: auto; }

/* Pencarian header */
.nm-header-search { display: flex; align-items: center; gap: 12px; flex: 1 1 100%; order: 3; flex-wrap: wrap; }
.nm-search-form { display: flex; flex: 1 1 100%; }
.nm-search-form input[type="search"] {
    flex: 1 1 auto; min-width: 0;
    height: 40px; padding: 0 12px;
    border: 1px solid #cfd8e3; border-right: 0;
    border-radius: 6px 0 0 6px;
    font-family: inherit; font-size: 14px; background: #fff; color: var(--nm-ink);
}
.nm-search-form input[type="search"]:focus { outline: 2px solid var(--nm-nav); outline-offset: -1px; }
.nm-search-form button {
    flex: 0 0 auto; width: 46px; height: 40px;
    border: 0; border-radius: 0 6px 6px 0;
    background: var(--nm-search); color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.nm-search-form button:hover { background: var(--nm-nav); }
.nm-search-form button svg { width: 18px; height: 18px; fill: #fff; }

/* Ikon sosial bulat berwarna */
.nm-social { display: flex; gap: 7px; align-items: center; }
.nm-social a {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; flex: 0 0 auto;
}
.nm-social a svg { width: 16px; height: 16px; fill: #fff; }
.nm-social a:hover { opacity: .85; transform: translateY(-1px); }
.nm-social .soc-fb { background: #1877f2; }
.nm-social .soc-x  { background: #000; }
.nm-social .soc-ig { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); }
.nm-social .soc-yt { background: #ff0000; }
.nm-social .soc-wa { background: #25d366; }
.nm-social .soc-tt { background: #000; }
.nm-social .soc-li { background: #0a66c2; }

/* ---------- Bilah navigasi (biru, sticky) ---------- */
.nm-mainnav {
    background: var(--nm-nav);
    position: sticky; top: 0; z-index: 900;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.nm-mainnav .nm-container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 48px; padding-left: 0; padding-right: 0;
}
.nm-menu { list-style: none; margin: 0; padding: 0; display: none; }
.nm-menu a {
    display: block; color: #fff; font-weight: 700;
    font-size: 13px; letter-spacing: .4px; text-transform: uppercase;
    padding: 14px 13px; white-space: nowrap;
}
.nm-menu a:hover, .nm-menu .current-menu-item > a { background: var(--nm-nav-dark); color: #fff; }
.nm-menu > li:first-child > a { background: var(--nm-accent); }
.nm-menu > li:first-child > a:hover { background: #d41200; }
.nm-menu .menu-item-has-children { position: relative; }
.nm-menu .sub-menu {
    list-style: none; margin: 0; padding: 0;
    display: none; background: var(--nm-nav-dark);
}
.nm-menu .sub-menu a { padding: 12px 16px; font-size: 12px; text-transform: none; }
.nm-menu .sub-open > .sub-menu { display: block; }
.nm-sub-toggle {
    background: transparent; border: 0; color: #fff; cursor: pointer;
    padding: 10px 12px; font-size: 14px; line-height: 1;
}

/* Tombol hamburger */
.nm-menu-toggle {
    display: flex; align-items: center; gap: 9px;
    background: transparent; border: 0; color: #fff; cursor: pointer;
    min-height: 48px; padding: 0 15px; font-family: inherit;
    font-size: 14px; font-weight: 700; text-transform: uppercase;
}
.nm-menu-toggle .nm-burger { display: block; width: 22px; }
.nm-menu-toggle .nm-burger span {
    display: block; height: 3px; background: #fff; margin: 4px 0; border-radius: 2px;
}
.nm-mainnav.nav-open .nm-menu {
    display: block; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--nm-nav); border-top: 1px solid rgba(255, 255, 255, .2);
    max-height: calc(100vh - 48px); overflow-y: auto;
}
.nm-mainnav.nav-open .nm-menu a { padding-top: 12px; padding-bottom: 12px; min-height: 44px; display: flex; align-items: center; }
.nm-mainnav.nav-open .nm-menu .sub-menu { background: rgba(0, 0, 0, .18); }
.nm-mainnav.nav-open .nm-menu li { border-bottom: 1px solid rgba(255, 255, 255, .12); }

/* ---------- Ticker berita berjalan ---------- */
.nm-ticker {
    background: #fff; border-bottom: 1px solid var(--nm-line);
    display: flex; align-items: stretch; overflow: hidden;
}
.nm-ticker-label {
    flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
    position: relative; z-index: 2;
    background: var(--nm-accent); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 8px 12px;
}
.nm-ticker-label .nm-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    animation: nm-blink 1.2s infinite;
}
@keyframes nm-blink { 50% { opacity: .25; } }
/* Viewport penjepit: teks ticker terpotong di tepi kanan label TERKINI,
   tidak pernah bisa menggeser ke atas label. */
.nm-ticker-viewport {
    flex: 1 1 auto; min-width: 0;
    overflow: hidden;
    display: flex; align-items: center;
}
.nm-ticker-track {
    display: flex; align-items: center; gap: 0;
    flex: 0 0 auto; width: max-content;
    white-space: nowrap;
    animation: nm-ticker 45s linear infinite;
    padding-left: 12px;
}
.nm-ticker:hover .nm-ticker-track { animation-play-state: paused; }
.nm-ticker-track a { color: var(--nm-ink); font-size: 13px; font-weight: 600; margin-right: 48px; }
.nm-ticker-track a:hover { color: var(--nm-accent); }
@keyframes nm-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .nm-ticker-track { animation: none; }
    .nm-ticker-label .nm-dot { animation: none; }
}

/* ---------- Slot iklan ---------- */
.nm-ad { margin: 18px auto; text-align: center; }
.nm-ad-slot {
    display: flex; align-items: center; justify-content: center;
    min-height: 90px; background: #eef2f6; border: 1px dashed #b9c6d3;
    color: #8a97a5; font-size: 12px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; border-radius: var(--nm-radius);
    max-width: 728px; margin: 0 auto; padding: 10px;
}
.nm-ad img { margin: 0 auto; }

/* ---------- Layout utama ---------- */
.nm-main { padding: 18px 0 30px; }
.nm-layout { display: flex; flex-direction: column; gap: 26px; }
.nm-content { min-width: 0; flex: 1 1 auto; }
.nm-sidebar { min-width: 0; flex: 0 0 auto; }

/* Kolom teks di baris flex harus boleh mengecil (min-width: 0),
   kalau tidak kata terpanjang mendorong kartu meluber di HP. */
.nm-mini > div, .nm-cat-list li > div, .nm-latest-list li > div, .nm-trending li > div { min-width: 0; }
.nm-mini h3, .nm-cat-list h4, .nm-latest-list h3, .nm-trending h4 { overflow-wrap: break-word; }

/* ---------- Headline slider ---------- */
.nm-slider { position: relative; border-radius: var(--nm-radius); overflow: hidden; background: #0d1b2a; }
.nm-slides { position: relative; }
.nm-slide { display: none; position: relative; }
.nm-slide.is-active { display: block; }
.nm-slide-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #123; }
.nm-slide-media img { width: 100%; height: 100%; object-fit: cover; }
.nm-slide-cap {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 34px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
    color: #fff;
}
.nm-slide-cap .nm-cat {
    display: inline-block; background: var(--nm-accent); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 9px; border-radius: 3px; margin-bottom: 7px;
}
.nm-slide-cap h2 { font-size: 19px; margin: 0 0 5px; color: #fff; }
.nm-slide-cap h2 a { color: #fff; }
.nm-slide-cap h2 a:hover { color: #ffd9d4; }
.nm-slide-meta { font-size: 12px; color: #d7dee6; }
.nm-slide-nav {
    position: absolute; top: 38%; z-index: 5;
    width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.nm-slide-nav:hover { background: var(--nm-accent); }
.nm-slide-prev { left: 10px; }
.nm-slide-next { right: 10px; }
.nm-slide-dots {
    position: absolute; bottom: 10px; right: 12px; z-index: 5;
    display: flex; gap: 6px;
}
.nm-slide-dots button {
    width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0;
    background: rgba(255, 255, 255, .55); cursor: pointer;
}
.nm-slide-dots button.is-active { background: var(--nm-accent); width: 22px; border-radius: 5px; }

/* Headline kecil di bawah slider: 1 kolom di HP kecil supaya judul
   tidak terpotong kata, 2 kolom mulai 600px, 4 kolom di tablet. */
.nm-headline-minis {
    display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px;
}
.nm-mini { display: flex; gap: 10px; min-width: 0; }
.nm-mini-thumb { flex: 0 0 92px; width: 92px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e8edf2; }
.nm-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-mini h3 { font-size: 13px; margin: 0; line-height: 1.4; }
.nm-mini h3 a { color: var(--nm-ink); }
.nm-mini h3 a:hover { color: var(--nm-accent); }
.nm-mini .nm-date { font-size: 11px; color: var(--nm-muted); margin-top: 3px; }

/* ---------- Judul seksi ---------- */
.nm-section { margin-top: 30px; }
.nm-section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 19px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
    color: var(--nm-ink); margin: 0 0 16px;
    border-bottom: 2px solid var(--nm-line); padding-bottom: 9px;
}
.nm-section-title::before {
    content: ''; flex: 0 0 auto; width: 26px; height: 4px;
    background: var(--nm-accent); border-radius: 2px;
}
.nm-section-title a { color: var(--nm-ink); }
.nm-section-title a:hover { color: var(--nm-accent); }
.nm-section-title .nm-more {
    margin-left: auto; font-size: 12px; font-weight: 700; color: var(--nm-nav);
    text-transform: none; letter-spacing: 0;
}

/* ---------- Blok kategori: 1 besar + 4 kecil ---------- */
.nm-cat-block { margin-top: 30px; }
.nm-cat-lead { margin-bottom: 14px; }
.nm-cat-lead .nm-thumb { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--nm-radius); background: #e8edf2; }
.nm-cat-lead .nm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.nm-cat-lead:hover .nm-thumb img { transform: scale(1.04); }
.nm-cat-lead h3 { font-size: 17px; margin: 10px 0 4px; }
.nm-cat-lead h3 a { color: var(--nm-ink); }
.nm-cat-lead h3 a:hover { color: var(--nm-accent); }
.nm-cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nm-cat-list li { display: flex; gap: 11px; min-width: 0; }
.nm-cat-list .nm-thumb { flex: 0 0 104px; width: 104px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e8edf2; }
.nm-cat-list .nm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-cat-list h4 { font-size: 14px; margin: 0; line-height: 1.4; }
.nm-cat-list h4 a { color: var(--nm-ink); }
.nm-cat-list h4 a:hover { color: var(--nm-accent); }
.nm-date { font-size: 12px; color: var(--nm-muted); }
.nm-cat-tag {
    display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .6px;
    text-transform: uppercase; color: var(--nm-accent); margin-bottom: 3px;
}

/* ---------- Daftar berita terkini ---------- */
.nm-latest-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.nm-latest-list li { display: flex; gap: 12px; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--nm-line); }
.nm-latest-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nm-latest-list .nm-thumb { flex: 0 0 110px; width: 110px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: #e8edf2; }
.nm-latest-list .nm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nm-latest-list h3 { font-size: 15px; margin: 0 0 4px; }
.nm-latest-list h3 a { color: var(--nm-ink); }
.nm-latest-list h3 a:hover { color: var(--nm-accent); }
.nm-excerpt { font-size: 13px; color: #555; margin: 4px 0 0; }

/* ---------- Grid berita ---------- */
.nm-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.nm-card {
    background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.nm-card:hover { transform: translateY(-4px); border-color: var(--nm-nav); box-shadow: 0 10px 22px rgba(6, 115, 184, .14); }
.nm-card .nm-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #e8edf2; }
.nm-card .nm-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.nm-card:hover .nm-thumb img { transform: scale(1.05); }
.nm-card-body { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1 1 auto; }
.nm-card-body h3 { font-size: 16px; margin: 0 0 6px; }
.nm-card-body h3 a { color: var(--nm-ink); }
.nm-card-body h3 a:hover { color: var(--nm-accent); }
.nm-card-body .nm-excerpt { flex: 1 1 auto; }
.nm-readmore {
    margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--nm-nav);
    border-bottom: 2px solid var(--nm-accent); align-self: flex-start; padding-bottom: 1px;
}
.nm-readmore:hover { color: var(--nm-accent); }

/* ---------- Sidebar & widget ---------- */
.nm-widget { margin-bottom: 26px; min-width: 0; }
.nm-widget-title {
    font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
    color: var(--nm-ink); margin: 0 0 12px;
    border-bottom: 2px solid var(--nm-accent); padding-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
}
.nm-widget-title::before { content: ''; width: 20px; height: 4px; background: var(--nm-nav); border-radius: 2px; }

/* Trending bernomor */
.nm-trending { background: var(--nm-card); border-radius: var(--nm-radius); padding: 14px; }
.nm-trending ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.nm-trending li { display: flex; gap: 11px; align-items: flex-start; min-width: 0; }
.nm-trending .nm-rank {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 6px;
    background: var(--nm-nav); color: #fff; font-weight: 800; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.nm-trending li:nth-child(-n+3) .nm-rank { background: var(--nm-accent); }
.nm-trending h4 { font-size: 13px; margin: 0; line-height: 1.4; }
.nm-trending h4 a { color: var(--nm-ink); }
.nm-trending h4 a:hover { color: var(--nm-accent); }

/* Widget data (cuaca, sholat, kurs, BBM, skor) */
.nm-data-box { border: 1px solid var(--nm-line); border-radius: var(--nm-radius); overflow: hidden; }
.nm-data-head {
    background: var(--nm-nav); color: #fff; font-weight: 700; font-size: 13px;
    padding: 9px 13px; display: flex; justify-content: space-between; gap: 8px;
}
.nm-data-head small { font-weight: 400; opacity: .85; }
.nm-data-body { padding: 12px 13px; font-size: 14px; }
.nm-data-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 7px 0; border-bottom: 1px dashed var(--nm-line); min-width: 0;
}
.nm-data-row:last-child { border-bottom: 0; }
.nm-data-row b { font-weight: 700; color: var(--nm-ink); }
.nm-data-row .nm-val { font-weight: 700; color: var(--nm-nav); white-space: nowrap; }
.nm-data-note { font-size: 12px; color: var(--nm-muted); margin-top: 8px; }
.nm-data-empty { color: var(--nm-muted); font-size: 13px; }
.nm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nm-table-wrap table { width: 100%; min-width: 280px; border-collapse: collapse; font-size: 13px; }
.nm-table-wrap th, .nm-table-wrap td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--nm-line); }
.nm-table-wrap th { background: var(--nm-card); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.nm-badge {
    display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px;
    border-radius: 999px; background: #e3f2fb; color: var(--nm-nav);
}
.nm-badge-live { background: var(--nm-accent); color: #fff; }

/* ---------- Footer ---------- */
.nm-footer {
    background: linear-gradient(135deg, var(--nm-footer-a), var(--nm-footer-b));
    color: #dbe7f3; border-top: 3px solid var(--nm-accent);
    padding: 34px 0 0; font-size: 14px;
}
.nm-footer a { color: #fff; }
.nm-footer a:hover { color: #ffd9d4; }
.nm-footer-cols { display: grid; grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
.nm-footer .nm-logo-name { color: #fff; }
.nm-footer .nm-logo-tag { color: #bcd8ee; }
.nm-footer h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.nm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.nm-footer .nm-social { margin-top: 14px; }
.nm-network { border-top: 1px solid rgba(255, 255, 255, .25); padding: 14px 0; text-align: center; font-size: 12px; letter-spacing: 1px; }
.nm-network b { color: #fff; letter-spacing: 2px; }
.nm-network a { color: #cfe2f3; margin: 0 5px; }
.nm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .25);
    padding: 14px 0 18px; text-align: center; font-size: 12px; color: #bcd8ee;
}
.nm-footer-menu { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.nm-footer-menu a { color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

/* ---------- Tombol mengambang ---------- */
.nm-wa-float {
    position: fixed; right: 14px; bottom: 14px; z-index: 950;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--nm-wa); color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.nm-wa-float svg { width: 28px; height: 28px; fill: #fff; }
.nm-wa-float:hover { transform: scale(1.07); }
.nm-to-top {
    position: fixed; right: 16px; bottom: 78px; z-index: 950;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--nm-nav); color: #fff; font-size: 18px;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
}
.nm-to-top.is-show { display: flex; }
.nm-to-top:hover { background: var(--nm-accent); }

/* ---------- Banner halaman, single, arsip ---------- */
.nm-page-banner { background: var(--nm-card); border-bottom: 1px solid var(--nm-line); padding: 22px 0; margin-bottom: 22px; }
.nm-page-banner h1 { font-size: 24px; margin: 0 0 4px; }
.nm-page-banner p { margin: 0; color: var(--nm-muted); font-size: 14px; }
.nm-single h1.nm-single-title { font-size: 24px; margin: 0 0 10px; }
.nm-single-meta { font-size: 13px; color: var(--nm-muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.nm-single-meta a { color: var(--nm-nav); font-weight: 600; }
.nm-single-thumb { margin-bottom: 20px; border-radius: var(--nm-radius); overflow: hidden; }
.nm-single-content { font-size: 15.5px; line-height: 1.8; }
.nm-single-content h2 { font-size: 21px; margin: 28px 0 12px; }
.nm-single-content h3 { font-size: 18px; margin: 24px 0 10px; }
.nm-single-content img { border-radius: var(--nm-radius); margin: 14px 0; }
.nm-single-content blockquote { border-left: 4px solid var(--nm-accent); background: var(--nm-card); padding: 12px 18px; margin: 20px 0; font-style: italic; }
.nm-tags { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--nm-line); }
.nm-tags a {
    display: inline-block; background: #eef2f6; color: var(--nm-ink);
    padding: 5px 13px; border-radius: 999px; font-size: 12px; margin: 0 7px 7px 0;
}
.nm-tags a:hover { background: var(--nm-nav); color: #fff; }
.nm-post-nav {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--nm-line);
}
.nm-post-nav a { font-weight: 700; color: var(--nm-ink); font-size: 14px; }
.nm-post-nav a:hover { color: var(--nm-accent); }
.nm-post-nav small { display: block; font-size: 11px; color: var(--nm-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Komentar */
.nm-comments { margin-top: 34px; }
.nm-comments h3 { font-size: 18px; }
.comment-list { list-style: none; margin: 0 0 22px; padding: 0; }
.comment-list .comment { border: 1px solid var(--nm-line); border-radius: var(--nm-radius); padding: 14px 16px; margin-bottom: 12px; }
.comment-list .children { list-style: none; margin: 12px 0 0; padding-left: 16px; }
.comment-author { font-weight: 700; font-size: 14px; }
.comment-meta { font-size: 12px; color: var(--nm-muted); margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 6px;
    font-family: inherit; font-size: 14px; margin-bottom: 10px;
}
.comment-form .submit, .nm-btn {
    display: inline-block; background: var(--nm-nav); color: #fff; border: 0; border-radius: 999px;
    padding: 11px 24px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.comment-form .submit:hover, .nm-btn:hover { background: var(--nm-accent); color: #fff; }

/* Pagination */
.nm-pagination { margin-top: 30px; text-align: center; }
.nm-pagination .page-numbers {
    display: inline-block; padding: 8px 14px; margin: 0 3px; border-radius: 6px;
    background: #eef2f6; color: var(--nm-ink); font-weight: 700; font-size: 14px;
}
.nm-pagination .page-numbers.current, .nm-pagination .page-numbers:hover { background: var(--nm-nav); color: #fff; }

/* Hasil kosong / 404 */
.nm-empty { text-align: center; padding: 40px 0; }
.nm-empty .nm-big { font-size: 64px; font-weight: 800; color: var(--nm-nav); line-height: 1; margin-bottom: 8px; }

/* ---------- Submenu toggle (khusus mobile, target sentuh 44px) ---------- */
.nm-menu li { position: relative; }
.nm-menu .menu-item-has-children > a { padding-right: 48px; }
.nm-sub-toggle {
    position: absolute; right: 0; top: 0;
    min-width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- Breakpoint 480px ---------- */
@media (min-width: 480px) {
    .nm-slide-cap h2 { font-size: 22px; }
    .nm-cat-list { grid-template-columns: 1fr 1fr; }
}

/* ---------- Breakpoint 600px ---------- */
@media (min-width: 600px) {
    .nm-headline-minis { grid-template-columns: 1fr 1fr; }
}

/* ---------- Breakpoint 768px ---------- */
@media (min-width: 768px) {
    body { font-size: 16px; }
    .nm-top-header { padding: 18px 0; }
    .nm-header-search { flex: 0 1 auto; order: 0; margin-left: auto; flex-wrap: nowrap; }
    .nm-search-form { flex: 1 1 auto; max-width: 320px; }
    .nm-logo-name { font-size: 26px; }
    .nm-logo-mark { width: 52px; height: 52px; font-size: 30px; }
    .nm-slide-cap { padding: 44px 22px 18px; }
    .nm-slide-cap h2 { font-size: 26px; }
    .nm-grid { grid-template-columns: 1fr 1fr; }
    .nm-headline-minis { grid-template-columns: repeat(4, 1fr); }
    .nm-mini { flex-direction: column; }
    .nm-mini-thumb { flex-basis: auto; width: 100%; aspect-ratio: 16 / 10; }
    .nm-cat-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
    .nm-cat-list { grid-template-columns: 1fr; }
    .nm-single h1.nm-single-title { font-size: 30px; }
    .nm-page-banner h1 { font-size: 28px; }
    .nm-post-nav { flex-direction: row; justify-content: space-between; }
    .nm-post-nav .nm-next { text-align: right; }
    .nm-footer-cols { grid-template-columns: 1.2fr 1fr 1fr; }
    .nm-wa-float { width: 56px; height: 56px; right: 20px; bottom: 20px; }
    .nm-to-top { bottom: 88px; }
}

/* ---------- Breakpoint 992px: menu desktop + sidebar ---------- */
@media (min-width: 992px) {
    .nm-menu-toggle { display: none; }
    .nm-sub-toggle { display: none; }
    .nm-menu .menu-item-has-children > a { padding-right: 14px; }
    .nm-menu { display: flex; align-items: stretch; }
    .nm-menu > li { display: flex; align-items: stretch; }
    .nm-menu > li > a { display: flex; align-items: center; padding: 14px 14px; }
    .nm-menu .sub-menu {
        position: absolute; top: 100%; left: 0; min-width: 210px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .25); z-index: 950;
    }
    .nm-menu li:hover > .sub-menu, .nm-menu li:focus-within > .sub-menu { display: block; }
    .nm-layout { flex-direction: row; align-items: flex-start; }
    .nm-sidebar { flex: 0 0 320px; width: 320px; }
    .nm-grid { grid-template-columns: repeat(3, 1fr); }
    .nm-slide-cap h2 { font-size: 30px; }
    .nm-section-title { font-size: 21px; }
}