/**
 * NexaMOS Blog Design System & Authority Theme
 *
 * Sourced from NexaMOS Blog Master Reference & Web Application Aesthetics.
 * Dark Mode, Glassmorphism, Modern Typography & Responsive Layout.
 */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;0,900;1,400;1,700&family=Roboto+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --bg-primary: #060913;
  --bg-secondary: #0c1222;
  --bg-card: rgba(16, 24, 40, 0.75);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --border-subtle: rgba(56, 189, 248, 0.15);
  --border-hover: rgba(56, 189, 248, 0.4);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-glow: rgba(56, 189, 248, 0.25);

  /* Landing Page Brand Semantic Tokens */
  --gr: #00d68f;
  --grd: rgba(0, 214, 143, 0.12);
  --bl: #4d9fff;
  --bld: rgba(77, 159, 255, 0.12);
  --pu: #a78bfa;
  --pud: rgba(167, 139, 250, 0.12);
  --am: #fbbf24;

  --gradient-glow: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);

  --font-sans: 'Google Sans', 'Google Sans Text', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Google Sans Mono', 'Roboto Mono', monospace;

  --max-w-content: 840px;
  --max-w-container: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background ambient lights */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* -----------------------------------------------------------------------------
 * NAVIGATION HEADER
 * -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(6, 9, 19, 0.85);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}

.site-nav-top {
  display: flex;
  align-items: center;
  order: 2;
  margin-left: 0.75rem;
}

.site-nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  order: 1;
}

.site-nav .brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav .brand-logo-img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, filter 0.25s ease;
}

.site-nav .brand-logo:hover .brand-logo-img {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.site-nav-main nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-left: auto;
}

.site-nav nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
}

.site-nav nav a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav nav a.active {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}

/* Language Switcher */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  padding: 2px 3px;
  gap: 2px;
  margin-left: 0.5rem;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.lang-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.lang-flag {
  font-size: 12px;
  line-height: 1;
}

/* -----------------------------------------------------------------------------
 * MAIN LAYOUT & HERO
 * -------------------------------------------------------------------------- */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-w-container);
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.blog-hero {
  text-align: center;
  max-width: 760px;
  margin: 1rem auto 4rem;
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blog-hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -----------------------------------------------------------------------------
 * EDITORIAL TERRITORY FILTER & FREE SEARCH CONTROLS
 * -------------------------------------------------------------------------- */
.blog-filter-section {
  max-width: 860px;
  margin: -1.5rem auto 3.5rem;
  padding: 0 0.5rem;
  position: relative;
  z-index: 5;
}

.filter-controls-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

/* 1. Territory Filter Toolbar */
.territory-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 6px;
  background: rgba(12, 18, 34, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  max-width: 100%;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  padding: 7px 16px 7px 14px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  user-select: none;
}

.filter-btn-content {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.filter-btn-text-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.filter-btn-label {
  font-weight: 600;
  line-height: 1.2;
}

.filter-btn-detail {
  display: none; /* hidden on desktop pill toolbar */
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.filter-btn:active {
  transform: translateY(0);
}

/* Bullets */
.filter-bullet {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bullet-all {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
}

.bullet-intelligence {
  background: var(--pu);
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.6);
}

.bullet-strategy {
  background: var(--bl);
  box-shadow: 0 0 8px rgba(77, 159, 255, 0.6);
}

.bullet-tactical {
  background: var(--gr);
  box-shadow: 0 0 8px rgba(0, 214, 143, 0.6);
}

/* Count Badges inside Filter Buttons */
.filter-count-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 99px;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  transition: all 0.2s ease;
}

/* Active Button States with Distinct Brand Glows */
.filter-btn.active[data-filter-territory="ALL"] {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}
.filter-btn.active[data-filter-territory="ALL"] .filter-count-badge {
  background: rgba(56, 189, 248, 0.25);
  color: #fff;
}

.filter-btn.active[data-filter-territory="INTELLIGENCE"] {
  background: var(--pud);
  color: var(--pu);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 0 16px rgba(167, 139, 250, 0.22);
}
.filter-btn.active[data-filter-territory="INTELLIGENCE"] .filter-count-badge {
  background: rgba(167, 139, 250, 0.28);
  color: #fff;
}

.filter-btn.active[data-filter-territory="STRATEGY"] {
  background: var(--bld);
  color: var(--bl);
  border-color: rgba(77, 159, 255, 0.4);
  box-shadow: 0 0 16px rgba(77, 159, 255, 0.22);
}
.filter-btn.active[data-filter-territory="STRATEGY"] .filter-count-badge {
  background: rgba(77, 159, 255, 0.28);
  color: #fff;
}

.filter-btn.active[data-filter-territory="TACTICAL"] {
  background: var(--grd);
  color: var(--gr);
  border-color: rgba(0, 214, 143, 0.4);
  box-shadow: 0 0 16px rgba(0, 214, 143, 0.22);
}
.filter-btn.active[data-filter-territory="TACTICAL"] .filter-count-badge {
  background: rgba(0, 214, 143, 0.28);
  color: #060913;
}

/* 2. Free Search Bar */
.blog-search-bar-wrap {
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.search-input-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(16, 24, 40, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0 14px 0 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-input-inner:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2), 0 12px 28px rgba(0, 0, 0, 0.4);
  background: rgba(18, 28, 48, 0.95);
}

.search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-input-inner:focus-within .search-icon {
  color: var(--accent-cyan);
}

.article-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.article-search-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.search-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.search-clear-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: scale(1.08);
}

.search-status-bar {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-align: center;
  min-height: 18px;
}

/* 3. Empty State */
.filter-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: rgba(16, 24, 40, 0.4);
  border: 1px dashed var(--border-subtle);
  border-radius: 20px;
  margin: 1rem 0;
  backdrop-filter: blur(8px);
}

