/* Ngjarjet jetësore (Life events) - desktop */

.life-events-page {
	--le-primary: #1d61a1;
	--le-primary-dark: #144a7e;
	--le-accent: #D0A650;
	--le-ink: #071f3d;
	--le-text: #536b81;
	--le-muted: #6a7d90;
	--le-border: #d7e2ec;
	--le-surface: #ffffff;
	--le-surface-soft: #f8fafc;
	--le-shadow: 0 7px 22px rgba(6, 28, 57, .05);
	width: 100%;
	box-sizing: border-box;
}

	/* only the life event elements; the reused child birth markup keeps its original box model */
	.life-events-page [class^="le-"],
	.life-events-page [class*=" le-"],
	.life-events-page [class^="le-"]::before,
	.life-events-page [class*=" le-"]::before {
		box-sizing: border-box;
	}

	.life-events-page [hidden] {
		display: none;
	}

/* ---------- hero ---------- */

.le-hero {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 22px;
	align-items: center;
	margin: 0 0 20px;
	padding: 28px 30px;
	border: 1px solid var(--le-border);
	border-left: 4px solid var(--le-primary);
	border-radius: 10px;
	background: var(--le-surface);
	box-shadow: var(--le-shadow);
}

.le-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: #ebf3fb;
	color: var(--le-primary);
}

	.le-hero-icon svg {
		width: 38px;
		height: 38px;
	}

.le-hero-label {
	margin: 0 0 6px;
	color: var(--le-accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.le-hero-title {
	margin: 0 0 10px;
	color: var(--le-ink);
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 600;
	line-height: 1.15;
}

.le-hero-intro {
	color: var(--le-text);
	font-size: 16px;
	line-height: 1.6;
}

	.le-hero-intro p {
		margin: 0 0 8px;
	}

.le-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 14px;
	color: var(--le-primary);
	font-size: 14px;
	text-decoration: none;
}

/* ---------- list of life events ---------- */

.le-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 18px;
}

.le-list-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px;
	border: 1px solid var(--le-border);
	border-radius: 10px;
	background: var(--le-surface);
	box-shadow: var(--le-shadow);
	color: inherit;
	text-decoration: none;
	transition: border-color .15s ease-in-out, transform .15s ease-in-out;
}

	.le-list-card:hover,
	.le-list-card:focus-visible {
		border-color: var(--le-primary);
		transform: translateY(-2px);
	}

	.le-list-card h2,
	.le-list-card h3 {
		margin: 0;
		color: var(--le-ink);
		font-size: 20px;
		font-weight: 600;
	}

.le-list-intro {
	flex: 1;
	color: var(--le-text);
	font-size: 14px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

	.le-list-intro p {
		margin: 0;
	}

.le-list-link {
	color: var(--le-primary);
	font-weight: 600;
	font-size: 14px;
}

.le-empty {
	padding: 28px;
	border: 1px dashed var(--le-border);
	border-radius: 10px;
	background: var(--le-surface);
	color: var(--le-muted);
	text-align: center;
}

/* ---------- anchor nav ---------- */

.le-anchor-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.le-anchor-link {
	padding: 8px 14px;
	border: 1px solid var(--le-border);
	border-radius: 20px;
	background: var(--le-surface);
	color: var(--le-primary);
	font-size: 14px;
	cursor: pointer;
}

	.le-anchor-link:hover {
		border-color: var(--le-primary);
	}

/* ---------- sections ---------- */

.le-sections {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.le-section {
	grid-column: 1 / -1;
	padding: 24px 26px;
	border: 1px solid var(--le-border);
	border-radius: 10px;
	background: var(--le-surface);
	box-shadow: var(--le-shadow);
	scroll-margin-top: 90px;
	min-width: 0;
}

.le-section--half {
	grid-column: auto;
}

.le-section-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 16px;
}

	.le-section-head h2 {
		margin: 0;
		color: var(--le-ink);
		font-size: 20px;
		font-weight: 600;
	}

	.le-section-head svg {
		flex: 0 0 26px;
		width: 26px;
		height: 26px;
		padding: 7px;
		box-sizing: content-box;
		border-radius: 50%;
		background: #ebf3fb;
		color: var(--le-primary);
	}

.le-section-toggle {
	display: flex;
	width: 100%;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: left;
}

	.le-section-toggle .le-section-head {
		margin: 0;
	}

.le-section--collapsible.is-expanded .le-section-toggle {
	margin-bottom: 16px;
}

.le-chevron {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: var(--le-primary);
	stroke-width: 2;
	transition: transform .2s ease-in-out;
}

.le-section--collapsible.is-expanded .le-chevron {
	transform: rotate(180deg);
}

.le-prose {
	color: var(--le-text);
	font-size: 15px;
	line-height: 1.65;
}

	.le-prose a {
		color: var(--le-primary);
	}

/* ---------- linked services ---------- */

.le-services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
}

