/* =========================================================
   ROOT VARIABLES — SHARED BRAND SYSTEM
   ========================================================= */

:root {
  /* Typography */
  --font-primary: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text:         clamp(1rem, 0.25vw + 0.95rem, 1.125rem);
  --text-leading: 1.55;
  --ls-body:      0.005em;
  --ls-heading:  -0.01em;
  --ls-nav:       0.14em;

  /* Colors */
  --primarycolor:       #121a32;
  --accentcolor:        #668330;
  --accentcolor-dark:   #5a742a;
  --supportcolor:       #79a6c9;
  --fontcolor:          #154053;
  --surface-light:      #f6f8fb;
  --border-muted:       rgba(18,26,50,0.12);
  --support-tint-soft:  color-mix(in srgb, var(--supportcolor) 5%,  white);
  --support-tint-strong:color-mix(in srgb, var(--supportcolor) 8%,  white);
  --support-line:       color-mix(in srgb, var(--supportcolor) 55%, white);
  --support-text:       color-mix(in srgb, var(--supportcolor) 80%, #121a32);

  /* Body text shades */
  --text-primary: rgba(21, 64, 83, 1.00);
  --text-body:    rgba(21, 64, 83, 0.86);
  --text-muted:   rgba(21, 64, 83, 0.72);
  --text-subtle:  rgba(21, 64, 83, 0.60);

  /* Shadows */
  --shadow-card:  0 8px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 16px 36px rgba(0,0,0,0.11);

  /* Radius */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Layout */
  --page-pad: clamp(16px, 4vw, 28px);

  /* Header */
  --header-h: 88px;
  --logo-h:   clamp(36px, calc(var(--header-h) * 0.62), 56px);

  /* Blog layout */
  --blog-article-max: 860px;
}

/* Header height breakpoints */
@media (min-width: 1200px) and (max-width: 1399px) {
  :root { --header-h: 80px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  :root { --header-h: 78px; }
}
@media (min-width: 744px) and (max-width: 991px) and (max-height: 600px) { :root { --header-h: 64px; } }
@media (min-width: 744px) and (max-width: 991px) and (min-height: 800px) { :root { --header-h: 84px; } }
@media (min-width: 744px) and (max-width: 991px) and (min-height: 601px) and (max-height: 799px) { :root { --header-h: 80px; } }
@media (min-width: 576px) and (max-width: 743px)                         { :root { --header-h: 64px; } }
@media (max-width: 575px)                                                 { :root { --header-h: 72px; } }

@media (min-width: 1200px) and (max-width: 1399px) {
  :root {
    --page-pad: clamp(28px, 5vw, 56px);
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  :root {
    --page-pad: clamp(32px, 5vw, 48px);
  }
}

@media (min-width: 1400px) { :root { --ls-nav: 0.12em; } }
/* =========================================================
   BASE
   ========================================================= */

body {
  font-family: var(--font-primary);
  font-size: var(--text);
  line-height: var(--text-leading);
  letter-spacing: var(--ls-body);
  color: var(--fontcolor);
  font-weight: 400;
  padding-top: var(--header-h);
  background: #f8fbfc;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: var(--ls-heading);
  color: var(--fontcolor);
}

a {
  color: var(--primarycolor);
  text-decoration: none;
}

a.external-links {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul { padding-left: 0; }

/* Container sizing for article page */
.container       { max-width: 95%; }
.container-fluid { padding: 0; }


/* =========================================================
   HEADER
   ========================================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  padding: 0 clamp(18px, 6vw, 126px);
  display: flex;
  align-items: center;
  transition: background-color .35s ease, box-shadow .35s ease;
  backface-visibility: hidden;
  background: white;
  border-bottom: 1px solid var(--border-muted);
}

#header .brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

#header .site-logo {
  height: var(--logo-h);
  width: auto;
  display: block;
}

@media (max-width: 991px) {
  #header .container-fluid {
    padding-left: 0; padding-right: 0;
  }
}


/* =========================================================
   READING PROGRESS BAR
   ========================================================= */

.reading-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.reading-progress__bar {
  height: 100%;
  width: 0%;
  background: rgba(121,184,226,0.95);
  transform-origin: left center;
  transition: width 120ms linear;
}


/* =========================================================
   NAVBAR — DESKTOP
   ========================================================= */

.navbar {
  margin-left: auto;
  padding-left: 40px;
  max-width: none;
}

.navbar ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  gap: clamp(0.9rem, 1.8vw, 2.6rem);
}

.navbar li {
  position: relative;
  white-space: nowrap;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  padding: 10px 1vw;
  text-transform: uppercase;
  cursor: pointer !important;
  font-size: 0.95rem;
  letter-spacing: var(--ls-nav);
  font-weight: 600 !important;
}

.nav-link {
  color: var(--primarycolor);
}

.nav-link:hover,
.navbar .active,
.navbar .active:focus {
  color: #668330 !important;
}

/* CTA button */
.navbar .btn,
.navbar .btn:focus {
  margin-left: 30px;
  padding: 10px 20px;
  font-size: .8rem;
  font-weight: 600 !important;
  letter-spacing: 0.10em;
  color: #fff !important;
  background: var(--accentcolor);
  border-radius: var(--radius-md);
  transition: all .3s ease;
}

.navbar .btn:hover {
  background-color: #5a742a;
  color: #fff !important;
}

/* Dropdown */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: calc(100% + 20px);
  margin: 0;
  padding: 16px 23px;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: var(--primarycolor);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  transition: all .3s ease;
  border: 1px solid #434a61;
}

.navbar .dropdown ul li a {
  padding: 7px;
  font-size: 0.9rem;
  color: white;
}

.navbar .dropdown:hover > ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

.dropdown .nav-link,
.dropdown-toggle {
  color: var(--primarycolor);
}


/* =========================================================
   MOBILE NAV TOGGLE
   ========================================================= */

.mobile-nav-toggle {
  display: none;
  cursor: pointer;
  color: #fff;
  font-size: 32px;
  transition: .3s;
}

@media (min-width: 744px) and (max-width: 991px) and (orientation: portrait)  { .mobile-nav-toggle img { height: 2.6rem; } }
@media (max-width: 743px) and (orientation: portrait)                          { .mobile-nav-toggle img { height: 2.8rem; } }
@media (max-width: 991px) and (orientation: landscape)                         { .mobile-nav-toggle img { height: 2.4rem; } }
@media (max-width: 480px)                                                      { .mobile-nav-toggle img { height: 2.4rem; } }

/* =========================================================
   NAVBAR — MOBILE OVERLAY
   ========================================================= */

@media (max-width: 991px) {

  .mobile-nav-toggle {
    display: block;
    z-index: 10000;
    border: none;
    background: none;
  }

  .navbar ul {
    display: none;
  }

  #navbar.navbar-mobile {
    position: fixed;
    inset: 0;
    width: auto;
    max-width: none;
    z-index: 9998;
    background: rgba(13, 21, 46, 0.55);
    padding: 0;
    overflow: hidden;
  }

  #navbar.navbar-mobile > ul {
    display: block;
    list-style: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(86vw, 420px);
    margin: 0;
    padding: calc(env(safe-area-inset-top) + 112px) 22px 36px;
    background: var(--primarycolor, #0d152e);
    box-shadow: -18px 0 40px rgba(0,0,0,0.30);
    text-align: left;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: navDrawerIn 180ms ease-out;
  }

  @keyframes navDrawerIn {
    from { transform: translateX(16px); opacity: 0.90; }
    to   { transform: translateX(0);    opacity: 1; }
  }

  #navbar.navbar-mobile > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding: 10px 0;
  }

  #navbar.navbar-mobile > ul > li:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  #navbar.navbar-mobile a,
  #navbar.navbar-mobile a:focus {
    display: block;
    padding: 20px 8px;
    font-size: 1.08rem;
    line-height: 1.30;
    text-align: left;
    text-transform: none;
    letter-spacing: 0.06em;
    color: #fff !important;
    background: transparent;
  }

  #navbar.navbar-mobile a:hover {
    opacity: 0.92;
  }

  #navbar.navbar-mobile a.active,
  #navbar.navbar-mobile .active > a {
    color: var(--accentcolor, #79b8e2) !important;
    font-weight: 700;
    position: relative;
  }

  #navbar.navbar-mobile .dropdown > ul {
    padding: 16px 12px 20px 18px;
    background: #141c3a;
    border-radius: 6px;
  }

  #navbar.navbar-mobile .dropdown > ul a,
  #navbar.navbar-mobile .dropdown > ul a:focus {
    padding: 16px 8px;
    font-size: 1.00rem;
    letter-spacing: 0.03em;
    opacity: 1;
  }

  #navbar.navbar-mobile a.btn,
  #navbar.navbar-mobile a.btn.btn-green {
    display: inline-block;
    width: auto;
    margin-top: 28px;
    margin-left: 0;
    margin-right: 0;
    padding: 14px 26px;
    text-align: center;
    border: 1px white solid;
    border-radius: 12px;
  }

  #navbar.navbar-mobile > ul::after {
    content: "";
    display: block;
    height: 20px;
  }
}

