/*
 * ATWP blog layout. Loaded after alliancetek.com new_design/css/style.css.
 *
 * Structure only: spacing, grid, borders and positioning. Fonts, font sizes and
 * colours come from the site stylesheet through its own classes
 * (at-common-des, at-head-*, at-common-fill-btn, at-bg-light, Bootstrap accordion).
 */

:root {
	--atwp-accent: currentColor; /* Replaced at runtime with the site's primary button colour. */
	--atwp-line: rgba(0, 0, 0, 0.1);
	--atwp-radius: 12px;
	--atwp-gap: 32px;
}

html {
	overflow-x: hidden;
}

/*
 * "overflow-x: hidden" on html/body turns body into a scroll box and breaks sticky
 * sidebars. "clip" hides horizontal overflow the same way without that side effect.
 * Browsers that don't support clip ignore this and keep the site's rule.
 */
html,
body {
	overflow-x: clip !important;
}

@media only screen and (max-width: 575px) {
	.at-top-arrow {
		display: none !important;
	}
}

.atwp-skip:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	padding: 10px 16px;
	background: #fff;
}

.admin-bar .at-header.at-header-fixed,
.admin-bar .at-header.fixed-top {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .at-header.at-header-fixed,
	.admin-bar .at-header.fixed-top {
		top: 46px;
	}
}

/* ---------- Hero ---------- */
.atwp-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 0;
	margin: 0 0 18px;
	padding: 0;
	color: inherit;
}

.atwp-breadcrumb li {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.atwp-breadcrumb li + li::before {
	content: "/";
	margin: 0 10px;
	opacity: 0.6;
}

.atwp-breadcrumb a {
	color: inherit;
	text-decoration: none;
}

.atwp-breadcrumb a:hover,
.atwp-breadcrumb a:focus-visible {
	text-decoration: underline;
}

.atwp-breadcrumb li:last-child span {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	max-width: 46ch;
	opacity: 0.85;
}

.atwp-hero .at-head-60 {
	overflow-wrap: break-word;
}

.atwp-hero-intro {
	max-width: 680px;
	margin: 18px 0 0;
}

/* Hero starts below the fixed site header on every screen size (height set in header.php). */
.atwp-hero.at-inner-hero {
	padding-top: calc(var(--atwp-header-h, 0px) + 44px) !important;
	padding-bottom: 72px !important;
}

@media (max-width: 767.98px) {
	.atwp-hero.at-inner-hero {
		padding-top: calc(var(--atwp-header-h, 0px) + 28px) !important;
		padding-bottom: 48px !important;
	}

	.atwp-hero .at-head-60 {
		font-size: clamp(26px, 7vw, 34px) !important;
		line-height: 1.25 !important;
	}

	.atwp-hero .atwp-breadcrumb ol {
		margin-bottom: 14px;
		font-size: 14px;
	}
}

/* Hero text: always white and readable on top of the photo. */
.atwp-hero .at-company-des {
	padding-top: 0;
}

.atwp-hero .atwp-breadcrumb ol,
.atwp-hero .atwp-breadcrumb a,
.atwp-hero .atwp-breadcrumb span,
.atwp-hero .at-head-60,
.atwp-hero .at-border-head,
.atwp-hero .atwp-hero-intro {
	color: #fff !important;
}

.atwp-hero .atwp-breadcrumb ol {
	opacity: 0.9;
}

.atwp-hero .atwp-hero-intro {
	font-size: 18px;
	line-height: 1.6;
	opacity: 0.92;
}

.atwp-hero .at-head-60,
.atwp-hero .atwp-hero-intro,
.atwp-hero .atwp-breadcrumb {
	text-shadow: 0 1px 12px rgba(0, 20, 50, 0.35);
}

/* Extra dark-blue layer on the photo so white text has strong contrast. */
.atwp-hero .at-hero-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(90deg, rgba(6, 32, 70, 0.88) 0%, rgba(6, 32, 70, 0.62) 55%, rgba(6, 32, 70, 0.3) 100%);
	pointer-events: none;
}

.atwp-hero .container-xl {
	position: relative;
	z-index: 2;
}

@media (max-width: 767.98px) {
	.atwp-hero .at-hero-bg::after {
		background: rgba(6, 32, 70, 0.78);
	}

	.atwp-hero .atwp-hero-intro {
		font-size: 16px;
	}
}

