@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  src: local("Open Sans Light"), local("OpenSans-Light"), url("https://fonts.gstatic.com/s/opensans/v10/DXI1ORHCpsQm3Vp6mXoaTXhCUOGz7vYGh680lGh-uXM.woff") format("woff");
}

/*SOLVE BROWSERS DIFF*/
input::-moz-focus-inner
{
	border: 0;
}
input:-webkit-autofill
{
	background-color:transparent !important;
}


/**/
html
{
	background-position: center bottom;
	background-repeat:repeat-x;
	height:100%;
	background-attachment:fixed;
}


body
{
	padding:0;
	margin:0;
	font-family:Open Sans;
	word-wrap:break-word;
	line-height:180%;
	font-size:14px;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-width: 550px;
}
#header
{
	max-width:1000px;
	width:100%;
	margin:0 auto;
	padding: 0 15px;
	height:140px;
	box-sizing:border-box;
	overflow:visible;
}
#header::after
{
	content: "";
	display: table;
	clear: both;
}
header
{
	border-top: solid 5px #7ECEFD;
	margin:0px auto !important;
	font-variant: small-caps;
	font-size:60px;
	padding:0 !important;
	box-shadow: 0 0 5px 0 rgba(0,0,0,0.5);
	z-index:2;
	position:relative;
	height:205px;
	width:100%;
}
header img
{
	vertical-align:middle;
}
header>#header>a
{
	text-decoration:none;
	color:#2185C5;
	font-family: "Open Sans";
	float:left;
	margin: 20px 0;
}
header #searcher
{
	font-size:14px;
	float: right;
	clear: right;
	margin-top: 20px;
	padding:5px;
	background-color: #E9F6FD;
	border-left:1px solid #D9E5EB;
	border-top:1px solid #D9E5EB;
}
header #searcher input/*, header #searcher input::-moz-focus-inner*/
{
	border: 0;
	outline:none;
	background-color:transparent;
	font-family:inherit;
	font-size:inherit;
}

header #searcher input[type=search]
{
	width:142px;
	margin-left:10px;
	color: grey;
	box-sizing: border-box;
	padding: 0 5px;
}

header #searcher input[type=submit]
{
	background: url('images/search-button.png') no-repeat scroll 1px 1px transparent !important;
	width: 20px;
	height:20px;
	display:inline-block;
	padding:0;
	margin-left:10px;
	vertical-align:middle;
	cursor:pointer;
}

header #searcher input[type=submit]:hover
{
	background-position: 1px -25px !important;
}

header .language
{
	float: right;
	margin: 0;
}
header .language li
{
	display: inline-block;
	vertical-align: top;
	font-size: 14px;
	padding-left: 25px;
	padding-top:3px;
	margin: 0px 15px 5px 15px;
	font-weight: bold;
	background-repeat:no-repeat;
	background-position: left 2px;
}

header .language a
{
	text-decoration:none;
	color: #2185c5; 
	display:inline-block;
	transition: background 0.25s;
	border-left: solid 1px white;
	border-right: solid 1px white;
}

header .language a:hover, header .language a.active
{
	background-color: #7ECEFD;
	color:white;
}

/* Desktop: header tools wrapper */
.header-tools
{
	float: right;
}

/* Language: always hide flags, always show dropdown */
header .language
{
	display: none;
}
.lang-selector
{
	float: right;
	position: relative;
	margin-top: 3px;
	z-index: 200;
}
.lang-toggle
{
	background: none;
	border: 1px solid #D9E5EB;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 4px;
	color: #2185C5;
	font-weight: bold;
	font-size: 14px;
}
.lang-toggle img
{
	width: 20px;
	height: 20px;
}
.lang-dropdown
{
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	background: white;
	border: 1px solid #D9E5EB;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	list-style: none;
	padding: 4px 0;
	margin: 4px 0 0 0;
	z-index: 100;
	min-width: 120px;
}
.lang-selector.open .lang-dropdown
{
	display: block;
}
.lang-dropdown li a
{
	display: block;
	padding: 6px 12px;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-variant: normal;
}
.lang-dropdown li a:hover
{
	background-color: #E9F6FD;
}
.lang-dropdown li a.active
{
	color: #2185C5;
	font-weight: bold;
}


header .webmap
{
	font-size: 14px;
	float: right;
	clear: right;
	background-image: url('images/webmap.svg');
	background-repeat: no-repeat;
	background-position: left center;
	padding-left: 30px;
	color: rgb(33, 133, 197);
	font-weight: bold;
	cursor: pointer;
	margin-left: 50px;
	margin-top: 3px;
	/*margin: 25px 15px 0px 120px;*/
}
header .webmap a
{
	color: inherit;
	text-decoration: none;
}
header .webmap:hover
{
	opacity: 0.8;
}


#logo
{
	height:100px;
	
}

#top-menu
{
	/*background-color: rgba(85, 176, 176, 0.92);*/
	background-image: url('images/black_noise.jpg');
	box-shadow: 0 10px 10px -10px black inset;
	border-bottom: solid 5px rgba(0,0, 0, 0.3);
	background-clip: border-box;
	width:100%;
	top:0px;
}

#top-menu a
{
	color: inherit;
	text-decoration: inherit;
	display:block;
	/*width:100%;*/
	padding: 0px 10px 0px 30px;
}
#top-menu>ul>li>a
{
	padding:30px 0 10px 0;
}

