@font-face {
    font-family: 'Campton';
    src: url('assets/fonts/Campton-Bold.eot');
    src: url('assets/fonts/Campton-Bold.eot?#iefix') format('embedded-opentype'),
        url('assets/fonts/Campton-Bold.woff2') format('woff2'),
        url('assets/fonts/Campton-Bold.woff') format('woff'),
        url('assets/fonts/Campton-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Campton';
    src: url('assets/fonts/Campton-Medium.eot');
    src: url('assets/fonts/Campton-Medium.eot?#iefix') format('embedded-opentype'),
        url('assets/fonts/Campton-Medium.woff2') format('woff2'),
        url('assets/fonts/Campton-Medium.woff') format('woff'),
        url('assets/fonts/Campton-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

:root {
	--primary-color: #282661;
	--focus-color: #f9385c;
	--text-color: var(--primary-color);
}

* {
	box-sizing: border-box;
}

html,
html body {
	overflow-x: hidden;
}

body {
	padding: 0;
	margin: 0;
	font-family: "Campton", sans-serif;
	font-size: 1.375rem;
	color: var(--text-color);
}

body p {
	margin: 0 0 1rem 0;
}

body a {
	text-decoration: none;
	transition: all .2s ease-in-out;
}

body ol, body ul {
	margin: 0;
	padding-left: 1rem;
}

.focus {
	color: var(--focus-color);
}

.container {
	max-width: calc(1120px + 3rem);
	margin: 0 auto;
	width: 100%;
	padding: 4rem 1.5rem;
}

.row {
	display: flex;
	gap: 3.125rem;
}

.center {
	text-align: center;
	width: 100%;
}

img {
	max-width: 100%;
	height: auto;
	display: inline-block;
}

.primary-btn {
	display: inline-flex;
	padding: .6rem 1.2rem;
	border: none;
	box-shadow: none;
	outline: none;
	background-color: var(--focus-color);
	color: #fff;
	font-weight: bold;
	text-decoration: none;
	transition: all .2s ease-in-out;
}

.primary-btn:hover {
	background-color: color-mix(in srgb, var(--focus-color) 70%, black 30%);
}

body h1,
body h2,
body h3,
body h4,
body h5,
body h6 {
	font-weight: bold;
	margin: 0 0 .5rem 0;
	color: var(--text-color);
}

body h1 {
	font-size: 5.313rem;
}

body h2 {
	font-size: 4.625rem;
	position: relative;
	display: inline-block;
}

body h3 {
	font-size: 2.125rem;
}

body .title-wrapper h2::after {
	content: "";
	width: 100%;
	height: 20px;
	background-image: url('assets/images/underline.svg');
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	margin: 0 auto;
	background-repeat: no-repeat;
}

article a {
	text-decoration: none;
	color: var(--focus-color);
}

article > p:last-child {
	margin: 0;
}

article a:hover {
	text-decoration: underline;
}

header#masthead .header-wrapper {
	display: flex;
	gap: 2rem;
	justify-content: space-between;
	align-items: center;
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
}

header#masthead #site-navigation .primary-menu-container ul {
	list-style-type: none;
	display: flex;
	gap: 1.5rem;
	padding: 0;
	margin: 0;
}

header#masthead #site-navigation .primary-menu-container ul li a {
	font-weight: bold;
	color: var(--text-color);
	font-size: 1.1rem;
}

header#masthead #site-navigation .primary-menu-container ul li a:hover {
	color: var(--focus-color);
}

header#masthead .socials {
	display: flex;
	gap: .5rem;
}

header#masthead .socials img {
	min-width: 32px;
	width: 32px;
}

@media only screen and (min-width: 1121px) {
	header#masthead #site-navigation .menu-button-container {
		display: none;
	}
	
	header#masthead #site-navigation .primary-menu-container ul {
  		align-items: center;
	}
}

