/*
 * Front-end styles of the GDAKK events menu, the "Co nas czeka?" widget and the [gdakk_hero] section.
 * Sizes are in px because Zerif Lite (Bootstrap 3) sets the root font size to 10px.
 */

/* ==========================================================================
   Facebook icon link
   ========================================================================== */

.gdakk-fb {
	display: inline-block;
	margin-left: 4px;
	border-radius: 50%;
	line-height: 0;
	vertical-align: -3px;
	transition: transform 0.15s ease;
}

.gdakk-fb:hover,
.gdakk-fb:focus {
	transform: scale(1.15);
}

.gdakk-fb__icon {
	display: block;
	width: 16px;
	height: 16px;
}

/* ==========================================================================
   Events menu
   ========================================================================== */

.gdakk-menu-event__date {
	opacity: 0.65;
	font-size: 0.9em;
	white-space: nowrap;
}

.gdakk-menu-event--past > a {
	opacity: 0.55;
}

.gdakk-menu-event--past > a:hover,
.gdakk-menu-event--past > a:focus {
	opacity: 0.9;
}

.gdakk-menu-event--ongoing > a::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #1e9e6b;
	vertical-align: 1px;
}

/* ==========================================================================
   "Co nas czeka?" widget
   ========================================================================== */

.gdakk-events {
	text-align: left;
}

.gdakk-events .gdakk-events__list {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Vertical rail, fading out after the last event. */
.gdakk-events .gdakk-events__list::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 0;
	left: 6px;
	width: 2px;
	background: linear-gradient(to bottom, #e6e6e6 75%, rgba(230, 230, 230, 0));
}

.gdakk-events .gdakk-events__item,
.gdakk-events .gdakk-events__today,
.gdakk-events .gdakk-events__empty {
	position: relative;
	margin: 0;
	padding: 0 0 18px 28px;
	list-style: none;
	text-align: left;
}

/* Zerif Lite draws a bullet with li:before in widgets. */
.gdakk-events .gdakk-events__item::before,
.gdakk-events .gdakk-events__empty::before {
	content: none;
	display: none;
}

.gdakk-events__marker {
	position: absolute;
	z-index: 1;
	top: 4px;
	left: 0;
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border: 2px solid #e96656;
	border-radius: 50%;
	background: #fff;
}

.gdakk-events__item--past .gdakk-events__marker {
	border-color: #d4d4d4;
	background: #d4d4d4;
}

.gdakk-events__item--next .gdakk-events__marker {
	background: #e96656;
	box-shadow: 0 0 0 4px rgba(233, 102, 86, 0.18);
}

.gdakk-events__item--ongoing .gdakk-events__marker {
	border-color: #1e9e6b;
	background: #1e9e6b;
	box-shadow: 0 0 0 4px rgba(30, 158, 107, 0.18);
}

.gdakk-events__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	margin-bottom: 2px;
	line-height: 20px;
}

.gdakk-events__date {
	color: #e96656;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.gdakk-events__badge {
	padding: 0 7px;
	border-radius: 999px;
	background: rgba(233, 102, 86, 0.1);
	color: #c4402f;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 17px;
	text-transform: uppercase;
	white-space: nowrap;
}

.gdakk-events__title {
	display: block;
	color: #404040;
	font-size: 15px;
	line-height: 21px;
}

.gdakk-events__item--next .gdakk-events__title {
	font-weight: 700;
}

.gdakk-events .gdakk-events__link {
	color: #404040;
	text-decoration: none;
	transition: color 0.15s ease;
}

.gdakk-events .gdakk-events__link:hover,
.gdakk-events .gdakk-events__link:focus {
	color: #e96656;
}

.gdakk-events__item--past .gdakk-events__date,
.gdakk-events__item--past .gdakk-events__title,
.gdakk-events .gdakk-events__item--past .gdakk-events__link {
	color: #a3a3a3;
}

.gdakk-events__item--past .gdakk-events__badge {
	background: #f0f0f0;
	color: #8f8f8f;
}

.gdakk-events__item--ongoing .gdakk-events__date {
	color: #1e9e6b;
}

.gdakk-events__item--ongoing .gdakk-events__badge {
	background: rgba(30, 158, 107, 0.12);
	color: #14804f;
}

/* "Today" divider between past and upcoming events. */
.gdakk-events .gdakk-events__today {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #e96656;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 14px;
	text-transform: uppercase;
}

