/*
Theme Name: Neoscilogix
Theme URI: https://neoscilogix.com
Author: Neoscilogix
Author URI: https://neoscilogix.com
Description: Tema blog teknologi mobile-first dengan off-canvas sidebar, desain modern, dan performa tinggi. Cocok untuk blog tutorial, teknologi, dan review.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: neoscilogix
Tags: blog, technology, mobile-first, off-canvas, responsive, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   NEOSCILOGIX THEME — Main Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --teal:        #0d7a5f;
  --teal-dark:   #095c47;
  --teal-light:  #12a37e;
  --teal-glow:   rgba(13,122,95,0.12);
  --bg:          #f0f4f2;
  --surface:     #ffffff;
  --surface2:    #e8eeed;
  --text:        #111c18;
  --text-muted:  #6b7f78;
  --border:      #d4e2de;
  --radius:      16px;
  --radius-sm:   10px;
  --header-h:    60px;
  --sidebar-w:   280px;
  --font-head:   'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --shadow-sm:   0 2px 12px rgba(13,122,95,0.08);
  --shadow-md:   0 6px 28px rgba(13,122,95,0.13);
  --transition:  0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.3px;
  color: var(--text);
}

ul, ol { list-style: none; }

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 14px;
}

/* ── Screen Reader ── */
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   OVERLAY
   ========================================================= */
#nsc-overlay {
  position: fixed; inset: 0;
  background: rgba(10,25,20,0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
body.nav-open #nsc-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================================
   OFF-CANVAS SIDEBAR
   ========================================================= */
#nsc-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100%;
  background: var(--surface);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
  border-right: 1.5px solid var(--border);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
body.nav-open #nsc-sidebar {
  transform: translateX(0);
  box-shadow: var(--shadow-md);
}

/* Sidebar Header */
.nsc-sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  flex-shrink: 0;
}
.nsc-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}
.nsc-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.nsc-logo-icon {
  width: 38px; height: 38px;
  background: #fff;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: var(--teal);
  flex-shrink: 0;
}
.nsc-logo-text { line-height: 1.15; }
.nsc-logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.nsc-logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.65);
}

.nsc-close-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 16px;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.nsc-close-btn:hover { background: rgba(255,255,255,0.3); }

/* Sidebar Nav */
.nsc-sidebar-body {
  flex: 1;
  padding: 12px 12px 20px;
  overflow-y: auto;
}

.nsc-nav-section { margin-bottom: 4px; }
.nsc-nav-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  padding: 10px 10px 6px;
}
.nsc-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 4px;
}

.nsc-nav-list { display: flex; flex-direction: column; gap: 2px; }
.nsc-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.nsc-nav-item:hover {
  background: var(--surface2);
  color: var(--text);
}
.nsc-nav-item.current-menu-item,
.nsc-nav-item.active {
  background: var(--teal);
  color: #fff;
}
.nsc-nav-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  background: var(--surface2);
}
.nsc-nav-item.active .nsc-nav-icon,
.nsc-nav-item.current-menu-item .nsc-nav-icon {
  background: rgba(255,255,255,0.22);
}
.nsc-nav-badge {
  margin-left: auto;
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.nsc-nav-item.active .nsc-nav-badge {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Sidebar Search */
.nsc-sidebar-search {
  padding: 14px 12px 0;
}
.nsc-sidebar-search form {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 0 14px;
  height: 38px;
  transition: border-color 0.2s;
}
.nsc-sidebar-search form:focus-within { border-color: var(--teal); }
.nsc-sidebar-search input[type="search"] {
  border: none; background: transparent;
  font-size: 13px; color: var(--text);
  outline: none; width: 100%;
}
.nsc-sidebar-search input::placeholder { color: var(--text-muted); }
.nsc-sidebar-search button[type="submit"] {
  background: none; border: none;
  color: var(--text-muted);
  display: flex; align-items: center;
  cursor: pointer; padding: 0;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
#nsc-header {
  position: sticky;
  top: 0;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  z-index: 500;
  box-shadow: var(--shadow-sm);
}

.nsc-menu-btn {
  width: 38px; height: 38px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  background: transparent;
  cursor: pointer;
}
.nsc-menu-btn:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
}
.nsc-menu-btn span {
  display: block;
  width: 17px; height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nsc-header-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.4px;
  white-space: nowrap;
  display: none; /* hidden on mobile when search present */
}

.nsc-header-search {
  flex: 1;
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 0 14px; gap: 8px;
  height: 36px;
  transition: border-color 0.2s;
}
.nsc-header-search:focus-within { border-color: var(--teal); }
.nsc-header-search svg { color: var(--text-muted); flex-shrink: 0; }
.nsc-header-search input {
  border: none; background: transparent;
  font-size: 13px; color: var(--text);
  outline: none; width: 100%;
}
.nsc-header-search input::placeholder { color: var(--text-muted); }
.nsc-header-search button { display: none; }

.nsc-header-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}
.nsc-header-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  cursor: pointer;
}
.nsc-header-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   LAYOUT WRAPPER
   ========================================================= */
