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

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

/* 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: 13px;
  color: #888;
  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: 5px;
  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: 16px;
  height: 16px;
  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;
}

/* 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 {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: #1a1a1a;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e63428;
  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 {
  margin-bottom: 10px;
  line-height: 1.75;
  list-style: disc;
  color: #333;
}

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

/* 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;
}

.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;
}

/* ── LAYOUT: CONTENT + SIDEBAR (unique classnames to avoid theme clashes) ── */
.single-post .sd-layout-wrap {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  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%;
  }
}

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