@media (max-width: 575px) {
  #navbar.navbar-mobile > ul {
    width: 100vw;
    right: 0;
    box-shadow: none;
  }
}

@media (max-width: 991px) and (max-height: 440px) and (orientation: landscape) {

  #navbar.navbar-mobile > ul {
    padding: calc(env(safe-area-inset-top) + 72px) 18px 18px;
  }

  #navbar.navbar-mobile > ul > li {
    padding: 4px 0;
  }

  #navbar.navbar-mobile a,
  #navbar.navbar-mobile a:focus {
    padding: 12px 6px;
    font-size: 1.00rem;
    line-height: 1.2;
  }

  #navbar.navbar-mobile .dropdown > ul {
    margin-top: 8px;
    padding: 10px 10px 12px 14px;
  }

  #navbar.navbar-mobile .dropdown > ul a,
  #navbar.navbar-mobile .dropdown > ul a:focus {
    padding: 10px 6px;
    font-size: 0.96rem;
  }

  #navbar.navbar-mobile a.btn,
  #navbar.navbar-mobile a.btn.btn-green {
    margin-top: 14px;
    padding: 12px 22px;
  }
}


/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

@media (min-width: 576px) {
  .back-to-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 1vw;
    bottom: 1vw;
    z-index: 996;
    background: var(--accentcolor);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 4px;
    transition: all 0.4s;
  }

  .back-to-top img {
    height: 70%;
  }

  .back-to-top:hover {
    color: white;
  }

  .back-to-top.active {
    visibility: visible;
    opacity: 1;
  }
}

