/*
Theme Name: LTE450
Theme URI: https://lte450.co.uk
Author: Peter Green
Author URI: https://ptergreen.xyz
Description: Professional technical authority theme for LTE450.co.uk
Version: 1.2.0
Text Domain: lte450
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --primary:       #0d1f3c;
  --primary-dark:  #071526;
  --primary-mid:   #132840;
  --orange:        #e8621a;
  --orange-light:  #f07535;
  --orange-dark:   #c9531a;
  --orange-pale:   #fff3ed;
  --white:         #ffffff;
  --light:         #f5f7fa;
  --light-mid:     #eef1f6;
  --text:          #1e2d3d;
  --text-muted:    #5a6a7e;
  --teal:          #00a896;
  --border:        #dde3ec;
  --shadow-sm:     0 2px 8px rgba(13,31,60,.06);
  --shadow:        0 4px 20px rgba(13,31,60,.10);
  --shadow-lg:     0 8px 40px rgba(13,31,60,.16);
  --radius:        8px;
  --radius-lg:     14px;
  --radius-xl:     24px;
  --nav-h:         72px;
  --font-head:     'Outfit', sans-serif;
  --font-body:     'Inter', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dark); }
ul, ol { padding-left: 1.5rem; }
code { font-family: var(--font-mono); font-size: .875rem; background: var(--light); border-radius: 4px; padding: .2em .4em; }
pre { font-family: var(--font-mono); font-size: .875rem; background: var(--light); border-radius: var(--radius); padding: 1.25rem; overflow-x: auto; border: 1px solid var(--border); margin: 1.5rem 0; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--primary); margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-top: 2.5rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 2rem; }
h4 { font-size: 1.15rem; }
p  { margin: 0 0 1.25rem; }
.article-body h2 { border-left: 4px solid var(--orange); padding-left: 1rem; }
.article-body h3 { color: var(--primary-mid); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container        { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container--wide  { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start; /* Required for sticky sidebar */
}
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; }
  .site-sidebar { display: none; }
}

/* ============================================================
   ★ WHITE HEADER — Updated v1.2
   ============================================================ */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(13,31,60,.06);
  transition: box-shadow .25s;
}
.site-header.is-scrolled {
  box-shadow: 0 3px 16px rgba(13,31,60,.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1.5rem;
}

/* Logo — uses actual PNG */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}
/* Fallback text logo if image absent */
.logo-fallback {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -.02em;
  line-height: 1;
}
.logo-fallback span { color: var(--orange); }
.logo-sub {
  display: block;
  font-size: .6rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-top: .15rem;
}

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  list-style: none;
  padding: 0; margin: 0;
}
.primary-nav > li { position: relative; }