#top-menu>ul
{
	max-width: 1000px;
	width: 100%;
	margin: 0px auto;
	padding: 0px;
	height:60px;
	box-sizing:border-box;
}

#top-menu>ul>li
{
	display:inline-block;
	width:20%;
	box-sizing: border-box;
	font-size:16px;
	text-transform: uppercase;
	/*padding:30px 0 10px 0;*/
	border-left: solid 1px rgba(0,0,0,0.2);
	border-right: solid 1px rgba(255,255,255,0.2);
	text-align:center;
	color:white;
	font-weight: bold;
	cursor: pointer;
	vertical-align:top;
	height:65px;

	background-repeat: no-repeat;
	background-position: center 5px;
	
}

#top-menu>ul>li:hover, #top-menu>ul>li.active
{
	background-color: rgba(33,133,197,0.5);
	border-left: solid 1px rgba(33,133,197,0.5);
	border-right: solid 1px rgba(33,133,197,0.5);
}

/* SUBMENU*/
#top-menu>ul>li>ul
{
	background-color:rgba(0,0,0,0.9);
	padding:0px;
	opacity: 0;
	max-height:0px;
	overflow:hidden;
	transition: opacity 0.25s, padding 0.25s, overflow 0.25s;
}
#top-menu>ul>li:hover > ul
{
	opacity: 1;
	max-height:500px;
	padding-bottom:5px;
}

#top-menu>ul>li>ul>li
{
	font-size:14px;
	text-align:left;
}
#top-menu>ul>li>ul>li>a::before, #top-menu>ul>li>ul>li>.menu-label::before
{
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #c0c0c0;
	margin-right: 8px;
	vertical-align: middle;
}
#top-menu>ul>li>ul>li>a:hover, #top-menu>ul>li>ul>li>.menu-label:hover
{
	background-color: rgba(33,133,197,0.5);
}
#top-menu>ul>li>ul>li.active>a, #top-menu>ul>li>ul>li.active>.menu-label
{
	background-color: rgba(33,133,197,0.5);
}

/* Non-clickable menu labels */
#top-menu .menu-label
{
	display: block;
	padding: 0px 10px 0px 30px;
	cursor: default;
}
#top-menu>ul>li>.menu-label
{
	padding: 30px 0 10px 0;
}

/* 3rd level submenu — always visible when parent is shown */
#top-menu>ul>li>ul>li>ul
{
	background-color: rgba(0,0,0,0.95);
	padding: 0;
}
#top-menu>ul>li>ul>li>ul>li
{
}
#top-menu>ul>li>ul>li>ul>li:hover
{
	background-color: rgba(33,133,197,0.5);
}
#top-menu>ul>li>ul>li>ul>li>a
{
	padding-left: 50px;
}
#top-menu>ul>li>ul>li>ul>li>a::before
{
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #c0c0c0;
	margin-right: 8px;
	vertical-align: middle;
}


/* GO UP*/
nav#go-up
{
	background-color: #7ECEFD;
	border: solid 3px white;
	border-radius: 23px;
	width: 40px;
	height: 40px;
	position:fixed;
	bottom: 50px;
	right: 10px;
	background-image:url('images/go_up.svg');
	background-repeat:no-repeat;
	background-position: center 6px;
	z-index:500;
	transition: opacity 2s, background 0.25s;
}
nav#go-up:hover
{
	background-color: #2185C5;
}

nav#go-up a
{
	display:block;
	width:100%;
	height:100%;
	outline:none;
}




/* SLIDER */
#slider
{
	height:250px;
	overflow:hidden;
	margin:0 auto;
	position:relative;
	width: 100%;
}

#slider img
{
	background-size:cover;
	background-repeat: no-repeat;
	background-position: center;
	position: absolute;
	width: 100%;
	height:100%;
	transition: opacity 2s;
}

#slider .info
{
	background-color: rgba(0, 0, 0, 0.5);
	bottom:0px;
	position:absolute;
	width:100%;
	/*text-transform: uppercase;*/
	font-variant: small-caps;
	line-height:36px;
	font-size:36px;
	padding:10px 0;
	color:white;
	text-align:center;
}

#slider-label
{
	background-color: rgb(33,133,197);
	padding: 10px 0;
	font-size:16px;
}

#slider-label div
{
	max-width:1000px;
	width:100%;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing:border-box;
	color:white;
	text-align:center;
}
#slider ul
{
	/*width: 150px;*/
	display:table;
	margin: 0 auto;
	cursor: pointer;
	position:relative;
}
#slider li
{
	border-radius: 15px;
	border: solid 3px white;
	width: 15px;
	height: 15px;
	display: inline-block;
	margin: 5px;
	cursor: pointer;
	transition: background 0.25s;
}
#slider .active, #slider li:hover
{
	background-color: #7ECEFD;
}



/* SECTIONS*/
#section-list-wrapper
{
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	padding: 0 15px;
	box-sizing: border-box;
}
.section-list
{
	margin: 30px auto;
	padding:0;
	text-align:center;
	display: flex;
	justify-content: center;
}

.section-list article
{
	width: 32.66%;
	box-sizing: border-box;
	padding: 40px 20px;
	transition: border 1.5s;
	border: solid 1px transparent;
	border-radius: 5px;
	margin:0;
}
.section-list > .section-sep
{
	width: 1%;
	flex-shrink: 0;
}

