/*
 * Blog Article Styles — Fruit3 Child Theme
 * Prefix: bl- (ป้องกัน conflict กับ Plant3 และ .ip- classes)
 *
 * ใช้ CSS variables จาก single-insurance_product.php:
 *   --ip-pink, --ip-navy, --ip-gold, --ip-gray, --ip-shadow, --ip-radius
 *   --ip-text, --ip-text-light
 *
 * โหลดเฉพาะ: is_single() ผ่าน functions.php
 *
 * @package Fruit3
 * @version 1.0
 */

/* ═══════════════════════════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════════════════════════ */
.bl-page {
  font-family: 'Sarabun', sans-serif;
  color: var(--ip-text, #4a4a4a);
  font-size: 17px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   HERO BANNER
═══════════════════════════════════════════════════════════════ */
.bl-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ip-navy, #2B3B8B) 0%, #1a2660 100%);
}

/* Featured Image background — set via --bl-hero-img CSS variable in PHP */
.bl-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--bl-hero-img, none);
  background-size: cover;
  background-position: center;
  opacity: 0.22;
}

.bl-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 59, 139, 0.96) 0%,
    rgba(43, 59, 139, 0.55) 55%,
    transparent 100%
  );
}

.bl-hero-content {
  position: relative;
  z-index: 1;
  padding: 36px 20px 48px;
  width: 100%;
}