.primary-nav > li > a {
  display: flex;
  align-items: center;
  gap: .3rem;
  color: var(--primary);       /* Navy on white */
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .84rem;
  padding: .45rem .7rem;
  border-radius: 6px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.primary-nav > li > a:hover,
.primary-nav > li.current-menu-item > a,
.primary-nav > li.current-menu-ancestor > a {
  background: var(--light);
  color: var(--orange);
}

.primary-nav > li > a .arrow {
  width: 13px; height: 13px;
  transition: transform .2s;
  opacity: .45;
  flex-shrink: 0;
}
.primary-nav > li:hover > a .arrow { transform: rotate(180deg); opacity: .8; }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 205px;
  padding: .4rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.primary-nav > li:hover .dropdown,
.primary-nav > li:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: .48rem .9rem;
  color: var(--text);
  font-size: .84rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.dropdown a:hover { background: var(--orange-pale); color: var(--orange); }
.dropdown li + li { margin-top: 1px; }

/* Nav CTA */
.nav-cta {
  background: var(--orange) !important;
  color: #fff !important;
  padding: .45rem 1.1rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  margin-left: .35rem;
}
.nav-cta:hover { background: var(--orange-dark) !important; color: #fff !important; }

/* Mobile */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  padding: .4rem .55rem;
  border-radius: 6px;
  transition: background .15s;
}
.nav-toggle:hover { background: var(--light); }

@media (max-width: 1100px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; align-items: center; }

  .primary-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.25rem 1.5rem 3rem;
    gap: .2rem;
    overflow-y: auto;
    z-index: 999;
  }
  .primary-nav.is-open > li > a { font-size: .95rem; padding: .7rem .9rem; }
  .primary-nav.is-open .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: var(--light); box-shadow: none; border: none;
    border-radius: 8px; margin-top: .2rem; padding: .2rem .4rem;
  }
  .primary-nav.is-open .dropdown a { color: var(--text); font-size: .84rem; }
}

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  background: var(--primary);
  color: #fff;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232,98,26,.18) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(0,168,150,.12) 0%, transparent 50%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 40px 40px;
}
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(232,98,26,.2); border: 1px solid rgba(232,98,26,.4);
  color: var(--orange-light); font-family: var(--font-head); font-size: .78rem;
  font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 100px; margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--orange); }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.75); max-width: 640px; line-height: 1.65; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--primary);
  padding: 3rem 0 2.5rem;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(232,98,26,.12) 0%, transparent 60%);
}
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: .75rem; }
.page-hero .breadcrumbs { color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: .75rem; }
.page-hero .breadcrumbs a { color: rgba(255,255,255,.6); }
.page-hero .breadcrumbs a:hover { color: var(--orange-light); }
.page-hero .reading-time {
  display: inline-flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.45); font-size: .78rem; margin-top: .5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: .925rem;
  padding: .75rem 1.75rem; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: all .2s; text-decoration: none;
}
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,98,26,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost { background: var(--white); color: var(--primary); border-color: var(--border); }
.btn-ghost:hover { background: var(--light); color: var(--orange); border-color: var(--orange); }
.btn-sm { padding: .5rem 1.1rem; font-size: .82rem; }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }

/* ============================================================
   SPECIAL CONTENT BOXES
   ============================================================ */
.quick-answer {
  background: linear-gradient(135deg,#f0faf8 0%,#e8f7f4 100%);
  border: 1px solid rgba(0,168,150,.25); border-left: 5px solid var(--teal);
  border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 0 0 2rem;
}
.quick-answer-label {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .72rem;
  color: var(--teal); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .75rem;
}
.quick-answer p { font-size: 1rem; color: var(--text); margin: 0; line-height: 1.65; }

.definition-box {
  background: var(--orange-pale); border-left: 5px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 1.5rem 0;
}
.definition-box .def-term { font-family: var(--font-head); font-weight: 700; color: var(--orange-dark); font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: .35rem; }
.definition-box p { font-size: .9rem; margin: 0; }

/* ============================================================
   DATA TABLES
   ============================================================ */
.table-wrapper { overflow-x: auto; margin: 2rem 0; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table thead th {
  background: var(--primary); color: #fff; font-family: var(--font-head);
  font-weight: 600; padding: .85rem 1.1rem; text-align: left;
  white-space: nowrap; font-size: .8rem; letter-spacing: .04em;
}
.data-table thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.data-table thead th:last-child  { border-radius: 0 var(--radius-lg) 0 0; }
.data-table tbody tr { border-bottom: 1px solid var(--border); }
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--light); }
.data-table tbody tr:hover { background: var(--orange-pale); }
.data-table td { padding: .8rem 1.1rem; color: var(--text); vertical-align: top; }
.data-table td.highlight { color: var(--orange); font-weight: 600; font-family: var(--font-mono); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { margin: 3rem 0; }
.faq-section > h2 { margin-bottom: 1.5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-lg); margin-bottom: .75rem; overflow: hidden; transition: box-shadow .2s; }
.faq-item.is-open { box-shadow: var(--shadow); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.5rem; cursor: pointer; background: var(--white);
  transition: background .15s; user-select: none; list-style: none;
}
.faq-question:hover { background: var(--light); }
.faq-item.is-open .faq-question { background: var(--orange-pale); border-bottom: 1px solid rgba(232,98,26,.2); }
.faq-q-text { font-family: var(--font-head); font-weight: 600; font-size: .93rem; color: var(--primary); flex: 1; }
.faq-icon {
  width: 24px; height: 24px; background: var(--light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--text-muted); font-size: 1.1rem; transition: transform .25s, background .2s;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); background: var(--orange); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.is-open .faq-answer { max-height: 800px; }
