/* ==========================================================================
   TTS – Blog / News archive, post card, pagination and CTA banner
   (replaces Elementor Pro templates #1004, #2777 and #2730)
   ========================================================================== */

:root {
	--tts-primary: #085ba5;
	--tts-navy: #14315e;
	--tts-orange: #ff8600;
	--tts-light: #f2f7fe;
	--tts-text: #545b66;
}

/* Hello Elementor narrows .site-main on non-Elementor pages – use full width */
body .site-main.tts-blog {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.tts-blog *,
.tts-blog *::before,
.tts-blog *::after,
.tts-cta,
.tts-cta * { box-sizing: border-box; }

/* ---------- Shared buttons ---------- */
.tts-btn,
.tts-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 24px;
	border: 1px solid transparent;
	border-radius: 0;
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 20px;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.tts-btn--white,
.tts-btn--white:visited { background: #fff; border-color: #fff; color: var(--tts-primary); }
.tts-btn--white:hover,
.tts-btn--white:focus-visible { background: transparent; color: #fff; }
.tts-btn--orange,
.tts-btn--orange:visited { background: var(--tts-orange); border-color: var(--tts-orange); color: #fff; }
.tts-btn--orange:hover,
.tts-btn--orange:focus-visible { background: transparent; border-color: #fff; color: #fff; }
.tts-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.tts-bh {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100vh;
	padding: 0 20px;
	background-color: var(--tts-primary);
	background-image: var(--tts-bh-bg);
	background-position: top right;
	background-repeat: no-repeat;
	background-size: cover;
}
.tts-bh__media { display: none; }
.tts-bh__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	width: 100%;
	max-width: 702px;
	margin: 0 auto;
}
.tts-blog .tts-bh__title {
	margin: 0;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-size: 34px;
	font-weight: 600;
	line-height: 44px;
	text-align: center;
}
.tts-bh__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 15px;
}

/* ==========================================================================
   Post list
   ========================================================================== */
.tts-blog__list { padding: 60px 20px 90px; }
.tts-blog__container { width: 100%; max-width: 1200px; margin: 0 auto; }
.tts-blog__posts { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 50px; }
.tts-blog__empty { margin: 0; text-align: center; font-family: "Instrument Sans", sans-serif; font-size: 16px; color: var(--tts-text); }

/* ---------- Card ---------- */
.tts-post {
	display: grid;
	grid-template-columns: minmax(0, 740px) 320px;
	justify-content: space-between;
	align-items: center;
	gap: 40px;
	margin: 0;
}
.tts-post__body { min-width: 0; }

.tts-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	margin-bottom: 14px;
	color: var(--tts-navy);
	font-family: "Instrument Sans", sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.tts-blog .tts-post__title {
	margin: 0 0 18px;
	font-family: "Sora", sans-serif;
	font-size: 22px;
	font-weight: 600;
	line-height: 30px;
}
.tts-blog .tts-post__title a,
.tts-blog .tts-post__title a:visited {
	color: var(--tts-primary);
	text-decoration: none;
	background-size: 0% 1px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: background-size .35s ease, color .25s ease;
}
.tts-blog .tts-post__title a:hover,
.tts-blog .tts-post__title a:focus-visible { background-size: 100% 1px; color: var(--tts-navy); }

.tts-post__excerpt {
	margin: 0;
	color: var(--tts-text);
	font-family: "Instrument Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 26px;
}

.tts-post__media {
	display: block;
	overflow: hidden;
	aspect-ratio: 320 / 190;
	border-radius: 6px;
	background: var(--tts-light);
}
.tts-post__img,
.tts-post__noimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.tts-post__noimg { background: linear-gradient(135deg, var(--tts-primary), var(--tts-navy)); }
.tts-post:hover .tts-post__img { transform: scale(1.04); }

/* ---------- Pagination ---------- */
.tts-pagination { margin-top: 40px; }
.tts-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.tts-pagination li { margin: 0; padding: 0; list-style: none; }
.tts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 41px;
	height: 41px;
	padding: 0 8px;
	border: 1px solid var(--tts-primary);
	border-radius: 4px;
	background: #fff;
	color: var(--tts-primary);
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	line-height: 16px;
	text-decoration: none;
	transition: background-color .25s ease, color .25s ease;
}
.tts-pagination a.page-numbers:hover,
.tts-pagination a.page-numbers:focus-visible,
.tts-pagination .page-numbers.current { background: var(--tts-primary); color: #fff; }
.tts-pagination .page-numbers.dots { border-color: transparent; }
.tts-pagination .prev,
.tts-pagination .next { font-size: 22px; }
.tts-pagination .screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ==========================================================================
   CTA banner
   ========================================================================== */
.tts-blog__cta { padding: 0 20px 80px; }

.tts-cta {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1300px;
	min-height: 560px;
	margin: 0 auto;
	padding: 70px;
	border-radius: 6px;
	background-color: var(--tts-primary);
	background-image: var(--tts-cta-bg, none);
	background-position: center;
	background-size: cover;
	isolation: isolate;
}
.tts-cta.has-image::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--tts-cta-overlay, rgba(20, 49, 94, .35));
}
.tts-cta__content { max-width: 780px; }
.tts-cta .tts-cta__eyebrow {
	margin: 0 0 40px;
	color: #fff;
	font-family: "Instrument Sans", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}
.tts-cta .tts-cta__heading {
	margin: 0 0 66px;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-size: 28px;
	font-weight: 600;
	line-height: 34px;
}

/* ==========================================================================
   News archive (Loop Item #701): whole card clickable, product image
   "contained" in a light frame, slightly different type sizes.
   ========================================================================== */
.tts-blog--news .tts-blog__list { padding-top: 58px; }
.tts-post--news {
	position: relative;
	grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
	gap: 130px;
	justify-content: stretch;
}
.tts-post--news .tts-post__meta { margin-bottom: 24px; font-weight: 300; line-height: 16px; }
.tts-blog .tts-post--news .tts-post__title { margin-bottom: 14px; font-size: 23px; line-height: 30px; }
.tts-post--news .tts-post__excerpt { line-height: 25px; }
/* stretch the title link over the whole card */
.tts-blog .tts-post--news .tts-post__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
.tts-post--news .tts-post__media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: auto;
	height: 210px;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, .11);
	border-radius: 5px;
	background: #fff;
}
.tts-post--news .tts-post__img {
	width: 100%;
	max-width: 300px;
	height: 170px;
	padding: 10px;
	object-fit: contain;
}
.tts-post--news:hover .tts-post__img { transform: scale(1.04); }
.tts-post--news .tts-post__noimg { max-width: 300px; height: 170px; border-radius: 4px; }
.tts-blog--news .tts-pagination { margin-top: 33px; }