#nsc-wrapper {
  min-height: 100vh;
}

#nsc-content-area {
  max-width: 720px;
  margin: 0 auto;
  padding: 18px 14px 100px;
}

/* =========================================================
   CATEGORY CHIPS
   ========================================================= */
.nsc-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nsc-chips::-webkit-scrollbar { display: none; }
.nsc-chip {
  flex-shrink: 0;
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nsc-chip:hover,
.nsc-chip.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

/* =========================================================
   HERO / FEATURED POST
   ========================================================= */
.nsc-hero {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
  position: relative;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.nsc-hero-thumb {
  width: 100%; height: 220px;
  object-fit: cover;
  display: block;
}
.nsc-hero-thumb-placeholder {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, var(--teal-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  position: relative;
}
.nsc-hero-thumb-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.nsc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,50,35,0.92) 0%, rgba(9,50,35,0.3) 50%, transparent 100%);
}
.nsc-hero-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.nsc-hero-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  backdrop-filter: blur(6px);
}
.nsc-hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}
.nsc-hero-meta {
  display: flex; align-items: center; gap: 14px;
}
.nsc-hero-meta span {
  font-size: 11px;
  color: rgba(255,255,255,0.72);
  display: flex; align-items: center; gap: 4px;
}

/* =========================================================
   SECTION HEADER
   ========================================================= */
.nsc-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.nsc-section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.4px;
  position: relative;
}
.nsc-section-title::after {
  content: '';
  display: block;
  width: 34px; height: 3px;
  background: var(--teal);
  border-radius: 2px;
  margin-top: 5px;
}
.nsc-sort-btn {
  display: flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 12px; font-weight: 500;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nsc-sort-btn:hover {
  border-color: var(--teal);
  background: var(--teal-glow);
}

/* =========================================================
   ARTICLE CARDS
   ========================================================= */
.nsc-posts-grid {
  display: flex; flex-direction: column;
  gap: 14px;
}

.nsc-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1.5px solid var(--border);
  transition: transform 0.22s, box-shadow 0.22s;
  cursor: pointer;
  animation: nscFadeUp 0.45s ease both;
  display: block;
  text-decoration: none;
  color: var(--text);
}
.nsc-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--text);
}
.nsc-card:active { transform: scale(0.985); }

@keyframes nscFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nsc-card:nth-child(1) { animation-delay: 0.05s; }
.nsc-card:nth-child(2) { animation-delay: 0.10s; }
.nsc-card:nth-child(3) { animation-delay: 0.15s; }
.nsc-card:nth-child(4) { animation-delay: 0.20s; }
.nsc-card:nth-child(5) { animation-delay: 0.25s; }
.nsc-card:nth-child(6) { animation-delay: 0.30s; }

.nsc-card-thumb-wrap {
  position: relative;
  overflow: hidden;
}
.nsc-card-thumb {
  width: 100%; height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.nsc-card:hover .nsc-card-thumb { transform: scale(1.04); }

.nsc-card-thumb-placeholder {
  width: 100%; height: 190px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-light));
}

.nsc-cat-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #fff;
  z-index: 2;
}

.nsc-card-body { padding: 14px 15px 13px; }
.nsc-card-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.2s;
}
.nsc-card:hover .nsc-card-title { color: var(--teal); }

.nsc-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nsc-card-meta {
  display: flex; align-items: center; gap: 12px;
}
.nsc-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 11.5px; color: var(--text-muted);
}
.nsc-meta-item svg { flex-shrink: 0; }
.nsc-card-more {
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted);
  transition: background 0.18s, color 0.18s;
}
.nsc-card-more:hover { background: var(--teal-glow); color: var(--teal); }