.le-service-card {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 16px 18px;
	border: 1px solid var(--le-border);
	border-radius: 8px;
	background: var(--le-surface-soft);
	color: var(--le-ink);
	text-decoration: none;
	font-size: 15px;
}

	.le-service-card:hover {
		border-color: var(--le-primary);
		background: #ebf3fb;
	}

	.le-service-card b {
		color: var(--le-primary);
		font-size: 18px;
	}

/* ---------- institutions ---------- */

.le-institutions {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

	.le-institutions li {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 12px 14px;
		border: 1px solid var(--le-border);
		border-radius: 8px;
		color: var(--le-ink);
		font-size: 14px;
	}

	.le-institutions img {
		width: 40px;
		height: 40px;
		object-fit: contain;
	}

/* ---------- resources (documents / videos) ---------- */

.le-resources {
	display: grid;
	gap: 10px;
}

	.le-resources a {
		display: grid;
		grid-template-columns: auto 1fr auto;
		gap: 12px;
		align-items: center;
		padding: 14px 16px;
		border: 1px solid var(--le-border);
		border-radius: 8px;
		color: var(--le-ink);
		text-decoration: none;
	}

		.le-resources a:hover {
			border-color: var(--le-primary);
		}

	.le-resources svg {
		width: 22px;
		height: 22px;
		fill: none;
		stroke: var(--le-primary);
		stroke-width: 1.8;
	}

	.le-resources small {
		display: block;
		color: var(--le-muted);
	}

	.le-resources b {
		color: var(--le-primary);
		font-size: 14px;
	}

.le-video-frame {
	position: relative;
	padding-top: 56.25%;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 14px;
}

	.le-video-frame iframe {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		border: 0;
	}

.le-video-title {
	margin: 0 0 8px;
	color: var(--le-ink);
	font-weight: 600;
}

/* ---------- articles: same look as the child birth page (childBirth.css, les-*) ---------- */

.life-events-page .les-articles-section {
	display: flex;
	flex-direction: column;
	gap: .75em;
}

.life-events-page .les-toolbar {
	padding: 1.15em 1.25em;
	display: flex;
	flex-direction: column;
	gap: 1.15em;
}

.life-events-page .les-filter-track {
	display: flex;
	flex-wrap: wrap;
	gap: .35em;
	background: #f5f5f5;
	border: 1px solid rgba(153, 153, 153, .35);
	border-radius: .7em;
	padding: .35em;
}

.life-events-page .les-filter-btn {
	border: none;
	background: transparent;
	color: #0a0a0a;
	border-radius: .5em;
	padding: .6em 1.05em;
	font-size: .88em;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

	.life-events-page .les-filter-btn:hover {
		color: #1d61a1;
	}

.life-events-page .les-filter-btn--active,

.life-events-page .les-filter-btn--active:hover {
	background: #fff;
	color: #1d61a1;
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}

.life-events-page .les-search-row {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 1em;
}

.life-events-page .les-search-label {
	margin: 0;
	color: #0a0a0a;
	font-weight: 600;
	font-size: .92em;
	white-space: nowrap;
}

.life-events-page .les-search-input-wrap {
	position: relative;
	width: 100%;
}

.life-events-page .les-search-input {
	width: 100%;
	padding: .65em 1em .65em 2.6em;
	border: 1px solid rgba(153, 153, 153, .5);
	border-radius: .5em;
	font-size: .95em;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease;
}

	.life-events-page .les-search-input:focus {
		outline: none;
		border-color: #1d61a1;
		box-shadow: 0 0 0 2px rgba(29, 97, 161, .12);
	}

.life-events-page .les-search-icon {
	position: absolute;
	left: .85em;
	top: 50%;
	transform: translateY(-50%);
	width: 17px;
	height: 17px;
	pointer-events: none;
}

.life-events-page .les-articles-empty {
	grid-column: 1 / -1;
	padding: 2em 1.25em;
	text-align: center;
	color: #0a0a0a;
	font-size: .95em;
}

.life-events-page .les-articles-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .85em;
}

.life-events-page .les-article-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: .7em;
	border: 1px solid rgba(153, 153, 153, .45);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
	padding: 1.15em 1.25em 1.15em 1.6em;
	text-decoration: none;
	color: #0a0a0a;
	position: relative;
	overflow: hidden;
	min-height: 9.5em;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

	.life-events-page .les-article-card::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		width: 4px;
		height: 100%;
		background: linear-gradient(180deg, #1d61a1 0%, #3987D0 100%);
	}

	.life-events-page .les-article-card:hover {
		border-color: #1d61a1;
		box-shadow: 0 6px 18px rgba(29, 97, 161, .14);
		transform: translateY(-1px);
	}

	.life-events-page .les-article-card:hover .les-article-footer {
		color: #1d61a1;
	}

.life-events-page .les-article-badge {
	display: inline-block;
	font-size: .7em;
	font-weight: 600;
	color: #1d61a1;
	background: rgba(29, 97, 161, .07);
	border: 1px solid rgba(29, 97, 161, .15);
	padding: .2em .6em;
	border-radius: 2em;
	margin-bottom: .6em;
	align-self: flex-start;
	line-height: 1.35;
}

.life-events-page .les-article-title {
	color: #1d61a1;
	font-size: 1.08em;
	font-weight: 700;
	margin: 0 0 .55em;
	padding-bottom: .5em;
	line-height: 1.35;
	border-bottom: 1px solid rgba(29, 97, 161, .12);
}

.life-events-page .les-article-desc {
	flex: 1;
	color: #333;
	font-size: .93em;
	line-height: 1.55;
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.life-events-page .les-article-footer {
	margin-top: .9em;
	padding-top: .65em;
	border-top: 1px solid rgba(153, 153, 153, .2);
	font-size: .86em;
	font-weight: 600;
	color: #D0A650;
	align-self: stretch;
	transition: color .2s ease;
}

/* articles inside a titled section card (without the card the toolbar keeps its mf-content2 look) */
.le-section .les-toolbar {
	padding: 0;
	margin-bottom: 1em;
}

/* ---------- custom section blocks ---------- */

.le-block + .le-block {
	margin-top: 20px;
}

.le-block-title {
	margin: 0 0 10px;
	color: var(--le-ink);
	font-size: 17px;
	font-weight: 600;
}

.le-tip {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 12px;
	padding: 14px 16px;
	border-left: 4px solid var(--le-accent);
	border-radius: 8px;
	background: #fbf6ea;
}

	.le-tip svg {
		width: 22px;
		height: 22px;
		color: #8a6a22;
	}

.le-list-block {
	margin: 0;
	padding-left: 20px;
	color: var(--le-text);
	line-height: 1.7;
}

.le-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--le-border);
	border-radius: 8px;
}

