/*!
Theme Name: Castle Health Network 2022
Theme URI: http://underscores.me/
Author: Pooka & Co Ltd
Author URI: https://www.pooka.co
Description: A modern responsive network Theme for the Castle Health Network family of websites.
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: castlehealth2022
This theme, like WordPress, is licensed under the GPL.
Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Utility
	- Forms
## Layouts
# Components
	- Header/Footer
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
	- Blocks
# plugins
# Utilities
	- Accessibility
	- Alignments
--------------------------------------------------------------*/
/* open-sans-regular - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/open-sans-v34-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
		 url('fonts/open-sans-v34-latin-regular.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
	font-display: optional;
}
/* open-sans-700 - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Open Sans';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/open-sans-v34-latin-700.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
		 url('fonts/open-sans-v34-latin-700.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
	font-display: optional;
}
/* montserrat-500 - latin */
@font-face {
	font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
	font-family: 'Montserrat';
	font-style: normal;
	font-weight: 500;
	src: url('fonts/montserrat-v25-latin-500.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+ */
		 url('fonts/montserrat-v25-latin-500.woff') format('woff'); /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+ */
	font-display: optional;
}
@font-face {
	font-family: 'icomoon';
	src:  url('fonts/icomoon.eot?7xbv3i');
	src:  url('fonts/icomoon.eot?7xbv3i#iefix') format('embedded-opentype'),
	  url('fonts/icomoon.ttf?7xbv3i') format('truetype'),
	  url('fonts/icomoon.woff?7xbv3i') format('woff'),
	  url('fonts/icomoon.svg?7xbv3i#icomoon') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
[class^="icon-"], [class*=" icon-"] {
	/* use !important to prevent issues with browser extensions that change fonts */
	font-family: 'icomoon' !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	font-variant: normal;
	text-transform: none;
	line-height: 1;

/* Better Font Rendering == */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.icon-close::before {
	content: "\e907";
}
.icon-mail::before {
	content: "\e900";
}
.icon-arrow_up::before {
	content: "\e901";
}
.icon-arrow_right::before {
	content: "\e902";
}
.icon-arrow_left::before {
	content: "\e903";
}
.icon-arrow_down::before {
	content: "\e904";
}
.icon-tiktok::before {
	content: "\e905";
}
.icon-home::before {
	content: "\e906";
}
.icon-phone::before {
	content: "\e942";
}
.icon-location::before {
	content: "\e947";
}
.icon-calendar::before {
	content: "\e953";
}
.icon-user::before {
	content: "\e971";
}
.icon-users::before {
	content: "\e972";
}
.icon-quotes-left::before {
	content: "\e977";
}
.icon-search::before {
	content: "\e986";
}
.icon-download::before {
	content: "\e9c5";
}
.icon-link::before {
	content: "\e9cb";
}
.icon-new-tab::before {
	content: "\ea7e";
}
.icon-facebook::before {
	content: "\ea90";
}
.icon-instagram::before {
	content: "\ea92";
}
.icon-twitter::before {
	content: "\ea96";
}
.icon-youtube::before {
	content: "\ea9d";
}
.icon-vimeo::before {
	content: "\eaa0";
}
.icon-linkedin::before {
	content: "\eaca";
}
.icon-pinterest::before {
	content: "\ead1";
}


/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers
 * 2. Correct the odd `em` font sizing in all browsers
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers
 */
small,
.small {
	font-size: 90%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
    font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
	line-height: 1.75;
}
p.has-large-font-size {
	line-height: 1.25;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
	margin-top: 0;
	margin-bottom: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-weight: 700;
	line-height: 1.5;
}

h1 {
	font-size: 1.8rem;
}
h2 {
	font-size: 1.6rem;
}
h3 {
	font-size: 1.4rem;
}
h4 {
	font-size: 1.2rem;
}
h5 {
	font-size: 1rem;
}
h6 {
	font-size: 0.85rem;
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6,
body a,
body a:visited,
ol li::before,
ul li::before {
	color: var(--wp--preset--color--primary);
}

body h4 {
	color: var(--wp--preset--color--dark);
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	text-decoration: none;
}

p {
	margin-top: 0;
	margin-bottom: 1rem;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

.text-uppercase {
	text-transform: uppercase;
}


/* Elements
--------------------------------------------- */
html, body {
	overflow-x: hidden;
}
body {
	background: #fff;
}

hr {
	background-color: var(--wp--preset--color--secondary);
	border: 0;
	height: 2px;
	margin-bottom: 1rem;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: square;
}

ol,
ul {
	padding-left: 1.5rem;
}
ol li,
ul li {
	margin-top: 1rem;
	margin-bottom: 1rem;
}

ol {
	list-style: none;
	counter-reset: li
}
ol li::before {
	content: '.' counter(li);
	display: inline-block;
	width: 1em;
	margin-left: -1.5em;
    margin-right: 0.5em;
	text-align: right;
	direction: rtl
}
ol li {
	counter-increment: li
}

ul {
	list-style: none
}
ul li {
	position: relative;
}
ul:not(.ch-vacancies):not(.modern-footnotes-list) > li::before {
	position: absolute;
	top: .6rem;
	left: -1.5rem;
	content: " ";
	width: .6rem;
	height: .6rem;
	background: var(--wp--preset--color--primary);
}
.has-background.has-primary-background-color ul:not(.ch-vacancies):not(.modern-footnotes-list) li::before {
	background:var(--wp--preset--color--light)
}


/* Fixed header */
@media screen and (max-width: 992px) {
	#masthead {
		position: fixed;
		width: 100vw;
		z-index: 9999;
		-webkit-box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
		box-shadow: 0px 5px 10px 0px rgba(0,0,0,0.3);
	}

	body {
		padding-top: 0 !important;
	}

	.site-main {
		margin-top: 122px;
	}

	#masthead .site-branding img {
		max-width: 8rem;
		height: auto;
	}

	#masthead .site-branding .site-title {
		padding-top: .5rem !important;
		padding-bottom: .5rem !important;
	}

	#masthead  #site-navigation button.menu-toggle span,
	#masthead #site-navigation button.menu-toggle span::before,
	#masthead #site-navigation button.menu-toggle span::after {
		width: 30px !important;
		height: 4px !important;
	}

	#masthead #site-navigation button.menu-toggle span::after {
		bottom: -12px;
	}

	#masthead #site-navigation button.menu-toggle span::before {
		top: -12px;
	}
}

#masthead ul,
#masthead ul li,
#colophon ul,
#colophon ul li {
	margin: 0;
	padding: 0;
}
#colophon ul li::before,
#masthead ul li::before {
	display: none;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 0;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: var(--wp--preset--color--primary);
	font-weight: bold;
}
a:visited {
	color: var(--wp--preset--color--primary);
}
a:hover,
a:focus,
a:active {
	color: var(--wp--preset--color--primary);
}
a:focus {
	outline: thin dotted;
}
a:hover,
a:active {
	outline: 0;
}

/* Utility
--------------------------------------------- */
.chgrid {
	display: grid;
}

.clearbefore::before {
	content: "";
	clear: both;
	display: table;
}

.w-100 {
	width: 100% !important;
}
.mw-100 {
	max-width: 100% !important;
}

.h-100 {
	height: 100% !important;
}

.text-center {
	text-align: center;
}

.text-shadow {
	text-shadow: 2px 2px 8px var(--wp--preset--color--dark);
}
@media screen and (min-width: 992px) {
	.text-shadow-lg {
		text-shadow: 2px 2px 8px var(--wp--preset--color--dark);
	}
	.text-shadow-lg-none {
		text-shadow: none;
	}
}

.acf-map {
    width: 100%;
	min-height: 400px;
}
.acf-map img {
   max-width: inherit !important;
}

.castlehealth-icon-box {
	display: flex;
	gap: 1rem;
	align-items: center;
	margin-top: 1.5rem;
	/* border: 2px solid var(--wp--preset--color--primary); */
	/* padding: 1.25rem 1rem; */
	position: relative;
	font-size: 0.7rem;
	text-align: left !important;
	line-height: 1.5;
	z-index: 10;
}
.castlehealth-icon-box::after,
.castlehealth-icon-box::before {
	position: absolute;
	content: '';
	display: block;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: -1;
}
/* .castlehealth-icon-box::before {
	background: var(--wp--preset--color--primary);
	z-index: 0;
	opacity: 0.15;
} */
/* .castlehealth-icon-box::after {
	background: #fff;
	z-index: -1;
} */
.castlehealth-icon-box span {
	/* position: absolute; */
	top: -1.5rem;
	left: calc(50% - 1.5rem);
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	border: 2px solid var(--wp--preset--color--primary);
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: .5rem;
}
.castlehealth-icon-box a {
	position: relative;
}

