/* ==========================================================================
   Jewelry Rendering India - Blog & Editorial Stylesheet (blog.css)
   ========================================================================== */

/* ---------- Blog Hero Header ---------- */
.blog-hero {
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(212, 149, 37, 0.12) 0%, transparent 60%),
              linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy) 100%);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.blog-hero .eyebrow {
  color: var(--gold-400);
}
.blog-hero h1 {
  color: #fff;
  max-width: 22ch;
  margin-bottom: 0.4em;
}
.blog-hero .lede {
  color: #C9CEDE;
  max-width: 62ch;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

/* ---------- Category Filter Bar ---------- */
.blog-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(32px, 4vw, 48px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.blog-filter-btn {
  background: var(--bg-alt);
  color: var(--body);
  border: 1px solid var(--line);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t);
  white-space: nowrap;
}
.blog-filter-btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-400);
  color: var(--gold-700);
}
.blog-filter-btn.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(38, 46, 81, 0.2);
}

/* ---------- Featured Article Hero Card ---------- */
.blog-featured {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--t);
  margin-bottom: clamp(40px, 5vw, 64px);
  text-decoration: none;
  color: inherit;
}
.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.blog-featured-media {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: var(--navy-900);
}
.blog-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-featured:hover .blog-featured-media img {
  transform: scale(1.04);
}
.blog-featured-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(21, 26, 46, 0.88);
  backdrop-filter: blur(8px);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(242, 190, 86, 0.3);
}
.blog-featured-content {
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.blog-meta-tag {
  color: var(--gold-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-meta-dot {
  opacity: 0.5;
}
.blog-featured-content h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  line-height: 1.25;
  margin-bottom: 0.5em;
  color: var(--ink);
  transition: color var(--t);
}
.blog-featured:hover .blog-featured-content h2 {
  color: var(--gold-600);
}
.blog-featured-content p {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 20px;
}
.blog-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.blog-author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold-400);
}
.blog-author-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  display: block;
}
.blog-author-role {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
}
.blog-read-cta {
  margin-left: auto;
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--t);
}
.blog-featured:hover .blog-read-cta {
  transform: translateX(4px);
  color: var(--navy);
}

/* ---------- Blog Articles Grid ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(24px, 3vw, 36px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--t);
  position: relative;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}
.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--navy-900);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}
.blog-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(21, 26, 46, 0.85);
  backdrop-filter: blur(6px);
  color: var(--gold-300);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-card-body {
  padding: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.blog-card-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.3;
  margin-bottom: 0.5em;
  color: var(--ink);
  transition: color var(--t);
}
.blog-card:hover .blog-card-body h3 {
  color: var(--gold-600);
}
.blog-card-body p {
  font-size: 0.94rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}
.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: auto;
}
.blog-card-link {
  font-weight: 750;
  color: var(--gold-600);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.blog-card:hover .blog-card-link {
  color: var(--navy);
  transform: translateX(3px);
}

/* ---------- Newsletter / Studio Insights CTA ---------- */
.blog-cta-box {
  background: radial-gradient(circle at 90% 10%, rgba(212, 149, 37, 0.15) 0%, transparent 50%),
              linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(212, 149, 37, 0.3);
  border-radius: var(--radius);
  padding: clamp(36px, 5vw, 60px);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  box-shadow: var(--shadow-lg);
  margin-top: clamp(40px, 6vw, 70px);
}
.blog-cta-box h3 {
  font-family: var(--serif);
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 0.4em;
}
.blog-cta-box p {
  color: #C9CEDE;
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 0;
}
.blog-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.blog-cta-note {
  font-size: 0.82rem;
  color: var(--gold-300);
  opacity: 0.9;
}

/* ==========================================================================
   INDIVIDUAL BLOG POST / ARTICLE DETAIL STYLES
   ========================================================================== */
.post-header {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 65%, var(--navy) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 90px) 0 clamp(44px, 6vw, 70px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.post-header .crumb a {
  color: var(--gold-300);
}
.post-header .crumb span {
  color: rgba(255, 255, 255, 0.4);
}
.post-title {
  color: #fff;
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 0.4em;
  max-width: 24ch;
}
.post-lede {
  color: #C9CEDE;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  max-width: 64ch;
  margin-bottom: 24px;
}
.post-header-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #C9CEDE;
  font-size: 0.9rem;
}
.post-header-meta strong {
  color: #FFFFFF !important;
  font-weight: 700;
}