.atwp-hero .atwp-meta {
	margin-top: 20px;
}

/* ---------- Meta line ---------- */
.atwp-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 0;
	margin: 0;
	padding: 0;
}

.atwp-meta li + li::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 12px 2px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.6;
	vertical-align: middle;
}

.atwp-meta a {
	color: inherit;
	text-decoration: none;
}

.atwp-meta a:hover {
	text-decoration: underline;
}

/* ---------- Article ---------- */
.atwp-featured {
	margin: 0 0 var(--atwp-gap);
}

.atwp-featured img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--atwp-radius);
}

.atwp-content {
	overflow-wrap: break-word;
}

.atwp-content > *:first-child {
	margin-top: 0;
}

.atwp-content h2,
.atwp-content h3,
.atwp-content h4 {
	margin: 1.6em 0 0.6em;
	scroll-margin-top: 120px;
}

.atwp-content ul,
.atwp-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.atwp-content img,
.atwp-content iframe,
.atwp-content video {
	max-width: 100%;
}

.atwp-content img {
	height: auto;
}

.atwp-content pre {
	max-width: 100%;
	overflow-x: auto;
}

.atwp-content .atwp-table {
	margin: 1.5em 0;
	border: 1px solid var(--atwp-line);
	border-radius: 8px;
}

.atwp-content .atwp-table table {
	width: 100% !important;
	margin: 0;
	border-collapse: collapse;
}

.atwp-content .atwp-table th,
.atwp-content .atwp-table td {
	padding: 12px 14px;
	border: 1px solid var(--atwp-line);
	vertical-align: top;
	text-align: left;
}

.atwp-content .callbox,
.atwp-callbox {
	margin: 2em 0;
	padding: 22px 26px;
	border: 1px solid var(--atwp-line);
	border-left-width: 4px;
	border-radius: 8px;
}

.atwp-content .callbox p:last-child,
.atwp-callbox p {
	margin: 0;
}

.atwp-content .callbox br,
.atwp-content .callbox .callphone {
	display: none;
}

.atwp-content .callbox .calltext,
.atwp-content .callbox p {
	margin: 0 !important;
	padding: 0 !important;
}

.atwp-content .callbox .callphone {
	display: none;
}

.atwp-content .alignleft { float: left; margin: 5px 24px 12px 0; }
.atwp-content .alignright { float: right; margin: 5px 0 12px 24px; }
.atwp-content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ---------- Key Takeaways ---------- */
.atwp-takeaways {
	margin: 0 0 var(--atwp-gap);
	padding: 24px 26px;
	border-radius: var(--atwp-radius);
}

.atwp-box-title {
	margin: 0 0 12px;
}

.atwp-takeaways ul {
	margin: 0;
	padding-left: 1.2em;
}

.atwp-takeaways li {
	margin: 6px 0;
}

/* ---------- Responsive (general) ---------- */
@media (max-width: 767.98px) {
	:root {
		--atwp-gap: 24px;
	}

	.atwp-content .alignleft,
	.atwp-content .alignright {
		float: none;
		margin: 12px 0;
	}

	.atwp-content .atwp-table table {
		min-width: 560px;
	}

	.atwp-breadcrumb li:last-child span {
		max-width: 26ch;
	}
}

/* =========================================================================
 * Blog details: Space-O layout
 *
 * Desktop: [CTA card] [article] [Contents], centred as one unit so it looks balanced on
 * any screen from 1200px to 4K. Tablet: article + Contents. Mobile: one column.
 * Font family comes from the site; sizes follow the reference design.
 * ========================================================================= */