@media (max-width: 575px) {
  .back-to-top {
    display: none !important;
  }
}

/* Disable AOS animation delay on mobile */
@media screen and (max-width: 991px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}


/* =========================================================
   BLOG HEADER (TITLE AREA)
   ========================================================= */

.blog-header {
  color: white;
  background: var(--primarycolor);
  border-bottom: 1px solid var(--border-muted);
  padding: clamp(2.5rem, 5vw, 5rem) 0;
}

.blog-header .blog-top {
  padding: 0 !important;
  margin: 0 !important;
}

.blog-header a {
  color: var(--supportcolor) !important;
}

#blog-title {
  margin: 0 auto;
}

#blog-title .category {
  margin: 0 0 1rem 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--supportcolor);
}

#blog-title .category-back {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  color: inherit;
  text-decoration: none;
}

#blog-title .category-back svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

#blog-title .category-back:hover svg {
  transform: translateX(-4px);
}

#blog-title .entry-title {
  margin: 1.5rem 0 0.7rem 0 !important;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 46ch;
  font-size: clamp(2.0rem, 2.2vw + 1.2rem, 2.75rem);
  text-align: left;
  color: white;
}

#blog-title .entry-subtitle {
  margin: 0.15rem 0 0 0 !important;
  color: white;
  line-height: 1.55;
  font-weight: 400;
  max-width: 80ch;
  font-size: 1.125rem;
}

#blog-title .blog-meta {
  margin: 2rem 0 0 0 !important;
  padding: 0 !important;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

#blog-title .blog-meta p {
  margin: 0 !important;
  padding: 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
}

.blog-meta .author {
  padding-right: 0 !important;
}
@media (max-width: 575px) {
  #blog-title .category {
    margin-bottom: 0.95rem !important;
    font-size: 0.78rem;
    color: var(--supportcolor);
  }
}

@media (max-width: 1199px) {
  .blog-header {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}



/* =========================================================
   ARTICLE / ENTRY LAYOUT
   ========================================================= */

.entries {
  padding-bottom: 8vh;
}

@media (max-width: 1199px) {
  .entries {
    padding-left: 4vw;
    padding-right: 4vw;
  }
}

.entry {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.entry.entry-single {
  max-width: var(--blog-article-max);
  margin-left: auto;
  margin-right: auto;
}

.entry .entry-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 0 0 18px 0;
}

.entry .entry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
}

.entries img {
  border-radius: var(--radius-md);
  padding-top: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block;
}


/* =========================================================
   ENTRY CONTENT — TYPOGRAPHY
   ========================================================= */

.entry-content {
  margin-bottom: 7rem;
}

.entry .entry-content p,
.entry .entry-content li {
  line-height: 1.75;
  letter-spacing: 0.01em;
  font-size: calc(15px + .2vw);
  font-weight: 400;
  color: var(--fontcolor);
}

