/* Modern content pages. Scoped so legacy page styles cannot affect other templates. */
.content-page {
	position: relative;
	padding: 28px 0 64px;
	background:
		radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--theme-color) 8%, transparent), transparent 23rem),
		linear-gradient(180deg, #f6f8fc 0%, #fff 34rem);
}

.content-page .page-shell {
	padding-top: 0;
	padding-bottom: 0;
}

.content-page .breadcrumb-wrapper {
	margin-bottom: 16px;
}

.content-page .breadcrumb-custom {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 7px;
	overflow: hidden;
	width: 100%;
	padding: 10px 14px;
	margin: 0;
	background: rgba(255, 255, 255, .85);
	border: 1px solid #e5eaf1;
	border-radius: 12px;
	box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
	list-style: none;
}

.content-page .breadcrumb-custom li {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	padding: 0;
	font-size: 12px;
	white-space: nowrap;
}

.content-page .breadcrumb-custom > li + li::before {
	padding: 0 1px 0 0;
	color: #a1acba;
}

.content-page .breadcrumb-custom a {
	color: #64748b;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.content-page .breadcrumb-custom a:hover {
	color: var(--theme-color);
}

.content-page .breadcrumb-custom .active {
	overflow: hidden;
	color: #334155;
	font-weight: 700;
	text-overflow: ellipsis;
}

.content-page .page-hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 20px;
	overflow: hidden;
	min-height: 150px;
	padding: 30px 34px;
	margin-bottom: 24px;
	background: linear-gradient(135deg, #101c31 0%, color-mix(in srgb, var(--theme-color) 78%, #17233b) 100%);
	border: 0;
	border-radius: 20px;
	box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.content-page .page-hero::after {
	position: absolute;
	top: -120px;
	right: -55px;
	width: 310px;
	height: 310px;
	border: 48px solid rgba(255, 255, 255, .055);
	border-radius: 50%;
	content: "";
}

.content-page .page-hero-icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	flex: 0 0 72px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 20px;
	box-shadow: inset 0 1px rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 29px;
}

.content-page .page-hero-copy {
	position: relative;
	z-index: 1;
	min-width: 0;
}

.content-page .page-hero-meta {
	display: inline-flex;
	align-items: center;
	padding: 0;
	margin: 0 0 5px;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #bfdbfe;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
}

.content-page .page-hero h1 {
	margin: 0;
	color: #fff;
	font-size: clamp(27px, 3.2vw, 42px);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -.02em;
}

.content-page .page-content-card {
	overflow: hidden;
	margin-bottom: 26px;
	background: #fff;
	border: 1px solid #e5eaf1 !important;
	border-radius: 19px;
	box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.content-page .page-content-card .card-body {
	max-width: 980px;
	padding: clamp(26px, 5vw, 56px);
	margin: 0 auto;
	color: #334155;
	font-size: clamp(16px, 1.35vw, 18px);
	line-height: 1.9;
	overflow-wrap: anywhere;
}

.content-page .page-content-card .card-body > :first-child {
	margin-top: 0;
}

.content-page .page-content-card .card-body > :last-child {
	margin-bottom: 0;
}

.content-page .page-content-card .card-body h1,
.content-page .page-content-card .card-body h2,
.content-page .page-content-card .card-body h3,
.content-page .page-content-card .card-body h4 {
	margin: 1.65em 0 .65em;
	color: #172033;
	font-weight: 800;
	line-height: 1.4;
}

.content-page .page-content-card .card-body p,
.content-page .page-content-card .card-body ul,
.content-page .page-content-card .card-body ol {
	margin-bottom: 1.2em;
}

.content-page .page-content-card .card-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 26px auto;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, .11);
}

.content-page .page-content-card .card-body blockquote {
	margin: 26px 0;
	padding: 18px 22px;
	background: #f5f8fc;
	border: 0;
	border-left: 4px solid var(--theme-color);
	border-radius: 0 12px 12px 0;
	color: #475569;
}

.content-page .page-content-card .card-body pre {
	max-width: 100%;
	overflow-x: auto;
	padding: 18px;
	background: #111827;
	border-radius: 12px;
	color: #e5e7eb;
	font-size: 14px;
	line-height: 1.7;
}

.content-page .page-content-card .card-body table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: collapse;
}

.content-page .page-content-card .card-body th,
.content-page .page-content-card .card-body td {
	padding: 10px 12px;
	border: 1px solid #dfe5ec;
}

.content-page .page-sidebar-layout {
	row-gap: 22px;
}