/* Article Layout: Two-Column with Sticky Sidebar */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding: clamp(48px, 6vw, 84px) 0;
}

/* Main Article Content Typography */
.post-body {
  font-size: 1.05rem;
  line-height: 1.82;
  color: #333A4D;
  max-width: 68ch;
}
.post-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  color: var(--ink);
  margin: 1.8em 0 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--line);
}
.post-body h3 {
  font-size: clamp(1.18rem, 1.8vw, 1.4rem);
  color: var(--navy);
  margin: 1.5em 0 0.5em;
}
.post-body p {
  margin-bottom: 1.35em;
}
.post-body ul, .post-body ol {
  margin-bottom: 1.4em;
  padding-left: 1.4em;
}
.post-body li {
  margin-bottom: 0.5em;
}
.post-body a:not(.btn) {
  color: var(--gold-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: all var(--t);
}
.post-body a:not(.btn):hover {
  color: var(--navy);
  text-decoration-color: var(--navy);
}

.post-body .btn,
.post-interlink-card .btn {
  text-decoration: none !important;
  color: var(--navy-900) !important;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.post-body .btn *,
.post-interlink-card .btn * {
  color: inherit !important;
  text-decoration: none !important;
}
.post-body .btn--primary:hover,
.post-interlink-card .btn--primary:hover {
  color: #0B0E1B !important;
}

/* Interlink Callout Banner inside article */
.post-interlink-card {
  background: var(--gold-light);
  border: 1px solid rgba(212, 149, 37, 0.35);
  border-left: 5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 2.2em 0;
}
.post-interlink-card h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  font-size: 1.15rem;
  margin-bottom: 0.35em;
}
.post-interlink-card p {
  font-size: 0.95rem;
  color: var(--body);
  margin-bottom: 14px;
}
.post-interlink-card .btn {
  font-size: 0.84rem;
  padding: 10px 22px;
}

/* Technical Specification / Key Takeaway Box */
.post-takeaway {
  background: var(--navy-050);
  border: 1px solid var(--line);
  border-left: 5px solid var(--navy);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  margin: 2.2em 0;
}
.post-takeaway strong.takeaway-title {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.post-takeaway p:last-child {
  margin-bottom: 0;
}

/* Responsive Comparison Table inside Article */
.post-table-wrap {
  overflow-x: auto;
  margin: 2.2em 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  text-align: left;
}
.post-table th {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.post-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--body);
}
.post-table tr:nth-child(even) td {
  background: var(--bg-alt);
}
.post-table tr:hover td {
  background: #FAF8F2;
}

/* Article Hero Image & Figures */
.post-figure {
  margin: 2em 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.post-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.post-figure figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  padding: 10px 16px;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
}

/* Sticky Sidebar */
.post-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.sidebar-box h4 {
  font-size: 0.92rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* Table of Contents list */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc-list li {
  margin-bottom: 10px;
  line-height: 1.4;
}
.toc-list a {
  color: var(--body);
  font-size: 0.9rem;
  text-decoration: none;
  display: block;
  transition: all var(--t);
  padding-left: 10px;
  border-left: 2px solid transparent;
}
.toc-list a:hover {
  color: var(--gold-600);
  border-left-color: var(--gold-400);
  transform: translateX(4px);
}

/* Sticky Conversion Widget in Sidebar */
.sidebar-promo {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid rgba(212, 149, 37, 0.4);
  box-shadow: var(--shadow-lg);
}
.sidebar-promo-badge {
  display: inline-block;
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.sidebar-promo h4 {
  color: #fff;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}
.sidebar-promo p {
  color: #C9CEDE;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
}
.sidebar-promo .btn {
  width: 100%;
}

/* Author Box at Bottom of Article */
.post-author-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 3.5em 0 2em;
}
.post-author-box img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold-400);
  flex-shrink: 0;
}
.post-author-box h4 {
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.15rem;
}
.post-author-box .role {
  font-size: 0.84rem;
  color: var(--gold-600);
  font-weight: 600;
  margin-bottom: 8px;
}
.post-author-box p {
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Related Articles Section */
.related-posts-section {
  background: var(--bg-alt);
  padding: clamp(56px, 7vw, 90px) 0;
  border-top: 1px solid var(--line);
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 992px) {
  .blog-featured {
    grid-template-columns: 1fr;
  }
  .blog-featured-media {
    min-height: 240px;
  }
  .blog-cta-box {
    grid-template-columns: 1fr;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    margin-top: 36px;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .post-author-box {
    flex-direction: column;
    text-align: center;
  }
}

