/*
Theme Name: UDHPSH Theme
Theme URI: 
Author: infocount.cz
Author URI: https://infocount.cz/
Description: Theme for UDHPSH
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: udhpsh-theme
*/

html, body, form, h1, h2, h3, ul, li, p {
	margin: 0;
	padding: 0;
}

body, h1, h2, h3, div, p, li, a {
	color: #000000;
	font-family: 'Open Sans', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
}

body {
	background-color: #ffffff;
}

*, ::after, ::before {
	box-sizing: unset;
}

a {
	color: #36a5ed;
	text-decoration: none;
	transition: .3s all ease;
}
a:hover {
	color: #323232;
	text-decoration: none;
}

.container {
	position: relative;
	width: 100%;
	max-width: 1200px;
	box-sizing: border-box;
	padding: 0 20px;
	margin: 0 auto;
}

/* top */

#top {
	background-color: #2a2f33;
}

#top p {
	color: #acb8c1;
	font-size: 12px;
	padding: 7px;
}

#top a {
	color: #acb8c1;
	font-size: 12px;
}
#top a:hover {
	color: #ffffff;
}

/* header */

#header {
	background-color: #ffffff;
}

#header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#header .brand a {
	display: block;
	width: 252px;
	height: 60px;
	overflow: hidden;
	text-indent: -99999px;
	background: url("img/logo_udhpsh.png") no-repeat;
	background-size: cover;
	margin: 14px 0;
}

#header .menu {
	display: flex;
	list-style: none;
}

#header .sub-menu {
	position: absolute;
	visibility: hidden;
	list-style: none;
	top: 120%;
	left: -999em;
	width: 10em;
	background: rgb(246,246,246);
	padding: 15px 0;
	margin: 0;
	margin-top: -2px;
	transition: 200ms linear;
	transition-property: all;
	transition-property: top, opacity, visibility;
	border-top: 2px solid #36a5ed;
	z-index: 99;
	opacity: 0;
}
#header .menu li:hover .sub-menu {
	visibility: visible;
	top: 100%;
	left: 0;
	transform: translateX(0%);
	opacity: 1;
}

#header .menu li {
	position: relative;
}

#header .menu a {
	position: relative;
	display: block;
	color: #323232;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.7;
	text-decoration: none;
	text-transform: uppercase;
	padding: 2.8em 1em;
}
#header .sub-menu a {
	font-weight: 400;
	text-transform: none;
	padding: 8px 13px;
}
#header .sub-menu a:hover, #header .sub-menu a.active {
	color: #36a5ed;
}
#header .menu a::after {
	position: absolute;
	content: "";
	left: 50%;
	bottom: 0;
	height: 0;
	width: 0;
	background-color: #36a5ed;
	transition: .3s all ease;
}
#header .sub-menu a::after {
	content: none;
}
#header .menu a:hover::after {
	left: 0;
	height: 2px;
	width: 100%;
}

#header .mobile {
	display: none;
	padding: 20px;
}

#header .mobile strong {
	position: relative;
	display: inline-block;
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	transition: .3s color ease;
	padding-left: 24px;
}
#header .mobile strong:hover {
	color: #36a5ed;
}

#header .mobile span {
	position: absolute;
	display: block;
	top: 8px;
	left: 0;
	width: 18px;
	height: 3px;
	background-color: #36a5ed;
	margin: auto;
}
#header .mobile span:first-child {
	top: 2px;
}
#header .mobile span:last-child {
	top: 14px;
}

#header .active .mobile span {
	display: none;
	top: 0;
	bottom: 0;
}
#header .active .mobile span:first-child {
	display: block;
	transform: rotate(45deg);
}
#header .active .mobile span:last-child {
	display: block;
	transform: rotate(-45deg);
}

/* path */

#path.about {
	padding-top: 45px;
}

#path h1 {
	display: none;
}
#path.about h1 {
	display: block;
	color: #27323d;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
	margin-bottom: 25px;
}

#path.about p {
	margin: 0 0 1.5em;
}

/* signpost */

#signpost {
	background: #43484e url("img/bg.webp?v=2") center no-repeat;
	background-size: cover;
}

#signpost .banner {
	padding-top: 30px;
}

#signpost .banner a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #ededed;
	padding: 20px;
	border-radius: 15px;
}
#signpost .banner a:hover {
	text-decoration: none;
	background-color: #e2e2e2;
}

#signpost .banner .title {
	position: relative;
	padding: 15px 0 15px 100px;
}
#signpost .banner .title::before {
	position: absolute;
	display: block;
	content: '';
	top: 0;
	left: 0;
	bottom: 0;
	width: 80px;
	background: url("img/banner.png") no-repeat;
	background-size: contain;
}

