/*
Theme Name: NewsProMaxim Indonesia
Theme URI: https://example.com/newspro-maxim-indonesia
Author: NewsProMaxim Team
Author URI: https://example.com
Description: Tema portal berita profesional modern, ringan, SEO-friendly, dan responsif untuk website berita lokal, regional, maupun nasional. Dilengkapi Breaking News, Featured News, Trending, area iklan AdSense, Schema SEO, dan Customizer lengkap.
Version: 2.0.3
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: newspro-maxim
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, translation-ready, block-styles, wide-blocks

NewsProMaxim Indonesia - Portal Berita Online Profesional
*/

/* ============================================
   CSS VARIABLES / CUSTOM PROPERTIES
   ============================================ */
:root {
  --npm-primary: #c41e3a;
  --npm-primary-dark: #9a1830;
  --npm-primary-light: #e63950;
  --npm-secondary: #1a1a1a;
  --npm-text: #222222;
  --npm-text-light: #555555;
  --npm-text-muted: #777777;
  --npm-bg: #ffffff;
  --npm-bg-alt: #f5f5f5;
  --npm-bg-dark: #111111;
  --npm-border: #e0e0e0;
  --npm-border-light: #eeeeee;
  --npm-success: #28a745;
  --npm-warning: #ffc107;
  --npm-font-primary: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --npm-font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --npm-container: 1200px;
  --npm-radius: 4px;
  --npm-shadow: 0 2px 8px rgba(0,0,0,0.08);
  --npm-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
  --npm-transition: 0.25s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--npm-font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--npm-text);
  background-color: var(--npm-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--npm-primary);
  text-decoration: none;
  transition: color var(--npm-transition);
}

a:hover, a:focus {
  color: var(--npm-primary-dark);
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--npm-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--npm-secondary);
  margin-bottom: 0.5em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1em;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */
.npm-container {
  width: 100%;
  max-width: var(--npm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.npm-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

.npm-col {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.npm-col-8 { width: 66.666%; }
.npm-col-4 { width: 33.333%; }
.npm-col-6 { width: 50%; }
.npm-col-3 { width: 25%; }

@media (max-width: 991px) {
  .npm-col-8, .npm-col-4, .npm-col-6, .npm-col-3 {
    width: 100%;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ============================================
   HEADER
   ============================================ */
.npm-topbar {
  background: var(--npm-secondary);
  color: #fff;
  font-size: 0.8125rem;
  padding: 6px 0;
}

.npm-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.npm-topbar-date {
  color: #ccc;
}

.npm-social-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.npm-social-links a {
  color: #fff;
  opacity: 0.85;
  transition: opacity var(--npm-transition);
}

.npm-social-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.npm-header {
  background: var(--npm-bg);
  border-bottom: 1px solid var(--npm-border);
  position: relative;
  z-index: 1000;
}

.npm-header.sticky-enabled.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: var(--npm-shadow);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.npm-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  gap: 20px;
}

.npm-logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.npm-logo-area img {
  max-height: 60px;
  width: auto;
}

.npm-site-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--npm-primary);
  margin: 0;
  line-height: 1.1;
}

.npm-site-title a {
  color: inherit;
  text-decoration: none;
}

.npm-site-description {
  font-size: 0.8rem;
  color: var(--npm-text-muted);
  margin: 0;
}

.npm-header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.npm-search-toggle,
.npm-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--npm-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.npm-menu-toggle {
  display: none;
}

.npm-search-form-header {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--npm-bg);
  padding: 15px;
  border-bottom: 1px solid var(--npm-border);
  box-shadow: var(--npm-shadow);
  z-index: 100;
}

.npm-search-form-header.active {
  display: block;
}

.npm-search-form-header .search-field {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--npm-border);
  border-radius: var(--npm-radius);
  font-size: 1rem;
}

.npm-search-form-header .search-submit {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--npm-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--npm-radius);
  cursor: pointer;
}

/* Navigation */
.npm-nav-primary {
  background: var(--npm-primary);
}

