/* ============================================================
   APSIS — BLOG POST STYLESHEET  (blog.css)
   Shared across blog1.html → blog4.html
   ============================================================
   Structure:
     1.  Google Fonts
     2.  CSS Variables
     3.  Reset & Base
     4.  Layout Utilities
     5.  Scroll Fade-in
     6.  Site Header
     7.  Blog Hero (editorial)
     8.  Featured Image
     9.  Article Body
    10.  Content Elements (h2/h3, lists, blockquote)
    11.  Takeaways Box
    12.  Tip / Note Box
    13.  Mid-Page CTA Card
    14.  Final CTA Section
    15.  Related Posts Strip
    16.  Site Footer
    17.  Responsive — Tablet
    18.  Responsive — Mobile
    19.  Print / Accessibility
   ============================================================ */

/* ── 1. Google Fonts ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,600&family=Montserrat:wght@400;500;600;700&display=swap');

/* ── 2. CSS Variables ─────────────────────────────────────── */
:root {
  /* Brand */
  --blue-primary: #7c9bc1;
  --navy-deep: #1e3a56;
  --navy-mid: #254d72;
  --orange-primary: #f58220;
  --orange-secondary: #ff9f4a;
  --orange-light: #ffb64c;

  /* Text */
  --text-main: #333333;
  --text-body: #555555;
  --text-muted: #666666;
  --text-white: #ffffff;

  /* Backgrounds */
  --bg-white: #ffffff;
  --bg-light: #f3f6fa;
  --bg-lighter: #f9fafc;

  /* Borders */
  --border-light: #e2e8f0;
  --border-card: #dde5f0;

  /* Radii */
  --radius-img: 14px;
  --radius-box: 12px;
  --radius-btn: 8px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-img: 0 8px 32px rgba(30, 58, 86, 0.10);
  --shadow-card: 0 4px 20px rgba(30, 58, 86, 0.07);
  --shadow-btn: 0 4px 16px rgba(124, 155, 193, 0.28);
  --shadow-btn-hover: 0 8px 24px rgba(245, 130, 32, 0.30);

  /* Typography */
  --font-heading: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container-max: 1180px;
  --prose-max: 800px;

  /* Motion */
  --transition: 0.3s ease;
}

/* ── 3. Reset & 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);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-main);
  background: var(--bg-lighter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  padding-left: 0;
  list-style: none;
}

/* ── 4. Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  width: 100%;
  max-width: var(--prose-max);
  margin: 0 auto;
}

/* ── 5. Scroll Fade-in ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) {
  transition-delay: 0.08s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.16s;
}

/* ── 6. Site Header ───────────────────────────────────────── */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(30, 58, 86, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 20px;
  height: 20px;
}

.logo-accent {
  color: var(--orange-primary);
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange-primary);
  transition: width var(--transition);
}

.header-nav a:hover {
  color: var(--navy-deep);
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-nav a.active {
  color: var(--navy-deep);
}

.btn-header {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--navy-mid) 100%);
  color: var(--text-white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-btn);
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  transition: all var(--transition) !important;
  box-shadow: var(--shadow-btn);
}

.btn-header:hover {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%) !important;
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-1px);
}

.btn-header::after {
  display: none !important;
}

/* ── 7. Blog Hero (editorial) ─────────────────────────────── */
.blog-hero {
  background: linear-gradient(160deg, #ffffff 0%, #eef3fb 55%, #e2ecf8 100%);
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

/* faint geometric accent */
.blog-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 155, 193, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  font-weight: 500;
}

.breadcrumb a {
  color: var(--blue-primary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--orange-primary);
}

.breadcrumb-sep {
  color: var(--border-light);
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: var(--text-muted);
}

/* Category label */
.hero-category {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 16px;
  animation: fadeUp 0.6s ease both;
}

.hero-category::before {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-light));
  border-radius: 2px;
  display: block;
}

/* H1 */
.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 820px;
  animation: fadeUp 0.65s ease 0.08s both;
}

/* Orange gradient rule under title */
.hero-rule {
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-light));
  border-radius: 2px;
  margin-bottom: 22px;
  animation: fadeUp 0.65s ease 0.14s both;
}

/* Meta row */
.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  animation: fadeUp 0.65s ease 0.20s both;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--blue-primary);
  flex-shrink: 0;
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border-card);
}

/* Hero animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 8. Featured Image ────────────────────────────────────── */
.featured-image-wrap {
  padding: 44px 0 0;
}

.featured-image-wrap .prose {
  max-width: 860px;
}