.faq-answer-inner { padding: 1.25rem 1.5rem 1.5rem; font-size: .93rem; color: var(--text); line-height: 1.7; }
.faq-answer-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   ARTICLE BODY
   ============================================================ */
.article-wrap { padding: 3rem 0; }
.article-body { font-size: 1rem; line-height: 1.8; }
.article-body ul, .article-body ol { margin: .75rem 0 1.25rem 1.5rem; }
.article-body li { margin-bottom: .4rem; }
.article-body strong { color: var(--primary); }
.article-body blockquote {
  border-left: 4px solid var(--orange); margin: 2rem 0;
  padding: 1rem 1.5rem; background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--text-muted);
}

/* ============================================================
   AUTHOR BOX (in-article)
   ============================================================ */
.author-box {
  display: flex; gap: 1.25rem; align-items: flex-start;
  background: var(--light); border: 1px solid var(--border);
  border-top: 4px solid var(--orange); border-radius: var(--radius-lg);
  padding: 1.75rem; margin-top: 3rem;
}
.author-avatar {
  width: 72px; height: 72px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
}
.author-info h4 { font-size: 1rem; margin: 0 0 .2rem; }
.author-info .author-role { font-size: .78rem; color: var(--orange); font-weight: 600; display: block; margin-bottom: .5rem; }
.author-info p { font-size: .875rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   CROSS-LINKS BOX
   ============================================================ */
.cross-links-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 2rem; color: #fff;
}
.cross-links-box h3 { color: rgba(255,255,255,.6); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.cross-links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.cross-link-item {
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: .7rem .9rem;
  color: rgba(255,255,255,.82); font-size: .845rem; font-weight: 500;
  transition: background .18s, border-color .18s; text-decoration: none;
}
.cross-link-item:hover { background: rgba(232,98,26,.25); border-color: rgba(232,98,26,.4); color: var(--orange-light); }

/* ============================================================
   ★ SIDEBAR — Fixed sticky (v1.2)
   ============================================================ */
.site-sidebar {
  /* align-self: start is the KEY to making sticky work in CSS Grid */
  align-self: start;
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  /* If sidebar is taller than viewport, cap it and make it scroll */
  max-height: calc(100vh - var(--nav-h) - 2.5rem);
  overflow-y: auto;
  /* Hide scrollbar visually but keep functional */
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.site-sidebar::-webkit-scrollbar { width: 4px; }
.site-sidebar::-webkit-scrollbar-track { background: transparent; }
.site-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Widget */
.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.25rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
  background: var(--primary); color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .75rem 1.1rem;
}
.widget-body { padding: 1.1rem; }

/* Author widget (now at bottom) */
.widget-author-img {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: #fff; margin: 0 auto .75rem;
}
.widget-author-name { text-align: center; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--primary); display: block; margin-bottom: .15rem; }
.widget-author-role { text-align: center; font-size: .72rem; color: var(--orange); font-weight: 700; display: block; margin-bottom: .65rem; letter-spacing: .04em; text-transform: uppercase; }
.widget-author-bio { font-size: .8rem; color: var(--text-muted); text-align: center; line-height: 1.5; }

/* Related sites list */
.related-sites-list { list-style: none; padding: 0; margin: 0; }
.related-sites-list li { border-bottom: 1px solid var(--border); }
.related-sites-list li:last-child { border-bottom: none; }
.related-sites-list a { display: flex; align-items: center; gap: .55rem; padding: .6rem 0; font-size: .84rem; font-weight: 500; color: var(--text); transition: color .15s; }
.related-sites-list a:hover { color: var(--orange); }
.related-sites-list .site-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* Quick nav */
.quick-nav-list { list-style: none; padding: 0; margin: 0; }
.quick-nav-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem .25rem; font-size: .84rem; color: var(--text);
  border-bottom: 1px solid var(--border); transition: color .15s, padding-left .15s;
}
.quick-nav-list li:last-child a { border-bottom: none; }
.quick-nav-list a:hover { color: var(--orange); padding-left: .4rem; }

/* ============================================================
   HOME PAGE SECTIONS
   ============================================================ */
