/**
 * MIO – Mekteb i Omladina
 */


/* =========================================================
   SECTION
========================================================= */

.mio-section {
	width: 100%;
	position: relative;
	box-sizing: border-box;
}


/* =========================================================
   SLIDER
========================================================= */

.mio-slider {
	position: relative;
	width: 100%;

	display: flex;
	align-items: center;

	gap: 18px;

	box-sizing: border-box;
}


/* =========================================================
   VIEWPORT
========================================================= */

.mio-viewport {
	width: 100%;
	overflow: hidden;
	position: relative;
}


/* =========================================================
   TRACK
========================================================= */

.mio-track {
	display: flex;
	flex-wrap: nowrap;

	gap: 24px;

	transform: translate3d(0, 0, 0);

	transition: transform 0.45s ease;

	will-change: transform;
}


/* =========================================================
   CARD
========================================================= */

.mio-card {
	flex: 0 0 calc((100% - 72px) / 4);

	min-width: 0;

	box-sizing: border-box;
}


/* =========================================================
   CARD LINK
========================================================= */

.mio-card-link {
	display: flex;
	flex-direction: column;

	height: 100%;

	text-decoration: none !important;
	color: inherit;

	background: #ffffff;

	border-radius: 12px;

	overflow: hidden;

	box-shadow:
		0 8px 25px rgba(0, 0, 0, 0.08);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease;
}


.mio-card-link:hover {
	transform: translateY(-5px);

	box-shadow:
		0 14px 35px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   IMAGE
========================================================= */

.mio-image {
	position: relative;

	width: 100%;

	aspect-ratio: 16 / 10;

	overflow: hidden;

	background: #eeeeee;
}


.mio-image img {
	display: block;

	width: 100%;
	height: 100%;

	object-fit: cover;

	transition: transform 0.45s ease;
}


.mio-card-link:hover .mio-image img {
	transform: scale(1.04);
}


/* =========================================================
   FALLBACK IMAGE
========================================================= */

.mio-no-image {
	width: 100%;
	height: 100%;

	display: flex;

	align-items: center;
	justify-content: center;

	background:
		linear-gradient(
			135deg,
			#173b5c,
			#0e2941
		);

	color: #ffffff;

	font-size: 14px;

	font-weight: 600;

	text-align: center;
}


/* =========================================================
   CONTENT
========================================================= */

.mio-content {
	display: flex;
	flex-direction: column;

	flex: 1;

	padding: 20px;

	box-sizing: border-box;
}


/* =========================================================
   DATE
========================================================= */

.mio-date {
	margin-bottom: 9px;

	font-size: 12px;
	line-height: 1.4;

	font-weight: 500;

	color: #888888;
}


/* =========================================================
   TITLE
========================================================= */

.mio-title {
	margin: 0 0 11px 0 !important;
	padding: 0 !important;

	font-size: 19px !important;
	line-height: 1.35 !important;

	font-weight: 700 !important;

	color: #173b5c !important;
}


/* =========================================================
   EXCERPT
========================================================= */

.mio-excerpt {
	margin-bottom: 18px;

	font-size: 14px;

	line-height: 1.6;

	color: #666666;
}


/* =========================================================
   READ MORE
========================================================= */

.mio-read-more {
	display: inline-flex;

	align-items: center;

	gap: 7px;

	margin-top: auto;

	font-size: 14px;

	line-height: 1.4;

	font-weight: 600;

	color: #173b5c;

	transition: gap 0.2s ease;
}


.mio-card-link:hover .mio-read-more {
	gap: 11px;
}


/* =========================================================
   ARROWS
========================================================= */

.mio-arrow {
	flex: 0 0 42px;

	width: 42px;
	height: 42px;

	padding: 0;
	margin: 0;

	border: 0;

	border-radius: 50%;

	display: flex;

	align-items: center;
	justify-content: center;

	cursor: pointer;

	background: #173b5c;

	color: #ffffff;

	font-family: Arial, sans-serif;

	box-shadow:
		0 5px 15px rgba(0, 0, 0, 0.12);

	transition:
		background 0.2s ease,
		transform 0.2s ease,
		opacity 0.2s ease;
}


.mio-arrow span {
	display: block;

	font-size: 30px;

	line-height: 1;

	margin-top: -3px;
}


.mio-arrow:hover {
	background: #0e2941;

	transform: scale(1.05);
}


.mio-arrow:disabled {
	opacity: 0.35;

	cursor: default;

	transform: none;
}


/* =========================================================
   EMPTY
========================================================= */

.mio-empty {
	width: 100%;

	padding: 40px 20px;

	text-align: center;

	color: #777777;

	background: #f5f5f5;

	border-radius: 12px;
}


/* =========================================================
   LAPTOP
   981px – 1199px
========================================================= */

@media (max-width: 1199px) {

	.mio-card {
		flex-basis: calc((100% - 48px) / 3);
	}

}


/* =========================================================
   TABLET
   768px – 980px
========================================================= */

@media (max-width: 980px) {

	.mio-slider {
		gap: 12px;
	}

	.mio-track {
		gap: 20px;
	}

	.mio-card {
		flex-basis: calc((100% - 20px) / 2);
	}

}


/* =========================================================
   MOBILE
   < 768px
========================================================= */

@media (max-width: 767px) {

	.mio-slider {
		gap: 8px;
	}

	.mio-track {
		gap: 0;
	}

	.mio-card {
		flex-basis: 100%;
	}

	.mio-arrow {
		flex: 0 0 36px;

		width: 36px;
		height: 36px;
	}

	.mio-arrow span {
		font-size: 26px;
	}

	.mio-content {
		padding: 17px;
	}

	.mio-title {
		font-size: 18px !important;
	}

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

	.mio-slider {
		gap: 5px;
	}

	.mio-arrow {
		flex: 0 0 32px;

		width: 32px;
		height: 32px;
	}

	.mio-arrow span {
		font-size: 23px;
	}

}