.empty-icon-wrap {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.filter-empty-state h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.filter-empty-state p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.btn-reset-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 8px 20px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset-filter:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* -----------------------------------------------------------------------------
 * ARTICLE GRID & CARDS (INDEX PAGE)
 * -------------------------------------------------------------------------- */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 32px -8px var(--accent-glow);
  background: var(--bg-card-hover);
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-link img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

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

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.card-meta time {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.card-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  transition: color 0.2s ease;
}

.blog-card:hover .card-content h2 {
  color: var(--accent-cyan);
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-content .read-more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s ease;
}

.blog-card:hover .read-more {
  gap: 0.6rem;
}

.no-articles {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  grid-column: 1 / -1;
  padding: 4rem;
}

/* -----------------------------------------------------------------------------
 * ARTICLE VIEW PAGE
 * -------------------------------------------------------------------------- */
.primary-article {
  max-width: var(--max-w-content);
  margin: 0 auto;
}

.article-header {
  margin-bottom: 2.5rem;
}

/* -----------------------------------------------------------------------------
 * UNIFIED BADGE SYSTEM (Consistent with Landing Page)
 * -------------------------------------------------------------------------- */
.blog-dyn-badges,
.article-meta-badge {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.blog-dyn-badge,
.territory-tag,
.article-type-tag,
.card-meta .territory {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 3.5px 10px;
  border-radius: 99px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

/* Tactical: Emerald Green (#00d68f) */
.badge-tactical,
.territory-tactical {
  background: var(--grd) !important;
  color: var(--gr) !important;
  border: 1px solid rgba(0, 214, 143, 0.35) !important;
  box-shadow: 0 0 10px rgba(0, 214, 143, 0.12);
}

/* Strategy: Electric Blue (#4d9fff) */
.badge-strategy,
.territory-strategy {
  background: var(--bld) !important;
  color: var(--bl) !important;
  border: 1px solid rgba(77, 159, 255, 0.35) !important;
  box-shadow: 0 0 10px rgba(77, 159, 255, 0.12);
}

/* Intelligence: Soft Purple (#a78bfa) */
.badge-intelligence,
.territory-intelligence {
  background: var(--pud) !important;
  color: var(--pu) !important;
  border: 1px solid rgba(167, 139, 250, 0.35) !important;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.12);
}

/* Article Type Format Badge */
.badge-type,
.article-type-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-secondary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Blog Hero Pill Badge (Synchronized with Landing Page Hero Badge) */
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(0, 214, 143, 0.12);
  border: 1px solid rgba(0, 214, 143, 0.35);
  color: var(--gr);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.hero-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gr);
  box-shadow: 0 0 10px var(--gr);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(0, 214, 143, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 214, 143, 0);
  }
}

.article-header h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.article-dek {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #94a3b8;
  margin-bottom: 1.75rem;
  border-left: 3px solid var(--accent-cyan);
  padding-left: 1.25rem;
}