/* Box sizes */
.box-16x9,
.box-square,
.box-circle {
	display: block;
	position: relative;
	overflow: hidden;
}
.box-16x9:before,
.box-square:before,
.box-circle:before {
	display: block;
	content: "";
	width: 100%;
}
.box-16x9:before {
	padding-top: 56.25%;
}
.box-square:before,
.box-circle:before {
	padding-top: 100%;
}
.box-circle {
	border-radius: 50%;
}
.box-16x9 > .content,
.box-square > .content,
.box-circle > .content {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.box-16x9 .content img,
.box-square .content img,
.box-16x9 .content iframe {
	position: absolute;
	left: 50%;
	top: 50%;
	min-width: 100%;
	height: auto;
	min-height: 100%;
	width: auto;
	-webkit-transform: translateY(-50%) translateX(-50%);
	object-fit: cover;
}
.box-16x9 .content.has-primary-background-color,
.box-square .content.has-primary-background-color {
	border: 1.5rem solid rgba(0,0,0,0);
}
.box-16x9 .content.has-primary-background-color img.logo,
.box-square .content.has-primary-background-color img.logo {
	object-fit: contain;
	min-width: unset;
	min-height: unset;
	max-width: 16rem;
	height: auto;
	max-height: 9rem;
	width: auto;
}

/* Forms
--------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
	-webkit-appearance: none;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}
select {
	border: 1px solid #ccc;
}
textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Header/Footer
--------------------------------------------- */
footer .footer-column-heading,
footer .footer-column-heading a {
	font-weight: bold;
	font-size: 1.2rem;
	opacity: 1 !important;
}
#masthead .has-primary-background-color a,
#colophon.has-primary-background-color a {
	color: #fff;
	text-decoration: none;
	transition: opacity 400ms;
}
#masthead a,
#colophon a {
	text-decoration: none;
}
#masthead .has-primary-background-color #site-navigation a,
#colophon a:not(.footer-logo) {
	opacity: 0.75;
}
#masthead .has-primary-background-color #site-navigation a:focus,
#masthead .has-primary-background-color #site-navigation a:hover,
#masthead .has-primary-background-color #site-navigation li.active a,
#colophon a:not(.footer-logo):focus,
#colophon a:not(.footer-logo):hover {
	opacity: 1;
}

#masthead .site-pre-header {
	border-bottom: 4px solid #917209;
	font-size: 1.15rem;
}
#masthead .site-pre-header a:focus,
#masthead .site-pre-header a:hover {
  color: #917209;
}
#castlehealth-prehead-phone i.icon-phone,
#castlehealth-prehead-search a {
	color: #aaaaaa;
}

#castlehealth-search i.icon-close {
	font-size: 1.5rem;
	font-weight: bold;
	margin-right: -.25rem;
	color: #4b4b4b;
}
#castlehealth-search input[type="search"]:focus {
	outline: none !important;
}

#masthead .search-submit {
	border: none;
	position: relative;
	border-radius: 8px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: 0.05em;
	padding: .75rem 1rem;
	transition: all .1s ease;
	color: #fff !important;
}
#masthead .search-submit:focus,
#masthead .search-submit:hover {
	background: var(--wp--preset--color--primary) !important;
	cursor: pointer;
}

#masthead .site-branding {
	position: relative;
}
#masthead #castlehealth-search {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	border-top: 4px solid #917209;
	color: #4B4B4B;
	box-shadow: 0px 10px 30px -10px rgba(75,75,75,0.75);
	z-index: 100;
}
#castlehealth-search .search-form input.search-field {
	background: none;
	border: none;
	border-radius: 0;
	border-bottom: 4px solid #917209;
	-webkit-appearance: none;
}

.castlehealth-social-links {
	font-size: 1.5rem;
}
.castlehealth-social-links > a {
	margin-right: .9rem;
}
.castlehealth-social-links > a:last-of-type {
	margin-right: 0;
}

/* Footer Push */
#page.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
#colophon {
	margin-top: auto;
}

/* To Top */
#colophon-container {
	position: relative;
}
#castlehealth-totop {
	position: absolute;
	top: 0;
	right: 0;
	font-weight: 400;
	letter-spacing: 0.05em;
	transition: all ease .15s;
}
#castlehealth-totop:focus,
#castlehealth-totop:hover {
	padding-top: 0.75rem !important;
}


/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

#masthead #site-navigation {
	display: flex;
	height: 100%;
	justify-content: end;
	align-items: center;
}
#masthead .menu-item {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	position: relative;
}

/* Desktop menu */
@media screen and (min-width: 992px) {

	#site-navigation div.has-background,
	#site-navigation div.menu-header-menu-primary-container,
	#site-navigation div.menu-header-menu-primary-container > ul,
	#site-navigation div.menu-header-menu-primary-container > ul > li {
		height: 100%;
	}
	#site-navigation div.menu-header-menu-primary-container > ul {
		margin-right: -1rem;
	}
	#site-navigation div.menu-header-menu-primary-container > ul > li > a {
		height: 100%;
		display: flex;
		align-items: center;
		padding: 0 1rem;
		text-align: center;
	}
	#site-navigation div.menu-header-menu-primary-container > ul > li:focus > a,
	#site-navigation div.menu-header-menu-primary-container > ul > li:hover > a,
	#site-navigation div.menu-header-menu-primary-container > ul > li.menu-item-has-children:focus > a,
	#site-navigation div.menu-header-menu-primary-container > ul > li.menu-item-has-children:hover > a {
		/* background: var(--wp--preset--color--primary-darker); */
		background: var(--wp--preset--color--white);
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu {
		/* background: var(--wp--preset--color--primary-darker); */
		background: var(--wp--preset--color--white);
		/* padding: .5rem 1rem; */
		display: block;
		box-shadow: 2px 3px 3px rgba(0, 0, 0, 0.2);
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu > li > a {
		padding: .5rem 1rem;
	}
	#masthead .has-primary-background-color .main-navigation ul li:hover a{
		color: var(--wp--preset--color--primary);
	}
	.pooka-menu-extended-items-footer {
		height: 3rem;
		background: var(--wp--preset--color--primary);
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu a {
		font-weight: normal;
		font-size: 0.9rem;
		padding: .25rem 0;
		width: 12rem;
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu a:focus,
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu a:hover {
		text-decoration: underline;
	}

	#castlehealth-prehead-menu a {
		color: #4b4b4b;
	}

	#masthead ul#header-menu-2 {
		list-style: none;
		margin: 0;
		padding: 0;
		display: flex;
	}
	#masthead ul#header-menu-1 > li > a,
	#masthead ul#header-menu-2 > li > a {
		font-weight: normal;
	}
	#masthead ul#header-menu-2 > li > a {
		margin-left: 2rem;
		font-weight: normal;
	}
	.main-navigation ul ul li:hover > ul {
		display: block;
		/* left: auto; */
		left: 100%;
	}
	.main-navigation ul li:hover > ul {
		left: auto;
	}

	/* Small menu */
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}

	#masthead {
		position: inherit!important;
	}
}

