/* ==========================================================================
   CT Core — shared widget styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Banner Box
   -------------------------------------------------------------------------- */
.ct-banner-box {
	--ct-counter-x: 0px;
	--ct-counter-y: 40px;
	--ct-small-x: 0px;
	--ct-small-y: 0px;
	position: relative;
	width: 100%;
}

.ct-banner-box__main {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.ct-banner-box__main img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.5s ease, filter 0.4s ease;
}

/* Counter box */
.ct-banner-box__counter {
	position: absolute;
	z-index: 3;
	background-color: #0B6BE3;
	padding: 24px 26px;
	text-align: center;
}

.ct-banner-box--counter-top-right .ct-banner-box__counter {
	top: var(--ct-counter-y);
	right: var(--ct-counter-x);
}

.ct-banner-box--counter-top-left .ct-banner-box__counter {
	top: var(--ct-counter-y);
	left: var(--ct-counter-x);
}

.ct-banner-box--counter-bottom-right .ct-banner-box__counter {
	bottom: var(--ct-counter-y);
	right: var(--ct-counter-x);
}

.ct-banner-box--counter-bottom-left .ct-banner-box__counter {
	bottom: var(--ct-counter-y);
	left: var(--ct-counter-x);
}

.ct-banner-box__number-wrap {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 2px;
	line-height: 1;
}

.ct-banner-box__counter[style*="text-align: left"] .ct-banner-box__number-wrap,
.ct-banner-box__counter.is-left .ct-banner-box__number-wrap {
	justify-content: flex-start;
}

.ct-banner-box__number,
.ct-banner-box__prefix,
.ct-banner-box__suffix {
	display: inline-block;
	color: #fff;
	font-size: 48px;
	font-weight: 700;
	line-height: 1;
}

.ct-banner-box__counter-title {
	display: block;
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	margin-top: 6px;
}

/* Small image */
.ct-banner-box__small {
	position: absolute;
	z-index: 4;
	line-height: 0;
	overflow: hidden;
	width: 45%;
}

.ct-banner-box__small img {
	display: block;
	width: 100%;
	height: auto;
}

.ct-banner-box--small-bottom-right .ct-banner-box__small {
	bottom: var(--ct-small-y);
	right: var(--ct-small-x);
}

.ct-banner-box--small-bottom-left .ct-banner-box__small {
	bottom: var(--ct-small-y);
	left: var(--ct-small-x);
}

.ct-banner-box--small-top-right .ct-banner-box__small {
	top: var(--ct-small-y);
	right: var(--ct-small-x);
}

.ct-banner-box--small-top-left .ct-banner-box__small {
	top: var(--ct-small-y);
	left: var(--ct-small-x);
}

/* --------------------------------------------------------------------------
   Heading
   -------------------------------------------------------------------------- */
.ct-heading__sub {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #F7B200;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.3;
	padding: 4px 0 4px 26px;
	margin-bottom: 15px;
}

/* Shape image sits behind the text, vertically centred on it */
.ct-heading__sub-bg {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	line-height: 0;
	pointer-events: none;
	z-index: 0;
}

.ct-heading__sub-bg img {
	display: block;
	max-width: none;
	height: auto;
}

/* Auto: the shape follows the heading alignment */
.ct-heading-align-center .ct-heading__sub-bg {
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
}

.ct-heading-align-right .ct-heading__sub-bg {
	left: auto;
	right: 0;
	transform: translateY(-50%);
}

/* Explicit Image Position overrides the automatic placement */
.ct-heading__sub--img-left .ct-heading__sub-bg {
	left: 0;
	right: auto;
	transform: translateY(-50%);
}

.ct-heading__sub--img-center .ct-heading__sub-bg {
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
}

.ct-heading__sub--img-right .ct-heading__sub-bg {
	left: auto;
	right: 0;
	transform: translateY(-50%);
}