:root {
	--atwp-side-l: 250px;
	--atwp-side-r: 260px;
	--atwp-main: 740px;
	--atwp-col-gap: 48px;
	--atwp-tint: rgba(30, 102, 177, 0.06);
	--atwp-tint-line: rgba(30, 102, 177, 0.16);
	--atwp-ink-soft: rgba(0, 0, 0, 0.66);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	:root {
		--atwp-tint: color-mix(in srgb, var(--atwp-accent-raw, #1e66b1) 7%, #fff);
		--atwp-tint-line: color-mix(in srgb, var(--atwp-accent-raw, #1e66b1) 18%, #fff);
	}
}

.atwp-progress {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1040;
	height: 3px;
	pointer-events: none;
}

.atwp-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--atwp-accent);
}

.atwp-single-wrap {
	width: 100%;
	padding: 0 32px;
}

.atwp-single {
	display: grid;
	grid-template-columns: var(--atwp-side-l) minmax(0, var(--atwp-main)) var(--atwp-side-r);
	grid-template-areas:
		". head ."
		"left body right"
		". foot .";
	justify-content: center;
	column-gap: var(--atwp-col-gap);
	padding: calc(var(--atwp-header-h, 0px) + 48px) 0 88px;
}

.atwp-single.no-toc {
	grid-template-areas:
		". head ."
		"left body ."
		". foot .";
}

.atwp-single-head { grid-area: head; min-width: 0; }
.atwp-single-body { grid-area: body; min-width: 0; }
.atwp-single-foot { grid-area: foot; min-width: 0; }
.atwp-single-left { grid-area: left; min-width: 0; }
.atwp-single-right { grid-area: right; min-width: 0; }

.atwp-sticky {
	position: sticky;
	top: var(--atwp-sticky-top, 110px);
}

/* JavaScript-driven sticking (assets/js/atwp-single.js) so site CSS cannot break it. */
.atwp-js-sticky .atwp-single-left,
.atwp-js-sticky .atwp-single-right {
	position: relative;
}

.atwp-js-sticky .atwp-sticky {
	position: relative;
	top: auto;
}

.atwp-js-sticky .atwp-sticky.is-fixed {
	position: fixed;
	z-index: 5;
}

.atwp-js-sticky .atwp-sticky.is-bottom {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
}

/* Large screens: more room for everything, still centred. */
@media (min-width: 1600px) {
	:root {
		--atwp-side-l: 270px;
		--atwp-side-r: 290px;
		--atwp-main: 800px;
		--atwp-col-gap: 64px;
	}
}

@media (min-width: 2200px) {
	:root {
		--atwp-side-l: 320px;
		--atwp-side-r: 340px;
		--atwp-main: 900px;
		--atwp-col-gap: 96px;
	}

	.atwp-single-body .atwp-content {
		font-size: 18px;
	}
}

/* ---------- Head ---------- */
.atwp-single-title {
	margin: 0 0 16px;
	font-size: clamp(26px, 1.4vw + 14px, 38px);
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	overflow-wrap: break-word;
}

.atwp-single-head .atwp-breadcrumb ol {
	margin: 0 0 24px;
	font-size: 14px;
	line-height: 1.5;
}

.atwp-single-head .atwp-breadcrumb a {
	color: var(--atwp-accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atwp-single-head .atwp-breadcrumb li + li::before {
	content: "\203A";
	margin: 0 8px;
	opacity: 0.6;
}

.atwp-single-head .atwp-breadcrumb li:last-child span {
	opacity: 0.85;
	white-space: normal;
	max-width: none;
}

.atwp-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-bottom: 20px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--atwp-line);
	font-size: 14px;
}

.atwp-byline-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.atwp-byline-author img {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	object-fit: cover;
}

.atwp-byline-author a {
	color: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atwp-byline-date {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--atwp-ink-soft);
}

.atwp-byline-date strong {
	color: initial;
	color: inherit;
}

.atwp-single-head .atwp-featured {
	margin: 0 0 36px;
}

.atwp-single-head .atwp-featured img {
	border-radius: 10px;
}

/* ---------- Left CTA card ---------- */
.atwp-side-cta {
	position: relative;
	overflow: hidden;
	padding: 28px 24px 26px;
	border: 1px solid var(--atwp-tint-line);
	border-radius: 14px;
	background: var(--atwp-tint);
}

.atwp-side-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--atwp-accent);
}

.atwp-side-cta-title {
	margin: 0 0 12px;
	font-size: 20px !important;
	font-weight: 600;
	line-height: 1.35;
}

.atwp-side-cta-text {
	margin: 0 0 22px;
	font-size: 15px;
	line-height: 1.6;
	color: var(--atwp-ink-soft);
}

.atwp-side-cta .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 11px 18px;
	font-size: 15px;
	white-space: nowrap;
}

