/* ══════════════════════════════════════════
   justsocit.com — Main Stylesheet
   ══════════════════════════════════════════ */

:root {
  --navy:      #0d1b2e;
  --navy-mid:  #122340;
  --blue:      #1a3a5c;
  --blue-mid:  #1e4976;
  --accent:    #2e7fc1;
  --accent-lt: #4a9fd4;
  --sky:       #d0e8f5;
  --bg:        #f2f4f7;
  --surface:   #ffffff;
  --panel:     #eef1f5;
  --border:    #d4dce6;
  --text:      #1a2535;
  --text-mid:  #3d5068;
  --text-dim:  #6b82a0;
  --white:     #ffffff;
  --serif:     'Lora', Georgia, serif;
  --sans:      'Sora', sans-serif;
  --mono:      'JetBrains Mono', monospace;
  --crit:      #c0392b;
  --high:      #e67e22;
  --med:       #2980b9;
  --low:       #27ae60;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

/* ── TOP BAR ── */
.topbar {
  background: var(--navy);
  padding: 0.4rem clamp(1rem,4vw,3rem);
  display: flex; justify-content: space-between; align-items: center;
}
.topbar-left { font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }
.topbar-right { display: flex; gap: 1.25rem; }
.topbar-right a { font-family: var(--mono); font-size: 0.65rem; color: rgba(255,255,255,0.45); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; }
.topbar-right a:hover { color: var(--sky); }

/* ── MASTHEAD ── */
.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem,4vw,3rem);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 1px 12px rgba(13,27,46,0.08);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  height: 66px; gap: 2rem;
}
.logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-shield {
  width: 38px; height: 38px; border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-mid), var(--navy));
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(13,27,46,0.25); flex-shrink: 0;
}
.logo-shield svg { width: 20px; height: 20px; fill: var(--white); }
.logo-text { font-family: var(--sans); font-size: 1.25rem; font-weight: 700; color: var(--navy); }
.logo-text span { color: var(--accent); }
.logo-sub { font-size: 0.62rem; color: var(--text-dim); display: block; margin-top: -3px; letter-spacing: 0.04em; }

/* Nav */
.site-nav { display: flex; gap: 0; }
.site-nav a, .nav-menu a {
  font-size: 0.8rem; font-weight: 500;
  color: var(--text-mid); text-decoration: none;
  padding: 0.45rem 0.85rem; border-radius: 6px;
  transition: all 0.18s; display: inline-block;
}
.site-nav a:hover, .site-nav a.active,
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); background: var(--sky); }
.nav-menu { display: flex; gap: 0; list-style: none; }
.nav-menu li a { font-size: 0.8rem; }

/* Search */
.search-wrap {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.4rem 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,127,193,0.1); }
.search-wrap svg { color: var(--text-dim); width: 14px; height: 14px; flex-shrink: 0; }
.search-wrap input, .search-wrap form input[type="text"] {
  background: transparent; border: none; outline: none;
  font-family: var(--sans); font-size: 0.8rem; color: var(--text); width: 160px;
}
.search-wrap input::placeholder { color: var(--text-dim); }

/* Mobile toggle */
.mobile-menu-toggle {
  display: none; background: transparent; border: none; cursor: pointer;
  color: var(--text); padding: 0.25rem;
}
.mobile-nav {
  display: none; background: var(--white); border-bottom: 1px solid var(--border);
  padding: 1rem clamp(1rem,4vw,3rem); flex-direction: column; gap: 0.25rem;
  position: fixed; top: 66px; left: 0; right: 0; z-index: 199;
  box-shadow: 0 8px 24px rgba(13,27,46,0.15);
}
.mobile-nav.open { display: flex; }
.mobile-nav-menu { display: flex; flex-direction: column; gap: 0.1rem; list-style: none; }
.mobile-nav-menu a { font-size: 0.9rem; color: var(--text-mid); text-decoration: none; padding: 0.5rem 0; display: block; border-bottom: 1px solid var(--border); }

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 55%, #1a4a7a 100%);
  padding: clamp(3rem,7vw,5.5rem) clamp(1rem,4vw,3rem);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 2 L58 17 L58 35 L30 50 L2 35 L2 17 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px; pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; right: -120px; top: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(46,127,193,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 3rem; align-items: center; position: relative; z-index: 1;
  animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px; padding: 0.3rem 0.9rem;
  font-size: 0.72rem; font-weight: 500; color: var(--sky);
  letter-spacing: 0.05em; margin-bottom: 1.25rem; width: fit-content;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; animation: pulse 2s ease infinite; flex-shrink: 0; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.6;transform:scale(1.3)} }

