/* Service articles (views/pages/service-blog.ejs): the three posts behind the home page
   slider's "Read More" buttons. Same language as the rest of the site: Poppins, dark
   #222328 headings, soft #8C94B0 greys, the #467EFE -> #61CAFD gradient and rounded white
   cards with a light blue shadow. */

.sb-section {
	--sb-ink: #222328;
	--sb-text: #646b86;
	--sb-muted: #8c94b0;
	--sb-line: #e9edf7;
	--sb-soft: #f4f7ff;
	--sb-blue: #467efe;
	--sb-grad: linear-gradient(260deg, #61cafd 0%, #467efe 100%);
	padding: 70px 0 30px;
	font-family: 'Poppins', sans-serif;
}

/* ── Layout: article + sticky sidebar ─────────────────────────────────────── */
.sb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
}
.sb-article { min-width: 0; }
.sb-aside {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ── Cover ────────────────────────────────────────────────────────────────── */
.sb-cover {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: center;
	gap: 24px;
	padding: 40px;
	border-radius: 24px;
	background: linear-gradient(135deg, #eef4ff 0%, #e3f4ff 100%);
	overflow: hidden;
}
.sb-cover::before {
	content: '';
	position: absolute;
	width: 320px;
	height: 320px;
	right: -90px;
	top: -110px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(97, 202, 253, .35) 0%, rgba(97, 202, 253, 0) 70%);
}
.sb-cover__text { position: relative; }
.sb-cover__summary {
	margin: 16px 0 20px;
	font-size: 18px;
	line-height: 30px;
	font-weight: 500;
	color: var(--sb-ink);
}
.sb-cover__img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sb-cover__img img {
	width: 100%;
	max-width: 260px;
	max-height: 230px;
	object-fit: contain;
	filter: drop-shadow(0 18px 30px rgba(70, 126, 254, .18));
}

.sb-pill {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 50px;
	background: var(--sb-grad);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
}
.sb-pill--soft {
	background: #eaf1ff;
	color: var(--sb-blue);
}

.sb-highlights {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-highlights li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px 6px 6px;
	border-radius: 50px;
	background: #fff;
	color: var(--sb-ink);
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 6px 18px rgba(70, 126, 254, .08);
}
.sb-highlights__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sb-grad);
	color: #fff;
	font-size: 12px;
}

/* ── Title and meta ───────────────────────────────────────────────────────── */
.sb-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 32px 0 12px;
	font-size: 14px;
	color: var(--sb-muted);
}
.sb-meta i {
	margin-right: 8px;
	color: var(--sb-blue);
}
.sb-title {
	margin: 0 0 18px;
	font-size: 36px;
	line-height: 48px;
	font-weight: 700;
	color: var(--sb-ink);
}
.sb-lead {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 32px;
	color: var(--sb-text);
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.sb-block {
	padding-top: 40px;
	scroll-margin-top: 20px;
}
.sb-h2 {
	position: relative;
	margin: 0 0 16px;
	padding-left: 18px;
	font-size: 26px;
	line-height: 36px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	bottom: 6px;
	width: 5px;
	border-radius: 5px;
	background: var(--sb-grad);
}
.sb-block > p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 29px;
	color: var(--sb-text);
}
.sb-block strong { color: var(--sb-ink); font-weight: 600; }

/* Checklist */
.sb-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.sb-list li {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--sb-line);
	font-size: 16px;
	line-height: 27px;
	color: var(--sb-text);
}
.sb-list li:last-child { border-bottom: 0; }
.sb-list i {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-top: 2px;
	border-radius: 50%;
	background: #e6f9f0;
	color: #18b26b;
	font-size: 11px;
}