@media screen and (max-width: 991.95px) {
	#masthead .site-branding {
		padding: 0.5rem 0;
		min-height: 71px;
		align-content: center;
	}
	.menu-toggle,
	.main-navigation.toggled ul {
		display: block;
	}
	.main-navigation ul ul li.open > ul {
		display: block;
		/* left: auto; */
		position: static;
		float: none;
	}
	.main-navigation ul li.open > ul {
		left: auto;
	}
	#site-navigation .menu-item-extended .extended-menu-item-level-2 {
		grid-template-rows: auto !important;
	}
	#site-navigation.toggled #castlehealth-menu-container a {
		opacity: 1;
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu li {
		padding: 0.5rem 1.3rem;
	}
	#site-navigation div.menu-header-menu-primary-container ul.sub-menu li .sub-menu li {
		padding: 0;
	}
	#site-navigation #castlehealth-menu-container .menu-item-extended .sub-menu .sub-menu {
		margin-top: 0;
		padding-bottom: 0 !important;
	}
	#site-navigation.toggled #castlehealth-menu-container ul.menu > li {
		border-top: 1px solid rgba(255, 255, 255, 0.3);
		display: flex;
		flex-direction: column;
		margin-bottom: 3px;
		background-color: rgb(from var(--wp--preset--color--primary) r g b / 0.1);
	}
	#site-navigation.toggled #castlehealth-menu-container ul.menu > li a {
		padding: 1rem 1.3rem 1rem 1.3rem;
	}
	#site-navigation.toggled #castlehealth-menu-container,
	#site-navigation.toggled #castlehealth-menu-container ul.menu .sub-menu a {
		padding: 0;
		font-family: 'Open Sans';
	}
	/*#masthead #site-navigation.toggled #castlehealth-menu-container {
		min-height: calc(100vh - 121px);
	}*/
	#masthead #site-navigation #castlehealth-menu-container {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		text-align: left;
		z-index: 100;
		background: var(--wp--preset--color--light) !important;
	}
	#site-navigation #castlehealth-menu-container ul.menu > li > ul a {
		padding: 0.3rem 0;
		opacity: 0.75;
		font-size: 1rem;
	}

	#site-navigation button.menu-toggle {
		margin: 0;
		width: 40px;
		height: 100%;
		border: 0;
		outline: none;
		text-indent: -9999em;
		background: none;
		border-radius: 0;
	}
	#site-navigation button.menu-toggle span,
	#site-navigation button.menu-toggle span::before,
	#site-navigation button.menu-toggle span::after {
		cursor: pointer;
		height: 7px;
		width: 40px;
		background: #fff;
		position: absolute;
		display: block;
		content: '';
		border-radius: 0
	}
	#site-navigation button.menu-toggle span {
		top: calc(50% - 3.5px);
		right: 20px;
	}
	#site-navigation button.menu-toggle span::before {
		top: -15px
	}
	#site-navigation button.menu-toggle span::after {
		bottom: -15px
	}
	.main-navigation ul li.open > ul {
		position: relative;
		width: 100%;
		font-size: 0.9rem;
	}

	#castlehealth-menu-container li.menu-item-has-children > a {
		position: relative;
		display: inline-block;
	}
	#site-navigation ul {
		/* background-color: var(--wp--preset--color--primary); */
		background-color: var(--wp--preset--color--white);
	}
	#site-navigation ul ul.sub-menu ul.sub-menu {
		margin: 0.5rem 0 0 1rem;
	}
	#site-navigation ul ul.sub-menu ul.sub-menu li:not(:last-child) {
		margin-bottom: 0.5rem;
	}
	#masthead .menu-item span.control {
	    position: absolute;
		top: 0;
		display: block;
		right: 1.1rem;
		width: 2.5rem;
		height: 3.75rem;
		cursor: pointer;
		z-index: 1;
	}
	#castlehealth-menu-container li.menu-item-has-children > .control:after {
		display: flex;
		position: absolute;
		align-items: center;
		width: 2.5rem;
		font-family: 'icomoon';
		font-size: 2.5rem;
		content: '\e904';
		height: 3.75rem;
		opacity: 0.6;
		color: var(--wp--preset--color--primary);
	}
	#masthead .menu-item span.control-sub-menu {
		top: -5px;
		width: 2rem;
		right: 1.3rem;
	}
	#castlehealth-menu-container li.menu-item-has-children > .control-sub-menu:after {
		width: 2rem;
		font-size: 2rem;
	}
	#castlehealth-menu-container li.menu-item-has-children.open > .control:after {
		content: '\e901';
	}
	#castlehealth-menu-container ul.menu > li > a {
		font-weight: 1.2rem;
		font-weight: 700;
	}
	#castlehealth-menu-container ul.menu li a {
		color: var(--wp--preset--color--primary);
	}
	#castlehealth-menu-container ul.sub-menu a {
		font-weight: 400;
	}
}

@media screen and (max-width: 575.95px) {
	#site-navigation .menu-item-extended .extended-menu-item-level-2 {
		margin-bottom: 0 !important;
		grid-template-rows: auto !important;
	}
	#site-navigation .menu-item-extended .extended-menu-item-level-2 > a,
	#site-navigation .menu-item-extended .extended-menu-item-level-2 .sub-menu {
		grid-column: 1 / span 2 !important;
	}
	#site-navigation .menu-item-extended .sub-menu .extended-menu-item-level-2 .sub-menu {
		padding-bottom: 0 !important;
	}
	#site-navigation .menu-item-extended .sub-menu .image-wrapper {
		display: none;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.site a:focus,
.site a:hover {
	color: var(--wp--preset--color--primary-darker);
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Menu extended item (mega-menu) */
.pooka-menu-extended-items {
	position: relative;
	z-index: 2;
}

.pooka-menu-extended-parent-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--wp--preset--color--white);
	/* color: #fff; */
	display: none;
}

.pooka-menu-extended-parent-item.active {
	display: block;
}

@media screen and (max-width: 991.95px) {
	.pooka-menu-extended-parent-item.active {
		display: none;
	}	
}

.pooka-menu-extended-parent-item a,
.pooka-menu-extended-parent-item a:visited {
	/* color: #fff !important; */
	opacity: 0.75;
}

.pooka-menu-extended-parent-item a:hover,
.pooka-menu-extended-parent-item a:active,
.pooka-menu-extended-parent-item a:visited:hover {
	text-decoration: underline !important;
	opacity: 1;
}

.pooka-menu-extended-item-image a,
.pooka-menu-extended-item-image a:visited {
	opacity: 1;
}

.pooka-menu-extended-parent-item .alignwide {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
	justify-content: space-between;
	margin-top: 1.5rem;
}

.pooka-menu-extended-item-l2 {
	position: relative;
	display: flex;
	flex: 0 0 calc(50% - 2rem);
	margin-bottom: 1.5rem;
	/* border-top: 3px solid var(--wp--preset--color--primary); */
}

/*.pooka-menu-extended-item-l2:after {
	content: "";
	width: 3px;
	height: 10px;
	position: absolute;
	top: 0;
	right: 0;
	background: var(--wp--preset--color--primary);
}*/

.pooka-menu-extended-item-l2 .pooka-menu-extended-item-image {
	flex: 0 0 10rem;
	margin-right: 1rem;
}

.pooka-menu-extended-item-l2 .pooka-menu-extended-item-title {
	/* margin-top: 0.5rem; */
	margin-bottom: 0.5rem;
}

.pooka-menu-extended-item-l2 .pooka-menu-extended-item-title a,
.pooka-menu-extended-item-l3 .pooka-menu-extended-item-title a {
	position: relative;
	padding-left: 1.1rem;
	transition: opacity 400ms;
}

.pooka-menu-extended-item-l2 .pooka-menu-extended-item-title a:after,
.pooka-menu-extended-item-l3 .pooka-menu-extended-item-title a:after {
	display: flex;
	position: absolute;
	align-items: center;
	top: 0;
	bottom: 0;
	left: 0;
	width: 1rem;
	font-family: 'icomoon';
	/* font-size: 1.5rem; */
	content: '\e902';
	/* color: var(--wp--preset--color--light); */
}

.pooka-menu-extended-item-l2 .pooka-menu-extended-item-desc {
	margin-bottom: 0.5rem;
	padding-left: 1rem;
	padding-right: 1rem;
	font-size: 0.9rem;
}

.pooka-menu-extended-item-l3 {
	margin-bottom: 0.5rem;
}

.pooka-menu-extended-item-l3 a {
	font-weight: normal;
}

#site-navigation .menu-item-extended .sub-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

#site-navigation .menu-item-extended .sub-menu .sub-menu {
	display: block;
	position: relative;
	width: 100%;
	padding-bottom: 1rem !important;
	left: auto
}

#site-navigation .menu-item-extended .sub-menu .menu-item {
	flex: 0 0 100%;
}

#site-navigation .menu-item-extended .extended-menu-item-level-2 {
	position: relative;
	display: grid;
	/* grid-template-columns: 1fr 2fr; */
	grid-template-columns: 7.5rem;
	grid-template-rows: 2rem 4rem;
	/* margin-bottom: 2rem; */
	/* padding: 0.5rem 1.3rem; */
	/* border-top: 3px solid var(--wp--preset--color--primary-darker); */
}

/*#site-navigation .menu-item-extended .extended-menu-item-level-2:after {
	content: "";
	width: 3px;
	height: 10px;
	position: absolute;
	top: 0;
	right: 0;
	background: var(--wp--preset--color--primary-darker);
}*/