.section-list figure img
{
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.section-list article:hover
{
	border: solid 1px #2185C5;
}

.section-list figure
{
	border: solid 5px #E9F7FF;
	border-radius: 60px;
	width: 82px;
	height: 82px;
	display:block;
	overflow:hidden;
	margin: 0 auto;
	padding:10px;
}

.section-list h1
{
	font-size: 40px;
	color: #2185C5;
	font-weight: normal;
	text-transform: uppercase;
	margin: 30px 0;
	display:block;
}

.section-list h5
{
	font-size: 20px;
	color: #7ECEFD;
	font-weight: bold;
	text-transform: uppercase;
}

.section-list p
{
	text-align: justify;
}


/* MIDDLE INFO*/

#middle-info
{
	background-image: url('images/black_noise.jpg');
	/*box-shadow: 0 0 5px 0 black;*/
	box-shadow: 0 10px 10px -10px black inset, 0 -10px 10px -10px black inset;
	/*border-bottom: solid 6px rgba(0,0, 0, 0.3);*/
	background-clip: border-box;
}
#middle-info aside
{
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	height: 50px;
	display:block;
}



/* MAIN TEXT */

#core
{
	max-width: 1000px;
	width: 100%;
	margin: 0 auto;
	flex: 1 0 auto;
	display: flex;
	box-sizing: border-box;
	padding: 0 15px;
}

#core main
{
	flex: 1 1 auto;
	min-width: 0;
	vertical-align: top;
}

#core main article
{
	text-align: justify;
	/*background-color: rgba(0,0,0,0.1);*/
	padding: 30px 30px 30px 0px;
}


#core h1
{
	font-size: 35px;
	color: #2185C5;
	font-weight: normal;
	text-transform: uppercase;
	margin: 30px 0;
	text-align: left;
	line-height:1;
	position: relative;
}

#core h2
{
	font-size: 20px;
	color: #7ECEFD;
	font-weight: bold;
	text-transform: uppercase;
	margin: 10px 0;
	text-align: left;
	line-height:1;
	position: relative;
}

#core h1 a, #core h2 a
{
	position: relative;
	top: -75px;
}

#core p+h2
{
	margin-top: 30px;
}


/*SIDE BAR*/
#core #side-bar
{
	flex: 0 0 280px;
	vertical-align: top;
	/*background-color: rgba(0,0,0,0.2);*/
	margin-top:35px;
	margin-left:20px;
}



/* LATEST NEWS */
.latest-news h1
{
	font-size: 25px;
	color: #7ECEFD;
}

.latest-news article.news
{
	position: relative; /*to allow position of rotated date*/
	padding-left: 50px;
	min-height: 150px; /*so the date is always visible*/
	border-right: 2px solid #7ECEFD;
	margin: 10px 0px;
}

.latest-news .news .date
{
	background-color: #2185C5;
	height: 100%;
	width: 30px;
	position: absolute;
	left:0px
}

.latest-news .news .date span
{
	transform-origin: 0% 100%;
	transform: rotate(90deg);
	color:white;
	font-size:16px;
	font-weight: bold;
	display:block;
	height:30px;
	width:150px;
	margin: -30px 0px;
	text-align:center;
	text-transform: uppercase;
}

#core .latest-news .news h1
{
	font-size: 18px;
	margin: 0;
	color: #2185C5;
	text-transform: none;
}

.latest-news .news .content
{
	text-align: justify;
	padding: 10px 10px 0px 0px;
}



/* LOGIN BOX */
.loginbox
{
	margin-bottom:40px;
}

.loginbox h1
{
	font-size: 25px;
	color: #7ECEFD;
}

.loginbox form img
{
	float:left;
	height:72px
}
.loginbox form input[type=text], .loginbox form input[type=password]
{
	height:30px;
	width: calc(100% - 82px);
	box-sizing: border-box;
	float:right;
	border: 0;
	border-left: solid 1px #D9E5EB;
	border-top: solid 1px #D9E5EB;
	padding: 0 20px;
	background-color: #E9F6FD;
	color: #808080;
	font-size:inherit;
}

.loginbox form input[type=submit]
{
	height:30px;
	width:100%;
	background-color: #7ECEFD;
	color: white;
	font-size: 15px;
	font-weight: bold;
	text-transform: uppercase;
	border: 0;
	transition: background 0.25s;
	cursor: pointer;
}

.loginbox form input[type=submit]:hover
{
	background-color: #2185C5;
	color: white;
}

.loginbox form input[type=submit], .loginbox form input[type=password]
{
	margin-top:10px;
}

.loginbox a
{
	float: right;
	color: #2185C5;
	font-weight: bold;
	font-size: 12px;
	cursor: pointer;
	text-decoration:none;
	transition: none;
}

.loginbox a.create
{
	float: none;
}

.loginbox a:hover
{
	color: #2185C5;
}

.loginbox .login-error
{
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 8px 12px;
	margin-bottom: 10px;
	font-size: 13px;
	border-radius: 3px;
}

.loginbox .login-success
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 8px 12px;
	margin-bottom: 10px;
	font-size: 13px;
	border-radius: 3px;
}

.loginbox .resend-form
{
	margin-bottom: 10px;
}

.resend-btn
{
	background-color: #f0ad4e;
	color: white;
	border: 0;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.25s;
	width: 100%;
	margin-top: 5px;
}

.resend-btn:hover
{
	background-color: #d9922b;
}

.loginbox.logged-in
{
	text-align: center;
}

.loginbox.logged-in img
{
	display: block;
	margin: 10px auto;
	height: 72px;
}

.loginbox.logged-in .username
{
	display: block;
	font-size: 18px;
	font-weight: bold;
	color: #2185C5;
	margin-bottom: 10px;
}