.npm-nav-primary .npm-container {
  display: flex;
  align-items: center;
}

.npm-main-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.npm-main-menu > li {
  position: relative;
}

.npm-main-menu > li > a {
  display: block;
  padding: 14px 18px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background var(--npm-transition);
}

.npm-main-menu > li > a:hover,
.npm-main-menu > li.current-menu-item > a,
.npm-main-menu > li.current-menu-parent > a {
  background: var(--npm-primary-dark);
  text-decoration: none;
}

.npm-main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--npm-bg);
  box-shadow: var(--npm-shadow-hover);
  z-index: 100;
  border-radius: 0 0 var(--npm-radius) var(--npm-radius);
}

.npm-main-menu li:hover > .sub-menu {
  display: block;
}

.npm-main-menu .sub-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--npm-text);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--npm-border-light);
}

.npm-main-menu .sub-menu a:hover {
  background: var(--npm-bg-alt);
  color: var(--npm-primary);
  text-decoration: none;
}

/* Mobile menu */
@media (max-width: 991px) {
  .npm-menu-toggle {
    display: flex;
  }

  .npm-nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--npm-primary);
    z-index: 999;
  }

  .npm-nav-primary.active {
    display: block;
  }

  .npm-main-menu {
    flex-direction: column;
  }

  .npm-main-menu > li > a {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .npm-main-menu .sub-menu {
    position: static;
    box-shadow: none;
    background: var(--npm-primary-dark);
  }

  .npm-main-menu .sub-menu a {
    color: #fff;
    padding-left: 30px;
    border-bottom-color: rgba(255,255,255,0.1);
  }
}

/* ============================================
   BREAKING NEWS
   ============================================ */
.npm-breaking {
  background: var(--npm-secondary);
  color: #fff;
  padding: 8px 0;
  overflow: hidden;
}

.npm-breaking-inner {
  display: flex;
  align-items: center;
  gap: 15px;
}

.npm-breaking-label {
  background: var(--npm-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.npm-breaking-ticker {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.npm-breaking-list {
  display: flex;
  gap: 40px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.npm-breaking-list:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.npm-breaking-item a {
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}

.npm-breaking-item a:hover {
  text-decoration: underline;
}

/* ============================================
   AD SLOTS
   ============================================ */
.npm-ad-slot {
  text-align: center;
  margin: 20px 0;
  min-height: 50px;
}

.npm-ad-slot.header-ad {
  margin: 10px 0;
}

.npm-ad-slot.sidebar-ad {
  margin: 15px 0;
}

.npm-ad-label {
  font-size: 0.7rem;
  color: var(--npm-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* ============================================
   FEATURED NEWS
   ============================================ */
.npm-featured {
  padding: 25px 0 15px;
}

.npm-featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}

@media (max-width: 991px) {
  .npm-featured-grid {
    grid-template-columns: 1fr;
  }
}

.npm-featured-main {
  position: relative;
  border-radius: var(--npm-radius);
  overflow: hidden;
  background: var(--npm-bg-dark);
  min-height: 380px;
}

.npm-featured-main .npm-post-thumb {
  position: absolute;
  inset: 0;
}

.npm-featured-main .npm-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.npm-featured-main:hover .npm-post-thumb img {
  transform: scale(1.05);
  opacity: 0.6;
}

.npm-featured-main .npm-post-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  z-index: 2;
}

.npm-featured-main .npm-post-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 8px;
}

.npm-featured-main .npm-post-title a {
  color: #fff;
  text-decoration: none;
}

.npm-featured-main .npm-post-title a:hover {
  text-decoration: underline;
}

.npm-featured-main .npm-post-excerpt {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-featured-side {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.npm-featured-side-item {
  display: flex;
  gap: 12px;
  background: var(--npm-bg);
  border: 1px solid var(--npm-border-light);
  border-radius: var(--npm-radius);
  overflow: hidden;
  transition: box-shadow var(--npm-transition);
}

.npm-featured-side-item:hover {
  box-shadow: var(--npm-shadow);
}

.npm-featured-side-item .npm-post-thumb {
  flex-shrink: 0;
  width: 120px;
  height: 90px;
}

.npm-featured-side-item .npm-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npm-featured-side-item .npm-post-content {
  padding: 10px 12px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.npm-featured-side-item .npm-post-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-featured-side-item .npm-post-title a {
  color: var(--npm-secondary);
  text-decoration: none;
}

.npm-featured-side-item .npm-post-title a:hover {
  color: var(--npm-primary);
}

/* Meta */
.npm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.8rem;
  color: var(--npm-text-muted);
  margin-bottom: 6px;
}

.npm-post-meta a {
  color: var(--npm-primary);
  font-weight: 600;
  text-decoration: none;
}

.npm-post-meta a:hover {
  text-decoration: underline;
}

.npm-cat-badge {
  display: inline-block;
  background: var(--npm-primary);
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 2px;
  text-decoration: none !important;
}

.npm-cat-badge:hover {
  background: var(--npm-primary-dark);
}

/* ============================================
   SECTION TITLES
   ============================================ */
.npm-section {
  padding: 20px 0;
}

.npm-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--npm-primary);
  padding-bottom: 8px;
}

.npm-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--npm-secondary);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.npm-section-title span {
  color: var(--npm-primary);
}

.npm-section-more {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--npm-primary);
}

/* ============================================
   POST CARDS / LATEST NEWS
   ============================================ */
.npm-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 991px) {
  .npm-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .npm-posts-grid {
    grid-template-columns: 1fr;
  }
}