.featured-img {
  width: 100%;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-img);
  overflow: hidden;
  background: var(--bg-light);
  transition: transform 0.55s ease, box-shadow 0.55s ease;
}

.featured-img img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}

.featured-img:hover img {
  transform: scale(1.02);
}

.featured-img:hover {
  box-shadow: 0 16px 48px rgba(30, 58, 86, 0.14);
}

.img-caption {
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

/* ── 9. Article Body ──────────────────────────────────────── */
.article-wrap {
  padding: 56px 0 72px;
  background: var(--bg-lighter);
}

.article-body {
  font-family: var(--font-body);
  font-size: 1.0375rem;
  line-height: 1.82;
  color: var(--text-body);
}

/* Em / italic within article */
.article-body em {
  font-style: italic;
  color: var(--navy-mid);
  font-weight: 400;
}

/* Paragraphs */
.article-body p {
  margin-bottom: 1.5rem;
}

.article-body p:last-child {
  margin-bottom: 0;
}

/* ── 10. Content Elements ─────────────────────────────────── */

/* H2 */
.article-body h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2.8rem 0 1rem;
  padding-left: 16px;
  border-left: 3px solid var(--orange-primary);
  position: relative;
}

/* H3 */
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy-mid);
  letter-spacing: -0.01em;
  margin: 2rem 0 0.75rem;
}

/* Unordered lists */
.article-body ul {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-body ul li {
  padding-left: 26px;
  position: relative;
  color: var(--text-body);
  line-height: 1.7;
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  flex-shrink: 0;
}

/* Ordered lists */
.article-body ol {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  counter-reset: steps;
}

.article-body ol li {
  padding-left: 42px;
  position: relative;
  color: var(--text-body);
  line-height: 1.7;
  counter-increment: steps;
}

.article-body ol li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 1px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
  color: var(--text-white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-body);
}

/* Links */
.article-body a {
  color: var(--blue-primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(124, 155, 193, 0.35);
  text-underline-offset: 3px;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.article-body a:hover {
  color: var(--orange-primary);
  text-decoration-color: rgba(245, 130, 32, 0.50);
}

/* Strong */
.article-body strong {
  color: var(--navy-deep);
  font-weight: 700;
}

/* ── 11. Takeaways Box ────────────────────────────────────── */
.takeaways-box {
  background: linear-gradient(135deg, #eef5ff 0%, #e6f0fc 100%);
  border: 1px solid rgba(124, 155, 193, 0.25);
  border-radius: var(--radius-box);
  padding: 28px 32px;
  margin: 2.4rem 0;
}

.takeaways-box__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.takeaways-box__icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue-primary), var(--navy-mid));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.takeaways-box__icon svg {
  width: 17px;
  height: 17px;
  color: #fff;
}

.takeaways-box__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
}

.takeaways-box ul {
  margin: 0 !important;
  gap: 9px !important;
}

.takeaways-box ul li {
  color: var(--navy-deep) !important;
  font-size: 0.9375rem;
  font-weight: 500;
}

.takeaways-box ul li::before {
  background: linear-gradient(135deg, var(--blue-primary), var(--navy-mid)) !important;
  top: 8px !important;
}

/* ── 12. Tip / Note Box ───────────────────────────────────── */
.tip-box {
  background: #fff8f1;
  border-left: 4px solid var(--orange-primary);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: 20px 24px;
  margin: 2rem 0;
}

.tip-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 6px;
}

.tip-box p {
  font-size: 0.9375rem !important;
  color: var(--text-body);
  margin: 0 !important;
  line-height: 1.7;
}

/* ── 13. Mid-Page CTA Card ────────────────────────────────── */
.mid-cta {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  margin: 3rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

/* Accent stripe */
.mid-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-secondary), var(--orange-light));
}

.mid-cta__text {
  flex: 1;
}

.mid-cta__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 6px;
}

.mid-cta__heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.mid-cta__sub {
  font-size: 0.875rem !important;
  color: var(--text-muted) !important;
  margin: 0 !important;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--navy-mid) 100%);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: var(--shadow-btn);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.btn-primary svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%);
  box-shadow: var(--shadow-btn-hover);
  transform: translateY(-2px);
  color: var(--text-white) !important;
  text-decoration: none !important;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ── 14. Final CTA Block ──────────────────────────────────── */
.final-cta {
  background: linear-gradient(135deg, #fff8f0 0%, #fef0e0 50%, #fde9cc 100%);
  border-top: 1px solid rgba(245, 130, 32, 0.12);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 155, 193, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.final-cta__inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}

.final-cta__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 14px;
}