.section { padding: 5rem 0; }
.section-alt  { background: var(--light); }
.section-dark { background: var(--primary); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p  { color: rgba(255,255,255,.72); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-header .eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--orange); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .5rem; }
.section-header h2 { border: none !important; padding: 0 !important; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }

/* Stats bar */
.stats-bar { background: var(--orange); padding: 2.5rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.25rem; color: #fff; display: block; line-height: 1; margin-bottom: .35rem; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.78); font-weight: 500; }

/* Topic cards */
.topic-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem; display: flex;
  flex-direction: column; transition: all .2s; text-decoration: none;
}
.topic-card:hover { border-color: var(--orange); box-shadow: var(--shadow); transform: translateY(-3px); }
.topic-card .tc-icon { width: 50px; height: 50px; border-radius: 13px; background: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.4rem; }
.topic-card h3 { font-size: 1rem; color: var(--primary); margin: 0 0 .4rem; }
.topic-card p  { font-size: .86rem; color: var(--text-muted); flex: 1; margin: 0 0 1rem; }
.topic-card .tc-link { font-size: .8rem; font-weight: 700; color: var(--orange); display: flex; align-items: center; gap: .3rem; }

/* ============================================================
   ★ BLOG / NEWS STYLES
   ============================================================ */

/* Blog page hero override */
.blog-hero {
  background: var(--primary);
  padding: 3.5rem 0 3rem;
  position: relative; overflow: hidden;
}
.blog-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(232,98,26,.15) 0%, transparent 55%);
}
.blog-hero-inner { position: relative; z-index: 1; }
.blog-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.blog-hero p  { color: rgba(255,255,255,.65); font-size: 1.05rem; margin: 0; }

/* Featured post (first post, larger) */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 3rem;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.blog-featured:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
@media (max-width: 768px) { .blog-featured { grid-template-columns: 1fr; } }

.blog-featured-thumb {
  background: var(--primary);
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.blog-featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  font-size: 4rem;
}
.blog-featured-body {
  padding: 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}
.blog-featured-label {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--orange-pale); color: var(--orange);
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .28rem .8rem; border-radius: 100px; margin-bottom: 1rem;
}
.blog-featured-body h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 0 0 .85rem; border: none !important; padding: 0 !important; color: var(--primary); }
.blog-featured-body h2 a { color: inherit; text-decoration: none; }
.blog-featured-body h2 a:hover { color: var(--orange); }
.blog-featured-body p { color: var(--text-muted); font-size: .95rem; line-height: 1.65; margin: 0 0 1.5rem; }
.blog-featured-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* Post card */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: rgba(232,98,26,.25); }

.post-card-thumb {
  background: var(--primary);
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3560 100%);
  font-size: 2.5rem;
}

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

.post-cat {
  display: inline-block;
  font-family: var(--font-head); font-size: .68rem; font-weight: 700;
  color: var(--orange); letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: .6rem;
}

