@import url('https://fonts.googleapis.com/css?family=Overpass:300,400,600,700,900&display=swap');

:root {
  --teal: #0c5c77;
  --teal-dark: #083f52;
  --teal-tint: rgba(12, 92, 119, .07);
  --teal-tint-2: rgba(12, 92, 119, .14);
  --gold: #c98a1f;
  --gold-tint: rgba(201, 138, 31, .12);
  --ink: #242424;
  --ink-soft: #4a4a4a;
  --body-text: #6b6b6b;
  --muted: #a7a7a7;
  --line: #ececec;
  --bg: #f5f6f8;
  --card: #ffffff;
  --shadow: 0 10px 40px rgba(12, 92, 119, .09);
  --shadow-sm: 0 4px 18px rgba(20, 20, 20, .06);
  --font: 'Overpass', sans-serif;
}

.blog-page-wrapper {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body-text);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.blog-page-wrapper img {
  max-width: 100%;
  display: block;
}

.blog-page-wrapper a {
  color: inherit;
}

.blog-page-wrapper .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-page-wrapper .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Buttons ---------- */
.blog-page-wrapper .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 26px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .18s ease;
  border-radius: 2px;
}

.blog-page-wrapper .btn-primary {
  background: var(--teal);
  color: #fff;
}

.blog-page-wrapper .btn-primary:hover {
  background: var(--teal-dark);
  color: #fff;
}

.blog-page-wrapper .btn-outline {
  background: transparent;
  border-color: var(--teal);
  color: var(--teal);
}

.blog-page-wrapper .btn-outline:hover {
  background: var(--teal);
  color: #fff;
}

.blog-page-wrapper .btn-gold {
  background: var(--gold);
  color: #fff;
}

.blog-page-wrapper .btn-gold:hover {
  background: #a9740f;
  color: #fff;
}

/* ---------- progress bar ---------- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  width: 0%;
  z-index: 1000;
  transition: width .1s linear;
}

/* ---------- hero / breadcrumb ---------- */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, #eef3f4 100%);
  padding: 38px 0 30px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  text-decoration: none;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--teal);
}

.breadcrumb span.sep {
  margin: 0 10px;
  color: #cfcfcf;
}

.breadcrumb .current {
  color: var(--ink-soft);
}

.page-hero h1 {
  font-size: 34px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: .4px;
  line-height: 1.25;
  margin: 0;
  max-width: 820px;
}

/* ---------- USP strip ---------- */
.usp-strip {
  background: var(--teal);
  padding: 26px 0;
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.usp-item i {
  font-size: 20px;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
}

.usp-item .usp-text b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .4px;
  margin-bottom: 2px;
}

.usp-item .usp-text span {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, .75);
}

/* ---------- layout ---------- */
.layout,
.blog-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 44px 24px 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

article.article-main {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}

/* ---------- sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 100px;
}

/* ---------- thumbnail + toc ---------- */
.article-thumb {
  width: 100%;
  max-height: 420px;
  overflow: hidden;
  position: relative;
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 34px;
  border-bottom: 1px solid var(--line);
}

.meta-left {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: .3px;
}

.meta-item i {
  color: var(--teal);
}

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

.share-row span.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 4px;
}

.share-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-tint);
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition: .15s;
}

.share-btn:hover {
  background: var(--teal);
  color: #fff;
}

.share-btn.copied {
  background: var(--gold);
  color: #fff;
}

/* ---------- Table of Contents ("On This Page") ---------- */
.toc-wrap {
  margin: 26px 34px 0;
  padding: 18px 20px;
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
}

.toc-wrap p {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal);
}

.toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc-item-link {
  display: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  background: #fff;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .15s;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
  text-align: left;
}

.toc-item-link.visible {
  display: inline-block;
  animation: tocFade .25s ease;
}

.toc-item-link:hover,
.toc-item-link.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.toc-actions {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(12, 92, 119, 0.12);
}

.toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 20px;
  transition: .15s;
}

.toc-toggle:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.toc-toggle i {
  font-size: 10px;
  transition: transform .25s ease;
}

.toc-wrap.expanded .toc-toggle i {
  transform: rotate(180deg);
}

