/* ── BLOG HERO ── */
#blog-hero {
  background: var(--navy-dark);
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}
#blog-hero::before {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 500px; height: 500px; border-radius: 50%;
  background: rgba(232,168,32,0.08);
}
#blog-hero .sec-title { color: #fff; margin-bottom: .5rem; }
#blog-hero .sec-sub { color: rgba(255,255,255,0.65); }

/* ── LIST ── */
#blog-list-section { background: var(--off-white); padding: 70px 0 90px; }

.state-msg {
  text-align: center;
  color: #5a6a85;
  padding: 4rem 1rem;
  width: 100%;
  font-size: 15px;
}

.bc {
  border: 1px solid var(--light-border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bc:hover {
  box-shadow: 0 16px 48px rgba(29,60,110,0.12);
  transform: translateY(-6px);
  color: inherit;
  border-color: rgba(232,168,32,0.35);
}
.bc-img {
  width: 100%;
  height: 200px;
  background: var(--light-border) center/cover no-repeat;
  flex-shrink: 0;
}
.bc-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.bc-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: .6rem;
  line-height: 1.35;
}
.bc-desc {
  font-size: .87rem;
  color: #5a6a85;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.1rem;
}
.bc-meta {
  font-size: .78rem;
  color: var(--gold-dark);
  font-weight: 600;
  border-top: 1px solid var(--light-border);
  padding-top: .85rem;
}

/* ── POST DETAIL ── */
#blog-post-view { background: var(--off-white); padding: 0 0 90px; }

/* Hero: post's own cover image behind the title + breadcrumb */
#post-hero {
  background: var(--navy-dark) center/cover no-repeat;
  position: relative; overflow: hidden;
  height: 420px;
  display: flex; align-items: flex-end;
  padding-bottom: 55px;
}
#post-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  /* dark overlay so title/breadcrumb stay legible over any cover photo */
  background: linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.55) 45%, rgba(10,22,40,0.92) 100%);
}
@media (max-width: 767px) {
  #post-hero { height: 320px; padding-bottom: 40px; }
}
.post-breadcrumb {
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600;
  margin-bottom: 1.1rem;
}
.post-breadcrumb a { color: rgba(255,255,255,0.75); text-decoration: none; }
.post-breadcrumb a:hover { color: var(--gold); }
.post-breadcrumb i { font-size: 10px; margin: 0 8px; color: rgba(255,255,255,0.4); }
.post-hero-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  max-width: 820px;
  margin-bottom: .85rem;
}
.post-hero-meta { font-size: .85rem; color: var(--gold-light); font-weight: 600; }

/* Container that holds the sidebar + article below the hero */
#blog-post-view > .container { padding-top: 60px; }

.post-body {
  font-size: 1rem;
  line-height: 1.85;
  color: #33415c;
}
.post-body img { max-width: 100%; height: auto; border-radius: 14px; }
.post-body img[data-align="left"] { float: left; margin: 0.25rem 1.5rem 0.75rem 0; max-width: 50%; }
.post-body img[data-align="right"] { float: right; margin: 0.25rem 0 0.75rem 1.5rem; max-width: 50%; }
.post-body img[data-align="center"] { display: block; margin-left: auto; margin-right: auto; }
.post-body a { color: var(--navy); font-weight: 600; }
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
  font-family: 'Poppins', sans-serif; color: var(--navy-dark); margin-top: 1.75rem;
  scroll-margin-top: 110px; /* keeps heading clear of the sticky navbar when jumped to */
}

