/* ============================================================
   Blog Post Page Styles — %%CLINIC_NAME%%
   ============================================================ */

/* Post hero banner */
.post-page-hero {
  background: linear-gradient(135deg, #7a4fa3 0%, #9e6dc5 100%);
  padding: 50px 20px 40px;
  color: #fff;
  text-align: center;
}
.post-hero-inner { max-width: 860px; margin: 0 auto; }
.post-tag {
  display: inline-block;
  background: rgba(255,255,255,.2);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-page-hero h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

/* Main layout: article + sidebar */
.post-main { background: #f8f4fd; padding: 50px 0; }
.post-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 36px;
  align-items: start;
}

/* Article */
.post-article {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(158,109,197,.1);
}

/* Hero image inside article */
.post-hero-img { width: 100%; }
.post-hero-img img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Article body */
.post-body {
  padding: 36px 40px;
}
.post-body h2 {
  font-size: 24px;
  color: #7a4fa3;
  font-weight: 700;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0e6ff;
}
.post-body h2:first-child { margin-top: 0; }
.post-body h3 {
  font-size: 19px;
  color: #9e6dc5;
  font-weight: 700;
  margin: 24px 0 10px;
}
.post-body h4 {
  font-size: 16px;
  color: #555;
  font-weight: 700;
  margin: 18px 0 8px;
}
.post-body p {
  color: #444;
  line-height: 1.85;
  margin-bottom: 16px;
  font-size: 15.5px;
}
.post-body ul, .post-body ol {
  padding-left: 0;
  margin: 0 0 20px 0;
  list-style: none;
  counter-reset: ol-counter;
}
.post-body ul li {
  padding: 6px 0 6px 28px;
  position: relative;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}
.post-body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #9e6dc5;
  font-weight: 700;
  font-size: 15px;
}
.post-body ol li {
  padding: 6px 0 6px 32px;
  position: relative;
  color: #444;
  font-size: 15px;
  line-height: 1.7;
  counter-increment: ol-counter;
}
.post-body ol li::before {
  content: counter(ol-counter) ".";
  position: absolute;
  left: 0;
  color: #9e6dc5;
  font-weight: 700;
  font-size: 15px;
  width: 24px;
}
.post-body a { color: #9e6dc5; font-weight: 600; }
.post-body a:hover { color: #7a4fa3; }
.post-body strong { color: #333; }

/* CTA Box */
.post-cta-box {
  margin: 0 40px 36px;
  background: linear-gradient(135deg, #f8f3fd, #ede4f8);
  border-left: 4px solid #9e6dc5;
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
}
.post-cta-box h3 { font-size: 22px; color: #7a4fa3; margin-bottom: 10px; }
.post-cta-box p  { color: #666; margin-bottom: 18px; font-size: 15px; }

/* Post navigation */
.post-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  border-top: 1px solid #f0e6ff;
  gap: 16px;
  flex-wrap: wrap;
}
.post-nav-link {
  color: #9e6dc5;
  font-size: 13.5px;
  font-weight: 600;
  transition: color .2s;
  max-width: 48%;
}
.post-nav-link:hover { color: #7a4fa3; }
.post-nav-link.next { margin-left: auto; text-align: right; }

/* ── Sidebar ── */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }

.sidebar-widget {
  background: #fff;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 3px 16px rgba(158,109,197,.1);
}
.sidebar-widget h4 {
  font-size: 16px;
  font-weight: 700;
  color: #7a4fa3;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f0e6ff;
}
.sidebar-contact p {
  font-size: 13.5px;
  color: #555;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.sidebar-contact i { color: #9e6dc5; margin-top: 3px; flex-shrink: 0; }
.sidebar-contact a { color: #555; }
.sidebar-contact a:hover { color: #9e6dc5; }

.sidebar-btn {
  display: block;
  text-align: center;
  margin-top: 14px;
  padding: 11px 20px;
  font-size: 14px;
}

.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { border-bottom: 1px solid #f5effe; }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links li a {
  display: block;
  padding: 9px 0 9px 18px;
  color: #555;
  font-size: 13.5px;
  position: relative;
  transition: color .15s, padding-left .15s;
}
.sidebar-links li a::before {
  content: "›";
  position: absolute;
  left: 4px;
  color: #9e6dc5;
  font-size: 16px;
  font-weight: 700;
}
.sidebar-links li a:hover { color: #9e6dc5; padding-left: 22px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .post-container { grid-template-columns: 1fr; }
  .post-page-hero h1 { font-size: 26px; }
  .post-body { padding: 24px 20px; }
  .post-cta-box { margin: 0 20px 28px; }
  .post-navigation { padding: 20px; }
  .post-nav-link { max-width: 100%; }
}
