/* ══════════════════════════════════════════════
   LEGALFAMILY ARTICLE PAGES — PRO UPGRADE
   ══════════════════════════════════════════════ */

/* Wrapper: offset for sticky header */
.single-post .wrapper {
  padding-top: 40px;
}

.post-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.post-date {
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  color: #E67E22;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.single-post-title h1 {
  font-family: "Anuphan", sans-serif !important;
  font-size: 42px;
  font-weight: 800;
  color: #105050;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 20px;
}

/* Excerpt */
.single-post-excerpt {
  max-width: 860px;
  margin: 0 auto 28px;
  padding: 0 20px;
  text-align: center;
}

.single-post-excerpt p {
  font-family: "Montserrat", sans-serif !important;
  font-size: 17px;
  line-height: 1.7;
  color: #64748b;
  margin: 0;
}

/* Category pills */
.post-categories {
  display: flex;
  justify-content: center;
  margin-bottom: 10px !important;
}

.post-categories ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.post-categories ul li a,
.single-post .post-container .post-categories ul li a {
  font-family: "Anuphan", sans-serif !important;
  font-size: 14px !important;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #105050 !important;
  background: rgba(16, 80, 80, 0.08) !important;
  padding: 10px 22px !important;
  border-radius: 24px !important;
  text-decoration: none;
  transition: all 0.25s ease;
}

.post-categories ul li a:hover,
.single-post .post-container .post-categories ul li a:hover {
  background: #105050 !important;
  color: #fff !important;
}

/* Thumbnail */
.single-post-thumbnail {
  display: flex !important;
  justify-content: center !important;
  margin: 24px auto 48px !important;
  padding: 0 20px !important;
}

.single-post-thumbnail img {
  width: 100% !important;
  max-width: 860px !important;
  height: auto !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* ── Entry content ────────────────────────── */

.single-post-content,
.entry-content {
  text-align: left;
}

.entry-content {
  max-width: 860px;
  margin: 0 auto;
}

.entry-content,
.entry-content p,
.entry-content li {
  color: #333333;
  font-family: "Montserrat", sans-serif !important;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: 0.15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.entry-content p {
  margin: 0 0 20px;
  text-align: left;
}

/* Headings */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: "Anuphan", sans-serif !important;
  color: #105050;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.entry-content h1 {
  font-size: 34px;
  margin-top: 0;
}

.entry-content h2 {
  font-size: 28px;
  font-weight: 700;
  padding-top: 32px;
  margin: 44px 0 16px;
  border-top: 1px solid rgba(16, 80, 80, 0.12);
}

/* First h2 in content: no top border */
.entry-content > h2:first-child,
.entry-content > h3:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.entry-content h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.entry-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 24px 0 10px;
}

/* Dividers */
.entry-content hr,
.entry-content .wp-block-separator {
  border: none;
  height: 1px;
  background: rgba(16, 80, 80, 0.1);
  margin: 48px 0;
}

/* Lists */
.entry-content ul,
.entry-content ol {
  margin: 12px 0 20px 24px;
  padding: 0;
  font-size: 18px !important;
  line-height: 1.8 !important;
}

.entry-content li {
  margin: 10px 0;
  padding-left: 4px;
  font-size: 18px !important;
  line-height: 1.8 !important;
}

.entry-content ul li::marker {
  color: #E67E22;
}

.entry-content ol li::marker {
  color: #E67E22;
  font-weight: 700;
}

/* Links */
.entry-content a {
  color: #105050;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(16, 80, 80, 0.3);
  transition: all 0.2s;
}

.entry-content a:hover {
  color: #E67E22;
  text-decoration-color: #E67E22;
}

/* Bold */
.entry-content strong {
  color: #333333;
  font-weight: 700;
  font-size: inherit;
}

.entry-content p > strong:first-child {
  color: #105050;
}

/* Images — block editor */
.entry-content .wp-block-image {
  margin: 36px 0;
}

.entry-content .wp-block-image img {
  border-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
}

