/* ============================================================
   SITE.CSS — Pedro's personal website
   Design aligned with style_old.css: white bg, DM Sans,
   grey palette, blue accent, clean editorial feel.
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --color-bg:          #ffffff;
  --color-bg-alt:      #f5f5f5;
  --color-bg-card:     #ffffff;
  --color-border:      #e8e8e8;
  --color-text:        #111111;
  --color-text-mid:    #444444;
  --color-text-muted:  #888888;
  --color-accent:      #1a6cf5;
  --color-accent-2:    #1a6cf5;
  --color-accent-hover:#0f52c4;
  --color-white:       #ffffff;
  --color-black:       #111111;

  --font-heading: 'DM Sans', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  3rem;
  --space-xl:  4.5rem;

  --container: 1200px;
  --nav-h:     64px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);

  --ease: 0.18s ease;
  --ease-slow: 0.25s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-mid);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--color-text); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { color: var(--color-text-mid); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--color-accent-hover); }
img { display: block; width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Utilities ────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
#page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
#app { flex: 1; }
#app > *:first-child { padding-top: 20px; }

.fade-in { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.45s ease; }
.fade-in.visible { opacity: 1; transform: none; }

.section { padding: 32px 0; }
.section-alt { background: var(--color-bg-alt); }

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.headline {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}
.headline em { font-style: normal; color: var(--color-accent); }

.subhead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-white); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text-mid);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: border-color var(--ease), color var(--ease);
}
.btn-secondary:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ================================================================
   NAVIGATION
   ================================================================ */
.nav {
  position: static;


  height: var(--nav-h);
  background: var(--color-white);

}
.nav.scrolled { background: var(--color-white); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--nav-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  font-size: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo img {
  height: 32px !important;
  width: auto !important;
  max-width: unset !important;
}
.nav-logo em { font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

/* Hide CTA — fully out of layout flow */
.nav-cta { display: none !important; position: absolute !important; pointer-events: none !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none;
  margin-left: auto;
  cursor: pointer;
  color: var(--color-text);
}
.nav-hamburger .icon-menu { display: block; }
.nav-hamburger .icon-close { display: none; }
.nav-hamburger.open .icon-menu { display: none; }
.nav-hamburger.open .icon-close { display: block; }

/* Drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  z-index: 999;
  flex-direction: column;
  padding: 8px 0 16px;
  gap: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-top: 1px solid var(--color-border);
}
.nav-drawer.open { opacity: 1; transform: none; pointer-events: all; }
.nav-drawer-link {
  width: 100%;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--ease);
}
.nav-drawer-link:hover, .nav-drawer-link.active { color: var(--color-accent); }
.nav-drawer-cta { display: none !important; }

/* Hide About and Services nav links — show Home, Blog, Contact only */
.nav-links .nav-link:nth-child(2),
.nav-links .nav-link:nth-child(3) { display: none; }
.nav-links .nav-link:nth-child(4) { font-size: 0; }
.nav-links .nav-link:nth-child(4)::before { content: "Blog"; font-size: 0.95rem; }

.nav-drawer-link:nth-child(2),
.nav-drawer-link:nth-child(3) { display: none; }
.nav-drawer-link:nth-child(4) { font-size: 0; }
.nav-drawer-link:nth-child(4)::before { content: "Blog"; font-size: 1rem; }

/* ================================================================
   FOOTER — minimal: social icons + copyright
   ================================================================ */
.footer {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 0;
}
.footer-grid { display: none !important; }
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom {
  display: flex !important;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 0.875rem; color: var(--color-text-muted); }
.footer-legal { display: none; }

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social-link {
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  transition: color var(--ease);
}
.footer-social-link:hover { color: var(--color-accent); }
.footer-social-link svg { width: 20px; height: 20px; fill: currentColor; }

/* ================================================================
   SECTION: PAGE HERO (inner pages)
   ================================================================ */
.page-hero {
  padding: 56px 0 40px;
  background: var(--color-white);

}
.page-hero .label { display: block; }
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}
.page-hero h1 em { font-style: normal; color: var(--color-text); }
.page-hero p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ================================================================
   SECTION: ABOUT STORY — photo + bio (home page)
   ================================================================ */
.about-story-grid {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.about-story-img-wrap { flex-shrink: 0; margin-top: 30px; }
.about-story-img-wrap img {
  width: 150px;
  height: 150px;
  min-width: 150px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.about-accent-badge { display: none; }
.about-story-text .headline {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.about-story-text p {
  color: var(--color-text-mid);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}
.about-story-text p:last-of-type { margin-bottom: 0; }

/* ================================================================
   SECTION: VALUES GRID — Ventures (displayed as list)
   ================================================================ */
.section.section-alt { background: var(--color-white); }

.values-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: none;
  margin-top: 24px;
}

.value-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.value-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 2px 12px rgba(26,108,245,0.08);
}
.value-num {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  font-size: 0; /* hide text, show dot */
  opacity: 1;
  margin: 0;
  flex-shrink: 0;
}
.value-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}
.value-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-left: auto;
}

