/* © 2026 Caring Vision Therapy. All rights reserved. */
:root { --radius-xl: 40px; }

/* ── ARTICLE HERO ─────────────────────────────────────────────────── */
.post-hero {
  background: var(--ivory);
  padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 6vw, 60px);
}
.post-hero-content {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.post-hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}
.post-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cobalt);
  background: rgba(18, 68, 162, .08);
  border-radius: 9999px;
  padding: 8px 16px;
}
.post-eyebrow i { font-size: 12px; }
.post-category-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--cobalt);
  border-radius: 9999px;
  padding: 8px 16px;
}
.post-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 24px;
  line-height: 1.2;
}
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta-item i { font-size: 14px; color: var(--cobalt); }
.meta-separator { color: rgba(7, 17, 31, .2); }

/* ── COVER IMAGE ──────────────────────────────────────────────────── */
.post-image-section {
  background: var(--ivory);
  padding: 0 0 clamp(60px, 8vw, 80px);
}
.post-image-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-xl, 40px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.post-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ── TWO-COLUMN LAYOUT ────────────────────────────────────────────── */
.post-content-section {
  background: var(--white);
  padding: clamp(60px, 8vw, 100px) 0;
}
.post-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

/* ── ARTICLE CONTENT ──────────────────────────────────────────────── */
.post-content {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-dark);
  min-width: 0;
}
.post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  margin: 52px 0 24px;
  line-height: 1.3;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
}
.post-content h2:first-child { margin-top: 0; }
.post-content h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 18px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}
.post-content p { margin-bottom: 24px; }
.post-content ul,
.post-content ol { margin-bottom: 24px; padding-left: 28px; }
.post-content li { margin-bottom: 12px; line-height: 1.75; }
.post-content strong { font-weight: 600; color: var(--navy); }
.post-content a { color: var(--cobalt); text-decoration: underline; transition: color var(--trans); }
.post-content a:hover { color: var(--gold); }
.post-content blockquote {
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 36px 0;
  font-style: italic;
  color: var(--text-mid);
  background: var(--ivory);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── SIDEBAR ──────────────────────────────────────────────────────── */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 130px;
}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  background: var(--ivory);
  border-bottom: 1px solid var(--border-light);
}
.widget-header i {
  font-size: 14px;
  color: var(--cobalt);
}
.widget-header h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0;
}

/* ── TABLE OF CONTENTS ────────────────────────────────────────────── */
.toc-widget { }
.post-toc { padding: 16px 0; }
.post-toc ul { list-style: none; margin: 0; padding: 0; }
.toc-item { display: block; }
.toc-link {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 22px;
  transition: var(--trans);
  border-left: 2px solid transparent;
  line-height: 1.45;
}
.toc-link:hover {
  color: var(--cobalt);
  background: rgba(18, 68, 162, .04);
  border-left-color: var(--cobalt);
}
.toc-link.active {
  color: var(--cobalt);
  background: rgba(18, 68, 162, .06);
  border-left-color: var(--gold);
  font-weight: 600;
}
.toc-level-3 .toc-link {
  padding-left: 36px;
  font-size: 13px;
  color: var(--text-muted);
}
.toc-level-3 .toc-link:hover { color: var(--cobalt); }

/* ── RELATED IN SIDEBAR ───────────────────────────────────────────── */
.related-widget { }
.sidebar-related-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background var(--trans);
}
.sidebar-related-item:last-child { border-bottom: none; }
.sidebar-related-item:hover { background: var(--ivory); }
.sidebar-related-img {
  width: 76px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}
.sidebar-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sidebar-related-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.sidebar-related-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.sidebar-related-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-related-item:hover .sidebar-related-title { color: var(--cobalt); }
.sidebar-related-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sidebar-related-meta i { font-size: 10px; }

/* ── SIDEBAR CTA ──────────────────────────────────────────────────── */
.sidebar-cta-widget {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  border-color: transparent;
  text-align: center;
  padding: 32px 24px;
}
.sidebar-cta-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--sky);
  margin: 0 auto 18px;
}
.sidebar-cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.sidebar-cta-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, .65);
  margin-bottom: 20px;
}
.sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 9999px;
  padding: 13px 20px;
  text-decoration: none;
  transition: var(--trans);
  box-shadow: 0 6px 20px rgba(184, 137, 42, .35);
}
.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 137, 42, .45);
}

