/*
Theme Name: CyanCRM Blog
Theme URI: https://cyancrm.com/blog
Author: CyanCRM
Description: Custom WordPress blog theme matching the CyanCRM marketing website.
Version: 1.1.0
Text Domain: cyancrm-blog
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --cyan-bg: #f0f9ff;
  --cyan-surface: #ffffff;
  --cyan-border: #e2eaf2;
  --cyan-text: #0f172a;
  --cyan-text-muted: #64748b;
  --cyan-text-soft: #94a3b8;
  --cyan-primary: #06b6d4;
  --cyan-primary-deep: #0891b2;
  --cyan-blue: #2563eb;
  --cyan-blue-deep: #1d4ed8;
  --cyan-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --cyan-shadow-hover: 0 8px 38px rgba(15, 23, 42, 0.13);
  --cyan-radius-card: 16px;
  --cyan-radius-pill: 999px;
  --cyan-container: 1280px;
  --header-height: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--cyan-text);
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================================
   LAYOUT SHELL
   ============================================================ */
.cyancrm-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .cyancrm-shell {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (max-width: 640px) {
  .cyancrm-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: none;
  border-bottom: 1px solid #e2e8f0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-height);
}

/* Brand / Logo */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(to bottom right, #22d3ee, #06b6d4);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 10px 24px -4px rgba(6, 182, 212, 0.5);
  transition: transform 0.2s ease;
}

.site-brand:hover .site-brand__mark {
  transform: scale(1.05);
}

.site-brand__name {
  display: flex;
  align-items: baseline;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.site-brand__name span:first-child {
  color: #06b6d4;
}

.site-brand__name span:last-child {
  color: #0f172a;
}

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #475569;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0;
  border-radius: 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cyan-primary);
  background: transparent;
}

.site-nav__link.is-current {
  color: var(--cyan-primary);
  font-weight: 700;
}

.site-nav__chevron {
  opacity: 0.65;
}

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  color: #fff;
  background: #06b6d4;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  margin-left: 8px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(6, 182, 212, 0.2);
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.site-main {
  min-height: calc(100vh - 420px);
}

/* ============================================================
   BLOG HERO — matches reference exactly
   ============================================================ */
.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 128px 16px 80px;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 40%, rgba(186, 230, 253, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(165, 243, 252, 0.4) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow pill — reference shows "✦ CyanCRM Blog" with border */
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--cyan-radius-pill);
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 32px;
}

