/* StartupGuru blog - scoped styles (all selectors prefixed .sgb-) */
.sgb-hero,
.sgb-section,
.sgb-cta,
.sgb-post-hero {
  font-family: "Montserrat", Arial, sans-serif;
  color: #0a1f44;
  box-sizing: border-box;
}
.sgb-hero *,
.sgb-section *,
.sgb-cta *,
.sgb-post-hero * { box-sizing: border-box; }

.sgb-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- hero ---------- */
.sgb-hero {
  background: radial-gradient(1200px 420px at 15% -20%, #1d86c8 0%, #14315f 45%, #0a1f44 100%);
  padding: 142px 0 52px; /* clears the site's absolute header (96px) */
  color: #fff;
}
.sgb-hero-small { padding-bottom: 40px; }
.sgb-hero h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
  color: #fff;
}
.sgb-hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 720px;
  margin: 0 0 26px;
}
.sgb-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1d86c8;
}
.sgb-eyebrow-light { color: #8fc7ea; }

.sgb-crumbs {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.sgb-crumbs a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.sgb-crumbs a:hover { color: #fff; text-decoration: underline; }
.sgb-crumbs i { font-style: normal; opacity: 0.45; }
.sgb-crumbs span { color: rgba(255, 255, 255, 0.55); }

/* ---------- chips ---------- */
.sgb-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.sgb-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.sgb-chip span { font-size: 11px; opacity: 0.6; }
.sgb-chip:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.sgb-chip.is-active { background: #fff; color: #0a1f44; border-color: #fff; font-weight: 600; }
.sgb-chip.is-active span { opacity: 0.55; }

/* ---------- sections ---------- */
.sgb-section { padding: 56px 0 10px; background: #f6f9fc; }
.sgb-section-post { padding-top: 34px; }
.sgb-section-related { padding-bottom: 46px; }
.sgb-h2 { font-size: 26px; font-weight: 700; margin: 0 0 24px; color: #0a1f44; }
.sgb-count { font-size: 13px; color: #6b7c93; margin: 0 0 20px; }

/* ---------- featured ---------- */
.sgb-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(10, 31, 68, 0.10);
  margin: 8px 0 38px;
}
.sgb-featured-img { display: block; position: relative; background: #dbe6f1; min-height: 320px; }
.sgb-featured-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.sgb-featured-body { padding: 34px 34px 30px; display: flex; flex-direction: column; justify-content: center; }
.sgb-featured-body h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.24;
  margin: 10px 0 12px;
  font-weight: 700;
}
.sgb-featured-body h2 a { color: #0a1f44; text-decoration: none; }
.sgb-featured-body h2 a:hover { color: #1d86c8; }
.sgb-featured-body p { font-size: 15px; line-height: 1.7; color: #4e5d78; margin: 0 0 18px; }

/* ---------- grid + cards ---------- */
.sgb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}
.sgb-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10, 31, 68, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sgb-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(10, 31, 68, 0.12); }
.sgb-card-img { display: block; position: relative; padding-top: 56.25%; background: #e2ebf4; overflow: hidden; }
.sgb-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sgb-card-img-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #1d86c8, #0a1f44); }
.sgb-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.sgb-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d86c8;
  background: rgba(29, 134, 200, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.sgb-pill:hover { background: rgba(29, 134, 200, 0.18); color: #1d86c8; text-decoration: none; }
.sgb-card-title {
  font-size: 18.5px;
  line-height: 1.36;
  font-weight: 600;
  margin: 12px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sgb-card-title a { color: #0a1f44; text-decoration: none; }
.sgb-card-title a:hover { color: #1d86c8; }
.sgb-card-excerpt {
  font-size: 14px;
  line-height: 1.65;
  color: #4e5d78;
  margin: 0 0 14px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sgb-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #5f6f86;
  letter-spacing: 0.01em;
}
.sgb-dot { width: 3px; height: 3px; border-radius: 50%; background: #b9c4d4; display: inline-block; }
.sgb-read { font-size: 13.5px; font-weight: 600; color: #1d86c8; text-decoration: none; margin-top: 14px; display: inline-block; }
.sgb-read:hover { color: #0a1f44; text-decoration: none; }
.sgb-empty { color: #4e5d78; }

/* ---------- pagination ---------- */
.sgb-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 0 34px;
  flex-wrap: wrap;
}
.sgb-pager a,
.sgb-pager span.sgb-pager-current {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #0a1f44;
  border: 1px solid #dbe4ef;
}
.sgb-pager a:hover { border-color: #1d86c8; color: #1d86c8; text-decoration: none; }
.sgb-pager span.sgb-pager-current { background: #0a1f44; border-color: #0a1f44; color: #fff; }
.sgb-pager a.sgb-pager-prev,
.sgb-pager a.sgb-pager-next { padding: 0 16px; gap: 7px; }
.sgb-pager-gap { color: #93a1b5; padding: 0 4px; }

/* ---------- CTA ---------- */
.sgb-cta { background: #0a1f44; padding: 46px 0; margin-top: 26px; }
.sgb-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.sgb-cta h2 { color: #fff; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.25; margin: 0 0 8px; font-weight: 700; }
.sgb-cta p { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; line-height: 1.65; margin: 0; max-width: 620px; }
.sgb-btn {
  display: inline-block;
  background: #1d86c8;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.sgb-btn:hover { background: #3aa0dd; color: #fff; text-decoration: none; }

/* ---------- post ---------- */
.sgb-post-hero { background: #f6f9fc; padding: 116px 0 0; border-bottom: 1px solid #e6edf5; }

/* the site uses a sticky-footer hack (.page-wrap min-height + ::after 313px).
   On blog pages that leaves a large empty band before the footer - neutralise it. */
.page-wrap:has(.sgb-hero),
.page-wrap:has(.sgb-post-hero) { min-height: 0; margin-bottom: 0; }
.page-wrap:has(.sgb-hero)::after,
.page-wrap:has(.sgb-post-hero)::after { display: none; }
.sgb-post-hero .sgb-crumbs { color: #7a889e; }
.sgb-post-hero .sgb-crumbs a { color: #4e5d78; }
.sgb-post-hero .sgb-crumbs span { color: #66788f; }
.sgb-post-hero .sgb-pill { background: rgba(29, 134, 200, 0.14); color: #1670a8; }
.sgb-post-hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 14px 0 18px;
  max-width: 940px;
  color: #0a1f44;
}
.sgb-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #6b7c93; padding-bottom: 26px; }
.sgb-byline-author { display: inline-flex; align-items: center; gap: 9px; color: #0a1f44; font-weight: 600; text-decoration: none; }
.sgb-byline-author img { border-radius: 50%; width: 34px; height: 34px; object-fit: cover; }
.sgb-byline-author:hover { color: #1d86c8; text-decoration: none; }
.sgb-post-cover { margin: 0 0 -60px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(10, 31, 68, 0.16); background: #dbe6f1; }
.sgb-post-cover img { display: block; width: 100%; height: auto; }
.sgb-article { max-width: 800px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 46px 46px 40px; box-shadow: 0 14px 40px rgba(10, 31, 68, 0.08); }
.sgb-section-post { padding-top: 96px; }

/* TOC */
.sgb-toc { background: #f3f8fd; border: 1px solid #dfeaf5; border-left: 4px solid #1d86c8; border-radius: 10px; padding: 18px 22px; margin: 0 0 30px; }
.sgb-toc h2 { font-size: 12px !important; letter-spacing: 0.12em; text-transform: uppercase; color: #1d86c8 !important; margin: 0 0 10px !important; font-weight: 700; }
.sgb-toc > ol { margin: 0; padding-left: 0; list-style: none; }
.sgb-toc > ol > li { counter-increment: toc; position: relative; padding-left: 26px; }
.sgb-toc > ol > li::before { content: counter(toc) "."; position: absolute; left: 0; top: 0; color: #1d86c8; font-weight: 700; font-size: 13px; }
.sgb-toc .sgb-toc-sub { margin: 4px 0 8px; padding-left: 0; list-style: none; }
.sgb-toc .sgb-toc-sub li { font-size: 13px; line-height: 1.65; padding-left: 12px; position: relative; }
.sgb-toc .sgb-toc-sub li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: #b7c9dc; }
.sgb-toc li { font-size: 14px; line-height: 1.7; color: #4e5d78; }
.sgb-toc li.sgb-toc-l3 { margin-left: 14px; list-style: circle; font-size: 13.5px; }
.sgb-toc a { color: #2b5d86; text-decoration: none; }
.sgb-toc a:hover { color: #1d86c8; text-decoration: underline; }

/* prose */
.sgb-prose { font-size: 17px; line-height: 1.85; color: #1d3247; }
.sgb-prose > *:first-child { margin-top: 0; }
.sgb-prose p { margin: 0 0 1.4em; }
.sgb-prose h2 { font-size: 28px; line-height: 1.3; font-weight: 700; color: #0a1f44; margin: 2em 0 0.7em; letter-spacing: -0.01em; }
.sgb-prose h3 { font-size: 22px; line-height: 1.35; font-weight: 600; color: #0a1f44; margin: 1.7em 0 0.6em; }
.sgb-prose h4 { font-size: 18px; font-weight: 600; color: #0a1f44; margin: 1.5em 0 0.5em; }
.sgb-prose ul, .sgb-prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.sgb-prose li { margin-bottom: 0.5em; }
.sgb-prose a { color: #1d86c8; text-decoration: underline; text-underline-offset: 2px; }
.sgb-prose a:hover { color: #0a1f44; }
.sgb-prose strong { font-weight: 600; color: #0a1f44; }
.sgb-prose img { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 1.6em auto; }
.sgb-prose figure { margin: 1.8em 0; }
.sgb-prose figcaption { font-size: 12.5px; color: #7a889e; text-align: center; margin-top: 8px; }
.sgb-prose blockquote {
  margin: 1.8em 0;
  padding: 6px 0 6px 22px;
  border-left: 4px solid #1d86c8;
  font-size: 18px;
  line-height: 1.7;
  color: #34506d;
  font-style: italic;
}
.sgb-prose blockquote p:last-child { margin-bottom: 0; }
.sgb-prose hr { border: 0; border-top: 1px solid #e3ebf4; margin: 2.2em 0; }
.sgb-prose table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 14.5px; }
.sgb-prose th, .sgb-prose td { border: 1px solid #dfe7f0; padding: 10px 12px; text-align: left; vertical-align: top; }
.sgb-prose th { background: #f3f8fd; font-weight: 600; color: #0a1f44; }
.sgb-prose iframe { max-width: 100%; border-radius: 10px; }
.sgb-prose .wp-block-embed, .sgb-prose .wistia_responsive_padding { margin: 1.8em 0; }
.sgb-prose code { background: #f1f5fa; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* share */
.sgb-share { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid #e8eef6; font-size: 12.5px; color: #7a889e; }
.sgb-share span { text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.sgb-share a { color: #1d86c8; font-weight: 600; text-decoration: none; }
.sgb-share a:hover { color: #0a1f44; }

/* author box */
.sgb-authorbox { display: flex; gap: 20px; align-items: flex-start; margin: 34px 0 0; padding: 24px 0 0; border-top: 1px solid #e8eef6; }
.sgb-authorbox img { border-radius: 50%; width: 72px; height: 72px; object-fit: cover; flex: 0 0 72px; }
.sgb-authorbox h2 { font-size: 18px; margin: 0 0 2px; font-weight: 700; }
.sgb-authorbox h2 a { color: #0a1f44; text-decoration: none; }
.sgb-authorbox h2 a:hover { color: #1d86c8; }
.sgb-role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #1d86c8; font-weight: 600; margin: 0 0 8px; }
.sgb-authorbox p { font-size: 14px; line-height: 1.7; color: #4e5d78; margin: 0 0 6px; }

/* comments */
.sgb-comments { margin: 38px 0 0; padding-top: 26px; border-top: 1px solid #e8eef6; }
.sgb-comments h2 { font-size: 20px; margin: 0 0 4px; font-weight: 700; color: #0a1f44; }
.sgb-comments-note { font-size: 12.5px; color: #8a97a9; margin: 0 0 20px; }
.sgb-comments ol { list-style: none; margin: 0; padding: 0; }
.sgb-comments li { padding: 16px 0; border-top: 1px solid #eef3f9; }
.sgb-comment-head { display: flex; align-items: center; gap: 10px; font-size: 13.5px; margin-bottom: 6px; }
.sgb-comment-head strong { color: #0a1f44; }
.sgb-comment-head time { color: #8a97a9; font-size: 12px; }
.sgb-avatar-initial {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e3eefa; color: #1d86c8;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}
.sgb-comment-body { font-size: 14.5px; line-height: 1.75; color: #3d5470; }

/* author page */
.sgb-hero-author { padding-bottom: 46px; }
.sgb-author-head { display: flex; gap: 26px; align-items: center; margin-top: 18px; }
.sgb-author-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255, 255, 255, 0.25); }
.sgb-author-head h1 { margin: 6px 0 6px; }
.sgb-author-head .sgb-role { color: #8fc7ea; }
.sgb-author-bio { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.82); max-width: 760px; margin: 6px 0 10px; }
.sgb-author-count { font-size: 12.5px; color: rgba(255, 255, 255, 0.6); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .sgb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgb-featured { grid-template-columns: 1fr; }
  .sgb-featured-img { min-height: 260px; }
  .sgb-article { padding: 36px 32px; }
}
@media (max-width: 760px) {
  .sgb-grid { grid-template-columns: 1fr; gap: 20px; }
  .sgb-hero { padding: 108px 0 38px; }
  .sgb-post-hero { padding-top: 100px; }
  .sgb-section { padding-top: 32px; }
  .sgb-post-cover { margin-bottom: -50px; }
  .sgb-section-post { padding-top: 74px; }
  .sgb-article { padding: 26px 20px 28px; border-radius: 12px; }
  .sgb-prose { font-size: 16.5px; line-height: 1.8; }
  .sgb-prose h2 { font-size: 23px; }
  .sgb-prose h3 { font-size: 19px; }
  .sgb-cta-inner { flex-direction: column; align-items: flex-start; }
  .sgb-author-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sgb-author-avatar { width: 84px; height: 84px; }
  .sgb-byline { font-size: 12.5px; }
}


/* ---------- floating on-this-page rail (article pages) ---------- */
.sgb-float-toc {
  position: fixed;
  top: 112px;
  left: 24px;
  width: 252px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
  padding: 4px 4px 4px 16px;
  border-left: 2px solid #e2ebf5;
  font-size: 13px;
  line-height: 1.5;
  z-index: 45;
  scrollbar-width: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  background: transparent;
}
.sgb-float-toc::-webkit-scrollbar { width: 0; height: 0; display: none; }
.sgb-float-toc.is-visible { opacity: 1; visibility: visible; transform: none; }
.sgb-float-toc-title {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  color: #93a3b8;
  margin-bottom: 10px;
}
.sgb-float-toc ul { list-style: none; margin: 0; padding: 0; }
.sgb-float-toc li { margin: 0; }
.sgb-float-toc a {
  display: block;
  padding: 5px 0 5px 12px;
  color: #52657e;
  text-decoration: none;
  position: relative;
  transition: color 0.15s;
}
.sgb-float-toc a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cdd9e6;
  transition: background 0.15s, transform 0.15s;
}
.sgb-float-toc a:hover { color: #1d86c8; }
.sgb-float-toc a:hover::before { background: #1d86c8; }
.sgb-float-toc a.is-active { color: #0a1f44; font-weight: 600; }
.sgb-float-toc a.is-active::before { background: #1d86c8; transform: scale(1.35); }
.sgb-float-toc .sgb-float-l3 a { padding-left: 24px; font-size: 12px; color: #7a8ba2; }

.sgb-toc-toggle {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 46;
  display: none;
  align-items: center;
  gap: 8px;
  background: #0a1f44;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(10, 31, 68, 0.28);
  cursor: pointer;
}
.sgb-toc-toggle-icon { font-size: 13px; opacity: 0.8; }
@media (min-width: 1025px) and (max-width: 1699.98px) {
  .sgb-toc-toggle { display: inline-flex; }
  .sgb-float-toc {
    top: auto;
    bottom: 78px;
    left: 18px;
    max-height: 56vh;
    width: 262px;
    padding: 16px 16px 16px 18px;
    background: #fff;
    border: 1px solid #e4ecf5;
    border-left: 3px solid #1d86c8;
    border-radius: 12px;
    box-shadow: 0 20px 44px rgba(10, 31, 68, 0.16);
  }
}
@media (min-width: 1700px) {
  .sgb-float-toc { left: calc((100vw - 1180px) / 2 - 300px); }
}
@media (max-width: 1024px) {
  .sgb-float-toc, .sgb-toc-toggle { display: none !important; }
}
