:root {
	--fbe-sec-blue: #00466a;
	--fbe-sec-blue-light: #4285f4;
	--fbe-sec-accent: #ff4854;
	--fbe-sec-border: #dce2e6;
	--fbe-sec-text: #073c5b;
	--fbe-sec-muted: #6e777d;
	--fbe-sec-white: #fff;
}

.fbe-sec,
.fbe-sec * {
	box-sizing: border-box;
}

.fbe-sec {
	position: relative;
	width: 100%;
	color: var(--fbe-sec-text);
}

.fbe-sec button,
.fbe-sec input {
	font: inherit;
}

.fbe-sec__top-output {
	margin-bottom: clamp(44px, 6vw, 82px);
}

.fbe-sec-top {
	position: relative;
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr) 44px;
	align-items: center;
	gap: 12px;
}

.fbe-sec-top__viewport {
	overflow: hidden;
}

.fbe-sec-top__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.fbe-sec-top__track::-webkit-scrollbar {
	display: none;
}

.fbe-sec-top__card {
	--fbe-event-image: none;
	position: relative;
	flex: 0 0 33.333%;
	min-width: 280px;
	min-height: clamp(220px, 27vw, 330px);
	padding: clamp(20px, 3vw, 32px);
	overflow: hidden;
	color: var(--fbe-sec-white);
	background-color: #56747f;
	background-image:
		linear-gradient(180deg, rgba(0, 28, 43, .18), rgba(0, 28, 43, .72)),
		var(--fbe-event-image);
	background-position: center;
	background-size: cover;
	scroll-snap-align: start;
}

.fbe-sec-top__card:nth-child(3n+2) {
	background-color: #7d7770;
}

.fbe-sec-top__card:nth-child(3n+3) {
	background-color: #036584;
}

.fbe-sec-top__category {
	position: relative;
	z-index: 1;
	font-size: 12px;
	line-height: 1.4;
}

.fbe-sec-top__content {
	position: absolute;
	z-index: 1;
	right: clamp(20px, 3vw, 32px);
	bottom: clamp(22px, 3vw, 34px);
	left: clamp(20px, 3vw, 32px);
}

.fbe-sec-top__date {
	margin-bottom: 6px;
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(38px, 4vw, 58px);
	font-weight: 400;
	line-height: .95;
}

.fbe-sec-top__content h3 {
	max-width: 24ch;
	margin: 0;
	font-size: clamp(16px, 1.45vw, 21px);
	font-weight: 400;
	line-height: 1.22;
}

.fbe-sec-top__content h3 a,
.fbe-sec-hero__content h3 a {
	color: var(--fbe-sec-white) !important;
	text-decoration: none;
}

.fbe-sec-top__content h3 a::after,
.fbe-sec-hero__content h3 a::after {
	position: absolute;
	inset: 0;
	content: '';
}

.fbe-sec-top__time {
	margin-top: 10px;
	font-size: 14px;
}

.fbe-sec-top__arrow,
.fbe-sec-hero__arrow {
	position: relative;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 44px;
	height: 52px;
	padding: 0;
	border: 0;
	color: var(--fbe-sec-blue);
	background: var(--fbe-sec-white);
	font-size: 42px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease;
}

.fbe-sec-top__arrow:hover,
.fbe-sec-top__arrow:focus-visible {
	color: var(--fbe-sec-white);
	background: var(--fbe-sec-blue);
}

.fbe-sec__heading {
	margin-bottom: 20px;
}

.fbe-sec__heading h2 {
	margin: 0 0 2px;
	color: var(--fbe-sec-blue);
	font-size: clamp(17px, 1.6vw, 22px);
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.fbe-sec__heading p {
	margin: 0;
	color: var(--fbe-sec-blue-light);
	font-size: clamp(15px, 1.35vw, 19px);
	font-family: "Merriweather", sans-serif;
}

.fbe-sec__main {
	display: grid;
	grid-template-columns: minmax(250px, 31%) minmax(0, 1fr);
	align-items: start;
	gap: clamp(18px, 2.6vw, 36px);
}

.fbe-sec__sidebar {
	min-width: 0;
}

.fbe-sec-calendar {
	padding: clamp(22px, 3vw, 34px);
	border: 1px solid var(--fbe-sec-border);
	background: var(--fbe-sec-white);
}

.fbe-sec-calendar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 22px;
}

.fbe-sec-calendar__head strong {
	font-size: 15px;
	text-transform: capitalize;
}

.fbe-sec-calendar__nav {
	display: flex;
	gap: 4px;
}

.fbe-sec-calendar__nav button {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	color: var(--fbe-sec-blue);
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.fbe-sec-calendar__nav button:hover,
.fbe-sec-calendar__nav button:focus-visible {
	color: var(--fbe-sec-white);
	background: var(--fbe-sec-blue);
}

.fbe-sec-calendar__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 5px 2px;
}

.fbe-sec-calendar__weekday,
.fbe-sec-calendar__day {
	display: grid;
	place-items: center;
	min-width: 0;
	aspect-ratio: 1;
}

.fbe-sec-calendar__weekday {
	color: var(--fbe-sec-blue);
	font-size: 12px;
	font-weight: 700;
}

.fbe-sec-calendar__day {
	position: relative;
	padding: 0;
	border: 0;
	border-radius: 50%;
	color: #5f676c;
	background: transparent;
	font-size: 12px;
	line-height: 1;
}

button.fbe-sec-calendar__day {
	cursor: pointer;
}

.fbe-sec-calendar__day.is-outside {
	opacity: .25;
}

.fbe-sec-calendar__day.is-today:not(.is-active) {
	box-shadow: inset 0 0 0 1px var(--fbe-sec-accent);
}

