/* ===== Blog / Insights ===== */
:root {
  --blog-primary: #3b6bff;
  --blog-primary-2: #22d3ee;
  --blog-dark: #060a14;
  --blog-surface: #f4f6fb;
  --blog-border: #e4e7f0;
}

/* ---- Listing hero ---- */
.blog-hero {
  background: linear-gradient(135deg, #060a14 0%, #0b1b3a 55%, #123a7a 100%);
  padding: 170px 0 72px;
  text-align: center;
}
.blog-hero .tag {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 6px 16px;
  border-radius: 30px;
  font-size: .72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.blog-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  line-height: 1.15;
}
.blog-hero .grad {
  background: linear-gradient(90deg, var(--blog-primary), var(--blog-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-hero p {
  color: rgba(255,255,255,.82);
  max-width: 660px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

.blog-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- Category filter ---- */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 44px 0 40px;
}
.blog-filter a {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--blog-border);
  font-size: .85rem;
  font-weight: 600;
  color: #0c1220;
  transition: .2s;
}
.blog-filter a:hover,
.blog-filter a.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #fff;
}

/* ---- Featured post ---- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--blog-surface);
  border: 1px solid var(--blog-border);
  border-radius: 22px;
  overflow: hidden;
  margin-bottom: 52px;
}
.blog-featured-img { min-height: 340px; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-featured-body { padding: 44px; }
.blog-featured-body h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin: 14px 0 14px;
  line-height: 1.25;
}
.blog-badge {
  display: inline-block;
  background: rgba(59,107,255,.1);
  color: var(--blog-primary);
  border: 1px solid rgba(59,107,255,.25);
  padding: 4px 12px;
  border-radius: 30px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Grid ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-card {
  display: block;
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 18px;
  overflow: hidden;
  transition: .3s;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px -18px rgba(59,107,255,.35);
  border-color: rgba(59,107,255,.35);
}
.blog-card-img {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eef3ff, #e6f9ff);
}
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: .5s; }
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--blog-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: .68rem;
  font-weight: 700;
}
.blog-card-body { padding: 22px; }
.blog-card-body h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.blog-card-body p { font-size: .9rem; color: #5b6478; line-height: 1.7; margin: 0 0 14px; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: #8a93a6; margin-bottom: 10px; }
.blog-meta i { color: var(--blog-primary); margin-right: 4px; }
.blog-readmore { color: var(--blog-primary); font-weight: 600; font-size: .88rem; }

.blog-empty { text-align: center; padding: 70px 20px; color: #8a93a6; }
.blog-empty .em { font-size: 3.4rem; margin-bottom: 12px; }

/* ---- Pagination ---- */
.blog-pagination { display: flex; justify-content: center; gap: 10px; margin-top: 48px; }
.blog-pagination a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blog-border);
  border-radius: 12px;
  color: #0c1220;
  font-weight: 600;
  transition: .2s;
}
.blog-pagination a:hover,
.blog-pagination a.active {
  background: var(--blog-primary);
  border-color: var(--blog-primary);
  color: #fff;
}

/* ---- Single post ---- */
.post-hero {
  background: linear-gradient(135deg, #060a14 0%, #0b1b3a 55%, #123a7a 100%);
  padding: 165px 0 60px;
}
.post-hero .inner { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.post-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 16px 0 18px;
}
.post-hero .cat {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  padding: 5px 14px;
  border-radius: 30px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 20px; color: rgba(255,255,255,.78); font-size: .85rem; }
.post-meta i { color: #7dd3fc; margin-right: 6px; }
.post-thumb { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.post-thumb img {
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 40px;
  background: #f4f6fb;
}
.post-body { max-width: 820px; margin: 0 auto; padding: 44px 24px 20px; }
.post-body h2 { font-size: 1.7rem; font-weight: 800; margin: 38px 0 14px; }
.post-body h3 { font-size: 1.32rem; font-weight: 700; margin: 30px 0 12px; }
.post-body h4 { font-size: 1.12rem; font-weight: 700; margin: 24px 0 10px; }
.post-body p { font-size: 1.04rem; line-height: 1.9; color: #1e293b; margin-bottom: 18px; }
.post-body ul,
.post-body ol { padding-left: 26px; margin-bottom: 20px; }
.post-body li { font-size: 1.02rem; line-height: 1.8; color: #1e293b; margin-bottom: 8px; list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body a { color: var(--blog-primary); text-decoration: underline; }
.post-table-wrap { overflow-x: auto; margin: 0 0 22px; }
.post-body table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.post-body th,
.post-body td { border: 1px solid #e2e8f0; padding: 10px 14px; text-align: left; vertical-align: top; line-height: 1.6; color: #1e293b; }
.post-body th { background: #f8fafc; font-weight: 700; }
.post-body img {
  max-width: 100% !important;
  height: auto !important;
  max-height: 620px !important;
  object-fit: contain !important;
  display: block;
  margin: 26px auto;
  border-radius: 12px;
}
.post-body blockquote {
  border-left: 4px solid var(--blog-primary);
  background: var(--blog-surface);
  padding: 16px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
  font-style: italic;
  color: #334155;
}

/* ---- Share bar ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px 0;
  border-top: 1px solid var(--blog-border);
  border-bottom: 1px solid var(--blog-border);
  margin: 34px 0;
}
.share-bar .lbl { font-weight: 700; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  color: #fff;
  transition: .2s;
}
.share-btn:hover { opacity: .88; transform: translateY(-2px); }
.share-wa { background: #25D366; }
.share-li { background: #0077B5; }
.share-quora { background: #A82400; }
.share-copy { background: var(--blog-surface); color: #0c1220; border: 1px solid var(--blog-border); }

/* ---- CTA ---- */
.cta-box { max-width: 860px; margin: 20px auto 64px; padding: 0 24px; }
.cta-inner {
  background: linear-gradient(135deg, var(--blog-primary), var(--blog-primary-2));
  border-radius: 20px;
  padding: 46px;
  text-align: center;
  color: #fff;
}
.cta-inner h3 { color: #fff; font-size: 1.6rem; font-weight: 800; margin: 0 0 10px; }
.cta-inner p { color: rgba(255,255,255,.92); margin: 0 0 22px; }
.cta-inner a {
  background: #fff;
  color: #1b3fb0;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-block;
}

/* ---- Related ---- */
.related { background: var(--blog-surface); padding: 56px 0; }
.related .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.related h2 { font-size: 1.6rem; font-weight: 800; margin: 0 0 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-card {
  background: #fff;
  border: 1px solid var(--blog-border);
  border-radius: 16px;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: .3s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(59,107,255,.35); }
.related-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.related-card .rc-body { padding: 18px; }
.related-card h4 { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 8px; }
.related-card span { font-size: .78rem; color: #8a93a6; }
.related-ph {
  height: 160px;
  background: linear-gradient(135deg, #eef3ff, #e6f9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}

@media (max-width: 992px) {
  .blog-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 260px; }
}
@media (max-width: 640px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .blog-hero { padding-top: 130px; }
  .post-hero { padding-top: 130px; }
  .blog-featured-body { padding: 28px; }
  .cta-inner { padding: 32px 22px; }
}
