/* ==========================================================================
   FIRST OWNER MEDIA — BLOG
   Editorial hero + post grid.
   Brand tokens styles.css se aate hain; yahan sirf is page ka layer hai.
   ========================================================================== */

.blog-page {
  --bl-ink: #05060A;
  --bl-paper: #FBFBFD;
  --bl-paper-2: #F3F6FB;
  --bl-line: rgba(5, 6, 10, 0.10);
  --bl-muted: #646B78;
  --bl-blue: var(--color-blue-primary);

  --bl-ease: cubic-bezier(0.22, 1, 0.36, 1);

  background: var(--bl-paper);
}

.blog-page .bg-dotted-texture { opacity: 0.32; }

.blog-page .header {
  position: sticky;
  top: 0;
  background: rgba(251, 251, 253, 0.96);
  backdrop-filter: blur(14px) saturate(0.88);
  -webkit-backdrop-filter: blur(14px) saturate(0.88);
  border-bottom: 1px solid var(--bl-line);
}

.blog-page .nav-link.is-current { position: relative; color: var(--bl-blue); }
.blog-page .nav-link.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--bl-blue);
  border-radius: 2px;
}

.bl-shell { width: min(92%, 1320px); margin: 0 auto; position: relative; z-index: 2; }

.bl-serif {
  font-family: 'Instrument Serif', 'Instrument Fallback', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--bl-blue);
  letter-spacing: -0.01em;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.bl-hero {
  position: relative;
  z-index: 10;
  padding: 54px 0 46px;
  overflow: hidden;
}

.bl-hero::before {
  content: "";
  position: absolute;
  top: -220px; right: -140px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(18, 100, 244, 0.14), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.bl-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--bl-muted);
  text-decoration: none;
  transition: color 0.3s var(--bl-ease), gap 0.3s var(--bl-ease);
}
.bl-back svg { width: 15px; height: 15px; }
.bl-back:hover { color: var(--bl-blue); gap: 12px; }

.bl-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--bl-line);
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bl-ink);
}

.bl-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bl-blue);
  animation: blPulse 2.4s infinite;
}

@keyframes blPulse {
  0%   { box-shadow: 0 0 0 0 rgba(18, 100, 244, 0.45); }
  70%  { box-shadow: 0 0 0 9px rgba(18, 100, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 100, 244, 0); }
}

.bl-title {
  margin-top: 22px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--bl-ink);
  max-width: 17ch;
}
.bl-title .bl-serif { font-size: 1.06em; }

.bl-lede {
  margin-top: 22px;
  max-width: 56ch;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: var(--bl-muted);
}

/* ==========================================================================
   POSTS
   ========================================================================== */
.bl-main {
  position: relative;
  z-index: 10;
  padding: 0 0 86px;
}

.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.bl-card {
  opacity: 0;
  transform: translateY(20px);
  animation: blIn 0.6s var(--bl-ease) calc(0.08s + var(--i) * 0.08s) both;
}

.bl-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 26px 26px 22px;
  border: 1px solid var(--bl-line);
  border-radius: 20px;
  background: #FFFFFF;
  text-decoration: none;
  transition:
    border-color 0.4s var(--bl-ease),
    box-shadow 0.4s var(--bl-ease),
    transform 0.4s var(--bl-ease);
}

.bl-card-link:hover {
  border-color: rgba(18, 100, 244, 0.34);
  box-shadow: 0 24px 50px rgba(18, 100, 244, 0.14);
  transform: translateY(-4px);
}

.bl-card-link:focus-visible { outline: 2px solid var(--bl-blue); outline-offset: 3px; }

.bl-card-tag {
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--color-blue-secondary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bl-blue);
}

.bl-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--bl-ink);
}

.bl-card-excerpt {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--bl-muted);
}

.bl-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--bl-line);
}

.bl-card-date { font-size: 0.82rem; color: var(--bl-muted); }

.bl-card-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--color-blue-secondary);
  color: var(--bl-blue);
  transition: background 0.35s var(--bl-ease), color 0.35s var(--bl-ease), transform 0.35s var(--bl-ease);
}

.bl-card-go svg { width: 15px; height: 15px; }

.bl-card-link:hover .bl-card-go {
  background: var(--bl-blue);
  color: #FFFFFF;
  transform: translate(2px, -2px);
}

/* ---- Empty state (jab tak pehla article nahi aata) ---- */
.bl-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 66px 30px 60px;
  border: 1px dashed var(--bl-line);
  border-radius: 24px;
  background: var(--bl-paper-2);
  opacity: 0;
  transform: translateY(18px);
  animation: blIn 0.6s var(--bl-ease) 0.1s both;
}

.bl-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 18px;
  background: var(--color-blue-secondary);
  color: var(--bl-blue);
  box-shadow: 0 14px 30px rgba(18, 100, 244, 0.14);
}
.bl-empty-ico svg { width: 27px; height: 27px; }

.bl-empty h2 {
  margin-top: 22px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--bl-ink);
}

.bl-empty p {
  margin-top: 14px;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--bl-muted);
}

.bl-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

/* ---- Buttons ---- */
.bl-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s var(--bl-ease), box-shadow 0.3s var(--bl-ease), background 0.3s var(--bl-ease);
}
.bl-btn svg { width: 16px; height: 16px; }

.bl-btn-primary { background: var(--bl-blue); color: #FFFFFF; }
.bl-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--color-blue-glow); }