#site-navigation .menu-item-extended .sub-menu .image-wrapper {
	width: 100px;
	grid-column: 1 / 1;
	grid-row: 1 / span 2;
}

#site-navigation .menu-item-extended .extended-menu-item-level-2 > a {
	grid-column: 2 / span 1;
	grid-row: 1 / span 1;
	padding-top: 0 !important;
	/* padding: 0 0 0.5rem 0 !important; */
	font-weight: bold;
}

#site-navigation .menu-item-extended .extended-menu-item-level-2 .sub-menu {
	grid-column: 2 / span 1;
	grid-row: 2 / span 1;
}

#site-navigation .menu-item-extended .extended-menu-item-level-2 .sub-menu a {
	/* padding: 0.5rem 0 0 0 !important; */
}

@media screen and (min-width: 992px) {
	#site-navigation .menu-item-extended .sub-menu {
		display: none !important;
	}
}

@media screen and (min-width: 769px) {
	#site-navigation .menu-item-extended .sub-menu .menu-item {
		flex: 0 0 calc(50% - 1rem);
	}
}


/* Breadcrumb */
.rank-math-breadcrumb {
	font-size: 90%;
}
.rank-math-breadcrumb p {
	margin-bottom: 0;
}
.rank-math-breadcrumb a {
	text-decoration: none;
	font-weight: 400;
}
.rank-math-breadcrumb p a:first-of-type {
	visibility: hidden;
	width: 1.25rem;
	display: inline-block;
}
.rank-math-breadcrumb p a:first-of-type::before {
	content: "\e906";
	visibility: visible;
	font-family: 'icomoon' !important;
	speak: never;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
}


/* Pagination */
.castlehealth-pagination {
	font-weight: 600;
	display: flex;
	justify-content: center;
}
.castlehealth-pagination > * {
	padding-left: 1rem;
	padding-right: 1rem;
	line-height: 1;
	height: 3rem;
	display: flex;
	align-items: center;
	transition: all .5s ease;
}
.castlehealth-pagination a.page-numbers {
	text-decoration: none;
	background: var(--wp--preset--color--lightgrey);
	color: var(--wp--preset--color--dark);
}
.castlehealth-pagination span.current,
.castlehealth-pagination a:hover,
.castlehealth-pagination a:focus,
.castlehealth-pagination a.page-numbers.prev:focus,
.castlehealth-pagination a.page-numbers.next:focus,
.castlehealth-pagination a.page-numbers.prev:hover,
.castlehealth-pagination a.page-numbers.next:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--light);
}
.castlehealth-pagination a.page-numbers.prev,
.castlehealth-pagination a.page-numbers.next  {
	background: var(--wp--preset--color--dark);
	color: var(--wp--preset--color--light);
	font-size: 1.5rem;
	padding-left: .75rem;
	padding-right: .75rem;
}


/* Posts and pages
--------------------------------------------- */
.site-main .entry-header {
	margin-top: 1rem;
}

.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.post-visual .post-thumbnail.box-16x9 {
	min-height: 100%;
}
.post-visual p {
	margin-bottom: 0;
}
.post-visual > .wp-block-embed {
	min-height: 100%;
	background: var(--wp--preset--color--dark);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.cat-links .has-primary-color,
.tags-links .has-primary-color {
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	display: inline-block;
	height: 100%;
	float: left;
	margin-right: .5rem;
}

.post-box-text {
	background: var(--wp--preset--color--lightgrey);
}

@media screen and (max-width: 979px) {
	.post-list-content {
		background-color: var(--wp--preset--color--lightgrey);
	}
}

@media screen and (min-width: 992px) {
	.post-list > .col-12:nth-of-type(odd) .py-lg-4 {
		margin-left: -9999em;
		margin-right: -9999em;
		padding-left: 9999em;
		padding-right: 9999em;
		background-color: var(--wp--preset--color--lightgrey);
	}
}

.modern-footnotes-list {
	padding-bottom: 3rem;
}


/* People Posts */
.contributor-avatar {
	border: 3px solid var(--wp--preset--color--primary);
	max-width: 10rem;
	margin-left: auto;
	margin-right: auto;
}
.contributor-linkedin a {
	text-decoration: none;
	font-size: 1.5rem;
}
.contributor-linkedin a:focus,
.contributor-linkedin a:hover {
	text-decoration: underline;
}


/* Content Widths
--------------------------------------------- */

/* Set left/right margins for inner containers */
.wp-block-group.alignfull > *,
.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
.wp-block-group .wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright) {
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* Set left/right margins for mobile */
@media (max-width: 575.95px) {
	.ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull > * {
		margin-left: 20px !important;
		margin-right: 20px !important;
	}
}

@media (min-width: 576px) {
    .ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
    .is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull:not(.alignfix) > * {
        max-width: 510px;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Break point for content-width (690px) + margins (30px + 30px). */
@media( min-width: 768px ) {
    .ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
    .is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.alignwide:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
        max-width: 690px;
    }
	.footer-company-block .row .col-md-6:nth-child(2) {
		text-align: right;
	}
}

@media (min-width: 992px) {
    .ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
    .is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.alignwide:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
        max-width: 800px;
    }
}

/* Align wide and full */
.alignfull,
.alignwide {
    clear: both;
    max-width: 100%;
}
.alignwide {
    margin-left: auto;
    margin-right: auto;
}

.alignfull:not(.alignfix) > *,
.alignwide:not(.alignfix) > * {
    margin-left: auto;
    margin-right: auto;
}

/* Add a break-point for wide-aligned elements */
@media( max-width: 991.95px ) {
	.ch-container > *.alignwide,
	.is-root-container > *.alignwide:not(.alignfix) {
		margin-left: 20px;
		margin-right: 20px;
	}
}
@media( min-width: 992px ) {
	#masthead .alignwide,
    .ch-container > .alignwide,
    .is-root-container > .alignwide,
	.wp-block-group.alignfull:not(.alignfix) > .alignwide {
        max-width: 900px;
    }
}
@media (min-width: 1280px) {
	#masthead .alignwide,
    .ch-container > .alignwide,
    .is-root-container > .alignwide,
	.wp-block-group.alignfull:not(.alignfix) > .alignwide {
        max-width: 1200px;
    }
	.wp-block-cover.alignfull {
		padding-left: calc((100% - 1200px) / 2);
		padding-right: calc((100% - 1200px) / 2);
	}
}

@media (min-width: 1680px) {
	html {
		font-size: 20px;
	}
	.ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
    .is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.alignwide:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
        max-width: 1000px;
    }
	#masthead .alignwide,
    .ch-container > .alignwide,
    .is-root-container > .alignwide,
	.wp-block-group.alignfull:not(.alignfix) > .alignwide {
        max-width: 1400px;
    }
	.wp-block-cover.alignfull {
		padding-left: calc((100% - 1400px) / 2);
		padding-right: calc((100% - 1400px) / 2);
	}
}

@media (min-width: 1980px) {
	html {
		font-size: 24px;
	}
	.ch-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
    .is-root-container > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.has-background > *:not(.alignwide):not(.alignfull):not(.alignleft):not(.alignright),
	.wp-block-group.alignfull:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright),
	.wp-block-group.alignwide:not(.alignfix) > *:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright) {
        max-width: 1200px;
    }
	#masthead .alignwide,
    .ch-container > .alignwide,
    .is-root-container > .alignwide,
	.wp-block-group.alignfull:not(.alignfix) > .alignwide {
        max-width: 1600px;
    }
	.wp-block-cover.alignfull {
		padding-left: calc((100% - 1600px) / 2);
		padding-right: calc((100% - 1600px) / 2);
	}
}


/* Content Vertical spacing
--------------------------------------------- */
.is-root-container > div:first-child,
.is-root-container > section:first-child,
.is-root-container > figure:first-child {
	margin-bottom: 3em;
}
.is-root-container>section.alignfull:first-child + section.alignfull {
	margin-top: -3em;
}

.is-root-container > *:not(.alignfull) + section,
.is-root-container > *:not(.alignfull) + div,
.is-root-container > *:not(.alignfull) + figure {
	margin-top: 3rem;
	margin-bottom: 3rem;
}

.is-root-container > *.alignfull ~ *.alignfull {
	margin-bottom: 0;
}

.is-root-container > *.alignfull + *:not(.alignfull) {
	margin-top: 3rem;
}

