/* Oman Verified Internal Cards — editorial, server-rendered, no JS dependency. */

.ov-related-article-card,
.ov-related-article-card *,
.ov-internal-cards-layout,
.ov-internal-cards-layout *,
.ov-service-cards,
.ov-service-cards * {
	box-sizing: border-box;
}

.ov-related-article-card {
	width: 100%;
	max-width: 100%;
	margin: 28px 0 34px;
	border: 1px solid rgba(22, 66, 91, .18);
	border-radius: 12px;
	background: #F7F4F0;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(23, 62, 58, .04);
}

.ov-related-article-card__link {
	display: grid;
	grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
	min-height: 190px;
	color: inherit;
	text-decoration: none !important;
	background: #F7F4F0;
}

.ov-related-article-card__image {
	display: block;
	min-width: 0;
	overflow: hidden;
	background: #F7F4F0;
}

.ov-related-article-card__img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 190px;
	max-width: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.ov-related-article-card__content {
	display: flex;
	min-width: 0;
	padding: 26px 28px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
}

.ov-related-article-card__label,
.ov-service-card__label,
.ov-service-cards__heading {
	color: #173E3A;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.ov-related-article-card__title {
	display: block;
	margin: 9px 0 14px;
	color: #16425B;
	font: inherit;
	font-size: clamp(22px, 2.2vw, 27px);
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ov-related-article-card__cta,
.ov-service-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #173E3A;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.ov-related-article-card__cta span,
.ov-service-card__cta span {
	display: inline-block;
	transition: transform 200ms ease;
}

@media (hover: hover) and (pointer: fine) {
	.ov-related-article-card:hover {
		border-color: rgba(22, 66, 91, .36);
	}
	.ov-related-article-card:hover .ov-related-article-card__img {
		transform: scale(1.018);
	}
	.ov-related-article-card:hover .ov-related-article-card__cta span,
	.ov-service-card:hover .ov-service-card__cta span {
		transform: translateX(3px);
	}
}

/* Service layout: stacked by default. This is also the tablet/mobile fallback. */
.ov-internal-cards-layout {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.ov-internal-cards-layout__article {
	min-width: 0;
	max-width: 100%;
}

.ov-service-cards {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 38px 0 30px;
}

.ov-service-cards__inner {
	min-width: 0;
}

.ov-service-cards__heading {
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(22, 66, 91, .15);
}

.ov-service-cards__list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	min-width: 0;
}

.ov-service-card {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid rgba(22, 66, 91, .16);
	border-radius: 12px;
	background: #F7F4F0;
	color: inherit;
	text-decoration: none !important;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(23, 62, 58, .035);
	transition: border-color 200ms ease;
}

.ov-service-card__image {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 16 / 8.5;
	overflow: hidden;
	background: #F7F4F0;
}

.ov-service-card__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.ov-service-card__body {
	display: flex;
	min-width: 0;
	padding: 18px 18px 19px;
	flex-direction: column;
	align-items: flex-start;
}

.ov-service-card__title {
	display: block;
	margin: 7px 0 9px;
	color: #16425B;
	font: inherit;
	font-size: 19px;
	font-weight: 650;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ov-service-card__description {
	display: block;
	margin: 0 0 13px;
	color: #424B48;
	font-size: 13.5px;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
	.ov-service-card:hover {
		border-color: rgba(22, 66, 91, .34);
	}
	.ov-service-card:hover .ov-service-card__img {
		transform: scale(1.016);
	}
}

/* Wide layouts only: preserve a comfortable reading column and add the contextual service rail. */
@media (min-width: 1180px) {
	.ov-internal-cards-layout {
		position: relative;
		left: 50%;
		display: grid;
		width: min(1120px, calc(100vw - 56px));
		max-width: 1120px;
		margin-left: 0;
		transform: translateX(-50%);
		grid-template-columns: minmax(0, 1fr) minmax(280px, 310px);
		gap: 42px;
		align-items: start;
	}

	.ov-service-cards {
		margin: 0;
		align-self: stretch;
	}

	.ov-service-cards--count-1 .ov-service-cards__inner,
	.ov-service-cards--count-2 .ov-service-cards__inner,
	.ov-service-cards--count-3 .ov-service-cards__inner {
		position: sticky;
		top: 100px;
	}

	.ov-service-card__title {
		font-size: 18px;
	}
}

/* On shorter displays, avoid a sticky rail that could extend beyond the viewport. */
@media (min-width: 1180px) and (max-height: 720px) {
	.ov-service-cards__inner {
		position: static !important;
		top: auto !important;
	}
}

/* Theme-safe mobile/tablet fallback.
 * Some themes hide generic <aside> elements below desktop widths.
 * Keep the exact desktop sidebar markup/behavior, but explicitly expose the
 * same service rail after the article when the responsive layout is stacked.
 */
@media (max-width: 1179px) {
	html body .ov-internal-cards-layout > aside.ov-service-cards {
		display: block !important;
		position: static !important;
		visibility: visible !important;
		opacity: 1 !important;
		float: none !important;
		clear: both !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		height: auto !important;
		max-height: none !important;
		overflow: visible !important;
		transform: none !important;
		clip: auto !important;
		clip-path: none !important;
	}

	html body .ov-internal-cards-layout > aside.ov-service-cards .ov-service-cards__inner,
	html body .ov-internal-cards-layout > aside.ov-service-cards .ov-service-cards__list {
		display: grid !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	html body .ov-internal-cards-layout > aside.ov-service-cards .ov-service-cards__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	html body .ov-internal-cards-layout > aside.ov-service-cards .ov-service-cards__list {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	html body .ov-internal-cards-layout > aside.ov-service-cards .ov-service-card {
		display: block !important;
		visibility: visible !important;
		opacity: 1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}
}

@media (max-width: 767px) {
	.ov-related-article-card {
		margin: 22px 0 28px;
		max-width: 100%;
	}

	.ov-related-article-card__link {
		display: block;
		min-height: 0;
		width: 100%;
		max-width: 100%;
	}

	.ov-related-article-card__image {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.ov-related-article-card__img {
		width: 100%;
		height: 100%;
		min-height: 0;
		object-fit: cover;
	}

	.ov-related-article-card__content {
		width: 100%;
		padding: 19px 18px 20px;
	}

	.ov-related-article-card__title {
		margin: 7px 0 12px;
		font-size: clamp(19px, 5.5vw, 23px);
		line-height: 1.32;
	}

	.ov-related-article-card__cta {
		font-size: 13.5px;
	}

	.ov-service-cards {
		margin: 32px 0 26px;
	}

	.ov-service-card__image {
		aspect-ratio: 16 / 9;
	}

	.ov-service-card__body {
		padding: 17px 17px 18px;
	}

	.ov-service-card__title {
		font-size: 20px;
	}
}

/* Never let media or long strings in these cards force horizontal page scrolling. */
.ov-related-article-card img,
.ov-service-card img,
.ov-related-article-card svg,
.ov-service-card svg {
	max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
	.ov-related-article-card__img,
	.ov-service-card__img,
	.ov-related-article-card__cta span,
	.ov-service-card__cta span,
	.ov-service-card {
		transition: none !important;
	}
}