.gdakk-events .gdakk-events__today::before {
	content: "";
	float: none;
	position: absolute;
	top: 6px;
	left: 0;
	width: 14px;
	height: 2px;
	margin: 0;
	background: #e96656;
}

.gdakk-events .gdakk-events__today::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(233, 102, 86, 0.3);
}

.gdakk-events .gdakk-events__empty {
	color: #a3a3a3;
	font-size: 14px;
	font-style: italic;
	line-height: 20px;
}

.gdakk-events .gdakk-events__more {
	margin: 0;
	padding-left: 28px;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: left;
	text-transform: uppercase;
}

.gdakk-events .gdakk-events__more a {
	color: #e96656;
	text-decoration: none;
}

.gdakk-events .gdakk-events__more a:hover,
.gdakk-events .gdakk-events__more a:focus {
	color: #cb4332;
}

/* ==========================================================================
   Hero section
   ========================================================================== */

.gdakk-hero {
	--gdakk-hero-highlight: #f7b500;
	--gdakk-hero-red: #e96656;
	--gdakk-hero-red-dark: #cb4332;
	--gdakk-hero-green: #1e9e6b;
	--gdakk-hero-green-dark: #069059;
	--gdakk-hero-panel: rgba(10, 16, 32, 0.55);
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	padding: 48px 0;
	overflow: hidden;
	background-color: #1a2440;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	color: #fff;
	font-family: "Lato", Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}

.gdakk-hero *,
.gdakk-hero *::before,
.gdakk-hero *::after {
	box-sizing: border-box;
}

.gdakk-hero [hidden] {
	display: none !important;
}

.gdakk-hero--no-background {
	background-color: transparent;
}

/* Darkens the photo: more on the left behind the slogan and towards the bottom behind the timeline. */
.gdakk-hero::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background:
		linear-gradient(90deg, rgba(8, 12, 24, 0.6) 0%, rgba(8, 12, 24, 0.15) 75%),
		linear-gradient(180deg, rgba(8, 12, 24, 0.35) 0%, rgba(8, 12, 24, 0.1) 40%, rgba(8, 12, 24, 0.75) 100%);
}

.gdakk-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 15px;
}

.gdakk-hero__top {
	display: grid;
	align-items: center;
	gap: 32px;
}

/* Intro */

.gdakk-hero__intro {
	text-align: center;
}

.gdakk-hero__intro:only-child {
	grid-column: 1 / -1;
}

.gdakk-hero__logo {
	display: inline-block;
	width: 190px;
	max-width: 60%;
	margin: 0 0 24px;
	line-height: 0;
}

.gdakk-hero__logo img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
}

.gdakk-hero .gdakk-hero__title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: clamp(34px, 5vw, 62px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.08;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
	text-transform: uppercase;
}

.gdakk-hero__subtitle {
	display: block;
	margin-top: 14px;
	color: var(--gdakk-hero-highlight);
	font-size: clamp(19px, 2.2vw, 26px);
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
}

/* Course card */

.gdakk-hero__course {
	padding: 26px 26px 28px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 18px;
	background: var(--gdakk-hero-panel);
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.gdakk-hero .gdakk-hero__eyebrow {
	margin: 0 0 6px;
	color: var(--gdakk-hero-highlight);
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.gdakk-hero .gdakk-hero__course-title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	text-transform: none;
}

.gdakk-hero .gdakk-hero__course-date {
	margin: 4px 0 18px;
	color: rgba(255, 255, 255, 0.8);
	font-size: 16px;
}

.gdakk-hero .gdakk-hero__course-text {
	margin: 8px 0 22px;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
}

.gdakk-hero__live {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 10px;
	border-radius: 50%;
	background: var(--gdakk-hero-green);
	vertical-align: 2px;
	animation: gdakk-pulse-green 2s ease-out infinite;
}

.gdakk-countdown {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin: 0 0 22px;
}

.gdakk-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 12px 4px 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.07);
}

.gdakk-countdown__value {
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 30px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1;
}

.gdakk-countdown__label {
	margin-top: 6px;
	color: rgba(255, 255, 255, 0.7);
	font-size: 11px;
	letter-spacing: 0.1em;
	line-height: 1.2;
	text-transform: uppercase;
}

.gdakk-hero .gdakk-hero__button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 20px;
	border-radius: 4px;
	background: var(--gdakk-hero-red);
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.gdakk-hero .gdakk-hero__button:hover,
.gdakk-hero .gdakk-hero__button:focus {
	background: var(--gdakk-hero-red-dark);
	color: #fff;
}

/* Upcoming events */

