/* ============================================
   SINGLEDEBT — Blog Post Styles
   Native WordPress Block Editor (Gutenberg)
   v1.2.0
   ============================================ */

/* Meta bar spacing */
.sd-entry-meta {
  padding: 12px 0;
  margin-bottom: 20px;
}

/* ── FIX: wp_ulike / shortcode area inside meta bar drifting left / breaking alignment ── */
.single-post .entry-meta .sd-ulike-wrap,
.entry-meta .sd-ulike-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  float: none !important;
  white-space: nowrap;
}

.single-post .entry-meta .sd-ulike-wrap *,
.entry-meta .sd-ulike-wrap * {
  float: none !important;
  vertical-align: middle !important;
}

.single-post .entry-meta .wp_ulike_general_class,
.single-post .entry-meta .wp_ulike_btn,
.single-post .entry-meta .wp_ulike_put_image,
.entry-meta .wp_ulike_general_class,
.entry-meta .wp_ulike_btn,
.entry-meta .wp_ulike_put_image {
  display: inline-flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 6px !important;
}

.single-post .entry-meta .wp_ulike_counter_up,
.single-post .entry-meta .wp_ulike_counter_down,
.entry-meta .wp_ulike_counter_up,
.entry-meta .wp_ulike_counter_down {
  display: inline-block !important;
  margin: 0 0 0 4px !important;
  line-height: 1 !important;
}

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── GLOBAL FONT OVERRIDE: Poppins everywhere on single post ── */
.single-post,
.single-post * {
  font-family: 'Poppins', Arial, sans-serif;
}

.single-post .entry-content,
.single-post article.post {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2d2d2d;
}

/* ── HERO BANNER (custom banner image, with overlay + heading) ── */
.single-post .post-banner-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  overflow: hidden;
}

.single-post .post-banner-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.3));
  padding: 60px 6%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.single-post .post-banner-inner {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.single-post .post-banner-inner h1.entry-title {
  color: #fff;
  margin: 0;
}

@media (max-width: 768px) {
  .single-post .post-banner-hero,
  .single-post .post-banner-overlay {
    min-height: 220px;
  }
  .single-post .post-banner-overlay {
    padding: 28px 5%;
  }
}

.single-post .post-thumbnail,
.single-post .wp-post-image-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.single-post .post-thumbnail img,
.single-post .wp-post-image {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* ── SAFETY: hide any duplicate H1.entry-title beyond the first one ── */
.single-post h1.entry-title:nth-of-type(n+2) {
  display: none !important;
}

.single-post h1.entry-title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 16px 0;
  font-family: 'Poppins', sans-serif;
}

.single-post .entry-meta,
.single-post .post-meta,
.entry-meta,
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  border-bottom: 1px solid #ebebeb;
}

.single-post .entry-meta a,
.single-post .post-meta a,
.entry-meta a,
.post-meta a {
  color: #e63428;
  text-decoration: none;
}

.single-post .entry-meta > span,
.single-post .post-meta > span,
.entry-meta > span,
.post-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Normalize any icons/images/svgs injected by shortcodes (post-views, reading time, ulike) */
.single-post .entry-meta img,
.single-post .entry-meta svg,
.single-post .entry-meta i,
.entry-meta img,
.entry-meta svg,
.entry-meta i {
  display: inline-block;
  vertical-align: middle;
  width: 18px;
  height: 18px;
  margin: 0;
}

.single-post .entry-meta *,
.entry-meta * {
  line-height: 1;
}

.single-post .entry-meta .wp_ulike_general_class,
.single-post .entry-meta .wp_ulike_btn,
.entry-meta .wp_ulike_general_class,
.entry-meta .wp_ulike_btn {
  display: inline-flex !important;
  align-items: center;
  margin: 0;
}

/* ── FIX: "like" button — clean rounded thumbs-up button, no default box look ── */
.single-post .entry-meta .wp_ulike_btn,
.entry-meta .wp_ulike_btn {
  background: #f2f2f2 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  justify-content: center;
  cursor: pointer;
}