/* Breadcrumb */
.bl-breadcrumb {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.bl-breadcrumb a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.bl-breadcrumb a:hover { color: var(--ip-gold, #FFA802); }
.bl-breadcrumb span   { color: rgba(255, 255, 255, 0.3); }

/* Rank Math breadcrumb override */
.bl-breadcrumb .rank-math-breadcrumb { color: rgba(255,255,255,.55); font-size: 12px; }
.bl-breadcrumb .rank-math-breadcrumb a { color: rgba(255,255,255,.55); }

/* Category Badge */
.bl-cat-badge {
  display: inline-block;
  background: var(--ip-gold, #FFA802);
  color: var(--ip-navy, #2B3B8B);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 4px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bl-cat-badge:hover { opacity: 0.85; }

/* H1 */
.bl-hero-title {
  font-size: clamp(22px, 4vw, 42px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  max-width: 820px;
}

/* Meta row */
.bl-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}
.bl-meta strong { color: rgba(255, 255, 255, 0.92); font-weight: 700; }
.bl-meta-dot   { opacity: 0.4; }


/* ═══════════════════════════════════════════════════════════════
   MAIN WRAPPER — 70/30 GRID
═══════════════════════════════════════════════════════════════ */
.bl-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 80px;
}


/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
═══════════════════════════════════════════════════════════════ */
.bl-toc {
  background: var(--ip-navy-light, #e8eef7);
  border-left: 4px solid var(--ip-navy, #2B3B8B);
  border-radius: var(--ip-radius, 16px);
  padding: 18px 22px;
  margin-bottom: 36px;
}
.bl-toc-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ip-navy, #2B3B8B);
  margin-bottom: 12px;
}
.bl-toc-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  counter-reset: none;
}
.bl-toc-list a {
  text-decoration: none;
  color: var(--ip-text, #4a4a4a);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: color 0.2s;
  line-height: 1.5;
}
.bl-toc-list a:hover { color: var(--ip-navy, #2B3B8B); }
.bl-toc-num {
  color: var(--ip-navy, #2B3B8B);
  font-weight: 800;
  min-width: 18px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════════════════
   ARTICLE BODY — TYPOGRAPHY
   (Kadence Blocks output ผ่าน the_content())
═══════════════════════════════════════════════════════════════ */
.bl-body h2 {
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 800;
  color: var(--ip-navy, #2B3B8B);
  margin: 44px 0 14px;
  padding-top: 18px;
  border-top: 3px solid var(--ip-pink-light, #fce4f3);
  line-height: 1.3;
}
.bl-body h2:first-child { margin-top: 0; }

.bl-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ip-text, #4a4a4a);
  margin: 26px 0 10px;
  line-height: 1.4;
}

.bl-body p {
  color: var(--ip-text, #4a4a4a);
  margin-bottom: 16px;
  font-size: 16.5px;
  line-height: 1.85;
}
.bl-body strong { color: #1a1a2e; }
.bl-body a {
  color: var(--ip-pink, #EC008C);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.bl-body a:hover { opacity: 0.8; }

.bl-body ul,
.bl-body ol {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--ip-text, #4a4a4a);
}
.bl-body li { margin-bottom: 6px; line-height: 1.75; font-size: 16px; }

/* Images in content */
.bl-body img {
  max-width: 100%;
  border-radius: 12px;
  height: auto;
  display: block;
  margin: 20px 0;
}
.bl-body figure { margin: 24px 0; }
.bl-body figcaption {
  font-size: 13px;
  color: var(--ip-text-light, #999);
  text-align: center;
  margin-top: 8px;
}

/* Blockquote */
.bl-body blockquote {
  border-left: 4px solid var(--ip-pink, #EC008C);
  background: var(--ip-pink-light, #fce4f3);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 16px;
  color: var(--ip-text, #4a4a4a);
  font-style: normal;
}


/* ═══════════════════════════════════════════════════════════════
   KADENCE BLOCK OVERRIDES
   — ทำให้ Kadence blocks แสดงสีตาม MTL palette
═══════════════════════════════════════════════════════════════ */

/* Kadence Advanced Text — Highlight Box (ใช้ bg: #fce4f3, border-left: --ip-pink) */
.bl-body .kb-adv-text-block {
  border-radius: var(--ip-radius, 16px) !important;
}

/* Kadence Row Block — Stats strip */
.bl-body .kb-row-layout-wrap { margin: 24px 0; }

/* Kadence Table */
.bl-body .kb-table-container { margin: 20px 0; }
.bl-body .kb-table-container table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bl-body .kb-table-container th {
  background: var(--ip-navy, #2B3B8B);
  color: #fff;
  padding: 11px 14px;
  font-weight: 700;
  text-align: left;
}
.bl-body .kb-table-container td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  color: var(--ip-text, #4a4a4a);
}
.bl-body .kb-table-container tr:nth-child(even) td { background: var(--ip-gray, #f4f6f8); }

/* Kadence Accordion (FAQ) — reuse .ip-faq-* styles */
.bl-body .kt-accordion-inner-section { border-radius: 12px; }


/* ═══════════════════════════════════════════════════════════════
   AUTHOR BOX
═══════════════════════════════════════════════════════════════ */
.bl-author-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--ip-gray, #f4f6f8);
  border-radius: 16px;
  padding: 22px;
  margin: 44px 0 32px;
}
.bl-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--ip-pink-light, #fce4f3);
}
.bl-author-avatar--placeholder {
  background: var(--ip-pink-light, #fce4f3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.bl-author-name  { font-size: 16px; font-weight: 800; color: var(--ip-navy, #2B3B8B); }
.bl-author-role  { font-size: 12px; color: var(--ip-text-light, #999); margin-bottom: 8px; }
.bl-author-bio   { font-size: 14px; color: var(--ip-text, #4a4a4a); line-height: 1.6; }


/* ═══════════════════════════════════════════════════════════════
   SHARE BAR
═══════════════════════════════════════════════════════════════ */
.bl-share-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin: 28px 0 40px;
}
.bl-share-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ip-text, #4a4a4a);
}
.bl-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Sarabun', sans-serif;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.bl-share-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.bl-share-fb   { background: #1877f2; color: #fff; }
.bl-share-line { background: #06C755; color: #fff; }
.bl-share-copy { background: var(--ip-gray, #f4f6f8); color: var(--ip-navy, #2B3B8B); border: 1px solid #ddd; }


/* ═══════════════════════════════════════════════════════════════
   RELATED POSTS (ท้ายบทความ)
═══════════════════════════════════════════════════════════════ */
.bl-related-posts { margin: 48px 0 0; }
.bl-related-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ip-navy, #2B3B8B);
  margin-bottom: 20px;
  border-top: 3px solid var(--ip-pink-light, #fce4f3);
  padding-top: 20px;
}
.bl-related-title span { color: var(--ip-pink, #EC008C); }
.bl-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bl-related-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ip-shadow, 0 4px 24px rgba(0,0,0,.08));
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--ip-pink, #EC008C);
}
.bl-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  text-decoration: none;
  color: inherit;
}
.bl-related-thumb { height: 120px; overflow: hidden; }
.bl-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-related-body   { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bl-related-cat    { font-size: 10px; font-weight: 800; color: var(--ip-pink, #EC008C); text-transform: uppercase; letter-spacing: .5px; }
.bl-related-body h3 { font-size: 14px; font-weight: 700; color: var(--ip-navy, #2B3B8B); line-height: 1.4; margin: 0; flex: 1; }
.bl-related-date   { font-size: 11px; color: var(--ip-text-light, #999); margin-top: auto; }


/* ═══════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════ */
.bl-sidebar-sticky {
  position: sticky;
  top: 88px; /* ชดเชย sticky navbar */
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* CTA Card */
.bl-cta-card {
  background: linear-gradient(135deg, var(--ip-pink, #EC008C) 0%, #a80069 100%);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.bl-cta-card__icon { font-size: 36px; margin-bottom: 10px; }
.bl-cta-card h3    { font-size: 16px; font-weight: 800; margin-bottom: 7px; }
.bl-cta-card p     { font-size: 13px; opacity: 0.85; line-height: 1.55; margin-bottom: 16px; }
.bl-cta-card__tel {
  display: block;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  border-radius: 50px;
  padding: 9px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 10px;
  transition: background 0.2s;
}
.bl-cta-card__tel:hover  { background: rgba(255,255,255,.25); color: #fff; }
.bl-cta-card__line {
  display: block;
  background: #06C755;
  border-radius: 50px;
  padding: 9px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.bl-cta-card__line:hover { opacity: 0.9; color: #fff; }

/* Generic Sidebar Card */
.bl-sidebar-card {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(43,59,139,.06);
}
.bl-sidebar-card__head {
  background: var(--ip-navy, #2B3B8B);
  color: #fff;
  padding: 11px 16px;
  font-weight: 800;
  font-size: 13px;
}
.bl-sidebar-card__body { padding: 14px 16px; }

/* Product mini card */
.bl-product-mini {
  background: var(--ip-navy-light, #e8eef7);
  border-radius: 10px;
  padding: 11px 12px;
  margin-bottom: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  color: inherit;
}
.bl-product-mini:last-child { margin-bottom: 0; }
.bl-product-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(43,59,139,.1);
  text-decoration: none;
  color: inherit;
}
.bl-product-mini__icon {
  width: 40px; height: 40px;
  background: var(--ip-pink-light, #fce4f3);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.bl-product-mini__name  { font-size: 13px; font-weight: 700; color: var(--ip-navy, #2B3B8B); }
.bl-product-mini__price { font-size: 11px; color: var(--ip-pink, #EC008C); font-weight: 600; }

/* Recent article item */
.bl-recent-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f5;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}
.bl-recent-item:last-child { border-bottom: none; }
.bl-recent-item:hover { opacity: 0.75; text-decoration: none; color: inherit; }
.bl-recent-thumb {
  width: 68px; height: 58px;
  border-radius: 8px;
  overflow: hidden; flex-shrink: 0;
  background: var(--ip-gray, #f4f6f8);
}
.bl-recent-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bl-recent-title { font-size: 13px; font-weight: 700; color: var(--ip-navy, #2B3B8B); line-height: 1.4; }
.bl-recent-date  { font-size: 11px; color: var(--ip-text-light, #999); margin-top: 5px; }

/* Bottom CTA override */
.bl-cta-bottom { overflow: hidden; }


/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .bl-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bl-sidebar-sticky { position: static; }
  .bl-related-grid   { grid-template-columns: 1fr 1fr; }
}

/* Mobile */
@media (max-width: 768px) {
  .bl-hero         { min-height: 280px; }
  .bl-hero-title   { font-size: 22px; }
  .bl-wrapper      { padding-top: 28px; padding-bottom: 48px; }
  .bl-toc          { padding: 14px 16px; }
  .bl-related-grid { grid-template-columns: 1fr; }
  .bl-author-box   { flex-direction: column; gap: 12px; }
  .bl-share-bar    { gap: 8px; }
}

/* Print */
@media print {
  .bl-sidebar, .bl-share-bar, .bl-cta-bottom, .bl-hero-overlay { display: none; }
  .bl-wrapper { grid-template-columns: 1fr; }
  .bl-hero    { min-height: auto; padding: 20px 0; }
}

/* Focus visible */
.bl-page :focus-visible {
  outline: 3px solid var(--ip-pink, #EC008C);
  outline-offset: 3px;
  border-radius: 4px;
}


/* ═══════════════════════════════════════════════════════════════
   EDITORIAL LAYOUT (ed- prefix) — single.php v2.0 · ก.ค. 2569
   append เท่านั้น — ห้ามแก้ .bl- ด้านบน (backup layout เดิม)
   mobile-first: 1 คอลัมน์ → ≥1024px TOC rail + เนื้อหา 720px
═══════════════════════════════════════════════════════════════ */
.ed-page {
  --ed-pink: #EC008C; --ed-pink-light: #fce4f3; --ed-pink-dark: #c4007a;
  --ed-navy: #2B3B8B; --ed-navy-light: #eef1fb; --ed-gold: #FFA802;
  --ed-text: #3d3d3d; --ed-text-light: #999; --ed-gray: #F4F6F8;
  --ed-border: #E0E0E0; --ed-radius: 16px; --ed-shadow: 0 4px 24px rgba(0,0,0,.08);
  font-family: 'Prompt', 'Sarabun', sans-serif;
  font-size: 16.5px; line-height: 1.6; color: var(--ed-text);
  background: #fff; padding-bottom: 76px;
}
@media (min-width: 768px) { .ed-page { padding-bottom: 0; } }
.ed-page img { max-width: 100%; height: auto; }
.ed-page :focus-visible { outline: 3px solid var(--ed-pink); outline-offset: 3px; border-radius: 4px; }

/* ── Reading progress ── */
.ed-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0;
  background: #EC008C; z-index: 99999; }

/* ── HERO ── */
.ed-hero { max-width: 1080px; margin: 0 auto; padding: 28px 20px 8px;
  display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
@media (min-width: 768px) { .ed-hero { grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 56px 24px 24px; } }
.ed-breadcrumb { font-size: 13px; color: var(--ed-text-light); margin-bottom: 14px; }
.ed-breadcrumb a { color: var(--ed-text-light); text-decoration: none; }
.ed-breadcrumb a:hover { color: var(--ed-pink); }
.ed-cat-badge { display: inline-block; background: var(--ed-pink-light); color: var(--ed-pink-dark);
  font-size: 13px; font-weight: 700; padding: 6px 16px; border-radius: 20px;
  margin-bottom: 14px; text-decoration: none; }
.ed-title { font-size: clamp(27px, 5.5vw, 42px); font-weight: 800; line-height: 1.3;
  color: var(--ed-navy); margin: 0 0 14px; letter-spacing: -.3px; }
.ed-lead { font-size: clamp(16px, 2.5vw, 18px); color: #666; line-height: 1.7; margin-bottom: 18px; }
.ed-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13.5px; color: var(--ed-text-light); }
.ed-meta b { color: var(--ed-navy); }
.ed-hero-img { border-radius: 24px; overflow: hidden; box-shadow: var(--ed-shadow); aspect-ratio: 4 / 3; }
.ed-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Layout ── */
.ed-layout { max-width: 1080px; margin: 0 auto; padding: 24px 20px 40px; }
@media (min-width: 1024px) {
  .ed-layout { display: grid; grid-template-columns: 220px minmax(0, 720px);
    gap: 56px; justify-content: center; padding: 40px 24px 64px; }
}
.ed-content { max-width: 720px; margin: 0 auto; min-width: 0; }

/* ── TOC rail (desktop) ── */
.ed-toc-rail { display: none; }
@media (min-width: 1024px) {
  .ed-toc-rail { display: block; }
  .ed-toc-rail-in { position: sticky; top: 96px; }
  .ed-toc-head { font-size: 13px; font-weight: 700; color: var(--ed-text-light);
    letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }
  .ed-toc-rail a { display: block; padding: 8px 0 8px 14px; font-size: 14px;
    color: var(--ed-text-light); text-decoration: none; border-left: 2px solid var(--ed-border);
    line-height: 1.5; transition: all .2s; }
  .ed-toc-rail a:hover { color: var(--ed-pink); }
  .ed-toc-rail a.active { color: var(--ed-pink); border-left-color: var(--ed-pink); font-weight: 600; }
}

/* ── TOC มือถือ ── */
.ed-toc-m { background: var(--ed-navy-light); border: 1px solid #dfe4f5;
  border-radius: var(--ed-radius); margin-bottom: 24px; overflow: hidden; }
@media (min-width: 1024px) { .ed-toc-m { display: none; } }
.ed-toc-m summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; padding: 14px 18px; font-weight: 700; color: var(--ed-navy); min-height: 48px; }
.ed-toc-m summary::-webkit-details-marker { display: none; }
.ed-toc-m summary::after { content: "▾"; transition: transform .3s; color: var(--ed-pink); }
.ed-toc-m[open] summary::after { transform: rotate(180deg); }
.ed-toc-m ol { padding: 0 18px 14px; list-style: none; counter-reset: edtoc; margin: 0; }
.ed-toc-m li { counter-increment: edtoc; }
.ed-toc-m a { display: flex; gap: 10px; align-items: center; padding: 9px 4px;
  color: var(--ed-navy); text-decoration: none; font-size: 15px;
  border-bottom: 1px dashed #dfe4f5; min-height: 44px; }
.ed-toc-m li:last-child a { border-bottom: none; }
.ed-toc-m a::before { content: counter(edtoc); flex: none; width: 22px; height: 22px;
  border-radius: 50%; background: var(--ed-pink); color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; }

/* ── Article ── */
.ed-article h2 { font-size: clamp(21px, 4.5vw, 29px); font-weight: 800; color: var(--ed-navy);
  margin: 40px 0 14px; line-height: 1.4; scroll-margin-top: 90px; }
.ed-article h2::before { content: ""; display: block; width: 44px; height: 4px;
  background: var(--ed-pink); border-radius: 2px; margin-bottom: 12px; }
.ed-article h3 { font-size: clamp(17.5px, 4vw, 21px); font-weight: 700; color: var(--ed-navy); margin: 26px 0 10px; }
.ed-article p { margin: 0 0 18px; line-height: 1.85; }
.ed-article ul, .ed-article ol { margin: 0 0 18px 22px; line-height: 1.85; }
.ed-article figure { margin: 24px 0; }
.ed-article figcaption { font-size: 13px; color: var(--ed-text-light); text-align: center; margin-top: 10px; }
.ed-article img { border-radius: var(--ed-radius); }
.ed-article table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 22px 0; }
.ed-article th { background: var(--ed-navy); color: #fff; padding: 12px 14px; text-align: left; }
.ed-article td { padding: 12px 14px; border-bottom: 1px solid var(--ed-border); }
.ed-article tr:nth-child(even) td { background: var(--ed-gray); }
.ed-article .wp-block-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ (details จาก pattern) */
.ed-article details { border: 1px solid var(--ed-border); border-radius: 12px;
  padding: 0 !important; margin: 0 0 10px; overflow: hidden; background: #fff; }
.ed-article details summary { list-style: none; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; font-weight: 600; color: var(--ed-navy); font-size: 15.5px; min-height: 56px; }
.ed-article details summary::-webkit-details-marker { display: none; }
.ed-article details summary::after { content: "+"; flex: none; width: 26px; height: 26px;
  border-radius: 50%; background: var(--ed-pink-light); color: var(--ed-pink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; transition: transform .3s ease; }
.ed-article details[open] summary::after { transform: rotate(45deg); }
.ed-article details > *:not(summary) { padding: 0 18px; }
.ed-article details[open] { background: var(--ed-gray); }
.ed-article details p:last-child { padding-bottom: 16px; }

/* ── การ์ดตัวแทนกลางเนื้อหา ── */
.ed-agent-inline { display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(135deg, var(--ed-pink), var(--ed-pink-dark));
  border-radius: 20px; padding: 22px; margin: 32px 0; color: #fff; box-shadow: var(--ed-shadow); }
@media (min-width: 600px) { .ed-agent-inline { flex-direction: row; align-items: center; gap: 20px; } }
.ed-agent-inline .who { display: flex; align-items: center; gap: 14px; flex: 1;
  text-decoration: none; color: #fff; }
.ed-agent-inline .av { flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--ed-pink); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid rgba(255,255,255,.5); object-fit: cover; }
.ed-agent-inline .nm { display: block; font-size: 17px; font-weight: 800; }
.ed-agent-inline .rl { display: block; font-size: 12.5px; opacity: .85; margin-top: 2px; }
.ed-agent-inline .vw { display: inline-block; font-size: 12.5px; font-weight: 600; margin-top: 6px;
  background: rgba(255,255,255,.18); padding: 3px 12px; border-radius: 12px; }
.ed-agent-inline .btns { display: flex; flex-direction: column; gap: 8px; min-width: 190px; }
.ed-agent-inline .b { display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border-radius: 12px; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ed-agent-inline .b.line { background: #06C755; color: #fff; }
.ed-agent-inline .b.tel { background: #fff; color: var(--ed-pink); }

/* ── Author + share ── */
.ed-author { display: flex; gap: 14px; align-items: flex-start; background: var(--ed-gray);
  border-radius: var(--ed-radius); padding: 18px; margin: 30px 0 16px; }
.ed-author-av { flex: none; width: 56px; height: 56px; border-radius: 50%;
  background: var(--ed-navy); color: #fff; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 18px; }
.ed-author b { color: var(--ed-navy); font-size: 15.5px; }
.ed-author p { font-size: 14px; margin: 4px 0 0; line-height: 1.6; }
.ed-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  font-size: 14px; margin-bottom: 8px; }
.ed-share .lb { color: var(--ed-text-light); }
.ed-share .sb { display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ed-border); background: #fff; border-radius: 22px;
  padding: 10px 16px; font-family: inherit; font-size: 14px; cursor: pointer;
  text-decoration: none; color: var(--ed-text); min-height: 44px; }
.ed-share .sb.fb { color: #185FA5; }
.ed-share .sb.ln { color: #06C755; }

/* ── ฟอร์มท้ายบทความ ── */
.ed-form { background: var(--ed-gray); border: 1px solid var(--ed-border);
  border-radius: 20px; padding: 26px 20px; margin: 28px 0 8px; }
@media (min-width: 600px) { .ed-form { padding: 32px 32px; } }
.ed-form-title { font-size: clamp(20px, 4vw, 26px); font-weight: 800; color: var(--ed-navy); margin: 0 0 6px; }
.ed-form-title::before { content: ""; display: block; width: 44px; height: 4px;
  background: var(--ed-pink); border-radius: 2px; margin-bottom: 12px; }
.ed-form-sub { font-size: 15px; color: #666; margin: 0 0 18px; line-height: 1.7; }
.ed-form-trust { font-size: 12.5px; color: var(--ed-text-light); margin: 14px 0 0; }
.ed-form .forminator-button-submit,
.ed-form button[type="submit"] { background: var(--ed-pink) !important; border-color: var(--ed-pink) !important;
  border-radius: 12px !important; font-weight: 700 !important; min-height: 48px; width: 100%; }
@media (min-width: 600px) { .ed-form .forminator-button-submit, .ed-form button[type="submit"] { width: auto; } }

/* ── Related ── */
.ed-related { max-width: 1080px; margin: 0 auto; padding: 8px 20px 32px; }
.ed-related h2 { font-size: clamp(20px, 4.5vw, 26px); font-weight: 800; color: var(--ed-navy); margin: 0 0 16px; }
.ed-related h2 span { color: var(--ed-pink); }
.ed-related-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 480px) { .ed-related-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 768px) { .ed-related-grid { grid-template-columns: repeat(3, 1fr); } }
.ed-related-card { border: 1px solid var(--ed-border); border-radius: var(--ed-radius);
  overflow: hidden; text-decoration: none; color: var(--ed-text); display: block;
  background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.ed-related-card:hover { transform: translateY(-4px); box-shadow: var(--ed-shadow); }
.ed-related-card .thumb { height: 140px; background: var(--ed-gray); display: flex;
  align-items: center; justify-content: center; font-size: 26px; overflow: hidden; }
.ed-related-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ed-related-card .body { padding: 12px 14px 14px; }
.ed-related-card small { color: var(--ed-pink); font-weight: 600; font-size: 12.5px; }
.ed-related-card h3 { font-size: 15px; font-weight: 600; color: var(--ed-navy);
  line-height: 1.5; margin: 4px 0 6px; }
.ed-related-card time { font-size: 12.5px; color: var(--ed-text-light); }

/* ── CTA footer ── */
.ed-cta { max-width: 1080px; margin: 0 auto 48px; padding: 0 20px; }
.ed-cta .in { background: linear-gradient(135deg, var(--ed-navy), #1a2560);
  border-radius: 24px; padding: 38px 22px; text-align: center; color: #fff; }
.ed-cta h2 { font-size: clamp(20px, 4.5vw, 30px); font-weight: 800; margin: 0 0 8px; color: #fff; }
.ed-cta p { font-size: 15px; opacity: .85; margin: 0 0 22px; }
.ed-cta p a { color: var(--ed-gold); font-weight: 700; }
.ed-cta p b { color: var(--ed-gold); }
.ed-cta .btns { display: flex; flex-direction: column; gap: 12px; max-width: 360px; margin: 0 auto; }
@media (min-width: 480px) { .ed-cta .btns { flex-direction: row; max-width: none; justify-content: center; } }
.ed-cta .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 28px; border-radius: 26px; font-weight: 700;
  font-size: 15.5px; text-decoration: none; }
.ed-cta .btn.l { background: #06C755; color: #fff; }
.ed-cta .btn.p { background: var(--ed-pink); color: #fff; }
.ed-cta small { display: block; margin-top: 14px; font-size: 12.5px; opacity: .6; }

/* ── Sticky bar มือถือ ── */
.ed-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
  display: flex; gap: 1px; box-shadow: 0 -4px 16px rgba(0,0,0,.12); }
.ed-sticky a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; font-weight: 700; font-size: 15px; text-decoration: none; color: #fff; }
.ed-sticky .line { background: #06C755; }
.ed-sticky .tel { background: #EC008C; }
@media (min-width: 768px) { .ed-sticky { display: none; } }

/* ── Print ── */
@media print {
  .ed-sticky, .ed-progress, .ed-form, .ed-cta, .ed-agent-inline, .ed-share { display: none; }
  .ed-layout { display: block; }
}