@media only screen and (max-width: 1120px) {
	header#masthead #site-navigation .primary-menu-container,
	header#masthead .header-wrapper > .socials {
		display: none;
	}
	
	body #primary-mobile-menu {
		border: none;
		outline: none;
		box-shadow: none;
		border-radius: 4px;
		background: var(--focus-color);
		color: #fff;
		padding: 0;
		margin: 0;
	  }
	
	 body #primary-mobile-menu .dropdown-icon {
		display: flex;
		flex-direction: column-reverse;
		justify-content: center;
		align-items: center;
		width: 60px;
		height: 60px;
		font-weight: bold;
	  }
	
	#site-navigation .nav-wrapper .primary-menu-container, body.primary-navigation-open #primary-mobile-menu .dropdown-icon.open, body:not(.primary-navigation-open) #primary-mobile-menu .dropdown-icon.close, #site-navigation .nav-wrapper .primary-menu-container ul li a::after {
    	display: none;
  	}
	
	 body.primary-navigation-open .primary-menu-container {
    	display: block !important;
    	width: 100%;
    	padding: 1.5rem;
    	background-color: #f2f5f7;
		box-shadow: 0 10px 10px rgba(0, 0, 0, .2);
		position: absolute;
    	left: 0;
    	z-index: 100;
    	top: 120px;
  	}
	
	header#masthead #site-navigation .primary-menu-container ul li a {
  		font-size: 1.5em;
	}
	
	#site-navigation .primary-menu-container ul {
    	flex-direction: column;
    	gap: 1rem;
  	}
}

#home-slider {
	min-height: 750px;
	background-image: url('https://anovodnany.cz/wp-content/uploads/2025/10/header-bg.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#home-slider .title-wrapper {
	position: relative;
  	left: 20%;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: .5rem;
}

#home-slider h1 {
	color: #fff;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	margin: 0;
}

#home-slider h1 span {
	display: inline-block;
	background-color: var(--primary-color);
	padding: .3rem .8rem;
}

#we-are-working .row,
#program .row,
#program-all .row,
#people .row,
#join-us .row,
#all-news .row,
#be-better .row {
	align-items: center;
}

#we-are-working .row > .title-wrapper,
#program .row > .title-wrapper,
#program-all .row > .title-wrapper,
#people .row > .title-wrapper,
#join-us .row > .title-wrapper,
#all-news .row > .title-wrapper,
#be-better .row > .title-wrapper {
	width: 40%;
}

#we-are-working .row > article,
#program .row > article,
#program-all .row > article,
#people .row > article,
#join-us .row > article,
#all-news .row > article,
#be-better .row > article {
	width: 60%;
}

#we-are-working .news-wrapper,
#all-news .all-news-wrapper {
	padding: calc(4rem - 1.5rem) 0 0 0;
	display: flex;
	flex-direction: column;
}

#we-are-working .news-wrapper .news-item .aktualita-thumbnail img,
#all-news .all-news-wrapper .news-item .aktualita-thumbnail img {
	max-width: 200px;
	min-width: 200px;
	border-radius: 50%;
}

#we-are-working .news-wrapper .news-item:first-child,
#all-news .all-news-wrapper .news-item:first-child {
	border-top: 1px solid rgba(0, 0, 0, .1);
	margin-top: 2rem;
	padding-top: 2rem;
}

#we-are-working .news-wrapper .news-item,
#all-news .all-news-wrapper .news-item {
	border-bottom: 1px solid rgba(0, 0, 0, .1);
	margin-bottom: 2rem;
	padding-bottom: 2rem;
}

#we-are-working .news-wrapper .news-item a
#all-news .all-news-wrapper .news-item a {
	text-decoration: none;
}

#we-are-working .news-wrapper .news-item h3,
#all-news .all-news-wrapper .news-item h3 {
	margin-bottom: 1rem;
}

#we-are-working .news-wrapper .news-item h3 a,
#all-news .all-news-wrapper .news-item h3 a {
	color: var(--text-color);
}

#we-are-working .news-wrapper .news-item h3 a:hover,
#all-news .all-news-wrapper .news-item h3 a:hover {
	color: var(--focus-color);
}

#we-are-working .news-wrapper .news-item .date,
#all-news .all-news-wrapper .news-item .date {
	font-size: .85rem;
	color: var(--focus-color);
	margin: 0 0 .5rem 0;
}

#we-are-working .all-news {
	display: flex;
	justify-content: center;
}

#program,
#program-all {
	background-color: var(--primary-color);
	color: #fff;
}

.aktualita-tag {
    display: inline-block;
    font-size: 0.7em !important;;
    margin-bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.tag-priprava {
    background-color: #f0ad4e;
}

.tag-realizace {
    background-color: #5bc0de;
}

.tag-realizovany {
    background-color: #5cb85c;
}

.filtr-projekty {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.filtr-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filtr-btn:hover {
    background-color: #ddd;
}

/* Barevná sladěnost s kategoriemi */
.filtr-btn[data-filter="v-priprave"] {
    background-color: #f0ad4e;
}

.filtr-btn[data-filter="v-realizaci"] {
    background-color: #5bc0de;
}

.filtr-btn[data-filter="realizovane"] {
    background-color: #5cb85c;
}

.filtr-btn[data-filter="all"] {
    background-color: var(--text-color);
}

/* Hover efekt */
.filtr-btn:hover {
    filter: brightness(90%);
}

#program h2,
#program h3,
#program-all h2,
#program-all h3 {
	color: #fff;
}

#program .programs-wrapper {
	padding: 4rem 0 0 0;
	flex-wrap: wrap;
}