/* Blog editor's video embeds (YouTube/Vimeo) and tables */
.post-body .video-embed-wrapper { position: relative; width: 100%; padding-top: 56.25%; margin: 1.5rem 0; border-radius: 14px; overflow: hidden; background: #000; }
.post-body .video-embed-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.post-body table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
.post-body table td, .post-body table th { border: 1px solid var(--light-border); padding: 0.6rem 0.9rem; vertical-align: top; }
.post-body table th { background: var(--off-white); font-weight: 600; text-align: left; }

/* ── TWO-COLUMN LAYOUT: sticky sidebar (30%) + content (70%) ── */
.post-layout { display: flex; gap: 2.75rem; align-items: flex-start; }
.post-sidebar { flex: 0 0 30%; max-width: 30%; position: sticky; top: 110px; }
.post-main { flex: 1 1 70%; min-width: 0; }

@media (max-width: 991px) {
  .post-layout { flex-direction: column; }
  .post-sidebar { position: static; flex: 1 1 auto; max-width: 100%; width: 100%; }
}

.toc-card, .sidebar-form-card {
  background: #fff; border: 1px solid var(--light-border); border-radius: 16px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.toc-title {
  font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--navy-dark); text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1rem;
}
#toc-list { list-style: none; margin: 0; padding: 0; }
#toc-list li { margin-bottom: 2px; }
#toc-list a {
  display: block; padding: 6px 10px; border-radius: 8px;
  font-size: 13px; color: #7a8aa5; text-decoration: none; line-height: 1.4;
  border-left: 2px solid transparent; transition: color .2s, background .2s, border-color .2s;
}
#toc-list a:hover { color: var(--navy-dark); background: var(--off-white); border-color: var(--gold); }
#toc-list a.toc-top { font-size: 13.5px; font-weight: 600; color: #5a6a85; }
#toc-list a.toc-top:hover { color: var(--navy-dark); }

/* ── SIDEBAR "BOOK A CALL" CARD ── */
.sidebar-form-card {
  background: var(--navy-dark); border: none; border-radius: 16px;
  padding: 1.85rem 1.5rem; margin-bottom: 1.5rem;
}
.sidebar-form-card .toc-title { color: #fff; justify-content: center; }
.sidebar-form-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 1.4rem; line-height: 1.65; }
.btn-book-call {
  background: var(--gold); color: var(--navy-dark); border: none;
  padding: 13px 0; border-radius: 50px; width: 100%;
  font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 14.5px;
  transition: background .2s, transform .15s;
}
.btn-book-call:hover { background: var(--gold-light); color: var(--navy-dark); transform: translateY(-2px); }
.sidebar-social { display: flex; justify-content: center; gap: 10px; margin-top: 1.25rem; }

/* ── SHARED FORM CONTROLS (sidebar + modal) ── */
.sidebar-form-label {
  display: block; font-size: 11px; font-weight: 700; font-family: 'Poppins', sans-serif;
  color: var(--navy); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.form-control, .form-select {
  border: 1.5px solid var(--light-border); border-radius: 10px;
  padding: 10px 13px; font-size: 13.5px;
  background: var(--off-white); color: #1a2a4a;
  transition: border-color .2s, background .2s;
}
.form-control:focus, .form-select:focus { border-color: var(--navy); background: #fff; box-shadow: none; }
.input-group-text {
  border: 1.5px solid var(--light-border); border-right: none; border-radius: 10px 0 0 10px;
  background: var(--off-white); color: var(--navy); font-size: 13.5px; font-weight: 600;
}
.input-group .form-control { border-radius: 0 10px 10px 0; }
.btn-submit {
  background: var(--navy); color: #fff;
  padding: 13px 0; border-radius: 50px;
  font-family: 'Poppins', sans-serif; font-size: 14.5px; font-weight: 700;
  width: 100%; border: none;
  transition: background .2s, transform .15s;
}
.btn-submit:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-1px); }

/* ── BOOK A CALL MODAL ── */
#bookCallModal .modal-content { border: none; border-radius: 20px; overflow: hidden; }
#bookCallModal .modal-header { border-bottom: none; padding: 1.75rem 1.75rem 0; }
#bookCallModal .modal-title { font-family: 'Poppins', sans-serif; font-weight: 800; color: var(--navy-dark); font-size: 1.3rem; }
#bookCallModal .modal-body { padding: 1rem 1.75rem 1.75rem; }
#bookCallModal .modal-sub { font-size: 13.5px; color: #5a6a85; line-height: 1.65; margin-bottom: 1.5rem; }