.npm-post-card {
  background: var(--npm-bg);
  border: 1px solid var(--npm-border-light);
  border-radius: var(--npm-radius);
  overflow: hidden;
  transition: box-shadow var(--npm-transition), transform var(--npm-transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.npm-post-card:hover {
  box-shadow: var(--npm-shadow-hover);
  transform: translateY(-2px);
}

.npm-post-card .npm-post-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--npm-bg-alt);
}

.npm-post-card .npm-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.npm-post-card:hover .npm-post-thumb img {
  transform: scale(1.05);
}

.npm-post-card .npm-post-content {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.npm-post-card .npm-post-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-post-card .npm-post-title a {
  color: var(--npm-secondary);
  text-decoration: none;
}

.npm-post-card .npm-post-title a:hover {
  color: var(--npm-primary);
}

.npm-post-card .npm-post-excerpt {
  font-size: 0.875rem;
  color: var(--npm-text-light);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--npm-primary);
  text-decoration: none;
  margin-top: auto;
}

.npm-read-more:hover {
  text-decoration: underline;
}

/* List style posts */
.npm-posts-list .npm-post-card {
  flex-direction: row;
  border: none;
  border-bottom: 1px solid var(--npm-border);
  border-radius: 0;
  padding: 15px 0;
}

.npm-posts-list .npm-post-card:hover {
  box-shadow: none;
  transform: none;
}

.npm-posts-list .npm-post-thumb {
  width: 180px;
  flex-shrink: 0;
  aspect-ratio: 16/10;
  border-radius: var(--npm-radius);
  overflow: hidden;
}

.npm-posts-list .npm-post-content {
  padding: 0 0 0 15px;
}

/* ============================================
   CATEGORY BLOCKS
   ============================================ */
.npm-category-block {
  margin-bottom: 30px;
}

.npm-category-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

@media (max-width: 767px) {
  .npm-category-grid {
    grid-template-columns: 1fr;
  }
}

.npm-cat-main .npm-post-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--npm-radius);
  overflow: hidden;
  margin-bottom: 12px;
}

.npm-cat-main .npm-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npm-cat-side-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.npm-cat-side-item {
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--npm-border-light);
}

.npm-cat-side-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.npm-cat-side-item .npm-post-thumb {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--npm-radius);
  overflow: hidden;
}