#program .programs-wrapper .program {
  	width: calc(33.33% - 2.1rem);
}

#program-all .all-programs-wrapper {
	padding: 6rem 0 0 0;
	flex-direction: column;
}

#program .programs-wrapper .program h3,
#program-all .all-programs-wrapper h3 {
  	margin-bottom: 1rem;
}

#program-all .all-programs-wrapper .program-all {
	position: relative;
	padding-left: 150px;
	width: 100%;
}

#program-all .all-programs-wrapper .program-all .program-thumbnail {
	position: absolute;
	left: 0;
}

#program-all .all-programs-wrapper .program-all li::marker {
  	color: var(--focus-color);
}

#representatives {
	background-color: var(--primary-color);
	color: #fff;
}

#representatives h3 {
	color: #fff;
}

#representatives .representatives-wrapper,
#commission .representatives-wrapper {
	padding: 4rem 0 0 0;
	flex-wrap: wrap;
}

#representatives .representatives-wrapper .representative,
#commission .representatives-wrapper .representative {
	width: calc(33.33% - 2.1rem);
	display: flex;
	flex-direction: column;
	align-items: center;
}

#representatives .representatives-wrapper .representative img,
#commission .representatives-wrapper .representative img {
	margin-bottom: 1rem;
}

#representatives .representatives-wrapper .representative p,
#commission .representatives-wrapper .representative p {
	margin: 0 0 .2rem 0;
}

#representatives .representatives-wrapper .representative p a {
	color: #fff;
}

#commission .representatives-wrapper .representative p a {
	color: var(--text-color);
}

#representatives .representatives-wrapper .representative p.title,
#commission .representatives-wrapper .representative p.title {
	font-weight: bold;
}

#contact-us img {
	margin: 0 auto;
	display: block;
}

#contact-us a {
	color: var(--focus-color);
}

#contact-us a:hover {
	text-decoration: underline;
}

#join-us .buttons-group {
	display: flex;
	justify-content: space-between;
	margin-top: 2rem;
	gap: 1rem;
}

/* Lidé */
.page-id-59 #representatives .tmm_member,
.page-id-59 #commission .tmm_member {
  	background: transparent;
  	border: none !important;
	box-shadow: none;
}

.page-id-59 #main .tmm_photo {
  	border-radius: 50% !important;
	width: 200px !important;
  	height: 200px !important;
	padding: 0 !important;
	margin-top: 0 !important;
}

.page-id-59 #main .tmm {
	margin-top: 2rem;
}

.page-id-59 #main .tmm .tmm_member {
  	margin-top: 2rem !important;
  	margin-bottom: 0 !important;
}

.page-id-59 #main .tmm .tmm_names {
	font-size: 1.375rem;
	font-weight: bold;
}

.page-id-59 #main .tmm .tmm_desc {
	font-size: 1.375rem;
	margin: 1rem 0 0 0;
	padding: 0;
}

.page-id-59 #representatives .tmm .tmm_job {
	color: white;
	opacity: .6;
}

.page-id-59 #representatives .tmm_textblock span,
.page-id-59 #representatives .tmm_textblock p {
	color: white !important;
}

.page-id-59 #main a {
	color: var(--focus-color);
}

footer {
	background-color: var(--focus-color);
	color: #fff;
	font-size: 1.125rem;
}

footer a {
	color: #fff;
}

footer a:hover {
	color: var(--text-color);
}

footer .footer-wrapper .column {
	width: 25%;
}

footer ol, footer ul {
	padding: 0;
	list-style-type: none;
}

.single.single-post #comments, .single.single-post .navigation.post-navigation,
.single.single-post header.entry-header .byline,
.single.single-post header.entry-header .post-taxonomies,
.single.single-post .widget-area:not(#sidebar),
body:not(.postid-33) .widget-area {
	display: none;
}

.single.single-post h1 {
	font-size: 2.125rem;
}

.single.single-post header.entry-header figure,
.single.single-post h1 {
	margin: 0;
}

.single.single-post header.entry-header {
	align-items: center;
	margin-bottom: 2rem;
	gap: 2rem;
}

.single.single-post header.entry-header .posted-on {
	font-size: .85rem;
	color: var(--focus-color);
}

body.post-template-default.single.single-post #main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  gap: 3.125rem;
  align-items: flex-start;
}