.hero-title {
  font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600; line-height: 1.2; color: var(--white);
  margin-bottom: 1.25rem; letter-spacing: -0.01em;
}
.hero-title em { font-style: italic; color: var(--sky); }
.hero-desc { font-size: 0.95rem; color: rgba(208,232,245,0.8); line-height: 1.8; max-width: 48ch; margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn {
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  padding: 0.7rem 1.4rem; border-radius: 8px; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 0.4rem; border: 1.5px solid;
  cursor: pointer;
}
.btn-white { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-white:hover { background: var(--sky); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-1px); }

.hero-card {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 1.75rem; backdrop-filter: blur(12px);
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-card-title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); margin-bottom: 1.25rem; }
.stat-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: rgba(255,255,255,0.1);
  border-radius: 10px; overflow: hidden; margin-bottom: 1.25rem;
}
.stat { background: rgba(13,27,46,0.4); padding: 1rem; text-align: center; }
.stat-num { font-family: var(--sans); font-size: 1.8rem; font-weight: 700; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.65rem; color: rgba(208,232,245,0.6); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cert-list { display: flex; flex-direction: column; gap: 0.5rem; }
.cert-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; color: rgba(208,232,245,0.8); }
.cert-check { width: 16px; height: 16px; border-radius: 50%; background: rgba(74,222,128,0.2); border: 1px solid #4ade80; display: grid; place-items: center; flex-shrink: 0; }
.cert-check svg { width: 8px; height: 8px; stroke: #4ade80; fill: none; stroke-width: 2.5; }

/* ── SECTION HEADS ── */
.section-head {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-label { display: flex; align-items: center; gap: 0.75rem; }
.section-pip { width: 4px; height: 22px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.section-label h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.section-sub { font-size: 0.75rem; color: var(--text-dim); }
.view-all { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.view-all:hover { gap: 0.5rem; }

/* ── TAGS ── */
.tag {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.22rem 0.6rem;
  border-radius: 4px; border: 1px solid; text-decoration: none;
  display: inline-block;
}
.tag-blue   { color: var(--accent);   border-color: rgba(46,127,193,0.3);  background: rgba(46,127,193,0.07); }
.tag-red    { color: var(--crit);     border-color: rgba(192,57,43,0.3);   background: rgba(192,57,43,0.07); }
.tag-orange { color: var(--high);     border-color: rgba(230,126,34,0.3);  background: rgba(230,126,34,0.07); }
.tag-green  { color: var(--low);      border-color: rgba(39,174,96,0.3);   background: rgba(39,174,96,0.07); }
.tag-navy   { color: var(--navy-mid); border-color: rgba(26,58,92,0.3);    background: rgba(26,58,92,0.06); }
.tag-sky    { color: var(--blue-mid); border-color: rgba(30,73,118,0.3);   background: rgba(30,73,118,0.07); }
.tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ── FEATURED CARD ── */
.featured-wrap { max-width: 1280px; margin: 3rem auto 0; padding: 0 clamp(1rem,4vw,3rem) 3rem; animation: fadeUp 0.8s 0.1s ease both; }
.featured-card {
  background: var(--surface); border-radius: 16px; border: 1px solid var(--border);
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
  box-shadow: 0 4px 24px rgba(13,27,46,0.08);
  transition: box-shadow 0.25s, transform 0.25s; cursor: pointer;
}
.featured-card:hover { box-shadow: 0 8px 40px rgba(13,27,46,0.14); transform: translateY(-2px); }
.featured-img {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue-mid) 100%);
  min-height: 320px; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 2rem; position: relative; overflow: hidden;
}
.featured-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.featured-img-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-60%); font-size: 7rem; opacity: 0.12; }
.f-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(192,57,43,0.15); border: 1px solid rgba(192,57,43,0.4);
  border-radius: 20px; padding: 0.25rem 0.7rem;
  font-size: 0.65rem; font-weight: 600; color: #e88080;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.75rem; width: fit-content; position: relative; z-index: 1;
}
.featured-img h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--white); line-height: 1.25; position: relative; z-index: 1; }
.featured-body { padding: 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.featured-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.3; color: var(--navy); }
.featured-excerpt { font-size: 0.875rem; color: var(--text-mid); line-height: 1.75; }
.featured-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: auto; }