.npm-cat-side-item .npm-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npm-cat-side-item .npm-post-title {
  font-size: 0.9rem;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-cat-side-item .npm-post-title a {
  color: var(--npm-secondary);
  text-decoration: none;
}

.npm-cat-side-item .npm-post-title a:hover {
  color: var(--npm-primary);
}

/* ============================================
   TRENDING / POPULAR
   ============================================ */
.npm-trending-list {
  counter-reset: trending;
}

.npm-trending-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--npm-border-light);
  counter-increment: trending;
}

.npm-trending-item:last-child {
  border-bottom: none;
}

.npm-trending-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--npm-primary);
  line-height: 1;
  min-width: 28px;
}

.npm-trending-item .npm-post-title {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.npm-trending-item .npm-post-title a {
  color: var(--npm-secondary);
  text-decoration: none;
}

.npm-trending-item .npm-post-title a:hover {
  color: var(--npm-primary);
}

/* ============================================
   SIDEBAR
   ============================================ */
.npm-sidebar {
  position: sticky;
  top: 80px;
}

.npm-widget {
  background: var(--npm-bg);
  border: 1px solid var(--npm-border-light);
  border-radius: var(--npm-radius);
  padding: 18px;
  margin-bottom: 25px;
}

.npm-widget-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--npm-secondary);
  margin: 0 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--npm-primary);
}

/* ============================================
   SINGLE POST
   ============================================ */
.npm-single {
  padding: 25px 0 40px;
}

.npm-breadcrumb {
  font-size: 0.85rem;
  color: var(--npm-text-muted);
  margin-bottom: 15px;
}

.npm-breadcrumb a {
  color: var(--npm-text-muted);
  text-decoration: none;
}

.npm-breadcrumb a:hover {
  color: var(--npm-primary);
}

.npm-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}

.npm-single-header {
  margin-bottom: 20px;
}

.npm-single-title {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

@media (max-width: 767px) {
  .npm-single-title {
    font-size: 1.5rem;
  }
}

.npm-single-excerpt {
  font-size: 1.1rem;
  color: var(--npm-text-light);
  font-weight: 400;
  margin-bottom: 15px;
  line-height: 1.5;
}

.npm-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--npm-text-muted);
  padding-bottom: 15px;
  border-bottom: 1px solid var(--npm-border);
  margin-bottom: 20px;
}

.npm-single-featured {
  margin-bottom: 25px;
  border-radius: var(--npm-radius);
  overflow: hidden;
}

.npm-single-featured img {
  width: 100%;
  height: auto;
}

.npm-single-caption {
  font-size: 0.85rem;
  color: var(--npm-text-muted);
  font-style: italic;
  margin-top: 8px;
  text-align: center;
}

.npm-single-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--npm-text);
}

.npm-single-content p {
  margin-bottom: 1.25em;
}

.npm-single-content h2 {
  font-size: 1.4rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.npm-single-content h3 {
  font-size: 1.2rem;
  margin-top: 1.3em;
  margin-bottom: 0.5em;
}

.npm-single-content img {
  margin: 1.5em auto;
  border-radius: var(--npm-radius);
}

.npm-single-content blockquote {
  border-left: 4px solid var(--npm-primary);
  padding: 15px 20px;
  margin: 1.5em 0;
  background: var(--npm-bg-alt);
  font-style: italic;
  color: var(--npm-text-light);
}

.npm-single-content ul,
.npm-single-content ol {
  margin: 1em 0 1em 1.5em;
  list-style: disc;
}

.npm-single-content ol {
  list-style: decimal;
}

.npm-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}

.npm-single-content th,
.npm-single-content td {
  border: 1px solid var(--npm-border);
  padding: 10px 12px;
  text-align: left;
}

.npm-single-content th {
  background: var(--npm-bg-alt);
  font-weight: 600;
}

/* Share buttons */
.npm-share-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 25px 0;
  padding: 15px;
  background: var(--npm-bg-alt);
  border-radius: var(--npm-radius);
}

.npm-share-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-right: 5px;
}