.is-root-container > *:last-child:not(.alignfull) {
	margin-bottom: 3rem;
}
.is-root-container:last-child > *:last-child.alignfull {
	margin-bottom: 0;
}
.is-root-container:last-child > *:last-child.alignfull:after {
	clear: both;
	display: table;
	content: '';
}

.wp-block-group.has-background > *:first-child:not(.alignfull) {
	padding-top: 2rem;
}
.wp-block-group.has-background > *:last-child:not(.alignfull) {
	padding-bottom: 2rem;
}
.wp-block-group.has-background .wp-block-group.has-background > *:last-child:not(.alignfull) {
	padding-bottom: 0;
}
.wp-block-group:last-child > *:last-child {
	margin-bottom: 0;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}
.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}
.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}
.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}
.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}
.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}
.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}
.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}
.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}
.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/* Blocks
--------------------------------------------- */

/* Quote */
blockquote {
	margin-top: 2rem;
	margin-bottom: 2rem;
}
.wp-block-quote.is-large,
.wp-block-quote.is-style-large {
    padding: 0;
}
.wp-block-quote p {
	background-color: var(--wp--preset--color--primary);
	color: #fff;
	padding: 1rem 20px 0 !important;
	position: relative;
	margin-bottom: 0;
}
.wp-block-quote.has-background.is-style-default a,
.wp-block-quote.has-background.is-style-quote-secondary-color a {
  color: #fff;
}
.wp-block-quote p:last-of-type {
	margin-bottom: 1.25rem;
	padding-bottom: 0 !important;
}
.wp-block-quote p:last-of-type::after {
	position: absolute;
	bottom: -1rem;
	display: block;
	content: '';
	left: 0;
	width: 0px;
	height: 0px;
	position: relative;
	border-style: solid;
	border-width: 1.25rem 0.7rem 0 0.7rem;
	border-color: var(--wp--preset--color--primary) transparent transparent transparent;
}
.wp-block-quote.has-text-align-center p:last-of-type::after {
	left: calc(50% - .7rem);
}
.wp-block-quote.has-text-align-right p:last-of-type::after {
	left: calc(100% - 1.4rem);
}
.wp-block-quote cite {
	text-transform: uppercase;
	font-style: normal;
	letter-spacing: 0.1em;
}
.wp-block-quote.has-text-align-left cite {
    text-align: left;
}
.wp-block-quote.has-text-align-center cite {
    text-align: center;
}
.wp-block-quote.has-text-align-right cite {
    text-align: right;
}

/* Buttons */
input[type="submit"],
a.wp-block-button__link,
.wp-block-file a.wp-block-file__button {
	background: var(--wp--preset--color--primary);
}
input[type="button"],
input[type="reset"],
input[type="submit"],
.wp-block-button__link,
.wp-block-file a.wp-block-file__button {
	border: none;
	position: relative;
	border-radius: 8px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 1;
	letter-spacing: 0.05em;
	padding: .75rem 1.5rem;
	transition: all .1s ease;
	color: #fff !important;
	margin-bottom: 1rem;
	box-shadow: 0 .15rem 0px var(--wp--preset--color--secondary);
	position: relative;
	top: 0;
	height: auto;
	width: auto;
}
input[type="button"]:focus,
input[type="button"]:hover,
input[type="reset"]:focus,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="submit"]:hover,
.wp-block-button__link:focus,
.wp-block-button__link:hover {
	color: #fff !important;
	box-shadow: none;
	top: 0.15rem;
}

.wp-block-button__link.has-background.has-secondary-background-color {
	box-shadow: 0 .15rem 0px var(--wp--preset--color--primary);
}
.wp-block-button__link.has-background.has-secondary-background-color:focus,
.wp-block-button__link.has-background.has-secondary-background-color:hover {
	box-shadow: none;
}

.has-background:not(.has-light-background-color):not(.has-lightgrey-background-color) .wp-block-button__link {
	box-shadow: 0 .15rem 0px var(--wp--preset--color--light);
}
.has-background:not(.has-light-background-color):not(.has-lightgrey-background-color) .wp-block-button__link:focus,
.has-background:not(.has-light-background-color):not(.has-lightgrey-background-color) .wp-block-button__link:hover {
	box-shadow: none !important;
}

.wp-block-button__link i {
	font-size: 1rem;
}

.wp-block-button__link.small,
.wp-block-file a.wp-block-file__button {
	padding: .5rem .5rem;
	border-bottom: 0;
}
.wp-block-button__link.small:focus,
.wp-block-button__link.small:hover,
.wp-block-file a.wp-block-file__button:focus,
.wp-block-file a.wp-block-file__button:hover {
	margin-top: 0;
}
.wp-block-button__link.small.cat-tag-link {
	margin: .15rem .3rem .15rem 0;
	font-size: .7rem;
}


/* Cover */
.wp-block-cover__inner-container > *:last-of-type {
	margin-bottom: 0;
}
.wp-block-cover,
.wp-block-cover-image {
	padding: 1.5em 1em;
}

/* Image */
.wp-block-image {
	position: relative;
}
.wp-block-image figcaption {
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.025em;
	position: absolute;
	bottom: 0;
	right: 0;
	background: rgba(255,255,255,0.8) !important;
	margin: 0;
	padding: .25rem .5rem !important;
	font-size: 75% !important;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	color: var(--wp--preset--color--dark);
	width: auto;
	left: unset;
}

/* Table */
.wp-block-table table,
.wp-block-table th,
.wp-block-table td {
	border: 1px solid #B1B1B1 !important;
}
.wp-block-table table th,
.wp-block-table table td {
	padding: .25rem .5rem;
}
.wp-block-table.is-style-stripes thead {
	background-color: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: none;
}
.wp-block-table.is-style-stripes tbody tr:nth-child(event) {
	background-color: var(--wp--preset--color--lightgrey);;
}


/* Accordion */
ul.accordionjs {
	padding: 0;
}
.acc_active .acc_head .icon-arrow_down::before {
	content: "\e901";
}
.accordionjs {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	margin-top: 10px;
	margin-bottom: 20px;
}
.castlehealth-related-pages ul ul li:before,
.accordionjs .acc_section:before {
	content: "";
	display: none;
}
.accordionjs .acc_section {
	position: relative;
	z-index: 10;
	margin-top: -1px;
	overflow: hidden;
	background: #F9F9F9;
	margin-bottom: 1rem;
}
.accordionjs .acc_section i {
	font-size: 20px;
	margin-top: 5px;
	font-weight: bold;
}
.accordionjs .acc_section .acc_head {
	position: relative;
	padding: 10px;
	display: flex;
	color: var(--primary-brand-color);
	font-weight: bold;
	justify-content: space-between;
	cursor: pointer;
}
.accordionjs .acc_section .acc_head h3 {
	line-height: 1;
	margin: 5px 0;
}
.accordionjs .acc_section .acc_content {
	padding: 0 10px 10px;
}
.accordionjs .acc_section.acc_active > .acc_content {
	display: block;
}

.icon-plus {
	position: relative;
	display: block;
	width: 16px;
	height: 16px;
}

.icon-plus::before {
	content: "";
	position: absolute;
	left: 0px;
	top: 50%;
	transform: translateY(-50%);
	display: block;
	width: 16px;
	height: 2px;
	background: #404058;
	border-radius: 3px;
}

.icon-plus::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	transform: translateX(-50%);
	display: block;
	width: 2px;
	height: 16px;
	background: #404058;
	border-radius: 3px;
}

.acc_active .icon-plus::after {
	display: none;
}

/* Carousel */
.castlehealth-carousel .glider-dot {
	border-radius: 0;
	background-color: #bbb;
}
.castlehealth-carousel .glider-dot.active {
	background-color: #fff;
}
.castlehealth-carousel .glider-dots {
	position: absolute;
	bottom: 50px;
	width: 100%;
}
.castlehealth-carousel .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	display: block;
}
.castlehealth-carousel .carousel-item {
	aspect-ratio: 16 / 9;
	position: relative;
}
.glider {
	scrollbar-width: none;
}
.castlehealth-carousel .glider {
	padding-bottom: 30px;
}
.castlehealth-carousel .carousel-caption {
	position: absolute;
	bottom: -30px;
	background-color: var(--wp--preset--color--dark);
	width: inherit;
	min-height: 30px;
	line-height: 30px;
	padding: 0 10px;
	color: #fff;
	text-align: center;
	border-top: 3px solid var(--wp--preset--color--secondary);
}
.castlehealth-carousel .glider-dot {
	width: 12px;
	height: 12px;
	margin: 7px;
	padding: 0;
}
.castlehealth-carousel .glider-next,
.castlehealth-carousel .glider-prev {
	top: calc(50% - 30px);
	font-size: 60px;
}
.castlehealth-carousel .glider-next:not(.disabled),
.castlehealth-carousel .glider-prev:not(.disabled) {
	background: #fff;
	opacity: 0.5;
	box-shadow: 0px 10px 30px -14px rgba(75,75,75,0.75);
}
.castlehealth-carousel .glider-next {
	right: 2%;
}
.castlehealth-carousel .glider-prev {
	left: 2%;
}
@media screen and (max-width: 769px) {
	.castlehealth-carousel .glider-next,
	.castlehealth-carousel .glider-prev {
		top: calc(50% - 20px);
		font-size: 40px;
	}
}