.author { display: flex; align-items: center; gap: 0.6rem; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--navy));
  display: grid; place-items: center;
  font-size: 0.65rem; font-weight: 700; color: var(--white); flex-shrink: 0;
}
.author-name { font-size: 0.8rem; font-weight: 600; color: var(--navy); }
.author-meta { font-size: 0.65rem; color: var(--text-dim); }
.read-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; transition: gap 0.2s; }
.read-link:hover { gap: 0.55rem; }

/* ── POST GRID ── */
.posts-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(1rem,4vw,3rem) 3rem; animation: fadeUp 0.9s 0.2s ease both; }
.posts-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.post-card {
  background: var(--surface); border-radius: 12px; border: 1px solid var(--border);
  overflow: hidden; cursor: pointer;
  transition: box-shadow 0.22s, transform 0.22s; display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: 0 6px 30px rgba(13,27,46,0.12); transform: translateY(-3px); }
.card-stripe { height: 4px; }
.stripe-blue   { background: linear-gradient(90deg, var(--accent), var(--accent-lt)); }
.stripe-red    { background: linear-gradient(90deg, var(--crit), #e74c3c); }
.stripe-orange { background: linear-gradient(90deg, var(--high), #f39c12); }
.stripe-green  { background: linear-gradient(90deg, var(--low), #2ecc71); }
.stripe-navy   { background: linear-gradient(90deg, var(--navy), var(--blue)); }
.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.card-icon { font-size: 1.6rem; line-height: 1; }
.card-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; line-height: 1.35; color: var(--navy); }
.post-card:hover .card-title { color: var(--accent); }
.card-excerpt { font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; border-top: 1px solid var(--border); margin-top: auto; }
.diff { display: flex; align-items: center; gap: 0.35rem; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.diff-beg { color: var(--low); }
.diff-int { color: var(--high); }
.diff-adv { color: var(--crit); }
.read-time { font-size: 0.68rem; color: var(--text-dim); }

/* ── MAIN LAYOUT ── */
.main-layout {
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(1rem,4vw,3rem) 4rem;
  display: grid; grid-template-columns: 1fr 290px;
  gap: 2.5rem; animation: fadeUp 1s 0.3s ease both;
}

/* Post list */
.post-list { display: flex; flex-direction: column; }
.post-row {
  display: flex; gap: 1.25rem; padding: 1.5rem 0;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background 0.15s, padding-left 0.15s; border-radius: 8px;
}
.post-row:hover { background: var(--panel); padding-left: 0.75rem; }
.post-row-thumb {
  width: 100px; height: 100px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy), var(--blue-mid));
  flex-shrink: 0; display: grid; place-items: center; font-size: 2.2rem;
  overflow: hidden;
}
.post-row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-row-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.post-row-title { font-family: var(--serif); font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.3; margin-bottom: 0.3rem; transition: color 0.15s; }
.post-row:hover .post-row-title { color: var(--accent); }
.post-row-excerpt { font-size: 0.8rem; color: var(--text-dim); line-height: 1.65; margin-bottom: 0.5rem; }
.post-row-meta { display: flex; gap: 1.25rem; font-size: 0.68rem; color: var(--text-dim); flex-wrap: wrap; }

/* Pagination */
.pagination { margin-top: 2rem; }
.pagination ul { display: flex; gap: 0.35rem; list-style: none; }
.pagination .page-numbers {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 7px; font-size: 0.78rem; color: var(--text-mid);
  text-decoration: none; transition: all 0.15s;
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current { background: var(--accent); color: var(--white); border-color: var(--accent); }

.no-posts { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3rem; text-align: center; }
.no-posts h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); margin-bottom: 0.75rem; }
.no-posts p { color: var(--text-dim); }

/* ── SIDEBAR ── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 6px rgba(13,27,46,0.05); }
.widget-head { background: var(--navy); padding: 0.75rem 1.25rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.widget-body { padding: 1rem 1.25rem; }
.cat-list { display: flex; flex-direction: column; }
.cat-item { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.82rem; cursor: pointer; transition: color 0.15s; }
.cat-item:last-child { border-bottom: none; }
.cat-item a { color: var(--text-mid); text-decoration: none; }
.cat-item:hover a, .cat-item a:hover { color: var(--accent); }
.cat-count { background: var(--panel); border-radius: 20px; padding: 0.1rem 0.5rem; font-size: 0.65rem; font-weight: 600; color: var(--text-dim); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-cloud a { font-size: 0.68rem; padding: 0.25rem 0.6rem; border-radius: 6px; border: 1px solid var(--border); color: var(--text-mid); text-decoration: none; transition: all 0.15s; background: var(--panel); }
.tag-cloud a:hover { border-color: var(--accent); color: var(--accent); background: var(--sky); }
.popular-list { display: flex; flex-direction: column; gap: 0.85rem; }
.popular-item { display: flex; gap: 0.75rem; align-items: start; cursor: pointer; }
.popular-num { font-size: 1.4rem; font-weight: 700; color: var(--border); line-height: 1; flex-shrink: 0; width: 2rem; text-align: center; }
.popular-title { font-size: 0.82rem; font-weight: 600; color: var(--navy); line-height: 1.35; text-decoration: none; display: block; }
.popular-item:hover .popular-title { color: var(--accent); }
.popular-meta { font-size: 0.65rem; color: var(--text-dim); margin-top: 0.15rem; }

/* ── SINGLE POST ── */
.single-post-main { min-height: 70vh; }
.breadcrumb-wrap { background: var(--panel); border-bottom: 1px solid var(--border); padding: 0.75rem clamp(1rem,4vw,3rem); }
.breadcrumb { max-width: 1280px; margin: 0 auto; font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.single-layout {
  max-width: 1280px; margin: 2.5rem auto;
  padding: 0 clamp(1rem,4vw,3rem) 4rem;
  display: grid; grid-template-columns: 1fr 290px; gap: 2.5rem;
}
.article-body { min-width: 0; }
.article-header { margin-bottom: 2rem; }
.article-meta-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.article-date { font-size: 0.75rem; color: var(--text-dim); }
.article-title { font-family: var(--serif); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; line-height: 1.2; color: var(--navy); margin-bottom: 1.25rem; letter-spacing: -0.01em; }
.article-byline { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.article-stats { display: flex; align-items: center; gap: 1rem; }
.article-thumb { border-radius: 12px; overflow: hidden; margin-bottom: 1.5rem; }
.article-thumb img { width: 100%; height: auto; }

/* Article content styles */
.article-content { font-size: 1rem; line-height: 1.8; color: var(--text-mid); }
.article-content h2 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 2rem 0 0.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-content h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin: 1.5rem 0 0.6rem; }
.article-content h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 1.25rem 0 0.5rem; }
.article-content p { margin-bottom: 1.25rem; }
.article-content ul, .article-content ol { margin: 0.75rem 0 1.25rem 1.5rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content a { color: var(--accent); }
.article-content a:hover { text-decoration: underline; }
.article-content strong { font-weight: 700; color: var(--navy); }
.article-content em { font-style: italic; }
.article-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: var(--panel); border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--text-mid);
}
.article-content pre, .article-content code {
  font-family: var(--mono); font-size: 0.85rem;
  background: var(--navy); color: #c0d8f0;
  border-radius: 6px;
}
.article-content code { padding: 0.15rem 0.4rem; font-size: 0.82em; }
.article-content pre { padding: 1.25rem 1.5rem; overflow-x: auto; margin: 1.25rem 0; }
.article-content pre code { background: transparent; padding: 0; font-size: 0.85rem; }
.article-content img { border-radius: 8px; margin: 1.25rem 0; }
.article-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.9rem; }
.article-content th { background: var(--navy); color: var(--white); padding: 0.6rem 1rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.article-content td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); }
.article-content tr:nth-child(even) td { background: var(--panel); }
.article-content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.article-tags { margin-top: 2rem; display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.tags-label { font-size: 0.75rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; }
.tag-cloud-inline { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.author-box { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-top: 2.5rem; display: flex; gap: 1.25rem; align-items: start; }
.author-box-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-mid), var(--navy)); display: grid; place-items: center; font-size: 1rem; font-weight: 700; color: var(--white); flex-shrink: 0; }
.author-box-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.3rem; }
.author-box-bio { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 0.6rem; }
.author-box-link { font-size: 0.78rem; font-weight: 600; color: var(--accent); text-decoration: none; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.5rem; }
.post-nav-prev, .post-nav-next { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; cursor: pointer; transition: border-color 0.2s; }
.post-nav-prev:hover, .post-nav-next:hover { border-color: var(--accent); }
.post-nav-next { text-align: right; }
.post-nav-label { font-size: 0.65rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.3rem; }
.post-nav a { font-family: var(--serif); font-size: 0.9rem; font-weight: 600; color: var(--navy); text-decoration: none; display: block; line-height: 1.3; }
.post-nav a:hover { color: var(--accent); }

