/* ============================================
   BLOG.CSS — Clean Minimal Light Theme
   Unified purple accent, no circus colors
   ============================================ */

.blog-listing {
  padding: 60px 0 100px;
  background: #f8f9fc;
}

/* Filters — subtle pills */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}
.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.blog-filter-pill:hover {
  border-color: #7F56D9;
  color: #7F56D9 !important;
  -webkit-text-fill-color: #7F56D9 !important;
}
.blog-filter-pill.active {
  background: #7F56D9;
  border-color: #7F56D9;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 4px 14px rgba(127,86,217,.25);
}
.blog-filter-pill i { font-size: .72rem; }

/* ---- FEATURED POST ---- */
.blog-featured { margin-bottom: 44px; }
.blog-featured-card,
a.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 18px;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid #e5e7eb;
  transition: all .4s;
  text-decoration: none !important;
  color: inherit !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  padding: 32px 36px;
  position: relative;
}
.blog-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7F56D9, #a78bfa);
}
.blog-featured-card:hover,
a.blog-featured-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 10px 36px rgba(0,0,0,.07);
  transform: translateY(-2px);
}
.blog-featured-body {
  display: flex;
  flex-direction: column;
  background: transparent !important;
}
.blog-featured-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  color: #7F56D9 !important;
  -webkit-text-fill-color: #7F56D9 !important;
}
.blog-featured-body h2 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
  line-height: 1.3;
  margin-bottom: 10px;
}
.blog-featured-body p {
  font-size: .92rem !important;
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  background: none !important;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 700px;
}
.blog-featured-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: .78rem;
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
}
.blog-featured-meta i { margin-right: 4px; font-size: .7rem; }
.blog-featured-meta .bfm-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.blog-featured-meta .bfm-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #7F56D9;
}
.blog-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #f3f0ff;
  color: #7F56D9 !important;
  -webkit-text-fill-color: #7F56D9 !important;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

/* ---- BLOG GRID — Clean Cards ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.blog-card,
a.blog-card {
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px;
  overflow: hidden;
  transition: all .3s ease;
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  color: inherit !important;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
  padding: 24px;
}
.blog-card:hover,
a.blog-card:hover {
  border-color: #d1d5db !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.07);
}
/* Purple accent line on hover */
.blog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7F56D9, #a78bfa);
  opacity: 0;
  transition: opacity .3s;
}
.blog-card:hover::after { opacity: 1; }

/* Card category tag */
.blog-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #f3f0ff;
  color: #7F56D9 !important;
  -webkit-text-fill-color: #7F56D9 !important;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
  align-self: flex-start;
}
.blog-card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: transparent !important;
}
.blog-card-body h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-card-body p {
  font-size: .82rem !important;
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  background: none !important;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
  font-size: .73rem;
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-card-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #7F56D9;
}

/* ============================================
   BLOG DETAIL — CLEAN READING
   ============================================ */