.final-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.final-cta__sub {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 34px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--navy-mid) 100%);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: 0 6px 24px rgba(30, 58, 86, 0.20);
  letter-spacing: 0.01em;
}

.btn-cta-large svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition);
}

.btn-cta-large:hover {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-secondary) 100%);
  box-shadow: 0 8px 28px rgba(245, 130, 32, 0.32);
  transform: translateY(-3px);
  color: var(--text-white) !important;
}

.btn-cta-large:hover svg {
  transform: translateX(4px);
}

.cta-trust {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cta-trust svg {
  width: 14px;
  height: 14px;
  color: var(--blue-primary);
  flex-shrink: 0;
}

/* ── 15. Related Posts Strip ──────────────────────────────── */
.related-section {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 64px 0;
}

.related-section .section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 8px;
  display: block;
}

.related-section .section-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.related-card {
  background: var(--bg-white);
  border-radius: 12px;
  border: 1px solid var(--border-card);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.05);
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--orange-light));
  transition: width 0.35s ease;
}

.related-card:hover::before {
  width: 100%;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.related-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--orange-primary);
}

.related-title {
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.40;
  letter-spacing: -0.01em;
}

.related-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
}

/* ── 16. Site Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--navy-deep);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-white);
}

.footer-logo span {
  color: var(--orange-primary);
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.52);
  font-weight: 500;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--orange-primary);
}

/* ── 17. Hamburger Menu ───────────────────────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  background: var(--bg-light);
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 64, 0.45);
  z-index: 98;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.visible {
  opacity: 1;
}

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -280px;
  width: 270px;
  height: 100%;
  background: var(--bg-white);
  z-index: 99;
  box-shadow: -8px 0 32px rgba(30, 58, 86, 0.14);
  display: flex;
  flex-direction: column;
  padding: 0;
  transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav__logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.mobile-nav__logo span {
  color: var(--orange-primary);
}

.mobile-nav__close {
  width: 34px;
  height: 34px;
  background: var(--bg-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.mobile-nav__close:hover {
  background: var(--border-light);
}

.mobile-nav__close svg {
  width: 16px;
  height: 16px;
  color: var(--navy-deep);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
  flex: 1;
}

.mobile-nav__links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-light);
  transition: color var(--transition), background var(--transition);
  display: block;
}

.mobile-nav__links a:hover,
.mobile-nav__links a.active {
  color: var(--navy-deep);
  background: var(--bg-light);
}

.mobile-nav__cta {
  padding: 20px 20px 28px;
}

.mobile-nav__cta a {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-secondary));
  color: var(--text-white);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 13px 20px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(245, 130, 32, 0.28);
}

.mobile-nav__cta a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 130, 32, 0.38);
}

/* ── 18. Follow Us Strip ───────────────────────────────────── */
.follow-us-section {
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 48px 0;
}

.follow-us__inner {
  max-width: var(--prose-max);
  margin: 0 auto;
  text-align: center;
}

.follow-us__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-primary);
  margin-bottom: 10px;
  display: block;
}

.follow-us__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-deep);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.follow-us__sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.65;
}

.follow-us__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.28s ease;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
}

.follow-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.28s ease;
}

.follow-link:hover svg {
  transform: scale(1.12);
}

/* Twitter / X */
.follow-link--twitter {
  background: #000;
  color: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
}

.follow-link--twitter:hover {
  background: #111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.26);
  transform: translateY(-2px);
}

/* LinkedIn */
.follow-link--linkedin {
  background: #0a66c2;
  color: #fff;
  box-shadow: 0 3px 12px rgba(10, 102, 194, 0.28);
}

.follow-link--linkedin:hover {
  background: #0854a8;
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.36);
  transform: translateY(-2px);
}

/* Website */
.follow-link--website {
  background: transparent;
  color: var(--navy-deep);
  border-color: var(--navy-deep);
  box-shadow: none;
}

.follow-link--website:hover {
  background: var(--navy-deep);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 86, 0.20);
}

/* ── 18. Interactive & Sidebar Elements (Added 2026) ──────── */

/* Sticky TOC Layout */
.article-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1024px) {
  .article-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
  }

  .article-layout .article-toc {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    order: -1;
  }

  .article-layout .article-body {
    flex: 1;
    min-width: 0;
  }
}

.article-toc {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-box);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.article-toc__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 12px;
}

.article-toc__list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
}

.article-toc__list a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  line-height: 1.4;
  display: block;
  transition: all 0.2s ease;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.article-toc__list a:hover {
  color: var(--orange-primary);
  border-left-color: var(--orange-light);
}

