/* Blog shared styles */
:root {
  --teal: #009b7e;
  --teal-mid: #00b894;
  --teal-light: #e0f5f0;
  --teal-xlight: #f0faf7;
  --bg-mid: #f0f8fb;
  --bg-white: #ffffff;
  --bg-soft: #f7fbfc;
  --navy: #0b1f35;
  --navy2: #1a3650;
  --text-body: #3d5a70;
  --text-muted: #7a96a8;
  --border: rgba(0,100,130,0.1);
  --border2: rgba(0,100,130,0.18);
  --border-teal: rgba(0,155,126,0.25);
  --shadow-card: 0 2px 16px rgba(0,80,110,0.07);
  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 8px;
  --mint: #34EAA8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--bg-white);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 5%;
  height: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease;
  will-change: transform;
}
.nav-hidden { transform: translateY(-100%); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.btn-nav {
  background: var(--teal);
  color: white !important;
  font-weight: 600 !important;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px !important;
  transition: all 0.2s;
}
.btn-nav:hover { background: #007a64 !important; transform: translateY(-1px); }
.nav-new { background: var(--mint); color: var(--navy); font-size: 9px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.nav-voice { color: var(--navy) !important; font-weight: 700 !important; display: flex; align-items: center; gap: 6px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nav-toggle-icon {
  display: block;
  position: relative;
  width: 22px; height: 2px;
  background: currentColor;
  transition: background 0.2s;
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform 0.2s, top 0.2s;
}
.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after  { top: 0; transform: rotate(-45deg); }

/* ── Layout helpers ── */
.section { padding: 80px 5%; }
.section-soft { background: var(--bg-soft); }
.section-mid { background: var(--bg-mid); }
.container { max-width: 1200px; margin: 0 auto; }
.center { text-align: center; }

/* ── Index hero — matches case-studies exactly ── */
.hero {
  background: linear-gradient(160deg, #daeef5 0%, #e8f4f8 40%, #d5edf5 100%);
  padding: 120px 5% 70px;
  position: relative;
  overflow: hidden;
}
.hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,184,148,0.12) 0%, transparent 70%);
  top: -140px; right: -120px;
}
.hero-blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(0,100,150,0.08) 0%, transparent 70%);
  bottom: -120px; left: 5%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0,155,126,0.1);
}
.hero-title {
  font-size: clamp(34px, 4.5vw, 54px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}
.hero-sub {
  color: var(--text-body);
  font-size: 17px;
  max-width: 560px;
}
.hero-card { background: transparent; border: none; padding: 0; box-shadow: none; }
.hero-media {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(6,50,80,0.18);
  border: 1px solid rgba(0,120,150,0.12);
}
.hero-media-img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center;
}
.hero-media-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #005a47 0%, #007a64 30%, #009b7e 60%, #00c5a1 85%, #34EAA8 100%);
}

/* ── Index card grid — matches case-studies card style ── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(0,20,40,0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,20,40,0.12);
  border-color: var(--border-teal);
}
.card-cover {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #005a47 0%, #007a64 30%, #009b7e 60%, #00c5a1 85%, #34EAA8 100%);
  flex-shrink: 0;
  overflow: hidden;
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  background: #efe9dc;
  padding: 5px 10px;
  border-radius: 6px;
  line-height: 1;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}
.card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}
.card-excerpt {
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.6;
  flex: 1;
}
.card-meta-sm {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.card-divider {
  height: 1px;
  background: #ececec;
  margin-top: auto;
  margin-bottom: 4px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--teal);
  color: white;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  width: fit-content;
}
.card-link:hover { background: #007a64; }

/* ── Post hero ── */
.post-hero {
  background: linear-gradient(160deg, #daeef5 0%, #e8f4f8 40%, #d5edf5 100%);
  padding: 120px 5% 60px;
  position: relative;
  overflow: hidden;
}
.post-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  pointer-events: none;
}
.post-hero-blob { position: absolute; border-radius: 50%; pointer-events: none; }
.post-hero-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,184,148,0.1) 0%, transparent 70%);
  top: -100px; right: -80px;
}
.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  text-align: center;
}
.post-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-teal);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,155,126,0.1);
}
.post-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 18px;
}
.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.post-meta-dot { color: var(--border2); font-size: 10px; }

/* ── Cover image ── */
.post-cover-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 5%;
  transform: translateY(-30px);
}
.post-cover {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(0,120,150,0.12);
  box-shadow: 0 20px 50px rgba(6,50,80,0.18);
  background: linear-gradient(135deg, #005a47 0%, #007a64 30%, #009b7e 60%, #00c5a1 85%, #34EAA8 100%);
}
.post-cover img { width: 100%; height: auto; display: block; }
.post-cover-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
}
.post-cover-placeholder svg { opacity: 0.4; }

/* ── Article layout ── */
.article-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5% 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.article-body { min-width: 0; }
.article-body h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 44px 0 14px;
  line-height: 1.25;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.article-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 18px;
  text-align: left;
}
.article-body ul,
.article-body ol {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.article-body ul li,
.article-body ol li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  padding-left: 22px;
  position: relative;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-mid);
}
.article-body ol { counter-reset: item; }
.article-body ol li { counter-increment: item; }
.article-body ol li::before {
  content: counter(item);
  position: absolute;
  left: 0; top: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1.75;
}
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: #007a64; }
.article-body .card-link { color: white; text-decoration: none; }
.article-body .card-link:hover { color: white; background: #007a64; }

.article-blockquote {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--teal-xlight);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-blockquote p {
  font-size: 16.5px;
  font-style: italic;
  color: var(--navy2);
  margin: 0;
  line-height: 1.6;
}
.article-blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--text-muted);
}