/* ---------- Right: Contents ---------- */
.atwp-toc {
	padding: 22px 10px 18px 22px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 14px;
	background: #f8f9fb;
}

.atwp-toc-details > summary {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 12px 14px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 18px !important;
	font-weight: 600;
	list-style: none;
	cursor: default;
}

.atwp-toc-details > summary::before {
	content: "";
	flex: 0 0 auto;
	width: 4px;
	height: 18px;
	border-radius: 2px;
	background: var(--atwp-accent);
}

.atwp-toc-details > summary::-webkit-details-marker {
	display: none;
}

.atwp-toc-list {
	max-height: calc(100vh - var(--atwp-sticky-top, 110px) - 110px);
	margin: 0;
	padding: 0 12px 0 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

.atwp-toc-list::-webkit-scrollbar {
	width: 4px;
}

.atwp-toc-list::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.25);
}

.atwp-toc-list li {
	margin: 0;
}

.atwp-toc-list a {
	position: relative;
	display: block;
	padding: 7px 0 7px 14px;
	color: var(--atwp-ink-soft);
	font-size: 14px;
	line-height: 1.45;
	text-decoration: none;
	transition: color 0.15s;
}

.atwp-toc-list a:hover,
.atwp-toc-list a:focus-visible {
	color: var(--atwp-accent);
}

.atwp-toc-h2 > a.is-active {
	color: inherit;
	color: #111;
	font-weight: 600;
}

.atwp-toc-h2 > a.is-active::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.05em;
	border-left: 6px solid currentColor;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
}

.atwp-toc-sub {
	display: none;
	margin: 0 0 6px;
	padding-left: 14px;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
	margin-left: 14px;
}

.atwp-toc-h2.is-open > .atwp-toc-sub {
	display: block;
}

.atwp-toc-sub a {
	padding-left: 6px;
	font-size: 13px;
	opacity: 0.85;
}

.atwp-toc-sub a.is-active {
	color: #111;
	font-weight: 600;
	opacity: 1;
}

/* ---------- Article content ---------- */
.atwp-single-body .atwp-content {
	font-size: 17px;
	line-height: 1.78;
}

.atwp-single-body .atwp-content p {
	margin: 0 0 18px;
}

.atwp-single-body .atwp-content h2 {
	margin: 44px 0 16px;
	font-size: clamp(23px, 0.7vw + 16px, 30px);
	font-weight: 600;
	line-height: 1.32;
}

.atwp-single-body .atwp-content h3 {
	margin: 30px 0 12px;
	font-size: clamp(19px, 0.35vw + 15px, 22px);
	font-weight: 600;
	line-height: 1.4;
}

.atwp-single-body .atwp-content h4 {
	margin: 24px 0 10px;
	font-size: 18px;
	font-weight: 600;
}

.atwp-single-body .atwp-content > ul,
.atwp-single-body .atwp-content > ol {
	margin: 24px 0;
	padding: 24px 28px 24px 48px;
	border: 1px solid var(--atwp-tint-line);
	border-radius: 4px;
	box-shadow: 0 10px 24px -18px rgba(0, 40, 80, 0.4);
}

.atwp-single-body .atwp-content > ul li,
.atwp-single-body .atwp-content > ol li {
	margin-bottom: 10px;
}

.atwp-single-body .atwp-content > ul li:last-child,
.atwp-single-body .atwp-content > ol li:last-child {
	margin-bottom: 0;
}

.atwp-single-body .atwp-content .atwp-table {
	margin: 24px 0;
	border-radius: 4px;
}

.atwp-single-body .atwp-content .atwp-table table {
	font-size: 15px;
	line-height: 1.5;
}

.atwp-single-body .atwp-content .atwp-table th,
.atwp-single-body .atwp-content .atwp-table tr:first-child td {
	font-weight: 600;
	background: #f8f9fb;
}

/* Key Takeaways */
.atwp-single-body .atwp-takeaways {
	margin-bottom: 32px;
	padding: 24px 26px;
	border: 1px solid var(--atwp-tint-line);
	border-radius: 10px;
	background: var(--atwp-tint);
}

.atwp-single-body .atwp-takeaways .atwp-box-title {
	font-size: 18px !important;
	font-weight: 600;
}

