/* Blog detail page. Brand: navy #072769, blue #6EC1E4, green #61CE70, Roboto. */
.single-post {
	--sx-navy: #072769;
	--sx-blue: #6ec1e4;
	--sx-green: #61ce70;
	--sx-green-d: #3fa94f;
	--sx-ink: #1d2433;
	--sx-text: #000;
	--sx-muted: #6b7280;
	--sx-line: #e3e8ef;
	--sx-soft: #f3f8fc;
	--sx-radius: 14px;
	--sx-shadow: 0 8px 28px rgba(7, 39, 105, .10);
}
.sx-post, .sx-post * { box-sizing: border-box; }
.sx-post { font-family: Roboto, system-ui, sans-serif; color: #000; background: #fff; }
.sx-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* progress */
.sx-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; background: transparent; }
.sx-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sx-blue), var(--sx-green)); }

/* hero */
.sx-hero { background: linear-gradient(180deg, var(--sx-soft), #fff); padding: 28px 0 8px; border-bottom: 1px solid var(--sx-line); }
.sx-breadcrumb p { margin: 0 0 14px; font-size: 13px; color: var(--sx-muted); text-align: left; }
.sx-breadcrumb a { color: var(--sx-navy); text-decoration: none; }
.sx-breadcrumb a:hover { text-decoration: underline; }
.sx-chip { display: inline-block; background: var(--sx-navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; text-decoration: none; margin-bottom: 12px; }
.sx-title { font-family: Roboto, sans-serif; color: #000; width: 100%; font-weight: 700; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.18; margin: 0 0 14px; max-width: 100%; }
.sx-dek { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: #000; max-width: 100%; margin: 0 0 18px; text-align: left; }
.sx-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0 22px; }
.sx-byline__text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--sx-ink); }
.sx-byline__meta { color: var(--sx-muted); font-size: 13px; }
.sx-avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--sx-navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.sx-avatar--lg { width: 72px; height: 72px; font-size: 24px; }

/* layout */
.sx-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding-top: 32px; padding-bottom: 56px; align-items: stretch; }
.sx-article { min-width: 0; }
.sx-figure { margin: 0 0 24px; }
.sx-figure img { width: 100%; height: auto; border-radius: var(--sx-radius); display: block; }

/* body: tame Elementor containers so content fits the reading column */
.sx-article__body { font-size: 18px; line-height: 1.75; max-width: 760px; }
.sx-article__body p { text-align: left; margin: 0 0 1.15em; }
.sx-article__body, .sx-article__body p, .sx-article__body li, .sx-article__body .elementor-widget-text-editor, .sx-article__body .elementor-widget-container { color: #000; }
.sx-article__body .elementor, .sx-article__body .elementor-section, .sx-article__body .e-con { --content-width: 100%; --padding-inline-start: 0px; --padding-inline-end: 0px; --container-max-width: 100%; max-width: 100%; }
.sx-article__body .e-con, .sx-article__body .elementor-container, .sx-article__body .elementor-column-wrap, .sx-article__body .elementor-widget-wrap { padding-left: 0; padding-right: 0; }
.sx-article__body h2, .sx-article__body .elementor-heading-title.elementor-size-large { font-family: Roboto, sans-serif; color: #000; font-weight: 700; line-height: 1.25; scroll-margin-top: 90px; }
.sx-article__body h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 1.8em 0 .6em; }
.sx-article__body h3 { color: #000; font-size: 21px; margin: 1.5em 0 .5em; scroll-margin-top: 90px; }
.sx-article__body ul, .sx-article__body ol { margin: 0 0 1.2em 1.3em; padding: 0; }
.sx-article__body li { margin-bottom: .45em; }
.sx-article__body a { color: #0b5aa8; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.sx-article__body img { max-width: 100%; height: auto; border-radius: 10px; }
.sx-article__body blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--sx-blue); background: var(--sx-soft); border-radius: 0 10px 10px 0; }

/* TOC */
.sx-toc { background: var(--sx-soft); border: 1px solid var(--sx-line); border-radius: var(--sx-radius); padding: 16px 18px; }
.sx-toc--inline { margin: 0 0 28px; max-width: 760px; display: none; }
.sx-toc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
.sx-toc summary::-webkit-details-marker { display: none; }
.sx-toc summary::after { content: '\002B'; font-size: 20px; line-height: 1; color: var(--sx-navy); }
.sx-toc[open] summary::after { content: '\2212'; }
.sx-toc--inline summary, .sx-toc__title { font-weight: 700; color: var(--sx-navy); font-size: 15px; margin: 0; cursor: pointer; }
.sx-toc__list { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: sx; }
.sx-toc__list li { counter-increment: sx; margin: 0; }
.sx-toc__list a { display: block; padding: 6px 0 6px 10px; border-left: 3px solid transparent; font-size: 14px; line-height: 1.4; color: var(--sx-text); text-decoration: none; }
.sx-toc__list a::before { content: counter(sx) ". "; color: var(--sx-muted); }
.sx-toc__list a:hover, .sx-toc__list a.is-active { color: var(--sx-navy); border-left-color: var(--sx-green); font-weight: 500; }
.sx-toc[hidden] { display: none; }

/* sidebar */
.sx-side__sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.sx-toc--side .sx-toc__list { max-height: 30vh; overflow-y: auto; scrollbar-width: thin; }
.sx-card { background: #fff; border: 1px solid var(--sx-line); border-top: 4px solid var(--sx-green); border-radius: var(--sx-radius); padding: 22px; box-shadow: var(--sx-shadow); }
.sx-card__eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sx-green-d); }
.sx-card__title { margin: 0 0 6px; font-size: 22px; color: var(--sx-navy); font-family: Roboto, sans-serif; }
.sx-card__text { margin: 0 0 14px; font-size: 14px; line-height: 1.5; text-align: left; }
.sx-card__alt { display: flex; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--sx-line); }
.sx-card__alt a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 14px; font-weight: 600; color: var(--sx-navy); text-decoration: none; padding: 9px 6px; border: 1px solid var(--sx-line); border-radius: 8px; }
.sx-card__alt a:hover { border-color: var(--sx-navy); }