.blog-hero__title {
  margin: 0 0 32px;
  font-size: clamp(3rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.hero__title-accent {
  background: linear-gradient(to right, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.blog-hero__description {
  max-width: 600px;
  margin: 0 auto 32px;
  color: var(--cyan-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Search bar */
.blog-hero__search {
  max-width: 680px;
  margin: 0 auto;
}

.search-form {
  display: block;
}

.search-form__field-wrap {
  position: relative;
}

.search-form__icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  pointer-events: none;
}

.search-field {
  display: block;
  width: 100%;
  min-height: 64px;
  padding: 0 148px 0 48px;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #0f172a;
  font-size: 1.125rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.search-field::placeholder {
  color: #94a3b8;
}

.search-field:focus {
  outline: none;
  border-color: #60a5fa;
}

.search-submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 12px;
  background: #06b6d4;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-submit:hover {
  background: #0891b2;
}

/* ============================================================
   FILTER BAR — category pills, left-aligned in reference
   ============================================================ */
.blog-filter-bar {
  position: sticky;
  top: var(--header-height);
  z-index: 40;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e8edf5;
}

.blog-filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 64px;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: none;
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.blog-filter-chip:hover {
  background: #e2e8f0;
}

.blog-filter-chip.is-current {
  background: #06b6d4;
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(6, 182, 212, 0.4), 0 4px 6px -4px rgba(6, 182, 212, 0.4);
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-section--listing {
  padding: 40px 0 80px;
  background: #fff;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

/* ============================================================
   POST CARD — category chip overlaid on image (reference style)
   ============================================================ */
.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid #f1f5f9;
  background: #fff;
  transition: all 0.5s ease;
}

.post-card:hover {
  border-color: #bfdbfe;
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(191, 219, 254, 0.5);
}

/* Media wrapper — position relative so chip can overlay */
.post-card__media {
  position: relative;
  display: block;
  background: linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
  height: 256px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.post-card:hover .post-card__media img {
  transform: scale(1.1);
}

.post-card__chip {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  padding: 6px 16px;
  background: rgba(59, 130, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Chip colour variants */
.post-card__chip.theme-blue     { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.post-card__chip.theme-purple   { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.post-card__chip.theme-green    { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.post-card__chip.theme-orange   { background: linear-gradient(135deg, #f97316, #ef4444); }
.post-card__chip.theme-indigo   { background: linear-gradient(135deg, #6366f1, #a855f7); }
.post-card__chip.theme-rose     { background: linear-gradient(135deg, #f43f5e, #ec4899); }

/* Card body */
.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px;
}

.post-card__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
  transition: color 0.2s ease;
}

.post-card:hover .post-card__title a {
  color: #2563eb;
}

.post-card__title a {
  color: inherit;
}

.post-card__excerpt {
  margin: 0 0 24px;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.625;
  flex: 1;
}

/* Footer row */
.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #f8fafc;
}

.post-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-card__author-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #2563eb;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.post-card__author-meta p {
  margin: 0;
}

.post-card__author-name {
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
}

.post-card__author-readtime {
  color: #64748b;
  font-size: 0.75rem;
}

.post-card__readmore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  font-size: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__readmore {
  transform: translateX(4px);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 48px;
}

.pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination li {
  list-style: none;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #dde4ee;
  font-weight: 700;
  color: #334155;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  border-color: transparent;
  color: #fff;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.archive-empty {
  padding: 84px 24px;
  text-align: center;
}

.archive-empty__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #94a3b8;
  font-size: 1.8rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================================================
   SEARCH RESULTS META
   ============================================================ */
.blog-results-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--cyan-text-muted);
  font-size: 0.92rem;
}

.blog-results-meta a {
  color: var(--cyan-blue);
  font-weight: 700;
}

/* ============================================================
   FOOTER CTA SECTION — matches reference blue gradient panel
   ============================================================ */
.footer-cta {
  padding: 0;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 96px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(0, 188, 212, 0.28) 0%, transparent 50%),
    radial-gradient(circle at 85% 80%, rgba(109, 80, 238, 0.35) 0%, transparent 30%),
    linear-gradient(130deg, #3b6ef0 0%, #2a7fd4 30%, #1a9cc8 58%, #3a78d6 80%, #5a52dc 100%);
}

.cta-panel__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.cta-panel__title {
  margin: 0 auto 16px;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.cta-panel__text {
  margin: 0 auto 40px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-panel__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-panel__button {
  min-width: 180px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 0.97rem;
  font-weight: 700;
  box-shadow: none;
}

.cta-panel__button span {
  display: inline-block;
  margin-left: 8px;
}

.cta-panel__button--primary {
  background: #fff;
  color: #2563eb;
}

.cta-panel__button--primary:hover {
  background: #f0f7ff;
  color: #1d4ed8;
  transform: none;
  opacity: 1;
}

.cta-panel__button--secondary {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.cta-panel__button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: #fff;
  transform: none;
  opacity: 1;
}

.cta-panel .button {
  box-shadow: none;
}

/* ============================================================
   SITE FOOTER — dark, 5-column (brand+social, 4 link cols)
   ============================================================ */
.site-footer {
  padding: 64px 0 0;
  background: #0f172a;
  color: #94a3b8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  padding-bottom: 48px;
}

/* Brand column */
.site-footer__brand .site-brand {
  margin-bottom: 24px;
  gap: 8px;
}

.site-brand__mark--footer {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.site-brand__mark--footer::after {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.site-brand__name--footer {
  font-size: 1.5rem;
}

.site-brand__name--footer span:first-child {
  background: none;
  -webkit-text-fill-color: #06b6d4;
  color: #06b6d4;
}

.site-brand__name--footer span:last-child {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.site-footer__tagline {
  margin: 0 0 24px;
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Social icons */
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  transition: color 0.2s ease;
}

.site-footer__social a:hover {
  color: #06b6d4;
  background: transparent;
}

.site-footer__social svg {
  width: 20px;
  height: 20px;
}

/* Footer column headings */
.site-footer__title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Footer link lists */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-list a {
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: #cbd5e1;
}

/* Copyright bar */
.site-footer__copy {
  padding: 20px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: #475569;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   ARCHIVE / CATEGORY pages
   ============================================================ */
.blog-hero__title--archive {
  font-size: clamp(2rem, 4vw, 3rem);
}

.archive-section {
  padding: 40px 0 80px;
}

.archive-panel {
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 32px;
  background: #fff;
  box-shadow: var(--cyan-shadow);
}

.archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.archive-sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-panel {
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 22px;
  background: #fff;
  box-shadow: var(--cyan-shadow);
}

.sidebar-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-text);
}

.sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.sidebar-list a {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.sidebar-list a:hover {
  color: var(--cyan-primary-deep);
}

.section-header {
  margin-bottom: 24px;
}

.section-header__title {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.archive-header {
  margin-bottom: 24px;
}

.archive-header__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.archive-header__title-accent {
  background: linear-gradient(90deg, #0891b2, #06b6d4, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.archive-header__description {
  color: var(--cyan-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.categories-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}

.categories-strip a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--cyan-radius-pill);
  background: #f8fafc;
  border: 1.5px solid #dde4ee;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.categories-strip a:hover,
.categories-strip a.is-current {
  color: var(--cyan-primary-deep);
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.06);
}

.archive-empty__text {
  color: var(--cyan-text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.article-breadcrumb-band {
  padding: 12px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2eaf2;
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--cyan-text-muted);
  font-size: 0.88rem;
}

.article-breadcrumbs span:last-child {
  color: var(--cyan-text);
  font-weight: 600;
}

.article-breadcrumbs a:hover {
  color: var(--cyan-primary-deep);
}

.article-hero {
  padding: 48px 0 32px;
  background:
    radial-gradient(circle at top left, rgba(219, 234, 254, 0.6), transparent 38%),
    linear-gradient(135deg, #eef9ff 0%, #f0f4ff 55%, #f5f3ff 100%);
}

.article-hero__inner {
  max-width: 860px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--cyan-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.article-back-link:hover {
  color: var(--cyan-blue);
}

.article-hero__category {
  margin-bottom: 4px;
}

.article-meta__chip {
  display: inline-flex;
  align-items: center;
  border-radius: var(--cyan-radius-pill);
  padding: 5px 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-meta__chip.theme-blue     { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.article-meta__chip.theme-purple   { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.article-meta__chip.theme-green    { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.article-meta__chip.theme-orange   { background: linear-gradient(135deg, #f97316, #ef4444); }
.article-meta__chip.theme-indigo   { background: linear-gradient(135deg, #6366f1, #a855f7); }
.article-meta__chip.theme-rose     { background: linear-gradient(135deg, #f43f5e, #ec4899); }

.article-hero__title {
  margin: 16px 0 22px;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author__badge,
.author-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #60a5fa, #06b6d4);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.article-author__name {
  color: var(--cyan-text);
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0;
}

.article-author__role {
  color: var(--cyan-text-muted);
  font-size: 0.82rem;
  margin: 2px 0 0;
}

.article-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--cyan-radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #dde4ee;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
}

.article-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.article-share-row__label {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dde4ee;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 700;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.article-share a:hover {
  color: var(--cyan-primary-deep);
  border-color: rgba(6, 182, 212, 0.25);
}

.single-section {
  padding: 32px 0 80px;
}

.single-section--content {
  background: #fff;
}

.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.single-layout__main {
  min-width: 0;
}

.article-panel {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.article-content {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--cyan-shadow);
}

.article-content > *:first-child {
  margin-top: 0;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  margin: 2em 0 0.5em;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-content h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.article-content h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.article-content p,
.article-content li {
  color: #334155;
  font-size: 1rem;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  padding-left: 22px;
}

.article-content blockquote {
  margin: 24px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--cyan-primary);
  border-radius: 0 12px 12px 0;
  background: rgba(6, 182, 212, 0.05);
  color: #0f172a;
}

.article-content code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.08);
  color: #be185d;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

.article-content pre {
  overflow-x: auto;
  padding: 22px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
}

.article-content pre code {
  padding: 0;
  background: transparent;
  color: inherit;
}

.article-content a {
  color: var(--cyan-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-featured {
  overflow: hidden;
  border-radius: 16px;
  margin: 24px 0 30px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.8), rgba(207, 250, 254, 0.7));
}

.article-featured img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.article-tags-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #e8edf5;
}

.article-tags-label {
  margin-bottom: 12px;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--cyan-radius-pill);
  padding: 6px 14px;
  background: #f1f5f9;
  border: 1px solid #dde4ee;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 600;
}

.author-card {
  margin-top: 26px;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9ff, #f0f4ff);
  border: 1px solid rgba(6, 182, 212, 0.12);
}

.author-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.author-card__name {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 700;
}

.author-card__role {
  margin: 0;
  color: var(--cyan-text-muted);
  font-size: 0.86rem;
}

/* Sidebar */
.article-sidebar {
  min-width: 0;
}

.article-sidebar__sticky {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  display: grid;
  gap: 20px;
}

.article-sidebar__text {
  color: var(--cyan-text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 0 16px;
}

.sidebar-panel--soft {
  background: linear-gradient(135deg, #f8fafc, #eef9ff);
}

.sidebar-panel--cta {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  border-color: transparent;
}

.sidebar-panel--cta .sidebar-title,
.sidebar-panel--cta .article-sidebar__text {
  color: #fff;
}

.button--light {
  background: #fff;
  color: var(--cyan-blue);
  box-shadow: none;
}

/* Table of Contents */
.toc-list,
.sidebar-category-list,
.related-compact-list {
  display: grid;
  gap: 10px;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list__item--level-3 {
  padding-left: 14px;
}

.toc-list a,
.sidebar-category-list a {
  color: #475569;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.toc-list a:hover,
.sidebar-category-list a:hover {
  color: var(--cyan-blue);
}

/* Related compact cards */
.related-compact-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.related-compact-card__image {
  flex: 0 0 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 10px;
}

.related-compact-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-compact-card__body {
  min-width: 0;
}

.related-compact-card__body h3,
.related-compact-card__body p {
  margin: 0;
}

.related-compact-card__body h3 {
  color: var(--cyan-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.related-compact-card__body p {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 0.78rem;
}

/* Related section */
.related-section {
  padding: 72px 0;
  background: linear-gradient(135deg, #f8fafc, #eef9ff);
}

.related-section__title {
  margin-bottom: 32px;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ============================================================
   RESPONSIVE — ≤ 1080px
   ============================================================ */
@media (max-width: 1080px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .archive-grid,
  .single-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar__sticky {
    position: static;
  }
}

/* ============================================================
   RESPONSIVE — ≤ 760px
   ============================================================ */
@media (max-width: 760px) {
  :root {
    --header-height: 64px;
  }

  .cyancrm-shell {
    width: min(var(--cyan-container), calc(100% - 32px));
  }

  .site-header__inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .site-nav__link {
    font-size: 0.84rem;
    padding: 6px 10px;
    white-space: nowrap;
  }

  .site-nav__cta {
    display: none;
  }

  .blog-hero {
    padding: 56px 0 40px;
  }

  .blog-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .blog-filter-bar {
    top: 100px;
  }

  .blog-filter-bar__inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .blog-filter-chip {
    white-space: nowrap;
  }

  .posts-section--listing {
    padding: 28px 0 56px;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .search-field {
    padding: 0 120px 0 46px;
    min-height: 52px;
  }

  .search-submit {
    padding: 0 16px;
    min-height: 36px;
    font-size: 0.86rem;
  }

  .cta-panel {
    padding: 72px 24px;
  }

  .cta-panel__title {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }

  .cta-panel__button {
    min-width: 0;
    width: 100%;
    min-height: 48px;
    font-size: 0.95rem;
  }

  .cta-panel__actions {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer {
    padding-top: 42px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .article-content {
    padding: 22px;
  }
}
