/* ═══════════════════════════════════════
   CSS VARIABLES
═══════════════════════════════════════ */
:root {
  /* WorkSprout — dark branding: navy / teal / mint */
  --primary:       #42d1b3;
  --primary-dark:  #2ab89d;
  --primary-light: rgba(66, 209, 179, 0.18);
  --accent:        #7fe8d4;
  --success:       #34d399;
  --danger:        #f87171;
  --dark:          #e2fbf5;
  --dark-2:        rgba(195, 238, 250, 0.92);
  --text:          rgba(200, 235, 228, 0.88);
  --text-muted:    rgba(145, 195, 210, 0.72);
  --text-light:    rgba(110, 170, 190, 0.58);
  --bg:            rgba(5, 18, 32, 0.85);
  --bg-2:          rgba(255, 255, 255, 0.05);
  --white:         rgba(5, 18, 32, 0.95);
  --border:        rgba(66, 209, 179, 0.20);
  --border-2:      rgba(90, 170, 200, 0.16);
  --shadow-sm:     0 1px 3px rgba(1, 5, 12, 0.30);
  --shadow:        0 4px 20px rgba(1, 5, 12, 0.35);
  --shadow-lg:     0 8px 36px rgba(1, 5, 12, 0.45);
  --shadow-xl:     0 24px 64px rgba(1, 5, 12, 0.60);
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     18px;
  --radius-xl:     24px;
  --sans:          'Cabin', system-ui, sans-serif;
  --serif:         'Cabin', system-ui, sans-serif;
  --ease:          all .25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Page canvas: same as index / insights / portfolio / lets-talk */
@keyframes brandGradientShift {
  0% { background-position: center, 0% 50%; }
  50% { background-position: center, 100% 50%; }
  100% { background-position: center, 50% 100%; }
}

body.page-insights-details {
  background-color: #071c2f;
  background-image:
    url('/static/images/texture.png'),
    linear-gradient(130deg, #071c2f 0%, #0c3551 32%, #0f7f76 64%, #42d1b3 100%);
  background-size: cover, 220% 220%;
  background-position: center, 0% 50%;
  background-repeat: no-repeat, no-repeat;
  animation: brandGradientShift 16s ease-in-out infinite alternate;
}

a    { text-decoration: none; color: inherit; }
img  { display: block; max-width: 100%; }
ul   { list-style: none; }

.container {
  width: min(97.5vw, 1520px);
  margin: 0 auto;
  padding: 0;
}

/* ═══════════════════════════════════════
   READING PROGRESS BAR
═══════════════════════════════════════ */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0f7f76, #42d1b3, #7fe8d4);
  z-index: 9999;
  transition: width .1s linear;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}
.logo span { color: var(--primary); }

.main-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  padding: 7px 15px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--ease);
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--primary-light);
  color: var(--primary);
}

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

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--ease);
}
.icon-btn:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

.cta-btn {
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--ease);
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(15, 127, 118, 0.35); }

