/* Framfot theme overrides / fixes on top of the captured vendor + app CSS. */

body {
	margin: 0;
}

.blocks-container > .ff-block:first-child {
	margin-top: 0;
}

.section--placeholder {
	background: #e8e8e8;
	color: #5b5b5b;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	font-style: italic;
}

.topnav__bottom .logo img,
.content__center .logo img {
	max-width: 100%;
	height: auto;
}

/* The theme's own CSS shows this centre logo only below 880px (it's hidden
   on desktop). Dropped entirely on mobile too — a second small logo
   squeezed between the phone icon and the profile/search icons reads as
   clutter, and there's already a full-size logo lower on the mobile menu. */
@media (max-width: 880px) {
	.topnav__top .content__center .logo {
		display: none !important;
	}
}

/*
 * Inline SVG icons (framfot_icon()) sized via the inherited font-size, so
 * they drop into the existing fa-fw / fa-2x / fa-3x sizing classes the same
 * way the original icon webfont did.
 */
.icon-svg {
	display: inline-block;
	width: 1em;
	height: 1em;
	vertical-align: -0.125em;
	fill: currentColor;
	flex-shrink: 0;
}

.fa-fw.icon-svg {
	width: 1.28571429em;
	text-align: center;
}

i.icon-svg,
span.icon-svg {
	line-height: 1;
}

/*
 * The original site set an explicit inline height on each carousel slide
 * via JS (measuring the image), so every slide in a carousel was the same
 * height regardless of how much text it held. We don't run that script.
 * A min-height alone isn't enough — a slide with more text than that
 * minimum still grows taller than its neighbours, so the carousel visibly
 * resizes as it rotates. Use a hard height instead (clipping the rare
 * slide whose text doesn't fit) and vertically centre the text block
 * inside it so it reads fine at any content length up to that limit.
 */
.start-hero-carousel .section--start-slide2,
.seminars-carousel .section--start-slide2 {
	height: 504px;
	overflow: hidden;
}

.start-hero-carousel .section--start-slide2 .section__body,
.seminars-carousel .section--start-slide2 .section__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	height: 100%;
}

.start-hero-carousel .section--start-slide2 .section__body > .row,
.seminars-carousel .section--start-slide2 .section__body > .row {
	width: 100%;
}

@media (max-width: 991.98px) {
	.start-hero-carousel .section--start-slide2,
	.seminars-carousel .section--start-slide2 {
		height: 420px;
	}
}

@media (max-width: 575.98px) {
	.start-hero-carousel .section--start-slide2,
	.seminars-carousel .section--start-slide2 {
		height: 340px;
	}
}

.lang-switcher {
	position: relative;
	display: flex;
	align-items: center;
	align-self: stretch;
}

.lang-switcher__toggle {
	display: flex;
	align-items: center;
	padding: 0;
}

.lang-switcher__flag {
	height: 40px;
	width: auto;
	border-radius: 0;
	box-shadow: none;
	object-fit: cover;
	display: block;
}

.lang-switcher__menu img {
	width: 22px;
	height: 15px;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
	object-fit: cover;
	display: block;
}

@media (max-width: 767.98px) {
	.lang-switcher__flag {
		height: 48px;
	}
}

.lang-switcher__menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	/* No margin-top: a gap here would be a dead zone the mouse has to cross
	   with nothing hoverable under it, closing the menu before it arrives.
	   The visual gap is faked with a transparent top border instead, which
	   is still part of this element's hoverable box. */
	margin: 0;
	border-top: 0.75rem solid transparent;
	background-clip: padding-box;
	padding: 0.4rem;
	min-width: 150px;
	list-style: none;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	z-index: 1100;
}

.lang-switcher:hover .lang-switcher__menu {
	display: block;
}

.lang-switcher__menu .lang-item a {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.6rem;
	border-radius: 6px;
	color: #333;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

.lang-switcher__menu .lang-item a:hover {
	background: #f2f2f2;
}

.lang-switcher__menu .lang-item--current a {
	color: #026fdd;
}