.article-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.article-stat {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.article-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.article-stat-label { font-size: 12.5px; color: var(--text-body); font-weight: 500; line-height: 1.4; }

.article-result-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.article-result {
  background: var(--teal-xlight);
  border: 1px solid var(--border-teal);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}
.article-result-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.article-result-label { font-size: 12.5px; color: var(--navy2); font-weight: 600; line-height: 1.4; }

.article-checklist {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  list-style: none;
  padding: 0;
}
.article-checklist li {
  display: flex;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text-body);
  line-height: 1.55;
}
.article-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2 6l3 3 5-5' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 2px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15.5px;
  color: var(--text-body);
}
.article-table tr {
  border-bottom: 1px solid var(--border);
}
.article-table tr:last-child {
  border-bottom: none;
}
.article-table td {
  padding: 16px 14px;
  line-height: 1.65;
  vertical-align: top;
}
.article-table td:first-child {
  width: 200px;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 600;
  padding-right: 24px;
}

.article-divider { border: none; border-top: 1px solid #e8e8e8; margin: 40px 0; }

.article-sources {
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-sources-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.article-sources ol { counter-reset: source; padding-left: 0; list-style: none; gap: 6px; }
.article-sources ol li {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
  counter-increment: source;
}
.article-sources ol li::before {
  content: counter(source) ".";
  position: absolute;
  left: 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
}

/* ── Sidebar ── */
.article-sidebar { position: sticky; top: 90px; display: grid; gap: 18px; }
.sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.sidebar-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.sidebar-meta-row { display: flex; gap: 10px; font-size: 13px; color: var(--text-body); margin-bottom: 8px; align-items: flex-start; }
.sidebar-meta-row span:first-child { color: var(--text-muted); font-weight: 600; min-width: 56px; flex-shrink: 0; }
.sidebar-cta { background: linear-gradient(135deg, #007a64, var(--teal)); border: none; color: white; }
.sidebar-cta .sidebar-card-label { color: rgba(255,255,255,0.6); }
.sidebar-cta-title { font-size: 16px; font-weight: 800; color: white; margin-bottom: 8px; line-height: 1.3; }
.sidebar-cta-text { font-size: 13px; color: rgba(255,255,255,0.75); line-height: 1.55; margin-bottom: 16px; }
.sidebar-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 13.5px;
  transition: opacity 0.2s;
}
.sidebar-cta-btn:hover { opacity: 0.9; }
.sidebar-related-title { font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.4; }
.sidebar-related-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.sidebar-related-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-related-link:hover { color: #007a64; }

/* ── CTAs ── */
.post-cta {
  padding: 60px 5%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  color: white;
  text-align: center;
}
.post-cta h2 { font-size: clamp(24px, 3.5vw, 36px); margin-bottom: 10px; font-weight: 800; }
.post-cta p { color: rgba(255,255,255,0.75); margin-bottom: 22px; font-size: 16px; }
.post-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  background: white;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.cta {
  padding: 70px 5%;
  background: linear-gradient(135deg, var(--teal-mid), var(--teal));
  color: white;
  text-align: center;
}
.cta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  background: white;
  color: var(--teal);
  text-decoration: none;
  font-weight: 700;
}

/* ── Footer ── */
footer {
  background: #0b1f35;
  color: white;
  padding: 60px 5% 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 26px;
}
.foot-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.65; margin: 12px 0 18px; max-width: 260px; }
.foot-company { font-size: 12px; color: rgba(255,255,255,0.3); margin-bottom: 6px; }
.foot-email { font-size: 13px; color: var(--teal-mid); text-decoration: none; }
.foot-col-h { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.foot-links { list-style: none; display: grid; gap: 8px; }
.foot-links a { font-size: 13.5px; color: rgba(255,255,255,0.6); text-decoration: none; }
.foot-links a:hover { color: rgba(255,255,255,0.9); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero-grid,
  .grid-2,
  .article-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-wrap { padding: 0 5% 60px; }
  .article-sidebar { position: static; order: -1; }
}

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 5% 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 4px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-links .btn-nav { margin-top: 12px; justify-content: center; }
}

@media (max-width: 640px) {
  .hero { padding: 110px 5% 60px; }
  .post-hero { padding: 110px 5% 50px; }
  .post-cover { height: 260px; }
  .article-stat-row,
  .article-result-row { grid-template-columns: 1fr; }

  .article-table,
  .article-table tbody,
  .article-table tr,
  .article-table td { display: block; width: 100%; }
  .article-table tr { border-bottom: 1px solid var(--border); padding: 14px 0; }
  .article-table tr:last-child { border-bottom: none; }
  .article-table td { padding: 0; white-space: normal; }
  .article-table td:first-child {
    width: 100%;
    white-space: normal;
    font-size: 14px;
    margin-bottom: 6px;
    padding-right: 0;
  }
  .article-table td:last-child { font-size: 14px; color: var(--text-body); }
}