.npm-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--npm-radius);
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity var(--npm-transition);
  border: none;
  cursor: pointer;
}

.npm-share-btn:hover {
  opacity: 0.9;
}

.npm-share-btn.facebook { background: #1877f2; }
.npm-share-btn.whatsapp { background: #25d366; }
.npm-share-btn.twitter { background: #000000; }
.npm-share-btn.telegram { background: #0088cc; }
.npm-share-btn.copy { background: var(--npm-secondary); }

/* TOC */
.npm-toc {
  background: var(--npm-bg-alt);
  border: 1px solid var(--npm-border);
  border-radius: var(--npm-radius);
  padding: 18px 20px;
  margin: 25px 0;
}

.npm-toc-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.npm-toc ol {
  margin: 0;
  padding-left: 20px;
  list-style: decimal;
}

.npm-toc li {
  margin-bottom: 6px;
}

.npm-toc a {
  color: var(--npm-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.npm-toc a:hover {
  color: var(--npm-primary);
}

/* Author box */
.npm-author-box {
  display: flex;
  gap: 18px;
  padding: 20px;
  background: var(--npm-bg-alt);
  border-radius: var(--npm-radius);
  margin: 30px 0;
}

.npm-author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.npm-author-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.npm-author-bio {
  font-size: 0.9rem;
  color: var(--npm-text-light);
  margin: 0;
}

/* Related posts */
.npm-related {
  margin: 35px 0;
}

.npm-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 767px) {
  .npm-related-grid {
    grid-template-columns: 1fr;
  }
}

/* Post navigation */
.npm-post-nav {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0;
  padding-top: 20px;
  border-top: 1px solid var(--npm-border);
}

.npm-post-nav a {
  flex: 1;
  padding: 12px 15px;
  background: var(--npm-bg-alt);
  border-radius: var(--npm-radius);
  text-decoration: none;
  color: var(--npm-text);
  transition: background var(--npm-transition);
}

.npm-post-nav a:hover {
  background: var(--npm-border-light);
}

.npm-post-nav .nav-label {
  display: block;
  font-size: 0.75rem;
  color: var(--npm-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.npm-post-nav .nav-title {
  font-weight: 600;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-post-nav .nav-next {
  text-align: right;
}

/* ============================================
   ARCHIVE / CATEGORY / SEARCH
   ============================================ */
.npm-archive-header {
  padding: 25px 0 15px;
  border-bottom: 2px solid var(--npm-primary);
  margin-bottom: 25px;
}

.npm-archive-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.npm-archive-desc {
  color: var(--npm-text-light);
  margin: 0;
}

/* Pagination */
.npm-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.npm-pagination a,
.npm-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--npm-border);
  border-radius: var(--npm-radius);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--npm-text);
  text-decoration: none;
  transition: all var(--npm-transition);
}

.npm-pagination a:hover {
  background: var(--npm-primary);
  border-color: var(--npm-primary);
  color: #fff;
}

.npm-pagination .current {
  background: var(--npm-primary);
  border-color: var(--npm-primary);
  color: #fff;
}

/* ============================================
   FOOTER
   ============================================ */
.npm-footer {
  background: var(--npm-secondary);
  color: #ccc;
  padding: 40px 0 0;
  margin-top: 40px;
}

.npm-footer-widgets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-bottom: 30px;
}

@media (max-width: 991px) {
  .npm-footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .npm-footer-widgets {
    grid-template-columns: 1fr;
  }
}

.npm-footer-widget-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--npm-primary);
}

.npm-footer a {
  color: #ccc;
  text-decoration: none;
}

.npm-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.npm-footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.npm-footer-menu a {
  font-size: 0.9rem;
}

.npm-footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.npm-footer-social {
  display: flex;
  gap: 12px;
}

.npm-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  transition: background var(--npm-transition);
}

.npm-footer-social a:hover {
  background: var(--npm-primary);
  text-decoration: none;
}

.npm-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
}