.post-card-body h3 {
  font-size: 1rem; color: var(--primary); margin: 0 0 .6rem;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card-body h3 a { color: inherit; text-decoration: none; }
.post-card-body h3 a:hover { color: var(--orange); }

.post-card-excerpt {
  font-size: .855rem; color: var(--text-muted); line-height: 1.6; flex: 1;
  margin: 0 0 1.1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.post-meta {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  font-size: .75rem; color: var(--text-muted);
  padding-top: .85rem; border-top: 1px solid var(--border);
}
.post-meta-date { display: flex; align-items: center; gap: .3rem; }
.post-meta-rt  { display: flex; align-items: center; gap: .3rem; }
.post-meta svg { opacity: .6; }

.post-read-more {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 700; color: var(--orange);
  margin-top: auto;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 2rem;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .875rem;
  border: 1px solid var(--border);
  color: var(--text); text-decoration: none;
  transition: all .15s;
}
.blog-pagination a:hover  { background: var(--orange-pale); color: var(--orange); border-color: var(--orange); }
.blog-pagination .current { background: var(--orange); color: #fff; border-color: var(--orange); }
.blog-pagination .prev, .blog-pagination .next { width: auto; padding: 0 .9rem; gap: .35rem; }

/* No posts state */
.no-posts { text-align: center; padding: 4rem 2rem; }
.no-posts p { color: var(--text-muted); font-size: 1.05rem; }

/* ============================================================
   ★ SINGLE POST STYLES
   ============================================================ */
.post-hero-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.post-tag {
  display: inline-block; padding: .25em .75em; border-radius: 100px;
  background: rgba(232,98,26,.15); color: var(--orange);
  font-family: var(--font-head); font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.post-thumbnail {
  border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 2.5rem;
  aspect-ratio: 16/6; background: var(--primary);
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,.68); padding-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
.footer-tagline { font-size: .855rem; color: rgba(255,255,255,.45); margin-top: .85rem; line-height: 1.6; max-width: 280px; }
.footer-logo-img { height: 36px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .85; }
.footer-heading { font-family: var(--font-head); font-weight: 700; font-size: .72rem; color: rgba(255,255,255,.38); letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: .4rem; }
.footer-nav a { color: rgba(255,255,255,.62); font-size: .84rem; transition: color .15s; }
.footer-nav a:hover { color: var(--orange-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0; font-size: .78rem; color: rgba(255,255,255,.3); flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: var(--orange-light); }

/* ============================================================
   MISC UTILITIES
   ============================================================ */
.breadcrumbs { font-size: .8rem; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs .sep { opacity: .4; }
.badge { display: inline-block; padding: .2em .7em; border-radius: 100px; font-size: .72rem; font-weight: 700; font-family: var(--font-head); }
.badge-orange { background: var(--orange-pale); color: var(--orange-dark); }
.badge-navy   { background: #e8ecf2; color: var(--primary); }
.badge-teal   { background: #e6f7f5; color: #007d70; }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: '✓'; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: var(--teal); color: #fff; border-radius: 50%; font-size: .68rem; font-weight: 700; flex-shrink: 0; margin-top: .15rem; }

/* Glossary */
.glossary-alpha-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 2.5rem; position: sticky; top: calc(var(--nav-h) + .5rem); background: var(--white); padding: .75rem 0; border-bottom: 1px solid var(--border); z-index: 10; }
.alpha-link { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 7px; font-family: var(--font-head); font-weight: 700; font-size: .84rem; color: var(--text-muted); border: 1px solid var(--border); transition: all .15s; }
.alpha-link.has-entries { background: var(--orange-pale); color: var(--orange); border-color: rgba(232,98,26,.3); }
.alpha-link.has-entries:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.alpha-link.empty { opacity: .28; pointer-events: none; }
.glossary-letter h2 { font-size: 1.6rem; color: var(--orange); border-left: 4px solid var(--orange) !important; padding-left: .75rem !important; margin: 2.5rem 0 1.25rem; }
.glossary-entry { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.glossary-entry:last-child { border-bottom: none; }
.glossary-entry dt { font-family: var(--font-head); font-weight: 700; color: var(--primary); font-size: .97rem; margin-bottom: .4rem; }
.glossary-entry dd { color: var(--text); font-size: .88rem; line-height: 1.65; margin: 0; }

/* Contact form */
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--primary); margin-bottom: .4rem; }
.form-control { width: 100%; padding: .72rem 1rem; border: 2px solid var(--border); border-radius: var(--radius); font-family: var(--font-body); font-size: .93rem; color: var(--text); background: var(--white); outline: none; transition: border-color .2s; }
.form-control:focus { border-color: var(--orange); }
textarea.form-control { min-height: 140px; resize: vertical; }

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { padding: 3.5rem 0 3rem; }
  .author-box { flex-direction: column; }
  .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   AUTHOR LINKS (v1.3 addition)
   ============================================================ */
.author-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .25rem;
}

.author-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .38rem .85rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  font-family: var(--font-head);
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--white);
  transition: all .15s;
  text-decoration: none;
}
.author-link:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-pale);
}

/* LinkedIn - blue tint on hover */
.author-link--linkedin:hover {
  border-color: #0a66c2;
  color: #0a66c2;
  background: #eef4fc;
}

/* Email - teal tint on hover */
.author-link--email:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: #f0faf8;
}