/* Feature cards */
.sb-features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	margin-top: 8px;
}
.sb-feature {
	padding: 24px;
	border: 1px solid var(--sb-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(70, 126, 254, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sb-feature:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 36px rgba(70, 126, 254, .14);
}
.sb-feature__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 14px;
	background: var(--sb-grad);
	color: #fff;
	font-size: 19px;
	box-shadow: 0 8px 18px rgba(70, 126, 254, .3);
}
.sb-feature h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-feature p {
	margin: 0;
	font-size: 15px;
	line-height: 25px;
	color: var(--sb-text);
}

/* Numbered steps, joined by a line */
.sb-steps {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.sb-steps li {
	position: relative;
	display: flex;
	gap: 20px;
	padding-bottom: 26px;
}
.sb-steps li:last-child { padding-bottom: 0; }
.sb-steps li:not(:last-child)::before {
	content: '';
	position: absolute;
	left: 21px;
	top: 46px;
	bottom: 4px;
	width: 2px;
	background: linear-gradient(180deg, #a9c3ff 0%, #e3ecff 100%);
}
.sb-steps__num {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--sb-grad);
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	box-shadow: 0 8px 18px rgba(70, 126, 254, .28);
}
.sb-steps h3 {
	margin: 8px 0 6px;
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-steps p {
	margin: 0;
	font-size: 15px;
	line-height: 26px;
	color: var(--sb-text);
}

/* Highlighted note */
.sb-tip {
	display: flex;
	gap: 14px;
	margin-top: 24px;
	padding: 18px 22px;
	border-radius: 16px;
	border-left: 4px solid #ffa412;
	background: #fff8ec;
}
.sb-tip i {
	margin-top: 4px;
	color: #ffa412;
	font-size: 18px;
}
.sb-tip p {
	margin: 0;
	font-size: 15px;
	line-height: 26px;
	color: #7a5a1e;
}

/* FAQ */
.sb-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.sb-faq details {
	border: 1px solid var(--sb-line);
	border-radius: 16px;
	background: #fff;
	transition: box-shadow .2s ease;
}
.sb-faq details[open] {
	border-color: #d4e1ff;
	box-shadow: 0 10px 28px rgba(70, 126, 254, .08);
}
.sb-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: var(--sb-ink);
	cursor: pointer;
	list-style: none;
}
.sb-faq summary::-webkit-details-marker { display: none; }
.sb-faq summary i {
	flex: none;
	color: var(--sb-blue);
	font-size: 13px;
	transition: transform .2s ease;
}
.sb-faq details[open] summary i { transform: rotate(180deg); }
.sb-faq details p {
	margin: 0;
	padding: 0 22px 20px;
	font-size: 15px;
	line-height: 26px;
	color: var(--sb-text);
}

/* Call to action banner */
.sb-cta {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding: 36px 40px;
	border-radius: 24px;
	background: var(--sb-grad);
	overflow: hidden;
}
.sb-cta::before {
	content: '';
	position: absolute;
	width: 260px;
	height: 260px;
	right: -60px;
	bottom: -150px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
}
.sb-cta > * { position: relative; }
.sb-cta h2 {
	margin: 0 0 6px;
	font-size: 26px;
	line-height: 36px;
	font-weight: 700;
	color: #fff;
}
.sb-cta p {
	margin: 0;
	font-size: 16px;
	line-height: 26px;
	color: rgba(255, 255, 255, .9);
}
.sb-cta__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 50px;
	background: #fff;
	color: var(--sb-blue);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(20, 60, 160, .2);
	transition: transform .2s ease;
}
.sb-cta__btn:hover {
	color: #2f5fd8;
	transform: translateY(-2px);
}

/* Previous / next: the blog page's links, with the service art on a soft tile */
.sb-section .blogdetail-nav { margin-top: 48px; }
.sb-navimg {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	border-radius: 14px;
	background: var(--sb-soft);
}
.sb-section .bd-navlink .sb-navimg img {
	width: 44px;
	height: 44px;
	border-radius: 0;
	object-fit: contain;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sb-card {
	padding: 26px;
	border: 1px solid var(--sb-line);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(70, 126, 254, .06);
}
.sb-card__title {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-toc ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sb-toc li + li { margin-top: 4px; }
.sb-toc a {
	display: block;
	padding: 8px 12px;
	border-radius: 10px;
	font-size: 14px;
	line-height: 21px;
	color: var(--sb-text);
	text-decoration: none;
	transition: background .15s, color .15s;
}
.sb-toc a:hover,
.sb-toc a.is-active {
	background: var(--sb-soft);
	color: var(--sb-blue);
}

.sb-aside-cta {
	text-align: center;
	background: linear-gradient(160deg, #f1f6ff 0%, #e5f5ff 100%);
	border-color: #dbe6ff;
}
.sb-aside-cta__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--sb-grad);
	color: #fff;
	font-size: 20px;
	box-shadow: 0 10px 22px rgba(70, 126, 254, .3);
}
.sb-aside-cta h3 {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 26px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-aside-cta p {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 22px;
	color: var(--sb-text);
}
.sb-aside-cta__btn {
	display: block;
	padding: 12px 20px;
	border-radius: 50px;
	background: var(--sb-grad);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(70, 126, 254, .3);
}
.sb-aside-cta__btn:hover { color: #fff; opacity: .92; }

/* ── More services ────────────────────────────────────────────────────────── */
.sb-more { margin-top: 70px; }
.sb-more__title {
	margin: 0 0 28px;
	text-align: center;
	font-size: 36px;
	line-height: 46px;
	font-weight: 700;
	color: var(--sb-ink);
}
.sb-more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
.sb-more__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 26px;
	border: 1px solid var(--sb-line);
	border-radius: 24px;
	background: #fff;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(70, 126, 254, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}
.sb-more__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(70, 126, 254, .15);
}
.sb-more__img {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 150px;
	border-radius: 18px;
	background: linear-gradient(135deg, #eef4ff 0%, #e3f4ff 100%);
}
.sb-more__img img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}
.sb-more__card h3 {
	margin: 10px 0 6px;
	font-size: 20px;
	line-height: 28px;
	font-weight: 600;
	color: var(--sb-ink);
}
.sb-more__card p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 23px;
	color: var(--sb-text);
}
.sb-more__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--sb-blue);
}
.sb-more__link i { font-size: 12px; transition: transform .2s ease; }
.sb-more__card:hover .sb-more__link i { transform: translateX(4px); }