#signpost .banner h2 {
	text-align: left;
	text-transform: uppercase;
	margin: 0;
}
#signpost .banner .button h2 {
	padding: 15px 20px;
	border: 1px solid #ffffff;
}
#signpost .banner a:hover .button h2 {
	color: #ffffff;
	background-color: #55aee1;
	border-color: #55aee1;
}
#signpost .banner h2 span {
	color: #55aee1;
}

#signpost .banner h3 {
	color: #4d4d4d;
	margin: 0;
}

#signpost .block {
	display: flex;
	padding-top: 30px;
	padding-bottom: 30px;
}

#signpost .column {
	flex: 0 0 calc(33.33333% - 40px);
	max-width: calc(33.33333% - 40px);
	padding: 20px;
}
#signpost .column:nth-child(1) {
	background-color: #e2e2e2;
}
#signpost .column:nth-child(2) {
	background-color: rgba(221, 200, 159, 0.5);
}
#signpost .column:nth-child(3) {
	background-color: rgba(255, 176, 58, 0.5);
}

#signpost h2 {
	color: #27323d;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	margin-bottom: 10px;
}

#signpost h3 {
	font-weight: 700;
	margin-bottom: 10px;
}

#signpost ul {
	list-style: none;
	padding-left: 1.5em;
	margin-bottom: 10px;
}

#signpost li {
	position: relative;
	padding-left: 20px;
	margin-bottom: 8px;
}
#signpost li::before {
	position: absolute;
	content: '\2022';
	top: 0;
	left: 0;
	color: #777777;
	margin-right: 10px;
}

#signpost p {
	margin-bottom: 10px;
}

#signpost a {
	color: #000000;
}
#signpost a:hover {
	color: #36a5ed;
	text-decoration: underline;
}

/* slides */

#slides {
	background-color: #f8fafb;
}

#slides .container {
	max-width: 1600px;
	padding-top: 67px;
	padding-bottom: 90px;
}

#slides .head {
	max-width: 630px;
	text-align: center;
	padding-bottom: 67px;
	margin: auto;
}

#slides .head h2 {
	position: relative;
	color: #27323d;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	padding: 25px 0;
	margin-bottom: 1.95em;
}
#slides .head h2::after {
	position: absolute;
	content: "";
	left: 0;
	right: 0;
	bottom: 0;
	width: 170px;
	height: 2px;
	background-color: #555555;
	margin: 0 auto;
}

#slides .slide {
	position: relative;
	overflow: hidden;
}

#slides .item {
	position: relative;
	visibility: hidden;
	display: flex;
	float: left;
	width: 100%;
	align-items: center;
	gap: 5%;
	margin-right: -100%;
	transition: 1s opacity ease;
	opacity: 0;
}
#slides .item.active {
	visibility: visible;
	opacity: 1;
}

#slides .item > div {
	flex: 0 0 47.5%;
}

#slides .item .image {
	text-align: center;
}

#slides .item img {
	max-width: 100%;
	max-height: 588px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
}

#slides .item h3 {
	color: #27323d;
	font-size: 30px;
	font-weight: 300;
	line-height: 1.1;
	text-transform: uppercase;
	padding-bottom: 13px;
	margin-bottom: 0;
	margin-top: 0;
}

#slides .arrows {
	transition: .3s opacity ease;
	visibility: hidden;
	opacity: 0;
}
#slides .slide:hover .arrows {
	visibility: visible;
	opacity: 1;
}

#slides .arrows > div {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 999;
}

#slides .arrows .prev {
	left: 0;	
}
#slides .arrows .next {
	right: 0;
}

#slides .arrows a {
	position: relative;
	display: block;
	width: 58px;
	height: 58px;
	color: #ffffff;
	text-indent: -99999px;
	background-color: #36a5ed;
	transition: .3s opacity ease;
	border-radius: 50%;
	overflow: hidden;
}
#slides .arrows a:hover {
	background-color: #525b64;
}
#slides .arrows a::before {
	position: absolute;
	content: "";
	top: 22px;
	width: 12px;
	height: 12px;
	border: solid #ffffff;
	transform: rotate(-45deg);
}
#slides .arrows .prev a::before {
	left: 24px;
	border-width: 4px 0 0 4px;
}
#slides .arrows .next a::before {
	left: 18px;
	border-width: 0 4px 4px 0;
}

/* article */

#article .container {
	padding-top: 3em;
}

#article h2 {
	color: #27323d;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
	margin-bottom: 25px;
}

#article h3 {
	color: #27323d;
	font-size: 24px;
	font-weight: 400;
	line-height: 1.25;
	margin-bottom: 20px;
}

#article p {
	margin: 0 0 1.5em;
}

#article ul {
	list-style: none;
	padding-left: 2.5em;
	margin: 1em 0;
}
#article ul.list-files li {
	background: url("img/html.png") no-repeat;
	background-position: 0 6px;
	padding: 3px 0 3px 26px;
}

#article table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
}
#article th {
	padding: 0;
}
#article td {
	padding: 5px;
	vertical-align: top;
}
#article .noborder td {
	border: none;
}

