/* ==========================================================================
   VẬN TẢI SHINRAI — SINGLE POST & SERVICE DETAIL (single.css)
   Ultra-premium, Modern Logistics Design System
   ========================================================================== */

/* ----------------------------------------------------------
   1. HERO SECTION & BREADCRUMBS
---------------------------------------------------------- */
.sp-single-page {
  background-color: #f8fafc;
  min-height: 70vh;
}

.sp-hero-section {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 48px 0;
}

.sp-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.sp-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.40) contrast(1.15);
}

.sp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(7, 13, 30, 0.92) 0%,
      rgba(11, 19, 43, 0.82) 50%,
      rgba(7, 13, 30, 0.90) 100%);
}

.sp-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Breadcrumbs */
.sp-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 16px;
}

.sp-breadcrumbs a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sp-breadcrumbs a:hover {
  color: #fb923c;
}

.sp-bc-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 12px;
}

.sp-bc-current {
  color: rgba(255, 255, 255, 0.6);
  word-break: break-word;
}

/* Category Badge */
.sp-badge-wrap {
  margin-bottom: 14px;
}

.sp-hero-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(234, 88, 12, 0.22);
  border: 1px solid rgba(249, 115, 22, 0.45);
  backdrop-filter: blur(8px);
  color: #fdba74;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-hero-cat-badge:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Hero Title */
.sp-hero-title {
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  max-width: 960px;
}

/* Meta Row */
.sp-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.7);
}

.sp-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sp-meta-item svg {
  color: #f97316;
  flex-shrink: 0;
}

.sp-meta-item strong {
  color: #ffffff;
  font-weight: 600;
}

.sp-meta-hotline a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fdba74;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
}

.sp-meta-hotline a:hover {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}


/* ----------------------------------------------------------
   2. MAIN BODY & LAYOUT GRID
---------------------------------------------------------- */
.sp-body-section {
  padding: 48px 0 80px;
}

.sp-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  align-items: start;
  max-width: 100%;
}


/* ----------------------------------------------------------
   3. LEFT COLUMN: ARTICLE CARD
---------------------------------------------------------- */
.sp-article-col {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.sp-article-card {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 40px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

/* 4 Key Strengths Strip */
.sp-highlights-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 32px;
}

.sp-hl-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.sp-hl-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-hl-text {
  display: flex;
  flex-direction: column;
}

.sp-hl-text strong {
  font-size: 14px;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 2px;
}

.sp-hl-text span {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}


/* ----------------------------------------------------------
   4. TABLE OF CONTENTS (TOC)
---------------------------------------------------------- */
.sp-toc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #ea580c;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 36px;
}

.sp-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.sp-toc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #0b132b;
}

.sp-toc-title svg {
  color: #ea580c;
}

.sp-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sp-toc-toggle:hover {
  background: #f1f5f9;
  color: #0b132b;
}

.sp-toc-toggle svg {
  transition: transform 0.2s ease;
}

.sp-toc-list-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}

.sp-toc-list {
  list-style: none;
  counter-reset: toc-counter;
  margin: 0;
  padding: 0;
}

.sp-toc-item {
  counter-increment: toc-counter;
  margin-bottom: 10px;
  line-height: 1.5;
}

.sp-toc-item:last-child {
  margin-bottom: 0;
}

.sp-toc-link {
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline;
}

.sp-toc-item::before {
  content: counter(toc-counter) ". ";
  font-weight: 700;
  color: #ea580c;
  margin-right: 4px;
}

.sp-toc-link:hover {
  color: #ea580c;
  text-decoration: underline;
}

.sp-toc-level-3 {
  padding-left: 24px;
  counter-increment: none;
}

.sp-toc-level-3::before {
  content: "— ";
  color: #94a3b8;
  font-weight: normal;
}

.sp-toc-level-3 .sp-toc-link {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
}


/* ----------------------------------------------------------
   5. ARTICLE CONTENT TYPOGRAPHY & ELEMENTS
---------------------------------------------------------- */
.sp-content-body {
  font-size: 16.5px;
  line-height: 1.85;
  color: #1e293b;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.sp-content-body p {
  margin-bottom: 22px;
}

.sp-content-body a {
  color: #ea580c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
  word-break: break-word;
}

.sp-content-body a:hover {
  color: #c2410c;
}