.article-toc__list a.active {
  color: var(--navy-deep);
  font-weight: 700;
  border-left-color: var(--orange-primary);
}

.article-body .article-toc__list li {
  padding-left: 0;
}

.article-body .article-toc__list li::before {
  display: none;
}

/* Contextual Link Box */
.contextual-link-box {
  background: linear-gradient(90deg, #fef4ea 0%, #fff 100%);
  border-left: 4px solid var(--orange-primary);
  border-radius: 0 var(--radius-box) var(--radius-box) 0;
  padding: 18px 24px;
  margin: 2rem 0;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contextual-link-box:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contextual-link-box__content {
  display: flex;
  flex-direction: column;
}

.contextual-link-box__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contextual-link-box__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.contextual-link-box__icon {
  width: 24px;
  height: 24px;
  color: var(--orange-primary);
  flex-shrink: 0;
}

/* Mini-Tool: Penalty Estimator */
.penalty-estimator {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  padding: 32px;
  margin: 3rem 0;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.penalty-estimator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--blue-primary), var(--navy-mid));
}

.penalty-estimator__header {
  margin-bottom: 24px;
  text-align: center;
}

.penalty-estimator__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.penalty-estimator__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.penalty-estimator__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.form-group-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-mini label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.form-group-mini select,
.form-group-mini input {
  padding: 12px 16px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-body);
  background: var(--bg-lighter);
  transition: border-color 0.2s ease;
  width: 100%;
}

.form-group-mini select:focus,
.form-group-mini input:focus {
  outline: none;
  border-color: var(--orange-primary);
  background: var(--bg-white);
}

.btn-calc {
  grid-column: 1 / -1;
  background: var(--blue-primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.btn-calc:hover {
  background: var(--navy-mid);
}

.penalty-estimator__result {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px dashed var(--border-card);
  display: none;
}

.penalty-estimator__result.active {
  display: block;
  animation: fadeUp 0.3s ease forwards;
}

.penalty-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #dc2626;
  margin: 8px 0;
}

.penalty-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}

/* Floating Consultation Widget */
.floating-consult {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--orange-primary);
  color: #fff;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(245, 130, 32, 0.35);
  z-index: 999;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-consult::before {
  content: '';
  position: absolute;
  top: -4px;
  right: -4px;
  bottom: -4px;
  left: -4px;
  border-radius: 50%;
  border: 2px solid var(--orange-primary);
  opacity: 0;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

.floating-consult:hover {
  transform: scale(1.1);
  background: var(--orange-secondary);
  color: #fff;
}

.floating-consult svg {
  width: 32px;
  height: 32px;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ── 19. Responsive — Tablet (≤ 900px) ───────────────────── */
@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header-nav a:not(.btn-header) {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .header-nav {
    gap: 12px;
  }

  .mid-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* ── 20. Responsive — Mobile (≤ 600px) ───────────────────── */
@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    height: 60px;
  }

  .logo-text {
    display: none;
  }

  .blog-hero {
    padding: 48px 0 40px;
  }

  .blog-hero h1 {
    font-size: 1.75rem;
  }

  .article-wrap {
    padding: 40px 0 56px;
  }

  .article-body h2 {
    font-size: 1.2rem;
  }

  .mid-cta {
    padding: 24px 22px;
  }

  .mid-cta__heading {
    font-size: 1.05rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }

  .final-cta {
    padding: 56px 0;
  }

  .final-cta__title {
    font-size: 1.55rem;
  }

  .btn-cta-large {
    width: 100%;
    justify-content: center;
    padding: 15px 28px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .takeaways-box {
    padding: 22px 20px;
  }

  .tip-box {
    padding: 18px 18px;
  }

  .follow-us-section {
    padding: 36px 0;
  }

  .follow-us__heading {
    font-size: 1.2rem;
  }

  .follow-link {
    padding: 11px 18px;
    font-size: 0.825rem;
  }

  /* Interactive Elements Overrides */
  .penalty-estimator {
    padding: 24px 20px;
  }

  .penalty-estimator__form {
    grid-template-columns: 1fr;
  }

  .contextual-link-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-consult {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
  }

  .floating-consult svg {
    width: 26px;
    height: 26px;
  }
}

/* ── 21. Print / Accessibility ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media print {

  .site-header,
  .final-cta,
  .related-section,
  .follow-us-section,
  .site-footer {
    display: none;
  }

  .article-wrap {
    padding: 0;
  }
}