.blog-detail-elite {
  padding: 0 0 80px;
  background: #f8f9fc;
}
.bd-header {
  padding: 120px 0 50px;
  background: linear-gradient(180deg, #0d0b18, #12101f);
  position: relative;
  overflow: hidden;
}
.bd-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 500px 300px at 25% 50%, rgba(127,86,217,.1), transparent),
    radial-gradient(ellipse 400px 250px at 75% 50%, rgba(168,139,250,.06), transparent);
  pointer-events: none;
}
.bd-header-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}
.bd-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 16px;
  border-radius: 100px;
  background: rgba(127,86,217,.15);
  border: 1px solid rgba(127,86,217,.25);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  color: #c4b5fd !important;
  -webkit-text-fill-color: #c4b5fd !important;
}
.bd-header h1 {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(1.7rem, 3.5vw, 2.5rem) !important;
  font-weight: 900 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  line-height: 1.2;
  margin-bottom: 20px;
}
.bd-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.bd-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: rgba(255,255,255,.45) !important;
  -webkit-text-fill-color: rgba(255,255,255,.45) !important;
}
.bd-meta-item i { font-size: .75rem; }
.bd-author-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
}
.bd-author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: #7F56D9;
}
.bd-author-info { text-align: left; }
.bd-author-name { font-size: .82rem; font-weight: 700; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-author-role { font-size: .68rem; color: rgba(255,255,255,.4) !important; -webkit-text-fill-color: rgba(255,255,255,.4) !important; }
.bd-progress { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #7F56D9, #a78bfa); z-index: 9999; transition: width .1s; width: 0%; }

/* Article — white card */
.bd-layout {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 32px;
  max-width: 1050px;
  margin: -30px auto 0;
  padding: 0 20px;
  position: relative;
  z-index: 3;
}
.bd-article {
  max-width: 740px;
  background: #fff;
  border-radius: 18px;
  padding: 36px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.bd-block-intro {
  font-size: 1.08rem !important;
  color: #4b5563 !important;
  -webkit-text-fill-color: #4b5563 !important;
  background: none !important;
  line-height: 1.8;
  margin-bottom: 28px;
  border-left: 3px solid #7F56D9;
  padding-left: 20px;
}
.bd-block-quote {
  padding: 24px 28px;
  border-radius: 14px;
  background: #faf8ff;
  border: 1px solid #ede9fe;
  margin: 28px 0;
  position: relative;
}
.bd-block-quote::before {
  content: '\201C';
  font-family: Georgia, serif;
  font-size: 4rem;
  position: absolute;
  top: -8px;
  left: 18px;
  color: #ddd6fe;
  line-height: 1;
}
.bd-block-quote p {
  font-size: 1.02rem !important;
  font-style: italic;
  color: #4c3a70 !important;
  -webkit-text-fill-color: #4c3a70 !important;
  background: none !important;
  line-height: 1.65;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.bd-block-quote cite { font-size: .8rem; color: #7F56D9 !important; -webkit-text-fill-color: #7F56D9 !important; font-style: normal; font-weight: 600; }
.bd-block-section { margin: 28px 0; }
.bd-block-section h3 {
  font-family: 'Poppins', sans-serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  -webkit-text-fill-color: #111827 !important;
  background: none !important;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}
.bd-block-section p { font-size: .95rem !important; color: #4b5563 !important; -webkit-text-fill-color: #4b5563 !important; background: none !important; line-height: 1.8; }
.bd-block-highlight { padding: 22px; border-radius: 14px; background: #f9fafb; border: 1px solid #e5e7eb; margin: 28px 0; }
.bd-block-highlight h4 { font-family: 'Poppins', sans-serif !important; font-size: .9rem !important; font-weight: 700 !important; color: #1f2937 !important; -webkit-text-fill-color: #1f2937 !important; background: none !important; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.bd-block-highlight h4 i { color: #7F56D9 !important; -webkit-text-fill-color: #7F56D9 !important; }
.bd-highlight-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f3f4f6; font-size: .86rem; color: #4b5563 !important; -webkit-text-fill-color: #4b5563 !important; }
.bd-highlight-item:last-child { border-bottom: none; }
.bd-highlight-item::before { content: '▸'; color: #7F56D9; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.bd-takeaways { padding: 26px; border-radius: 16px; background: #f0fdf4; border: 1px solid #bbf7d0; margin: 36px 0 24px; }
.bd-takeaways h3 { font-family: 'Poppins', sans-serif !important; font-size: 1.02rem !important; font-weight: 800 !important; color: #166534 !important; -webkit-text-fill-color: #166534 !important; background: none !important; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.bd-takeaways h3 i { color: #22c55e; }
.bd-takeaway-item { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid #dcfce7; color: #374151 !important; -webkit-text-fill-color: #374151 !important; font-size: .88rem; line-height: 1.55; }
.bd-takeaway-item:last-child { border-bottom: none; }
.bd-takeaway-item i { color: #22c55e !important; -webkit-text-fill-color: #22c55e !important; margin-top: 3px; flex-shrink: 0; }


/* Sidebar */
.bd-sidebar { position: sticky; top: 90px; }
.bd-toc { padding: 20px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.03); }
.bd-toc h4 { font-family: 'Poppins', sans-serif !important; font-size: .82rem !important; font-weight: 700 !important; color: #111827 !important; -webkit-text-fill-color: #111827 !important; background: none !important; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.bd-toc h4 i { color: #7F56D9; }
.bd-toc-item { display: block; padding: 7px 0; border-bottom: 1px solid #f5f5f8; color: #6b7280 !important; -webkit-text-fill-color: #6b7280 !important; font-size: .76rem; text-decoration: none !important; transition: all .3s; }
.bd-toc-item:last-child { border-bottom: none; }
.bd-toc-item:hover { color: #7F56D9 !important; -webkit-text-fill-color: #7F56D9 !important; padding-left: 6px; }
.bd-related-widget { padding: 20px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 1px 4px rgba(0,0,0,.03); }
.bd-related-widget h4 { font-family: 'Poppins', sans-serif !important; font-size: .82rem !important; font-weight: 700 !important; color: #111827 !important; -webkit-text-fill-color: #111827 !important; background: none !important; margin-bottom: 12px; }
.bd-related-post { display: block; padding: 10px 0; border-bottom: 1px solid #f5f5f8; text-decoration: none !important; transition: all .3s; }
.bd-related-post:last-child { border-bottom: none; }
.bd-related-post:hover { transform: translateX(4px); }
.bd-related-post h5 { font-size: .76rem !important; font-weight: 600 !important; color: #4b5563 !important; -webkit-text-fill-color: #4b5563 !important; background: none !important; line-height: 1.4; margin-bottom: 2px; }
.bd-related-post:hover h5 { color: #7F56D9 !important; -webkit-text-fill-color: #7F56D9 !important; }
.bd-related-post span { font-size: .67rem; color: #9ca3af !important; -webkit-text-fill-color: #9ca3af !important; }

/* ============================================
   SOCIAL SHARE — LISTING CARDS
   ============================================ */
.blog-share-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f3f4f6;
}
.blog-share-label {
  font-size: .7rem;
  font-weight: 600;
  color: #9ca3af !important;
  -webkit-text-fill-color: #9ca3af !important;
  margin-right: 2px;
  white-space: nowrap;
}
.blog-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280 !important;
  -webkit-text-fill-color: #6b7280 !important;
  font-size: .78rem;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
  text-decoration: none !important;
}
.blog-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
/* Branded hover colors */
.blog-share-btn--fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--tw:hover  { background: #000;    border-color: #000;    color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--li:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--wa:hover  { background: #25D366; border-color: #25D366; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--tg:hover  { background: #0088CC; border-color: #0088CC; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--copy:hover { background: #7F56D9; border-color: #7F56D9; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.blog-share-btn--copied {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ============================================
   SOCIAL SHARE — BLOG DETAIL (bottom)
   ============================================ */
.bd-share {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0;
  border-top: 2px solid #f3f4f6;
  margin-top: 36px;
}
.bd-share-label {
  font-family: 'Poppins', sans-serif !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  -webkit-text-fill-color: #1f2937 !important;
  background: none !important;
}
.bd-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bd-share-buttons .blog-share-btn {
  width: auto;
  height: auto;
  padding: 10px 18px;
  border-radius: 10px;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
}
.bd-share-buttons .blog-share-btn span {
  font-size: .76rem;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
}
/* On detail page, show branded backgrounds */
.bd-share-buttons .blog-share-btn--fb  { background: rgba(24,119,242,.08); border-color: rgba(24,119,242,.18); color: #1877F2 !important; -webkit-text-fill-color: #1877F2 !important; }
.bd-share-buttons .blog-share-btn--tw  { background: rgba(0,0,0,.05);       border-color: rgba(0,0,0,.1);        color: #111 !important;    -webkit-text-fill-color: #111 !important;    }
.bd-share-buttons .blog-share-btn--li  { background: rgba(10,102,194,.08);  border-color: rgba(10,102,194,.18);  color: #0A66C2 !important; -webkit-text-fill-color: #0A66C2 !important; }
.bd-share-buttons .blog-share-btn--wa  { background: rgba(37,211,102,.08);  border-color: rgba(37,211,102,.18);  color: #25D366 !important; -webkit-text-fill-color: #25D366 !important; }
.bd-share-buttons .blog-share-btn--tg  { background: rgba(0,136,204,.08);   border-color: rgba(0,136,204,.18);   color: #0088CC !important; -webkit-text-fill-color: #0088CC !important; }
.bd-share-buttons .blog-share-btn--copy { background: rgba(127,86,217,.08); border-color: rgba(127,86,217,.18); color: #7F56D9 !important; -webkit-text-fill-color: #7F56D9 !important; }

.bd-share-buttons .blog-share-btn--fb:hover  { background: #1877F2; border-color: #1877F2; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-share-buttons .blog-share-btn--tw:hover  { background: #000;    border-color: #000;    color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-share-buttons .blog-share-btn--li:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-share-buttons .blog-share-btn--wa:hover  { background: #25D366; border-color: #25D366; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-share-buttons .blog-share-btn--tg:hover  { background: #0088CC; border-color: #0088CC; color: #fff !important; -webkit-text-fill-color: #fff !important; }
.bd-share-buttons .blog-share-btn--copy:hover { background: #7F56D9; border-color: #7F56D9; color: #fff !important; -webkit-text-fill-color: #fff !important; }

.bd-share-buttons .blog-share-btn--copied,
.bd-share-buttons .blog-share-btn--copied:hover {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* ============================================
   FLOATING SHARE SIDEBAR (Desktop)
   ============================================ */
.bd-floating-share {
  position: fixed;
  left: max(calc(50% - 560px), 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
  padding: 12px 8px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  animation: floatShareIn .5s cubic-bezier(.4,0,.2,1) both;
}
@keyframes floatShareIn {
  from { opacity: 0; transform: translate(-12px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
.bd-floating-share .blog-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: .85rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .bd-floating-share { display: none; }
}
@media (max-width: 1024px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } .bd-layout { grid-template-columns: 1fr; } .bd-sidebar { position: static; } .bd-article { padding: 24px; } }
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .bd-meta { gap: 10px; }
  .bd-article { padding: 18px; border-radius: 14px; }
  .bd-share-buttons .blog-share-btn { padding: 8px 14px; }
  .bd-share-buttons .blog-share-btn span { display: none; }
  .blog-share-bar { flex-wrap: wrap; }
}
