/* -------------------
   Post Layout
------------------- */
.page-grid {
  display: grid;
  grid-template-columns: 220px minmax(640px, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.left-rail {
  position: sticky;
  top: 120px;
  height: calc(100vh - 140px);
}

/* -------------------
   Share Buttons
------------------- */
.share-stack {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7ee;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}

/* -------------------
   Table of Contents
------------------- */
.toc {
  overflow: auto;
  max-height: calc(100% - 70px);
}
.toc h4 {
  margin: 0 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}
.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.toc a {
  display: block;
  text-decoration: none;
  color: #3a4153;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 14px;
}
.toc a.active,
.toc a:hover {
  background: #f2f6ff;
  color: #0b3c9d;
}

/* -------------------
   Article Content
------------------- */
article.post {
  background: #fff;
  border: 1px solid #e8eaf2;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 30px;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  color: var(--brand);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post h1 {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(28px, 4vw, 40px);
  margin: 8px 0 16px;
}
.post .meta {
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
}
.hero-img {
  width: 100%;
  border-radius: 18px;
  margin: 22px 0 8px;
}
.post p {
  margin: 14px 0;
  font-size: 1.05rem;
}
.post h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.7vw, 28px);
}
.post h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}
.note {
  background: linear-gradient(120deg, #fef3f2, #fff);
  border: 1px solid #ffe0db;
  padding: 16px 18px;
  border-radius: 14px;
  margin: 18px 0;
}
pre {
  background: #0b1220;
  color: #ecf2ff;
  padding: 16px;
  border-radius: 12px;
  overflow: auto;
}
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Courier New", monospace;
}
.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.post-tags a {
  background: #f2f6ff;
  color: #0b3c9d;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #dfe7ff;
}

/* -------------------
   Related Posts
------------------- */
.related {
  margin-top: 36px;
  margin-bottom: 36px;
}
.related h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  margin-bottom: 12px;
}
.related-list {
  display: grid;
  gap: 12px;
}
.related-item {
  display: grid;
  grid-template-columns: 78px auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e8eaf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.related-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.12);
}
.thumb {
/*  width: 78px;
  height: 56px; */
  border-radius: 12px;
  overflow: hidden;
  background: #eee;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.related-title {
  font-weight: 600;
  line-height: 1.35;
}
.related-meta
/* -------------------
   Sidebar
------------------- */
.sidebar {
  position: sticky;
  top: 1px;
}
.subscribe-card {
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid #e8eaf2;
  background: #fff;
  padding: 20px;
}
.subscribe-card .hero-heading {
  font-family: Poppins, Inter, sans-serif;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
}
.subscribe-card p {
  color: #4b5563;
}
.subscribe-card .subscribe-disclaimer {
  color: #6b7280;
  font-size: 12px;
  margin-top: 10px;
}

