/* Meet Carine page template
   Every rule is scoped under .ibms-carine so nothing leaks into the theme,
   and the theme's own .btn / .container rules cannot reach in.
   Site header and footer come from Elementor Theme Builder. */

.ibms-carine {
	--ibms-c-teal: #118b87;
	--ibms-c-deep: #075a60;
	--ibms-c-ink: #16383b;
	--ibms-c-muted: #677778;
	--ibms-c-edge: #e1e9e6;
	--ibms-c-heading-font: "Playfair", "Playfair Display", Georgia, serif;
	--ibms-c-body-font: "Barlow", Arial, sans-serif;

	font-family: var(--ibms-c-body-font);
	color: #183638;
	background: #fff;
	font-size: 16px;
	line-height: 1.6;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Hello Elementor caps .site-main at the kit's 1140px content width with auto
   side margins, which would leave white gutters either side of the hero and
   the closing band. That rule is a single class, so this one needs the extra
   specificity to win. Width is handled by .ibms-carine__container. */
main.ibms-carine.site-main {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

.ibms-carine *,
.ibms-carine *::before,
.ibms-carine *::after {
	box-sizing: border-box;
}

.ibms-carine a {
	color: var(--ibms-c-teal);
}

.ibms-carine__container {
	width: min(1140px, calc(100% - 40px));
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Hero ---------- */
.ibms-carine__hero {
	background: linear-gradient(135deg, #f3fbf9 0%, #fffaf3 100%);
	border-bottom: 1px solid var(--ibms-c-edge);
	padding: clamp(46px, 7vw, 86px) 0;
	text-align: center;
}

.ibms-carine .overline {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: #5c8c88;
	margin-bottom: 14px;
}

.ibms-carine__hero h1 {
	font: 400 clamp(36px, 5.4vw, 56px)/1.14 var(--ibms-c-heading-font);
	color: var(--ibms-c-ink);
	margin: 0;
	padding: 0;
}

.ibms-carine__standfirst {
	max-width: 720px;
	margin: 18px auto 0;
	font-size: clamp(16px, 2vw, 19px);
	line-height: 1.6;
	color: #4d6a69;
}

/* ---------- Article ----------
   The body is ordinary post content, so these rules have to style whatever
   the block editor emits rather than a known markup structure. */
.ibms-carine__body {
	padding: clamp(40px, 6vw, 72px) 0;
}

.ibms-carine__article {
	max-width: 760px;
	margin: 0 auto;
}

.ibms-carine__article > *:first-child {
	margin-top: 0;
}

.ibms-carine__article h2 {
	font: 400 clamp(26px, 3.4vw, 34px)/1.25 var(--ibms-c-heading-font);
	color: var(--ibms-c-ink);
	margin: 44px 0 14px;
	padding: 0;
}

.ibms-carine__article h3 {
	font: 500 22px/1.3 var(--ibms-c-heading-font);
	color: var(--ibms-c-ink);
	margin: 32px 0 10px;
	padding: 0;
}

.ibms-carine__article p {
	color: #44605f;
	margin: 0 0 18px;
}

.ibms-carine__article ul,
.ibms-carine__article ol {
	color: #44605f;
	margin: 0 0 18px;
	padding-left: 22px;
}

.ibms-carine__article li {
	margin: 0 0 8px;
}

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

/* A short pull quote: any blockquote in the content. */
.ibms-carine__article blockquote {
	margin: 28px 0;
	padding: 4px 0 4px 22px;
	border-left: 3px solid var(--ibms-c-teal);
	font: italic 400 20px/1.5 var(--ibms-c-heading-font);
	color: var(--ibms-c-deep);
}

.ibms-carine__article blockquote p:last-child {
	margin-bottom: 0;
}

/* The post password form, when the page is protected. */
.ibms-carine__article .post-password-form input[type="password"] {
	padding: 10px 12px;
	border: 1px solid var(--ibms-c-edge);
	border-radius: 3px;
}

/* ---------- Certifications ---------- */
.ibms-carine__certs {
	background: #f7fbfa;
	border-top: 1px solid var(--ibms-c-edge);
	border-bottom: 1px solid var(--ibms-c-edge);
	padding: clamp(40px, 6vw, 68px) 0;
}

.ibms-carine__certs h2 {
	font: 400 clamp(26px, 3.4vw, 34px)/1.25 var(--ibms-c-heading-font);
	color: var(--ibms-c-ink);
	margin: 0 0 12px;
	padding: 0;
	text-align: center;
}

.ibms-carine__certs-intro {
	max-width: 620px;
	margin: 0 auto clamp(28px, 4vw, 44px);
	text-align: center;
	color: #4d6a69;
}

.ibms-carine__cert-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ibms-carine__cert {
	background: #fff;
	border: 1px solid var(--ibms-c-edge);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Certificates arrive at whatever aspect ratio the issuer used, so the frame
   is a fixed band and the scan sits inside it uncropped. contain, never cover:
   a cropped certificate looks like a doctored one. */
.ibms-carine__cert-image {
	display: block;
	background: #fff;
	border-bottom: 1px solid var(--ibms-c-edge);
	padding: 14px;
	height: 230px;
}

.ibms-carine__cert-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.ibms-carine__cert-meta {
	padding: 18px 20px 22px;
	flex: 1 1 auto;
}

.ibms-carine__cert-meta h3 {
	font: 500 19px/1.35 var(--ibms-c-heading-font);
	color: var(--ibms-c-ink);
	margin: 0 0 6px;
	padding: 0;
}

.ibms-carine__cert-meta .issuer {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: var(--ibms-c-teal);
}

.ibms-carine__cert-meta .detail {
	margin: 0;
	font-size: 13px;
	color: var(--ibms-c-muted);
}

/* ---------- Closing call to action ---------- */
.ibms-carine__cta {
	background: #0b6664;
	color: #fff;
	text-align: center;
	padding: clamp(38px, 5vw, 56px) 20px;
}

.ibms-carine__cta h2 {
	font: 400 clamp(26px, 3.4vw, 34px)/1.25 var(--ibms-c-heading-font);
	color: #fff;
	margin: 0 0 10px;
	padding: 0;
}

.ibms-carine__cta p {
	max-width: 560px;
	margin: 0 auto 24px;
	color: #d6efed;
}

.ibms-carine__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 11px;
}

.ibms-carine .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 3px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .045em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
}

.ibms-carine .btn-primary {
	background: #fff;
	color: #0b6664;
}

.ibms-carine .btn-outline {
	background: transparent;
	border-color: rgba(255, 255, 255, .55);
	color: #fff;
}

@media (max-width: 570px) {
	.ibms-carine__container {
		width: calc(100% - 28px);
	}

	.ibms-carine__actions .btn {
		width: 100%;
	}
}