/* Our Treatment Centres Block */
.castlehealth-treatment_centres-text {
	margin: 0 auto;
	max-width: 800px;
}

.castlehealth-treatment_centre-details {
	margin-top: auto;
}

.castlehealth-treatment_centre {
	font-size: 0.9rem;
}

.castlehealth-treatment_centre-address,
.castlehealth-treatment_centre-email,
.castlehealth-treatment_centre-phone {
	position: relative;
	padding-left: 40px;
}

.castlehealth-treatment_centre-address i,
.castlehealth-treatment_centre-email i,
.castlehealth-treatment_centre-phone i {
	position: absolute;
	left: 5px;
	top: 5px;
	background-size: 20px;
	display: block;
	width: 20px;
	height: 20px;
}

.castlehealth-treatment_centre-address i {
	-webkit-mask: url('img/pin.svg') no-repeat 100% 100%;
	mask: url('img/pin.svg') no-repeat 100% 100%;
	-webkit-mask-size: cover;
	mask-size: cover;
}

.castlehealth-treatment_centre-email i {
	-webkit-mask: url('img/envelope.svg') no-repeat 100% 100%;
	mask: url('img/envelope.svg') no-repeat 100% 100%;
	-webkit-mask-size: cover;
	mask-size: cover;
}

.castlehealth-treatment_centre-phone i {
	-webkit-mask: url('img/phone.svg') no-repeat 100% 100%;
	mask: url('img/phone.svg') no-repeat 100% 100%;
	-webkit-mask-size: cover;
	mask-size: cover;
}

/* Guest Writer block */
.castlehealth-guest-writer {
	display: flex;
	/* align-items: center; */
	gap: 1rem;
	font-size: 0.7rem;
	/* position: static; */
	/* border: 3px solid var(--wp--preset--color--primary); */
	/* padding: 2rem; */
	/* text-align: center; */
}

/*.castlehealth-guest-writer:before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: var(--wp--preset--color--primary);
	opacity: 0.15;
	z-index: 0;
}*/

.castlehealth-guest-writer .posted-on,
.castlehealth-guest-writer .excerpt {
	position: relative;
	font-weight: normal !important;
	z-index: 1;
}

/* .castlehealth-guest-writer .contributor-avatar {
	margin-top: -4rem;
	max-width: 4rem;
} */

.castlehealth-guest-writer .contributor-avatar.box-circle {
	min-width: 3rem;
	min-height: 3rem;
	height: 3rem;
	margin-left: 0;
	margin-right: 0;
}

.castlehealth-guest-writer .posted-on {
	font-weight: bold;
	color: var(--wp--preset--color--primary);
}

/* Last Assessed Date */
.castlehealth-last-assessed-date {
	text-align: center;
}

.castlehealth-last-assessed-date .castlehealth-icon-box {
	display: flex;
	gap: 1rem;
	align-items: center;
	/* border: 3px solid var(--wp--preset--color--primary); */
	border: none;
	/* padding: 2.5rem 2rem 1.5rem 2rem; */
	padding: 0;
	font-size: 0.7rem;
}

.castlehealth-last-assessed-date .castlehealth-icon-box::before {
	background: none;
}

.castlehealth-last-assessed-date .castlehealth-icon-box span {
	position: static;
	width: 3rem;
	height: 3rem;
	/* top: -2rem; */
}

/* Colour Paragraph and List Block */
.castlehealth-para-list {
	position: relative;
}
.castlehealth-para-list .para-list-bg {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	bottom: 0;
	background: var(--wp--preset--color--primary);
	z-index: -1;
	opacity: 0.15;
}
.castlehealth-para-list .list-container,
.block-icon-card-box {
	box-shadow: 0px 0px 15px 0px rgba(75,75,75,0.5);
}

@media screen and (min-width: 992px) {
	.castlehealth-para-list .para-list-bg {
		left: -9999em;
		right: 33%;
	}
	.castlehealth-para-list.listfirst .para-list-bg {
		left: 33%;
		right: -9999em;
	}
}

/* Billboard */
.castlehealth-billboard .chgrid-box:nth-child(1) {
	grid-column: 1 / span 1;
	grid-row: 1 / span 1;
	align-self: start;
	z-index: 1;
}
.castlehealth-billboard .chgrid-box:nth-child(2) {
	grid-column: 1 / span 1;
	grid-row: 1 / span 1;
	align-self: start;
}
.castlehealth-billboard .brand-logo {
	display: flex;
}
.castlehealth-billboard .brand-logo img {
	max-width: 5rem;
	height: auto;
}
.castlehealth-billboard .billboard-img {
	overflow: hidden;
}
.castlehealth-billboard .billboard-img img {
  object-fit: cover;
  width: 100%;
  min-height: 100%;
  border-radius: 0;
}
@media (max-width: 991.95px) {
	.castlehealth-billboard .brand-logo {
		justify-content: start;
	}
	.castlehealth-billboard .billboard-img img {
		/* border-top-right-radius: 2.5rem;
		border-bottom-left-radius: 2.5rem; */
	}
	.castlehealth-billboard-image-right .billboard-img img {
		/* border-top-left-radius: 2.5rem;
		border-bottom-right-radius: 2.5rem;
		border-top-right-radius: 0;
		border-bottom-left-radius: 0; */
	}
	.castlehealth-billboard h2 {
		font-size: 1.4rem;
		text-align: center;
	}
}
@media (min-width: 992px) {
	.castlehealth-billboard .brand-logo {
		justify-content: end;
	}
	.castlehealth-billboard-image-right .brand-logo {
		justify-content: start;
	}
	.castlehealth-billboard .billboard-img img {
		border-top-right-radius: 5rem;
	}
	.castlehealth-billboard-image-right .billboard-img img {
		border-top-left-radius: 5rem;
		border-top-right-radius: 0;
	}
	.castlehealth-billboard .chgrid {
		grid-template-columns: 50% 50%;
		grid-template-rows: auto auto;
	}
	.castlehealth-billboard .chgrid-box:nth-child(1) {
		grid-column: 2;
		grid-row: 1 / span 1;
		align-self: start;
	}
	.castlehealth-billboard .chgrid-box:nth-child(2) {
		grid-column: 1 / span 1;
		grid-row: 1 / span 3;
	}
	.castlehealth-billboard .chgrid-box:nth-child(3) {
		grid-column: 2;
		grid-row: 2 / span 1;
		align-self: center;
	}
	.castlehealth-billboard .chgrid-box:nth-child(4) {
		grid-column: 2;
		grid-row: 3 / span 1;
		align-self: center;
	}
	.castlehealth-billboard .chgrid-box:nth-child(5) {
		grid-column: 2;
		grid-row: 4 / span 1;
		align-self: end;
		justify-self: start;
	}
	.castlehealth-billboard-with-text .chgrid-box:nth-child(2) {
		grid-row: 1 / span 4;
	}

	/* Align image right */
	.castlehealth-billboard-image-right .chgrid-box:nth-child(1) {
		grid-column: 1;
		grid-row: 1 / span 1;
		align-self: start;
	}
	.castlehealth-billboard-image-right .chgrid-box:nth-child(2) {
		grid-column: 2 / span 1;
		grid-row: 1 / span 3;
	}
	.castlehealth-billboard-image-right .chgrid-box:nth-child(3) {
		grid-column: 1;
		grid-row: 2 / span 1;
		align-self: center;
	}
	.castlehealth-billboard-image-right .chgrid-box:nth-child(4) {
		grid-column: 1;
		grid-row: 3 / span 1;
		align-self: center;
	}
	.castlehealth-billboard-image-right .chgrid-box:nth-child(5) {
		grid-column: 1;
		grid-row: 4 / span 1;
		align-self: end;
		justify-self: start;
	}
	.castlehealth-billboard-image-right.castlehealth-billboard-with-text .chgrid-box:nth-child(2) {
		grid-row: 1 / span 4;
	}
}