/* ═══════════════════════════════════════
   PAGE BREADCRUMB
═══════════════════════════════════════ */
.page-breadcrumb {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
  padding: 10px 14px;
  font-size: .78rem; color: var(--text-light);
  border: 1px solid rgba(103, 188, 211, 0.28);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(6, 28, 46, 0.65) 0%, rgba(8, 40, 61, 0.48) 100%);
  box-shadow: 0 8px 18px rgba(2, 12, 24, 0.22);
}
.page-breadcrumb a {
  color: rgba(164, 214, 228, 0.9);
  font-weight: 600;
  transition: color .2s;
}
.page-breadcrumb a:hover { color: var(--primary); }
.page-breadcrumb i.fa-chevron-right { font-size: .52rem; color: rgba(133, 190, 206, 0.8); }
.page-breadcrumb i.fa-house { margin-right: 2px; color: #7be8d8; }
.page-breadcrumb span { color: #e4fbf6; font-weight: 700; }

/* ═══════════════════════════════════════
   POST HERO IMAGE (inside article card)
═══════════════════════════════════════ */
.post-hero-img {
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.post-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  transition: transform .6s ease;
}
.post-hero-img:hover img { transform: scale(1.04); }

/* ═══════════════════════════════════════
   POST META BLOCK — white card over image bottom
═══════════════════════════════════════ */
.post-meta-block {
  position: relative;
  z-index: 2;
  background: var(--white);
  margin: -100px 0 0;           /* overlap the bottom ~100px of the image */
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -40px 60px rgba(3, 10, 22, 0.82), 0 4px 30px rgba(1, 5, 12, 0.30);
  padding: 28px 36px 20px;
  border-bottom: 1px solid var(--border);
}

/* "Category Media" — matches reference exactly */
.post-category {
  font-size: .8rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.post-category span {
  color: var(--accent);
  font-weight: 700;
}

.post-title {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.28;
  margin-bottom: 18px;
}

.post-author-row {
  display: flex; align-items: center; gap: 12px;
}
.post-author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.post-author-info { display: flex; flex-direction: column; gap: 2px; }
.post-author-name { font-size: .88rem; font-weight: 600; color: var(--dark); }
.post-author-date { font-size: .74rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════ */
.page-wrapper { padding: 32px 0 88px; position: relative; }

/* ═══════════════════════════════════════
   CONTENT GRID
═══════════════════════════════════════ */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 352px;
  gap: 32px;
  align-items: start;
}

/* ═══════════════════════════════════════
   FLOATING SHARE BAR
═══════════════════════════════════════ */
.share-float {
  position: fixed;
  left: max(14px, calc(50% - 830px));
  top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.share-float.visible { opacity: 1; pointer-events: auto; }

.share-float-label {
  font-size: .62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-light);
  margin-bottom: 4px;
}
.share-float-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .8rem; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.share-float-btn:hover { transform: scale(1.12); box-shadow: var(--shadow); }
.share-float-btn.fb { background: #1877f2; }
.share-float-btn.tw { background: #000; }
.share-float-btn.ln { background: #0077b5; }
.share-float-btn.rd { background: #ff4500; }
.share-float-btn.bk { background: var(--accent); }
.share-float-btn.bk.bookmarked { background: var(--primary); }
.share-float-divider { width: 1px; height: 18px; background: var(--border-2); margin: 2px 0; }
.share-float-count { font-size: .73rem; font-weight: 700; color: var(--text-muted); }

/* ═══════════════════════════════════════
   ARTICLE CARD
═══════════════════════════════════════ */
.article {
  background: var(--white);
  border: 1px solid rgba(66, 209, 179, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(66, 209, 179, 0.06);
  /* NO overflow:hidden here — the image wrapper clips itself;
     keeping overflow visible lets the meta block's rounded
     corners and shadow render properly over the image */
  position: relative;
}

/* Intro */
.article-intro { padding: 22px 36px 0; }

.lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 20px;
}

/* Sections */
.article section { padding: 0 36px; }

.article h2 {
  font-family: var(--serif);
  font-size: 1.55rem; font-weight: 700;
  color: var(--dark);
  margin: 36px 0 14px;
  padding-bottom: 12px;
  position: relative;
}
.article h2::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.article p {
  font-size: .97rem; line-height: 1.85;
  color: var(--text); margin-bottom: 18px;
}

/* ═══════════════════════════════════════
   ARTICLE FIGURE
═══════════════════════════════════════ */
.article-figure {
  margin: 34px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article-figure img {
  width: 100%; height: 400px; object-fit: cover;
  transition: transform .45s ease;
}
.article-figure:hover img { transform: scale(1.025); }
.article-figure figcaption {
  background: var(--bg-2);
  padding: 11px 18px;
  font-size: .8rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.article-figure figcaption i { color: var(--primary); margin-top: 1px; flex-shrink: 0; }

/* ═══════════════════════════════════════
   PULL QUOTE
═══════════════════════════════════════ */
.pull-quote {
  position: relative;
  margin: 40px 0;
  padding: 36px 36px 30px 44px;
  background: linear-gradient(140deg, rgba(5, 24, 46, 0.95) 0%, rgba(10, 56, 86, 0.82) 55%, rgba(9, 70, 93, 0.78) 100%);
  border: 1px solid rgba(111, 226, 208, 0.26);
  border-left: 5px solid #6fe2d0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  overflow: visible;
  box-shadow: 0 12px 28px rgba(2, 10, 22, 0.35);
}

.quote-mark {
  position: absolute;
  top: 12px; left: 14px;
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 1;
  color: #84efe0;
  opacity: .24;
  display: block;
  user-select: none;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.78;
  color: rgba(224, 246, 255, 0.96);
  margin-bottom: 22px !important;
}

.pull-quote cite {
  display: flex; align-items: center; gap: 12px;
  font-style: normal;
  padding-top: 18px;
  border-top: 1px solid rgba(116, 225, 211, 0.42);
}

.pull-quote cite img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid rgba(116, 225, 211, 0.6);
  flex-shrink: 0;
}

.pull-quote cite strong {
  display: block;
  font-size: .88rem; font-weight: 700;
  color: #dbfaf3; font-family: var(--sans);
}

.pull-quote cite span {
  display: block;
  font-size: .73rem; color: rgba(170, 221, 232, 0.9); margin-top: 2px;
}

/* ═══════════════════════════════════════
   CALLOUT BOXES
═══════════════════════════════════════ */
.callout {
  display: flex; gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius);
  margin: 28px 0;
}
.callout-info    { background: rgba(5, 35, 42, 0.82); border: 1px solid rgba(66, 209, 179, 0.28); }
.callout-success { background: rgba(4, 28, 22, 0.82); border: 1px solid rgba(52, 211, 153, 0.28); }

.callout-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.callout-info    .callout-icon { background: rgba(66, 209, 179, 0.2); color: var(--primary-dark); }
.callout-success .callout-icon { background: rgba(52, 211, 153, 0.15); color: var(--success); }

.callout-body h4 { font-size: .88rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.callout-body p  { font-size: .88rem; color: var(--text); margin: 0 !important; line-height: 1.65; }
.callout-body ul { padding-left: 0; }
.callout-body li {
  font-size: .88rem; color: var(--text);
  padding: 4px 0 4px 22px;
  position: relative; line-height: 1.55;
}
.callout-body li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }

/* ═══════════════════════════════════════
   IMAGE DUO
═══════════════════════════════════════ */
.image-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.image-duo figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.image-duo figure img { width: 100%; height: 220px; object-fit: cover; transition: transform .4s; }
.image-duo figure:hover img { transform: scale(1.05); }
.image-duo figcaption { padding: 10px 14px; font-size: .74rem; color: var(--text-muted); background: var(--bg-2); line-height: 1.4; }

/* ═══════════════════════════════════════
   STATS STRIP  (replaces plain stat cards)
═══════════════════════════════════════ */
.stats-strip {
  display: flex;
  align-items: center;
  background: linear-gradient(130deg, #051422 0%, #0c3551 42%, #0f7f76 78%, #2a9d8f 100%);
  border-radius: var(--radius-lg);
  padding: 36px 16px;
  margin: 36px 0;
  position: relative;
  overflow: hidden;
}

/* subtle glow orbs */
.stats-strip::before,
.stats-strip::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.stats-strip::before {
  width: 220px; height: 220px;
  top: -80px; right: -60px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
}
.stats-strip::after {
  width: 160px; height: 160px;
  bottom: -60px; left: -40px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
}

.stats-strip-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 0 12px;
  position: relative;
  z-index: 1;
}

.stats-strip-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: rgba(255,255,255,.92);
  margin-bottom: 10px;
  transition: transform .25s, background .25s;
}
.stats-strip-item:hover .stats-strip-icon {
  background: rgba(255,255,255,.25);
  transform: translateY(-2px);
}

.stats-strip-num {
  display: block;
  font-family: var(--serif);
  font-size: 2rem; font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.stats-strip-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.70);
  line-height: 1.45;
  font-weight: 400;
}

.stats-strip-sep {
  width: 1px;
  height: 68px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

/* responsive */
@media (max-width: 600px) {
  .stats-strip { flex-wrap: wrap; padding: 24px 12px; gap: 16px; }
  .stats-strip-sep { display: none; }
  .stats-strip-item { flex: 1 1 40%; }
}

/* ═══════════════════════════════════════
   ARTICLE TAGS
═══════════════════════════════════════ */
.article-tags {
  padding: 24px 36px;
  border-top: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap;
}
.tags-label {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); padding-top: 5px;
  display: flex; align-items: center; gap: 5px; white-space: nowrap;
}
.tag-group { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.art-tag {
  padding: 5px 14px; border-radius: 20px;
  border: 1.5px solid var(--border-2);
  font-size: .77rem; font-weight: 500; color: var(--text-muted);
  transition: var(--ease);
}
.art-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.share-inline-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 18px; border-radius: 20px;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  font-size: .78rem; font-weight: 600;
  transition: var(--ease); white-space: nowrap; margin-left: auto;
}
.share-inline-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ═══════════════════════════════════════
   AUTHOR BIO
═══════════════════════════════════════ */
.author-bio {
  padding: 28px 36px;
  background: var(--bg-2);
  display: flex; gap: 24px; align-items: flex-start;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.author-bio-img {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid rgba(66, 209, 179, 0.40); box-shadow: var(--shadow); flex-shrink: 0;
}
.author-bio-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); font-weight: 700; display: block; margin-bottom: 4px;
}
.author-bio-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 2px; }
.author-bio-role { font-size: .8rem; color: var(--primary); font-weight: 600; margin-bottom: 10px; }
.author-bio-text { font-size: .88rem; color: var(--text-muted); line-height: 1.72; margin-bottom: 16px; }
.author-bio-actions { display: flex; align-items: center; gap: 16px; }

.follow-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px; border-radius: 8px;
  border: 1.5px solid var(--primary); background: transparent;
  color: var(--primary); font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: var(--ease);
}
.follow-btn:hover,
.follow-btn.following { background: var(--primary); color: #fff; }

.author-socials { display: flex; gap: 8px; }
.author-socials a {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--border); display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--text-muted); transition: var(--ease);
}
.author-socials a:hover { background: var(--primary); color: #fff; }

/* ═══════════════════════════════════════
   POST NAVIGATION
═══════════════════════════════════════ */
.post-nav-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding: 18px 14px;
}
.post-nav-viewport {
  flex: 1;
  overflow: hidden;
}
.post-nav-track {
  display: flex;
  gap: 14px;
  transition: transform .35s ease;
}
.post-nav-item {
  min-width: calc((100% - 14px) / 2);
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .2s, border-color .2s;
  cursor: pointer;
  border: 1px solid rgba(103, 191, 213, 0.24);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(5, 28, 47, 0.76) 0%, rgba(8, 40, 63, 0.62) 100%);
}
.post-nav-item:hover {
  background: linear-gradient(145deg, rgba(7, 35, 58, 0.86) 0%, rgba(10, 52, 76, 0.66) 100%);
  border-color: rgba(122, 226, 210, 0.46);
}