.loginbox.logged-in input[type=submit]
{
	height: 30px;
	width: 100%;
	background-color: #7ECEFD;
	color: white;
	font-size: 15px;
	font-weight: bold;
	text-transform: uppercase;
	border: 0;
	transition: background 0.25s;
	cursor: pointer;
}

.loginbox.logged-in input[type=submit]:hover
{
	background-color: #2185C5;
}

/* ROLE BADGE AND ADMIN LINKS */
.loginbox .role-badge
{
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 5px;
	color: #fff;
	background-color: #666;
}
.loginbox .role-badge.role-admin { background-color: #c0392b; }
.loginbox .role-badge.role-editor { background-color: #2980b9; }
.loginbox .role-badge.role-normal { background-color: #666; }


/* REGISTRATION AND PASSWORD RESET FORMS */
.registration-form, .password-reset-form
{
	max-width: 400px;
	margin: 20px 0;
}

.registration-form h1, .password-reset-form h1
{
	font-size: 25px;
	color: #7ECEFD;
	margin-bottom: 15px;
}

.registration-form label, .password-reset-form label
{
	display: block;
	margin-top: 12px;
	margin-bottom: 4px;
	font-weight: bold;
	color: #555;
}

.registration-form input[type=text],
.registration-form input[type=email],
.registration-form input[type=password],
.password-reset-form input[type=text],
.password-reset-form input[type=email],
.password-reset-form input[type=password]
{
	width: 100%;
	height: 35px;
	box-sizing: border-box;
	border: 1px solid #D9E5EB;
	padding: 0 12px;
	background-color: #E9F6FD;
	color: #808080;
	font-size: inherit;
}

.registration-form input[type=submit],
.password-reset-form input[type=submit]
{
	margin-top: 15px;
	height: 35px;
	width: 100%;
	background-color: #7ECEFD;
	color: white;
	font-size: 15px;
	font-weight: bold;
	text-transform: uppercase;
	border: 0;
	transition: background 0.25s;
	cursor: pointer;
}

.registration-form input[type=submit]:hover,
.password-reset-form input[type=submit]:hover
{
	background-color: #2185C5;
}

.reg-error
{
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

.reg-success
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}







/* USER MANAGER */
.user-manager
{
	margin: 20px 0;
}

.user-manager h1
{
	font-size: 25px;
	color: #7ECEFD;
	margin-bottom: 15px;
}

.um-table
{
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.um-table th
{
	background-color: #2185C5;
	color: white;
	padding: 8px 10px;
	text-align: left;
	font-weight: bold;
}

.um-table td
{
	padding: 6px 10px;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}

.um-table tbody tr:hover
{
	background-color: #f0f8ff;
}

.um-table tr.um-self
{
	background-color: #e8f4fd;
}

.um-inline-form
{
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
}

.um-inline-form select
{
	padding: 3px 5px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
}

.um-btn
{
	padding: 3px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	color: white;
}

.um-btn-save { background-color: #2185C5; }
.um-btn-save:hover { background-color: #1a6da0; }
.um-btn-ban { background-color: #e67e22; }
.um-btn-ban:hover { background-color: #d35400; }
.um-btn-unban { background-color: #27ae60; }
.um-btn-unban:hover { background-color: #1e8449; }

.um-status-active { color: #27ae60; font-weight: bold; }
.um-status-banned { color: #c0392b; font-weight: bold; }
.um-status-pending { color: #e67e22; font-weight: bold; }

.um-error
{
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

.um-success
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

@media (max-width: 768px)
{
	.um-table { font-size: 12px; }
	.um-table th, .um-table td { padding: 4px 6px; }
	.um-btn { padding: 2px 6px; font-size: 11px; }
	.component-management-toolbar { flex-wrap: wrap; }
	.component-add-form { flex-wrap: wrap; }
}


/* MENU EDITOR */
.menu-editor
{
	margin: 20px 0;
}

.menu-editor h1
{
	font-size: 25px;
	color: #7ECEFD;
	margin-bottom: 15px;
}

.me-list
{
	margin-bottom: 20px;
}

.me-item
{
	display: flex;
	align-items: center;
	padding: 8px 10px;
	border-bottom: 1px solid #eee;
	transition: background-color 0.15s;
}

.me-item:hover
{
	background-color: #f0f8ff;
}

.me-item-info
{
	flex: 1;
	min-width: 0;
}

.me-item-title
{
	font-weight: bold;
	color: #333;
}

.me-item-link
{
	color: #2185C5;
	font-size: 13px;
}

.me-item-icon
{
	color: #999;
	font-size: 12px;
}

.me-item-actions
{
	display: flex;
	gap: 3px;
	flex-shrink: 0;
	margin-left: 10px;
}

.me-inline
{
	display: inline;
	margin: 0;
	padding: 0;
}

.me-btn
{
	padding: 4px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 13px;
	color: white;
	line-height: 1;
}

.me-btn:disabled
{
	opacity: 0.3;
	cursor: not-allowed;
}

.me-btn-move
{
	background-color: #2185C5;
}

.me-btn-move:hover:not(:disabled)
{
	background-color: #1a6da0;
}

.me-btn-indent
{
	background-color: #e67e22;
}

.me-btn-indent:hover:not(:disabled)
{
	background-color: #d35400;
}

.me-btn-delete
{
	background-color: #c0392b;
}

.me-btn-delete:hover:not(:disabled)
{
	background-color: #a93226;
}

.me-add-form
{
	border: 2px dashed #27ae60;
	border-radius: 5px;
	padding: 15px;
	margin-top: 20px;
}

.me-add-form h2
{
	font-size: 18px;
	color: #27ae60;
	margin: 0 0 12px 0;
}

.me-add-form label
{
	display: block;
	margin-top: 10px;
	margin-bottom: 4px;
	font-weight: bold;
	font-size: 13px;
	color: #555;
}

.me-add-form input[type="text"],
.me-add-form select
{
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	box-sizing: border-box;
}

.me-add-form input[type="submit"]
{
	margin-top: 12px;
	padding: 8px 20px;
	background-color: #27ae60;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
}

.me-add-form input[type="submit"]:hover
{
	background-color: #1e8449;
}

.me-error
{
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

.me-success
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

@media (max-width: 768px)
{
	.me-item
	{
		flex-wrap: wrap;
	}
	.me-item-actions
	{
		margin-left: 0;
		margin-top: 6px;
		width: 100%;
	}
	.me-btn
	{
		padding: 3px 6px;
		font-size: 12px;
	}
}


/* PAGE MANAGER */
.page-manager
{
	margin: 20px 0;
}

.page-manager h1
{
	font-size: 25px;
	color: #7ECEFD;
	margin-bottom: 15px;
}

.pm-table
{
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.pm-table th
{
	background-color: #2185C5;
	color: white;
	padding: 8px 10px;
	text-align: left;
	font-weight: bold;
}

.pm-table td
{
	padding: 6px 10px;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}

.pm-table tbody tr:hover
{
	background-color: #f0f8ff;
}

.pm-table td a
{
	color: #2185C5;
	text-decoration: none;
	font-weight: bold;
}

.pm-table td a:hover
{
	text-decoration: underline;
}

.pm-special-badge
{
	display: inline-block;
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
	background-color: #2185C5;
	color: white;
}

.pm-protected
{
	font-size: 12px;
	color: #999;
	font-style: italic;
}

.pm-inline
{
	display: inline;
	margin: 0;
	padding: 0;
}

.pm-btn
{
	padding: 3px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	color: white;
}

.pm-btn-delete
{
	background-color: #c0392b;
}

.pm-btn-delete:hover
{
	background-color: #a93226;
}

.pm-add-form
{
	border: 2px dashed #27ae60;
	border-radius: 5px;
	padding: 15px;
	margin-top: 20px;
}

.pm-add-form h2
{
	font-size: 18px;
	color: #27ae60;
	margin: 0 0 12px 0;
}

.pm-add-form label
{
	display: block;
	margin-top: 10px;
	margin-bottom: 4px;
	font-weight: bold;
	font-size: 13px;
	color: #555;
}

.pm-add-form input[type="text"],
.pm-add-form select
{
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	box-sizing: border-box;
}

.pm-add-form input[type="submit"]
{
	margin-top: 12px;
	padding: 8px 20px;
	background-color: #27ae60;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
}

.pm-add-form input[type="submit"]:hover
{
	background-color: #1e8449;
}

.pm-error
{
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

.pm-success
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}

@media (max-width: 768px)
{
	.pm-table { font-size: 12px; }
	.pm-table th, .pm-table td { padding: 4px 6px; }
	.pm-btn { padding: 2px 6px; font-size: 11px; }
}


/* MARKDOWN COMPONENT */
article[type="Markdown"]
{
	line-height: 1.6;
}

article[type="Markdown"] h1,
article[type="Markdown"] h2,
article[type="Markdown"] h3,
article[type="Markdown"] h4
{
	color: #2185C5;
	font-weight: normal;
	margin: 1.2em 0 0.4em 0;
}

article[type="Markdown"] h1 { font-size: 28px; border-bottom: 1px solid #ddd; padding-bottom: 6px; }
article[type="Markdown"] h2 { font-size: 22px; border-bottom: 1px solid #eee; padding-bottom: 4px; }
article[type="Markdown"] h3 { font-size: 18px; }
article[type="Markdown"] h4 { font-size: 15px; }

article[type="Markdown"] code
{
	background-color: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 1px 5px;
	font-family: monospace;
	font-size: 0.9em;
	color: #c7254e;
}

article[type="Markdown"] pre
{
	background-color: #fafafa;
	color: #383a42;
	border-radius: 5px;
	padding: 14px 18px;
	overflow-x: auto;
	margin: 12px 0;
	line-height: 1.5;
	border: 1px solid #e0e0e0;
	tab-size: 4;
}

article[type="Markdown"] pre code
{
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	font-size: 13px;
}

article[type="Markdown"] blockquote
{
	border-left: 4px solid #2185C5;
	margin: 12px 0;
	padding: 8px 16px;
	background-color: #f8f9fa;
	color: #555;
}

article[type="Markdown"] blockquote p
{
	margin: 4px 0;
}

article[type="Markdown"] table
{
	border-collapse: collapse;
	width: 100%;
	margin: 12px 0;
}

article[type="Markdown"] th,
article[type="Markdown"] td
{
	border: 1px solid #ddd;
	padding: 8px 12px;
	text-align: left;
}

article[type="Markdown"] th
{
	background-color: #e8f4fd;
	color: #2185C5;
	font-weight: bold;
}

article[type="Markdown"] tr:nth-child(even)
{
	background-color: #f8f9fa;
}

article[type="Markdown"] img
{
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

article[type="Markdown"] hr
{
	border: none;
	border-top: 1px solid #ddd;
	margin: 20px 0;
}

article[type="Markdown"] ul,
article[type="Markdown"] ol
{
	padding-left: 24px;
	margin: 8px 0;
}

article[type="Markdown"] li
{
	margin: 4px 0;
}

article[type="Markdown"] a
{
	color: #2185C5;
	text-decoration: none;
}

article[type="Markdown"] a:hover
{
	text-decoration: underline;
}

article[type="Markdown"] .task-list-item
{
	list-style: none;
	margin-left: -24px;
}

article[type="Markdown"] .task-list-item input[type="checkbox"]
{
	margin-right: 6px;
}


/* COMPONENT EDITORS */
.component-editor
{
	margin: 20px 0;
	padding: 15px;
	background-color: #f8f9fa;
	border: 2px dashed #2185C5;
	border-radius: 5px;
}

.component-editor h2
{
	font-size: 18px;
	color: #2185C5;
	margin: 0 0 12px 0;
	padding-bottom: 6px;
	border-bottom: 1px solid #ccc;
}

.component-editor form
{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.component-editor label
{
	font-weight: bold;
	font-size: 13px;
	color: #333;
	margin-top: 4px;
}

.component-editor input[type="number"]
{
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	width: 80px;
}

.news-editor-list-wrapper
{
	max-height: 300px;
	overflow-y: auto;
	margin: 8px 0;
	border: 1px solid #ddd;
	border-radius: 3px;
}

.news-editor-list
{
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.news-editor-list th,
.news-editor-list td
{
	padding: 6px 10px;
	border: 1px solid #ddd;
	text-align: left;
}

.news-editor-list th
{
	background-color: #e8f4fd;
	font-weight: bold;
	color: #2185C5;
}

.news-editor-list td:last-child
{
	text-align: center;
	width: 60px;
}

.component-editor input[type="text"],
.component-editor textarea
{
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 14px;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
}

.component-editor textarea
{
	min-height: 80px;
	resize: vertical;
}

.component-editor .editor-xml-textarea
{
	min-height: 300px;
	font-family: monospace;
	font-size: 13px;
	white-space: pre;
	tab-size: 4;
}

.component-editor input[type="submit"]
{
	margin-top: 10px;
	padding: 8px 20px;
	background-color: #2185C5;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 14px;
	align-self: flex-start;
}

.component-editor input[type="submit"]:hover
{
	background-color: #1a6da0;
}

.component-editor fieldset.editor-item
{
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 10px;
	margin: 6px 0;
	background-color: #fff;
}

.component-editor fieldset.editor-item-new
{
	border-style: dashed;
	border-color: #27ae60;
	background-color: #f0faf4;
}

.component-editor fieldset.editor-item-new legend
{
	color: #27ae60;
}

.component-editor fieldset.editor-item legend
{
	font-weight: bold;
	font-size: 13px;
	color: #2185C5;
	padding: 0 6px;
}

.editor-item-toolbar
{
	display: flex;
	gap: 4px;
	margin-bottom: 6px;
	justify-content: flex-end;
}

.editor-item-list
{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.component-editor .cm-btn-add
{
	margin-top: 6px;
}

.component-placeholder
{
	font-style: italic;
	color: #999;
	text-align: center;
	padding: 20px;
}

/* COMPONENT MANAGEMENT */
.component-management
{
	margin: 20px 0;
	position: relative;
}

.component-management-toolbar
{
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	background-color: #e8f4fd;
	border: 1px solid #7ECEFD;
	border-radius: 4px 4px 0 0;
	font-size: 13px;
}

.component-management-toolbar .cm-type-label
{
	font-weight: bold;
	color: #2185C5;
	margin-right: auto;
}

.cm-btn
{
	padding: 3px 8px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	color: white;
	background-color: #2185C5;
}

.cm-btn:hover
{
	background-color: #1a6da0;
}

.cm-btn-delete
{
	background-color: #c0392b;
}

.cm-btn-delete:hover
{
	background-color: #a93226;
}

.cm-btn-add
{
	background-color: #27ae60;
}

.cm-btn-add:hover
{
	background-color: #1e8449;
}

.cm-inline
{
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.cm-inline select
{
	padding: 2px 4px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 12px;
}

.component-add-form
{
	border: 2px dashed #27ae60;
	border-radius: 5px;
	padding: 10px;
	margin: 10px 0;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.component-add-form select
{
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
}

.sidebar-empty-placeholder
{
	border: 2px dashed #ccc;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	color: #999;
	font-style: italic;
	margin: 10px 0;
}

.editor-saved
{
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 10px 14px;
	margin-bottom: 10px;
	border-radius: 3px;
}


/* FOOTER */

footer
{
	background-color: #2185C5;
	color: white;
	box-shadow: 0px 10px 10px -10px #000 inset;
}

footer ul.section
{
	max-width: 1000px;
	width: 100%;
	margin:0 auto;
	padding: 20px 15px;
	box-sizing: border-box;
	list-style-type: none;
}

footer li.section
{
	display:inline-block;
	width: 33.33%;
	box-sizing: border-box;
	vertical-align:top;
}

footer li.section h1
{
	font-variant: small-caps;
	font-size:28px;
}

footer li.section ul
{
	padding: 0  0 0 30px;
}

footer li.section li
{
	background-repeat:no-repeat;
	height:24px;
	padding: 5px 5px 5px 40px;
	margin: 5px 0px;
	list-style-type: none;
	background-clip:border-box;
	cursor: pointer;
	float:left; /*to avoid the button to get all the width long*/
	clear:both;
	background-image: url('images/logo_circle.svg');
	background-position: -4.25px -4.25px;
	background-size: auto 85px;
	font-weight: bold;
	border: solid 2px transparent;
}

footer li.section li:hover
{
	background-position: -4.25px -46.75px;
}


footer .copyright
{
	background-image: url('images/black_noise.jpg');
	height: 25px;
	box-shadow: 0px 0px 10px 0px #000;
	text-align: center;
}

footer .copyright span
{
	font-weight: bold;
	color: #7ECEFD;
	text-transform: uppercase;

}


/* FOOTER ADMIN SECTION */
footer .footer-admin a
{
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

footer .footer-admin a:hover
{
	color: #7ECEFD;
}

footer .footer-admin li
{
	height: auto;
}

.footer-logout-form
{
	display: inline;
}

.footer-logout-form button
{
	background: none;
	border: none;
	color: inherit;
	font-weight: bold;
	font-size: inherit;
	font-family: inherit;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}

.footer-logout-form button:hover
{
	color: #7ECEFD;
}

/* When admin section present, 4 columns */
footer ul.section:has(.footer-admin) > li.section
{
	width: 25%;
}


/* HAMBURGER MENU TOGGLE */
.menu-toggle
{
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
}
.menu-toggle img
{
	width: 32px;
	height: 32px;
	display: block;
}
.menu-backdrop
{
	display: none;
}


/* RESPONSIVE - NARROW DESKTOP */
/* Search box is fixed 141px on desktop, no resize needed */

/* RESPONSIVE - TABLET AND BELOW */
@media (max-width: 768px)
{
	html, body
	{
		overflow-x: clip;
	}
	header
	{
		height: auto;
		position: sticky;
		top: 0;
		z-index: 10;
	}
	#header
	{
		height: auto;
		padding: 8px 8px 8px 15px;
		display: flex;
		align-items: center;
		overflow: visible;
		background: white;
	}
	/* Logo: left-aligned, compact */
	header>#header>a
	{
		float: none;
		display: flex;
		align-items: center;
		font-size: 28px;
		margin: 0;
		flex-shrink: 0;
	}
	#logo
	{
		height: 32px;
	}
	.site-title
	{
		font-size: 27px;
		margin-left: 5px;
	}
	/* Tools row: language, search, sitemap — flush right */
	.header-tools
	{
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
	}
	.lang-selector
	{
		float: none;
		margin-top: 0;
	}
	/* Webmap: move to end (after search) on mobile */
	header .webmap
	{
		order: 10;
		float: none;
		clear: none;
		margin: 0;
		padding: 0;
		width: 24px;
		height: 24px;
		min-width: 24px;
		background-size: 20px;
		background-position: center;
	}
	.lang-toggle
	{
		font-size: 12px;
	}
	.lang-toggle img
	{
		width: 18px;
		height: 18px;
	}
	.webmap-label
	{
		display: none;
	}
	/* Search: compact, single row */
	header #searcher
	{
		float: none;
		clear: none;
		margin: 0;
		padding: 3px;
	}
	header #searcher input[type=search]
	{
		width: 80px;
	}
	/* Menu toggle: inside header flex row */
	.menu-toggle
	{
		display: block;
		flex-shrink: 0;
	}
	/* Slide-in menu panel */
	#top-menu
	{
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 80%;
		max-width: 300px;
		height: 100vh;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 100;
		background-color: #222;
		background-image: none;
		box-shadow: none;
		border-bottom: none;
		overflow-y: auto;
		padding-top: 55px;
	}
	#top-menu.open
	{
		transform: translateX(0);
		box-shadow: 2px 0 15px rgba(0,0,0,0.5);
	}
	.menu-backdrop
	{
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background: rgba(0,0,0,0.5);
		z-index: 99;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}
	#top-menu.open ~ .menu-backdrop
	{
		opacity: 1;
		pointer-events: auto;
	}
	body.menu-open
	{
		overflow: hidden;
	}
	#top-menu>ul
	{
		height: auto;
		padding: 0;
	}
	#top-menu>ul>li
	{
		display: block;
		width: 100%;
		height: auto;
		padding: 0;
		background-size: 20px 20px;
		background-position: 12px 15px;
		border: none;
		border-bottom: solid 1px rgba(255,255,255,0.1);
		text-align: left;
	}
	/* No hover on li containers — highlight links/labels only */
	#top-menu>ul>li:hover, #top-menu>ul>li.active
	{
		background-color: transparent;
		border-left: none;
		border-right: none;
	}
	/* Level 1: bold, uppercase (inherited), larger tap target */
	#top-menu>ul>li>a, #top-menu>ul>li>.menu-label
	{
		padding: 14px 20px 14px 40px;
		font-size: 15px;
		font-weight: bold;
		background-image: url('images/black_noise.jpg');
	}
	#top-menu>ul>li>a:hover, #top-menu>ul>li>.menu-label:hover
	{
		background-color: rgba(33,133,197,0.5);
		background-blend-mode: screen;
	}
	#top-menu>ul>li.active>a, #top-menu>ul>li.active>.menu-label
	{
		background-color: rgba(33,133,197,0.5);
		background-blend-mode: screen;
		border-left: 3px solid #7ECEFD;
	}
	/* 2nd level: always visible, no animation, no hover size change */
	#top-menu>ul>li>ul,
	#top-menu>ul>li:hover > ul
	{
		position: static;
		opacity: 1;
		max-height: none;
		overflow: visible;
		padding-bottom: 0;
		background-color: #222;
	}
	#top-menu>ul>li>ul>li
	{
		border-bottom: solid 1px rgba(255,255,255,0.05);
		background-image: none !important;
	}
	#top-menu>ul>li>ul>li:hover, #top-menu>ul>li>ul>li.active
	{
		background-color: transparent;
	}
	/* Level 2: normal weight, slightly smaller */
	#top-menu>ul>li>ul>li>a, #top-menu>ul>li>ul>li>.menu-label
	{
		padding: 12px 20px 12px 70px;
		font-size: 14px;
		font-weight: normal;
		text-transform: none;
	}
	#top-menu>ul>li>ul>li>a::before, #top-menu>ul>li>ul>li>.menu-label::before
	{
		content: "";
		display: inline-block;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background-color: #c0c0c0;
		margin-right: 10px;
		vertical-align: middle;
	}
	#top-menu>ul>li>ul>li>a:hover, #top-menu>ul>li>ul>li>.menu-label:hover
	{
		background-color: rgba(33,133,197,0.5);
	}
	#top-menu>ul>li>ul>li.active>a, #top-menu>ul>li>ul>li.active>.menu-label
	{
		background-color: rgba(33,133,197,0.5);
		border-left: 3px solid #7ECEFD;
	}
	/* 3rd level: always visible on mobile */
	#top-menu>ul>li>ul>li>ul
	{
		opacity: 1;
		max-height: none;
		overflow: visible;
		background-color: #1d1d1d;
	}
	/* Level 3: smaller, lighter */
	#top-menu>ul>li>ul>li>ul>li>a
	{
		padding: 12px 20px 12px 100px;
		font-size: 14px;
		font-weight: normal;
		text-transform: none;
	}
	#top-menu>ul>li>ul>li>ul>li>a::before
	{
		content: "";
		display: inline-block;
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background-color: #c0c0c0;
		margin-right: 10px;
		vertical-align: middle;
	}
	#top-menu>ul>li>ul>li>ul>li>a:hover
	{
		background-color: rgba(33,133,197,0.5);
	}
	/* Core layout */
	#core
	{
		display: block;
		padding: 0 15px;
	}
	#core main
	{
		display: block;
		width: 100%;
	}
	#core main article
	{
		padding: 20px 0;
	}
	#core #side-bar
	{
		display: block;
		width: 100%;
		margin-left: 0;
		margin-top: 20px;
	}
	/* Section-list: stacked vertically, each article is icon-left + text-right */
	.section-list
	{
		flex-direction: column;
		gap: 10px;
	}
	.section-list article
	{
		display: flex;
		align-items: flex-start;
		width: 100%;
		min-height: auto;
		padding: 15px;
		text-align: left;
		gap: 15px;
	}
	.section-list figure
	{
		flex-shrink: 0;
		width: 60px;
		height: 60px;
		padding: 5px;
		margin: 0;
	}
	.section-list h1
	{
		font-size: 22px;
		margin: 0 0 5px 0;
	}
	.section-list h5
	{
		font-size: 14px;
		margin: 0 0 5px 0;
	}
	.section-list p
	{
		margin: 0;
	}
	.section-list > .section-sep
	{
		display: none;
	}
	.section-list .section-text
	{
		flex: 1;
		min-width: 0;
	}
	/* Footer: stack vertically, left-aligned */
	footer li.section
	{
		display: block;
		width: 100%;
		padding: 10px 0;
	}
	footer li.section h1
	{
		margin: 5px 0;
	}
	footer li.section ul
	{
		padding: 0;
	}
	footer li.section li
	{
		float: none;
		clear: both;
	}
}

/* RESPONSIVE - SMALL MOBILE (zoom out to fit min-width) */
@media (max-width: 600px)
{
	body
	{
		zoom: 0.8;
	}
}
@media (max-width: 500px)
{
	body
	{
		zoom: 0.6;
	}
}

/* RESPONSIVE - MOBILE */
@media (max-width: 480px)
{
	header>#header>a
	{
		font-size: 22px;
	}
	#logo
	{
		height: 32px;
	}
	header #searcher input[type=search]
	{
		width: 60px;
	}
	#slider .info
	{
		font-size: 20px;
		line-height: 24px;
	}
	.section-list h1
	{
		font-size: 18px;
	}
	#core h1
	{
		font-size: 24px;
	}
	footer li.section
	{
		width: 100%;
	}
}

/* Sitemap component */
.sitemap
{
	line-height: 200%;
}
.sitemap h1
{
	margin-bottom: 10px;
}
.sitemap h2
{
	margin-top: 30px;
	font-size: 20px;
	color: #555;
}
.sitemap-tree,
.sitemap-orphans
{
	list-style: none;
	padding-left: 0;
}
.sitemap-tree ul
{
	list-style: none;
	padding-left: 25px;
}
.sitemap-tree li
{
	position: relative;
	padding-left: 15px;
}
.sitemap-tree li::before
{
	content: "\25B8";
	position: absolute;
	left: 0;
	color: #7ECEFD;
}
.sitemap-orphans li
{
	padding-left: 15px;
	position: relative;
}
.sitemap-orphans li::before
{
	content: "\25CB";
	position: absolute;
	left: 0;
	color: #999;
}
.sitemap a
{
	color: #2185C5;
	text-decoration: none;
}
.sitemap a:hover
{
	text-decoration: underline;
}
