.editorial-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.editorial-category {
  display: inline-block;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.editorial-category:hover {
  background: #2563eb;
  color: #ffffff;
}

.editorial-title {
  font-size: clamp(1.75rem, 5vw, 4rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  word-break: break-word;
}

.editorial-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.editorial-meta-dot {
  width: 4px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 50%;
}

.editorial-hero-image {
  width: 100%;
  border-radius: 2.5rem;
  overflow: hidden;
  margin-bottom: 4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
  background: #f8fafc;
}

.editorial-hero-image img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 750px;
  object-fit: cover;
}

/* Typography & Spacing Optimization */
.editorial-content {
  font-size: 1.25rem;
  line-height: 2;
  color: #334155;
  letter-spacing: -0.011em;
  word-spacing: 0.05em;
}

.editorial-content p {
  margin-bottom: 2em;
}

/* Heading Styles - Backend & Frontend Consistency */
.editorial-content h1,
.editorial-content h2,
.editorial-content h3,
.editorial-content h4,
.editorial-content h5,
.editorial-content h6 {
  font-weight: 900;
  color: #0f172a;
  line-height: 1.3;
  margin-top: 2.5em;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.editorial-content h1 {
  font-size: 2.5rem;
}

.editorial-content h2 {
  font-size: 2.25rem;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.5rem;
}

.editorial-content h3 {
  font-size: 1.85rem;
}

.editorial-content h4 {
  font-size: 1.5rem;
}

.editorial-content h5 {
  font-size: 1.25rem;
}

.editorial-content h6 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Lists & Blockquotes */
.editorial-content ul,
.editorial-content ol {
  margin-bottom: 2em;
  padding-left: 1.5rem;
}

.editorial-content ul {
  list-style-type: disc;
}

.editorial-content ol {
  list-style-type: decimal;
}

.editorial-content li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.editorial-content blockquote {
  border-left: 4px solid #2563eb;
  background: #f8fafc;
  padding: 2rem;
  margin: 3rem 0;
  font-style: italic;
  color: #1e293b;
  border-radius: 0 1.5rem 1.5rem 0;
}

/* Inline Images */
.editorial-content img {
  max-width: 100%;
  height: auto;
  border-radius: 1.5rem;
  margin: 3rem auto;
  display: block;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.editorial-tags {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.editorial-tag {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid #f1f5f9;
  transition: all 0.3s ease;
}

.editorial-tag:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}

/* AI Summary Box Overhaul */
.ai-summary-box {
  background: #f0fdf4;
  border-left: 6px solid #16a34a;
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 30px;
  margin-bottom: 4rem;
  box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.05);
}

.ai-summary-box h2 {
  font-size: 1.125rem !important;
  font-weight: 900 !important;
  color: #15803d !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 15px 0 !important;
  border: none !important;
  padding: 0 !important;
}

.ai-summary-box p {
  font-size: 1.125rem !important;
  color: #1e293b !important;
  line-height: 1.8 !important;
  margin: 0 !important;
  font-weight: 500;
}

/* Author Box */
.author-box-unique {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 2rem;
  margin-top: 4rem;
  border: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.author-avatar-unique {
  width: 88px;
  height: 88px;
  min-width: 88px;
  background: #2563eb;
  color: #fff;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 900;
  flex-shrink: 0;
}

.author-info-unique {
  flex: 1;
  min-width: 0;
}

.author-name-unique {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 0.375rem;
}

.author-bio-unique {
  color: #64748b;
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* Navigation */
.post-navigation-unique {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 3rem;
}

.nav-prev-unique,
.nav-next-unique {
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #f1f5f9;
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-prev-unique:hover,
.nav-next-unique:hover {
  transform: translateY(-4px);
  border-color: #2563eb;
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.1);
}

.nav-label-unique {
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #94a3b8;
}

.nav-title-unique {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

/* Mobile responsive overrides */
@media (max-width: 640px) {
  .editorial-layout {
    padding: 0 12px;
  }

  .editorial-hero-image {
    border-radius: 1.25rem;
    margin-bottom: 2rem;
  }

  .editorial-content {
    font-size: 1.0625rem;
    line-height: 1.85;
  }

  .editorial-content h2 {
    font-size: 1.5rem;
  }

  .editorial-content h3 {
    font-size: 1.25rem;
  }

  .editorial-tags {
    margin-top: 3rem;
    padding-top: 2rem;
  }

  .ai-summary-box {
    padding: 1.25rem;
    border-radius: 0 1rem 1rem 0;
  }

  .author-box-unique {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1.5rem;
    margin-top: 2.5rem;
  }

  .author-info-unique {
    text-align: center;
  }

  .post-navigation-unique {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 2rem;
  }

  .nav-prev-unique,
  .nav-next-unique {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .nav-title-unique {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .editorial-hero-image {
    border-radius: 1.5rem;
  }

  .post-navigation-unique {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .author-box-unique {
    gap: 16px;
    padding: 1.5rem;
  }
}