@keyframes tocFade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- TL;DR / Summary ---------- */
.tldr-box {
  margin: 16px 34px 10px;
  padding: 14px 18px;
  background: #f0f7f9;
  border-left: 4px solid var(--teal, #0c5c77);
  border-radius: 4px;
}

.tldr-badge {
  font-weight: 700;
  color: var(--teal, #0c5c77);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tldr-content {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: #333;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tldr-content p {
  margin-bottom: 8px;
}

.tldr-content p:last-child,
.tldr-content h2:last-child,
.tldr-content *:last-child {
  margin-bottom: 0 !important;
}

.article-body {
  padding: 24px 34px 34px;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6,
.article-body p,
.article-body ul,
.article-body ol,
.article-body li,
.article-body a,
.article-body blockquote {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.article-body img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 16px auto;
  border-radius: 4px;
}

.article-body iframe,
.article-body video,
.article-body embed {
  max-width: 100% !important;
}

.article-body pre,
.article-body code {
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
}

.article-body p {
  font-size: 16px;
  color: var(--body-text);
  margin: 0 0 18px;
  font-weight: 300;
  line-height: 1.75;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: .2px;
  margin: 40px 0 16px;
  padding-top: 6px;
  scroll-margin-top: 100px;
}

.article-body h2 .num {
  color: var(--teal);
  font-weight: 900;
  margin-right: 8px;
}

.article-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 28px 0 12px;
  scroll-margin-top: 100px;
}

.article-body h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 10px;
}

.article-body ul,
.blog-ul {
  list-style-type: disc !important;
  margin: 16px 0 24px !important;
  padding-left: 28px !important;
  color: var(--body-text);
  font-size: 16px;
  font-weight: 300;
}

.article-body ol,
.blog-ol {
  list-style-type: decimal !important;
  margin: 16px 0 24px !important;
  padding-left: 28px !important;
  color: var(--body-text);
  font-size: 16px;
  font-weight: 300;
}

.article-body li,
.blog-ul li,
.blog-ol li {
  margin-bottom: 10px !important;
  display: list-item !important;
  line-height: 1.6;
  color: var(--ink-soft);
}

.article-body strong,
.article-body b {
  font-weight: 700;
  color: var(--ink);
}

.article-body a.inline-link,
.article-body a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(12, 92, 119, .35);
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-body a.inline-link:hover,
.article-body a:hover {
  color: var(--teal-dark);
  text-decoration-color: var(--teal-dark);
}

.intro-lead {
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 400;
}

.article-body table,
table.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.article-body table th,
table.compare-table th {
  background: var(--teal);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 13px;
  text-transform: uppercase;
  border: 1px solid #084357;
  white-space: nowrap;
}

.article-body table td,
table.compare-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  color: var(--body-text);
  font-size: 13.5px;
  line-height: 1.5;
}

.article-body table tr:nth-child(even) td,
table.compare-table tr:nth-child(even) td {
  background: #fafbfc;
}

/* Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.table-responsive > table {
  margin: 0 !important;
  border: none !important;
}

.article-body table:not(.table-responsive table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.callout {
  display: flex;
  gap: 14px;
  background: var(--gold-tint);
  border-left: 3px solid var(--gold);
  padding: 18px 20px;
  margin: 6px 0 26px;
}

.callout i {
  color: var(--gold);
  font-size: 18px;
  margin-top: 2px;
}

.callout p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
}

/* ---------- related products (mid-article) ---------- */
.related-products {
  margin: 46px -34px 42px;
  padding: 38px 34px;
  background: linear-gradient(180deg, #f6f9fa, #ffffff);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.rp-head h3 {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  margin: 6px 0 0;
  letter-spacing: .2px;
}

.rp-head .eyebrow {
  display: block;
}

.rp-head a.rp-all {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .6px;
}

.rp-head a.rp-all:hover {
  text-decoration: underline;
}

.rp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.rp-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: .2s ease;
  display: flex;
  flex-direction: column;
}

.rp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.rp-card .rp-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.rp-card .rp-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .3s;
}

.rp-card:hover .rp-img img {
  transform: scale(1.08);
}

.rp-card .rp-info {
  padding: 14px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rp-card .rp-info b {
  font-size: 13.5px;
  color: var(--ink);
  letter-spacing: .3px;
  margin-bottom: 6px;
}

.rp-card .rp-info span {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.rp-card .rp-cta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 10px;
}

/* ---------- FAQ ---------- */
.faq-section {
  margin-top: 46px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.faq-q i {
  color: var(--teal);
  transition: .2s;
  flex-shrink: 0;
}

.faq-item.open .faq-q i {
  transform: rotate(45deg);
}

.faq-item.open .faq-a {
  max-height: 1000px;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}

.faq-a p {
  padding: 0 4px 18px;
  margin: 0;
  font-size: 15px;
  color: var(--body-text);
}

/* ---------- end CTA ---------- */
.end-cta {
  margin: 52px -34px -34px;
  padding: 52px 34px;
  background: radial-gradient(120% 160% at 10% 0%, #0e6c8a, var(--teal-dark));
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.end-cta::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
}

.end-cta::after {
  content: '';
  position: absolute;
  left: -40px;
  bottom: -80px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}

.end-cta h3 {
  font-size: 26px;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: .3px;
  position: relative;
  color: #fff;
}

.end-cta p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, .82);
  max-width: 560px;
  margin: 0 auto 26px;
  position: relative;
}

.end-cta .cta-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- sidebar ---------- */


.widget {
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink);
  border-left: 3px solid var(--teal);
}