/* Contact Form 7 inside cards */
.sx-card .wpcf7 p { margin: 0 0 10px; text-align: left; }
.sx-card .wpcf7 label { font-size: 13px; font-weight: 500; color: var(--sx-ink); display: block; }
.sx-card .wpcf7 input[type=text], .sx-card .wpcf7 input[type=email], .sx-card .wpcf7 input[type=tel], .sx-card .wpcf7 textarea, .sx-card .wpcf7 select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; font-size: 15px; background: #fff; }
.sx-card .wpcf7 textarea { min-height: 84px; }
.sx-card .wpcf7 input:focus, .sx-card .wpcf7 textarea:focus { outline: 2px solid var(--sx-blue); outline-offset: 1px; border-color: var(--sx-blue); }
.sx-card .wpcf7 input[type=submit] { width: 100%; background: var(--sx-green); color: #06310f; font-weight: 700; font-size: 16px; border: 0; border-radius: 8px; padding: 13px; cursor: pointer; }
.sx-card .wpcf7 input[type=submit]:hover { background: var(--sx-green-d); color: #fff; }
.sx-card .wpcf7 .wpcf7-list-item { margin: 0; font-size: 12px; }
.sx-card .wpcf7-not-valid-tip { font-size: 12px; }

/* buttons */
.sx-btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; text-align: center; border: 2px solid transparent; transition: transform .15s, background .15s; }
.sx-btn:hover { transform: translateY(-1px); }
.sx-btn--primary { background: var(--sx-navy); color: #fff; }
.sx-btn--primary:hover { background: #0a3a96; color: #fff; }
.sx-btn--ghost { border-color: var(--sx-navy); color: var(--sx-navy); background: transparent; }
.sx-btn--accent { background: var(--sx-green); color: #06310f; }
.sx-btn--accent:hover { background: #7bdc88; color: #06310f; }
.sx-btn--light { border-color: #fff; color: #fff; }
.sx-btn--light:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* inline CTA, disclaimer, author */
.sx-inline-cta { max-width: 760px; margin: 40px 0 24px; padding: 26px; border-radius: var(--sx-radius); background: linear-gradient(135deg, var(--sx-navy), #0a3a96); color: #fff; display: grid; gap: 16px; }
.sx-inline-cta h2 { color: #fff; font-family: Roboto, sans-serif; font-size: 24px; margin: 0 0 6px; }
.sx-inline-cta p { margin: 0; color: #dbe6ff; text-align: left; }
.sx-inline-cta .sx-btn--primary { background: var(--sx-green); color: #06310f; }
.sx-inline-cta .sx-btn--ghost { border-color: #fff; color: #fff; }
.sx-inline-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sx-tags { max-width: 760px; font-size: 14px; }
.sx-tags a { display: inline-block; background: var(--sx-soft); border: 1px solid var(--sx-line); border-radius: 999px; padding: 3px 12px; margin: 0 4px 4px 0; color: var(--sx-navy); text-decoration: none; }
.sx-disclaimer { max-width: 760px; font-size: 13px; line-height: 1.55; color: var(--sx-muted); background: #fafafa; border-left: 3px solid var(--sx-line); padding: 10px 14px; text-align: left; }
.sx-author { max-width: 760px; margin-top: 28px; padding: 22px; display: flex; gap: 18px; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); background: var(--sx-soft); }
.sx-author h2 { margin: 0; font-size: 20px; color: var(--sx-navy); font-family: Roboto, sans-serif; }
.sx-author p { margin: 4px 0; font-size: 14.5px; line-height: 1.55; text-align: left; }
.sx-author__role { color: var(--sx-muted); font-size: 13.5px !important; }

/* related + end cta */
.sx-related { background: var(--sx-soft); padding: 48px 0; }
.sx-related h2 { color: var(--sx-navy); font-family: Roboto, sans-serif; margin: 0 0 22px; font-size: 26px; }
.sx-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.sx-rcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--sx-line); border-radius: var(--sx-radius); overflow: hidden; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.sx-rcard:hover { box-shadow: var(--sx-shadow); transform: translateY(-3px); }
.sx-rcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sx-rcard__title { padding: 4px 16px 0; font-weight: 700; color: var(--sx-navy); line-height: 1.35; }
.sx-rcard__meta { padding: 0 16px 16px; font-size: 13px; color: var(--sx-muted); }
.sx-endcta { background: var(--sx-navy); color: #fff; text-align: center; padding: 52px 0; }
.sx-endcta h2 { color: #fff; font-family: Roboto, sans-serif; margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.sx-endcta p { color: #cfdcff; margin: 0 0 22px; text-align: center; }
.sx-endcta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

/* mobile action bar */
.sx-mobilebar { display: none; }

@media (max-width: 1024px) {
	.sx-layout { grid-template-columns: 1fr; gap: 28px; }
	.sx-side__sticky { position: static; }
	.sx-toc--side { display: none; }
	.sx-toc--inline { display: block; }
	.sx-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.sx-article__body { font-size: 17px; }
	.sx-related__grid { grid-template-columns: 1fr; }
	.sx-author { flex-direction: column; }
	.sx-btn { width: 100%; }
	.sx-post { padding-bottom: 64px; }
	.sx-mobilebar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 9998; background: #fff; border-top: 1px solid var(--sx-line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .08); padding-bottom: env(safe-area-inset-bottom); }
	.sx-mobilebar a { flex: 1; text-align: center; padding: 12px 4px; font-size: 13px; font-weight: 700; color: var(--sx-navy); text-decoration: none; }
	.sx-mobilebar a i { display: block; font-size: 18px; margin-bottom: 2px; }
	.sx-mobilebar a.is-primary { background: var(--sx-green); color: #06310f; }
}
@media (prefers-reduced-motion: reduce) { .sx-btn, .sx-rcard { transition: none; } }

/* Stack Elementor columns; make images and videos fill the article column */
.sx-article__body .elementor-container, .sx-article__body .e-con { flex-wrap: wrap; }
.sx-article__body .elementor-column, .sx-article__body .e-con > .e-con { width: 100% !important; max-width: 100% !important; flex: 0 0 100%; }
.sx-article__body .elementor-widget-image img, .sx-article__body figure img { width: 100%; height: auto; display: block; }
.sx-article__body iframe, .sx-article__body video { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; background: #000; }
.sx-article__body .elementor-widget-html, .sx-article__body .elementor-widget-video { margin: 1.2em 0; }
.sx-article__body .elementor-widget:not(:last-child) { margin-bottom: 0; }

/* icons */
.sx-ico { width: 18px; height: 18px; flex: none; }
.sx-card__alt a:first-child { background: var(--sx-navy); border-color: var(--sx-navy); color: #fff; }
.sx-card__alt a:last-child { background: #25d366; border-color: #25d366; color: #fff; }
.sx-card__alt a:hover { filter: brightness(1.08); }
.sx-mobilebar a .sx-ico { display: block; margin: 0 auto 3px; width: 22px; height: 22px; }
img.sx-avatar { object-fit: cover; }

/* form spacing (CF7 puts every field in one <p> separated by <br>) */
.sx-card .wpcf7 form br { display: none; }
.sx-card .wpcf7 .wpcf7-form-control-wrap { display: block; margin-bottom: 14px; }
.sx-card .wpcf7 p { margin: 0; }
.sx-card .wpcf7 input[type=text], .sx-card .wpcf7 input[type=email], .sx-card .wpcf7 input[type=tel], .sx-card .wpcf7 textarea { margin: 0; }
.sx-card .wpcf7 .wpcf7-acceptance label { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.45; font-weight: 400; color: #333; }
.sx-card .wpcf7 .wpcf7-acceptance input { margin-top: 3px; flex: none; }
.sx-card .wpcf7 .wpcf7-submit { margin-top: 6px; }
.sx-card .wpcf7 .wpcf7-not-valid-tip { margin-top: 4px; }
.sx-card .wpcf7 .wpcf7-response-output { margin: 12px 0 0; font-size: 13px; }

/* H2: editorial style - hairline rule with gradient accent */
.sx-article__body h2, .sx-article__body h2.elementor-heading-title { position: relative; margin: 2.2em 0 .7em; padding-top: 20px; border-top: 1px solid var(--sx-line); font-weight: 800; letter-spacing: -.01em; }
.sx-article__body h2::before { content: ""; position: absolute; top: -2px; left: 0; width: 64px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sx-navy), var(--sx-blue) 60%, var(--sx-green)); }
.sx-article__body h2:first-of-type { margin-top: 1.2em; }

/* Tables: clean comparison-table look (JS wraps each table for horizontal scroll) */
.sx-table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--sx-line); border-radius: 12px; box-shadow: 0 2px 10px rgba(7, 39, 105, .06); -webkit-overflow-scrolling: touch; }
.sx-article__body table { display: table; width: 100%; min-width: 560px; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15.5px; line-height: 1.5; background: #fff; color: #000; table-layout: auto; }
.sx-article__body table th, .sx-article__body table td { padding: 13px 16px; border: 0; border-bottom: 1px solid var(--sx-line); border-right: 1px solid var(--sx-line); text-align: left; vertical-align: top; background: transparent; }
.sx-article__body table th:last-child, .sx-article__body table td:last-child { border-right: 0; }
.sx-article__body table tr:last-child td { border-bottom: 0; }
.sx-article__body table p { margin: 0; }
.sx-article__body table thead th, .sx-article__body table tr:first-child td, .sx-article__body table tr:first-child th { background: var(--sx-navy); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .02em; border-right-color: rgba(255, 255, 255, .18); border-bottom: 0; }
.sx-article__body table thead th *, .sx-article__body table tr:first-child td *, .sx-article__body table tr:first-child th * { color: #fff; }
.sx-article__body table tbody tr:nth-child(even) td { background: var(--sx-soft); }
.sx-article__body table tr:not(:first-child) td:first-child, .sx-article__body table tbody th { font-weight: 700; color: var(--sx-navy); background: #eaf4fb; width: 22%; }
.sx-article__body table tr:not(:first-child):hover td { background: #f0f9ee; }
.sx-article__body table tr:not(:first-child):hover td:first-child { background: #dff0f9; }