/* CTA1 */
.cta1-main {
	position: relative;
	overflow: hidden;
}
.castlehealth-cta1 h2 {
	font-size: 1.8rem;
}
.cta1-content {
	position: relative;
}
.cta1-main .img-container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.cta1-main .img-container img {
	object-fit: cover;
	object-position: 50% 50%;
	width: 100%;
	height: 100%;
}
.cta1-content .wp-block-buttons .wp-block-button__link {
	margin-left: .5rem;
	margin-right: .5rem;
}
@media screen and (max-width: 991.95px) {
	.cta1-content {
		aspect-ratio: 4/3;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
	.cta1-content h2.top {
		flex-grow: 1;
	}
	.cta1-text div {
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}
}
@media screen and (min-width: 992px) {
	.cta1-main {
		display: flex;
	}
	.cta1-main .cta1-img {
		aspect-ratio: 16/9;
		order: 2;
    	flex: 5 1 0;
		position: relative;
	}
	.cta1-content {
		order: 1;
		background: var(--wp--preset--color--primary);
		flex-grow: 1;
		display: flex;
		flex-direction: column;
    	flex: 2 1 0;
	}
	.cta1-content h2 {
		flex-grow: 1;
	}
	.cta1-content .wp-block-button__link {
		background: var(--wp--preset--color--secondary);
	}
	.cta1-text-lg {
		flex-grow: 1;
	}
}

/* CTA2 */
.cta2-content .chgrid-box.three { /* Image max height */
	max-height: 500px;
}
@media (min-width: 992px) {
	.castlehealth-cta2.alignfull .chgrid,
	.castlehealth-cta2.alignwide .chgrid {
		grid-template-columns: 33.3334% 66.6667%;
		grid-template-rows: auto auto auto;
	}
	.castlehealth-cta2.alignfull .chgrid-box.one,
	.castlehealth-cta2.alignwide .chgrid-box.one {
		grid-column: 1 / span 2;
		grid-row: 2 / span 1;
		align-self: end;
	}
	.castlehealth-cta2.alignfull .chgrid-box.two,
	.castlehealth-cta2.alignwide .chgrid-box.two {
		grid-column: 1 / span 2;
		grid-row: 3 / span 1;
		align-self: center;
	}
	.castlehealth-cta2.alignfull .chgrid-box.three,
	.castlehealth-cta2.alignwide .chgrid-box.three {
		grid-column: 1 / span 2;
		grid-row: 1 / span 1;
	}
	.castlehealth-cta2.alignfull .chgrid-box.four,
	.castlehealth-cta2.alignwide .chgrid-box.four {
		grid-column: 1 / span 2;
		grid-row: 4 / span 1;
		align-self: start;
	}
}

/* CTA3 */
.castlehealth-cta3 .chgrid-box.one {
	grid-column: 1 / span 1;
	grid-row: 1 / span 1;
	align-self: end;
	z-index: 1;
	text-shadow: 2px 2px 8px var(--wp--preset--color--dark);
}
.castlehealth-cta3 .chgrid-box.two {
	grid-column: 1 / span 1;
	grid-row: 1 / span 2;
}
.castlehealth-cta3 .chgrid-box.three {
	grid-column: 1;
	grid-row: 2 / span 1;
	align-self: start;
}

@media (min-width: 992px) {
	.castlehealth-cta3 .chgrid {
		grid-template-columns: 50% 50%;
		grid-template-rows: auto auto;
	}
	.castlehealth-cta3 .chgrid-box.one {
		grid-column: 1;
		grid-row: 1 / span 1;
		align-self: end;
		text-shadow: none;
	}
	.castlehealth-cta3 .chgrid-box.two {
		grid-column: 2 / span 1;
		grid-row: 1 / span 2;
	}
	.castlehealth-cta3 .chgrid-box.three {
		grid-column: 1;
		grid-row: 2 / span 1;
		align-self: start;
	}
}

/* CTA4 */
.wp-button-container {
	display: flex;
	gap: 0.5em;
	flex-wrap: wrap;
	justify-content: center;
}
@media screen and (min-width: 1200px) {
	section.castlehealth-cta4:not(.alignfull) .cta4-content {
		border-radius: 12px;
	}
}

/* CTA5 */
@media( max-width: 768.95px ) {
	.ch-container > *.alignwide.cta5-main {
		margin-left: 0;
		margin-right: 0;
	}
}
@media screen and (min-width: 769px) {
	.castlehealth-cta5 {
		position: relative;
	}
	.castlehealth-cta5 .cta5-img {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
	}
	.castlehealth-cta5 .cta5-main {
		position: relative;
	}
	.castlehealth-cta5 .cta5-main .cta5-content {
		background-color: rgba(247,247,247,0.8) !important;
		box-shadow: 0px 0px 15px 0px rgba(75,75,75,0.5);
	}
	section.castlehealth-cta5:not(.alignfull) .cta5-main {
		padding-left: 1.5rem;
	}
}
@media screen and (min-width: 992px) {
	section.castlehealth-cta5:not(.alignfull) .cta5-main {
		padding-left: 2rem;
	}
}
@media screen and (min-width: 1200px) {
	section.castlehealth-cta5.alignwide .cta5-main {
		padding-left: 3rem;
	}
}

/* Youtube with text block */
.castlehealth-youtube-with-text .cmplz-blocked-content-container {
	height: 100% !important;
	background-position: center;
}

.castlehealth-youtube-with-text__embed-div {
	background: #000;
}

.castlehealth-youtube-with-text.video-left-position .row div:first-child {
	order: 1;
}

@media( max-width: 768px ) {
	.castlehealth-youtube-with-text .row div:first-child {
		order: 1;
	}
}

/* Download */
@media( max-width: 575.95px ) {
    .castlehealth-download {
        text-align: center;
    }
}

/* Current Vacancies */
ul.ch-vacancies {
	padding-left: 0;
}

/* Fact */
.castlehealth-fact {
	border-left: 4px solid var(--wp--preset--color--primary);
}
.castlehealth-fact.has-primary-background-color {
	border-left: 4px solid var(--wp--preset--color--secondary);
}
.castlehealth-fact > p:last-of-type {
	margin-bottom: 0;
}
.has-dark-background-color a:hover,
.has-primary-darker-background-color a:hover,
.has-primary-background-color a:hover {
	color: var(--wp--preset--color--secondary);
}
.has-secondary-background-color a:hover {
	color: var(--wp--preset--color--primary);
}
.has-dark-background-color a,
.has-secondary-background-color a,
.has-primary-darker-background-color a,
.has-primary-background-color a,
.has-dark-background-color a:visited,
.has-secondary-background-color a:visited,
.has-primary-darker-background-color a:visited,
.has-primary-background-color a:visited {
	color: var(--wp--preset--color--light);
}
.castlehealth-fact.has-primary-background-color ul li::before {
	background: var(--wp--preset--color--light);
}
.castlehealth-fact.has-primary-background-color ol li::before {
	color: var(--wp--preset--color--light);
}

/* Find Us */
.castlehealth-find-us .d-flex i {
	margin-top: .4rem;
}

/* Icon Card */
.block-icon-card-container {
	position: relative;
}
.block-icon-card-container .block-icon-card-bg {
	position: absolute;
	top: 4rem;
	bottom: 4rem;
	left: 3rem;
	right: 3rem;
	background: var(--wp--preset--color--primary);
	z-index: -1;
	opacity: 0.15;
}

.block-icon-card-box .box-circle {
	width: 22%;
	margin: 0 auto;
	border: 3px solid var(--wp--preset--color--primary);
	max-width: 100px;
}
.block-icon-card-box .box-circle .content {
	display: flex;
	align-items: center;
	justify-content: center;
}
.block-icon-card-box .box-circle svg {
	max-width: 70%;
	height: auto;
	max-height: 70%;
	width: auto;
}

/* Image Section Break */
.castlehealth-imgbreak .chgrid {
	grid-template-columns: 25% 25% 25% 25%;
	overflow: hidden;
}
.castlehealth-imgbreak .chgrid .chgrid-box img {
	object-fit: cover;
	width: 100%;
	min-height: 100%;
}

/* Logo Presentation */
.castlehealth-logo-presentation .box-square .content img {
	object-fit: contain;
	max-width: 100%;
	max-height: 100%;
}

/* Person */
.modal .person-linked-in path {
	fill: var(--wp--preset--color--primary);
}
.modal .person-linked-in a {
	display: block;
	margin: 0 auto;
	width: 30px;
}
.modal .box-person {
	max-width: 250px;
	margin: 0 auto;
}

.modal .person-name {
	font-size: 1.4em;
}

.castlehealth-people .box-person {
	position: relative;
	height: 100%;
	background: #f7f7f7;
	transition: all 400ms;
}

.castlehealth-people .box-person:hover {
	background: var(--wp--preset--color--light);
	box-shadow: 0px 0px 10px 2px rgba(0,0,0,0.5);
}

.modal .box-person-content-inner {
	position: relative;
	max-height: 400px;
	overflow: auto;
	padding-right: 15px;
}

.modal .fade-div {
	position: relative;
	z-index: 1;
	margin-top: -4em;
	pointer-events: none;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255, 1) 90%);
	width: 100%;
	height: 4em;
}