/* Headings with smooth scroll target */
.sp-content-body h2 {
  font-size: 24px;
  font-weight: 800;
  color: #0b132b;
  line-height: 1.35;
  margin: 42px 0 18px;
  padding-left: 16px;
  border-left: 5px solid #ea580c;
  scroll-margin-top: 100px;
  word-break: break-word;
}

.sp-content-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #0b132b;
  line-height: 1.4;
  margin: 32px 0 14px;
  scroll-margin-top: 100px;
  word-break: break-word;
}

.sp-content-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 24px 0 12px;
}

/* Lists */
.sp-content-body ul,
.sp-content-body ol {
  margin: 0 0 24px 20px;
}

.sp-content-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.sp-content-body ul li::marker {
  color: #ea580c;
}

/* Blockquote */
.sp-content-body blockquote,
.sp-content-body .wp-block-quote {
  background: linear-gradient(135deg, #fffaf5 0%, #fff7ed 100%);
  border-left: 5px solid #ea580c;
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-style: normal;
  color: #9a3412;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 2px 10px rgba(234, 88, 12, 0.05);
  word-break: break-word;
}

.sp-content-body blockquote p {
  margin: 0;
}

/* Images & Captions - 100% Responsive & Centered */
.sp-content-body .wp-block-image,
.sp-content-body figure,
.sp-content-body .wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  margin: 32px auto !important;
  text-align: center;
  box-sizing: border-box !important;
  clear: both;
}

.sp-content-body .wp-block-image.aligncenter,
.sp-content-body .wp-block-image .aligncenter,
.sp-content-body figure.aligncenter,
.sp-content-body .wp-caption.aligncenter,
.sp-content-body div.aligncenter,
.sp-content-body img.aligncenter {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center;
}

.sp-content-body figure.alignleft,
.sp-content-body .wp-caption.alignleft {
  float: left;
  margin: 0 20px 20px 0 !important;
  max-width: 50% !important;
}

.sp-content-body figure.alignright,
.sp-content-body .wp-caption.alignright {
  float: right;
  margin: 0 0 20px 20px !important;
  max-width: 50% !important;
}

.sp-content-body figure img,
.sp-content-body .wp-caption img,
.sp-content-body .wp-block-image img,
.sp-content-body img {
  border-radius: 12px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  box-sizing: border-box !important;
}

/* Fix Gutenberg display:table-caption bug where caption collapses to single character width */
.sp-content-body figcaption,
.sp-content-body .wp-element-caption,
.sp-content-body .wp-caption-text,
.sp-content-body .wp-block-image figcaption,
.sp-content-body .wp-block-image .aligncenter figcaption {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  caption-side: unset !important;
  text-align: center !important;
  font-size: 13.5px;
  color: #64748b;
  font-style: italic;
  margin: 10px auto 0 !important;
  line-height: 1.5;
  box-sizing: border-box !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.sp-content-body figcaption strong,
.sp-content-body .wp-element-caption strong,
.sp-content-body .wp-caption-text strong {
  color: #475569;
}

/* Tables (Logistics Pricing Tables) - Scrollable on mobile without page overflow */
.sp-table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  margin: 28px 0 34px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  display: block;
}

.sp-table-responsive::-webkit-scrollbar {
  height: 6px;
}

.sp-table-responsive::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.sp-table-responsive::-webkit-scrollbar-thumb {
  background: #ea580c;
  border-radius: 3px;
}

.sp-content-body table,
.sp-table-responsive table {
  min-width: 580px !important;
  width: 100% !important;
  height: auto !important;
  border-collapse: collapse;
  font-size: 14.5px;
  text-align: left;
  background: #ffffff;
  margin: 0;
}

.sp-content-body table tr:first-child td,
.sp-content-body table tr:first-child th {
  background: #0b132b !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 16px;
  border: none;
}

.sp-content-body table td,
.sp-content-body table th {
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
  vertical-align: middle;
  height: auto !important;
  white-space: nowrap;
}

.sp-content-body table tr:last-child td {
  border-bottom: none;
}

.sp-content-body table tr:nth-child(even) td {
  background-color: #f8fafc;
}

.sp-content-body table tr:hover td {
  background-color: #fff7ed;
}

/* Highlight rates in table */
.sp-content-body table td:not(:first-child) {
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
}

.sp-content-body table td:first-child {
  font-weight: 600;
  color: #1e293b;
}