.atwp-single-body .atwp-takeaways li {
	font-size: 16px;
	line-height: 1.6;
}


/* FAQ box */
.atwp-faq {
	margin: 40px 0;
	overflow: hidden;
	border: 1px solid var(--atwp-tint-line);
	border-radius: 4px;
	box-shadow: 0 10px 24px -18px rgba(0, 40, 80, 0.4);
}

.atwp-single-body .atwp-content .atwp-faq > h2 {
	margin: 0;
	padding: 16px 22px;
	text-align: center;
	background: var(--atwp-tint);
	border-bottom: 1px solid var(--atwp-tint-line);
}

.atwp-faq-items {
	padding: 4px 24px 24px;
}

.atwp-single-body .atwp-content .atwp-faq-item h3 {
	margin: 22px 0 8px;
	font-size: 19px;
}

.atwp-faq-item > *:last-child {
	margin-bottom: 0;
}

/* ---------- Like + share ---------- */
.atwp-share-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 60px 0 40px;
}

.atwp-like,
.atwp-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 11px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 20px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	transition: box-shadow 0.2s, color 0.2s;
}

.atwp-like:hover,
.atwp-share-btn:hover,
.atwp-like:focus-visible,
.atwp-share-btn:focus-visible {
	color: var(--atwp-accent);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
}

.atwp-like[aria-pressed="true"] svg {
	color: var(--atwp-accent);
}

.atwp-like-count {
	font-size: 14px;
	text-decoration: underline;
}

/* ---------- Author box ---------- */
.atwp-author {
	padding: 44px 48px 48px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	border-radius: 14px;
	background: linear-gradient(160deg, #f8f9fb, var(--atwp-tint));
	text-align: center;
}

.atwp-author-label {
	margin: 0 0 18px;
	font-size: 14px;
	letter-spacing: 0.02em;
	color: var(--atwp-ink-soft);
}

.atwp-author-photo img {
	display: block;
	width: 104px;
	height: 104px;
	margin: 0 auto 18px;
	border: 4px solid #fff;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.atwp-author-name {
	margin: 0 0 6px;
	font-size: 22px !important;
	font-weight: 600;
}

.atwp-author-name a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.atwp-author-title {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--atwp-ink-soft);
}

.atwp-author-bio {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.7;
}

.atwp-author-bio p {
	margin: 0 0 8px;
}

.atwp-author-bio p:last-child {
	margin: 0;
}

.atwp-author-social {
	display: inline-flex;
	margin-top: 16px;
}

/* ---------- Tablet landscape: article + Contents, CTA card below the article ---------- */
@media (max-width: 1279.98px) {
	:root {
		--atwp-side-l: 230px;
		--atwp-side-r: 240px;
		--atwp-col-gap: 36px;
	}

	.atwp-single-wrap {
		padding: 0 24px;
	}
}

@media (max-width: 1199.98px) {
	.atwp-single {
		grid-template-columns: minmax(0, 1fr) var(--atwp-side-r);
		grid-template-areas:
			"head ."
			"body right"
			"left ."
			"foot .";
		max-width: 1080px;
		margin: 0 auto;
	}

	.atwp-single.no-toc {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "body" "left" "foot";
		max-width: 800px;
	}

	.atwp-single-left {
		margin-top: 40px;
	}

	.atwp-single-left .atwp-sticky {
		position: static;
	}

	.atwp-side-cta {
		display: grid;
		grid-template-columns: 1fr auto;
		grid-template-areas: "title btn" "text btn";
		column-gap: 28px;
		align-items: center;
		padding: 26px 28px;
	}

	.atwp-side-cta-title { grid-area: title; }
	.atwp-side-cta-text { grid-area: text; margin-bottom: 0; }
	.atwp-side-cta .btn { grid-area: btn; width: auto; }
}