.ct-heading__sub--gradient {
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.ct-heading__sub-text {
	position: relative;
	z-index: 1;
}

.ct-heading__line {
	display: inline-block;
	flex: 0 0 auto;
	width: 40px;
	height: 2px;
	background-color: currentColor;
}

.ct-heading__title {
	margin: 0;
	color: #020033;
	font-size: 48px;
	font-weight: 800;
	line-height: 1.25;
}

.ct-heading__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ct-heading__desc {
	margin: 16px 0 0;
	color: #666666;
	font-size: 17px;
	line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Button
   -------------------------------------------------------------------------- */
.ct-btn-wrap {
	line-height: 0;
}

.ct-btn {
	--ct-btn-bg: #F7B200;
	--ct-btn-color: #000000;
	--ct-btn-icon: #FFFFFF;
	--ct-btn-icon-bg: #F9C94D;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 13px 29px;
	background-color: var(--ct-btn-bg);
	color: var(--ct-btn-color);
	border: 0 solid transparent;
	border-radius: 3px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	transition-property: background-color, color, border-color, box-shadow, transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.ct-btn,
.ct-btn:hover,
.ct-btn:focus,
.ct-btn:active,
.ct-btn:visited {
	color: var(--ct-btn-color);
	text-decoration: none;
	cursor: pointer;
}

.ct-btn--full {
	display: flex;
	width: 100%;
}

.ct-btn--secondary {
	--ct-btn-bg: #1979FE;
	--ct-btn-color: #FFFFFF;
	--ct-btn-icon-bg: rgba(255, 255, 255, 0.22);
}

.ct-btn--outline {
	--ct-btn-bg: transparent;
	--ct-btn-color: #020033;
	--ct-btn-icon: #020033;
	--ct-btn-icon-bg: transparent;
	border: 2px solid currentColor;
}

.ct-btn--link {
	--ct-btn-bg: transparent;
	--ct-btn-color: #1979FE;
	--ct-btn-icon: #1979FE;
	--ct-btn-icon-bg: transparent;
	padding-left: 0;
	padding-right: 0;
}

.ct-btn__text {
	display: inline-block;
}

.ct-btn__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: var(--ct-btn-icon);
	font-size: 16px;
	line-height: 1;
	transition-property: background-color, color, transform;
	transition-duration: 300ms;
	transition-timing-function: ease;
}

.ct-btn__icon--box {
	width: 37px;
	height: 37px;
	background-color: var(--ct-btn-icon-bg);
	border-radius: 3px;
}

.ct-btn__icon svg,
.ct-btn__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-btn__icon i {
	line-height: 1;
}

/* --------------------------------------------------------------------------
   Fancy Box
   -------------------------------------------------------------------------- */
.ct-fancy-box {
	position: relative;
	display: grid;
	align-content: start;
	column-gap: 18px;
	row-gap: 24px;
	background-color: #F4F4F4;
	padding: 30px 25px 40px;
	transition-property: background-color, border-color, box-shadow, transform;
	transition-duration: 400ms;
	transition-timing-function: ease;
}

.ct-fancy-box--icon-top {
	grid-template-columns: 1fr;
}

.ct-fancy-box--icon-left {
	grid-template-columns: auto 1fr;
}

.ct-fancy-box--icon-left .ct-fancy-box__icon-wrap {
	grid-area: 1 / 1 / 3 / 2;
}

.ct-fancy-box--icon-left .ct-fancy-box__title {
	grid-area: 1 / 2 / 2 / 3;
}

.ct-fancy-box--icon-left .ct-fancy-box__desc {
	grid-area: 2 / 2 / 3 / 3;
}

.ct-fancy-box--icon-right {
	grid-template-columns: 1fr auto;
}

.ct-fancy-box--icon-right .ct-fancy-box__icon-wrap {
	grid-area: 1 / 2 / 3 / 3;
}

.ct-fancy-box--icon-right .ct-fancy-box__title {
	grid-area: 1 / 1 / 2 / 2;
}

.ct-fancy-box--icon-right .ct-fancy-box__desc {
	grid-area: 2 / 1 / 3 / 2;
}

.ct-fancy-box--icon-title {
	grid-template-columns: auto 1fr;
}

.ct-fancy-box--icon-title .ct-fancy-box__icon-wrap {
	grid-area: 1 / 1 / 2 / 2;
	align-self: center;
}

.ct-fancy-box--icon-title .ct-fancy-box__title {
	grid-area: 1 / 2 / 2 / 3;
	align-self: center;
}

.ct-fancy-box--icon-title .ct-fancy-box__desc {
	grid-area: 2 / 1 / 3 / 3;
}

.ct-fancy-box__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: start;
	width: 62px;
	height: 62px;
	background-color: #1979FE;
	border-radius: 6px;
	transition-property: background-color, transform;
	transition-duration: 400ms;
	transition-timing-function: ease;
}

.ct-fancy-box--icon-top .ct-fancy-box__icon-wrap {
	margin-top: -62px;
}

.ct-fancy-box__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
}