.content-page .page-sidebar .sidebar-panel {
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

/* Contact layout */
.content-page .contact-layout {
	grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
	gap: 22px;
}

.content-page .contact-card {
	border: 1px solid #e4eaf1;
	border-radius: 19px;
	box-shadow: 0 16px 38px rgba(15, 23, 42, .08);
}

.content-page .contact-info-card {
	padding: clamp(24px, 4vw, 38px);
}

.content-page .contact-kicker {
	padding: 6px 10px;
	background: color-mix(in srgb, var(--theme-color) 9%, white);
	border-radius: 999px;
	font-size: 11px;
}

.content-page .contact-info-card h2 {
	margin: 8px 0 10px;
	font-size: clamp(23px, 2.5vw, 30px);
	font-weight: 800;
}

.content-page .contact-intro {
	color: #64748b;
	font-size: 15px;
	line-height: 1.8;
}

.content-page .contact-detail {
	padding: 15px;
	background: #f8fafc;
	border-color: #e8edf3;
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.content-page .contact-detail:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--theme-color) 25%, #e8edf3);
	box-shadow: 0 9px 20px rgba(15, 23, 42, .07);
}

.content-page .contact-detail-icon {
	box-shadow: 0 7px 15px color-mix(in srgb, var(--theme-color) 24%, transparent);
}

.content-page .contact-map-card {
	min-height: 540px;
}

.content-page .contact-map-heading {
	padding: 19px 22px;
	background: #fff;
}

.content-page .contact-map-heading h2 {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 800;
}

.content-page .contact-map,
.content-page .contact-map iframe {
	min-height: 455px;
}

/* Gallery layout */
.content-page .gallery-header {
	margin: 4px 0 22px;
}

.content-page .gallery-header .news-title {
	margin: 0 0 4px;
	padding: 0;
	background: transparent;
	color: #172033;
	font-size: 24px;
	font-weight: 800;
}

.content-page .gallery > .row {
	display: flex;
	flex-wrap: wrap;
}

.content-page .gallery-card {
	height: calc(100% - 24px);
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #e4eaf1;
	border-radius: 16px;
	box-shadow: 0 10px 26px rgba(15, 23, 42, .07);
}

.content-page .gallery-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 17px 34px rgba(15, 23, 42, .13);
}

.content-page .gallery-image {
	height: 230px;
	background: #e8edf3;
}

.content-page .gallery-image > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.content-page .gallery-card:hover .gallery-image > img {
	transform: scale(1.04);
}

.content-page .gallery-image .overlay {
	z-index: 1;
}

.content-page .photo-badge {
	z-index: 2;
	background: rgba(15, 23, 42, .82);
	backdrop-filter: blur(7px);
}

.content-page .gallery-info {
	padding: 16px;
	text-align: left;
}

.content-page .gallery-info h4 {
	color: #273449;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.5;
}

/* Video layout */
.content-page .gallery .item > h3 {
	margin: 28px 0 16px;
	color: #172033;
	font-size: 21px;
	font-weight: 800;
}

.content-page .video-iframe {
	overflow: hidden;
	margin-bottom: 24px;
	background: #0f172a;
	border: 1px solid #e4eaf1;
	border-radius: 15px;
	box-shadow: 0 10px 25px rgba(15, 23, 42, .1);
}

.content-page .video-iframe iframe {
	display: block;
	width: 100% !important;
	height: auto !important;
	min-height: 230px;
	aspect-ratio: 16 / 9;
	border: 0;
}

@media (max-width: 991.98px) {
	.content-page .contact-layout {
		grid-template-columns: 1fr;
	}

	.content-page .page-sidebar {
		margin-top: 0;
	}
}

@media (max-width: 767.98px) {
	.content-page {
		padding: 16px 0 42px;
	}

	.content-page .breadcrumb-wrapper {
		margin-bottom: 12px;
	}

	.content-page .breadcrumb-custom {
		padding: 9px 11px;
	}

	.content-page .page-hero {
		gap: 14px;
		min-height: 116px;
		padding: 22px 20px;
		margin-bottom: 18px;
		border-radius: 16px;
	}

	.content-page .page-hero-icon {
		width: 52px;
		height: 52px;
		flex-basis: 52px;
		border-radius: 15px;
		font-size: 21px;
	}

	.content-page .page-hero h1 {
		font-size: clamp(23px, 7vw, 30px);
	}

	.content-page .page-content-card {
		border-radius: 15px;
	}

	.content-page .page-content-card .card-body {
		padding: 25px 20px 30px;
		font-size: 16px;
		line-height: 1.82;
	}

	.content-page .page-content-card .card-body img {
		margin: 20px auto;
		border-radius: 10px;
	}

	.content-page .contact-action {
		width: 100%;
	}

	.content-page .contact-map,
	.content-page .contact-map iframe {
		min-height: 330px;
	}

	.content-page .gallery-image {
		height: 220px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.content-page *,
	.content-page *::before,
	.content-page *::after {
		transition-duration: .01ms !important;
	}
}