.entry .entry-content p {
  margin: 0 0 1rem 0;
  padding: 0;
}

.entry .entry-content h2 {
  margin: 0 0 0.9rem 0;
  margin-top: clamp(28px, 3.2vw, 46px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.entry .entry-content h3 {
  margin: 1.6rem 0 0.7rem 0;
  line-height: 1.25;
  font-weight: 700;
}

.entry .entry-content h4 {
  font-size: calc(17px + 0.1vw);
  margin: 12px;
  font-weight: 500;
}

.entry .entry-content ul,
.entry .entry-content ol {
  margin: 0.6rem 0 1.2rem 1.15rem;
  padding-left: 0.65rem;
}

.entry .entry-content li {
  margin-bottom: 0.45rem;
}

.entry .entry-content li ul,
.entry .entry-content li ol {
  margin-top: 0.6rem;
  margin-bottom: 0.6rem;
}

.entry .entry-content a {
  text-decoration: underline var(--support-line) 0.12rem;
  text-underline-offset: 4px;
}

.entry .entry-content a:hover {
  text-decoration-color: var(--supportcolor);
}

.entry .entry-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.6rem auto;
  border-radius: 10px;
}

.entry .entry-content hr {
  margin: 1.1rem 0 1.4rem;
  opacity: 0.18;
}

.entry-content h2 {
  margin-top: clamp(28px, 3.2vw, 46px);
  margin-bottom: clamp(10px, 1.2vw, 16px);
  font-weight: 600;
}

.entry-content p {
  margin: 0 0 1.05em 0;
}

.entry-content section {
  scroll-margin-top: clamp(54px, 5vw, 60px);
  margin-top: clamp(2.2rem, 3.2vw, 3.2rem);
  padding-top: clamp(18px, 2.2vw, 32px);
}

.entry-content section:first-child {
  margin-top: 0;
}


/* =========================================================
   BLOCKQUOTE
   ========================================================= */

blockquote {
  overflow: hidden;
  background: var(--support-tint-strong);
  padding: clamp(1rem, 2vw, 1.8rem) clamp(1.25rem, calc(30px + 1vw), 2.5rem);
  position: relative;
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 1.8rem 0 0;
  max-width: 100%;
}

blockquote p {
  color: var(--fontcolor);
  line-height: 1.5;
  margin-bottom: 0;
  font-weight: 400;
  font-size: calc(16px + 0.2vw);
  font-style: italic;
}

.entry-content .quoter {
  text-align: right;
  font-style: normal !important;
  font-size: calc(14px + 0.2vw) !important;
  font-weight: 500 !important;
}

.entry .entry-content blockquote {
  padding: 1.8rem 2rem;
}

@media (min-width: 992px) {
  .entry .entry-content blockquote {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 575px) {
  .entry .entry-content blockquote {
    padding: 1.8rem 1.5rem 0.8rem;
  }
}


/* =========================================================
   SECTION SPACING — EXECUTIVE SUMMARY / CASE STUDY SUMMARY
   ========================================================= */

#Executive-Summary,
#Case-Study-Summary,
#Summary {
  margin: clamp(2.5rem, 4vw, 3.5rem) 0;
}

#Executive-Summary h2,
#Case-Study-Summary h2,
#Summary h2 {
  margin-bottom: 1rem;
}

#Executive-Summary p,
#Case-Study-Summary p,
#Summary p {
  max-width: 70ch;
  margin-bottom: 0.9rem;
  line-height: 1.7;
}


/* =========================================================
   ENGAGEMENT HIGHLIGHTS
   ========================================================= */

#Engagement-Highlights {
  margin: clamp(1.5rem, 3vw, 2.5rem) 0;
}

#Engagement-Highlights details {
  width: 100%;
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 0;
}

#Engagement-Highlights summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-primary);
  color: var(--primarycolor);
  font-size: clamp(14px, 2vw, 20px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#Engagement-Highlights summary::-webkit-details-marker {
  display: none;
}

#Engagement-Highlights summary::after {
  content: "▾";
  line-height: 1;
  font-size: 18px;
  opacity: 0.85;
  transition: transform .18s ease;
}

#Engagement-Highlights details[open] summary::after {
  transform: rotate(180deg);
}

#Engagement-Highlights ul {
  margin: 0;
  padding: 0 16px 14px;
  list-style: none;
}

