/*
Theme Name:   Identifikátory
Description:  Child theme of Astra for identifikatory website
Author:       Jan Kurš & David Shakhar
Author URI:   https://jankurs.cz
Template:     astra
Version:      1.0.3
*/

/* load typeface */
/* @import url('https://fonts.cdnfonts.com/css/univers'); */
/* same as above, but without condensed type*/
@font-face{font-family:univers-light;font-style:normal;font-weight:300;src:local('Univers'),url(https://fonts.cdnfonts.com/s/38968/UniversLight.woff) format('woff')}
@font-face{font-family:univers-regular;font-style:normal;font-weight:400;src:local('Univers'),url(https://fonts.cdnfonts.com/s/38968/UniversRegular.woff) format('woff')}
@font-face{font-family:univers-bold;font-style:normal;font-weight:700;src:local('Univers'),url(https://fonts.cdnfonts.com/s/38968/UniversBold.woff) format('woff')}


/* set typeface as default to all elements */
html {
	font-family: 'Univers-regular', sans-serif;
	font-style: normal;
	scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Univers-regular', sans-serif;
	font-weight: 600;
}

h2 {
	color: var(--wp--preset--color--ntk-base-blue);
}

.error-404 .ast-404-layout-1 h1.page-title {
	color: var(--wp--preset--color--ntk-base-blue);
}

.lang-item a > img {
  width: 32px;
}

.main-header-bar,
.ast-primary-header-bar,
.ast-above-header.ast-above-header-bar {
	background-color: transparent;
}

.ast-below-header-wrap .ast-container {
	background-color: #FFFFFF;
}

.ast-above-header-wrap .ast-container {
	padding-left: 0;
	padding-right: 0;
}

/* bold typeface in navigation and right menu */
header .main-header-bar-navigation li,
.sidebar-main li {
  font-size: var(--wp--preset--font-size--medium);
}

/* breadcrumbs slightly bolder */
header .site-description {
	font-weight: 400;
}

.ast-below-header-bar {
  border: none;
}

.ast-below-header-bar .ast-builder-grid-row {
	background-color: var(--wp--preset--color--ntk-red);
}

.site-header-below-section-right {
	margin-right: 20px;
}

.main-navigation .menu-item {
	font-family: 'Univers-bold', sans-serif;
}

.main-navigation .menu-link:hover {
	background-color: var(--wp--preset--color--ntk-orange);
	color: #FFFFFF;
}

#ast-hf-mobile-menu .menu-link {
	font-family: 'univers-regular', sans-serif;
  color: var(--wp--preset--color--ntk-black);
}

#ast-hf-mobile-menu .menu-link:hover {
  background-color: transparent;
  color: var(--wp--preset--color--ntk-black);
}

.sub-menu .menu-link {
	font-family: 'univers-regular', sans-serif;
}
.sub-menu .menu-link:hover {
	background-color: #f2f2f2;
}
.sub-menu .menu-item.current-menu-item > .menu-link,
.sub-menu .menu-item:hover > .menu-link {
  color: var(--wp--preset--color--ntk-black);
}

.ast-header-search .ast-dropdown-active .search-field::placeholder,
.ast-header-search .ast-dropdown-active .ast-icon{
  color: var(--wp--preset--color--ntk-black);
}

/* white background for content */
.ast-above-header-wrap .ast-container,
.site-primary-header-wrap.ast-container,
.site-content .ast-container,
.site-content .ast-container-fluid {
	background-color: #FFFFFF;
}

.ast-header-breadcrumb {
	padding: 0;
	background: transparent;
}
.main-header-bar.ast-header-breadcrumb .ast-container {
  background: #FFFFFF;
  padding: 10px 20px;
}

/* place background image */
.ast-plain-container, .ast-page-builder-template {
	background-image: url('./assets/img/bg.png');
	background-position: center -60px;
}

/* underlines on links are not what we want */
.ast-single-post .entry-content a.wp-block-hyperlink-group {
  text-decoration: none;
	color: #FFFFFF;
}

.ntk-block-navigation .wp-block-column {
	background-color: var(--wp--preset--color--ntk-red);
  border: 5px solid var(--wp--preset--color--ntk-red);
	transition: all 0.5s ease;
}
.ntk-block-navigation .wp-block-column:hover {
  background-color: #ffffff;
  border-color: var(--wp--preset--color--ntk-red);
}
.ntk-block-navigation .wp-block-column:hover h3{
  color: var(--wp--preset--color--ntk-black);
}
.ntk-block-navigation .wp-block-column h3 {
	color: #FFFFFF;
}

/* make sidebar sticky */
.sidebar-main {
  position: sticky;
  top: 100px;
}

/* make clickable area as big as possible, with same height and centered text */
a.wp-block-hyperlink-group {
	height: 100%;
	min-height: 150px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* "true" center without margin */
.ntk-block-navigation .wp-block-tiptip-hyperlink-group-block h3 {
	margin-bottom: 0;
}

/* set custom image to footer */
.site-footer {
	background-image: url(./assets/img/grudge-wall.png);
	background-repeat: repeat;
	background-position: center center;
	background-size: auto;
	background-attachment: scroll;
	position: relative;
}

/* add separator line above footer */
.site-footer::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 8px;
	background-image: -webkit-gradient(linear,left 0,left 100%,from(rgba(0,0,0,0.06)),to(rgba(0,0,0,0)));
	background-image: -webkit-linear-gradient(top,rgba(0,0,0,0.06),0,rgba(0,0,0,0),100%);
	background-image: -moz-linear-gradient(top,rgba(0,0,0,0.06) 0,rgba(0,0,0,0) 100%);
	background-image: linear-gradient(to bottom,rgba(0,0,0,0.06) 0,rgba(0,0,0,0) 100%);
	background-repeat: repeat-x;
	border-top: 1px solid #dadada;
	content: '';
}

/* remove background and border from secondary footer */
.site-below-footer-wrap[data-section="section-below-footer-builder"] {
  background: transparent;
  border: none;
}

/* hide current language in main menu */
#primary-site-navigation .page-item-108,
#primary-site-navigation .page-item-162{
	display:none;
}

/* Styles for DPS plugin*/
.display-posts-listing.grid {
	display: grid;
	grid-gap: 24px;
	font-family: 'Univers-light';
}

.display-posts-listing.grid .title {
	display: block;
	font-size: var(--wp--preset--font-size--large);
	font-weight: bolder;
	line-height: 1.5em;
	text-decoration: none;
	overflow: clip;
}

.display-posts-listing.grid img { 
	display: block; 
	max-width: 100%; 
	height: auto; 
}

.display-posts-listing .listing-item {
	display: flex;
	flex-direction: column;
	position: relative;
}

.display-posts-listing a.excerpt-more {
	margin-top: auto;
	color: var(--wp--preset--color--ntk-base-blue);
}
.display-posts-listing a.excerpt-more:hover {
	color: var(--wp--preset--color--ntk-blue);
}

@media (min-width: 600px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 2, 1fr );
	}
	.display-posts-listing.grid .title {
		height: 4.7em;
	}
}

@media (max-width: 921px) {
	#ast-mobile-header.ast-mobile-header-wrap,
	#content.site-content {
		background-color: #FFFFFF;
	}
	.ast-below-header-bar .ast-builder-grid-row {
		background-color: #FFFFFF;
	}
	.ast-header-search .search-field::placeholder,
	.ast-header-search .ast-icon{
		color: var(--wp--preset--color--ntk-black);
	}

	.ast-header-break-point .ast-primary-header-bar {
		border: none
	}

	.ast-header-break-point .ast-below-header-bar{
		border-bottom-width: 1px;
		border-bottom-color: #f5f5f5;
		border-bottom-style: solid;
	}

	.ast-container .widget-area.secondary{
		display: none;
	}
}

@media (min-width: 922px) {
	/* hide language switcher in main menu */
	.main-navigation .lang-item {
		display: none;
	}
	.ast-primary-header-bar {
		border: none;
	}
	.main-header-menu .sub-menu .menu-item {
		background-color: #FFFFFF;
	}
	.main-header-menu .sub-menu .menu-item:hover {
		background-color: #f2f2f2;
	}
	.main-header-menu .sub-menu .menu-link {
		color: var(--wp--preset--color--ntk-black);
	}
	.ast-container #primary.content-area.primary {
		margin: 1.5em 0 !important;
	}
}

@media (min-width: 1024px) {
	.display-posts-listing.grid {
		grid-template-columns: repeat( 4, 1fr );
	}
	.ast-header-breadcrumb {
		border: none;
	}
}