/*
Theme Name: NetCloud24 Blog EN
Theme URI: https://netcloud24.com/
Author: NWMA sp. z o.o.
Author URI: https://netcloud24.com/
Description: English-language blog theme for NetCloud24 subdomains (ie, uk, us, ca…). White/slate content area, dark navbar. Full Schema.org JSON-LD automation: Article, BlogPosting, FAQPage, BreadcrumbList, HowTo, Person. Optimised for Core Web Vitals and Google Discover.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: nc24blog
Tags: blog, seo, dark-header, schema, english, hosting, cloud

*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand */
  --nc-blue:        #2563eb;
  --nc-blue-h:      #1d4ed8;
  --nc-blue-lt:     #3b82f6;
  --nc-blue-pale:   #eff6ff;
  --nc-indigo:      #4f46e5;

  /* Navbar (dark) */
  --nav-bg:         #0f172a;
  --nav-border:     #1e293b;
  --nav-text:       #cbd5e1;
  --nav-text-h:     #ffffff;

  /* Content (light) */
  --body-bg:        #f8fafc;
  --surface:        #ffffff;
  --surface-2:      #f1f5f9;
  --border:         #e2e8f0;
  --border-h:       #bfdbfe;

  /* Typography */
  --text-900:       #0f172a;
  --text-700:       #1e293b;
  --text-600:       #334155;
  --text-500:       #64748b;
  --text-400:       #94a3b8;

  /* Semantic */
  --green:          #16a34a;
  --green-bg:       #f0fdf4;
  --green-border:   #bbf7d0;
  --amber:          #d97706;
  --amber-bg:       #fffbeb;
  --red:            #dc2626;

  /* Layout */
  --max-w:          96rem;
  --max-w-content:  52rem;
  --nav-h:          4.5rem;

  /* Radius */
  --r-sm:   0.375rem;
  --r-md:   0.5rem;
  --r-lg:   0.75rem;
  --r-xl:   1rem;
  --r-2xl:  1.5rem;

  /* Shadow */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.10);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.12);

  /* Font */
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }
table { border-collapse: collapse; width: 100%; }
h1, h2, h3, h4, h5, h6, p, li, td, th, .post-card-title, .hero-desc { overflow-wrap: anywhere; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 { color: var(--text-900); font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.875rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p  { color: var(--text-600); line-height: 1.75; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.section     { padding: 4rem 0; }
.section-sm  { padding: 2.5rem 0; }
.section-lg  { padding: 6rem 0; }

.section-kicker {
  display: inline-flex;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nc-blue);
}

.section-heading-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  line-height: 1.2;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--r-md);
  font-size: 0.875rem; font-weight: 600; line-height: 1;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }

.btn-primary { background: var(--nc-blue); color: #fff; border-color: var(--nc-blue); }
.btn-primary:hover { background: var(--nc-blue-h); border-color: var(--nc-blue-h); }

.btn-outline { background: transparent; color: var(--text-700); border-color: var(--border); }
.btn-outline:hover { border-color: var(--nc-blue); color: var(--nc-blue); }

.btn-ghost { background: transparent; color: var(--nc-blue); }
.btn-ghost:hover { background: var(--nc-blue-pale); }

.btn-sm  { padding: 0.4375rem 0.875rem; font-size: 0.8125rem; }
.btn-lg  { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ============================================================
   BADGE / LABEL
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.075em;
}
.badge-blue   { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-green  { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge-slate  { background: var(--surface-2); color: var(--text-500); border: 1px solid var(--border); }
.badge-indigo { background: #eef2ff; color: var(--nc-indigo); border: 1px solid #c7d2fe; }
.badge-amber  { background: var(--amber-bg); color: var(--amber); border: 1px solid #fde68a; }

/* ============================================================
   NAVBAR
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  transition: background 0.3s, box-shadow 0.3s, height 0.3s;
  display: flex; align-items: center;
}
.site-header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  height: 3.75rem;
  border-bottom-color: var(--border);
}
.site-header.scrolled .nav-logo-text,
.site-header.scrolled .nav-link,
.site-header.scrolled .nav-phone { color: var(--text-900); }
.site-header.scrolled .nav-link:hover { color: var(--nc-blue); }
.site-header.scrolled .logo-icon { background: var(--nc-blue) !important; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-width: 0; }

/* Logo */
.site-branding { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.logo-icon {
  background: var(--nc-blue);
  border-radius: var(--r-md);
  padding: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 1.25rem; height: 1.25rem; color: #fff; }
.nav-logo-text {
  font-size: 1.25rem; font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1;
}
.nav-logo-text .accent { color: var(--nc-blue-lt); }

/* Desktop links */
.nav-links { display: flex; align-items: center; gap: 0.125rem; min-width: 0; }
.nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: var(--nav-text);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--nc-blue-lt); }
.nav-link.active { color: var(--nc-blue-lt); }

/* Lang dropdown */
.nav-lang { position: relative; }
.lang-trigger {
  display: flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-weight: 500; color: var(--nav-text);
  border-radius: var(--r-sm);
  transition: color 0.2s;
  cursor: pointer;
}
.lang-trigger:hover { color: var(--nc-blue-lt); }
.lang-trigger svg { width: 0.75rem; height: 0.75rem; transition: transform 0.2s; }
.nav-lang.is-open .lang-trigger svg { transform: rotate(180deg); }
.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  width: min(30rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  z-index: 300;
  padding: 0.375rem;
  overscroll-behavior: contain;
  column-count: 2;
  column-gap: 0.375rem;
}
.nav-lang.is-open .lang-dropdown { display: block; }
.lang-dropdown a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem; font-weight: 500; color: var(--text-700);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  break-inside: avoid;
  min-width: 0;
}
.lang-dropdown a:hover { background: var(--nc-blue-pale); color: var(--nc-blue); }
.lang-dropdown a.current { color: var(--nc-blue); background: var(--nc-blue-pale); font-weight: 600; }

/* Nav right */
.nav-right { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; min-width: 0; }
.nav-phone { display: flex; align-items: center; gap: 0.375rem; font-weight: 700; font-size: 0.875rem; color: #fff; white-space: nowrap; transition: color 0.2s; }
.nav-phone svg { color: var(--nc-blue-lt); width: 0.9375rem; height: 0.9375rem; }
.nav-phone:hover { color: var(--nc-blue-lt); }
.nav-login { flex-shrink: 0; }

/* Mobile toggle */
.menu-toggle { display: none; color: #fff; padding: 0.375rem; border-radius: var(--r-sm); transition: background 0.2s; }
.menu-toggle:hover { background: rgba(255,255,255,0.1); }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  z-index: 199;
  padding: 1rem;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 0.625rem 0.75rem;
  color: var(--text-700); font-weight: 500;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  font-size: 0.9375rem;
}
.mobile-nav a:hover { background: var(--surface-2); color: var(--nc-blue); }
.mobile-nav .mobile-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }
.mobile-nav .mobile-cta { margin-top: 0.75rem; }

/* Responsive */
@media (max-width: 1023px) {
  .nav-links, .nav-phone, .nav-login { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .site-header.scrolled .menu-toggle { color: var(--text-900); }
  .lang-dropdown {
    width: min(24rem, calc(100vw - 1rem));
    column-count: 1;
  }
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb-bar {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  padding: 0.5rem 0;
}
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 0.375rem; }
.breadcrumb-list li { display: flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: var(--text-400); }
.breadcrumb-list a { color: var(--text-400); transition: color 0.2s; }
.breadcrumb-list a:hover { color: var(--nc-blue-lt); }
.breadcrumb-list .current { color: var(--nc-blue-lt); font-weight: 500; }
.breadcrumb-sep { color: #475569; }

/* ============================================================
   PAGE HERO (dark gradient – matches source file)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 55%, #0b1120 100%);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: rgba(37,99,235,0.18);
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 400px; height: 400px;
  background: rgba(99,102,241,0.1);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .inner { position: relative; z-index: 1; }
.page-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(37,99,235,0.2);
  border: 1px solid rgba(59,130,246,0.4);
  color: #93c5fd;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero .hero-desc { color: #94a3b8; font-size: 1.125rem; margin-bottom: 0; max-width: 42rem; }

.topic-strip {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}

.topic-strip-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.topic-strip-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-500);
}

.topic-strip-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: var(--nc-blue);
  font-size: 0.8125rem;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.topic-pill:hover {
  background: #dbeafe;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.topic-pill-muted {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-600);
}

.news-board {
  margin-bottom: 2.5rem;
}

.news-board-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.news-board-link {
  color: var(--nc-blue);
  font-size: 0.875rem;
  font-weight: 700;
}

.news-board-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr);
}

.lead-story,
.secondary-story,
.topic-hub-card,
.topic-list-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.lead-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  min-height: 100%;
}

.lead-story-media {
  min-height: 100%;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.lead-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lead-story-body,
.secondary-story-body,
.topic-list-card {
  padding: 1.5rem;
}

.lead-story-title {
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
  font-size: clamp(1.5rem, 1.1rem + 1vw, 2.25rem);
  line-height: 1.15;
}

.lead-story-excerpt,
.secondary-story-excerpt,
.topic-list-card p {
  color: var(--text-500);
  font-size: 0.9375rem;
}

.lead-story-meta,
.secondary-story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--text-400);
  font-size: 0.8125rem;
}

.secondary-stories {
  display: grid;
  gap: 1rem;
}

.secondary-story-title {
  margin-top: 0.875rem;
  margin-bottom: 0.625rem;
  font-size: 1.125rem;
  line-height: 1.3;
}

/* ============================================================
   BLOG ARCHIVE LAYOUT
   ============================================================ */
.blog-layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .blog-layout { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 22rem); }
}

/* ============================================================
   POST CARDS
   ============================================================ */
.posts-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1280px) {
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card.is-featured { grid-column: 1 / -1; }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.post-card-thumb { position: relative; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 14rem; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.03); }
.post-card-thumb-placeholder {
  height: 14rem; background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex; align-items: center; justify-content: center;
}
.post-card-thumb-placeholder svg { width: 3rem; height: 3rem; color: #93c5fd; opacity: 0.5; }

.post-card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.post-card-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.625rem;
  margin-bottom: 0.875rem;
  font-size: 0.75rem; color: var(--text-500);
}
.post-card-meta a { transition: color 0.2s; }
.post-card-meta a:hover { color: var(--nc-blue); }
.post-card-meta .meta-sep { color: var(--border); }

.post-card-cat {
  background: var(--nc-blue-pale); color: var(--nc-blue);
  border: 1px solid #bfdbfe;
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  padding: 0.1875rem 0.625rem;
  border-radius: 9999px;
  transition: background 0.2s;
}
.post-card-cat:hover { background: #dbeafe; }

.post-card-title {
  font-size: 1.25rem; font-weight: 700; color: var(--text-900);
  margin-bottom: 0.625rem; line-height: 1.35;
}
.post-card-title a { transition: color 0.2s; }
.post-card-title a:hover { color: var(--nc-blue); }

.post-card-excerpt { font-size: 0.9375rem; color: var(--text-500); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }

.post-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.post-card-author { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-500); }
.post-card-author img { width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.post-card-author-name { font-weight: 600; color: var(--text-700); }
.post-card-read-time { font-size: 0.8125rem; color: var(--text-400); }

/* Featured post (first) */
.post-card.is-featured { border-color: var(--border-h); }
.post-card.is-featured .post-card-thumb img { height: 20rem; }
.post-card.is-featured .post-card-title { font-size: 1.625rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination .page-numbers {
  min-width: 2.5rem; height: 2.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-md); border: 1px solid var(--border);
  background: var(--surface); color: var(--text-600);
  font-size: 0.875rem; font-weight: 500;
  padding: 0 0.75rem;
  transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--nc-blue); color: var(--nc-blue); background: var(--nc-blue-pale); }
.pagination .page-numbers.current { background: var(--nc-blue); border-color: var(--nc-blue); color: #fff; }
.pagination .page-numbers.dots { border: none; background: none; cursor: default; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.widget-header {
  padding: 1.25rem 1.5rem 0;
}
.widget-title {
  font-size: 0.875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.075em;
  color: var(--text-500);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.widget-body { padding: 1.25rem 1.5rem 1.5rem; }

/* Search widget */
.widget-search form { display: flex; gap: 0; }
.widget-search .search-field {
  flex: 1; padding: 0.625rem 0.875rem;
  border: 1px solid var(--border); border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--surface-2); color: var(--text-900);
  font-size: 0.875rem; outline: none; transition: border-color 0.2s;
}
.widget-search .search-field:focus { border-color: var(--nc-blue); }
.widget-search .search-submit {
  padding: 0.625rem 1rem; background: var(--nc-blue); color: #fff;
  border: 1px solid var(--nc-blue); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.widget-search .search-submit:hover { background: var(--nc-blue-h); }

/* Category/tag list */
.widget-list { display: flex; flex-direction: column; gap: 0.25rem; }
.widget-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4375rem 0.625rem;
  border-radius: var(--r-sm); font-size: 0.875rem; color: var(--text-600);
  transition: background 0.15s, color 0.15s;
}
.widget-list li a:hover { background: var(--nc-blue-pale); color: var(--nc-blue); }
.widget-list .count {
  background: var(--surface-2); color: var(--text-400);
  font-size: 0.6875rem; font-weight: 600;
  padding: 0.125rem 0.5rem; border-radius: 9999px;
}

/* Recent posts widget */
.widget-posts { display: flex; flex-direction: column; gap: 1rem; }
.widget-post { display: flex; gap: 0.75rem; align-items: flex-start; }
.widget-post-thumb { width: 4rem; height: 4rem; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; }
.widget-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.widget-post-thumb-ph { width: 100%; height: 100%; background: var(--nc-blue-pale); display: flex; align-items: center; justify-content: center; }
.widget-post-title { font-size: 0.8125rem; font-weight: 600; color: var(--text-700); line-height: 1.4; margin-bottom: 0.25rem; transition: color 0.2s; }
.widget-post a:hover .widget-post-title { color: var(--nc-blue); }
.widget-post-date { font-size: 0.6875rem; color: var(--text-400); }

/* Tags widget */
.widget-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.widget-tags a {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 9999px; font-size: 0.75rem; font-weight: 500; color: var(--text-600);
  transition: all 0.2s;
}
.widget-tags a:hover { background: var(--nc-blue); border-color: var(--nc-blue); color: #fff; }

/* CTA widget */
.widget-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  border-color: #1d4ed8;
  color: #fff; padding: 1.5rem; text-align: center;
}
.widget-cta h3 { color: #fff; font-size: 1rem; margin-bottom: 0.5rem; }
.widget-cta p { color: #bfdbfe; font-size: 0.8125rem; margin-bottom: 1rem; }
.widget-cta .btn { width: 100%; justify-content: center; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-layout {
  display: grid; gap: 3rem; grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) { .single-layout { grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 22rem); } }
.single-layout > :first-child { min-width: 0; }

/* Hero for single post */
.post-hero {
  background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 55%, #0b1120 100%);
  padding: 4rem 0 3rem; position: relative; overflow: hidden;
}
.post-hero::before {
  content: '';
  position: absolute; top: -20%; right: -10%; width: 500px; height: 500px;
  background: rgba(37,99,235,0.15); filter: blur(90px); border-radius: 50%; pointer-events: none;
}
.post-hero .inner { position: relative; z-index: 1; max-width: var(--max-w-content); }
.post-meta-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.post-meta-bar time, .post-meta-bar .read-time { font-size: 0.8125rem; color: #94a3b8; }
.post-hero h1 { color: #fff; margin-bottom: 1rem; }
.post-hero .post-excerpt { color: #94a3b8; font-size: 1.125rem; line-height: 1.7; }

/* Author in post hero */
.post-hero-author { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.post-hero-author-avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); overflow: hidden; flex-shrink: 0; }
.post-hero-author-name { font-weight: 600; color: #fff; font-size: 0.9375rem; }
.post-hero-author-role { font-size: 0.75rem; color: #94a3b8; }

/* Featured image */
.post-featured-image { margin-bottom: 2.5rem; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.post-featured-image img { width: 100%; height: auto; }

/* Entry content */
.entry-content { font-size: clamp(1rem, 0.98rem + 0.25vw, 1.125rem); line-height: 1.8; min-width: 0; }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 { font-size: 1.625rem; color: var(--text-900); margin-top: 2.5rem; padding-top: 0.25rem; border-top: 2px solid var(--nc-blue-pale); }
.entry-content h3 { font-size: 1.25rem; color: var(--text-900); margin-top: 2rem; }
.entry-content h4 { font-size: 1.125rem; color: var(--text-900); margin-top: 1.75rem; }
.entry-content p  { color: var(--text-600); }
.entry-content strong { color: var(--text-900); font-weight: 600; }
.entry-content a { color: var(--nc-blue); text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
.entry-content a:hover { color: var(--nc-blue-h); }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; color: var(--text-600); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; line-height: 1.7; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

.entry-content blockquote {
  border-left: 4px solid var(--nc-blue);
  padding: 1.25rem 1.5rem;
  background: var(--nc-blue-pale);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  color: var(--text-700); font-style: italic;
}
.entry-content blockquote p { color: var(--text-700); }
.entry-content blockquote cite { font-size: 0.875rem; color: var(--text-500); font-style: normal; }

.entry-content code {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 0.125rem 0.375rem;
  font-size: 0.875em; font-family: 'JetBrains Mono','Fira Code','Courier New',monospace;
  color: #be185d;
}
.entry-content pre {
  background: #0f172a; border-radius: var(--r-lg);
  padding: 1.5rem; overflow-x: auto; margin: 2rem 0;
}
.entry-content pre code { background: none; border: none; padding: 0; color: #e2e8f0; font-size: 0.875rem; }

.entry-content table {
  display: block;
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}
.entry-content th { background: var(--surface-2); color: var(--text-900); font-weight: 600; font-size: 0.875rem; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); }
.entry-content td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-600); font-size: 0.9375rem; }
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--surface-2); }

.entry-content img { border-radius: var(--r-lg); box-shadow: var(--shadow-md); margin: 2rem 0; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { text-align: center; font-size: 0.8125rem; color: var(--text-400); margin-top: 0.5rem; }

/* Callout boxes */
.entry-content .callout {
  padding: 1.25rem 1.5rem; border-radius: var(--r-lg); margin: 2rem 0;
  display: flex; gap: 0.875rem; align-items: flex-start;
}
.entry-content .callout-info  { background: var(--nc-blue-pale); border: 1px solid #bfdbfe; }
.entry-content .callout-warn  { background: var(--amber-bg); border: 1px solid #fde68a; }
.entry-content .callout-tip   { background: var(--green-bg); border: 1px solid var(--green-border); }

/* Table of contents */
.toc {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem; margin: 2rem 0;
}
.toc-title { font-weight: 700; color: var(--text-900); margin-bottom: 1rem; font-size: 0.9375rem; }
.toc ol { padding-left: 1.25rem; list-style: decimal; }
.toc li { margin-bottom: 0.375rem; }
.toc a { color: var(--nc-blue); font-size: 0.9rem; text-decoration: none; transition: color 0.2s; }
.toc a:hover { text-decoration: underline; }

/* Tags & share row */
.post-footer-row {
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start;
  justify-content: space-between;
}
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.post-tags-label { font-size: 0.8125rem; font-weight: 600; color: var(--text-500); margin-right: 0.25rem; }
.post-tag {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-600); font-size: 0.75rem; font-weight: 500;
  padding: 0.25rem 0.75rem; border-radius: 9999px;
  transition: all 0.2s;
}
.post-tag:hover { background: var(--nc-blue); border-color: var(--nc-blue); color: #fff; }

/* Author box */
.author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.75rem; margin-top: 2.5rem;
}
.author-avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-avatar-placeholder {
  width: 100%; height: 100%; background: var(--nc-blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.25rem; color: #fff;
}
.author-name { font-size: 1rem; font-weight: 700; color: var(--text-900); margin-bottom: 0.25rem; }
.author-role { font-size: 0.8125rem; color: var(--text-500); margin-bottom: 0.625rem; }
.author-bio { font-size: 0.9rem; color: var(--text-600); line-height: 1.65; }

/* Post navigation */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav a {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  display: block;
}
.post-nav a:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.post-nav .nav-label { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.075em; color: var(--text-400); margin-bottom: 0.375rem; }
.post-nav .nav-title { font-size: 0.9375rem; font-weight: 600; color: var(--text-900); line-height: 1.4; }
.post-nav .next-post { text-align: right; }
@media (max-width: 639px) { .post-nav { grid-template-columns: 1fr; } }

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-posts { margin-top: 3rem; }
.related-posts-title { font-size: 1.375rem; font-weight: 700; color: var(--text-900); margin-bottom: 1.5rem; }
.related-posts-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.related-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--border-h); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.related-card-thumb img { width: 100%; height: 9rem; object-fit: cover; }
.related-card-thumb-ph { height: 9rem; background: var(--nc-blue-pale); display: flex; align-items: center; justify-content: center; }
.related-card-thumb-ph svg { width: 2rem; height: 2rem; color: #93c5fd; }
.related-card-body { padding: 1.25rem; }
.related-card-cat { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--nc-blue); margin-bottom: 0.5rem; }
.related-card-title { font-size: 0.9375rem; font-weight: 700; color: var(--text-900); line-height: 1.4; transition: color 0.2s; }
.related-card a:hover .related-card-title { color: var(--nc-blue); }
.related-card-date { font-size: 0.75rem; color: var(--text-400); margin-top: 0.5rem; }

.topic-hubs,
.more-topic { margin-top: 2.75rem; }

.topic-hubs-grid,
.topic-list-cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.topic-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.topic-hub-card:hover,
.topic-list-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.topic-hub-label {
  font-weight: 700;
  color: var(--text-900);
}

.topic-hub-cta {
  color: var(--nc-blue);
  font-size: 0.8125rem;
  font-weight: 700;
}

.topic-list-card h3 {
  font-size: 1rem;
  margin-bottom: 0.625rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.375rem; font-weight: 700; color: var(--text-900); margin-bottom: 1.5rem; }
.comment-list { list-style: none; }
.comment-list .comment { margin-bottom: 1.5rem; }
.comment-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem;
}
.comment-author-meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
.comment-author-meta img { border-radius: 50%; }
.comment-author-name { font-weight: 600; color: var(--text-900); font-size: 0.9375rem; }
.comment-date { font-size: 0.75rem; color: var(--text-400); }
.comment-content p { font-size: 0.9375rem; color: var(--text-600); line-height: 1.7; }
.comment-reply-link { font-size: 0.8125rem; color: var(--nc-blue); font-weight: 500; margin-top: 0.5rem; display: inline-block; }

/* Comment form */
.comment-form label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text-700); margin-bottom: 0.375rem; }
.comment-form input,
.comment-form textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); color: var(--text-900);
  font-size: 0.9375rem; font-family: var(--font); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--nc-blue); box-shadow: 0 0 0 3px rgba(37,99,235,0.12); }
.comment-form textarea { min-height: 7rem; resize: vertical; }
.comment-form .form-submit input[type="submit"] { display: inline-block; width: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--nav-bg);
  border-top: 1px solid var(--nav-border);
  padding: 4.5rem 0 2rem;
  color: #94a3b8;
}
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  margin-bottom: 3.5rem;
}
.footer-brand { max-width: 18rem; }
.footer-brand-info { font-size: 0.8125rem; line-height: 1.7; }
.footer-brand-info .company { color: #fff; font-weight: 600; margin-bottom: 0.25rem; display: block; }
.footer-brand-info p { margin-bottom: 0.25rem; }

.footer-social { display: flex; gap: 0.625rem; margin-top: 1.25rem; }
.footer-social a {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: #1e293b; border: 1px solid #334155;
  border-radius: var(--r-md); color: #94a3b8;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--nc-blue); color: #fff; border-color: var(--nc-blue); }
.footer-social svg { width: 0.9375rem; height: 0.9375rem; }

.footer-col h4 { color: #fff; font-size: 0.9375rem; font-weight: 600; margin-bottom: 1.25rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col ul li a { font-size: 0.875rem; color: #94a3b8; transition: color 0.2s; }
.footer-col ul li a:hover { color: #60a5fa; }
.footer-phone { display: flex; align-items: center; gap: 0.625rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #1e293b; }
.footer-phone svg { color: var(--nc-blue-lt); width: 1.125rem; height: 1.125rem; flex-shrink: 0; }
.footer-phone a { color: #fff; font-weight: 700; font-size: 0.875rem; transition: color 0.2s; }
.footer-phone a:hover { color: var(--nc-blue-lt); }

.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.75rem; font-size: 0.8125rem; color: #475569; }
.footer-bottom a { color: #64748b; text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s; }
.footer-bottom a:hover { color: #94a3b8; }

/* ============================================================
   SEARCH FORM (page)
   ============================================================ */
.search-box { display: flex; max-width: 28rem; margin: 0 auto; }
.search-box .search-field {
  flex: 1; padding: 0.75rem 1rem;
  border: 1px solid var(--border); border-right: none;
  border-radius: var(--r-md) 0 0 var(--r-md);
  background: var(--surface); color: var(--text-900);
  font-size: 0.9375rem; outline: none; transition: border-color 0.2s;
}
.search-box .search-field:focus { border-color: var(--nc-blue); }
.search-box .search-submit {
  padding: 0.75rem 1.25rem; background: var(--nc-blue); color: #fff;
  border: 1px solid var(--nc-blue); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: background 0.2s;
  display: flex; align-items: center; gap: 0.375rem;
}
.search-box .search-submit:hover { background: var(--nc-blue-h); }

/* ============================================================
   WP ALIGNMENT / CAPTION
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; max-width: 100%; }
.wp-caption { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.5rem; }
.wp-caption-text { font-size: 0.8125rem; color: var(--text-500); text-align: center; padding: 0.375rem; }
.gallery { display: grid; gap: 0.75rem; }
.gallery-columns-2 { grid-template-columns: repeat(2,1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3,1fr); }
.gallery-item img { border-radius: var(--r-md); width: 100%; }

@media (min-width: 1440px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
  .page-hero .hero-desc { max-width: 48rem; font-size: 1.1875rem; }
  .post-card.is-featured .post-card-thumb img { height: 24rem; }
}

/* ============================================================
   UTILITY / ACCESSIBILITY
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }
.text-blue { color: var(--nc-blue); }
.text-muted { color: var(--text-500); }

/* Toast */
.nc-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; padding: 0.875rem 1.5rem;
  border-radius: var(--r-lg); font-size: 0.875rem; font-weight: 600;
  box-shadow: var(--shadow-xl);
  transform: translateY(80px); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  max-width: 22rem;
}
.nc-toast.show { transform: translateY(0); opacity: 1; }
.nc-toast.success { background: #064e3b; color: #6ee7b7; border: 1px solid #065f46; }
.nc-toast.error   { background: #450a0a; color: #fca5a5; border: 1px solid #7f1d1d; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .section-heading-row,
  .news-board-header,
  .topic-strip-group { align-items: flex-start; }
  .section-heading-row,
  .news-board-header {
    flex-direction: column;
  }
  .news-board-grid,
  .lead-story {
    grid-template-columns: 1fr;
  }
  .container { padding-left: 0.875rem; padding-right: 0.875rem; }
  .section { padding: 3rem 0; }
  .page-hero,
  .post-hero { padding: 3rem 0 2.5rem; }
  .page-hero .hero-desc,
  .post-hero .post-excerpt { font-size: 1rem; }
  .widget-search form,
  .search-box { flex-direction: column; gap: 0.75rem; }
  .widget-search .search-field,
  .search-box .search-field {
    border-right: 1px solid var(--border);
    border-radius: var(--r-md);
  }
  .widget-search .search-submit,
  .search-box .search-submit {
    width: 100%;
    justify-content: center;
    border-radius: var(--r-md);
  }
  .post-card-body,
  .author-box,
  .comment-body { padding: 1.25rem; }
  .lead-story-body,
  .secondary-story-body,
  .topic-list-card,
  .topic-hub-card { padding: 1.125rem; }
  .entry-content pre,
  .toc { padding: 1rem; }
  .entry-content table { font-size: 0.9375rem; }
  .post-nav { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .related-posts-grid { grid-template-columns: 1fr; }
  .nc-toast { left: 1rem; right: 1rem; bottom: 1rem; max-width: 100%; }
}

@keyframes spin { to { transform: rotate(360deg); } }