/* ---------- Tablet portrait and mobile: one column ---------- */
@media (max-width: 991.98px) {
	.atwp-single,
	.atwp-single.no-toc {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "head" "right" "body" "left" "foot";
		max-width: 760px;
		padding-top: calc(var(--atwp-header-h, 0px) + 32px);
	}

	.atwp-single-right {
		margin-bottom: 28px;
	}

	.atwp-single .atwp-sticky {
		position: static;
	}

	.atwp-toc {
		padding: 0;
	}

	.atwp-toc-details > summary {
		position: relative;
		margin: 0;
		padding: 16px 48px 16px 18px;
		border-bottom: 0;
		cursor: pointer;
	}

	.atwp-toc-details[open] > summary {
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	}

	.atwp-toc-details > summary::after {
		content: "+";
		position: absolute;
		right: 18px;
		top: 50%;
		font-weight: 400;
		transform: translateY(-50%);
	}

	.atwp-toc-details[open] > summary::after {
		content: "\2212";
	}

	.atwp-toc-list {
		max-height: 60vh;
		padding: 10px 18px 16px;
	}

	.atwp-toc-sub {
		display: block;
	}
}

@media (max-width: 767.98px) {
	.atwp-single-wrap {
		padding: 0 18px;
	}

	.atwp-single {
		padding-bottom: 56px;
	}

	.atwp-single-body .atwp-content {
		font-size: 16px;
		line-height: 1.75;
	}

	.atwp-single-body .atwp-content h2 {
		margin-top: 36px;
	}

	.atwp-single-body .atwp-content > ul,
	.atwp-single-body .atwp-content > ol {
		padding: 18px 18px 18px 38px;
	}

	.atwp-faq-items {
		padding: 4px 18px 18px;
	}

	.atwp-author {
		padding: 32px 22px;
	}

	.atwp-share-row {
		margin: 44px 0 28px;
	}

	.atwp-byline {
		font-size: 13px;
	}

	.atwp-side-cta {
		grid-template-columns: 1fr;
		grid-template-areas: "title" "text" "btn";
		padding: 24px 22px;
	}

	.atwp-side-cta-text {
		margin-bottom: 20px;
	}

	.atwp-side-cta .btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atwp-toc-list a,
	.atwp-like,
	.atwp-share-btn,
	.atwp-btn-arrow span {
		transition: none;
	}
}

/* Meta line on small screens: wrap cleanly without leading dots. */
@media (max-width: 575.98px) {
	.atwp-meta {
		column-gap: 14px;
	}

	.atwp-meta li + li::before {
		display: none;
	}
}

/* =========================================================================
 * CTA box (mid-article, and [atwp_cta] shortcode anywhere in a post)
 * Heading, text and button on the left; optional person image standing on the
 * bottom edge on the right, with a soft circle behind it.
 * ========================================================================= */
.atwp-cta-box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	align-items: center;
	overflow: hidden;
	margin: 40px 0;
	padding: 32px 34px;
	border: 1.5px solid rgba(30, 102, 177, 0.3);
	border-radius: 20px;
	background: var(--atwp-tint, #eef5fc);
	box-shadow: 0 20px 40px -30px rgba(0, 50, 110, 0.5);
}

.atwp-cta-box.has-image {
	grid-template-columns: minmax(0, 1fr) 250px;
	column-gap: 12px;
	padding: 32px 0 0 34px;
}

.atwp-cta-box.has-image .atwp-cta-box-text {
	padding-bottom: 32px;
}

.atwp-content .atwp-cta-box p.atwp-cta-box-title,
.atwp-cta-box-title {
	margin: 0 0 14px;
	font-size: clamp(20px, 0.6vw + 14px, 24px);
	font-weight: 500;
	line-height: 1.4;
}

.atwp-content .atwp-cta-box p.atwp-cta-box-desc,
.atwp-cta-box-desc {
	margin: 0 0 24px;
	font-size: 16px;
	line-height: 1.65;
}

.atwp-cta-box .btn {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 6px;
	font-size: 16px;
	text-decoration: none;
}

.atwp-cta-box-img {
	position: relative;
	display: flex;
	align-self: end;
	justify-content: center;
	height: 100%;
	min-height: 220px;
}

.atwp-cta-box-img::before {
	content: "";
	position: absolute;
	bottom: -40px;
	left: 50%;
	width: 230px;
	height: 230px;
	border-radius: 50%;
	background: rgba(30, 102, 177, 0.08);
	transform: translateX(-50%);
}