.gdakk-hero__events {
	margin-top: 40px;
	padding: 22px 26px 24px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 18px;
	background: rgba(10, 16, 32, 0.45);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.gdakk-hero__events-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 24px;
	margin-bottom: 22px;
}

.gdakk-hero .gdakk-hero__events-title {
	margin: 0;
	padding: 0;
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.gdakk-hero .gdakk-hero__events-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 9px 16px;
	border-radius: 4px;
	background: var(--gdakk-hero-green);
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color 0.2s ease;
}

.gdakk-hero .gdakk-hero__events-link:hover,
.gdakk-hero .gdakk-hero__events-link:focus {
	background: var(--gdakk-hero-green-dark);
	color: #fff;
}

.gdakk-hero .gdakk-hero__events-empty {
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
}

/* Timeline: vertical on phones, horizontal from tablets up. */

.gdakk-hero .gdakk-timeline {
	position: relative;
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gdakk-hero .gdakk-timeline::before {
	content: "";
	position: absolute;
	top: 8px;
	bottom: 8px;
	left: 7px;
	width: 2px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
}

.gdakk-hero .gdakk-timeline__item {
	position: relative;
	margin: 0;
	padding: 0 0 0 32px;
	list-style: none;
}

.gdakk-timeline__dot {
	position: absolute;
	top: 3px;
	left: 0;
	width: 16px;
	height: 16px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: #141c33;
}

.gdakk-timeline__item--next .gdakk-timeline__dot {
	border-color: var(--gdakk-hero-highlight);
	background: var(--gdakk-hero-highlight);
	animation: gdakk-pulse-highlight 2s ease-out infinite;
}

.gdakk-timeline__item--ongoing .gdakk-timeline__dot {
	border-color: var(--gdakk-hero-green);
	background: var(--gdakk-hero-green);
	animation: gdakk-pulse-green 2s ease-out infinite;
}

.gdakk-timeline__date {
	display: block;
	color: #fff;
	font-family: "Montserrat", Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 22px;
	text-transform: uppercase;
}

.gdakk-timeline__title {
	display: block;
	margin-top: 4px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 15px;
	line-height: 1.4;
}

.gdakk-hero .gdakk-timeline__link {
	border-bottom: 1px solid rgba(255, 255, 255, 0.35);
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.gdakk-hero .gdakk-timeline__link:hover,
.gdakk-hero .gdakk-timeline__link:focus {
	border-color: var(--gdakk-hero-highlight);
	color: var(--gdakk-hero-highlight);
}

.gdakk-timeline__when {
	display: block;
	margin-top: 4px;
	color: var(--gdakk-hero-highlight);
	font-size: 13px;
	font-style: italic;
	line-height: 1.4;
}

.gdakk-timeline__item--ongoing .gdakk-timeline__when {
	color: #4fd39d;
}

@keyframes gdakk-pulse-highlight {
	0% {
		box-shadow: 0 0 0 0 rgba(247, 181, 0, 0.55);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(247, 181, 0, 0);
	}
}

@keyframes gdakk-pulse-green {
	0% {
		box-shadow: 0 0 0 0 rgba(30, 158, 107, 0.6);
	}

	70%,
	100% {
		box-shadow: 0 0 0 10px rgba(30, 158, 107, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.gdakk-hero__live,
	.gdakk-timeline__dot {
		animation: none !important;
	}
}

/* Zerif Lite's navigation bar is fixed over the hero from 768px up. */
@media (min-width: 768px) {
	.gdakk-hero {
		padding: 124px 0 56px;
	}

	.gdakk-hero .gdakk-timeline {
		grid-auto-columns: minmax(0, 1fr);
		grid-auto-flow: column;
		gap: 24px;
	}

	.gdakk-hero .gdakk-timeline::before {
		top: 7px;
		right: 0;
		bottom: auto;
		left: 0;
		width: auto;
		height: 2px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.1));
	}

	.gdakk-hero .gdakk-timeline__item {
		padding: 30px 0 0;
	}

	.gdakk-timeline__dot {
		top: 0;
	}
}

@media (min-width: 992px) {
	.gdakk-hero__top {
		grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
		gap: 56px;
	}

	.gdakk-hero__intro {
		text-align: left;
	}

	.gdakk-hero__logo {
		width: 210px;
	}
}

@media (max-width: 480px) {
	.gdakk-hero__course,
	.gdakk-hero__events {
		padding-right: 18px;
		padding-left: 18px;
	}

	.gdakk-countdown__value {
		font-size: 24px;
	}
}