/* ----------------------------------------------------------
   6. IN-ARTICLE CONVERSION CTA BOX
---------------------------------------------------------- */
.sp-content-cta {
  background: linear-gradient(135deg, #0b132b 0%, #111a36 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 34px 32px;
  margin: 44px 0 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(11, 19, 43, 0.3);
}

.sp-content-cta::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.sp-cta-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(234, 88, 12, 0.25);
  border: 1px solid #f97316;
  color: #fb923c;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border-radius: 999px;
  margin-bottom: 14px;
}

.sp-cta-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.35;
}

.sp-cta-desc {
  font-size: 14.5px;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.sp-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.sp-btn-cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.35);
  transition: all 0.25s ease;
}

.sp-btn-cta-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.5);
  color: #ffffff;
}

.sp-btn-cta-zalo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0068ff;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 104, 255, 0.3);
  transition: all 0.25s ease;
}

.sp-btn-cta-zalo:hover {
  background: #0056d6;
  transform: translateY(-2px);
  color: #ffffff;
}


/* ----------------------------------------------------------
   7. ARTICLE FOOTER (TAGS & SHARE)
---------------------------------------------------------- */
.sp-article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 0;
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.sp-tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-tags-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.sp-tag-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #f1f5f9;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.sp-tag-badge:hover {
  background: #ea580c;
  color: #ffffff;
}

.sp-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-share-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.sp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.sp-share-fb {
  background: #1877f2;
  color: #ffffff;
}

.sp-share-fb:hover {
  background: #1464cc;
  color: #ffffff;
}

.sp-share-zalo {
  background: #0068ff;
  color: #ffffff;
}

.sp-share-zalo:hover {
  background: #0056d6;
  color: #ffffff;
}

.sp-share-copy {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.sp-share-copy:hover {
  background: #e2e8f0;
}

.sp-share-copy.copied {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}


/* ----------------------------------------------------------
   8. AUTHOR / SHINRAI SIGNATURE BOX
---------------------------------------------------------- */
.sp-author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  margin: 32px 0;
}

.sp-author-avatar {
  width: 90px;
  height: 90px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.sp-author-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sp-author-info {
  flex: 1;
}

.sp-author-name {
  font-size: 16px;
  font-weight: 800;
  color: #0b132b;
  margin: 0 0 6px;
}

.sp-author-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 10px;
}

.sp-author-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: #475569;
  font-weight: 600;
}


/* ----------------------------------------------------------
   9. POST NAVIGATION (PREV / NEXT)
---------------------------------------------------------- */
.sp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.sp-nav-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
}

.sp-nav-card:hover {
  border-color: #ea580c;
  box-shadow: 0 6px 18px -2px rgba(234, 88, 12, 0.12);
  transform: translateY(-2px);
}

.sp-nav-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ea580c;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.sp-nav-next .sp-nav-direction {
  justify-content: flex-end;
}

.sp-nav-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
  transition: color 0.2s;
}

.sp-nav-next .sp-nav-title {
  text-align: right;
}

.sp-nav-card:hover .sp-nav-title {
  color: #ea580c;
}

.sp-nav-empty {
  visibility: hidden;
}


/* ----------------------------------------------------------
   10. RELATED POSTS SECTION
---------------------------------------------------------- */
.sp-related-section {
  margin-top: 48px;
}

.sp-sec-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.sp-sec-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sp-sec-title {
  font-size: 24px;
  font-weight: 800;
  color: #0b132b;
  margin: 0;
}

.sp-sec-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  transition: gap 0.2s;
}

.sp-sec-more:hover {
  gap: 9px;
  color: #c2410c;
}

.sp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sp-rel-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.sp-rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(15, 23, 42, 0.1);
  border-color: #ea580c;
}

.sp-rel-thumb-link {
  display: block;
}

.sp-rel-thumb {
  position: relative;
  height: 165px;
  background: #f1f5f9;
  overflow: hidden;
}

.sp-rel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.sp-rel-card:hover .sp-rel-img {
  transform: scale(1.05);
}

.sp-rel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #e2e8f0;
}

.sp-rel-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 19, 43, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.sp-rel-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sp-rel-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 8px;
}

.sp-rel-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 14px;
  flex: 1;
}

.sp-rel-title a,
.sp-rel-title a:visited {
  color: #0b132b;
  text-decoration: none;
  transition: color 0.2s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sp-rel-title a:hover {
  color: #ea580c;
}

.sp-rel-link,
.sp-rel-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
}


