/* ─────────────────────────────────────────────────────────────────────────────
   DianApps Blog Single Post — matches dianapps-rebranding_nextjs BlogsDetail
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Reset / base ───────────────────────────────────────────────────────────── */
.blog-detail * { box-sizing: border-box; }
.blog-detail a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__hero {
  padding: 30px 0 0;
  background: #fff;
}
.blog-detail__hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Breadcrumb */
.blog-detail__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.blog-detail__breadcrumb a {
  color: #060821;
  transition: color 0.2s;
}
.blog-detail__breadcrumb a:hover { color: #060821; }
.blog-detail__breadcrumb-sep { color: #94a3b8; font-size: 1rem; }
.blog-detail__breadcrumb-current {
  color: #94a3b8;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 600px;
  display: inline-block;
  vertical-align: middle;
}

/* Meta row */
.blog-detail__hero-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.blog-detail__hero-meta-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}
.blog-detail__hero-views,
.blog-detail__hero-comments {
  display: flex;
  align-items: center;
  gap: 6px;
}
.blog-detail__hero-views img,
.blog-detail__hero-comments img {
  display: block;
  flex-shrink: 0;
}
.blog-detail__hero-date,
.blog-detail__hero-rt {
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}
.blog-detail__hero-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.blog-detail__hero-author-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
}
.blog-detail__hero-category {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #F06F15;
}
.blog-detail__hero-sep { color: #94a3b8; font-size: 16px; }

/* Title */
.blog-detail__hero-title {
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1.5px;
  color: #060821;
  margin: 0 0 32px;
  max-width: 900px;
}

/* Featured image */
.blog-detail__hero-image {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  max-height: 698px;
  height: 698px;
}
.blog-detail__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   BODY
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__body {
  background: #fff;
  padding: 48px 0 80px;
}
.blog-detail__body-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Two-column layout: left-col | article ───────────────────────────────────── */
.blog-detail__layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   TOC PANEL — sticky left column (TOC card + quote widget scroll as one unit)
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__toc-panel {
  position: sticky;
  top: 90px;
  height: fit-content;
  min-width: 0;
}
.blog-detail__toc-card {
  background: transparent;
  overflow: hidden;
  margin-bottom: 24px;
}

/* TOC heading row */
.blog-detail__toc-heading-row {
  padding: 0 0 10px 0;
}
.blog-detail__toc-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1558d6;
}

/* TOC body */
.blog-detail__toc-body {
  display: flex;
  gap: 0;
  padding: 0 0 12px;
}
.blog-detail__toc-body.is-collapsed { display: none; }

/* Scroll progress track */
.blog-detail__toc-track {
  width: 2px;
  background: #e2e8f0;
  margin: 0;
  border-radius: 2px;
  flex-shrink: 0;
  position: relative;
}
.blog-detail__toc-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #1558d6;
  border-radius: 2px;
  height: 0;
  transition: height 0.1s linear;
}