.npm-footer-bottom a {
  color: #fff;
}

/* ============================================
   404
   ============================================ */
.npm-404 {
  text-align: center;
  padding: 60px 20px;
}

.npm-404-title {
  font-size: 5rem;
  color: var(--npm-primary);
  margin-bottom: 10px;
  line-height: 1;
}

.npm-404-text {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--npm-text-light);
}

.npm-btn {
  display: inline-block;
  background: var(--npm-primary);
  color: #fff !important;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--npm-radius);
  text-decoration: none !important;
  transition: background var(--npm-transition);
  border: none;
  cursor: pointer;
}

.npm-btn:hover {
  background: var(--npm-primary-dark);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.npm-newsletter {
  background: var(--npm-bg-alt);
  padding: 30px;
  border-radius: var(--npm-radius);
  text-align: center;
  margin: 30px 0;
}

.npm-newsletter-title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.npm-newsletter-desc {
  color: var(--npm-text-light);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.npm-newsletter-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
  gap: 8px;
}

.npm-newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--npm-border);
  border-radius: var(--npm-radius);
}

.npm-newsletter-form button {
  background: var(--npm-primary);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: var(--npm-radius);
  font-weight: 600;
  cursor: pointer;
}

.npm-newsletter-note {
  font-size: 0.8rem;
  color: var(--npm-text-muted);
  margin-top: 10px;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.npm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 767px) {
  .npm-video-grid {
    grid-template-columns: 1fr;
  }
}

.npm-video-item {
  border-radius: var(--npm-radius);
  overflow: hidden;
  background: var(--npm-bg-dark);
}

.npm-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
}

.npm-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.npm-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: var(--npm-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.npm-video-title {
  padding: 12px;
  color: #fff;
  font-size: 0.95rem;
  margin: 0;
}

.npm-video-title a {
  color: #fff;
  text-decoration: none;
}

/* ============================================
   COMMENTS
   ============================================ */
.npm-comments {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--npm-border);
}

.npm-comments-title {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.comment-list {
  margin-bottom: 30px;
}

.comment {
  padding: 15px 0;
  border-bottom: 1px solid var(--npm-border-light);
}

.comment-author {
  font-weight: 700;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--npm-text-muted);
  margin-bottom: 8px;
}

.comment-content {
  font-size: 0.95rem;
}