/* ----------------------------------------------------------
   11. RIGHT COLUMN: STICKY SIDEBAR
---------------------------------------------------------- */
.sp-sidebar-col {
  width: 100%;
}

.sp-sidebar-sticky {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Base Widget */
.sp-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.sp-widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
  color: #0b132b;
  padding: 16px 20px;
  margin: 0;
  border-bottom: 1px solid #f1f5f9;
}

.sp-widget-title svg {
  color: #ea580c;
  flex-shrink: 0;
}

/* WIDGET 1: HOTLINE */
.sp-widget-hotline {
  background: linear-gradient(135deg, #0b132b 0%, #111a36 100%);
  border-color: #1e293b;
  color: #ffffff;
}

.sp-hotline-header {
  padding: 20px 20px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sp-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  margin-bottom: 8px;
}

.sp-live-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulseLive 1.8s infinite;
}

@keyframes pulseLive {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(0.95);
    opacity: 0.8;
  }
}

.sp-hotline-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
}

.sp-hotline-sub {
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

.sp-hotline-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-phone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sp-phone-card:hover {
  background: #ea580c;
  border-color: #ea580c;
  transform: translateY(-2px);
}

.sp-pc-icon {
  width: 38px;
  height: 38px;
  background: rgba(234, 88, 12, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fb923c;
  flex-shrink: 0;
}

.sp-phone-card:hover .sp-pc-icon {
  background: #ffffff;
  color: #ea580c;
}

.sp-pc-info {
  display: flex;
  flex-direction: column;
}

.sp-pc-label {
  font-size: 11.5px;
  color: #cbd5e1;
  font-weight: 500;
}

.sp-pc-num {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.sp-phone-zalo {
  background: rgba(0, 104, 255, 0.15);
  border-color: rgba(0, 104, 255, 0.35);
}

.sp-phone-zalo .sp-pc-icon {
  background: rgba(0, 104, 255, 0.3);
  color: #38bdf8;
}

.sp-phone-zalo:hover {
  background: #0068ff;
  border-color: #0068ff;
}

.sp-phone-zalo:hover .sp-pc-icon {
  background: #ffffff;
  color: #0068ff;
}


/* WIDGET 2: QUICK QUOTE FORM */
.sp-widget-quote {
  padding-bottom: 18px;
}

.sp-quote-form {
  padding: 18px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-fg {
  width: 100%;
}

.sp-fg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sp-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 13.5px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  outline: none;
  font-family: inherit;
  transition: all 0.2s;
}

.sp-input:focus {
  border-color: #ea580c;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.sp-btn-submit-quote {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
  transition: all 0.25s ease;
}

.sp-btn-submit-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(234, 88, 12, 0.45);
}

.sp-quote-note {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 2px;
}


/* WIDGET 3: SERVICES MENU */
.sp-service-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px 14px;
}

.sp-srv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.sp-srv-item:hover {
  background: #fff7ed;
  color: #ea580c;
  padding-left: 16px;
}

.sp-srv-item.active {
  background: #fff7ed;
  color: #ea580c;
  font-weight: 700;
  border-left: 3px solid #ea580c;
}

.sp-srv-arrow {
  color: #cbd5e1;
  font-size: 16px;
  transition: transform 0.2s;
}

.sp-srv-item:hover .sp-srv-arrow {
  color: #ea580c;
  transform: translateX(3px);
}


/* WIDGET 4: COMMITMENTS */
.sp-commit-list {
  list-style: none;
  margin: 0;
  padding: 14px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sp-commit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sp-cm-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-cm-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #475569;
}

.sp-cm-text strong {
  color: #0b132b;
}


/* WIDGET 5: RECENT POSTS */
.sp-recent-list {
  list-style: none;
  margin: 0;
  padding: 10px 16px 14px;
}

.sp-rc-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px;
  border-bottom: 1px solid #f1f5f9;
}

.sp-rc-item:last-child {
  border-bottom: none;
}

.sp-rc-thumb-link {
  width: 60px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
  flex-shrink: 0;
  display: block;
}

.sp-rc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}

.sp-rc-thumb-link:hover .sp-rc-thumb-img {
  transform: scale(1.08);
}

.sp-rc-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #e2e8f0;
}

.sp-rc-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.sp-rc-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.sp-rc-title:hover {
  color: #ea580c;
}

.sp-rc-date {
  font-size: 11.5px;
  color: #94a3b8;
}


