/* Side Navigation */

/* global */

.pages-nav ul {
	margin: 0;
	padding: 1rem;
	list-style: none;
}

.pages-nav a {
	color: inherit;
	text-decoration: none;
	display: block;
	padding: 1rem 0;
}

.pages-nav li {
	position: relative;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.pages-nav li:after {
	font-family: 'FontAwesome';
	content: '\f104';
	position: absolute;
	top: .75rem;
	left: 5px;
	color: var(--web-primary-color);
	font-size: 1.4rem;
}

.pages-nav li:last-child {
	border-bottom: 0;
}

.pages-nav li > span {
	display: block;
	position: relative;
	/*padding-right: 30px;*/
}

.pages-nav a:hover,
.pages-nav a:focus,
.pages-nav a.on {
	color: #000;
}

.pages-nav a.on {
	font-weight: bold;
}

/* sub levels */

.pages-nav li.on > ul {
	display: block;
}

.pages-nav li > ul {
	display: none;
	margin-right: 25px;
}

/* toggle menu button */

.pages-nav button {
	position: absolute;
	top: 0;
	right: 0;

	font-family: 'FontAwesome';
	font-style: normal;

	width: 25px;
	height: 100%;

	padding: 5px;
	background: none;
	border: 0;
	color: #56bcaf;

	display: none;
}

.pages-nav button:before {
	content: '\f053';
}

.pages-nav button.opened:before {
	content: '\f078';
}

.pages-nav button.no-sub-menu {
	font-size: 80%;
	padding-top: 2px;

	display: none;
}

.pages-nav button.no-sub-menu:before {
	content: '\f1db';
}

.pages-nav button.external-link:before {
	content: '\f08e';
}


/* Side Title */

aside {
	background: #fff;
	margin-top: 2rem;
	margin-bottom: 1.5rem;
	box-shadow: 0 0 30px rgb(0 0 0 / 10%);
}

.pages-nav-title {
	background: var(--web-side-nav-title-bg);
	color: var(--web-side-nav-title-text);
	;
	font-weight: bold;
	font-size: 1.5rem;
	margin: 0;
	padding: .75rem;
	position: relative;
}


@media (max-width: 991px) {
	aside {
		display: none;
	}
}

/** PIC nav **/
.container:has(.with-pics) {
	max-width: 100%;
	min-width: 100%;
	width: 100%;
}

.sub-pages-nav.with-pics ul {
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.sub-pages-nav.with-pics li {
	flex: 1 0 30%;
	max-width: 30%;

}

.sub-pages-nav.with-pics .grade {
	background: linear-gradient(181deg, rgba(18, 189, 221, 0) 0%, rgb(5 37 125 / 78%) 100%);
	position: absolute;
	height: 55%;
	bottom: 0;
	left: 0;
	width: 100%;
	filter: drop-shadow();
	transition: all 0.2s ease;
}

.sub-pages-nav.with-pics a {
	background-position: center;
	border-right: none;
	height: 100%;
	text-align: right;
	display: flex;
	overflow: hidden;
	position: relative;
	background-size: cover;
	aspect-ratio: 5 / 4;
	display: flex;
	padding: 0;
}

.sub-pages-nav.with-pics .pic {
	position: absolute;
	width: 100%;
	height: 100%;
	inset: 0;

	& img {
		object-fit: cover;
		width: 100%;
		height: 100%;
	}
}

.sub-pages-nav.with-pics a .pic + span {
	padding: 1rem;
	margin-top: auto;
	display: inline-block;
	z-index: 1;
	position: relative;
	width: 100%;
	color: #fff;
	background-color: var(--web-primary-color);
}


@media (max-width: 1199px) {
	.sub-pages-nav.with-pics li {
		flex: 1 0 47%;
		max-width: 47%;
		min-height: 200px;
	}

	.sub-pages-nav.with-pics a {
		aspect-ratio: unset;
	}
}

@media (min-width: 992px) {
	.sub-pages-nav.with-pics a:hover {
		text-decoration: none;
	}
}

@media (max-width: 767px) {
	.sub-pages-nav.with-pics li {
		flex: 1 0 100%;
		max-width: 100%;
	}
}