.comment-reply-link {
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   MAIN LAYOUT
   ============================================ */
.npm-main-content {
  padding: 20px 0 40px;
}

.npm-content-area {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.npm-primary {
  width: 66.666%;
  padding: 0 15px;
}

.npm-secondary {
  width: 33.333%;
  padding: 0 15px;
}

@media (max-width: 991px) {
  .npm-primary,
  .npm-secondary {
    width: 100%;
  }

  .npm-sidebar {
    position: static;
    margin-top: 30px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.npm-mt-0 { margin-top: 0; }
.npm-mb-0 { margin-bottom: 0; }
.npm-text-center { text-align: center; }
.npm-d-none { display: none; }

@media (max-width: 767px) {
  .npm-hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .npm-hide-desktop { display: none !important; }
}

/* Lazy load placeholder */
img[loading="lazy"] {
  background: var(--npm-bg-alt);
}

/* Gutenberg compatibility */
.alignwide {
  max-width: 100%;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.wp-block-image {
  margin: 1.5em 0;
}

.wp-block-quote {
  border-left: 4px solid var(--npm-primary);
  padding-left: 1em;
}

/* Print styles */
@media print {
  .npm-header,
  .npm-footer,
  .npm-sidebar,
  .npm-ad-slot,
  .npm-share-box,
  .npm-breaking,
  .npm-nav-primary {
    display: none !important;
  }

  .npm-primary {
    width: 100%;
  }

  body {
    font-size: 12pt;
  }
}

/* ============================================
   MOBILE READABILITY (v1.0.1)
   Single post & general spacing on small screens
   ============================================ */
@media (max-width: 767px) {
  .npm-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .npm-content-area {
    margin-left: 0;
    margin-right: 0;
  }

  .npm-primary,
  .npm-secondary {
    padding-left: 0;
    padding-right: 0;
  }

  .npm-single {
    padding: 16px 0 32px;
  }

  .npm-single-title {
    font-size: 1.4rem;
    line-height: 1.35;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .npm-single-excerpt {
    font-size: 1rem;
    line-height: 1.55;
  }

  .npm-single-meta {
    gap: 8px 12px;
    font-size: 0.8rem;
  }

  .npm-single-content {
    font-size: 1.0625rem; /* ~17px - nyaman dibaca di HP */
    line-height: 1.8;
  }

  .npm-single-content p {
    margin-bottom: 1.15em;
  }

  .npm-single-content h2 {
    font-size: 1.25rem;
  }

  .npm-single-content h3 {
    font-size: 1.1rem;
  }

  .npm-single-content blockquote {
    padding: 12px 14px;
    margin: 1.25em 0;
  }

  .npm-single-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .npm-share-box {
    margin: 18px 0;
    padding: 12px;
    gap: 8px;
  }

  .npm-share-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
    min-height: 40px; /* touch target */
  }

  .npm-toc {
    padding: 14px 16px;
    margin: 18px 0;
  }

  .npm-author-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .npm-post-nav {
    flex-direction: column;
    gap: 12px;
  }

  .npm-post-nav .nav-next {
    text-align: left;
  }

  .npm-related-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .npm-header-main {
    padding: 12px 0;
  }

  .npm-featured {
    padding: 16px 0 10px;
  }

  .npm-featured-main {
    min-height: 260px;
  }

  .npm-featured-main .npm-post-content {
    padding: 16px;
  }

  .npm-featured-main .npm-post-title {
    font-size: 1.2rem;
  }

  .npm-section {
    padding: 14px 0;
  }

  .npm-posts-list .npm-post-card {
    flex-direction: column;
  }

  .npm-posts-list .npm-post-thumb {
    width: 100%;
    aspect-ratio: 16/10;
  }

  .npm-posts-list .npm-post-content {
    padding: 12px 0 0;
  }

  .npm-widget {
    padding: 14px;
  }

  .npm-footer {
    padding: 28px 0 0;
  }

  .npm-footer-widgets {
    gap: 20px;
  }

  /* Cegah overflow horizontal dari gambar/embed */
  .npm-single-content img,
  .npm-single-content iframe,
  .npm-single-content embed,
  .npm-single-content video {
    max-width: 100%;
    height: auto;
  }

  .wp-block-embed__wrapper,
  .wp-block-image {
    max-width: 100%;
  }

  .alignfull {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Extra small phones */
@media (max-width: 375px) {
  .npm-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .npm-single-content {
    font-size: 1rem;
    line-height: 1.75;
  }

  .npm-single-title {
    font-size: 1.3rem;
  }
}

/* ============================================
   PRODUCT / EBOOK CARDS (v2.0 — dipakai di artikel berita)
   Style toko lengkap ada di assets/css/woocommerce.css
   ============================================ */
.npm-related-ebooks {
  margin: 35px 0;
  padding-top: 25px;
  border-top: 1px solid var(--npm-border);
}

.npm-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.npm-products-grid-2 { grid-template-columns: repeat(2, 1fr); }
.npm-products-grid-3 { grid-template-columns: repeat(3, 1fr); }
.npm-products-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 991px) {
  .npm-products-grid,
  .npm-products-grid-3,
  .npm-products-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .npm-products-grid,
  .npm-products-grid-2,
  .npm-products-grid-3,
  .npm-products-grid-4 {
    grid-template-columns: 1fr;
  }
}

.npm-product-card {
  background: var(--npm-bg);
  border: 1px solid var(--npm-border-light);
  border-radius: var(--npm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--npm-transition);
  height: 100%;
}

.npm-product-card:hover {
  box-shadow: var(--npm-shadow);
}

.npm-product-thumb {
  display: block;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--npm-bg-alt);
}

.npm-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npm-product-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.npm-product-title {
  font-size: 0.95rem;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.npm-product-title a {
  color: var(--npm-secondary);
  text-decoration: none;
}

.npm-product-title a:hover {
  color: var(--npm-primary);
}

.npm-product-price {
  color: var(--npm-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 10px;
}

.npm-product-price del {
  color: var(--npm-text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  margin-right: 4px;
}

.npm-btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  text-align: center;
  margin-top: auto;
  display: block;
  text-decoration: none !important;
}

.npm-product-buy {
  background: var(--npm-primary);
  color: #fff !important;
  border-radius: var(--npm-radius);
  font-weight: 600;
}

.npm-product-buy:hover {
  background: var(--npm-primary-dark);
  color: #fff !important;
}

.npm-ebooks-widget-list .npm-cat-side-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--npm-border-light);
}

.npm-ebooks-widget-list .npm-cat-side-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ============================================
   FIX v2.0.1 — Label kategori & blok kategori tidak bertumpuk
   ============================================ */

/* Jarak antar blok kategori lebih jelas */
.npm-section.npm-category-block {
  margin-top: 8px;
  margin-bottom: 36px;
  padding-top: 8px;
  padding-bottom: 8px;
  clear: both;
  position: relative;
  z-index: 1;
}

/* Header section tidak bertabrakan dengan konten di atas/bawah */
.npm-section-header {
  position: relative;
  z-index: 2;
  background: var(--npm-bg);
  margin-top: 0;
  margin-bottom: 16px;
  padding-top: 4px;
  clear: both;
}

.npm-section-title {
  line-height: 1.3;
  word-break: break-word;
}

/* Meta + badge di dalam kartu tidak overflow ke elemen berikutnya */
.npm-post-meta {
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  row-gap: 4px;
  max-width: 100%;
}

.npm-cat-badge {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

/* Featured side: cegah meta/judul menabrak item berikutnya */
.npm-featured-side-item {
  position: relative;
  overflow: hidden;
  align-items: flex-start;
}

.npm-featured-side-item .npm-post-content {
  min-width: 0; /* agar text truncate bekerja di flex */
  overflow: hidden;
}

.npm-featured-side-item .npm-post-meta {
  margin-bottom: 4px;
}

/* Category grid: pastikan kolom tidak saling menumpuk */
.npm-category-grid {
  align-items: start;
  clear: both;
}

.npm-cat-main {
  min-width: 0;
}

.npm-cat-side-list {
  min-width: 0;
}

/* Kartu berita: badge tidak keluar dari kartu */
.npm-post-card .npm-post-content {
  position: relative;
  overflow: hidden;
}

.npm-post-card .npm-post-meta {
  margin-bottom: 8px;
}

/* Berita terbaru → blok kategori: jarak cukup */
.npm-primary > .npm-section + .npm-section {
  margin-top: 12px;
}

@media (max-width: 767px) {
  .npm-section.npm-category-block {
    margin-bottom: 28px;
    padding-top: 4px;
  }

  .npm-section-header {
    flex-wrap: wrap;
    gap: 6px 12px;
  }

  .npm-featured-side-item {
    flex-wrap: nowrap;
  }

  .npm-featured-side-item .npm-post-thumb {
    width: 100px;
    height: 75px;
  }
}

/* ============================================
   VIDEO BERITA (embed YouTube)
   ============================================ */
.npm-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 991px) {
  .npm-video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575px) {
  .npm-video-grid {
    grid-template-columns: 1fr;
  }
}

.npm-video-item {
  border-radius: var(--npm-radius);
  overflow: hidden;
  background: var(--npm-bg-dark);
}

.npm-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.npm-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.npm-video-channel-cta {
  text-align: center;
  padding: 28px 16px;
  background: var(--npm-bg-alt);
  border-radius: var(--npm-radius);
}

/* Video grid: isi rata jika 1–3 item */
.npm-video-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