/* ----------------------------------------------------------
   12. RESPONSIVE DESIGN (MEDIA QUERIES)
---------------------------------------------------------- */
@media (max-width: 1024px) {
  .sp-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 36px;
    width: 100% !important;
  }

  .sp-sidebar-sticky {
    position: static;
  }

  .sp-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sp-single-page {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .sp-body-section {
    min-height: auto;
    padding: 24px 0 48px;
    overflow-x: hidden;
  }

  .sp-hero-section {
    min-height: auto;
    padding: 32px 0 36px;
  }

  .sp-breadcrumbs {
    font-size: 12.5px;
    gap: 6px;
  }

  .sp-bc-current {
    max-width: 100%;
    white-space: normal;
  }

  .sp-hero-title {
    font-size: 25px;
    line-height: 1.3;
    margin-bottom: 14px;
  }

  .sp-meta-row {
    gap: 10px 14px;
    font-size: 12px;
  }

  .sp-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .sp-article-col {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .sp-article-card {
    padding: 20px 14px !important;
    border-radius: 14px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  /* Table of Contents Mobile Responsive */
  .sp-toc-box {
    padding: 14px 14px 12px;
    margin-bottom: 24px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .sp-toc-header {
    gap: 8px;
  }

  .sp-toc-title {
    font-size: 15px;
    gap: 8px;
  }

  .sp-toc-title svg {
    width: 17px;
    height: 17px;
  }

  .sp-toc-toggle {
    padding: 4px 10px;
    font-size: 12px;
  }

  .sp-toc-list-wrap {
    margin-top: 10px;
    padding-top: 10px;
  }

  .sp-toc-item {
    margin-bottom: 8px;
  }

  .sp-toc-link {
    font-size: 13.5px;
    line-height: 1.45;
  }

  .sp-toc-level-3 {
    padding-left: 14px;
  }

  .sp-toc-level-3 .sp-toc-link {
    font-size: 12.5px;
  }

  /* Content Body Mobile Responsive */
  .sp-content-body {
    font-size: 15px;
    line-height: 1.75;
    word-break: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    max-width: 100%;
  }

  .sp-content-body p {
    margin-bottom: 18px;
  }

  .sp-content-body h2 {
    font-size: 19px;
    margin: 28px 0 12px;
    padding-left: 12px;
    border-left-width: 4px;
  }

  .sp-content-body h3 {
    font-size: 17px;
    margin: 22px 0 10px;
  }

  .sp-content-body figure,
  .sp-content-body .wp-caption,
  .sp-content-body .wp-block-image {
    max-width: 100% !important;
    width: 100% !important;
    margin: 20px auto !important;
    box-sizing: border-box !important;
  }

  .sp-content-body figure img,
  .sp-content-body .wp-caption img,
  .sp-content-body img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }

  .sp-content-body figure.alignleft,
  .sp-content-body figure.alignright,
  .sp-content-body .wp-caption.alignleft,
  .sp-content-body .wp-caption.alignright {
    float: none !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 18px auto !important;
  }

  .sp-content-body figcaption,
  .sp-content-body .wp-element-caption,
  .sp-content-body .wp-caption-text {
    font-size: 12.5px;
    width: 100% !important;
    display: block !important;
  }

  .sp-content-body table td,
  .sp-content-body table th {
    padding: 10px 14px;
    font-size: 13px;
    white-space: nowrap;
  }

  .sp-content-cta {
    padding: 22px 14px;
    border-radius: 12px;
    margin: 32px 0 24px;
  }

  .sp-cta-title {
    font-size: 17px;
  }

  .sp-cta-desc {
    font-size: 13.5px;
    margin-bottom: 18px;
  }

  .sp-cta-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .sp-btn-cta-phone,
  .sp-btn-cta-zalo {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    padding: 11px 16px;
  }

  .sp-article-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .sp-share-row {
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
  }

  .sp-author-box {
    flex-direction: column;
    text-align: center;
    padding: 18px 14px;
    gap: 14px;
  }

  .sp-author-avatar {
    width: 72px;
    height: 72px;
  }

  .sp-author-contact {
    align-items: center;
    text-align: center;
  }

  .sp-post-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .sp-nav-next .sp-nav-direction {
    justify-content: flex-start;
  }

  .sp-nav-next .sp-nav-title {
    text-align: left;
  }

  .sp-related-section {
    margin-top: 36px;
  }

  .sp-sec-title {
    font-size: 20px;
  }

  .sp-related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}