#article hr {
	background-color: #d8d8d8;
	border: 0;
	height: 1px;
	margin: 1.5em 0;
}

#article a.button {
	display: inline-block;
	max-width: 100%;
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none;
	text-transform: uppercase;
	background-color: #36a5ed;
	padding: 15px 40px;
	border: 1px solid #36a5ed;
	border-radius: 4px;
	box-shadow: none;
}
#article a.button:hover {
	background-color: #525b64;
	border-color: #525b64;
}

/* contact */

#contact {
	background-color: #43484E;
}

#contact .container {
	padding-top: 115px;
	padding-bottom: 90px;
}

#contact h2 {
	color: #ffffff;
	font-size: 48px;
	font-weight: 400;
	line-height: 1;
	text-align: center;
	margin-bottom: 25px;
}

#contact p {
	color: #ffffff;
	text-align: center;
	margin: 0 0 1.5em;
}

#contact a {
	color: #ff6600;
}
#contact a:hover {
	color: #ffffff;
}

/* footer */

footer {
	background-color: #272b2f;
}

footer .container {
	padding-top: 20px;
	padding-bottom: 16px;
}

footer .copyright {
	color: #acb8c1;
	font-size: 14px;
	padding-top: 10px;
	padding-bottom: 10px;
}

footer .toTop a {
	position: fixed;
	visibility: hidden;
	display: block;
	right: 20px;
	bottom: 80px;
	width: 58px;
	height: 58px;
	color: #ffffff;
	text-indent: -99999px;
	background-color: #36a5ed;
	transition: .3s opacity ease;
	border-radius: 50%;
	overflow: hidden;
	z-index: 999;
	opacity: 0;
}
footer .toTop a.active {
	visibility: visible;
	opacity: 1;
}
footer .toTop a:hover {
	background-color: #525b64;
}
footer .toTop a::before {
	position: absolute;
	content: "";
	top: 24px;
	left: 20px;
	width: 12px;
	height: 12px;
	border: solid #ffffff;
	border-width: 4px 4px 0 0;
	transform: rotate(-45deg);
}

/* media */

@media (max-width: 1200px) {
	.container {
		max-width: 940px;
	}

	#header .container {
		display: block;
	}
}

@media (max-width: 992px) {
	body, h1, h2, h3, div, p, li, a {
		font-size: 14px;
	}
	.container {
		max-width: 720px;
	}

	.about #path h1 {
		font-size: 33px;
	}

	#signpost .banner {
		padding-top: 0;
	}
	#signpost .banner a {
		border-radius: 0;
	}
	#signpost .banner a:hover {
		background-color: #ededed;
	}
	#signpost .block {
		padding-top: 0;
		padding-bottom: 0;
	}
	#signpost h2 {
		font-size: 18px;
	}

	#slides .head h2 {
		font-size: 21px;
	}

	#article h2 {
		font-size: 21px;
	}
	#article h3 {
		font-size: 18px;
	}
	#article ul {
		padding-left: 1em;
	}

	#contact h2 {
		font-size: 33px;
	}
}

@media (max-width: 768px) {
	.container {
		max-width: 576px;
	}

	#header .container {
		max-width: none;
		padding-left: 0;
		padding-right: 0;
	}
	#header .brand a {
		margin: 0 auto;
	}
	#header .menu {
		display: none;
	}
	#header .active .menu {
		display: block;
	}
	#header .sub-menu {
		position: static;
		visibility: visible;
		width: 100%;
		transition: none;
		padding: 0;
		opacity: 1;
	}
	#header .menu li:hover .sub-menu {
		transform: none;
	}
	#header .menu li {
		background-color: rgb(246,246,246);
		border-bottom: 1px solid #e0e0e8;
	}
	#header .menu > li:first-child {
		border-top: 1px solid #e0e0e8;
	}
	#header .sub-menu li:last-child {
		border-bottom: none;
	}
	#header .menu li.has-children::after {
		position: absolute;
		content: "";
		top: 14px;
		right: 30px;
		width: 8px;
		height: 8px;
		border: solid #acb8c1;
		border-width: 0 0 2px 2px;
		transform: rotate(-45deg);
	}
	#header .menu a {
		padding-top: 0.8125em;
		padding-bottom: 0.8125em;
	}
	#header .menu a:hover {
		color: #36a5ed;
	}
	#header .menu a::after {
		content: none;
	}
	#header .sub-menu a {
		text-indent: 1rem;
	}
	#header .mobile {
		display: block;
	}

	#slides .item h3 {
		font-size: 13px;
	}

	#signpost .block {
		flex-direction: column;
	}
	#signpost .column {
		flex-basis: auto;
		max-width: 100%;
	}
}

@media (max-width: 544px) {
	#signpost .container {
		padding-left: 0;
		padding-right: 0;
	}
	#signpost .banner .title {
		padding-left: 80px;
	}
}