#Engagement-Highlights li {
  margin: 0;
  padding: 0.8rem 0;
  border-top: 1px solid rgba(18,26,50,0.08);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.45;
  color: var(--text-muted);
}

#Engagement-Highlights li:first-child {
  border-top: 0;
}

@media (max-width: 575px) {
  #Engagement-Highlights summary {
    padding: 13px 14px;
  }

  #Engagement-Highlights ul {
    padding: 0 14px 12px;
  }
}


/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */

details.toc.toc-accordion {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
}

details.toc.toc-accordion .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

details.toc.toc-accordion .toc-list li {
  margin: 0;
}

/* Desktop TOC rail (>=992px) */
@media (min-width: 992px) {

  details.toc.toc-accordion > summary {
    display: none !important;
  }

  details.toc.toc-accordion > nav {
    display: block !important;
  }

  details.toc.toc-accordion .toc-list {
    border-left: 2px solid var(--border-muted);
  }

  details.toc.toc-accordion .toc-list a {
    display: block;
    padding: 0.6rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--fontcolor);
    opacity: 0.65;
    letter-spacing: 0.01em;
    border-left: 2px solid transparent;
    margin-left: -2px;
    text-decoration: none;
    line-height: 1.4;
    transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

  details.toc.toc-accordion .toc-list a:hover {
    opacity: 1;
    color: var(--fontcolor);
  }

  details.toc.toc-accordion .toc-list li.visible > a {
    opacity: 1;
    color: var(--accentcolor);
    border-left-color: var(--accentcolor);
    font-weight: 600;
    padding-left: 1.1rem;
  }

  details.toc.toc-accordion .toc-list li.visible {
    padding-left: 0;
    border-left: none;
  }
}

/* Mobile TOC accordion (<=991px) */
@media (max-width: 991px) {

  .sticky {
    position: static !important;
  }

  details.toc.toc-accordion {
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.92);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-top: 2.2rem;
  }

  details.toc.toc-accordion > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 11px 16px;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    -webkit-tap-highlight-color: transparent;
    font-family: var(--font-primary);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--primarycolor);
  }

  details.toc.toc-accordion > summary::-webkit-details-marker {
    display: none;
  }

  details.toc.toc-accordion > nav {
    display: none;
    padding: 0 16px 14px;
  }

  details.toc.toc-accordion[open] > nav {
    display: block;
  }

  details.toc.toc-accordion .toc-list a {
    display: block;
    padding: 0.8rem 0;
    border-top: 1px solid rgba(18,26,50,0.08);
    font-size: clamp(15px, 1.2vw, 17px);
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    opacity: 1;
    border-left: none;
    margin-left: 0;
  }

  details.toc.toc-accordion .toc-list li:first-child a {
    border-top: 0;
  }

  details.toc.toc-accordion .toc-list li.visible > a {
    color: var(--accentcolor);
    font-weight: 600;
  }

  details.toc.toc-accordion .toc-icon {
    transition: transform 0.18s ease;
  }

  details.toc.toc-accordion[open] .toc-icon {
    transform: rotate(180deg);
  }
}


/* =========================================================
   STICKY SIDEBAR (desktop)
   ========================================================= */

@media (min-width: 992px) {
  .sticky {
    position: sticky;
    top: calc(var(--header-h, 90px) + 2rem);
    align-self: flex-start;
    padding-top: 0;
  }
}

@media (min-width: 1300px) {
  .sticky {
    margin: 6vw 0 6vw 2vw;
  }
}

@media (min-width: 992px) and (max-width: 1299px) {
  .sticky {
    margin: 6vw 0;
  }
}

@media (max-width: 1400px) {
  .sticky {
    padding-left: 20px;
  }
}

@media (max-width: 599px) {
  .sticky {
    width: 100%;
    padding: 0;
  }
}


/* =========================================================
   SECTION LIST ITEMS
   ========================================================= */

section li {
  padding-bottom: 0.6rem;
}


/* =========================================================
   BLOG COMMENTS (newsletter signup CTA)
   ========================================================= */

/* Outer section wrapper */
#call-to-action {
  margin: clamp(2.5rem, 5vw, 4rem) 0;
}

#call-to-action .container {
  max-width: 100%;
}


/* Card */
.blog-comments {
  position: relative;
  overflow: hidden;
  background: var(--primarycolor);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 44px);
  box-shadow: 0 20px 50px rgba(18,26,50,0.22);
  text-align: left;
  color: #fff;
}

/* Decorative arc in the top-right corner */
.blog-comments::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(121,166,201,0.12);
  pointer-events: none;
}

