/* ══════════════════════════════════════════════════════════════
   BLOG-SINGLE.CSS
   ══════════════════════════════════════════════════════════════ */

/* POST HERO */
.post-hero {
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  min-height: 380px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.post-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 60%,
    transparent 100%
  );
}
.post-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
  width: 100%;
}
.post-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 10px;
}
.post-hero h1 {
  color: #fff;
  font-size: clamp(24px, 4vw, 42px);
  max-width: 780px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.post-author {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pa-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e67817;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.pa-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}
.pa-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
}
.post-meta-divider {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.25);
}
.post-meta-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* READING PROGRESS */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: #e67817;
  z-index: 1000;
  transition: width 0.1s;
  width: 0;
}

/* MAIN LAYOUT */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding: 52px 0 72px;
  align-items: start;
}

/* ARTICLE CONTENT */
.post-content {
  font-size: 16px;
  line-height: 1.85;
  color: #3d3d2a;
}
.post-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 14px;
  padding-top: 8px;
  color: #1a1a1a;
}
.post-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 30px 0 12px;
  color: #1a1a1a;
}
.post-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 10px;
  color: #1a1a1a;
}
.post-content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.85;
  color: #3d3d2a;
}
.post-content p:last-child {
  margin-bottom: 0;
}
.post-content em {
  color: #2d6a4f;
  font-style: italic;
}
.post-content strong {
  color: #1a1a1a;
  font-weight: 600;
}
.post-content p a,
.post-content li a {
  color: #2d6a4f;
  text-decoration: underline;
  text-decoration-color: #b7e4c7;
  text-underline-offset: 3px;
}
.post-content p a:hover,
.post-content li a:hover {
  color: #e67817;
}
.post-content blockquote {
  background: #f0faf3;
  border-left: 4px solid #2d6a4f;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-family: "Playfair Display", serif;
  font-size: 18px;
  color: #1a3d2b;
  line-height: 1.65;
  font-style: italic;
}
.post-content blockquote cite {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #9b9b9b;
  font-style: normal;
  margin-top: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.post-content ul,
.post-content ol {
  padding-left: 0;
  margin: 16px 0 20px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content ul li,
.post-content ol li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: #3d3d2a;
  line-height: 1.65;
}
.post-content ul li::before {
  content: "✓";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: #f0faf3;
  border: 1.5px solid #52b788;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #2d6a4f;
  line-height: 18px;
  text-align: center;
}
.post-content ol {
  counter-reset: ol-counter;
}
.post-content ol li {
  counter-increment: ol-counter;
}
.post-content ol li::before {
  content: counter(ol-counter);
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: #e67817;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 22px;
  text-align: center;
}
.info-box {
  background: #f0faf3;
  border: 1px solid #b7e4c7;
  border-left: 4px solid #2d6a4f;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.info-box-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #2d6a4f;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.info-box-title::before {
  content: "ℹ";
  font-style: normal;
}
.info-box p {
  font-size: 14px;
  color: #1a3d2b;
  margin: 0;
  line-height: 1.7;
}
.warning-box {
  background: #fff5f5;
  border: 1px solid #fed7d7;
  border-left: 4px solid #c53030;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.warning-box .info-box-title {
  color: #c53030;
}
.warning-box .info-box-title::before {
  content: "⚠";
}
.warning-box p {
  color: #744210;
}
.post-image {
  border-radius: 14px;
  overflow: hidden;
  margin: 28px 0;
}
.post-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.post-image figcaption {
  font-size: 12px;
  color: #9b9b9b;
  text-align: center;
  padding: 8px 0 0;
  font-style: italic;
}
.pull-quote {
  background: #1a3d2b;
  border-radius: 14px;
  padding: 28px 32px;
  margin: 32px 0;
  position: relative;
  overflow: hidden;
}
.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: "Playfair Display", serif;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  pointer-events: none;
}
.pull-quote p {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  color: #fff;
  line-height: 1.65;
  font-style: italic;
  position: relative;
  z-index: 1;
  margin: 0;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e4e0d8;
}
.post-tag {
  background: #f9f5f0;
  border: 1px solid #e4e0d8;
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12px;
  color: #6b6b6b;
  text-decoration: none !important;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
}
.post-tag:hover {
  background: #e67817;
  border-color: #e67817;
  color: #fff !important;
}
.post-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e4e0d8;
  flex-wrap: wrap;
}
.share-label {
  font-size: 13px;
  font-weight: 600;
  color: #6b6b6b;
  flex-shrink: 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.15s;
}
.share-wa {
  background: #25d366;
  color: #fff !important;
}
.share-wa:hover {
  background: #128c7e;
  color: #fff !important;
}
.share-fb {
  background: #1877f2;
  color: #fff !important;
}
.share-fb:hover {
  background: #0d63d9;
  color: #fff !important;
}
.share-tw {
  background: #1da1f2;
  color: #fff !important;
}
.share-tw:hover {
  background: #0c85d0;
  color: #fff !important;
}
.share-copy {
  background: #f9f5f0;
  border: 1px solid #e4e0d8;
  color: #6b6b6b !important;
}
.share-copy:hover {
  background: #e67817;
  border-color: #e67817;
  color: #fff !important;
}
.author-box {
  background: #f9f5f0;
  border: 1px solid #e4e0d8;
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e67817;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-name {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.author-role {
  font-size: 12px;
  color: #e67817;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 8px;
}
.author-bio {
  font-size: 13px;
  color: #6b6b6b;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* SIDEBAR */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.widget {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  padding: 20px;
}
.wt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2d6a4f;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e4e0d8;
}
.toc-link {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #f5f3ef;
  font-size: 13px;
  color: #3d3d2a;
  text-decoration: none;
  transition: all 0.15s;
  line-height: 1.4;
}
.toc-link:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.toc-link:hover {
  color: #e67817;
  padding-left: 4px;
}
.toc-link::before {
  content: "#";
  font-size: 10px;
  color: #9b9b9b;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.rp-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f5f3ef;
  text-decoration: none;
  transition: all 0.15s;
}
.rp-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.rp-item:hover .rp-title {
  color: #e67817;
}
.rp-thumb {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 8px;
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  overflow: hidden;
  flex-shrink: 0;
}
.rp-cat {
  font-size: 9px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 3px;
}
.rp-title {
  font-size: 12px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  transition: color 0.15s;
}
.rp-date {
  font-size: 10px;
  color: #9b9b9b;
  margin-top: 3px;
}
.disease-link-widget a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #f5f3ef;
  font-size: 13px;
  color: #3d3d2a;
  text-decoration: none;
  transition: all 0.15s;
}
.disease-link-widget a:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.disease-link-widget a:hover {
  color: #e67817;
  padding-left: 4px;
}
.disease-link-widget a::after {
  content: "→";
  color: #e67817;
  font-size: 12px;
  font-weight: 700;
}
.cta-sb {
  background: linear-gradient(135deg, #e67817, #c45f0a);
  border-color: transparent;
}
.cta-sb .wt {
  color: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}
.cta-sb h4 {
  font-family: "Playfair Display", serif;
  font-size: 17px;
  color: #fff;
  margin-bottom: 6px;
}
.cta-sb p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
  line-height: 1.6;
}
.cta-sb-btn {
  display: block;
  background: #fff;
  color: #e67817;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.cta-sb-wa {
  display: block;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* RELATED POSTS SECTION */
.related-posts {
  background: #f9f5f0;
  padding: 56px 0;
}
.rp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.rp-card {
  background: #fff;
  border: 1px solid #e4e0d8;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.2s,
    transform 0.15s;
}
.rp-card:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.09);
  transform: translateY(-2px);
}
.rp-card-img {
  height: 160px;
  background: linear-gradient(160deg, #1a3d2b, #2d6a4f);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  position: relative;
  overflow: hidden;
}
.rp-card-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rp-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rp-card-cat {
  font-size: 10px;
  font-weight: 700;
  color: #e67817;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 5px;
}
.rp-card-title {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}
.rp-card-excerpt {
  font-size: 12px;
  color: #6b6b6b;
  line-height: 1.6;
  flex: 1;
}
.rp-card-read {
  font-size: 11px;
  font-weight: 600;
  color: #e67817;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.rp-card-read::after {
  content: "→";
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .post-layout {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .post-sidebar .cta-sb {
    grid-column: 1/-1;
  }
  .rp-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .rp-grid {
    grid-template-columns: 1fr;
  }
  .post-sidebar {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
  }
}

/* TOC sub-items (h3) */
.toc-sub {
  padding-left: 16px;
  font-size: 12px;
  color: #6b6b6b;
}
.toc-sub:hover {
  color: #e67817;
  padding-left: 20px;
}

.post-feat-img {
  margin: 0 0 32px;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
}
.post-feat-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
}