.single.single-post header.entry-header figure img {
	min-width: 200px;
}

body.post-template-default.single.single-post #main > aside ul li {
  display: flex;
  flex-direction: column-reverse;
  gap: .3rem;
}

body.post-template-default.single.single-post #main > aside ul li span {
  	font-size: .85rem;
	color: var(--focus-color);
}

body.post-template-default.single.single-post #main > aside ul li a {
  	text-decoration: none;
  	font-size: .9em;
	color: var(--text-color);
}

body.post-template-default.single.single-post #main > aside ul li a:hover {
	color: var(--focus-color);
}

body.post-template-default.single.single-post #main > aside ul {
  	display: flex;
  	flex-direction: column;
  	gap: 2rem;
	padding: 0;
}

body.post-template-default.single.single-post #sidebar .widget-title {
	font-size: 1.3em;
	margin-bottom: 1rem;
}

body.post-template-default.single.single-post #main > section {
  flex: 1 1 auto;
}

body.post-template-default.single.single-post #main > aside {
  width: 350px;
  min-width: 350px;
  background: #f5f5f5;
  border-radius: 10px;
  padding: 1.5rem;
}

body.post-template-default.single.single-post #main .entry-content img {
  width: 50%;
}

@media only screen and (max-width: 479px) {
	#join-us .buttons-group {
		flex-direction: column;
	}
	
	#join-us .buttons-group .primary-btn {
	  justify-content: center;
	}
}

@media only screen and (max-width: 767px) {
	.filtr-projekty {
  		justify-content: center;
	}
	
	.page-id-59 #main .tmm .tmm_names,
	.page-id-59 #main .tmm .tmm_desc {
		font-size: 1rem;
	}
	
	#home-slider .title-wrapper {
  		left: 0;
	}
	
	body {
		font-size: 1rem;
	}
	
	body h1 {
  		font-size: 3.6rem;
	}
	
	body h2 {
  		font-size: 2.6rem;
	}
	
	body h3 {
		font-size: 1.6rem;
	}
	
	.container {
  		padding: 2rem 1.5rem;
	}
	
	#home-slider {
  		min-height: 500px;
	}
	
	#home-slider .title-wrapper {
		width: 100%;
	}
	
	#home-slider .title-wrapper img {
  		max-width: 230px;
	}
	
  	body.post-template-default.single.single-post #main > aside {
		min-width: initial;
		width: 100%;
	}
	
	#we-are-working .news-wrapper, #all-news .all-news-wrapper {
  		padding: 0;
	}
	
	#program-all .all-programs-wrapper {
  		padding: 3rem 0 0 0;
	}
	
	#program-all .all-programs-wrapper .program-all .program-thumbnail img,
	#program .programs-wrapper .program-thumbnail img {
  		max-width: 80px;
		min-width: initial;
	}
	
	#program .programs-wrapper {
  		padding: 3rem 0 0 0;
	}
	
	#program-all .all-programs-wrapper .program-all {
  		padding-left: 0;
	}
	
	#program-all .all-programs-wrapper .program-all .program-thumbnail {
  		position: relative;
  		margin-bottom: 1rem;
	}

	body.post-template-default.single.single-post #main > * {
    	width: 100%;
  	}
	
	 body.post-template-default.single.single-post #main {
    	flex-wrap: wrap;
  	}
	
	.row {
		flex-wrap: wrap;
		gap: 1.5rem;
	}
	
	.row > * {
		width: 100% !important;
	}
}

/* Coming soon */
.coming-soon {
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3em;
	background-image: url('http://anovodnany.cz/wp-content/uploads/2025/03/vodnany-bg.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	flex-direction: column;
	padding: 0 1.5rem;
}

.coming-soon p {
  	margin: 0;
}

.coming-soon .coming-title {
	  background: var(--primary-color);
	  padding: 1rem;
	  color: white;
	  font-weight: bold;
}

.coming-soon p:not(.coming-title) {
	background-color: var(--focus-color);
  	color: #fff;
  	font-weight: bold;
	padding: 1rem;
}

.tmm .tmm_member .tmm_textblock .tmm_sociallink {
  width: 50px;
  height: 50px;
  display: inline-flex;
  border-radius: 50%;
  overflow: hidden;
}

html body .tmm .tmm_member .tmm_textblock .tmm_sociallink img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin: 0;
}