.post-nav-label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-light); font-weight: 700;
  display: flex; align-items: center; gap: 6px;
}
.post-nav-item img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius-sm); }
.post-nav-item p { font-size: .9rem; font-weight: 600; color: #d6f4ee; line-height: 1.45; }

.post-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(103, 188, 211, 0.34);
  background: rgba(7, 34, 55, 0.75);
  color: #85e8d9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
}
.post-nav-arrow:hover {
  border-color: rgba(122, 226, 210, 0.62);
  background: rgba(9, 44, 66, 0.95);
}
.post-nav-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.post-nav-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin: 14px 0 8px;
}
.post-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(132, 194, 210, 0.48);
  cursor: pointer;
  transition: var(--ease);
}
.post-nav-dot.active {
  width: 20px;
  border-radius: 999px;
  background: #7be8d8;
}

/* ═══════════════════════════════════════
   COMMENTS
═══════════════════════════════════════ */
.comments-section {
  padding: 32px 36px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(4, 20, 38, 0.12) 0%, rgba(8, 38, 60, 0.04) 100%);
}

.comments-heading {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  color: var(--dark); margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
}
.comments-heading i { color: #7be8d8; }

.comment-form-wrap { display: flex; gap: 14px; margin-bottom: 36px; }

.comment-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--border); flex-shrink: 0;
}