/* ── TAGS ─────────────────────────────────────────────────────────── */
.post-tags-section {
  background: var(--white);
  padding: 0 0 clamp(40px, 6vw, 60px);
  border-bottom: 1px solid var(--border-light);
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.tags-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}
.tags-label i { color: var(--cobalt); font-size: 13px; }
.post-tag {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--cobalt);
  background: rgba(18, 68, 162, .07);
  border: 1px solid rgba(18, 68, 162, .15);
  border-radius: 9999px;
  padding: 6px 14px;
  transition: var(--trans);
}
.post-tag:hover {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

/* ── AUTHOR BIO ───────────────────────────────────────────────────── */
.post-author-section {
  background: var(--ivory-2);
  padding: clamp(60px, 8vw, 80px) 0;
}
.author-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl, 40px);
  padding: clamp(40px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(180, 160, 100, .12);
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cobalt), var(--sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  flex-shrink: 0;
}
.author-info { flex: 1; }
.author-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.author-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 16px;
  letter-spacing: .04em;
}
.author-bio {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

/* ── PREV / NEXT NAVIGATION ───────────────────────────────────────── */
.post-nav-section {
  background: var(--ivory);
  padding: clamp(48px, 7vw, 72px) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.post-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  text-decoration: none;
  transition: var(--trans);
  box-shadow: var(--shadow-xs);
}
.post-nav-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.post-nav-prev { text-align: left; }
.post-nav-next { text-align: right; }
.post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.post-nav-label i { font-size: 11px; color: var(--cobalt); }
.post-nav-next .post-nav-label { flex-direction: row-reverse; }
.post-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-nav-item:hover .post-nav-title { color: var(--cobalt); }
.post-nav-cat {
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .07em;
}
.post-nav-all {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--cobalt);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-decoration: none;
  transition: var(--trans);
  color: var(--cobalt);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  min-width: 100px;
  box-shadow: var(--shadow-xs);
}
.post-nav-all i { font-size: 20px; color: var(--cobalt); }
.post-nav-all:hover {
  background: var(--cobalt);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.post-nav-all:hover i { color: var(--white); }
.post-nav-placeholder { /* empty placeholder for layout */ }

/* ── RELATED POSTS ────────────────────────────────────────────────── */
.related-posts-section {
  background: var(--ivory);
  padding: clamp(72px, 9vw, 110px) 0;
}
.related-header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.related-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  color: var(--navy);
  margin: 12px 0 14px;
  line-height: 1.2;
}
.related-subheading {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
}
.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 28px;
}
.related-post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(180, 160, 100, .1);
  transition: var(--trans);
}
.related-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}
.related-card-image {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.related-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.related-post-card:hover .related-card-image img { transform: scale(1.08); }
.related-card-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(18, 68, 162, .85);
  border-radius: 9999px;
  padding: 5px 12px;
  backdrop-filter: blur(6px);
}
.related-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 31, .65) 0%, transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.related-post-card:hover .related-card-overlay { opacity: 1; }
.related-card-overlay i { font-size: 26px; color: var(--white); }
.related-card-body { padding: 24px 22px; }
.related-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.related-card-title a {
  color: var(--navy);
  text-decoration: none;
  transition: color var(--trans);
}
.related-card-title a:hover { color: var(--cobalt); }
.related-card-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid rgba(180, 160, 100, .12);
}
.related-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}
.related-card-meta i { font-size: 11px; color: var(--cobalt); }
.related-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  transition: var(--trans);
}
.related-read-more:hover { color: var(--gold); transform: translateX(4px); }
.related-read-more i { font-size: 10px; }

/* ── APPOINTMENT CTA ──────────────────────────────────────────────── */
.post-cta-section {
  background: var(--ivory-2);
  padding: 0 0 clamp(60px, 8vw, 100px);
}
.post-cta-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl, 40px);
  padding: clamp(56px, 7vw, 80px);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(180, 160, 100, .12);
  text-align: center;
}
.cta-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--white);
  margin: 0 auto 28px;
  box-shadow: 0 12px 32px rgba(184, 137, 42, .3);
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.2;
}
.cta-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ── BACK LINK ────────────────────────────────────────────────────── */
.post-back-section {
  background: var(--ivory-2);
  padding: 0 0 clamp(60px, 8vw, 100px);
}
.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cobalt);
  text-decoration: none;
  background: var(--white);
  border: 1px solid rgba(180, 160, 100, .15);
  border-radius: var(--radius-md);
  padding: 14px 28px;
  transition: var(--trans);
}
.back-to-blog:hover {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
  transform: translateX(-4px);
}
.back-to-blog i { font-size: 14px; }

/* ── BTN FALLBACK (if global not defined) ─────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  text-decoration: none;
  border-radius: 9999px;
  transition: var(--trans);
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cobalt), var(--cobalt-light));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(18, 68, 162, .28);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--cobalt-light), var(--sky));
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(18, 68, 162, .4);
}
.btn-lg { font-size: 16px; padding: 16px 36px; }

/* ── RESPONSIVE ───────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr 300px;
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }
  .toc-widget { order: -1; }
  .post-nav {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .post-nav-all { display: none; }
  .post-nav-placeholder { display: none; }
  .related-posts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .author-card { flex-direction: column; text-align: center; align-items: center; }
  .post-cta-card { padding: 40px 24px; }
  .post-tags { flex-wrap: wrap; }
  .post-sidebar { grid-template-columns: 1fr; }
}