/* ==========================================================================
   Single post / single news (Elementor template #740)
   ========================================================================== */
body .site-main.tts-single {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}
.tts-single *,
.tts-single *::before,
.tts-single *::after { box-sizing: border-box; }

/* Blue header */
.tts-sh {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 400px;
	padding: 0 20px 60px;
	background: var(--tts-primary);
}
.tts-sh__inner {
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
}
.tts-sh__meta { display: flex; align-items: center; gap: 27px; }
.tts-sh__back {
	flex: 0 0 34px;
	display: block;
	width: 34px;
	height: 34px;
	color: #fff;
	line-height: 0;
	border-radius: 50%;
	transition: transform .25s ease, background-color .25s ease;
}
.tts-sh__back svg { display: block; }
.tts-sh__back:hover,
.tts-sh__back:focus-visible { transform: translateX(-3px); background: rgba(255, 255, 255, .12); }
.tts-sh__back:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.tts-sh__type { display: none; }
.tts-sh__pill {
	display: inline-flex;
	align-items: stretch;
	font-family: "Instrument Sans", sans-serif;
	font-size: 12px;
	line-height: 12px;
	text-transform: uppercase;
	color: #232e52;
}
.tts-sh__cat,
.tts-sh__date { display: inline-flex; align-items: center; padding: 11px 12px; }
.tts-sh__cat { background: #ebf2fe; border-radius: 6px 0 0 6px; font-weight: 700; }
.tts-sh__date { background: #fff; border-radius: 0 6px 6px 0; font-weight: 300; }
.tts-sh__date:only-child { border-radius: 6px; }

.tts-single .tts-sh__title {
	max-width: 951px;
	margin: 0;
	color: #fff;
	font-family: "Sora", sans-serif;
	font-size: 35px;
	font-weight: 600;
	line-height: 45px;
	text-transform: capitalize;
}

/* Content */
.tts-single__body { padding: 50px 20px 0; }
.tts-single__content {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	color: #232e52;
	font-family: "Instrument Sans", sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 33px;
}
.tts-single__content::after { content: ""; display: table; clear: both; }
.tts-single__content > :first-child { margin-top: 0; }
.tts-single__content img { max-width: 100%; height: auto; }
.tts-single__content figure { margin: 0 0 32px; }
.tts-single__content iframe,
.tts-single__content video { max-width: 100%; }
.tts-single__content strong,
.tts-single__content b { font-weight: 600; color: #181e36; }
.tts-single__content blockquote {
	margin: 0 0 32px;
	padding: 4px 0 4px 24px;
	border-left: 3px solid var(--tts-orange);
}
.tts-single__content table { width: 100%; margin-bottom: 32px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.tts-single__content th,
.tts-single__content td { padding: 10px 12px; border: 1px solid #dfe5ee; text-align: left; vertical-align: top; }
.tts-single__content th { background: var(--tts-light); }
.tts-single__content .alignleft { float: left; margin: 6px 28px 20px 0; }
.tts-single__content .alignright { float: right; margin: 6px 0 20px 28px; }
.tts-single__content .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.tts-single__cta { padding: 80px 20px; }

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	.tts-bh { min-height: 70vh; }
	.tts-post { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
	.tts-cta { min-height: 460px; padding: 56px 48px; }
	.tts-post--news { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
}

/* ==========================================================================
   Mobile
   ========================================================================== */
@media (max-width: 767px) {
	/* Hero: image strip on top, text on brand blue below */
	.tts-bh {
		min-height: 0;
		justify-content: flex-start;
		padding: 0;
		background-image: none;
	}
	.tts-bh__media {
		position: relative;
		display: block;
		width: 100%;
		height: clamp(190px, 58vw, 320px); /* ≈250px on a 430px phone */
		background-image: var(--tts-bh-bg-m);
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
	}
	/* fade the bottom of the image into the brand blue */
	.tts-bh__media::after {
		content: "";
		position: absolute;
		left: 0; right: 0; bottom: 0;
		height: 45%;
		background: linear-gradient(180deg, rgba(8, 91, 165, 0) 0%, var(--tts-primary) 100%);
	}
	.tts-bh__content {
		gap: 30px;
		margin-top: 0;
		padding: 10px 20px 50px;
	}
	.tts-blog .tts-bh__title { font-size: 25px; line-height: 30px; }
	.tts-bh__buttons { flex-direction: column; width: 100%; }
	.tts-bh__buttons .tts-btn { width: 100%; max-width: 280px; }

	/* List */
	.tts-blog__list { padding: 40px 20px; }
	.tts-blog__posts { row-gap: 45px; }
	.tts-post { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tts-post__media { order: -1; }
	.tts-blog .tts-post__title { font-size: 19px; line-height: 26px; margin-bottom: 12px; }
	.tts-post__excerpt { font-size: 14px; line-height: 24px; }

	/* CTA */
	.tts-blog__cta { padding: 20px 20px 40px; }
	.tts-cta { min-height: 0; padding: 40px 24px; justify-content: center; text-align: center; }
	.tts-cta__content { display: flex; flex-direction: column; align-items: center; }
	.tts-cta .tts-cta__eyebrow { margin-bottom: 20px; font-size: 14px; }
	.tts-cta .tts-cta__heading { margin-bottom: 32px; font-size: 21px; line-height: 28px; }
	.tts-cta .tts-btn { width: 100%; max-width: 280px; }

	/* News */
	.tts-blog--news .tts-blog__posts { row-gap: 40px; }
	.tts-post--news { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.tts-post--news .tts-post__media { height: auto; padding: 20px 15px 15px 20px; border-radius: 8px; }
	.tts-post--news .tts-post__img { max-width: none; height: 200px; padding: 0; }
	.tts-post--news .tts-post__meta { margin-bottom: 16px; }
	.tts-blog .tts-post--news .tts-post__title { font-size: 18px; line-height: 26px; }
	.tts-post--news .tts-post__excerpt { line-height: 25px; }
	.tts-blog--news .tts-pagination { margin-top: 50px; }
	.tts-blog--news .tts-bh__media { background-position: top center; }
	.tts-blog--news .tts-bh__content { padding-top: 0; padding-bottom: 40px; }
	.tts-blog--news .tts-bh__title { font-size: 23px; line-height: 30px; }

	/* Single */
	.tts-sh { min-height: 0; padding: 40px 20px; }
	.tts-sh__inner { gap: 20px; }
	.tts-sh__meta { gap: 16px; }
	.tts-sh__tag { display: flex; flex-direction: column; gap: 6px; color: #fff; }
	.tts-sh__type {
		display: block;
		font-family: "Instrument Sans", sans-serif;
		font-size: 12px;
		font-weight: 700;
		line-height: 14px;
		text-transform: uppercase;
	}
	.tts-sh__pill { color: #fff; line-height: 14px; }
	.tts-sh__cat,
	.tts-sh__date { padding: 0; background: none; border-radius: 0; }
	.tts-sh__cat { font-weight: 400; }
	.tts-sh__cat::after { content: "|"; margin: 0 6px; }
	.tts-single .tts-sh__title { font-size: 20px; line-height: 29px; }
	.tts-single__body { padding: 40px 20px; }
	.tts-single__content { font-size: 16px; line-height: 28px; }
	.tts-single__content .alignleft,
	.tts-single__content .alignright { float: none; margin: 0 0 24px; }
	.tts-single__cta { padding: 0 20px 40px; }
}