/* Ventures section label */
/* Ventures section label */
.section > .container > .label {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}

/* ================================================================
   SECTION: FEATURED WORK — "Latest Posts" header + card grid
   ================================================================ */
.featured-work-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.featured-work-header .label {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text);
  margin-bottom: 0;
}
.featured-work-header .btn-secondary {
  border: none;
  background: none;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
}
.featured-work-header .btn-secondary:hover { color: var(--color-accent-hover); border: none; }

/* ================================================================
   SECTION: SERVICES LIST — Ventures detail page
   ================================================================ */
.services-list-header { margin-bottom: var(--space-lg); }
.services-list-header .headline { display: none; }
.service-row {
  display: block;
  padding: 24px 0;

}
.service-row:first-of-type { border-top: 1px solid var(--color-border); }
.service-row-num { display: none; }
.service-row-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.service-row-body p {
  font-size: 0.9rem;
  color: var(--color-text-mid);
  line-height: 1.7;
  max-width: none;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 2px 8px;
  text-transform: none;
  letter-spacing: 0;
}
.service-row-arrow { display: none; }

/* ================================================================
   SECTION: PORTFOLIO GRID — Blog page grid
   ================================================================ */
.portfolio-filters { display: none; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

/* ================================================================
   SECTION: CONTACT — email only
   ================================================================ */
.contact-layout { display: block; }
.contact-info h3 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}
.contact-info p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
  line-height: 1.7;
}
.contact-details { display: flex; flex-direction: column; gap: 0; }
.contact-detail { display: block; }
.contact-detail-icon { display: none; }
.contact-detail-label { display: none; }
.contact-detail-value { display: none; }

/* Email block — styled like style_old.css contact-email-block */
.contact-detail:first-child .contact-detail-icon { display: none; }
.contact-detail:first-child .contact-detail-value {
  display: block;
}
.contact-detail:first-child .contact-detail-value a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-accent);
  font-size: 1.05rem;
  font-weight: 600;
  transition: border-color var(--ease), box-shadow var(--ease);
  background: var(--color-white);
}
.contact-detail:first-child .contact-detail-value a:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(26,108,245,0.1);
  color: var(--color-accent-hover);
}

/* Hide phone and address details */
.contact-detail:nth-child(2),
.contact-detail:nth-child(3) { display: none; }

/* Hide the contact form */
.contact-form-card { display: none; }

/* ================================================================
   BLOG / POST CARDS
   ================================================================ */
.post-cards-loading {
  padding: 48px 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.post-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 0;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow var(--ease-slow), transform var(--ease-slow);
  background: var(--color-white);
  text-decoration: none;
  color: inherit;
  min-width: 0;
  cursor: pointer;
}
.post-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.post-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--color-bg-alt);
  transition: transform 0.35s ease;
}
.post-card:hover .post-card-img img { transform: scale(1.03); }

.post-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  border-radius: 4px;
  padding: 2px 8px;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.post-tag:hover { color: var(--color-accent); background: #e8f0fe; }

.post-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
  margin: 0;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}
.post-card-date { font-size: 0.8rem; color: var(--color-text-muted); }
.post-card-btn { display: none; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  margin-top: 40px;
}
.pagination-btn {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-mid);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
  font-family: var(--font-body);
}
.pagination-btn:hover { border-color: var(--color-accent); color: var(--color-accent); }
.pagination-btn.next { margin-left: auto; }

/* ================================================================
   SINGLE POST PAGE
   ================================================================ */
.post-article { padding-top: 0; }

.post-article-inner {
  max-width: var(--container);
  padding-top: 56px;
  padding-bottom: 80px;
}

.post-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}
.post-back {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--ease);
  margin-right: auto;
}
.post-back:hover { color: var(--color-accent); }

.post-article-date { font-size: 0.85rem; color: var(--color-text-muted); }

.post-article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 12px;
}

.post-article-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);

}

