/* ==========================================================================
   Telebridge Blog — Visual System (v2)
   --------------------------------------------------------------------------
   Full redesign. Uses site-wide CSS custom properties where available
   (--navy, --ice, --teal, --muted-dark, --radius, --accent, --graphite).
   Loaded after telebridge.css so it can override where needed.
   ========================================================================== */

/* ------------------------------------------------------------------
   LISTING PAGE — Featured hero card
   ------------------------------------------------------------------ */
.blog-listing-sec { padding-top: 20px; }

.blog-featured-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 24px rgba(28,10,74,.12);
  border: 1px solid rgba(28,10,74,.07);
  transition: transform .22s ease, box-shadow .22s ease;
  margin-bottom: 52px;
  min-height: 320px;
}
.blog-featured-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(28,10,74,.16); }

.bfc-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 36px 32px;
  overflow: hidden;
}
.bfc-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(255,255,255,.12) 0%, transparent 65%);
  pointer-events: none;
}
.bfc-icon {
  position: absolute;
  top: 32px;
  right: 32px;
  color: rgba(255,255,255,.9);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bfc-icon svg { width: 28px; height: 28px; }
.bfc-cat {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.bfc-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 44px;
  background: #fff;
  gap: 14px;
}
.bfc-meta { font-size: 13px; color: var(--muted-dark, #6B6185); }
.bfc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy, #1C0A4A);
  margin: 0;
}
.bfc-desc { font-size: 15px; line-height: 1.6; color: var(--muted-dark, #6B6185); margin: 0; }
.bfc-cta { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: gap .2s; }
.blog-featured-card:hover .bfc-arrow { transform: translateX(4px); }
.bfc-arrow { display: inline-block; transition: transform .2s; }

/* ------------------------------------------------------------------
   LISTING PAGE — Section divider label
   ------------------------------------------------------------------ */
.blog-section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 28px;
}
.blog-section-label::before,
.blog-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(28,10,74,.1);
}
.blog-section-label span {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-dark, #6B6185);
  white-space: nowrap;
}

/* ------------------------------------------------------------------
   LISTING PAGE — Grid cards
   ------------------------------------------------------------------ */
.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-grid-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(28,10,74,.07);
  border: 1px solid rgba(28,10,74,.07);
  transition: transform .2s ease, box-shadow .2s ease;
  background: #fff;
}
.blog-grid-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(28,10,74,.12); }

.bgc-header {
  position: relative;
  height: 120px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgc-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 80%, rgba(255,255,255,.15) 0%, transparent 65%);
}
.bgc-icon {
  position: relative;
  z-index: 1;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.15);
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bgc-icon svg { width: 26px; height: 26px; }

.bgc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px 24px;
  flex: 1;
}
.bgc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bgc-cat {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bgc-meta {
  font-size: 12px;
  color: var(--muted-dark, #6B6185);
  background: var(--ice, #F4F1FA);
  padding: 3px 10px;
  border-radius: 999px;
}
.bgc-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy, #1C0A4A);
  margin: 0;
}
.bgc-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted-dark, #6B6185);
  margin: 0;
  flex: 1;
}
.bgc-cta {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-top: 4px;
}

/* ------------------------------------------------------------------
   POST PAGE — Progress bar
   ------------------------------------------------------------------ */
.blog-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #B1A6FF, #B866FF);
  z-index: 9999;
  transition: width .1s linear;
  border-radius: 0 2px 2px 0;
}

/* ------------------------------------------------------------------
   POST PAGE — Hero banner
   ------------------------------------------------------------------ */
.blog-post-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 64px;
}
.bph-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.bph-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.bph-wrap { position: relative; z-index: 2; }

.bph-cat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 18px;
}
.bph-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.bph-icon svg { width: 22px; height: 22px; }
.bph-cat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.15);
  padding: 5px 14px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.bph-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin: 0 0 20px;
  max-width: 820px;
}
.bph-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  flex-wrap: wrap;
}
.bph-divider { opacity: .4; }
.bph-author { display: flex; align-items: center; gap: 8px; }
.bph-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}

/* ------------------------------------------------------------------
   POST PAGE — Layout: aside + article
   ------------------------------------------------------------------ */
.blog-post-sec { padding: 60px 0 80px; }

.blog-post-layout {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 48px;
  align-items: start;
}

/* Left aside: accent stripe + share buttons */
.blog-post-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.bpa-accent {
  width: 3px;
  height: 80px;
  border-radius: 999px;
  flex-shrink: 0;
}
.bpa-share { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bpa-share-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-dark, #6B6185);
  writing-mode: vertical-rl;
  margin-bottom: 2px;
}
.bpa-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ice, #F4F1FA);
  color: var(--navy, #1C0A4A);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.bpa-share-btn:hover { background: var(--navy, #1C0A4A); color: #fff; }

/* Article column */
.blog-post-article { max-width: 760px; }

.blog-post-desc {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted-dark, #6B6185);
  border-left: 3px solid var(--ice, #F4F1FA);
  padding-left: 20px;
  margin-bottom: 44px;
  font-style: italic;
}

/* Article body typography */
.blog-post-body { font-size: 17px; line-height: 1.8; color: var(--graphite, #1F1F1F); }

.blog-post-body p { margin: 0 0 22px; }

.blog-post-body h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--navy, #1C0A4A);
  margin: 56px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(28,10,74,.08);
  line-height: 1.15;
}
.blog-post-body h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy, #1C0A4A);
  margin: 36px 0 12px;
  line-height: 1.2;
}

/* Lists */
.blog-post-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-post-body ul li {
  padding: 14px 18px 14px 50px;
  background: var(--ice, #F4F1FA);
  border-radius: 10px;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
}
.blog-post-body ul li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #B1A6FF, #B866FF);
}
.blog-post-body ol {
  counter-reset: ol-counter;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-post-body ol li {
  counter-increment: ol-counter;
  padding: 14px 18px 14px 54px;
  background: var(--ice, #F4F1FA);
  border-radius: 10px;
  position: relative;
  line-height: 1.6;
  font-size: 16px;
}
.blog-post-body ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--navy, #1C0A4A);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-post-body li strong { color: var(--navy, #1C0A4A); }

.blog-post-body strong { color: var(--navy, #1C0A4A); }
.blog-post-body a { color: var(--accent, #B866FF); text-decoration: underline; text-underline-offset: 3px; }

/* Post footer */
.blog-post-footer {
  margin-top: 56px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.bpf-tag-row { display: flex; align-items: center; gap: 8px; }
.bpf-label { font-size: 13px; color: var(--muted-dark, #6B6185); }
.bpf-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy, #1C0A4A);
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}
.bpf-back:hover { opacity: 1; }

/* Related posts */
.blog-related-sec { background: var(--ice, #F4F1FA); }

/* ------------------------------------------------------------------
   LEGACY compat — keep .blog-grid for any old references still in use
   ------------------------------------------------------------------ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); gap: 24px; }

/* ------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------ */
@media (max-width: 960px) {
  .blog-featured-card { grid-template-columns: 1fr; }
  .bfc-visual { height: 200px; }
  .blog-post-layout { grid-template-columns: 1fr; }
  .blog-post-aside { display: none; }
}

@media (max-width: 640px) {
  .blog-cards-grid { grid-template-columns: 1fr; }
  .bph-title { font-size: 30px; }
  .blog-post-body { font-size: 16px; }
  .blog-post-body h2 { font-size: 26px; }
  .blog-post-desc { font-size: 16px; }
  .bfc-body { padding: 28px 24px; }
}