.le-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	color: var(--le-text);
}

	.le-table th,
	.le-table td {
		padding: 10px 14px;
		text-align: left;
		vertical-align: top;
		border-bottom: 1px solid var(--le-border);
	}

	.le-table th {
		background: #ebf3fb;
		color: var(--le-ink);
		font-weight: 600;
	}

	.le-table tbody tr:last-child td {
		border-bottom: 0;
	}

	.le-table tbody tr:nth-child(even) td {
		background: var(--le-surface-soft);
	}

/* ---------- embedded service guidance (service-guidance.js) ---------- */

.le-guidance .sg-hero {
	box-shadow: none;
}

.le-guidance .sg-hero-title {
	font-size: clamp(22px, 2.4vw, 28px);
}

/* ---------- embedded component (vaccination & development flow of service 591) ---------- */

/* ---------- layout of the child birth page (ChildBirth.cshtml), used by every life event page ---------- */

/* sections without a title are rendered without a card, exactly like the blocks of the child birth page */
.le-bare {
	grid-column: 1 / -1;
	min-width: 0;
}

	.le-bare + .le-bare {
		margin-top: -18px;
	}

/* inline padding wrappers of ChildBirth.cshtml (style="padding:0 .66em") */
.le-pad {
	padding: 0 .66em;
}