.single-post .entry-meta .wp_ulike_btn:hover,
.entry-meta .wp_ulike_btn:hover {
  background: #e6e6e6 !important;
}

.single-post .entry-meta .wp_ulike_put_image svg path,
.entry-meta .wp_ulike_put_image svg path {
  fill: #1a1a1a !important;
}

/* ── FIX: like count badge — was rendering as a pointed "price tag" shape (default
   wp-ulike .count-box arrow). Strip the arrow/border and make it a plain rounded chip. ── */
.single-post .entry-meta .count-box,
.entry-meta .count-box {
  background: #f2f2f2 !important;
  color: #1a1a1a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 6px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  min-width: 22px;
}

.single-post .entry-meta .count-box::before,
.single-post .entry-meta .count-box::after,
.entry-meta .count-box::before,
.entry-meta .count-box::after {
  content: none !important;
  display: none !important;
  border: none !important;
  background: none !important;
}

/* Mobile: H1 stays 28px */
@media (max-width: 768px) {
  .single-post h1.entry-title {
    font-size: 28px;
  }
}

.single-post .entry-content p {
  margin-bottom: 20px;
  color: #000231;
  font-size: 16px;
  line-height: 1.85;
}

.single-post .entry-content h2,
.single-post .sd-content-col h2 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #1a1a1a;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #ff0000;
  font-family: 'Poppins', sans-serif;
}

.single-post .entry-content h3 {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: #222;
  margin: 28px 0 12px;
}

.single-post .entry-content strong,
.single-post .entry-content b {
  color: #1a1a1a;
  font-weight: 700;
}

.single-post .entry-content ul {
  margin: 16px 0 20px 20px;
  padding: 0;
}

.single-post .entry-content ul li,
.single-post .entry-content ol li {
  margin-bottom: 16px;
  line-height: 1.75;
  list-style: disc;
  color: #333;
}

.single-post .entry-content ol li {
  list-style: decimal;
}

.single-post .entry-content ul li:last-child,
.single-post .entry-content ol li:last-child {
  margin-bottom: 0;
}

.single-post .entry-content ul li::marker,
.single-post .entry-content ol li::marker {
  color: #e63428;
}

/* Nested lists: slightly tighter spacing so it doesn't look excessive */
.single-post .entry-content ul li ul,
.single-post .entry-content ul li ol,
.single-post .entry-content ol li ul,
.single-post .entry-content ol li ol {
  margin-top: 10px;
}

.single-post .entry-content ul li ul li,
.single-post .entry-content ul li ol li,
.single-post .entry-content ol li ul li,
.single-post .entry-content ol li ol li {
  margin-bottom: 10px;
}