/* Category badge colors */
.badge-wordpress { background: #2563eb; }
.badge-android   { background: #16a34a; }
.badge-tutorial  { background: #7c3aed; }
.badge-review    { background: #d97706; }
.badge-tips-trik,
.badge-tips      { background: #ea580c; }
.badge-default   { background: var(--teal); }

/* =========================================================
   PAGINATION
   ========================================================= */
.nsc-pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 24px 0 8px;
  flex-wrap: wrap;
}
.nsc-pagination a,
.nsc-pagination span {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 13px; font-weight: 600;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  transition: all 0.18s;
}
.nsc-pagination a:hover { border-color: var(--teal); color: var(--teal); }
.nsc-pagination .current {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.nsc-pagination .prev, .nsc-pagination .next { width: auto; padding: 0 14px; }

/* =========================================================
   SINGLE POST
   ========================================================= */
.nsc-single-header {
  margin-bottom: 20px;
}
.nsc-single-cat {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px;
  color: #fff;
  margin-bottom: 12px;
}
.nsc-single-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.nsc-single-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.nsc-single-meta span {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
}
.nsc-single-thumb {
  width: 100%; max-height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.nsc-single-divider {
  height: 1.5px;
  background: var(--border);
  border-radius: 2px;
  margin: 24px 0;
}

/* Post Content Typography */
.nsc-entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.nsc-entry-content h2 {
  font-size: 20px; margin: 28px 0 12px;
}
.nsc-entry-content h3 {
  font-size: 17px; margin: 22px 0 10px;
}
.nsc-entry-content p { margin-bottom: 16px; }
.nsc-entry-content ul,
.nsc-entry-content ol {
  list-style: revert;
  padding-left: 22px;
  margin-bottom: 16px;
}
.nsc-entry-content li { margin-bottom: 6px; }
.nsc-entry-content a { color: var(--teal); text-decoration: underline; }
.nsc-entry-content blockquote {
  border-left: 4px solid var(--teal);
  background: var(--teal-glow);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-style: italic;
}
.nsc-entry-content code {
  background: var(--surface2);
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 13px;
  font-family: 'Courier New', monospace;
}
.nsc-entry-content pre {
  background: #111c18;
  color: #e2faf3;
  border-radius: var(--radius-sm);
  padding: 18px;
  overflow-x: auto;
  margin: 18px 0;
}
.nsc-entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 13.5px;
}
.nsc-entry-content img {
  border-radius: var(--radius-sm);
  margin: 16px 0;
}
.nsc-entry-content table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 14px;
}
.nsc-entry-content th, .nsc-entry-content td {
  border: 1px solid var(--border);
  padding: 10px 12px; text-align: left;
}
.nsc-entry-content th {
  background: var(--teal);
  color: #fff;
  font-family: var(--font-head);
}
.nsc-entry-content tr:nth-child(even) td { background: var(--bg); }

/* Tags */
.nsc-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.nsc-tag {
  padding: 5px 13px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: 12px; color: var(--text-muted);
  text-decoration: none;
  transition: all 0.18s;
}
.nsc-tag:hover { border-color: var(--teal); color: var(--teal); }

/* Author Box */
.nsc-author-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex; gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
}
.nsc-author-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 20px;
  overflow: hidden;
}
.nsc-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.nsc-author-name {
  font-family: var(--font-head);
  font-weight: 700; font-size: 15px;
  margin-bottom: 4px;
}
.nsc-author-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Related Posts */
.nsc-related { margin-top: 30px; }
.nsc-related-title {
  font-family: var(--font-head);
  font-weight: 800; font-size: 18px;
  margin-bottom: 14px;
  position: relative;
}
.nsc-related-title::after {
  content: ''; display: block;
  width: 30px; height: 3px;
  background: var(--teal); border-radius: 2px;
  margin-top: 5px;
}

/* Comments */
.nsc-comments {
  margin-top: 30px;
}
.nsc-comments-title {
  font-family: var(--font-head);
  font-weight: 800; font-size: 18px;
  margin-bottom: 18px;
}
.comment {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 14px;
}
.comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.comment-author { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.comment-date { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.comment-text { font-size: 13.5px; line-height: 1.65; }

/* Comment Form */
.nsc-comment-form {
  margin-top: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.nsc-comment-form h3 {
  font-size: 16px; margin-bottom: 16px;
}
.nsc-form-group { margin-bottom: 14px; }
.nsc-form-group label {
  display: block; font-size: 13px; font-weight: 500;
  margin-bottom: 6px; color: var(--text-muted);
}
.nsc-form-group input,
.nsc-form-group textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 14px; color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.nsc-form-group input:focus,
.nsc-form-group textarea:focus { border-color: var(--teal); }
.nsc-form-group textarea { resize: vertical; min-height: 110px; }

.nsc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal);
  color: #fff;
  border: none; border-radius: 24px;
  padding: 11px 22px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.nsc-btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.nsc-btn:active { transform: scale(0.97); }

/* =========================================================
   SIDEBAR WIDGET AREA (desktop only)
   ========================================================= */
.nsc-widget { margin-bottom: 20px; }
.nsc-widget-title {
  font-family: var(--font-head);
  font-weight: 700; font-size: 14px;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.nsc-widget ul { display: flex; flex-direction: column; gap: 8px; }
.nsc-widget ul li a {
  font-size: 13.5px; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  transition: color 0.18s;
}
.nsc-widget ul li a:hover { color: var(--teal); }

/* =========================================================
   BOTTOM NAVIGATION (mobile)
   ========================================================= */
#nsc-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 62px;
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px;
  z-index: 500;
}
.nsc-bn-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 3px; flex: 1;
  padding: 8px 0;
  color: var(--text-muted);
  transition: color 0.2s;
  border: none; background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.nsc-bn-item span { font-size: 10px; font-weight: 500; }
.nsc-bn-item.active { color: var(--teal); }
.nsc-bn-item svg { transition: transform 0.2s; }
.nsc-bn-item:active svg { transform: scale(0.85); }

/* =========================================================
   PAGE: 404
   ========================================================= */
.nsc-404 {
  text-align: center;
  padding: 60px 20px;
}
.nsc-404-emoji { font-size: 80px; margin-bottom: 20px; }
.nsc-404 h1 { font-size: 28px; margin-bottom: 10px; }
.nsc-404 p { color: var(--text-muted); margin-bottom: 24px; }

/* =========================================================
   PAGE: SEARCH RESULTS
   ========================================================= */
.nsc-search-header {
  margin-bottom: 20px;
}
.nsc-search-header h1 { font-size: 20px; margin-bottom: 6px; }
.nsc-search-header p { color: var(--text-muted); font-size: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
#nsc-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 28px 16px 80px; /* extra bottom for mobile nav */
  text-align: center;
}
.nsc-footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}
.nsc-footer-tagline { font-size: 12px; margin-bottom: 16px; }
.nsc-footer-links {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 14px;
  margin-bottom: 16px;
}
.nsc-footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.nsc-footer-links a:hover { color: var(--teal-light); }
.nsc-footer-copy { font-size: 11.5px; }

/* =========================================================
   DESKTOP OVERRIDES (≥ 768px)
   ========================================================= */
@media (min-width: 768px) {
  #nsc-bottom-nav { display: none; }

  #nsc-content-area {
    max-width: 1100px;
    padding: 28px 28px 60px;
  }

  .nsc-inner-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
  }

  .nsc-header-logo { display: block; }

  #nsc-sidebar {
    position: fixed;
    transform: translateX(0) !important;
    box-shadow: none;
    border-right: 1.5px solid var(--border);
  }

  #nsc-content-area { margin-left: var(--sidebar-w); }
  body.nav-open #nsc-overlay { display: none; }

  .nsc-single-title { font-size: 30px; }

  .nsc-posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  #nsc-footer { padding-bottom: 32px; }

  .nsc-menu-btn { display: none; }
}

@media (max-width: 380px) {
  .nsc-card-title { font-size: 14px; }
  .nsc-hero-title { font-size: 16px; }
  .nsc-single-title { font-size: 21px; }
}

/* =========================================================
   UTILITIES & WORDPRESS DEFAULTS
   ========================================================= */
.alignleft  { float: left; margin-right: 20px; margin-bottom: 10px; }
.alignright { float: right; margin-left: 20px; margin-bottom: 10px; }
.aligncenter { text-align: center; margin: 0 auto 10px; display: block; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--text-muted); text-align: center; }

.sticky { /* WordPress sticky post */ }
.gallery-caption { }
.bypostauthor { }