.ct-fancy-box__icon svg,
.ct-fancy-box__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-fancy-box__icon i {
	line-height: 1;
}

.ct-fancy-box__icon img {
	display: block;
	width: 60px;
	height: auto;
}

.ct-fancy-box__title {
	margin: 0;
	color: #020033;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.ct-fancy-box__desc {
	margin: 0;
	color: #666666;
	font-size: 17px;
	line-height: 1.75;
	transition: color 0.3s ease;
}

.ct-fancy-box__link {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	text-indent: -9999px;
	overflow: hidden;
}

/* Icon hover effects */
.ct-fancy-box--hover-zoom:hover .ct-fancy-box__icon-wrap {
	transform: scale(1.09);
}

.ct-fancy-box--hover-rotate:hover .ct-fancy-box__icon-wrap {
	transform: rotate(12deg);
}

.ct-fancy-box--hover-bounce:hover .ct-fancy-box__icon-wrap {
	transform: translateY(-8px);
}

/* --------------------------------------------------------------------------
   Video Button + popup
   -------------------------------------------------------------------------- */
.ct-video-wrap {
	display: flex;
	align-items: center;
	gap: 18px;
}

.ct-video-wrap--text-top,
.ct-video-wrap--text-bottom {
	flex-direction: column;
}

.ct-video-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	background-color: #FFFFFF;
	border-radius: 50%;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.ct-video-button:hover,
.ct-video-button:focus,
.ct-video-button:visited {
	text-decoration: none;
}

.ct-video-button__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #1979FE;
	font-size: 14px;
	line-height: 1;
	transition: color 0.3s ease;
}

.ct-video-button__icon svg,
.ct-video-button__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-video-button__icon i {
	line-height: 1;
}

/* Dotted ring */
.ct-video-button__ring {
	position: absolute;
	inset: -8px;
	border: 2px dotted #FFFFFF;
	border-radius: 50%;
	pointer-events: none;
	transition: border-color 0.3s ease;
	animation-name: ct-spin;
	animation-duration: 6s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-play-state: paused;
}

.ct-video-button--spin-always .ct-video-button__ring {
	animation-play-state: running;
}

.ct-video-button--spin-hover:hover .ct-video-button__ring,
.ct-video-button--spin-hover:focus-visible .ct-video-button__ring,
.ct-video-wrap:hover .ct-video-button--spin-hover .ct-video-button__ring {
	animation-play-state: running;
}

.ct-video-button--spin-none .ct-video-button__ring {
	animation: none;
}

/* Pulse waves */
.ct-video-wrap--pulse .ct-video-button {
	isolation: isolate;
}

.ct-video-wrap--pulse .ct-video-button::before,
.ct-video-wrap--pulse .ct-video-button::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.5);
	z-index: -1;
	animation: ct-pulse 2.4s ease-out infinite;
}

.ct-video-wrap--pulse .ct-video-button::after {
	animation-delay: 1.2s;
}

@keyframes ct-spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