.article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.author-name {
  font-weight: 700;
  color: var(--text-primary);
}

.author-role::before {
  content: '•';
  margin-right: 0.75rem;
  color: var(--text-muted);
}

.article-byline time::before {
  content: '•';
  margin-right: 0.75rem;
  color: var(--text-muted);
}

.article-hero-image {
  margin: 2.5rem 0 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.article-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-hero-image figcaption {
  padding: 0.9rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(12, 18, 34, 0.9);
  border-top: 1px solid var(--border-subtle);
  font-style: italic;
}

/* -----------------------------------------------------------------------------
 * ARTICLE BODY SECTIONS
 * -------------------------------------------------------------------------- */
.article-body {
  font-size: 1.125rem;
  color: #e2e8f0;
}

.article-section {
  margin-bottom: 2.75rem;
}

.article-section h2 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 2.25rem 0 1rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.5rem;
}

.article-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-glow);
  border-radius: 2px;
}

.article-section p {
  margin-bottom: 1.4rem;
  line-height: 1.8;
  color: #cbd5e1;
}

.article-section p strong {
  color: #ffffff;
  font-weight: 700;
}

.article-section p em {
  font-style: italic;
  color: #f1f5f9;
}

.article-section p code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* -----------------------------------------------------------------------------
 * CITATIONS ASIDE
 * -------------------------------------------------------------------------- */
.article-citations {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.article-citations h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

.article-citations ol {
  padding-left: 1.4rem;
  color: var(--text-secondary);
}

.article-citations li {
  margin-bottom: 0.75rem;
  font-size: 0.925rem;
  line-height: 1.6;
}

.article-citations a {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px dashed rgba(56, 189, 248, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.article-citations a:hover {
  color: #7dd3fc;
  border-bottom-style: solid;
}

.article-citations .publisher {
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
 * FOOTER
 * -------------------------------------------------------------------------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------------------------
 * ARTICLE & CARD SOCIAL SHARE BUTTONS
 * -------------------------------------------------------------------------- */
.article-share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.1rem 0 0.5rem;
  font-size: 0.875rem;
}

.share-bar-label {
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.425rem 0.85rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: var(--font-sans);
  line-height: 1;
  user-select: none;
  -webkit-user-select: none;
}

.share-btn .share-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.share-btn:hover .share-icon {
  transform: scale(1.1);
}

/* Platform specific styles */
.share-whatsapp {
  background: rgba(37, 211, 102, 0.08);
  border-color: rgba(37, 211, 102, 0.28);
  color: #25d366;
}
.share-whatsapp:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.6);
  color: #4ade80;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.share-instagram {
  background: rgba(225, 48, 108, 0.08);
  border-color: rgba(225, 48, 108, 0.28);
  color: #f43f5e;
}
.share-instagram:hover {
  background: linear-gradient(135deg, rgba(240, 148, 51, 0.2), rgba(220, 39, 67, 0.2), rgba(188, 24, 136, 0.2));
  border-color: rgba(225, 48, 108, 0.6);
  color: #fb7185;
  box-shadow: 0 0 14px rgba(225, 48, 108, 0.35);
  transform: translateY(-1px);
}

.share-facebook {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.28);
  color: #3b82f6;
}
.share-facebook:hover {
  background: rgba(24, 119, 242, 0.18);
  border-color: rgba(24, 119, 242, 0.6);
  color: #60a5fa;
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.3);
  transform: translateY(-1px);
}

.share-copy {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--accent-cyan);
}
.share-copy:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.55);
  color: #7dd3fc;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
  transform: translateY(-1px);
}

/* Article Bottom Share CTA Box */
.article-share-cta {
  margin: 3.5rem 0 2.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(16, 24, 40, 0.85) 0%, rgba(30, 41, 59, 0.6) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.share-cta-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.share-cta-icon {
  color: var(--accent-cyan);
  font-size: 1.15rem;
  line-height: 1;
}

.article-share-cta h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Blog Card Quick-Share Row */
.card-share-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(12, 18, 34, 0.65);
  margin-top: auto;
}

.card-share-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-share-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.card-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
}

.card-share-btn .share-icon {
  width: 16px;
  height: 16px;
}

.card-share-btn:hover {
  transform: translateY(-2px);
}

/* -----------------------------------------------------------------------------
 * TOAST NOTIFICATION
 * -------------------------------------------------------------------------- */