/* -------------------
   Comments
------------------- */
.comments {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid #e8eaf2;
}
.comments h3 {
  font-family: Poppins, Inter, sans-serif;
  font-size: 22px;
  margin-bottom: 18px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.comment {
  display: flex;
  gap: 12px;
}
.comment.reply {
  margin-left: 50px;
}
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comment .body {
  background: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e8eaf2;
  box-shadow: var(--shadow);
  flex: 1;
}
.comment .meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}
.comment .actions {
  margin-top: 6px;
}
.comment .actions a {
  font-size: 13px;
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.comment-form {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px;
  border: 1px solid #dfe3eb;
  border-radius: 10px;
  font-family: inherit;
}
.comment-form button {
  align-self: flex-end;
  background: var(--brand-gradient);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.comment-form button:hover {
  opacity: 0.9;
}

/* -------------------
   Responsive
------------------- */
@media (max-width: 1200px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .left-rail {
    display: none;
  }
}
@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  article.post {
    padding: 28px;
  }
}

.subscribe-card .subscribe-disclaimer{color:#6b7280; font-size:12px; margin-top:10px}
    .testimonial-block{margin-top:14px; border-top:1px dashed #e3e6ef; padding-top:14px}
    .loved-by{font-size:12px; color:#6b7280; margin-bottom:8px}
    .company-featured-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; align-items:center}
    .company-logo{max-width:100%;  opacity:1.0}
    /* RELATED STYLE (like attached) */
    
    .visually-hidden{position:absolute!important; clip: rect(0 0 0 0)!important; clip-path: inset(50%)!important; height:1px!important; overflow:hidden!important; white-space:nowrap!important; width:1px!important; padding:0!important; border:0!important}
    /* Responsive */
    @media (max-width: 1200px){
      :root{ --rail-w: 0px; --sidebar-w: 300px }
      .page-grid{ grid-template-columns: minmax(0,1fr) var(--sidebar-w) }
      .left-rail{ display:none }
    }
    @media (max-width: 900px){
      :root{ --sidebar-w: 100% }
      .page-grid{ grid-template-columns: 1fr; }
      .sidebar{ position:static }
      article.post{ padding:28px }
    }


    /* SIDEBAR */
    .sidebar{position:sticky; top:1px;}
    .subscribe-card{
      border-radius:12px; box-shadow:var(--shadow); border:1px solid #e8eaf2; background:#fff; padding:20px;
    }
    





    /* ======================================================
   === Enhanced Mobile Responsiveness (Post Layout v2) ===
   ====================================================== */

/* --- Tablets (≤1024px) --- */
@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: minmax(0,1fr) 280px;
    gap: 24px;
  }
  article.post {
    padding: 24px;
  }
  .left-rail { display: none; }
  .toc { max-height: none; position: static; margin-top: 1rem; }
  .related-list { grid-template-columns: 1fr 1fr; }

}

/* --- Small Tablets & Large Phones (≤768px) --- */
@media (max-width: 768px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sidebar {
    position: static;
    order: 3;
  }
  article.post {
    padding: 22px 18px;
    border-radius: 18px;
  }
  .post h1 { font-size: 1.75rem; }
  .post h2 { font-size: 1.35rem; }
  .post p { font-size: 1rem; }
  .share-stack { justify-content: center; }
  .share-btn { width: 36px; height: 36px; }
  .related-list { grid-template-columns: 1fr; }
  .related-item {
    grid-template-columns: 70px auto;
    padding: 10px;
  }
  .comment.reply { margin-left: 25px; }
  .comment { flex-direction: row; align-items: flex-start; }
  .comment .body { padding: 12px; }
  .comment-form button { align-self: stretch; text-align: center; }
  .subscribe-card { padding: 18px; }
  .subscribe-card .hero-heading { font-size: 18px; }
  .subscribe-card p { font-size: 14px; }

}

/* --- Phones (≤480px) --- */
@media (max-width: 480px) {
  .page-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  article.post {
    padding: 18px 14px;
    border-radius: 14px;
  }
  .post h1 { font-size: 1.45rem; }
  .post h2 { font-size: 1.2rem; }
  .hero-img { margin: 16px 0; border-radius: 12px; }
  .post p { font-size: 0.95rem; line-height: 1.6; }
  .note { padding: 14px; font-size: 0.9rem; }
  .post-tags a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .related h3 { font-size: 1.1rem; text-align: center; }
  .related-item {
    grid-template-columns: 64px auto;
    gap: 10px;
    padding: 8px 10px;
  }
  .related-title { font-size: 0.95rem; }
  .comment-list { gap: 14px; }
  .comment.reply { margin-left: 15px; }
  .avatar { width: 32px; height: 32px; font-size: 12px; }
  .comment .meta { font-size: 12px; }
  .comment .actions a { font-size: 12px; }
  .comment-form textarea {
    font-size: 0.95rem;
    padding: 10px;
    min-height: 80px;
  }
  .comment-form button {
    width: 100%;
    font-size: 0.9rem;
    padding: 10px 0;
  }
  .subscribe-card { padding: 16px; }
  .subscribe-card .hero-heading { font-size: 17px; }

}

/* --- Ultra-small (≤360px) --- */
@media (max-width: 360px) {
  .post h1 { font-size: 1.3rem; }
  .post h2 { font-size: 1.1rem; }
  .post p, .note, .comment .body { font-size: 0.9rem; }
  .comment .body { padding: 10px; }
  .share-btn { width: 32px; height: 32px; }
  .related-item { grid-template-columns: 56px auto; }
  
}