/* WHATSAPP / CTA GREEN BOX */
.single-post .entry-content .is-style-whatsapp-cta,
.single-post .entry-content .whatsapp-cta-box {
  background-color: #25D366;
  color: #fff !important;
  padding: 18px 24px;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  margin: 28px 0;
  display: block;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.single-post .entry-content .is-style-whatsapp-cta a,
.single-post .entry-content .whatsapp-cta-box a {
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.single-post .entry-content .is-style-whatsapp-cta a::before,
.single-post .entry-content .whatsapp-cta-box a::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.single-post .entry-content blockquote {
  border-left: 4px solid #e63428;
  padding: 14px 20px;
  margin: 24px 0;
  background: #fdf5f5;
  font-style: italic;
  color: #444;
  border-radius: 0 6px 6px 0;
}

.single-post .post-likes-shares,
.single-post .sharedaddy {
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 20px 0;
  margin: 32px 0;
}

/* ── FIX: Jetpack "sharedaddy" share icon row (304 Shares + Facebook/X/Pin/Email/Share buttons)
   was float-based and could drift/wrap unevenly. Force a single, wrapping flex line. ── */
.single-post .sharedaddy .sd-sharing-enabled .sd-sharing,
.single-post .sharedaddy .sd-sharing,
.single-post .sharedaddy .robots-nocontent {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-post .sharedaddy .sd-sharing li,
.single-post .sharedaddy .sd-sharing .share-end {
  display: inline-flex !important;
  float: none !important;
  margin: 0 !important;
}

.single-post .sharedaddy .sd-sharing a {
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
}

/* Generic fallback for other share-button shortcodes/plugins (Sassy Social Share etc.) */
.single-post .social-share-icons,
.single-post .sassy-social-share,
.single-post .jp-sharing-container,
.single-post .share-buttons-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px !important;
}

/* ── FIX: Post tags list ("Tagged: ...") — keep all tag chips on one aligned, wrapping line ── */
.single-post .entry-tags,
.single-post .tagged_as,
.single-post .post-tags,
.single-post span.tags-links,
.single-post .post-tags .tag-links,
.single-post span.tag-links,
.single-post .wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-top: 24px;
}

.single-post .entry-tags a,
.single-post .tagged_as a,
.single-post .post-tags a,
.single-post span.tags-links a,
.single-post .post-tags .tag-links a,
.single-post span.tag-links a,
.single-post .wp-block-post-terms a {
  display: inline-block;
  color: #e63428;
  text-decoration: none;
  white-space: nowrap;
}

.single-post .entry-tags a:hover,
.single-post .tagged_as a:hover,
.single-post .post-tags a:hover,
.single-post span.tags-links a:hover,
.single-post .post-tags .tag-links a:hover,
.single-post span.tag-links a:hover,
.single-post .wp-block-post-terms a:hover {
  text-decoration: underline;
}

.single-post .author-bio-box {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 32px 0;
}

.single-post .author-bio-box img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.single-post .entry-content .wp-block-details,
.single-post .entry-content details {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.6;
}

.single-post .entry-content details summary,
.single-post .entry-content .wp-block-details summary {
  font-weight: 600;
  cursor: pointer;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.4;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Reset/control the native disclosure triangle so it can't blow up */
.single-post .entry-content details summary::-webkit-details-marker {
  display: none;
}

.single-post .entry-content details summary::marker {
  display: none;
  content: '';
}

/* Custom small triangle instead of the native one */
.single-post .entry-content details summary::before {
  content: '▶';
  display: inline-block;
  font-size: 11px;
  color: #e63428;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.single-post .entry-content details[open] summary::before {
  transform: rotate(90deg);
}

.single-post .entry-content details p,
.single-post .entry-content .wp-block-details p {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 15px;
}

.widget_recent_entries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget_recent_entries ul li {
  padding: 10px 0;
  border-bottom: 1px solid #ebebeb;
  font-size: 14px;
  line-height: 1.5;
}

.widget_recent_entries ul li a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Poppins', Arial, sans-serif;
}

.widget_recent_entries ul li a:hover {
  color: #e63428;
}

.widget-recent-posts-with-thumb .recent-post-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #ebebeb;
}

.widget-recent-posts-with-thumb .recent-post-item img {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.widget-recent-posts-with-thumb .recent-post-item .post-info {
  flex: 1;
}

.widget-recent-posts-with-thumb .recent-post-item .post-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.4;
  text-decoration: none;
  display: block;
}

.widget-recent-posts-with-thumb .recent-post-item .post-date {
  font-size: 11px;
  color: #999;
  margin-top: 3px;
  display: block;
}

.widget-recent-posts-with-thumb .recent-post-item .read-more {
  font-size: 11px;
  color: #e63428;
  font-weight: 600;
  text-decoration: none;
}

#comments {
  margin-top: 40px;
}

#comments h2.comments-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
}

#respond h3#reply-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
}

#commentform textarea,
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  color: #333;
  font-family: inherit;
  margin-bottom: 14px;
  box-sizing: border-box;
}

#commentform textarea {
  min-height: 140px;
  resize: vertical;
}

#commentform input[type="submit"] {
  background: #e63428;
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

#commentform input[type="submit"]:hover {
  background: #c62a1e;
}

/* ── FIX: Comments section — align checkboxes, "Notify me…" labels,
   submit button, and the anti-spam (WP Armour / honeypot) box consistently ── */
#commentform p {
  margin: 0 0 16px;
}

