/* Codflux Widgets - Flip Boxes - v1.1.0 */
.cfx-fb{
	--fb-speed:.7s;
	--fb-ease:cubic-bezier(.4,.2,.2,1);
	--fb-radius:8px;
	display:grid;
	grid-template-columns:repeat(3,minmax(0,1fr));
	gap:26px;
	width:100%;
	font-family:inherit;
	-webkit-font-smoothing:antialiased;
}
.cfx-fb,.cfx-fb *,.cfx-fb *::before,.cfx-fb *::after{box-sizing:border-box}
.cfx-fb h3,.cfx-fb p{margin:0;padding:0}
.cfx-fb a,.cfx-fb a:hover,.cfx-fb a:focus{text-decoration:none;box-shadow:none;border:0}

.cfx-fb .cfx-fb__item{--o:0;min-width:0;perspective:2200px;overflow:hidden;border-radius:var(--fb-radius);isolation:isolate;transform:translateZ(0)}
.cfx-fb .cfx-fb__card{
	position:relative;width:100%;height:360px;
	transform-style:preserve-3d;
	transition:transform var(--fb-speed) var(--fb-ease);
	cursor:pointer;outline:0;border-radius:var(--fb-radius);
}
.cfx-fb .cfx-fb__face{
	position:absolute;inset:0;overflow:hidden;
	border-radius:var(--fb-radius);
	-webkit-backface-visibility:hidden;backface-visibility:hidden;
}

/* border layers: one inside each face (turns with the flip), one frame for the zoom / fade effects */
.cfx-fb .cfx-fb__bd,.cfx-fb .cfx-fb__frame{position:absolute;inset:0;z-index:5;border:0 solid transparent;border-radius:var(--fb-radius);pointer-events:none;display:block;transition:border-color .35s ease}
.cfx-fb .cfx-fb__frame{display:none}
.cfx-fb--flat .cfx-fb__bd{display:none}
.cfx-fb--flat .cfx-fb__frame{display:block}