.comment-form {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  box-shadow: 0 10px 22px rgba(2, 10, 20, 0.2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.comment-form:focus-within {
  border-color: #76e3d2;
  background: rgba(9, 44, 64, 0.35);
  box-shadow: 0 12px 28px rgba(2, 10, 20, 0.28);
}
.comment-form textarea {
  width: 100%; padding: 14px 16px;
  border: none; background: transparent;
  font-family: inherit; font-size: .9rem; color: var(--text);
  resize: none; min-height: 96px; outline: none;
}
.comment-form-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-top: 1px solid var(--border);
}
.comment-form-options { display: flex; gap: 4px; }
.submit-comment-btn {
  padding: 8px 18px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: var(--ease);
}
.submit-comment-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.comments-list { display: flex; flex-direction: column; gap: 18px; }

.comment {
  display: flex;
  gap: 14px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(104, 198, 220, 0.2);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(5, 26, 46, 0.78) 0%, rgba(7, 35, 58, 0.62) 100%);
}
.comment.reply {
  margin-top: 14px;
  margin-left: 58px;
  border-color: rgba(120, 225, 210, 0.28);
  background: linear-gradient(135deg, rgba(7, 34, 57, 0.74) 0%, rgba(9, 45, 65, 0.58) 100%);
  position: relative;
}
.comment.reply::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 22px;
  width: 16px;
  height: 1px;
  background: rgba(120, 225, 210, 0.52);
}
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.comment-author { font-size: .9rem; font-weight: 700; color: #dffbf4; }
.comment-time   { font-size: .73rem; color: rgba(142, 199, 214, 0.72); }
.comment-body > p { font-size: .9rem; color: rgba(203, 237, 232, 0.94); line-height: 1.74; margin-bottom: 10px; }
.comment-actions { display: flex; gap: 10px; }
.comment-actions button {
  display: flex; align-items: center; gap: 5px;
  font-size: .75rem; color: rgba(146, 201, 214, 0.86);
  background: rgba(11, 45, 66, 0.32);
  border: 1px solid rgba(103, 188, 211, 0.18);
  padding: 4px 10px;
  border-radius: 7px; cursor: pointer; transition: var(--ease);
}
.comment-actions button:hover {
  background: rgba(66, 209, 179, 0.16);
  border-color: rgba(66, 209, 179, 0.42);
  color: #7fe8d4;
}

.load-more-btn {
  display: flex; align-items: center; gap: 8px;
  margin: 28px auto 0; padding: 11px 26px;
  border: 1.5px solid var(--border-2); border-radius: 10px;
  background: transparent; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; transition: var(--ease);
}
.load-more-btn:hover { border-color: var(--primary); color: var(--primary); }

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 20px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(66, 209, 179, 0.12);
  box-shadow: 0 4px 24px rgba(5, 20, 34, 0.08);
}

