/* ============================================
   Blog Post Page Styles
   blog.css
   ============================================ */

/* ---- Sticky nav: cancel the product-page slide-away behaviour ---- */
body.leadsonline .site-header.leads-nav.scrolled {
  transform: none;
  pointer-events: auto;
}

/* ---- Page Hero Banner ---- */
.blog-hero {
  background: linear-gradient(135deg, #0a1f44 0%, #0a2a5c 50%, #1a3666 100%);
  padding: 72px 0 56px;
  color: #fff;
}

.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
}

.blog-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-hero__breadcrumb a:hover {
  color: #fff;
}

.blog-hero__breadcrumb-sep {
  font-size: 0.75rem;
  opacity: 0.5;
}

.blog-hero__category {
  display: inline-block;
  background: #0082BA;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.blog-hero__title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.18;
  color: #fff;
  max-width: 780px;
  margin: 0 0 20px;
}

.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  flex-wrap: wrap;
}

.blog-hero__meta-author {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.blog-hero__meta-author img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.3);
}

.blog-hero__meta-dot {
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
}

/* ---- Layout: Article + Rail ---- */
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* ---- Main Article ---- */
.blog-article {}

.blog-article__featured-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 36px;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-article__body {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Override styles.css .leadsonline p { color: rgba(255,255,255,0.92) } and font-weight: 500 */
body.leadsonline .blog-article__body.blog-article__body--black p,
body.leadsonline .blog-article__body.blog-article__body--black li {
  color: #000;
  font-weight: 400;
}

body.leadsonline .blog-article__body.blog-article__body--black {
  color: #000;
}

/* font-size and font-weight use only to override styles.css globals with */
body.leadsonline .blog-article__body h2 {
  font-size: 1.85rem;
  font-weight: 600;
  color: #0a1f44;
  margin: 40px 0 16px;
  line-height: 1.2;
}

body.leadsonline .blog-article__body.blog-article__body--black h2 {
  color: #111;
}

body.leadsonline .blog-article__body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0a1f44;
  margin: 32px 0 12px;
  line-height: 1.3;
}

body.leadsonline .blog-article__body p {
  margin: 0 0 20px;
  max-width: none;
}

.blog-article__body ul,
.blog-article__body ol {
  margin: 0 0 20px 24px;
}

.blog-article__body li {
  margin-bottom: 8px;
}

.blog-article__body a {
  color: #006494;
  text-decoration: underline;
  text-decoration-color: rgba(0,100,148,0.35);
  transition: color 0.2s;
}

.blog-article__body a:hover {
  color: #0a1f44;
}

/* Pull quote */
.blog-pullquote {
  border-left: 4px solid #0082BA;
  background: #f0f6fb;
  margin: 36px 0;
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
}

.blog-pullquote p {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0a1f44;
  line-height: 1.6;
  margin: 0 0 8px;
  font-style: italic;
}

.blog-pullquote cite {
  font-size: 0.82rem;
  color: #4b5563;
  font-style: normal;
  font-weight: 500;
}

/* Inline image */
.blog-inline-img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin: 28px 0;
}

/* Tags */
.blog-article__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

.blog-tag {
  display: inline-block;
  background: #e5e7eb;
  color: #374151;
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.blog-tag:hover {
  background: #d1d5db;
  color: #374151;
}

/* Share bar */
.blog-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.blog-share__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-share__icons {
  display: flex;
  gap: 10px;
}

.blog-share__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #3575e2;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, background 0.2s;
}

.blog-share__icon:hover {
  background: rgba(53, 117, 226, 0.08);
  opacity: 0.8;
}

/* Author Card */
.blog-author-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #f5f9ff;
  border: 1px solid #d8e8f5;
  border-radius: 10px;
  padding: 24px;
  margin-top: 48px;
}

.blog-author-card__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #cce0ef;
}

.blog-author-card__info {}

.blog-author-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #006494;
  margin-bottom: 4px;
}

.blog-author-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #0a1f44;
  margin-bottom: 6px;
}

.blog-author-card__bio {
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}

body.leadsonline .blog-author-card__bio {
  color: #000;
  font-weight: 400;
}

/* ---- Right Rail ---- */
.blog-rail {
  position: sticky;
  top: 96px;
}

.blog-rail__section {
  margin-bottom: 40px;
}

.blog-rail__heading {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e5e5e5;
}

/* Rail article cards */
.blog-rail-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-rail-card:last-child {
  border-bottom: none;
}

.blog-rail-card:hover {
  opacity: 0.75;
}

.blog-rail-card__img {
  width: 72px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e5e5;
}

.blog-rail-card__content {}

.blog-rail-card__category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #006494;
  margin-bottom: 4px;
}

.blog-rail-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0a1f44;
  line-height: 1.35;
  margin-bottom: 5px;
}

.blog-rail-card__date {
  font-size: 0.75rem;
  color: #4b5563;
}

/* Rail CTA box */
.blog-rail-cta {
  background: linear-gradient(135deg, #0a1f44 0%, #0a2a5c 100%);
  border-radius: 10px;
  padding: 28px 24px;
  color: #fff;
  text-align: center;
}

.blog-rail-cta__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.blog-rail-cta__text {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.55;
  margin-bottom: 18px;
}

.blog-rail-cta .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 40px;
    padding: 48px 24px 64px;
  }

  .blog-hero__title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    padding: 32px 20px 56px;
  }

  .blog-rail {
    position: static;
    border-top: 2px solid #e5e5e5;
    padding-top: 40px;
  }

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

  .blog-hero__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .blog-hero__title {
    font-size: 1.25rem;
  }
}

/* ---- Mobile nav hamburger (blog pages) ---- */
@media (max-width: 900px) {
  body.leadsonline .site-header.leads-nav .nav-toggle {
    display: block;
    width: 44px;
    height: 44px;
    color: #1e1f21;
    opacity: 1;
    visibility: visible;
  }
}