.widget-title i {
  color: var(--teal);
  font-size: 15px;
}

/* quick form */
.quick-form {
  padding: 22px 20px 24px;
}

.quick-form p.sub {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 16px;
}

.quick-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.quick-form .field {
  margin-bottom: 14px;
}

.quick-form input,
.quick-form select,
.quick-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  padding: 11px 13px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: .15s;
  background: #fcfcfd;
}

.quick-form input:focus,
.quick-form select:focus,
.quick-form textarea:focus {
  border-color: var(--teal);
  background: #fff;
}

.quick-form textarea {
  resize: vertical;
  min-height: 70px;
}

.quick-form button {
  width: 100%;
  height: 46px;
  margin-top: 4px;
}

.form-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}

.form-note i {
  color: var(--teal);
  margin-top: 2px;
}

.form-success {
  display: none;
  padding: 16px 18px;
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  font-size: 13.5px;
  color: var(--ink-soft);
  align-items: flex-start;
  gap: 10px;
}

.form-success.show {
  display: flex;
}

.form-success i {
  color: var(--teal);
  margin-top: 2px;
}

/* related blog list */
.rb-list {
  display: flex;
  flex-direction: column;
}

.rb-item {
  display: flex;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: .15s;
}

.rb-item:last-child {
  border-bottom: 0;
}

.rb-item:hover {
  background: #fafbfd;
}

.rb-thumb {
  width: 70px;
  height: 64px;
  flex-shrink: 0;
  overflow: hidden;
}

.rb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rb-info b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 5px;
}

.rb-item:hover .rb-info b {
  color: var(--teal);
}

.rb-info span {
  font-size: 11px;
  color: var(--muted);
}

/* social widget */
.social-widget-body {
  display: flex;
  gap: 10px;
  padding: 18px 20px;
  flex-wrap: wrap;
}

.social-widget-body .share-btn {
  width: 38px;
  height: 38px;
  font-size: 15px;
}

/* trust mini badge */
.trust-mini {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-mini .t-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.trust-mini .t-row i {
  color: var(--teal);
  width: 18px;
  text-align: center;
}

/* back to top */
#back-to-top {
  position: fixed;
  right: 24px;
  bottom: 84px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(12, 92, 119, .35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
  z-index: 300;
  font-size: 16px;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--teal-dark);
}