.widget-title {
  font-family: var(--serif); font-size: 1rem; font-weight: 700;
  color: var(--dark); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.widget-title i { color: var(--primary); }

/* TOC */
.toc-nav { display: flex; flex-direction: column; gap: 2px; }
.toc-link {
  display: block; padding: 8px 12px;
  border-radius: 8px; font-size: .84rem;
  color: var(--text-muted); transition: var(--ease);
  border-left: 2px solid transparent;
}
.toc-link:hover,
.toc-link.active { background: var(--primary-light); color: var(--primary); border-left-color: var(--primary); }

/* Related Posts */
.related-list { display: flex; flex-direction: column; }
.related-post {
  display: flex; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
  transition: opacity .2s;
}
.related-post:last-child { border-bottom: none; padding-bottom: 0; }
.related-post:hover { opacity: .72; }
.related-post img { width: 76px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.related-post-title { font-size: .82rem; font-weight: 600; color: var(--dark-2); line-height: 1.4; margin-bottom: 6px; }
.related-post-date  { font-size: .71rem; color: var(--text-light); display: flex; align-items: center; gap: 4px; }

/* Tag Cloud */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.cloud-tag {
  padding: 5px 12px; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: .75rem; color: var(--text-muted); font-weight: 500;
  transition: var(--ease);
}
.cloud-tag.lg { font-size: .8rem; padding: 6px 14px; }
.cloud-tag.sm { font-size: .68rem; padding: 4px 10px; }
.cloud-tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Newsletter */
.newsletter-widget {
  background: linear-gradient(140deg, #051422 0%, #0c3551 55%, #0a4a45 100%);
  position: relative; overflow: hidden; padding: 28px 24px;
}
.newsletter-widget::before {
  content: '';
  position: absolute; top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(66, 209, 179, 0.28) 0%, transparent 70%);
}
.newsletter-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(66, 209, 179, 0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #7fe8d4; margin-bottom: 14px;
}
.newsletter-widget h3 { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.newsletter-widget > p { font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.55; margin-bottom: 18px; }

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  color: #fff; font-size: .82rem; font-family: inherit; outline: none;
  transition: border-color .2s;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form input:focus { border-color: rgba(255,255,255,.4); }
.newsletter-form button {
  padding: 11px; border-radius: 8px; border: none;
  background: var(--primary); color: #fff;
  font-size: .85rem; font-weight: 700; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: var(--ease);
}
.newsletter-form button:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(15, 127, 118, 0.45); }
.newsletter-note {
  font-size: .7rem; color: rgba(255,255,255,.38);
  text-align: center; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer { background: var(--dark); padding: 68px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 52px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand > p { font-size: .84rem; color: rgba(255,255,255,.48); line-height: 1.75; margin-bottom: 22px; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .8rem; transition: var(--ease);
}
.footer-socials a:hover { background: var(--primary); color: #fff; }

.footer-links h4 {
  font-size: .8rem; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links li a { font-size: .84rem; color: rgba(255,255,255,.48); transition: color .2s; }
.footer-links li a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .78rem; color: rgba(255,255,255,.32); }

/* ═══════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════ */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary); color: #fff;
  border: none; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; cursor: pointer;
  box-shadow: 0 4px 18px rgba(15, 127, 118, 0.4);
  opacity: 0; pointer-events: none;
  transform: translateY(14px);
  transition: var(--ease); z-index: 350;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover   { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(66, 209, 179, 0.45); }

/* ═══════════════════════════════════════
   SHARE MODAL
═══════════════════════════════════════ */
.share-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(8,12,26,.65);
  backdrop-filter: blur(6px);
  z-index: 600;
  align-items: center; justify-content: center;
}
.share-modal-overlay.active { display: flex; }

.share-modal {
  background: rgba(5, 18, 35, 0.98);
  border-radius: var(--radius-xl);
  padding: 38px 32px 28px;
  width: 420px; max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalIn .26s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn {
  from { transform: scale(.84) translateY(18px); opacity: 0; }
  to   { transform: scale(1)   translateY(0);    opacity: 1; }
}

.share-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text-muted); font-size: .82rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.share-modal-close:hover { background: var(--border); }

.share-modal h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.share-modal-subtitle { font-size: .82rem; color: var(--text-muted); margin-bottom: 24px; }

.share-modal-icons { display: flex; gap: 10px; margin-bottom: 24px; justify-content: center; }
.share-modal-icon {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  flex: 1; cursor: pointer;
}
.share-modal-icon i {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1rem; transition: transform .2s, box-shadow .2s;
}
.share-modal-icon:hover i { transform: translateY(-3px); box-shadow: var(--shadow); }
.share-modal-icon span { font-size: .66rem; color: var(--text-muted); font-weight: 500; }
.share-modal-icon.fb i { background: #1877f2; }
.share-modal-icon.tw i { background: #000; }
.share-modal-icon.ln i { background: #0077b5; }
.share-modal-icon.wa i { background: #25d366; }
.share-modal-icon.em i { background: #ea4335; }

.share-modal-link label {
  display: block; font-size: .73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); margin-bottom: 8px;
}
.share-modal-link-row { display: flex; gap: 8px; }
.share-modal-link-row input {
  flex: 1; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: .79rem; color: var(--text-muted); background: var(--bg-2); outline: none;
}
#copyLinkBtn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 16px; background: var(--primary); color: #fff;
  border: none; border-radius: 8px; font-size: .8rem; font-weight: 700;
  cursor: pointer; transition: var(--ease); white-space: nowrap;
}
#copyLinkBtn:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════
   SCROLL FADE-IN
═══════════════════════════════════════ */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1080px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; }
  .newsletter-widget { grid-column: 1 / -1; }
  .share-float { display: none; }
  .stats-row  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { height: 72vh; min-height: 480px; }
  .hero-title { font-size: 1.55rem; }
  .hero-stats { display: none; }
  .main-nav { display: none; }
  .article-intro,
  .article section,
  .article-tags,
  .author-bio,
  .comments-section { padding-left: 22px; padding-right: 22px; }
  .pull-quote { padding: 36px 22px; }
  .stats-row  { padding: 22px; }
  .article-figure img { height: 240px; }
  .image-duo  { grid-template-columns: 1fr; }
  .post-nav-slider { padding: 16px 10px; gap: 8px; }
  .post-nav-item { min-width: 100%; }
  .post-nav-item img { height: 170px; }
  .sidebar { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .comment { padding: 14px 12px 12px; }
  .comment.reply { margin-left: 24px; }
  .comment.reply::before { left: -12px; width: 8px; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row  { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-meta  { flex-direction: column; gap: 14px; }
  .share-modal { padding: 28px 20px 22px; }
  .back-to-top { bottom: 18px; right: 18px; }
}

/* ═══════════════════════════════════════
   DARK THEME POLISH
═══════════════════════════════════════ */
.comment-form textarea::placeholder { color: rgba(145, 195, 210, 0.40); }
.share-modal-link-row input { color: var(--text-muted); }
.share-modal-close:hover { background: rgba(66, 209, 179, 0.12); border-color: var(--primary); color: var(--primary); }