/* TOC nav — max 10 rows visible, scrolls internally */
.blog-detail__toc-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  max-height: 380px;
  overflow-y: auto;
  padding: 0 4px;
  scrollbar-width: thin;
  scrollbar-color: #e2e8f0 transparent;
}
.blog-detail__toc-nav::-webkit-scrollbar { width: 4px; }
.blog-detail__toc-nav::-webkit-scrollbar-track { background: transparent; }
.blog-detail__toc-nav::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 2px; }
.blog-detail__toc-item {
  display: block;
  padding: 5px 12px;
  font-size: 0.85rem;
  color: #3c4043;
  line-height: 1.45;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.15s;
}
.blog-detail__toc-item--h2 { font-weight: 500; }
.blog-detail__toc-item--h3 { padding-left: 24px; font-size: 0.82rem; color: #5f6368; }
.blog-detail__toc-item--h4 { padding-left: 36px; font-size: 0.8rem; color: #5f6368; }
.blog-detail__toc-item:hover { color: #1558d6; }
.blog-detail__toc-item.is-active { color: #1558d6; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════════════
   ARTICLE
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__article {
  position: relative;
  min-width: 0;
}

/* ── Share strip — now lives in sidebar ──────────────────────────────────────── */
.blog-detail__share-strip {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
  margin-bottom: 15px;
}
.blog-detail__share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ECEFFF;
  background: #ECEFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #1E3A8A;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(15,23,42,0.06);
}
.blog-detail__share-btn:hover {
  background: #1E3A8A;
  border-color: #1E3A8A;
  color: #fff;
  transform: scale(1.05);
}
.blog-detail__share-btn--copy.is-copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

/* ── Article content (WP the_content()) ─────────────────────────────────────── */
.blog-detail__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #1e293b;
  word-break: break-word;
}

.blog-detail__content h1,
.blog-detail__content h2,
.blog-detail__content h3,
.blog-detail__content h4,
.blog-detail__content h5,
.blog-detail__content h6 {
  color: #060821;
  font-weight: 700;
  line-height: 1.3;
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 100px;
}
.blog-detail__content h2 { font-size: 1.875rem; letter-spacing: -0.5px; }
.blog-detail__content h3 { font-size: 1.5rem; }
.blog-detail__content h4 { font-size: 1.25rem; }

.blog-detail__content p { margin: 0 0 1.25rem; }
.blog-detail__content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1.5rem auto;
}
.blog-detail__content a { color: #1E3A8A; text-decoration: underline; }
.blog-detail__content a:hover { color: #162d6e; }

.blog-detail__content ul,
.blog-detail__content ol {
  padding-left: 1.75rem;
  margin: 0 0 1.25rem;
}
.blog-detail__content li { margin-bottom: 0.4rem; line-height: 1.7; }

.blog-detail__content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #1E3A8A;
  background: #f0f4ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #334155;
}

.blog-detail__content .da-table-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.blog-detail__content .da-table-scroll::-webkit-scrollbar {
  height: 8px;
}
.blog-detail__content .da-table-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.blog-detail__content .da-table-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
}
.blog-detail__content table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.9rem;
}
.blog-detail__content th,
.blog-detail__content td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  /*white-space: nowrap; */
  word-break: auto-phrase;
}
.blog-detail__content th { background: #f1f5f9; font-weight: 600; color: #060821; }
.blog-detail__content tr:nth-child(even) { background: #f8fafc; }

.blog-detail__content pre,
.blog-detail__content code {
  font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
  font-size: 0.875rem;
}
.blog-detail__content :not(pre) > code {
  background: #f1f5f9;
  color: #c0392b;
  padding: 2px 6px;
  border-radius: 4px;
}
.blog-detail__content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.6;
  position: relative;
}
.blog-detail__content pre code { background: none; color: inherit; padding: 0; }

/* code block copy button */
.da-code-copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}
.da-code-copy:hover { background: rgba(255,255,255,0.22); color: #fff; }
.da-code-copy.copied { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ── Engagement row ─────────────────────────────────────────────────────────── */
.blog-detail__engagement {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  margin-top: 40px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.blog-detail__clap-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #333333;
  font-size: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.blog-detail__clap-btn:hover:not(:disabled) { opacity: 0.7; }
.blog-detail__clap-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.blog-detail__clap-btn.is-clapped { color: #1E3A8A; }
.blog-detail__clap-icon { flex-shrink: 0; display: block; }
.blog-detail__clap-count { min-width: 12px; }
.blog-detail__engagement-sep { color: #94a3b8; font-size: 16px; line-height: 1; }
.blog-detail__engagement-comments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #333333;
}
.blog-detail__engagement-comments img { display: block; flex-shrink: 0; }

/* ── Author panel ────────────────────────────────────────────────────────────── */
.blog-detail__author-panel {
  margin-top: 40px;
  padding: 28px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}
.blog-detail__author-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.blog-detail__author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(15,23,42,0.12);
}
.blog-detail__author-info { flex: 1; min-width: 0; }
.blog-detail__author-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #060821;
  margin: 0 0 8px;
}
.blog-detail__author-bio {
  font-size: 0.9rem;
  color: #4b4f64;
  line-height: 1.6;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.blog-detail__author-bio.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
}
.blog-detail__author-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 6px;
  font-size: 0.875rem;
  color: #1E3A8A;
  cursor: pointer;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__comments-section { margin-top: 48px; }
.blog-detail__comments-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #060821;
  margin: 0 0 24px;
}

/* Comment list */
.blog-detail__comments-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.blog-detail__comment {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.blog-detail__comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-detail__comment-body { flex: 1; min-width: 0; }
.blog-detail__comment-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.blog-detail__comment-author { font-weight: 600; font-size: 0.9rem; color: #181b32; }
.blog-detail__comment-date { font-size: 0.8rem; color: #94a3b8; }
.blog-detail__comment-text { font-size: 0.9rem; line-height: 1.6; color: #4b4f64; margin: 0; }
.blog-detail__comment-more {
  background: none;
  border: none;
  padding: 4px 0 0;
  font-size: 0.8rem;
  color: #1E3A8A;
  cursor: pointer;
  font-weight: 600;
  display: block;
}

/* Comment form */
.blog-detail__comment-form-wrap { }
.blog-detail__comment-form-title {
  font-size: 32px;
  font-weight: 500;
  color: #060821;
  margin: 0 0 8px;
}
.blog-detail__comment-form-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #060821;
  margin: 0 0 20px;
}
.blog-detail__comment-form-subtitle span { color: #dc2626; }
.blog-detail__comment-form {
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(225.06deg, #4966FF 1.3%, #FFFFFF 66.12%, #415FFF 99.72%) border-box;
  border: 1px solid transparent;
  border-radius: 30px;
  box-shadow: 0px 14px 50px 0px #1E3A8A12;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.blog-detail__comment-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.blog-detail__comment-alert.is-success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.blog-detail__comment-alert.is-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}
.blog-detail__form-field { display: flex; flex-direction: column; gap: 6px; }
.blog-detail__form-label {
  font-size: 16px;
  font-weight: 400;
  color: #060821;
}
.blog-detail__form-label span { color: #dc2626; }
.blog-detail__form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-detail__form-save {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: #060821;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  line-height: 1.5;
}
.blog-detail__form-save input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #1E3A8A;
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.blog-detail__form-input,
.blog-detail__form-textarea {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  font-family: inherit;
}
.blog-detail__form-input:focus,
.blog-detail__form-textarea:focus {
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}
.blog-detail__form-input.is-error,
.blog-detail__form-textarea.is-error {
  border-color: #dc2626;
}
.blog-detail__form-textarea { resize: vertical; min-height: 120px; }
.blog-detail__comment-submit {
  flex-shrink: 0;
  width: 136px;
  height: 40px;
  padding: 0;
  background: #1E3A8A !important;
  background-color: #1E3A8A !important;
  border-color: #1E3A8A !important;
  color: #FFFFFF !important;
  border-radius: 50px !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.blog-detail__comment-submit:hover:not(:disabled) {
  background: #162d6e;
  transform: translateY(-1px);
}
.blog-detail__comment-submit:disabled { opacity: 0.65; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════════════════════
   GOOGLE CSE SEARCH SECTION
   ═══════════════════════════════════════════════════════════════════════════════ */
.da-cse-section {
  background: #fff url('gsc_bg_image.svg') center center / cover no-repeat;
  border-radius: 20px;
  height: 217px;
  display: flex;
  align-items: center;
  overflow: visible;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 48px;
}
.da-cse-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.da-cse-title {
  font-size: 32px;
  font-weight: 500;
  color: #060821;
  font-family: 'Inter', sans-serif;
  margin: 0 0 28px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.da-cse-title span {
  background: linear-gradient(271.11deg, #2C52BE 10.38%, #FF822B 45.51%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 500;
}
.da-cse-section .gsc-control-cse {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}
.da-cse-section .gsc-search-box,
.da-cse-section .gsc-search-box-tools {
  margin: 0 !important;
}
.da-cse-section .gsc-input-box {
  max-width: 545px !important;
  height: 54px !important;
  border-radius: 50px !important;
  border: none !important;
  background: #fff !important;
  padding: 0 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
  margin: 0 auto !important;
  position: relative !important;
  overflow: visible !important;
}
.da-cse-section input.gsc-input {
  background: transparent !important;
  font-size: 0.95rem !important;
  height: 54px !important;
  padding: 0 40px 0 46px !important;
  line-height: 54px !important;
  color: #374151 !important;
}
.da-cse-section input.gsc-input::-webkit-input-placeholder { color: #9ca3af !important; opacity: 1 !important; }
.da-cse-section input.gsc-input:-ms-input-placeholder    { color: #9ca3af !important; opacity: 1 !important; }
.da-cse-section input.gsc-input::placeholder             { color: #9ca3af !important; opacity: 1 !important; }
.da-cse-section .gsib_a {
  padding: 0 !important;
  vertical-align: middle !important;
  position: relative !important;
}
.da-cse-section .gsst_a {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.da-cse-section td.gsib_a {
  width: 100% !important;
  position: relative !important;
}
.da-cse-section .gsc-search-button {
  display: none !important;
}
/* Always hide Google's built-in clear cell — we use a custom button instead */
.da-cse-section .gsib_b {
  display: none !important;
}
/* Custom clear button injected by JS inside .gsc-input-box */
.da-cse-clear {
  display: none;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: #6b7280;
  padding: 0;
  z-index: 2;
}
.da-cse-clear:hover { color: #374151; }
.da-cse-section table.gsc-search-box,
.da-cse-section .gsc-search-box {
  max-width: 545px !important;
  width: 100% !important;
  margin: 0 auto !important;
}
.da-cse-section .gsc-results-wrapper-overlay,
.da-cse-section .gsc-results-wrapper-nooverlay {
  text-align: left;
  margin-top: 12px;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__related {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid #e2e8f0;
}
.blog-detail__related-inner { }
.blog-detail__related-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #060821;
  margin: 0 0 28px;
  letter-spacing: -0.5px;
}
.blog-detail__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-detail__related-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  background: #fff;
  border: 1px solid #f1f5f9;
}
.blog-detail__related-card:hover {
  box-shadow: 0 8px 24px rgba(15,23,42,0.1);
  transform: translateY(-4px);
}
.blog-detail__related-img {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  overflow: hidden;
  background: #f1f5f9;
}
.blog-detail__related-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-detail__related-img--ph {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1E3A8A, #3b82f6);
}
.blog-detail__related-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-detail__related-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F06F15;
}
.blog-detail__related-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #181b32;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-detail__related-exc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-detail__related-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: auto;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   QUOTE WIDGET
   ═══════════════════════════════════════════════════════════════════════════════ */
.da-quote-widget {
  background: #F8F9FB;
  border-radius: 30px;
  padding: 20px;
  margin-top: 20px;
  margin-bottom: 10px;
}
.da-quote-widget__title {
  font-size: 22px;
  font-weight: 700;
  color: #060821;
  margin: 0 0 6px;
  line-height: 1.3;
}
.da-quote-widget__title span {
  display: inline-block;
  background: linear-gradient(271.11deg, #2C52BE 0%, #FF822B 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.da-quote-widget__subtitle {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  margin: 0 0 14px;
}
.da-quote-widget__alert {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 12px;
}
.da-quote-widget__alert.is-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.da-quote-widget__alert.is-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.da-quote-widget__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.da-quote-widget__input,
.da-quote-widget__textarea {
  width: 100%;
  padding: 10px 12px;
  border: none !important;
  border-radius: 12px 2px 12px 2px;
  font-size: 13px;
  color: #374151;
  background: #fff;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}
.da-quote-widget__input:focus,
.da-quote-widget__textarea:focus { box-shadow: 0 0 0 2px #1E3A8A40; }
.da-quote-widget__textarea { resize: none; min-height: 90px; }
/* intl-tel-input: remove our wrapper border, style the iti input instead */
.da-quote-widget__phone-wrap {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible !important;
  display: block;
}
.da-quote-widget .iti { width: 100%; }
.da-quote-widget .iti__tel-input {
  width: 100% !important;
  border: none !important;
  border-radius: 12px 2px 12px 2px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  padding-right: 12px !important;
  font-size: 13px !important;
  color: #374151 !important;
  font-family: inherit !important;
  background: #fff !important;
  box-sizing: border-box !important;
  height: auto !important;
}
.da-quote-widget .iti__tel-input:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px #1E3A8A40 !important;
}
.iti__dropdown-content { z-index: 99999 !important; }

.da-quote-widget__phone-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.da-quote-widget__phone-wrap:focus-within { border-color: #1E3A8A; }
.da-quote-widget__country-select {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-right: 1px solid #E5E7EB;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236B7280'/%3E%3C/svg%3E") no-repeat right 6px center;
  padding: 10px 22px 10px 8px;
  font-size: 13px;
  color: #374151;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  min-width: 80px;
}
.da-quote-widget__phone-prefix {
  padding: 10px 8px;
  font-size: 13px;
  color: #374151;
  white-space: nowrap;
  border-right: 1px solid #E5E7EB;
  flex-shrink: 0;
}
.da-quote-widget__input--phone {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 10px;
  font-size: 13px;
  color: #374151;
  background: transparent;
  font-family: inherit;
  width: 100%;
}
.da-quote-widget__captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.da-quote-captcha-q {
  font-size: 18px;
  font-weight: 400;
  color: #0D0F2C;
  white-space: nowrap;
  min-width: 75px;
  flex-shrink: 0;
}
.da-quote-widget__input--captcha { flex: 1; }
.da-quote-widget__bullets {
  list-style: none;
  padding: 0;
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.da-quote-widget__bullets li {
  font-size: 14px;
  color: #333333;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.da-quote-widget__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F06F15;
}
.da-quote-widget__bullets li strong { font-weight: 600; }
.da-quote-widget__btn {
  width: 100%;
  padding: 12px;
  background: #1E3A8A !important;
  background-color: #1E3A8A !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
  font-family: inherit;
}
.da-quote-widget__btn:hover:not(:disabled) { background: #162d6e !important; }
.da-quote-widget__btn:disabled { opacity: 0.7; cursor: not-allowed; }
.da-field-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
}
.da-input-error { border-color: #dc2626 !important; }

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

/* Share strip hidden on mobile — it moves to da-toc-mobile-only section */
@media (max-width: 1024px) {
  .blog-detail__share-strip { display: none; }
}

/* Quote + Google — desktop in sidebar, mobile below article */
.da-toc-mobile-only { display: none; }
.da-toc-sidebar-only { display: block; }

@media (max-width: 1024px) {
  .da-toc-sidebar-only { display: none; }
  .da-toc-mobile-only { display: block; margin-top: 1.5rem; }
}

@media (max-width: 1200px) {
  .blog-detail__hero-image {
    height: auto !important;
    max-height: none !important;
  }
  .blog-detail__hero-image img {
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 1024px) {
  .blog-detail__layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .blog-detail__body { padding: 16px 0 48px; }
  .blog-detail__toc-panel {
    position: relative;
    top: auto;
  }
  .blog-detail__toc-panel .blog-detail__toc-card {
    border-radius: 12px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   SUMMERIZE BAR
   ═══════════════════════════════════════════════════════════════════════════════ */
.blog-detail__summerize-bar {
  background: linear-gradient(90.13deg, #FFF0E6 0.12%, #EEF2FF 98.69%);
  border: 1px solid #e8ddd4;
  border-radius: 66px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 13px 34px;
}
.blog-detail__summerize-date {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
}
.blog-detail__summerize-date strong {
  font-weight: 600;
  color: #000000;
}
.blog-detail__summerize-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.blog-detail__summerize-label {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  white-space: nowrap;
}
.blog-detail__summerize-tool {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  text-decoration: none;
}
.blog-detail__summerize-tool img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}
.blog-detail__summerize-tool:hover img { transform: scale(1.083); }

@media (max-width: 767px) {
  .blog-detail__summerize-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 13px 20px;
    border-radius: 16px;
  }
  .blog-detail__summerize-tools { flex-wrap: wrap; gap: 8px 12px; }
}

@media (max-width: 768px) {
  .blog-detail__hero-inner,
  .blog-detail__body-inner { padding: 0 16px; }
  .blog-detail__hero { padding-top: 24px; }
  .blog-detail__hero-title { font-size: 1.75rem; letter-spacing: -0.5px; }
  .blog-detail__hero-image {
    border-radius: 16px;
    height: auto !important;
    max-height: none !important;
  }
  .blog-detail__hero-image img {
    height: auto !important;
    object-fit: contain !important;
  }
  .blog-detail__body { padding: 24px 0 48px; }
  .blog-detail__content h2 { font-size: 1.5rem; }
  .blog-detail__content h3 { font-size: 1.25rem; }
  .blog-detail__form-row { grid-template-columns: 1fr; }
  .blog-detail__related-grid { grid-template-columns: 1fr; }
  .blog-detail__author-wrap { flex-direction: column; align-items: center; text-align: center; }

  /* CSE section */
  .da-cse-section { height: auto; padding: 32px 16px; border-radius: 16px; }
  .da-cse-inner { padding: 0 16px; width: 100%; max-width: 100%; box-sizing: border-box; }
  .da-cse-title { font-size: 22px; margin-bottom: 20px; }
  .da-cse-section .gsc-input-box { max-width: 100% !important; }
  .da-cse-section table.gsc-search-box,
  .da-cse-section .gsc-search-box { max-width: 100% !important; margin: 0 16px !important; width: calc(100% - 32px) !important; }
}

@media (max-width: 480px) {
  .da-cse-title { font-size: 18px; }
  .da-cse-section table.gsc-search-box,
  .da-cse-section .gsc-search-box { margin: 0 12px !important; width: calc(100% - 24px) !important; }
}

/* HIDE COMMENTS SECTION */
.single #comments,
.single .comments-area,
.blog-detail__comments-section { display: none !important; }
