/* Service Detail page template. */

/* Lighter banner overlay for this template — the shared dark gradient
 * reads too heavy for this more editorial page style. */
.page-banner.overlay-light {
	--color-overlay: linear-gradient(184.15deg, rgba(28, 37, 57, 0) -80%, rgba(28, 37, 57, 0.45) 96.62%);
}

/* --- Main content --- */
.service-detail-image {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	margin-bottom: 30px;
}

.service-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Rich-text body: proper paragraph spacing, headings, lists, etc. */
.service-detail-text {
	color: #20282d;
	line-height: 1.8;
}

.service-detail-text p {
	margin: 0 0 22px;
	line-height: 1.8;
	color: #20282d;
}

.service-detail-text p:last-child {
	margin-bottom: 0;
}

/* If content arrives as plain text (no <p> tags), line breaks get
 * converted to visual spacing via this rule. */
.service-detail-text br + br {
	display: block;
	content: '';
	margin-top: 20px;
}

.service-detail-text h2,
.service-detail-text h3,
.service-detail-text h4 {
	color: #0a2240 !important;
	margin: 32px 0 12px;
	line-height: 1.3;
}

.service-detail-text h2 {
	font-size: 24px;
}

.service-detail-text h3 {
	font-size: 20px;
}

.service-detail-text h4 {
	font-size: 17px;
}

.service-detail-text ul,
.service-detail-text ol {
	margin: 0 0 22px;
	padding-left: 22px;
}

.service-detail-text li {
	margin-bottom: 8px;
	line-height: 1.7;
}

.service-detail-text strong,
.service-detail-text b {
	font-weight: 700;
	color: #0a2240;
}

.service-detail-text em,
.service-detail-text i {
	font-style: italic;
}

.service-detail-text a {
	color: #1266c2;
	text-decoration: underline;
}

.service-detail-text blockquote {
	border-left: 3px solid #c2d500;
	margin: 0 0 22px;
	padding: 12px 0 12px 20px;
	color: rgba(32, 40, 45, 0.65);
	font-style: italic;
}

.service-detail-bullets {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.service-detail-bullet-item {
	display: flex;
	align-items: center;
	gap: 14px;
}

.service-detail-bullet-icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(194, 213, 0, 0.14);
	display: flex;
	align-items: center;
	justify-content: center;
}

.service-detail-bullet-icon img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

/* --- Sidebar --- */
.service-detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	position: sticky;
	top: 100px;
}

.sd-sidebar-widget {
	background: rgba(242, 242, 242, 1);
	padding: 30px;
}

.sd-sidebar-widget h2 {
	color: #0a2240;
	margin-bottom: 18px;
}

.sd-link-list {
	display: flex;
	flex-direction: column;
}

.sd-link-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(10, 34, 64, 0.08);
	text-decoration: none;
	color: #0a2240;
	font-weight: 600;
	transition: color 0.2s ease;
}

.sd-link-list li:last-child .sd-link-item {
	border-bottom: none;
}

.sd-link-arrow {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(194, 213, 0, 0.18);
	color: #6b7a00;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

.sd-link-item:hover .sd-link-arrow,
.sd-link-item.is-active .sd-link-arrow {
	background: #c2d500;
	color: #0a2240;
}

/* Active (currently-viewed) service link */
.sd-link-item.is-active {
	color: #0a2240;
	font-weight: 700;
	pointer-events: none;
}

/* Contact box: solid blue, matching the reference. */
.sd-contact-box {
	background: #1266c2;
}

.sd-contact-box h2 {
	color: #fff;
}

.sd-contact-box p {
	color: rgba(255, 255, 255, 0.85);
	margin: 0 0 18px;
}

.sd-contact-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: #c2d500;
	font-weight: 700;
	text-decoration: none;
}

.sd-contact-box .sd-link-arrow {
	background: rgba(255, 255, 255, 0.15);
	color: #c2d500;
}

.sd-contact-link:hover .sd-link-arrow {
	background: #c2d500;
	color: #1266c2;
}

@media (max-width: 991px) {
	.service-detail-sidebar {
		position: static;
		margin-top: 40px;
	}
}