/* ---------- Blog Index / Grid Styles ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 50px 0 80px;
}

.blog-card {
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
  text-decoration: none;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.blog-card .card-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.blog-card:hover .card-thumb img {
  transform: scale(1.08);
}

.blog-card .card-content {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card .card-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: .4px;
}

.blog-card .card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin: 0 0 12px;
  transition: color .15s ease;
}

.blog-card:hover .card-title {
  color: var(--teal);
}

.blog-card .card-excerpt {
  font-size: 14px;
  color: var(--body-text);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.blog-card .card-link {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-page-wrapper {
  width: 100%;
  overflow-x: clip;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {

  .layout,
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 20px 50px;
    gap: 32px;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-width: 0;
  }

  .rp-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 760px) {
  #back-to-top {
    right: 16px;
    bottom: 90px;
    /* Elevated to avoid overlapping floating call / chat buttons */
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .blog-page-wrapper .container {
    padding: 0 16px;
  }

  .page-hero {
    padding: 26px 0 20px;
  }

  .breadcrumb {
    font-size: 12px;
    margin-bottom: 10px;
  }

  .breadcrumb span.sep {
    margin: 0 6px;
  }

  .breadcrumb .current {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
    flex: 1 1 0;
  }

  .page-hero h1 {
    font-size: 22px;
    line-height: 1.3;
  }

  .usp-strip {
    padding: 18px 0;
  }

  .usp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
  }

  .usp-item {
    gap: 10px;
    align-items: flex-start;
  }

  .usp-item i {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .usp-item .usp-text b {
    font-size: 12.5px;
    line-height: 1.3;
  }

  .usp-item .usp-text span {
    font-size: 11px;
    line-height: 1.4;
  }

  .article-thumb {
    max-height: none;
  }

  .article-thumb img {
    height: auto;
  }

  .article-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 18px;
    gap: 14px;
  }

  .meta-left {
    gap: 8px 16px;
  }

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

  .toc-wrap {
    margin: 18px 16px 0;
    padding: 14px 16px;
  }

  .tldr-box {
    margin: 16px 16px 10px;
    padding: 12px 14px;
  }

  .article-body {
    padding: 16px 18px 24px;
    overflow-x: hidden;
  }

  .article-body h2 {
    font-size: 20px;
    line-height: 1.35;
    margin: 28px 0 12px;
  }

  .article-body h3 {
    font-size: 18px;
    line-height: 1.35;
    margin: 22px 0 10px;
  }

  .article-body h4 {
    font-size: 16px;
    margin: 16px 0 8px;
  }

  .article-body p {
    font-size: 15px;
    line-height: 1.65;
  }

  .article-body table,
  .article-body table.compare-table {
    min-width: 480px;
    font-size: 13px;
  }

  .article-body table th,
  .article-body table td {
    padding: 9px 12px;
  }

  .table-responsive {
    margin: 14px 0 20px;
  }

  .faq-q {
    font-size: 15px;
    padding: 14px 2px;
    gap: 10px;
  }

  .faq-a p {
    font-size: 14px;
    line-height: 1.6;
    padding: 0 2px 14px;
  }

  .faq-item.open .faq-a {
    max-height: 3000px;
  }

  /* Full-bleed to match desktop, offsetting .article-body side padding */
  .related-products {
    margin: 32px -18px 28px;
    padding: 24px 18px;
  }

  .rp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .rp-card .rp-info {
    padding: 10px 10px 12px;
  }

  .end-cta {
    margin: 36px -18px -24px;
    padding: 32px 18px;
  }

  /* Prevent iOS zoom on input focus */
  .quick-form input,
  .quick-form select,
  .quick-form textarea {
    font-size: 16px;
  }

  .widget-title {
    padding: 16px 16px;
  }

  .quick-form {
    padding: 18px 16px 20px;
  }

  .rb-item {
    padding: 12px 16px;
  }

  .end-cta h3 {
    font-size: 19px;
    line-height: 1.3;
    word-break: break-word;
  }

  .end-cta p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
  }

  .end-cta .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .end-cta .cta-buttons .btn {
    width: 100%;
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .layout,
  .blog-layout {
    padding: 20px 12px 40px;
  }

  .page-hero h1 {
    font-size: 20px;
  }

  .article-meta-bar {
    padding: 14px 14px;
  }

  .toc-wrap {
    margin: 14px 14px 0;
    padding: 12px 14px;
  }

  .tldr-box {
    margin: 14px 14px 10px;
    padding: 12px 12px;
  }

  .article-body {
    padding: 14px 14px 20px;
  }

  .article-body table,
  .article-body table.compare-table {
    min-width: 420px;
  }

  .related-products {
    margin: 28px -14px 24px;
    padding: 22px 14px;
  }

  .end-cta {
    margin: 32px -14px -20px;
    padding: 26px 14px;
  }
}

@media (max-width: 360px) {
  .usp-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Microsoft Fluent Share Modal ---------- */
.ms-share-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ms-share-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ms-share-dialog {
  width: 100%;
  max-width: 360px;
  background: #fcfcfc;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s cubic-bezier(0.1, 0.9, 0.2, 1);
}

.ms-share-overlay.active .ms-share-dialog {
  transform: scale(1);
}

.ms-share-header {
  padding: 16px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f0f0;
}

.ms-share-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-share-icon {
  width: 32px;
  height: 32px;
  background: #107c41;
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.ms-share-title {
  font-size: 15px;
  font-weight: 600;
  color: #242424;
  margin: 0;
}

.ms-share-close {
  background: transparent;
  border: 0;
  color: #616161;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.ms-share-close:hover {
  background: #f0f0f0;
}

.ms-share-section {
  padding: 14px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.ms-share-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.ms-share-label {
  font-size: 13px;
  font-weight: 600;
  color: #242424;
}

.ms-share-select {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  outline: none;
}

.ms-share-btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  background: #fff;
  color: #242424;
  cursor: pointer;
  border-radius: 4px;
}

.ms-share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  text-align: center;
}

.ms-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px 4px;
  border-radius: 8px;
  text-decoration: none;
  color: #242424;
  transition: background 0.15s;
}

.ms-app-item:hover {
  background: #f0f0f0;
}

.ms-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.ms-app-icon.mail {
  background: #0078d4;
}

.ms-app-icon.teams {
  background: #6264a7;
}

.ms-app-icon.onenote {
  background: #7719aa;
}

.ms-app-icon.whatsapp {
  background: #25d366;
}

.ms-app-icon.phone {
  background: #0078d4;
}

.ms-app-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}

.ms-app-name {
  font-size: 11px;
  color: #424242;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 64px;
}

.ms-share-footer {
  padding: 10px 20px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #616161;
}