/*.fbe-sec-calendar__day.has-events::after {
	position: absolute;
	right: 18%;
	bottom: 8%;
	left: 18%;
	height: 2px;
	border-radius: 2px;
	background: var(--fbe-sec-blue-light);
	content: '';
}*/

.fbe-sec-calendar__day.is-active {
	color: var(--fbe-sec-white);
	background: var(--fbe-sec-accent);
}

/*.fbe-sec-calendar__day.is-active::after {
	background: var(--fbe-sec-white);
}*/

.fbe-sec-calendar__day.has-events:hover,
.fbe-sec-calendar__day.has-events:focus-visible {
	color: var(--fbe-sec-white);
	background: var(--fbe-sec-blue);
	outline: none;
}

.fbe-sec-filters {
	display: grid;
	gap: 8px;
	margin: 14px 0 0;
	padding: 0;
	border: 0;
}

.fbe-sec-filters label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--fbe-sec-blue);
	font-size: 13px;
	line-height: 1.35;
	cursor: pointer;
}

.fbe-sec-filters input {
	width: 15px;
	height: 15px;
	margin: 1px 0 0;
	accent-color: var(--fbe-sec-blue);
}

.fbe-sec-filters label.is-active {
	font-weight: 700;
}

.fbe-sec__hero-output {
	min-width: 0;
}

.fbe-sec-hero {
	position: relative;
	min-height: clamp(390px, 48vw, 610px);
	overflow: hidden;
	background: #67757b;
}

.fbe-sec-hero__slides,
.fbe-sec-hero__slide {
	position: absolute;
	inset: 0;
}

.fbe-sec-hero__slide {
	--fbe-event-image: none;
	visibility: hidden;
	opacity: 0;
	background-color: #67757b;
	background-image:
		linear-gradient(90deg, rgba(0, 21, 33, .58), rgba(0, 21, 33, .08)),
		var(--fbe-event-image);
	background-position: center;
	background-size: cover;
	transition: opacity .35s ease, visibility .35s ease;
}

.fbe-sec-hero__slide.is-active {
	visibility: visible;
	opacity: 1;
}

.fbe-sec-hero__content {
	position: absolute;
	z-index: 1;
	top: 50%;
	right: clamp(54px, 8vw, 105px);
	left: clamp(54px, 8vw, 105px);
	color: var(--fbe-sec-white);
	transform: translateY(-50%);
}

.fbe-sec-hero__category {
	margin-bottom: 14px;
	font-size: 13px;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.fbe-sec-hero__content h3 {
	position: relative;
	max-width: 19ch;
	margin: 0;
	font-size: clamp(34px, 4.2vw, 62px);
	font-weight: 400;
	line-height: 1.07;
}

.fbe-sec-hero__meta {
	display: flex;
	gap: 24px;
	margin-top: clamp(38px, 6vw, 80px);
	font-family: Georgia, 'Times New Roman', serif;
	font-size: clamp(20px, 2vw, 30px);
}

.fbe-sec-hero__arrow {
	position: absolute;
	top: 50%;
	color: var(--fbe-sec-white);
	background: rgba(0, 0, 0, .12);
	transform: translateY(-50%);
}

.fbe-sec-hero__arrow.is-prev {
	left: 0;
}

.fbe-sec-hero__arrow.is-next {
	right: 0;
}

.fbe-sec-hero__arrow:hover,
.fbe-sec-hero__arrow:focus-visible {
	background: rgba(0, 0, 0, .52);
}

.fbe-sec-hero__counter {
	position: absolute;
	z-index: 3;
	right: 18px;
	bottom: 14px;
	padding: 5px 9px;
	color: var(--fbe-sec-white);
	background: rgba(0, 0, 0, .42);
	font-size: 12px;
}

.fbe-sec-empty {
	display: grid;
	place-items: center;
	min-height: 180px;
	padding: 30px;
	border: 1px solid var(--fbe-sec-border);
	color: var(--fbe-sec-muted);
	background: #f7f8f9;
	text-align: center;
}

.fbe-sec__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.fbe-sec .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.fbe-sec.is-loading::after {
	position: absolute;
	z-index: 20;
	inset: 0;
	display: grid;
	place-items: center;
	color: var(--fbe-sec-blue);
	background: rgba(255, 255, 255, .72);
	font-weight: 700;
	content: 'Načítám…';
}

@media (max-width: 900px) {
	.fbe-sec-top__card {
		flex-basis: 50%;
	}

	.fbe-sec__main {
		grid-template-columns: 1fr;
	}

	.fbe-sec__sidebar {
		display: grid;
		grid-template-columns: minmax(260px, 1fr) minmax(220px, .8fr);
		gap: 20px;
	}

	.fbe-sec-filters {
		align-content: start;
		margin-top: 0;
	}
}

@media (max-width: 620px) {
	.fbe-sec-top {
		grid-template-columns: minmax(0, 1fr);
	}

	.fbe-sec-top__arrow {
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}

	.fbe-sec-top__arrow.is-prev {
		left: 0;
	}

	.fbe-sec-top__arrow.is-next {
		right: 0;
	}

	.fbe-sec-top__card {
		flex-basis: 86%;
		min-width: 86%;
	}

	.fbe-sec__sidebar {
		display: block;
	}

	.fbe-sec-filters {
		margin-top: 14px;
	}

	.fbe-sec-hero {
		min-height: 430px;
	}

	.fbe-sec-hero__content {
		top: auto;
		right: 48px;
		bottom: 55px;
		left: 48px;
		transform: none;
	}

	.fbe-sec-hero__content h3 {
		font-size: clamp(30px, 10vw, 44px);
	}

	.fbe-sec-hero__meta {
		margin-top: 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fbe-sec-top__track {
		scroll-behavior: auto;
	}

	.fbe-sec-hero__slide {
		transition: none;
	}
}