.blog-comments::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: 60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(102,131,48,0.14);
  pointer-events: none;
}

.blog-comments h2 {
  position: relative;
  margin: 0 0 0.75rem 0 !important;
  font-size: calc(1.325rem + .9vw) !important;
  font-weight: 700;
  color: #fff !important;
  line-height: 1.2;
  max-width: 36ch;
  letter-spacing: -0.02em;
}

/* Accent underline on heading */
.blog-comments h2::after {
  content: "";
  display: block;
  margin-top: 10px;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--accentcolor);
}

.blog-comments p {
  margin: 0 0 clamp(18px, 2.5vw, 28px) 0 !important;
  color: rgba(255,255,255,0.80) !important;
  font-size: clamp(0.88rem, 0.5vw + 0.8rem, 1rem) !important;
  line-height: 1.6 !important;
  max-width: 52ch;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

/* Eyebrow label */
.blog-comments .cta-eyebrow {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  color: var(--supportcolor) !important;
  margin: 0 0 0.75rem 0 !important;
  max-width: none !important;
  line-height: 1 !important;
}

/* Book call button */
.cta-book-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 14px 28px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff !important;
  background: var(--accentcolor);
  border-radius: 10px;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(102,131,48,0.35);
}

.cta-book-btn:hover {
  background: #597529;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102,131,48,0.45);
}

.cta-book-btn:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(102,131,48,0.3);
}

@media (max-width: 575px) {
  .cta-book-btn {
    display: block;
    text-align: center;
  }
}


/* =========================================================
   CONCLUSION
   ========================================================= */

.conclusion {
  margin-bottom: 20px;
}


/* =========================================================
   AUTHOR CARD
   ========================================================= */

.blog-author {
  margin-top: clamp(2rem, 3.5vw, 3rem);
  padding: clamp(16px, 1.6vw, 24px) !important;
  background: var(--support-tint-strong);
}

.author-eyebrow {
  display: block;
  margin: 0 0 0.75rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accentcolor);
}

.blog-author__inner {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 22px);
}

.blog-author__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

.blog-author__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blog-author__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primarycolor);
  letter-spacing: -0.01em;
}

.blog-author__bio {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  letter-spacing: 0.005em;
}

/* Sidebar variant */
.blog-author--sidebar .blog-author__inner {
  flex-direction: column;
  align-items: flex-start;
}

.blog-author--sidebar .blog-author__photo {
  width: 60px;
  height: 60px;
}