/* Images — classic editor / inline */
.entry-content > p > img,
.entry-content > img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 32px auto;
}

.entry-content figcaption {
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px;
  color: #888;
  text-align: center;
  margin-top: 10px;
}

/* Tables */
.entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-family: "Montserrat", sans-serif !important;
  font-size: 15px;
  line-height: 1.5;
  border-radius: 8px;
  overflow: hidden;
}

.entry-content table thead th,
.entry-content .wp-block-table thead th {
  background: #105050;
  color: #fff;
  font-family: "Anuphan", sans-serif !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 14px 16px;
  text-align: left;
  border: none;
}

.entry-content table thead th:first-child {
  border-radius: 8px 0 0 0;
}

.entry-content table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.entry-content table tbody td,
.entry-content .wp-block-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #333;
  font-size: 15px;
  vertical-align: top;
}

.entry-content table tbody tr:last-child td {
  border-bottom: none;
}

.entry-content table tbody tr:nth-child(even) {
  background: rgba(16, 80, 80, 0.03);
}

.entry-content .wp-block-table {
  margin: 32px 0;
  overflow-x: auto;
}

.entry-content .wp-block-table figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 8px;
}

/* Blockquotes */
.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 4px solid #105050;
  margin: 28px 0;
  padding: 16px 24px;
  background: rgba(16, 80, 80, 0.04);
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p {
  margin: 0;
  color: #105050;
  font-style: italic;
  font-size: 17px;
}

/* CTA Button */
.single-post-cta {
  margin: 0 0 32px;
}

.single-post-cta__btn {
  display: inline-block;
  padding: 14px 36px;
  background: #105050;
  color: #fff !important;
  font-family: "Anuphan", sans-serif !important;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.single-post-cta__btn:hover {
  background: #EB6328;
}

/* ── Author bio ───────────────────────────── */

.single-post-author-bio {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 860px;
  margin: 56px auto 40px;
  padding: 28px;
  background: rgba(16, 80, 80, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(16, 80, 80, 0.08);
  text-align: left;
}

.single-post-author-bio__avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.single-post-author-bio__name {
  font-family: "Anuphan", sans-serif !important;
  font-size: 16px;
  font-weight: 700;
  color: #105050;
}

.single-post-author-bio__bio {
  font-family: "Montserrat", sans-serif !important;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-top: 4px;
}

/* ══════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════ */

@media (max-width: 768px) {
  .single-post .wrapper {
    padding-top: 24px;
  }

  .single-post-title h1 {
    font-size: 28px;
    letter-spacing: -0.3px;
  }

  .single-post-excerpt p {
    font-size: 15px;
  }

  .single-post-cta__btn {
    padding: 12px 28px;
    font-size: 14px;
  }

  .single-post-thumbnail img {
    border-radius: 0 !important;
    max-width: 100% !important;
  }

  .single-post-thumbnail {
    padding: 0 !important;
  }

  .entry-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .entry-content h2 {
    font-size: 24px;
    padding-top: 24px;
    margin: 32px 0 12px;
  }

  .entry-content h3 {
    font-size: 19px;
  }

  .entry-content,
  .entry-content p,
  .entry-content li {
    font-size: 16px;
  }

  .entry-content ul,
  .entry-content ol {
    font-size: 16px !important;
  }

  .entry-content li {
    font-size: 16px !important;
  }

  .entry-content hr,
  .entry-content .wp-block-separator {
    margin: 36px 0;
  }

  .entry-content table,
  .entry-content .wp-block-table table {
    font-size: 13px;
  }

  .entry-content table thead th,
  .entry-content .wp-block-table thead th {
    font-size: 12px;
    padding: 10px 12px;
  }

  .entry-content table tbody td,
  .entry-content .wp-block-table tbody td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .single-post-author-bio {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

/* sticky filters (nos-articles page) */
@media (min-width: 1024px) {
  .nos-articles-sidebar {
    align-self: flex-start;
  }

  .nos-articles-sidebar__nav {
    position: sticky;
    top: 110px;
  }
}