/* ── Tablet ───────────────────────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
	.sb-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
	.sb-cover { padding: 32px; }
}
@media (max-width: 991.98px) {
	.sb-section { padding: 50px 0 20px; }
	.sb-layout { grid-template-columns: minmax(0, 1fr); }
	/* One column: the contents list is not needed, and the article ends with the same
	   call to action the sidebar holds, so the sidebar is left out */
	.sb-aside { display: none; }
	.sb-title { font-size: 30px; line-height: 40px; }
	.sb-more { margin-top: 50px; }
	.sb-more__title { font-size: 30px; line-height: 40px; }
	/* One per line: picture on the left, text on the right */
	.sb-more__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.sb-more__card { flex-direction: row; align-items: center; gap: 22px; }
	.sb-more__img { width: 120px; height: 120px; }
	.sb-more__img img { width: 84px; height: 84px; }
}

/* ── Phone ────────────────────────────────────────────────────────────────── */
@media (max-width: 767.98px) {
	.sb-section { padding: 0 0 10px; }
	.sb-cover {
		grid-template-columns: minmax(0, 1fr);
		padding: 26px 22px;
		border-radius: 20px;
		text-align: left;
	}
	.sb-cover__img { order: -1; justify-content: flex-start; }
	.sb-cover__img img { max-width: 120px; max-height: 110px; }
	.sb-cover__summary { margin: 12px 0 16px; font-size: 16px; line-height: 26px; }
	.sb-highlights li { font-size: 13px; }
	.sb-meta { margin-top: 24px; gap: 6px 18px; font-size: 13px; }
	.sb-title { font-size: 25px; line-height: 35px; }
	.sb-lead { font-size: 16px; line-height: 28px; }
	.sb-block { padding-top: 32px; }
	.sb-h2 { font-size: 21px; line-height: 30px; padding-left: 15px; }
	.sb-block > p, .sb-list li { font-size: 15px; line-height: 26px; }
	.sb-features { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.sb-feature { padding: 20px; border-radius: 18px; }
	.sb-feature__icon { width: 42px; height: 42px; font-size: 17px; margin-bottom: 12px; }
	.sb-steps li { gap: 16px; }
	.sb-steps__num { width: 38px; height: 38px; font-size: 15px; }
	.sb-steps li:not(:last-child)::before { left: 18px; top: 40px; }
	.sb-steps h3 { margin-top: 5px; font-size: 16px; }
	.sb-tip { padding: 16px 18px; }
	.sb-faq summary { padding: 16px 18px; font-size: 15px; }
	.sb-faq details p { padding: 0 18px 18px; }
	.sb-cta {
		flex-direction: column;
		align-items: flex-start;
		margin-top: 36px;
		padding: 28px 24px;
		border-radius: 20px;
	}
	.sb-cta h2 { font-size: 22px; line-height: 31px; }
	.sb-cta p { font-size: 15px; }
	.sb-cta__btn { width: 100%; justify-content: center; }
	.sb-section .blogdetail-nav { margin-top: 36px; }
	.sb-more__title { font-size: 25px; line-height: 34px; margin-bottom: 20px; }
	.sb-more__card { gap: 16px; padding: 18px; border-radius: 20px; align-items: flex-start; }
	.sb-more__img { width: 72px; height: 72px; border-radius: 16px; }
	.sb-more__img img { width: 48px; height: 48px; }
	.sb-more__card h3 { margin-top: 8px; }
	.sb-more__card h3 { font-size: 18px; }
}