.comments-wrap { margin-top: 2.5rem; }
.comments-wrap .comment-form input, .comments-wrap .comment-form textarea {
  width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--sans); font-size: 0.875rem; background: var(--surface); color: var(--text);
  margin-bottom: 0.75rem; outline: none; transition: border-color 0.2s;
}
.comments-wrap .comment-form input:focus,
.comments-wrap .comment-form textarea:focus { border-color: var(--accent); }
.comments-wrap .comment-form textarea { min-height: 120px; resize: vertical; }
.comments-wrap .submit { background: var(--accent); color: var(--white); border: none; border-radius: 8px; padding: 0.7rem 1.4rem; font-family: var(--sans); font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.comments-wrap .submit:hover { background: var(--blue-mid); }
.comments-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 1.25rem; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.comment { background: var(--panel); border-radius: 10px; padding: 1rem 1.25rem; }
.comment-author { font-weight: 600; font-size: 0.85rem; color: var(--navy); }
.comment-metadata { font-size: 0.7rem; color: var(--text-dim); margin-bottom: 0.5rem; }
.comment-content p { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; }

/* ── NEWSLETTER ── */
.newsletter {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: clamp(2.5rem,6vw,4rem) clamp(1rem,4vw,3rem);
  position: relative; overflow: hidden;
}
.newsletter::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52' viewBox='0 0 60 52'%3E%3Cpath d='M30 2 L58 17 L58 35 L30 50 L2 35 L2 17 Z' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 60px 52px; pointer-events: none;
}
.newsletter-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.nl-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 0.25rem 0.75rem; font-size: 0.65rem; color: var(--sky); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; width: fit-content; }
.nl-title { font-family: var(--serif); font-size: clamp(1.4rem,3vw,2rem); font-weight: 600; color: var(--white); line-height: 1.2; margin-bottom: 0.4rem; }
.nl-sub { font-size: 0.82rem; color: rgba(208,232,245,0.7); }
.nl-form { display: flex; gap: 0.5rem; }
.nl-form input { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25); border-radius: 8px; color: var(--white); font-family: var(--sans); font-size: 0.82rem; padding: 0.7rem 1.1rem; outline: none; width: 220px; transition: border-color 0.2s; }
.nl-form input:focus { border-color: var(--sky); }
.nl-form input::placeholder { color: rgba(255,255,255,0.4); }
.nl-form button { background: var(--white); border: none; border-radius: 8px; color: var(--navy); font-family: var(--sans); font-size: 0.8rem; font-weight: 700; padding: 0.7rem 1.4rem; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.nl-form button:hover { background: var(--sky); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

/* ── FOOTER ── */
.site-footer { background: var(--navy); padding: clamp(2.5rem,5vw,4rem) clamp(1rem,4vw,3rem) 1.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-logo { font-family: var(--sans); font-size: 1.2rem; font-weight: 700; color: var(--white); display: block; text-decoration: none; margin-bottom: 0.75rem; }
.footer-logo span { color: var(--accent-lt); }
.footer-brand p { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 30ch; margin-bottom: 1rem; }
.footer-url { display: inline-block; font-family: var(--mono); font-size: 0.65rem; color: var(--accent-lt); text-decoration: none; border: 1px solid rgba(74,159,212,0.3); border-radius: 6px; padding: 0.3rem 0.7rem; background: rgba(74,159,212,0.08); }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { font-size: 0.8rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom a { color: var(--accent-lt); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-img { min-height: 220px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .main-layout, .single-layout { grid-template-columns: 1fr; }
  .sidebar, .single-sidebar { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .newsletter-inner { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .search-wrap { display: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .topbar { display: none; }
  .nl-form { flex-direction: column; }
  .nl-form input { width: 100%; }
}

/* ── MOBILE FIXES ── */
@media (max-width: 640px) {
  /* Full width content on mobile - no sidebar gap */
  .main-layout, .single-layout {
    display: block;
    padding: 0 1rem 3rem;
  }
  /* Archive page full width */
  .archive-content-wrap {
    display: block !important;
    padding: 0 1rem 3rem !important;
  }
  .archive-content-wrap .sidebar { display: none; }
  /* Post row becomes a full-width card */
  .post-row {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin-bottom: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .post-row:hover { padding-left: 0; }
  .post-row-thumb {
    width: 100%;
    height: 100px;
    border-radius: 0;
    font-size: 2.5rem;
  }
  .post-row > div {
    padding: 1rem;
    width: 100%;
  }
  .post-row-title { font-size: 0.95rem; line-height: 1.35; margin-bottom: 0.4rem; }
  .post-row-excerpt { font-size: 0.78rem; line-height: 1.6; }
  .post-row-meta { font-size: 0.65rem; gap: 0.5rem; flex-wrap: wrap; }
  .post-row-tags .tag { font-size: 0.58rem; padding: 0.15rem 0.4rem; }

  /* General text fixes */
  .card-title { font-size: 0.9rem; }
  .card-excerpt { font-size: 0.78rem; }
  .article-title { font-size: 1.4rem; }
  .article-content { font-size: 0.9rem; }
  .article-content h2 { font-size: 1.2rem; }
  .article-content h3 { font-size: 1rem; }
  .article-content pre { font-size: 0.75rem; padding: 1rem; }
  .featured-img h2 { font-size: 1.2rem; }
  .featured-title { font-size: 1.1rem; }
  .featured-excerpt { font-size: 0.8rem; }
  .author-box { flex-direction: column; }
  .post-nav { gap: 0.5rem; }
}