#commentform p.comment-form-cookies-consent,
#commentform p.comment-subscription-form,
#commentform .comment-form-cookies-consent,
#commentform .comment-subscription-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
}

#commentform input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #e63428;
  cursor: pointer;
}

#commentform label {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  margin: 0;
  cursor: pointer;
}

#commentform p.form-submit {
  margin-top: 20px;
  margin-bottom: 16px;
}

/* Generic catch-all for the anti-spam / honeypot box (e.g. WP Armour),
   whatever its exact markup, so it lines up like the rest of the form */
#commentform [id*="armour" i],
#commentform [class*="armour" i],
#commentform [id*="spam" i],
#commentform [class*="spam" i] {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f9fc;
  border: 1px solid #dde6f0;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

#commentform [id*="armour" i] label,
#commentform [class*="armour" i] label,
#commentform [id*="spam" i] label,
#commentform [class*="spam" i] label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin: 0;
}

#commentform [id*="armour" i] input[type="checkbox"],
#commentform [class*="armour" i] input[type="checkbox"],
#commentform [id*="spam" i] input[type="checkbox"],
#commentform [class*="spam" i] input[type="checkbox"] {
  margin: 0;
}

#commentform [id*="armour" i] button,
#commentform [class*="armour" i] button,
#commentform [id*="spam" i] button,
#commentform [class*="spam" i] button {
  align-self: flex-start;
  font-family: inherit;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

/* ── LAYOUT: CONTENT + SIDEBAR (unique classnames to avoid theme clashes) ── */
.single-post .sd-layout-wrap {
  max-width: 100%;
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.single-post .sd-content-col {
  flex: 1 1 0;
  min-width: 0;
  box-sizing: border-box;
}

.single-post .sd-sidebar-col {
  flex: 0 0 320px;
  width: 320px;
  box-sizing: border-box;
  font-family: 'Poppins', Arial, sans-serif;
}

.single-post .sd-sidebar-col .widget {
  margin-bottom: 28px;
}

.single-post .sd-sidebar-col .widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #e63428;
  font-family: 'Poppins', sans-serif;
}

@media (max-width: 900px) {
  .single-post .sd-layout-wrap {
    flex-direction: column;
  }
  .single-post .sd-sidebar-col {
    width: 100%;
    flex: 1 1 100%;
  }
}

/* ── RESPONSIVE: tablet ── */
@media (max-width: 768px) {
  .single-post .entry-meta,
  .single-post .post-meta,
  .entry-meta,
  .post-meta {
    gap: 10px 14px;
    font-size: 14px;
  }

  .single-post .entry-meta img,
  .single-post .entry-meta svg,
  .single-post .entry-meta i,
  .entry-meta img,
  .entry-meta svg,
  .entry-meta i {
    width: 16px;
    height: 16px;
  }

  .single-post .entry-content ul li,
  .single-post .entry-content ol li {
    margin-bottom: 14px;
  }

  .single-post .sharedaddy .sd-sharing,
  .single-post .sharedaddy .sd-sharing-enabled .sd-sharing,
  .single-post .social-share-icons,
  .single-post .sassy-social-share,
  .single-post .jp-sharing-container,
  .single-post .share-buttons-row {
    gap: 6px 8px !important;
  }

  .single-post .entry-tags,
  .single-post .tagged_as,
  .single-post .post-tags,
  .single-post span.tags-links,
  .single-post .post-tags .tag-links,
  .single-post span.tag-links,
  .single-post .wp-block-post-terms {
    font-size: 13px;
    gap: 6px;
  }

  #commentform label,
  #commentform [id*="armour" i],
  #commentform [class*="armour" i] {
    font-size: 13px;
  }
}