@supports (background: color-mix(in srgb, red 10%, white)) {
	.atwp-cta-box {
		border-color: color-mix(in srgb, var(--atwp-accent-raw, #1e66b1) 35%, #fff);
	}

	.atwp-cta-box-img::before {
		background: color-mix(in srgb, var(--atwp-accent-raw, #1e66b1) 10%, #fff);
	}
}

.atwp-cta-box-img img {
	position: relative;
	align-self: flex-end;
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 280px;
	border-radius: 0 !important;
	object-fit: contain;
}

@media (max-width: 767.98px) {
	.atwp-cta-box,
	.atwp-cta-box.has-image {
		padding: 26px 22px;
	}

	.atwp-cta-box.has-image {
		grid-template-columns: minmax(0, 1fr) 140px;
		padding: 26px 0 0 22px;
	}

	.atwp-cta-box.has-image .atwp-cta-box-text {
		padding-bottom: 26px;
	}

	.atwp-cta-box-img {
		min-height: 160px;
	}

	.atwp-cta-box-img::before {
		width: 150px;
		height: 150px;
		bottom: -30px;
	}

	.atwp-cta-box-img img {
		max-height: 190px;
	}
}

@media (max-width: 479.98px) {
	.atwp-cta-box.has-image {
		grid-template-columns: minmax(0, 1fr);
		padding: 26px 22px;
	}

	.atwp-cta-box.has-image .atwp-cta-box-text {
		padding-bottom: 0;
	}

	.atwp-cta-box-img {
		display: none;
	}
}

/* Button arrow (left CTA card) */
.atwp-btn-arrow span {
	display: inline-block;
	margin-left: 4px;
	transition: transform 0.2s;
}

.atwp-btn-arrow:hover span {
	transform: translateX(3px);
}

/* =========================================================================
 * Blog listing (Space-O style): category cards, card grid, Load More
 * ========================================================================= */
.atwp-listing {
	padding: 56px 0 96px;
}

/* Category cards */
.atwp-cats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 14px;
	margin: 0 0 56px;
}

.atwp-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 112px;
	padding: 18px 12px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	background: #fff;
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.35;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.atwp-cat:hover,
.atwp-cat:focus-visible {
	border-color: var(--atwp-tint-line, rgba(30, 102, 177, 0.3));
	box-shadow: 0 12px 26px -18px rgba(0, 40, 90, 0.45);
	transform: translateY(-2px);
}

.atwp-cat.is-active {
	border-color: var(--atwp-accent, #1e66b1);
	background: var(--atwp-tint, #eef5fc);
}

.atwp-cat-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: var(--atwp-tint, #eef5fc);
	color: var(--atwp-accent, #1e66b1);
}

.atwp-cat-icon img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

/* Section head: title + search */
.atwp-listing-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 32px;
	margin: 0 0 28px;
}

.atwp-listing-title {
	margin: 0;
	font-size: clamp(24px, 1vw + 16px, 32px);
	font-weight: 600;
	line-height: 1.3;
}

.atwp-listing-search {
	flex: 0 1 420px;
}

/* Search form (listing, 404) */
.atwp-search {
	display: flex;
	gap: 8px;
}

.atwp-search .form-control {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
}

.atwp-search .form-control:focus {
	border-color: var(--atwp-accent, #1e66b1);
	box-shadow: 0 0 0 3px var(--atwp-tint, rgba(30, 102, 177, 0.12));
}

.atwp-search .btn {
	flex: 0 0 auto;
	height: 48px;
	padding: 0 22px;
	border-radius: 8px;
}

/* Card grid */
.atwp-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.atwp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 14px;
	background: #fff;
	transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.atwp-card:hover,
.atwp-card:focus-within {
	border-color: var(--atwp-tint-line, rgba(30, 102, 177, 0.25));
	box-shadow: 0 22px 40px -28px rgba(0, 40, 90, 0.5);
	transform: translateY(-3px);
}

.atwp-card-img {
	position: relative;
	display: block;
	text-decoration: none;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--atwp-tint, #eef5fc);
}

.atwp-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.atwp-card:hover .atwp-card-img img {
	transform: scale(1.04);
}

.atwp-card-noimg {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, var(--atwp-tint, #eef5fc), #fff);
}

.atwp-card-noimg span {
	padding: 0 20px;
	font-size: 20px;
	font-weight: 600;
	text-align: center;
	color: var(--atwp-accent, #1e66b1);
	opacity: 0.7;
}

.atwp-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 20px 22px 24px;
}

.atwp-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 12px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--atwp-ink-soft, rgba(0, 0, 0, 0.62));
}

.atwp-card-stats {
	display: inline-flex;
	gap: 14px;
}

.atwp-card-stats > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-weight: 600;
}

.atwp-card-stats svg {
	opacity: 0.7;
}

.atwp-card-title {
	margin: 0 0 10px;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
}

.atwp-card-title a {
	color: inherit;
	text-decoration: none;
}

/* Whole card clickable through the title link */
.atwp-card {
	position: relative;
}

.atwp-card-title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.atwp-card-title a:hover,
.atwp-card-title a:focus-visible {
	color: var(--atwp-accent, #1e66b1);
}

.atwp-card-title a:focus-visible {
	outline: none;
}

.atwp-card:focus-within {
	outline: 3px solid var(--atwp-tint-line, rgba(30, 102, 177, 0.35));
	outline-offset: 2px;
}

.atwp-card-excerpt {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.6;
	color: var(--atwp-ink-soft, rgba(0, 0, 0, 0.66));
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Load more + page links */
.atwp-more-wrap {
	margin-top: 48px;
	text-align: center;
}

.atwp-more {
	min-width: 180px;
	padding: 13px 28px;
	border-radius: 8px;
}

.atwp-more[aria-busy="true"] {
	opacity: 0.75;
	cursor: progress;
}

.atwp-js-more .atwp-pagination {
	display: none;
}

.atwp-pagination {
	margin-top: 40px;
}

.atwp-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.atwp-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	color: inherit;
	text-decoration: none;
}

.atwp-pagination .page-numbers.current {
	border-color: var(--atwp-accent, #1e66b1);
	font-weight: 700;
}

.atwp-pagination .page-numbers.dots {
	border: 0;
}

/* Empty state, 404, default pages */
.atwp-empty {
	max-width: 620px;
	margin: 0 auto;
	padding: 40px 28px;
	border: 1px dashed rgba(0, 0, 0, 0.15);
	border-radius: 14px;
	text-align: center;
}

.atwp-empty p {
	margin: 0 0 20px;
}

.atwp-empty-search {
	max-width: 460px;
	margin: 0 auto 20px;
}

.atwp-page {
	padding: 56px 0 96px;
}

.atwp-page-body {
	max-width: 860px;
	margin: 0 auto;
}

/* Listing responsive */
@media (min-width: 1600px) {
	.atwp-grid {
		gap: 32px;
	}
}

@media (max-width: 1199.98px) {
	.atwp-cats {
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	}
}

@media (max-width: 991.98px) {
	.atwp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.atwp-listing {
		padding: 40px 0 72px;
	}

	.atwp-listing-search {
		flex: 1 1 100%;
	}
}

@media (max-width: 767.98px) {
	/* Category cards become a swipeable row */
	.atwp-cats {
		display: flex;
		gap: 10px;
		margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5) 36px;
		padding: 2px calc(var(--bs-gutter-x, 1.5rem) * 0.5) 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.atwp-cats::-webkit-scrollbar {
		display: none;
	}

	.atwp-cat {
		flex: 0 0 auto;
		flex-direction: row;
		min-height: 0;
		padding: 10px 16px 10px 10px;
		border-radius: 40px;
		scroll-snap-align: start;
		white-space: nowrap;
	}

	.atwp-cat-icon {
		width: 32px;
		height: 32px;
		border-radius: 50%;
	}

	.atwp-cat-icon svg,
	.atwp-cat-icon img {
		width: 18px;
		height: 18px;
	}
}

@media (max-width: 575.98px) {
	.atwp-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.atwp-card-body {
		padding: 18px 18px 20px;
	}

	.atwp-search .btn {
		padding: 0 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atwp-cat,
	.atwp-card,
	.atwp-card-img img {
		transition: none;
	}

	.atwp-card:hover,
	.atwp-cat:hover {
		transform: none;
	}

	.atwp-card:hover .atwp-card-img img {
		transform: none;
	}
}

/* Small screens: the post title is right above the breadcrumb, so drop the repeated title crumb. */
@media (max-width: 767.98px) {
	.atwp-single-head .atwp-breadcrumb li:last-child {
		display: none;
	}
}