.author-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-linkedin {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.author-linkedin img {
  height: 14px;
  width: auto;
  opacity: 0.75;
  transition: opacity 120ms ease, transform 120ms ease;
  margin-bottom: 0;
}

/* Author card responsive positioning */
@media (min-width: 1550px) {
  .blog-author { margin: 6vw 2vw; }
}

@media (min-width: 1400px) and (max-width: 1549px) {
  .blog-author { margin: 6vw 1vw; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .blog-author {
    margin: 6vw 0;
    padding: 2.5vw 3vw;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .blog-author {
    margin: 6vw 0;
    padding: 2.5vw 4vw 1vw;
  }
}

@media (min-width: 812px) and (max-width: 991px) {
  .blog-author {
    margin: 4rem 0;
    padding: 5vw;
  }
}

@media (min-width: 768px) and (max-width: 811px) {
  .blog-author {
    margin: 0;
    padding: 4vw;
  }
}

@media (min-width: 576px) and (max-width: 767px) {
  .blog-author {
    margin: 0;
    padding: 3vw 4vw;
  }
}

@media (max-width: 575px) {
  .blog-author {
    margin: 7vw 0;
    padding: 4vw;
  }
}


/* =========================================================
   RECENT POSTS
   ========================================================= */

.recent-posts {
  padding: clamp(16px, 2vw, 24px) !important;
}

.recent-posts .post-item + .post-item {
  margin-top: 15px;
}

.recent-posts h3 {
  font-size: 20px;
  font-weight: 500;
}

.recent-posts h4 {
  font-size: 13px;
  font-weight: 500;
  color: var(--support-text);
  text-decoration: none;
  padding-left: 0;
  margin: 9px 0 6px;
}

.recent-posts h5 {
  padding: 2px 0 0 0;
  color: var(--fontcolor);
  font-size: 1rem;
  transition: 0.3s;
  font-weight: 700;
  line-height: 1.3 !important;
  margin-bottom: 3px;
}

.recent-posts time {
  display: block;
  font-style: italic;
  font-size: .7rem;
  color: #757575;
}

/* Recent posts responsive positioning */
@media (min-width: 1550px) {
  .recent-posts { margin: 15vw 20px 0 10px; }
}

@media (min-width: 1400px) and (max-width: 1549px) {
  .recent-posts { margin: 15vh 15px 0 5px; }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .recent-posts { margin: 10px 0 4vw; }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .recent-posts { margin: 10px 0 4vw; }
}

@media (min-width: 812px) and (max-width: 991px) {
  .recent-posts .show-4 { margin: 10px 1vw 0; }
}

@media (min-width: 768px) and (max-width: 811px) {
  .recent-posts { margin: 10px 1vw 0; }
}

@media (min-width: 576px) and (max-width: 767px) {
  .recent-posts { margin: 10px 1vw 3vw; }
}

@media (max-width: 575px) {
  .recent-posts {
    margin: 15vw 0;
    padding: 4vw;
  }
}


/* =========================================================
   SHOW / HIDE UTILITIES
   ========================================================= */

@media (min-width: 992px) {
  .show-6 { display: none; }
}

@media (max-width: 991px) {
  .show-5 { display: none; }
}

@media (min-width: 1400px) {
  .show-4 { display: none; }
}

@media (max-width: 1399px) {
  .show-3 { display: none; }
}

@media (max-width: 575px) {
  .post-box,
  .side-CTA {
    display: none;
  }
}


/* =========================================================
   SOURCE CAPTION
   ========================================================= */

.source {
  font-size: 11px;
  text-align: right;
  font-style: italic;
  opacity: 0.85;
}

.justify-content-right { justify-content: right; }
.text-center           { text-align: center; }


/* ==============================================
   BUTTONS
   ============================================== */

.btn {
  padding: 0.5rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
}

.btn-green       { background-color: var(--accentcolor); color: #fff; border: 2px solid var(--accentcolor); }
.btn-green:hover { background-color: #5a742a; color: #fff; }

/* ==============================================
   FOOTER
   ============================================== */

.footer { background: var(--primarycolor); color: #fff; height: auto; overflow: hidden; }
.footer .footer-content { display: flex; flex-wrap: wrap; padding: 1vw 0 0 0; justify-content: space-between; }
.footer a { color: #adadad; }
.footer .contact { margin-top: 1.5vw; }
.footer .footer-co {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  margin-bottom: 0.6rem;
}
.footer .footer-co a.linkedin {
  padding: 0;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  margin: 0;
}
.footer .footer-logo {
  height: 32px;
  width: 32px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  padding: 3px;
}
.footer .footer-info p { font-size: 0.875rem; color: #fff; line-height: 1.55; }
.footer .footer-info .contact p,
.footer .footer-info .contact a { font-size: 0.875rem; color: #fff; line-height: 1.55; }

.footer-cta::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accentcolor);
  margin-bottom: 1.25rem;
}

.footer .footer-content .social-links a {
  font-size: 0.9rem;
  line-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--primarycolor);
  margin-right: 0.7rem;
  margin-bottom: 3rem;
  margin-top: 0;
  transition: 0.3s;
  background-color: #fff;
  border-radius: 50px;
}

.footer .twitter   img { height: 18px; }
.footer .linkedin  img { height: 18px; }
.footer .instagram img { height: 14px; }
.footer .youtube   img { height: 18px; }
.footer .tiktok    img { height: 18px; }

.footer .links h4 { font-size: 1rem; font-weight: 600; color: white; line-height: 1.4; }

.footer .footer-content .footer-links ul { list-style: none; padding: 0; }
.footer .footer-content .footer-links ul i { margin-right: 0; color: var(--color-primary); font-size: 1rem; line-height: 0; }
.footer .footer-content .footer-links ul li:first-child { padding-top: 8px; }
.footer .footer-content .footer-links ul a { font-size: 0.875rem; color: #adadad; line-height: 1.55; }
.footer .footer-content .footer-links ul a:hover { color: #fff; }
.footer .footer-legal p { font-size: 0.75rem; }
.footer .copyright { font-size: 0.6rem !important; margin-bottom: 0 !important; }


/* Align footer-info content toward the top, consistent with nav columns */
.footer .footer-info { display: flex; flex-direction: column; justify-content: flex-start; }

.footer-cta { order: 1; display: flex; flex-direction: column; justify-content: flex-start; }
.footer-cta-headline { font-size: 1rem; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 0.5rem !important; }
.footer-cta-sub { font-size: 0.875rem; color: #adadad; line-height: 1.55; margin-bottom: 1.25rem !important; }
.footer-cta .btn-green { margin-top: 0.25rem; align-self: flex-start; }

.footer-info .social-links { margin-top: 0.9rem; display: flex; justify-content: flex-start; }
.footer-info .social-links a.linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  margin: 0;
  padding: 0;
  background: none;
  width: auto !important;
  height: auto !important;
  margin-bottom: 0 !important;
}
.footer-info .social-links a.linkedin:hover { opacity: 0.8; background: none; }
.footer-info .linkedin i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-info .linkedin img { height: 24px; filter: brightness(0) invert(1); opacity: 1; }

/* h4 — no border */
.footer .links h4 {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  line-height: 1.4;
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Modal */
.footer-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 28, 0.75);
  backdrop-filter: blur(3px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.footer-modal-overlay.open { display: flex; }

.footer-modal {
  background: var(--primarycolor);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  width: 100%;
  max-width: 560px;
  margin: 1rem;
  position: relative;
}

.footer-modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
  padding: 0;
}
.footer-modal-close:hover { color: #fff; }

.footer-modal h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.footer-modal > p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.footer-modal .form-group { margin-bottom: 1.1rem; }
.footer-modal .form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}
.footer-modal .form-group input,
.footer-modal .form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  font-size: 0.9rem;
  color: #fff;
  font-family: var(--font-primary);
  transition: border-color 0.2s;
  outline: none;
}
.footer-modal .form-group input::placeholder,
.footer-modal .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.footer-modal .form-group input:focus,
.footer-modal .form-group textarea:focus { border-color: rgba(255,255,255,0.35); }
.footer-modal .form-group textarea { resize: vertical; min-height: 150px; }
.footer-modal .btn-green { width: 100%; margin-top: 0.5rem; }


/* ---- Footer responsive ---- */

/* Desktop: 3 columns side by side */
@media (min-width: 992px) {
  .footer { padding: clamp(2.5rem, 4vw, 3.5rem) clamp(2rem, 6vw, 6rem) 0; }
  .footer .footer-content { flex-wrap: nowrap; align-items: flex-start; gap: 0; }
  .footer .footer-info { flex: 0 0 28%; max-width: 28%; padding-right: 3vw; }
  .footer .footer-links { flex: 0 0 72%; max-width: 72%; display: flex; justify-content: space-between; align-items: flex-start; }
  .footer .links { flex: 0.8; display: flex; justify-content: space-evenly; }
  .footer .footer-cta { flex: 0 0 38%; max-width: 38%;}
  .footer .footer-content .footer-links ul li { padding: 0.28rem 0; font-size: 0.875rem; line-height: 1; }
  .footer .copyright { padding: clamp(1.5rem, 2vw, 2rem) 0 1rem; }
}

/* Tablet: footer-info full width on top, links + cta side by side below */
@media (min-width: 576px) and (max-width: 991px) {
  .footer { padding: 6vw 6vw 0; }
  .footer .footer-content { flex-wrap: wrap; }
  .footer .footer-info { flex: 0 0 100%; max-width: 100%; padding-right: 0; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer .footer-info .social-links { justify-content: flex-start; }
  .footer .footer-links { flex: 0 0 100%; max-width: 100%; display: flex; align-items: flex-start; margin-top: 2rem; }
  .footer .links { flex: 1; display: flex; justify-content: flex-start; gap: 3rem; }
  .footer .footer-cta { flex: 0 0 42%; max-width: 42%; }
  .footer .footer-content .footer-links ul li { padding: 0.28rem 0; font-size: 0.875rem; line-height: 1; }
  .footer .copyright { padding: 2rem 0 1rem; }
}

/* Mobile: everything stacked */
@media (max-width: 575px) {
  .footer { padding: 10vw 6vw 0; }
  .footer .footer-content { flex-wrap: wrap; }
  .footer .footer-info { flex: 0 0 100%; max-width: 100%; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .footer .links { display: flex; justify-content: space-between; margin-bottom: 4rem; width: 100%;}
  .footer .footer-cta .btn-green { width: 100%; text-align: center; }
  .footer .footer-content .footer-links ul li { padding: 0.28rem 0; font-size: 0.875rem; line-height: 1; }
  .footer .footer-content .footer-links ul { margin-bottom: 0; }
  .footer h4 { font-size: 0.875rem; }
  .footer .copyright { padding: 2rem 0 1rem; }
  .footer .footer-links { max-width: 100%; margin-top: 2rem; display: flex; flex-direction: column; }
  .footer .footer-cta { max-width: 100%; order: -1; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
}