/* ── RESPONSIVE: mobile ── */
@media (max-width: 480px) {
  .single-post .entry-meta,
  .single-post .post-meta,
  .entry-meta,
  .post-meta {
    font-size: 13px;
    gap: 8px 12px;
  }

  .single-post .entry-meta img,
  .single-post .entry-meta svg,
  .single-post .entry-meta i,
  .entry-meta img,
  .entry-meta svg,
  .entry-meta i {
    width: 15px;
    height: 15px;
  }

  .single-post .entry-meta .wp_ulike_btn,
  .entry-meta .wp_ulike_btn {
    padding: 5px 8px !important;
  }

  .single-post .entry-meta .count-box,
  .entry-meta .count-box {
    font-size: 12px !important;
    padding: 5px 8px !important;
  }

  .single-post .entry-meta .sd-ulike-wrap,
  .entry-meta .sd-ulike-wrap {
    gap: 4px !important;
  }

  .single-post .entry-content ul li,
  .single-post .entry-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
  }

  .single-post .sharedaddy .sd-sharing a,
  .single-post .social-share-icons a,
  .single-post .sassy-social-share a {
    font-size: 12px;
  }
}

.single-post .sd-layout-wrap::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================
   v1.3.0 — AUTHOR HOVER POPUP + AUTHOR PROFILE PAGE
   ============================================ */

/* ── Fix: featured/content image overflowing wider than the
   text column below it (Gutenberg alignwide/alignfull blocks
   bleed past .sd-content-col if left unconstrained). Now every
   image matches the same width as the paragraph text below it. ── */
.single-post .sd-content-col img,
.single-post .sd-content-col .wp-block-image img,
.single-post .sd-content-col figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
.single-post .sd-content-col figure,
.single-post .sd-content-col .wp-block-image {
  max-width: 100% !important;
  width: 100% !important;
}
.single-post .sd-content-col .alignfull,
.single-post .sd-content-col .alignwide {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: auto !important;
  right: auto !important;
}
.single-post .sd-content-col .wp-block-image {
  margin: 0 0 22px !important;
}

/* ── Author item + hover bio popup ── */
.sd-entry-meta .sd-author-trigger {
  position: relative;
  cursor: pointer;
}

.sd-author-popup {
  display: none;
  position: fixed;
  z-index: 99999;
  width: 300px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 20px 22px;
  text-align: left;
  white-space: normal;
  cursor: default;
  font-family: 'Poppins', Arial, sans-serif;
}

.sd-author-popup.sd-popup-visible {
  display: block;
}

.sd-author-popup-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0 0 8px;
}

.sd-author-popup-bio {
  display: block;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.75;
  color: #000000;
  margin: 0 0 4px;
}

.sd-author-popup-readmore {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 13px;
  color: #e63428;
  text-decoration: none;
}

.sd-author-popup-readmore:hover {
  color: #c22a1e;
}