/* inline <style> of ChildBirth.cshtml */
.life-events-page .w-25 {
	width: 24%;
}

.life-events-page .text-wrapper2 {
	padding-bottom: 5px;
}

/* desktop markup only (_ChildBirthTimeline.cshtml) */
.le-component--desktop #childSelection,
.le-component--desktop #childSelection option,
.le-component--desktop #datePlanned {
	font-size: 18px;
}

.le-component .breadcrumbs,
.le-component .breadcrumbs ul {
	box-sizing: border-box;
}

.life-events-page .scrolltop-wrap {
	box-sizing: border-box;
	position: absolute;
	top: 12rem;
	right: 2rem;
	bottom: 0;
	pointer-events: none;
	backface-visibility: hidden;
}

	.life-events-page .scrolltop-wrap a {
		position: fixed;
		bottom: 20px;
		right: 20px;
		width: 3rem;
		height: 3rem;
		background: #0c4f91;
		color: #fff;
		display: flex;
		align-items: center;
		justify-content: center;
		border-radius: 50%;
		text-decoration: none;
		user-select: none;
		pointer-events: all;
		outline: none;
		transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
		opacity: 0;
		transform: translateY(100px);
	}

		.life-events-page .scrolltop-wrap a.show {
			opacity: 1;
			transform: translateY(0);
		}

		.life-events-page .scrolltop-wrap a svg {
			display: block;
			border-radius: 50%;
			width: 100%;
			height: 100%;
		}

.life-events-page #scrolltop-bg {
	fill: #0c4f91;
}

.life-events-page #scrolltop-arrow {
	fill: white;
	transform: scale(0.66);
	transform-origin: center;
}

.life-events-page .scrolltop-wrap a:hover #scrolltop-bg {
	fill: #3399ff;
}

.life-events-page .scrolltop-wrap a:hover #scrolltop-arrow {
	fill: white;
}

.le-component-source {
	display: none;
}

/* Initial state of the reused 591 markup; childNaming.birth(.mobile).js toggles it with inline display values */
.le-component [hidden] {
	display: none;
}

/* ---------- cards in #les-service on the services page (Services/Index) ---------- */

.les-service-cards {
	display: grid;
	gap: 1em;
}

/* preset icon in the size of the card image (.custom-card-first img: 200x150 desktop, 150x100 mobile) */
.les-card-icon {
	display: flex;
	flex: 0 1 200px;
	align-items: center;
	justify-content: center;
	width: 200px;
	min-width: 0;
	height: 150px;
	margin-right: 15px;
	border-radius: 3%;
	background: #4a9fe8;
	color: #fff;
}

	.les-card-icon svg {
		width: 64px;
		height: 64px;
	}

.les-card-icon--mobile {
	flex-basis: 150px;
	width: 150px;
	height: 100px;
}

	.les-card-icon--mobile svg {
		width: 48px;
		height: 48px;
	}

/* uploaded icon: same box as the original image, cropped instead of stretched */
.custom-card-first img.les-card-img {
	object-fit: cover;
}

/* icon uploaded in the CMS (or the original life events image) */
.le-hero-icon {
	overflow: hidden;
}

	.le-hero-icon img {
		width: 100%;
		height: 100%;
		margin: 0;
		border-radius: 50%;
		object-fit: cover;
	}

/* static illustration (/images/lifeevents/*.svg): whole picture on the blue card background */
.custom-card-first img.les-card-img--contain {
	box-sizing: border-box;
	padding: 8px;
	object-fit: contain;
	background: #4a9fe8;
}

/* static illustrations: show the whole picture inside the round icon */
.le-hero-icon img[src$=".svg"] {
	object-fit: contain;
}