/* Post body */
.post-article-body {
  color: var(--color-text-mid);
  line-height: 1.8;
}
.post-article-body p { margin-bottom: 20px; font-size: 1.05rem; }
.post-article-body h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--color-text);
  margin: 32px 0 16px;
}
.post-article-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 24px 0 12px;
}
.post-article-body ul, .post-article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
}
.post-article-body li { margin-bottom: 6px; }
.post-article-body strong { font-weight: 600; color: var(--color-text); }
.post-article-body em { font-style: italic; }
.post-article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 24px 0;
}
.post-article-body a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.post-article-body a:hover { color: var(--color-accent-hover); }
.post-article-body code {
  font-family: monospace;
  font-size: 0.875em;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--color-text);
}

.post-article-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

/* ================================================================
   HERO — not used on Pedro's site, neutralise
   ================================================================ */
.hero {
  min-height: auto !important;
  background: var(--color-white) !important;
}
.hero-bg { display: none !important; }
.hero-content {
  padding: var(--space-xl) 0 var(--space-lg) !important;
  margin-left: 0 !important;
  max-width: 100% !important;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--color-text); }
.hero h1 em { color: var(--color-text); font-style: normal; }
.hero-sub { color: var(--color-text-muted); }
.hero-eyebrow { color: var(--color-text-muted); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 960px) {
  .post-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --space-xl: 3rem; --space-lg: 2rem; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-drawer { display: flex; }

  .about-story-grid { flex-direction: column; gap: 16px; align-items: flex-start; }
  .about-story-img-wrap img { width: 160px; height: 160px; min-width: 160px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 600px) {
  .post-cards-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .value-card p { display: none; }

  .pagination-bar { flex-direction: column; gap: 12px; }
  .pagination-btn.next { margin-left: 0; }
}


/* ================================================================
   POST PAGE — new layout with sidebar
   ================================================================ */
.post-page-wrap {
  padding-top: 56px;
  padding-bottom: 80px;
}

.post-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

/* Article column */
.post-article-col {}

.post-article-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.post-article-date {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.post-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.post-hero-img {
  width: 100%;
  margin: 28px 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.post-hero-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

/* Sidebar column */
.post-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: sticky;
  top: 24px;
}

.sidebar-block {}

.sidebar-block-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-avatar {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 12px;
}

.sidebar-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.sidebar-bio {
  font-size: 0.875rem;
  color: var(--color-text-mid);
  line-height: 1.65;
}

/* Related posts */
.sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-related-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-decoration: none;
  transition: opacity var(--ease);
}
.sidebar-related-card:hover { opacity: 0.7; }

.sidebar-related-thumb {
  width: 64px;
  height: 52px;
  min-width: 64px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--color-bg-alt);
}
.sidebar-related-thumb--empty {
  display: block;
  background: var(--color-bg-alt);
}

.sidebar-related-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-related-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.sidebar-related-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Tags in sidebar */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ================================================================
   TAGS PAGE
   ================================================================ */
.tags-page-wrap {
  padding-top: 56px;
  padding-bottom: 80px;
}

.tags-page-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.tags-page-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.post-tag--active {
  color: var(--color-accent) !important;
  background: #e8f0fe !important;
  border-color: var(--color-accent) !important;
}

/* ================================================================
   RESPONSIVE — post layout
   ================================================================ */
@media (max-width: 900px) {
  .post-page-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .post-sidebar-col {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 560px) {
  .post-sidebar-col {
    grid-template-columns: 1fr;
  }
  .post-page-wrap {
    padding-top: 32px;
    padding-bottom: 60px;
  }
  .tags-page-wrap {
    padding-top: 32px;
    padding-bottom: 60px;
  }

}
/* ================================================================
   NEWSLETTER SECTION
   ================================================================ */
.newsletter-section {
  padding: var(--space-md) 0 var(--space-xl);
}

.newsletter-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-heading {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 24px;
  line-height: 1.5;
}

.newsletter-form {
  width: 100%;
}

.newsletter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #efefef;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input::placeholder {
  color: var(--color-text-muted);
}

.newsletter-input:focus {
  border-color: var(--color-accent);
}

.newsletter-btn {
  padding: 0.8rem 22px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.newsletter-btn:hover {
  background: var(--color-accent-hover);
}

@media (max-width: 520px) {
  .newsletter-card {
    padding: 32px 20px;
  }
  .newsletter-row {
    flex-direction: column;
  }
  .newsletter-input,
  .newsletter-btn {
    width: 100%;
    font-size: 1rem;
  }
}

/* Newsletter bar inside article page */
.post-newsletter {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.post-newsletter-heading {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: center;
}

.post-newsletter-row {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .post-newsletter-row {
    flex-direction: column;
  }
  .post-newsletter-row .newsletter-input,
  .post-newsletter-row .newsletter-btn,
  .post-newsletter-row input[type="email"],
  .post-newsletter-row button {
    width: 100%;
    height: 52px;
    font-size: 1rem;
  }
}