/* ── Author Profile Page ── */
.sd-authorpage-wrap {
  max-width: 1180px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Poppins', Arial, sans-serif;
}
.sd-authorpage-header {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #faf5f4;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.sd-authorpage-avatar { border-radius: 50%; display: block; }
.sd-authorpage-name {
  font-weight: 700;
  font-size: 26px;
  color: #1a1a1a;
  margin: 0 0 8px;
}
.sd-authorpage-bio { color: #000000; font-size: 14px; line-height: 1.6; margin: 0 0 8px; max-width: 620px; }
.sd-authorpage-count { color: #e63428; font-weight: 700; font-size: 13px; margin: 0; }
.sd-authorpage-columns { display: flex; gap: 32px; align-items: flex-start; }
.sd-authorpage-main { flex: 1 1 68%; min-width: 0; }
.sd-authorpage-sidebar { flex: 0 0 28%; max-width: 320px; }
.sd-authorpage-postcard {
  display: flex; gap: 18px; padding: 20px 0;
  border-bottom: 1px solid #ebebeb; flex-wrap: wrap;
}
.sd-authorpage-thumb { flex: 0 0 160px; }
.sd-authorpage-thumb img { border-radius: 10px; width: 100%; height: auto; display: block; }
.sd-authorpage-postbody { flex: 1 1 260px; min-width: 0; }
.sd-authorpage-posttitle { text-decoration: none; }
.sd-authorpage-posttitle h2 { font-weight: 700; font-size: 18px; color: #1a1a1a; margin: 0 0 6px; }
.sd-authorpage-postmeta { color: #e63428; font-weight: 700; font-size: 12px; margin: 0 0 8px; }
.sd-authorpage-postexcerpt { color: #4a4a4a; font-size: 14px; line-height: 1.55; margin: 0 0 8px; }
.sd-authorpage-readmore { color: #e63428; font-weight: 700; font-size: 13px; text-decoration: none; }
.sd-authorpage-readmore:hover { color: #c22a1e; }
.sd-authorpage-pagination { margin-top: 24px; }
.sd-authorpage-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.sd-authorpage-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: 8px; background: #f3f3f3; color: #1a1a1a;
  font-weight: 700; font-size: 14px; text-decoration: none;
}
.sd-authorpage-pagination .page-numbers.current { background: #e63428; color: #ffffff; }
.sd-authorpage-pagination .page-numbers:hover { background: #fbe3e0; color: #1a1a1a; }
.sd-authorpage-widget { background: #faf5f4; border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.sd-authorpage-widget h3 { font-weight: 700; font-size: 15px; color: #1a1a1a; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e63428; }
.sd-authorpage-widget ul { list-style: none; margin: 0; padding: 0; }
.sd-authorpage-widget li { margin-bottom: 10px; font-size: 13.5px; color: #000000; }
.sd-authorpage-widget a { color: #000000; text-decoration: none; }
.sd-authorpage-widget a:hover { color: #e63428; }
.sd-authorpage-widget .widget-recent-posts-with-thumb .recent-post-item {
  display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-start;
}
.sd-authorpage-widget .widget-recent-posts-with-thumb img {
  width: 70px; height: 60px; object-fit: cover; border-radius: 8px; flex: 0 0 70px;
}
.sd-authorpage-widget .widget-recent-posts-with-thumb .post-title {
  display: block; font-weight: 600; font-size: 13.5px; color: #1a1a1a; margin-bottom: 4px; text-decoration: none;
}
.sd-authorpage-widget .widget-recent-posts-with-thumb .post-title:hover { color: #e63428; }
.sd-authorpage-widget .widget-recent-posts-with-thumb .post-date {
  display: block; font-size: 11.5px; color: #8a8a8a; margin-bottom: 4px;
}
.sd-authorpage-widget .widget-recent-posts-with-thumb .read-more {
  font-size: 12px; font-weight: 700; color: #e63428;
}

/* ── Responsive: author page + popup ── */
@media (max-width: 780px) {
  .sd-authorpage-columns { flex-direction: column; }
  .sd-authorpage-sidebar { max-width: 100%; width: 100%; }
  .sd-authorpage-thumb { flex-basis: 100%; }
}
@media (max-width: 480px) {
  .sd-author-popup { width: 260px; }
  .sd-authorpage-header { padding: 20px; gap: 16px; }
  .sd-authorpage-name { font-size: 21px; }
}

/* ── v1.3.4: meta-bar spacing — proper flex `gap` (matches the
   pattern used on the SettleMyLoan site) instead of margin-right.
   `gap` looks correct on wrapped rows too (no lopsided trailing
   space), which margin-right can't guarantee once items wrap. ── */
.single-post .sd-entry-meta,
.single-post .entry-meta,
.single-post .post-meta {
  column-gap: 16px !important;
  row-gap: 10px !important;
  flex-wrap: wrap !important;
}
.single-post .sd-entry-meta > span,
.single-post .entry-meta > span,
.single-post .post-meta > span {
  margin-right: 0 !important;
}
@media (max-width: 768px) {
  .single-post .sd-entry-meta,
  .single-post .entry-meta,
  .single-post .post-meta {
    column-gap: 12px !important;
    row-gap: 8px !important;
  }
}
@media (max-width: 480px) {
  .single-post .sd-entry-meta,
  .single-post .entry-meta,
  .single-post .post-meta {
    column-gap: 8px !important;
    row-gap: 8px !important;
    font-size: 12.5px !important;
  }
  .single-post .sd-entry-meta img,
  .single-post .sd-entry-meta svg,
  .single-post .entry-meta img,
  .single-post .entry-meta svg {
    width: 13px !important;
    height: 13px !important;
  }
}