/* front */
.cfx-fb .cfx-fb__front{
	display:flex;flex-direction:column;justify-content:flex-end;
	padding:24px 24px 40px;text-align:center;
	background-color:#1e3d2b;
}
.cfx-fb .cfx-fb__img{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block;margin:0}
.cfx-fb .cfx-fb__ov{position:absolute;inset:0;background-color:rgba(0,0,0,.42);pointer-events:none}
.cfx-fb .cfx-fb__ftitle{position:relative;color:#fff;font-size:28px;line-height:1.2;font-weight:500}

/* back */
.cfx-fb .cfx-fb__back{
	display:flex;flex-direction:column;justify-content:center;align-items:var(--fb-ba,flex-start);
	padding:28px;text-align:left;
	background-color:#1e3d2b;color:#cfe3d5;
	visibility:hidden;
	transition:visibility 0s linear calc(var(--fb-speed) / 2);
}
.cfx-fb .cfx-fb__btitle{color:#fff;font-size:24px;line-height:1.25;font-weight:700;margin-bottom:10px}
.cfx-fb .cfx-fb__btext{color:#cfe3d5;font-size:15.5px;line-height:1.6}
.cfx-fb .cfx-fb__btn{
	display:inline-flex;align-items:center;gap:8px;margin-top:20px;padding:0;
	background:none;border:0;border-radius:0;
	color:#c9f7bf;font-size:16px;line-height:1.3;font-weight:700;
	transition:color .25s ease;
}
.cfx-fb .cfx-fb__btn:hover,.cfx-fb .cfx-fb__btn:focus{color:#fff}
.cfx-fb .cfx-fb__btn svg{display:block;flex:none;transition:transform .25s ease}
.cfx-fb .cfx-fb__btn:hover svg{transform:translateX(4px)}
.cfx-fb .cfx-fb__btn:focus-visible{outline:2px solid #c9f7bf;outline-offset:4px}

/* back image */
.cfx-fb .cfx-fb__bimg{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;display:block;margin:0}
.cfx-fb .cfx-fb__bov{position:absolute;inset:0;background-color:rgba(15,35,24,.65);pointer-events:none}
.cfx-fb .cfx-fb__back > :not(.cfx-fb__bimg):not(.cfx-fb__bov):not(.cfx-fb__bd){position:relative}

/* ------------------------------------------------------------------
   Effects. Every effect is driven by one number, --o, on the item:
   0 = front side, 1 = back side. The browser animates between the two
   with the chosen speed + smoothness, so all effects feel the same.
   Everything stays inside the box (clipped to its shape and corners).
------------------------------------------------------------------- */

/* flip left / right, flip up / down */
.cfx-fb--h .cfx-fb__back{transform:rotateY(180deg)}
.cfx-fb--v .cfx-fb__back{transform:rotateX(180deg)}
.cfx-fb--h .cfx-fb__card{transform:rotateY(calc(var(--o) * 180deg))}
.cfx-fb--v .cfx-fb__card{transform:rotateX(calc(var(--o) * 180deg))}

/* effects without 3D: fade, zoom in, zoom out.
   The back side is always complete under / over the front, so the box is never see-through
   and the shape (corners + border) never changes while it animates. */
.cfx-fb--flat .cfx-fb__item{perspective:none}
.cfx-fb--flat .cfx-fb__card{transform-style:flat;overflow:hidden}
.cfx-fb--flat .cfx-fb__front,
.cfx-fb--flat .cfx-fb__back{will-change:transform,opacity,clip-path}
.cfx-fb--flat .cfx-fb__front{
	z-index:2;
	opacity:calc(1 - var(--o));
	transition:opacity var(--fb-speed) var(--fb-ease),transform var(--fb-speed) var(--fb-ease);
}
.cfx-fb--flat .cfx-fb__back{
	z-index:1;
	transition:transform var(--fb-speed) var(--fb-ease),clip-path var(--fb-speed) var(--fb-ease),visibility 0s linear var(--fb-speed);
}

/* zoom in: the back opens from the centre as a rounded box, front zooms in a little */
.cfx-fb--zin .cfx-fb__front{z-index:1;opacity:1;transform:scale(calc(1 + var(--o) * .1))}
.cfx-fb--zin .cfx-fb__back{
	z-index:2;
	clip-path:inset(calc((1 - var(--o)) * 50%) round var(--fb-radius));
	transform:scale(calc(.9 + var(--o) * .1));
}

/* zoom out: front shrinks away, back comes from slightly bigger down to normal size */
.cfx-fb--zout .cfx-fb__front{transform:scale(calc(1 - var(--o) * .2))}
.cfx-fb--zout .cfx-fb__back{transform:scale(calc(1 + (1 - var(--o)) * .25))}

/* fade: front fades out over the back */

/* back becomes visible (and focusable) when open. Front stops catching the mouse in flat effects. */
.cfx-fb .cfx-fb__item.is-flipped{--o:1}
.cfx-fb .is-flipped .cfx-fb__back{visibility:visible;transition-delay:0s}
.cfx-fb--flat .is-flipped .cfx-fb__front{pointer-events:none}

/* keyboard focus (progressive: only browsers that know :has) */
.cfx-fb .cfx-fb__item:has(:focus-visible){--o:1}
.cfx-fb .cfx-fb__item:has(:focus-visible) .cfx-fb__back{visibility:visible;transition-delay:0s}
.cfx-fb--flat .cfx-fb__item:has(:focus-visible) .cfx-fb__front{pointer-events:none}

/* hover (only on devices that really hover) */
@media (hover:hover){
	.cfx-fb--on-hover .cfx-fb__item:hover{--o:1}
	.cfx-fb--on-hover .cfx-fb__item:hover .cfx-fb__back{visibility:visible;transition-delay:0s}
	.cfx-fb--on-hover.cfx-fb--flat .cfx-fb__item:hover .cfx-fb__front{pointer-events:none}
}

@media (max-width:1024px){
	.cfx-fb{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
	.cfx-fb .cfx-fb__card{height:320px}
}
@media (max-width:767px){
	.cfx-fb{grid-template-columns:minmax(0,1fr);gap:18px}
	.cfx-fb .cfx-fb__card{height:280px}
	.cfx-fb .cfx-fb__ftitle{font-size:24px}
	.cfx-fb .cfx-fb__btitle{font-size:21px}
}
@media (prefers-reduced-motion:reduce){
	.cfx-fb .cfx-fb__card,.cfx-fb .cfx-fb__face,.cfx-fb .cfx-fb__btn,.cfx-fb .cfx-fb__btn svg,.cfx-fb .cfx-fb__bd,.cfx-fb .cfx-fb__frame{transition:none!important}
}