@keyframes ct-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	100% {
		transform: scale(2.2);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {

	.ct-video-button__ring,
	.ct-video-wrap--pulse .ct-video-button::before,
	.ct-video-wrap--pulse .ct-video-button::after {
		animation: none;
	}
}

.ct-video-text {
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
	transition: color 0.3s ease;
}

/* Popup */
.ct-video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background-color: rgba(2, 0, 51, 0.9);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ct-video-modal.is-open {
	opacity: 1;
}

.ct-video-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.ct-video-modal.is-open .ct-video-modal__dialog {
	transform: scale(1);
}

.ct-video-modal__frame {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	background-color: #000000;
	overflow: hidden;
}

.ct-video-modal__frame iframe,
.ct-video-modal__frame video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.ct-video-modal__close {
	position: absolute;
	top: -46px;
	right: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #FFFFFF;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.ct-video-modal__close:hover {
	opacity: 0.7;
}

body.ct-video-modal-open {
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   Project Grid
   -------------------------------------------------------------------------- */
.ct-projects {
	--ct-cols: 4;
	display: grid;
	grid-template-columns: repeat(var(--ct-cols), minmax(0, 1fr));
	grid-auto-rows: 340px;
	gap: 36px;
}

.ct-project {
	position: relative;
	overflow: hidden;
	min-width: 0;
}

.ct-project--w-wide {
	grid-column: span 2;
}

.ct-project--w-xwide {
	grid-column: span 3;
}

.ct-project--w-full {
	grid-column: 1 / -1;
}

.ct-project--h-tall {
	grid-row: span 2;
}

.ct-project__media {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	overflow: hidden;
}

.ct-project__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.ct-project__overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-color: transparent;
	transition: background-color 0.4s ease;
	pointer-events: none;
}

.ct-project__content {
	position: absolute;
	left: 22px;
	right: 22px;
	bottom: 22px;
	display: flex;
	align-items: stretch;
	transition-property: opacity, transform;
	transition-duration: 400ms;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Bar only as wide as its content unless stretched */
.ct-projects:not(.ct-projects--bar-stretch) .ct-project__content {
	right: auto;
	max-width: calc(100% - 44px);
}

.ct-project__info {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	gap: 16px;
	padding: 16px 22px;
	background-color: #071157;
}

/* Plus icon sits under the title, inside the blue box */
.ct-project__content--icon-below .ct-project__info {
	flex-direction: column;
	align-items: flex-start;
}

/* Plus icon beside the title, inside the blue box */
.ct-project__content--icon-right .ct-project__info {
	justify-content: space-between;
}

.ct-project__content--icon-below .ct-project__icon,
.ct-project__content--icon-right .ct-project__icon {
	align-self: auto;
	height: 45px;
}

.ct-project__title {
	margin: 0;
	color: #FFFFFF;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: uppercase;
}

.ct-project__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.ct-project__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 45px;
	min-height: 45px;
	align-self: stretch;
	background-color: #F7B200;
	color: #FFFFFF;
	font-size: 16px;
	line-height: 1;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ct-project__icon i,
.ct-project__icon svg {
	transition: transform 0.3s ease;
}

.ct-project__icon svg,
.ct-project__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Split: left column and right grid, each with its own height */
.ct-projects--split {
	grid-template-columns: var(--ct-left, 50%) minmax(0, 1fr);
	grid-auto-rows: auto;
	align-items: start;
}

.ct-projects__col {
	display: grid;
	gap: var(--ct-gap, 36px);
	min-width: 0;
}

.ct-projects__col--left {
	grid-template-columns: minmax(0, 1fr);
}

.ct-projects__col--right {
	grid-template-columns: repeat(var(--ct-right-cols, 2), minmax(0, 1fr));
}

.ct-projects--split .ct-projects__col--left .ct-project {
	height: var(--ct-left-h, 420px);
}

.ct-projects--split .ct-projects__col--right .ct-project {
	height: var(--ct-right-h, 340px);
}

/* Width/height spans belong to the plain grid, not to the split columns */
.ct-projects--split .ct-project {
	grid-column: auto;
	grid-row: auto;
}

/* Masonry: 1px row tracks, each item spans its own height + one gap */
.ct-projects--masonry {
	grid-auto-rows: 1px;
	row-gap: 0;
	align-items: start;
}

.ct-projects--masonry .ct-project,
.ct-projects--masonry .ct-project--h-tall {
	grid-row: span var(--ct-span, 376);
	height: var(--ct-row-h, 340px);
	margin-bottom: var(--ct-gap, 36px);
}

/* Reveal states */
.ct-projects--reveal-hover .ct-project__content {
	opacity: 0;
	visibility: hidden;
}

.ct-projects--reveal-hover.ct-projects--effect-slide-up .ct-project__content {
	transform: translateY(30px);
}

.ct-projects--reveal-hover.ct-projects--effect-slide-left .ct-project__content {
	transform: translateX(-30px);
}

.ct-projects--reveal-hover.ct-projects--effect-zoom .ct-project__content {
	transform: scale(0.9);
}

.ct-projects--reveal-hover .ct-project:hover .ct-project__content,
.ct-projects--reveal-hover .ct-project:focus-within .ct-project__content,
.ct-projects--reveal-hover .ct-project.is-revealed .ct-project__content {
	opacity: 1;
	visibility: visible;
	transform: none;
}

@media (max-width: 767px) {

	.ct-project--w-wide,
	.ct-project--w-xwide,
	.ct-project--w-full {
		grid-column: 1 / -1;
	}

	.ct-project--h-tall {
		grid-row: auto;
	}

	.ct-projects--split {
		grid-template-columns: minmax(0, 1fr);
	}

	.ct-projects--masonry {
		grid-auto-rows: auto;
		row-gap: var(--ct-gap, 36px);
	}

	.ct-projects--masonry .ct-project,
	.ct-projects--masonry .ct-project--h-tall {
		grid-row: auto;
		margin-bottom: 0;
	}

	/* Opt-in only: "Always" under Mobile Behaviour. */
	.ct-projects--reveal-hover.ct-projects--mobile-always .ct-project__content {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Counter Box
   -------------------------------------------------------------------------- */
.ct-counter {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 177px;
	padding: 34px 32px;
	background-color: #FFFFFF;
	border-radius: 4px;
	transition: background-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}

.ct-counter--clip {
	overflow: hidden;
}

.ct-counter__badge {
	--ct-badge: 128px;
	--ct-badge-x: -13px;
	--ct-badge-y: -12px;
	--ct-deco: 32px;
	position: absolute;
	top: var(--ct-badge-y);
	width: var(--ct-badge);
	height: var(--ct-badge);
}

.ct-counter--icon-top-right .ct-counter__badge {
	right: var(--ct-badge-x);
}

.ct-counter--icon-top-left .ct-counter__badge {
	left: var(--ct-badge-x);
}

.ct-counter--icon-inline .ct-counter__badge {
	position: relative;
	top: auto;
	right: auto;
	left: auto;
	margin-bottom: 18px;
}

.ct-counter__badge-deco {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(var(--ct-badge) + var(--ct-deco));
	height: calc(var(--ct-badge) + var(--ct-deco));
	transform: translate(-50%, -50%);
	background-color: #D9F9F2;
	border-radius: 50%;
	z-index: 0;
}

.ct-counter__badge-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #F7B200;
	border-radius: 50%;
}

.ct-counter__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 36px;
	line-height: 1;
}

.ct-counter__icon svg,
.ct-counter__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-counter__icon img {
	display: block;
	width: 1em;
	height: auto;
}

.ct-counter__number-wrap {
	display: flex;
	align-items: baseline;
	color: #000000;
	font-size: 46px;
	font-weight: 700;
	line-height: 1.1;
	margin-bottom: 14px;
}

.ct-counter__title {
	display: block;
	color: #666666;
	font-size: 18px;
	line-height: 1.4;
}

/* Hover effects animate ONLY the icon, never the circle holding it */
.ct-counter__icon {
	transform-origin: center;
}

.ct-counter--fx-jerk:hover .ct-counter__icon {
	animation: ct-jerk 0.6s ease both;
}

.ct-counter--fx-shake:hover .ct-counter__icon {
	animation: ct-shake 0.6s ease both;
}

.ct-counter--fx-bounce:hover .ct-counter__icon {
	animation: ct-bounce 0.7s ease both;
}

.ct-counter--fx-swing:hover .ct-counter__icon {
	animation: ct-swing 0.7s ease both;
}

.ct-counter--fx-pulse:hover .ct-counter__icon {
	animation: ct-pulse-scale 0.6s ease both;
}

.ct-counter--fx-spin:hover .ct-counter__icon {
	animation: ct-spin 0.7s ease both;
}

@keyframes ct-jerk {
	0%   { transform: translate(0, 0) rotate(0deg); }
	15%  { transform: translate(-6px, -4px) rotate(-8deg); }
	30%  { transform: translate(5px, 3px) rotate(7deg); }
	45%  { transform: translate(-4px, -2px) rotate(-5deg); }
	60%  { transform: translate(3px, 2px) rotate(4deg); }
	75%  { transform: translate(-2px, -1px) rotate(-2deg); }
	100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes ct-shake {
	0%, 100% { transform: translateX(0); }
	20%      { transform: translateX(-8px); }
	40%      { transform: translateX(8px); }
	60%      { transform: translateX(-5px); }
	80%      { transform: translateX(5px); }
}

@keyframes ct-bounce {
	0%, 100% { transform: translateY(0); }
	30%      { transform: translateY(-14px); }
	55%      { transform: translateY(0); }
	75%      { transform: translateY(-6px); }
}

@keyframes ct-swing {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(14deg); }
	50%      { transform: rotate(-10deg); }
	75%      { transform: rotate(6deg); }
}

@keyframes ct-pulse-scale {
	0%, 100% { transform: scale(1); }
	50%      { transform: scale(1.14); }
}

/* --------------------------------------------------------------------------
   Testimonial
   -------------------------------------------------------------------------- */
.ct-testimonial {
	position: relative;
	padding: 34px;
	background-color: #FFFFFF;
	border-radius: 6px;
	transition: box-shadow 0.35s ease;
}

.ct-testimonial__bar {
	position: absolute;
	top: 0;
	left: -6px;
	width: 6px;
	height: 50px;
	background-color: #00D09B;
}

.ct-testimonial__quote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 26px;
	background-color: #CEE1FE;
	border-radius: 50%;
	color: #0A69F9;
	font-size: 22px;
	line-height: 1;
}

.ct-testimonial__quote svg,
.ct-testimonial__quote svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-testimonial__text {
	margin: 0 0 26px;
	color: #666666;
	font-size: 18px;
	line-height: 1.9;
}

.ct-testimonial__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.ct-testimonial__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.ct-testimonial__name {
	margin: 0;
	color: #020033;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.ct-testimonial__role {
	display: block;
	margin-top: 4px;
	color: #666666;
}

.ct-testimonial__rating {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ct-testimonial__rating-label {
	color: #020033;
	font-size: 18px;
	font-weight: 700;
}

/* Photo */
.ct-testimonial__avatar {
	display: block;
	width: 136px;
	height: 136px;
	padding: 6px;
	border: 2px dotted #0A69F9;
	border-radius: 50%;
	line-height: 0;
}

.ct-testimonial__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}

.ct-testimonial--avatar-top-right .ct-testimonial__avatar,
.ct-testimonial--avatar-bottom-right .ct-testimonial__avatar {
	position: absolute;
	right: 34px;
}

.ct-testimonial--avatar-top-right .ct-testimonial__avatar {
	top: 34px;
}

.ct-testimonial--avatar-bottom-right .ct-testimonial__avatar {
	bottom: 34px;
}

.ct-testimonial--avatar-top-right .ct-testimonial__text,
.ct-testimonial--avatar-bottom-right .ct-testimonial__text {
	padding-right: 170px;
}

/* Stars */
.ct-stars {
	--ct-star: #F6B91C;
	--ct-star-empty: #E2E2E2;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 20px;
	line-height: 1;
}

.ct-star {
	position: relative;
	display: inline-block;
	color: var(--ct-star-empty);
}

.ct-star__fill {
	position: absolute;
	top: 0;
	left: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var(--ct-star);
}

@media (max-width: 767px) {

	.ct-testimonial--avatar-top-right .ct-testimonial__avatar,
	.ct-testimonial--avatar-bottom-right .ct-testimonial__avatar {
		position: relative;
		top: auto;
		right: auto;
		bottom: auto;
		margin-bottom: 20px;
	}

	.ct-testimonial--avatar-top-right .ct-testimonial__text,
	.ct-testimonial--avatar-bottom-right .ct-testimonial__text {
		padding-right: 0;
	}
}

/* --------------------------------------------------------------------------
   Project Box (single tile for loops)
   -------------------------------------------------------------------------- */
.ct-projects--single {
	display: block;
	grid-template-columns: none;
	grid-auto-rows: auto;
}

.ct-projects--single .ct-project {
	grid-column: auto;
	grid-row: auto;
	height: 340px;
}

/* --------------------------------------------------------------------------
   Post Navigation
   -------------------------------------------------------------------------- */
.ct-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}