.castlehealth-people .box-person .block-wide-link {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
}

/* Related Pages and Jump Article*/
.castlehealth-jump-article ul ul li,
.castlehealth-related-pages ul ul li {
	margin: 0.5rem 0;
}
.castlehealth-jump-article ul ul li a,
.castlehealth-related-pages ul ul li a {
	text-decoration: none;
	color: #404040;
}
.castlehealth-jump-article ul ul li a:focus,
.castlehealth-jump-article ul ul li a:hover,
.castlehealth-related-pages ul ul li a:focus,
.castlehealth-related-pages ul ul li a:hover {
	color: var(--wp--preset--color--secondary);
}
.castlehealth-jump-article .accordionjs .acc_section .acc_head,
.castlehealth-related-pages .accordionjs .acc_section .acc_head {
	color: var(--wp--preset--color--primary);
}
.accordionjs .acc_section ul li a i {
	font-size: 17px;
}

/* Testimonial Full Width */
.castlehealth-testimonial .testimonial-name {
	position: relative;
	margin-left: 1rem;
}
.castlehealth-testimonial .testimonial-name::before {
	position: absolute;
	top: .75rem;
	left: -1rem;
	content: " ";
	width: .4rem;
	height: .4rem;
	background: var(--wp--preset--color--light);
}
@media( max-width: 768.95px ) {
	.ch-container > *.alignwide.testimonial-main {
		margin-left: 0;
		margin-right: 0;
	}
}
@media screen and (min-width: 769px) {
	.castlehealth-testimonial {
		position: relative;
	}
	.castlehealth-testimonial .testimonial-img {
		position: absolute;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
	}
	.castlehealth-testimonial .testimonial-main {
		position: relative;
	}
	.castlehealth-testimonial .testimonial-main .testimonial-content {
		background-color: rgba(75,75,75,0.8) !important;
		color: #fff;
		box-shadow: 0px 0px 15px 0px rgba(75,75,75,0.5);
	}
	section.castlehealth-testimonial:not(.alignfull) .testimonial-main.left {
		padding-left: 1.5rem;
	}
	section.castlehealth-testimonial:not(.alignfull) .testimonial-main.right {
		padding-right: 1.5rem;
	}
}
@media screen and (min-width: 992px) {
	section.castlehealth-testimonial:not(.alignfull) .testimonial-main.left {
		padding-left: 2rem;
	}
	section.castlehealth-testimonial:not(.alignfull) .testimonial-main.right {
		padding-right: 2rem;
	}
}
@media screen and (min-width: 1200px) {
	section.castlehealth-testimonial.alignwide .testimonial-main.left {
		padding-left: 3rem;
	}
	section.castlehealth-testimonial.alignwide .testimonial-main.right {
		padding-right: 3rem;
	}
}

/* Testimonials */
.castlehealth-testimonials .carousel-item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px;
}
.castlehealth-testimonials .testimonial-content {
	width: calc(100% - 190px);
}
.castlehealth-testimonials .testimonial-name {
	margin-top: 1rem;
	color: var(--wp--preset--color--primary);
	font-size: 1rem;
	font-weight: 600;
}
.castlehealth-testimonials .testimonial-text {
	font-size: 1.2rem;
	font-style: italic;
}
.castlehealth-testimonials .testimonial-image {
	/* flex: 0 0 33%; */
	/* width: 150px;
	padding-bottom: 150px;
	border-radius: 150px;
	height: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat; */
}
.castlehealth-testimonials .testimonial-image img {
	width: 100%;
	height: 100%;
	/* max-height: 460px; */
	object-fit: cover;
	vertical-align: middle;
}
.castlehealth-testimonials .testimonial-image.testimonial-image-has-logo {
	background-color: var(--wp--preset--color--primary);
	background-size: 80%;
}
.castlehealth-testimonials .glider-dot.active {
	background-color: var(--wp--preset--color--primary);
}

.castlehealth-testimonials .glider-prev,
.castlehealth-testimonials .glider-next {
	top: auto;
	left: auto;
	right: 7rem;
	bottom: 1rem;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	box-shadow: 0px 10px 30px -14px rgba(75,75,75,0.75);
	padding-bottom: 8px;
	display: none;
}

.castlehealth-testimonials .glider-next {
	right: 3rem;
}

@media (max-width: 767.95px) {
	.castlehealth-carousel .carousel-caption {
		font-size: 13px;
	}
	.castlehealth-testimonials .testimonial-image {
		/* width: 36%; */
		/* margin: 0 32%; */
		/* padding-bottom: 36%; */
	}
	.castlehealth-testimonials .testimonial-content {
		width: 100%;
		text-align: center;
	}
}

/* Text & Image Horizontal */
@media screen and (min-width: 1280px) {
	.castlehealth-text-image-horizontal .text-content {
		max-width: 575px;
	}
	.castlehealth-text-image-horizontal .row:nth-child(odd) .text-content {
		align-self: end;
	}
}
@media screen and (min-width: 1680px) {
	.castlehealth-text-image-horizontal .text-content {
		max-width: 670px;
	}
}
@media screen and (min-width: 1980px) {
	.castlehealth-text-image-horizontal .text-content {
		max-width: 765px;
	}
}

@media screen and (min-width: 992px) {
	.castlehealth-testimonials .carousel-item {
		flex-wrap: nowrap;
	}
	.castlehealth-testimonials .testimonial-image {
		flex: 0 0 33%;
		max-height: 400px;
	}
	.castlehealth-testimonials .glider-prev,
	.castlehealth-testimonials .glider-next {
		bottom: 2rem;
	}
}

/* Text & Image Vertical */
@media screen and (min-width: 768px) {
	.castlehealth-text-image-vertical .col-12 {
		background: linear-gradient(to right, rgba(0,0,0,0.05), 30%, rgba(0,0,0,0));
	}
	.castlehealth-testimonials .glider-prev,
	.castlehealth-testimonials .glider-next {
		display: block;
	}
}

/* Image Link With Text Block */
.castlehealth-image-link-with-text {
	margin-bottom: 1rem;
}

.castlehealth-image-link-with-text .wp-block-cover {
	position: relative;
	overflow: hidden;
}

.castlehealth-image-link-with-text .wp-block-cover img {
	transition: all .3s ease-in-out;
}

.castlehealth-image-link-with-text .wp-block-cover:hover img {
	-webkit-transform: scale(1.05);
	transform: scale(1.05);
}

.castlehealth-image-link-with-text .image-wide-link {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: block;
	z-index: 1;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Complianz */
.cmplz-cookiebanner {
	transition:none !important;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {
	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}


/* Doctify widget
--------------------------------------------- */
#primary .is-root-container .castlehealth-doctify-widget {
	/* max-width: 100%; */
	/* width: 100%; */
	min-height: 200px;
	height: 370px;
}

@media screen and (max-width: 992px) {
	#primary .is-root-container .castlehealth-doctify-widget {
		height: 450px;
	}
}

@media screen and (max-width: 768px) {
	#primary .is-root-container .castlehealth-doctify-widget {
		height: 580px;
	}
}

@media screen and (max-width: 500px) {
	#primary .is-root-container .castlehealth-doctify-widget {
		height: 630px;
	}
}

@media screen and (max-width: 455px) {
	#primary .is-root-container .castlehealth-doctify-widget {
		height: 685px;
	}
}