.nexamos-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.94);
  border: 1px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #f8fafc;
  font-size: 0.885rem;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nexamos-toast.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
}

/* -----------------------------------------------------------------------------
 * LANGUAGE SWITCH SUGGESTION BANNER (OPTION A: HIGH-CONTRAST LIGHT SURFACE)
 * -------------------------------------------------------------------------- */
.nexamos-lang-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  max-width: 480px;
  width: calc(100% - 48px);
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  pointer-events: none;
}

.nexamos-lang-banner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nexamos-lang-banner.dismissing {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.lang-banner-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.4), 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lang-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lang-banner-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.lang-banner-title {
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lang-banner-sub {
  font-family: var(--font-sans);
  font-size: 0.775rem;
  font-weight: 400;
  color: #64748b;
  line-height: 1.25;
}

.lang-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-banner-btn-dismiss {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.lang-banner-btn-dismiss:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.lang-banner-btn-dismiss:active {
  transform: scale(0.97);
}

.lang-banner-btn-switch {
  background: #0284c7;
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.825rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.28);
  white-space: nowrap;
}

.lang-banner-btn-switch:hover {
  background: #0369a1;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.38);
}

.lang-banner-btn-switch:active {
  transform: translateY(0) scale(0.97);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .site-nav {
    flex-direction: column;
    padding: 0.5rem 1rem 0.65rem;
    gap: 0.45rem;
  }

  /* Row 1: Language switcher alone */
  .site-nav-top {
    order: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .site-nav-top .lang-switch-wrap {
    margin-left: 0;
  }

  /* Row 2: Brand Logo & Navigation Links */
  .site-nav-main {
    order: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-right: 0;
  }

  .site-nav .brand-logo-img {
    height: 34px;
    max-width: 120px;
  }

  .site-nav-main nav {
    margin-left: 0;
    gap: 0.45rem;
    display: flex;
    align-items: center;
  }

  .site-nav nav a {
    padding: 0.35rem 0.6rem;
    font-size: 0.825rem;
    white-space: nowrap;
  }

  .lang-btn {
    padding: 3px 6px;
    font-size: 10px;
  }

  .blog-filter-section {
    margin: -1rem auto 2.5rem;
    width: 100%;
    padding: 0 0.5rem;
  }

  /* 4 baris vertikal khusus mobile: 1 baris = 1 tombol filter + detail */
  .territory-filter-bar {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-radius: 18px;
    padding: 8px;
    gap: 8px;
    background: rgba(12, 18, 34, 0.85);
    border: 1px solid var(--border-subtle);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.4);
  }

  .filter-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 14px;
    background: rgba(16, 24, 40, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: normal;
  }

  .filter-btn-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
  }

  .filter-btn .filter-bullet {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
  }

  .filter-btn-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    min-width: 0;
  }

  .filter-btn-label {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
  }

  .filter-btn-detail {
    display: block;
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.35;
    white-space: normal;
    transition: color 0.2s ease;
  }

  .filter-btn:hover .filter-btn-detail {
    color: var(--text-secondary);
  }

  .filter-btn.active .filter-btn-detail {
    color: var(--text-secondary);
    opacity: 0.9;
  }

  .filter-btn .filter-count-badge {
    margin-left: 12px;
    font-size: 0.78rem;
    padding: 3px 9px;
    border-radius: 99px;
    flex-shrink: 0;
  }

  .search-input-inner {
    padding: 0 10px 0 14px;
    border-radius: 12px;
  }

  .article-search-input {
    font-size: 0.9rem;
    padding: 10px 8px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-header h1 {
    font-size: 2rem;
  }

  .article-share-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-share-cta {
    padding: 1.25rem;
  }

  .nexamos-toast {
    width: 90%;
    max-width: 380px;
    font-size: 0.825rem;
    padding: 0.65rem 1.1rem;
    bottom: 1.5rem;
  }

  .nexamos-lang-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    max-width: 100%;
  }

  .lang-banner-card {
    padding: 12px 14px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .lang-banner-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .lang-banner-actions {
    justify-content: flex-end;
    width: 100%;
  }
}

/* -----------------------------------------------------------------------------
 * BILINGUAL TOGGLE & LANGUAGE BLOCKS
 * -------------------------------------------------------------------------- */
.article-lang-block,
.card-lang-block {
  display: block;
  animation: fadeInLang 0.2s ease-in-out;
}

@keyframes fadeInLang {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 1;
  }
}