.ct-post-nav--divider {
	border-top: 1px solid #E5E5E5;
	border-bottom: 1px solid #E5E5E5;
	padding: 30px 0;
}

.ct-post-nav__item {
	display: flex;
	align-items: center;
	gap: 24px;
	min-width: 0;
	text-decoration: none;
}

.ct-post-nav__item--empty {
	display: block;
}

.ct-post-nav__item--next {
	flex-direction: row-reverse;
	justify-self: end;
	text-align: right;
}

.ct-post-nav__media {
	--ct-nav-icon-offset: 22px;
	position: relative;
	flex: 0 0 auto;
	line-height: 0;
}

.ct-post-nav__thumb {
	display: block;
	width: 139px;
	height: 139px;
	overflow: hidden;
}

.ct-post-nav__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.ct-post-nav__icon {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	background-color: #020033;
	border-radius: 50%;
	color: #FFFFFF;
	font-size: 15px;
	line-height: 1;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ct-post-nav__item--prev .ct-post-nav__icon {
	right: var(--ct-nav-icon-offset);
}

.ct-post-nav__item--next .ct-post-nav__icon {
	left: var(--ct-nav-icon-offset);
}

.ct-post-nav__icon--standalone {
	position: relative;
	top: auto;
	transform: none;
	flex: 0 0 auto;
}

.ct-post-nav__icon svg,
.ct-post-nav__icon svg path {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ct-post-nav__text {
	min-width: 0;
}

.ct-post-nav__label {
	display: block;
	margin-bottom: 8px;
	color: #020033;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
}

.ct-post-nav__title {
	margin: 0;
	color: #020033;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.3s ease;
}

@media (max-width: 767px) {

	.ct-post-nav {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.ct-post-nav__item--next {
		justify-self: start;
		flex-direction: row;
		text-align: left;
	}

	.ct-post-nav__item--next .ct-post-nav__icon {
		left: auto;
		right: var(--ct-nav-icon-offset);
	}

	.ct-post-nav__item--empty {
		display: none;
	}
}

/* --------------------------------------------------------------------------
   Entrance animations (Case Animate)
   -------------------------------------------------------------------------- */
.ct-animate {
	opacity: 0;
	transition-property: opacity, transform;
	transition-duration: 800ms;
	transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: opacity, transform;
}

.ct-animate--fade-in-up {
	transform: translateY(40px);
}

.ct-animate--fade-in-down {
	transform: translateY(-40px);
}

.ct-animate--fade-in-left {
	transform: translateX(-40px);
}

.ct-animate--fade-in-right {
	transform: translateX(40px);
}

.ct-animate--zoom-in {
	transform: scale(0.88);
}

.ct-animate.ct-animated {
	opacity: 1;
	transform: none;
}

/* Never hide content when JS is unavailable */
.no-js .ct-animate {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {

	.ct-heading-tablet-align-center .ct-heading__sub-bg {
		left: 50%;
		right: auto;
		transform: translate(-50%, -50%);
	}

	.ct-heading-tablet-align-left .ct-heading__sub-bg {
		left: 0;
		right: auto;
		transform: translateY(-50%);
	}

	.ct-heading-tablet-align-right .ct-heading__sub-bg {
		left: auto;
		right: 0;
		transform: translateY(-50%);
	}
}

@media (max-width: 767px) {

	.ct-heading-mobile-align-center .ct-heading__sub-bg {
		left: 50%;
		right: auto;
		transform: translate(-50%, -50%);
	}

	.ct-heading-mobile-align-left .ct-heading__sub-bg {
		left: 0;
		right: auto;
		transform: translateY(-50%);
	}

	.ct-heading-mobile-align-right .ct-heading__sub-bg {
		left: auto;
		right: 0;
		transform: translateY(-50%);
	}

	.ct-banner-box__counter {
		padding: 16px 18px;
	}

	.ct-banner-box__number,
	.ct-banner-box__prefix,
	.ct-banner-box__suffix {
		font-size: 32px;
	}

	.ct-banner-box__counter-title {
		font-size: 16px;
	}

	.ct-heading__title {
		font-size: 30px;
	}

	.ct-fancy-box {
		padding: 24px;
	}

	.ct-fancy-box__icon-wrap {
		width: 56px;
		height: 56px;
	}

	.ct-fancy-box--icon-top .ct-fancy-box__icon-wrap {
		margin-top: -50px;
	}

	.ct-fancy-box__title {
		font-size: 19px;
	}
}