.bl-btn-ghost {
  background: #FFFFFF;
  color: var(--bl-ink);
  border: 1px solid var(--bl-line);
}
.bl-btn-ghost:hover { transform: translateY(-2px); border-color: var(--bl-blue); color: var(--bl-blue); }

@keyframes blIn { to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .bl-hero { padding: 38px 0 32px; }
  .bl-main { padding-bottom: 60px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .bl-empty { padding: 46px 20px 42px; border-radius: 18px; }
  .bl-empty-actions .bl-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .bl-card, .bl-empty { opacity: 1; transform: none; animation: none; }
  .bl-card-link:hover, .bl-btn:hover { transform: none; }
}

/* ==========================================================================
   CATEGORY FILTERS  (posts aane par blog.js inhe bharta hai)
   ========================================================================== */

.bl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.bl-filters[hidden] { display: none; }

.bl-filter {
  padding: 8px 16px;
  border: 1px solid var(--bl-line);
  border-radius: 999px;
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--bl-muted);
  cursor: pointer;
  transition: border-color 0.3s var(--bl-ease), color 0.3s var(--bl-ease), background 0.3s var(--bl-ease);
}

.bl-filter:hover { border-color: rgba(18, 100, 244, 0.34); color: var(--bl-ink); }

.bl-filter.is-on {
  background: var(--bl-blue);
  border-color: var(--bl-blue);
  color: #FFFFFF;
}

.bl-none {
  padding: 60px 0;
  text-align: center;
  color: var(--bl-muted);
  font-size: 0.95rem;
}

/* Left "Let's Connect" strip — work/about jaisa hi, tablet se neeche hide */
@media (max-width: 860px) {
  .blog-page .connect-tab { display: none; }
}

/* ==========================================================================
   TOPICS / STANDARD / CTA
   Post ho ya na ho, page bhara lage — ye sab evergreen hai, isliye
   .bl-empty ke ulta ye hataya nahi jaata.
   ========================================================================== */

.bl-kicker {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bl-muted, #6B7280);
}

.bl-h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--bl-ink, #05060A);
  max-width: 22ch;
}

.bl-sub {
  margin-top: 14px;
  max-width: 56ch;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--bl-muted, #6B7280);
}

.bl-sec-head { margin-bottom: 38px; }

/* ---- Topics ---- */
.bl-topics { position: relative; z-index: 10; padding: 20px 0 80px; }

.bl-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bl-topic {
  display: block;
  padding: 26px 24px 28px;
  border: 1px solid var(--bl-line, rgba(5, 6, 10, 0.10));
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  transition: transform 0.45s var(--bl-ease, cubic-bezier(0.22, 1, 0.36, 1)),
              border-color 0.45s ease, box-shadow 0.45s ease;
}

.bl-topic:hover {
  transform: translateY(-4px);
  border-color: rgba(18, 100, 244, 0.38);
  box-shadow: 0 22px 46px rgba(5, 6, 10, 0.09);
}

.bl-topic-ico {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--color-blue-secondary, #EBF3FF);
  color: var(--color-blue-primary, #1264F4);
  transition: background 0.35s ease, color 0.35s ease;
}

.bl-topic-ico svg { width: 21px; height: 21px; }
.bl-topic:hover .bl-topic-ico { background: var(--color-blue-primary, #1264F4); color: #fff; }

.bl-topic h3 {
  margin-top: 18px;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bl-ink, #05060A);
}

.bl-topic p {
  margin-top: 9px;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--bl-muted, #6B7280);
}

/* ---- Editorial rules ---- */
.bl-standard { position: relative; z-index: 10; padding-bottom: 80px; }

.bl-rules {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--bl-line, rgba(5, 6, 10, 0.10));
}

.bl-rule {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--bl-line, rgba(5, 6, 10, 0.10));
}

.bl-rule-n {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  color: var(--color-blue-primary, #1264F4);
}

.bl-rule h3 {
  font-size: clamp(1.06rem, 1.8vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--bl-ink, #05060A);
}

.bl-rule p {
  margin-top: 8px;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--bl-muted, #6B7280);
}

/* ---- CTA band ---- */
.bl-ping {
  position: relative;
  z-index: 10;
  padding: 56px 0;
  background: #05060A;
  border-radius: 32px 32px 0 0;
  color: #fff;
}

.bl-ping-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.bl-ping-title {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.14;
}

.bl-ping-sub {
  margin-top: 11px;
  max-width: 46ch;
  font-size: 0.94rem;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.62);
}

.bl-ping-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.bl-btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 40px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.35s var(--bl-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.bl-btn-line svg { width: 16px; height: 16px; }
.bl-btn-line:hover { background: #fff; color: #05060A; border-color: #fff; }

/* CTA band aur footer dono dark hain — beech ka gap hata do */
.bl-ping + .site-foot { margin-top: 0; }

@media (max-width: 980px) {
  .bl-topic-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .bl-topic-grid { grid-template-columns: 1fr; }
  .bl-rule { grid-template-columns: 62px 1fr; gap: 16px; }
  .bl-ping-actions { width: 100%; }
  .bl-ping-actions .bl-btn { flex: 1 1 auto; justify-content: center; }
}

/* Akela link tha aur 19px ka — ungli ke liye upar-neeche jagah di.
   Dikhne me waisa hi, margin se naap wapas seedha kar diya. */
.bl-back { padding: 6px 0; margin-top: -6px; }
