*{
	box-sizing: border-box;
}
html, body{
	height: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}
body{
	font-family: "Source Sans Pro";
	font-weight: 300;
}

a{
	text-decoration: none;
	color: inherit;
}

.fullwidth{
	width: 100%;
	display: block;
}
.content{
	width: 1050px;
	display: block;
	margin: 0 auto !important;
}
.gln{
	width: 100%;
	height:10px;
	display: block;
}
.left{
	float: left;
}
.right{
	float: right;
}

.brownbg{
	background: #644d43;
	color: white;
}

#header{
	height: auto;
	padding: 0;
	margin: 0;
}
#header .gln{
	height:10px;
}
#current_date{
	font-family: "PT Sans";
	font-weight: bold;
	font-size: 17px;
	color: #344c80;
	display: block;
}
#header .social_buttons{
	padding-top: 15px;
	padding-right: 4px;
	text-align: right;
}
.social_buttons i{
	text-decoration: none;
	font-style: normal;
	font-size: 60px;
	color: #ddd9d6;
	display: inline-block;
}
	.social_buttons i:hover{
		color: #344c80;
	}
#header-submenu{
	padding: 0;
	margin: 0;
	list-style: none;
	padding-top: 28px;
	
}
#header-submenu li{
	display: block;
	width: 195px;
	padding-left: 10px;
	padding-right: 5px;
	padding-top: 3px;
	padding-bottom: 4px;
	border: 1px solid #ddd9d5;
	border-radius: 4px;
	font-family: "Source Sans Pro";
	font-weight: 700;
	color: #344c80;
	position: relative;
	margin-bottom: 5px;
	text-transform: uppercase;
}
#header-submenu li a{
	display: block;
	position: relative;
	z-index: 90;
}
	#header-submenu li:before{
		content: url("/parameters/hetedhetorszag.patronet/templates/images/r_arrow_blue.png");
		position: absolute;
		top: 5px;
		right: 5px;
		z-index: 50;
	}
	#header-submenu li:hover{
		color: #ff8000 !important;
		/*background: white !important;*/
		/*border-color: #ddd9d5 !important;*/
	}
		#header-submenu li:hover:before{
			content: url("/parameters/hetedhetorszag.patronet/templates/images/r_arrow_orange.png") !important;
		}
#header-submenu #searchp{
	border: 1px solid #344c80;
	color: white;
	background: #344c80;
}
	#header-submenu #searchp:before{
		content: url("/parameters/hetedhetorszag.patronet/templates/images/r_sh.png");
		
	}
	#header-submenu #searchp:hover:before{
		content: url("/parameters/hetedhetorszag.patronet/templates/images/r_sh_o.png") !important;
		
	}

#header .pncustommenumenu, .coumen{
	padding: 0;
	margin: 0;
	display: table;
	font-family: "PT Sans";
	font-weight: 300;
	font-size: 18px;
	color: white;
	border-collapse: separate;

	border-spacing: 2px;
	width: 100%;
	margin-top: 7px;
}
#header .pncustommenumenu li{
	display: table-cell;
	background: #344b80;
	text-align: center;
	position: relative;
	padding: 1px;
	text-transform: uppercase;
}
	#header .pncustommenumenu li:hover, .coumenitm:hover{
		background: #ff8000;
		color: white;
	}
#header .pncustommenumenu li div, #header .pncustommenumenu li div a, .coumenitm a{
	width: 100%;
	display: block;
}
#header .pncustommenumenu ul[id^=pnsubmenu_]{
	position: absolute;
	right: 0;
	display: none;
	padding: 0;
	font-size: 0;
	bottom: 0px;
	text-align: left;
	min-width: 260px;
	padding-bottom: 40px;
}
	#header .pncustommenumenu li:hover ul[id^=pnsubmenu_]{
		display: block;
	}

#header .pncustommenumenu ul[id^=pnsubmenu_] li, .coumenitm{
	display: inline-block;
	margin-right: -4px;
	font-size: 18px;
	margin-right: 1px;
	margin-bottom: 1px;
	padding-left: 5px;
	padding-right: 5px;
	background: #ff8000;
}
#header .pncustommenumenu ul[id^=pnsubmenu_] li:hover{
	background: #344b80;
}

.coumenitm{
	background: #344b80;
	text-transform: uppercase;
	font-family: "PT Sans";
	font-weight: 300;
	font-size: 18px;

}
.bccc{
	display: table;
}
.cmenu, .cimg{
	display: table-cell;
}

.cmenu{
	width: 310px;
}
.cimg{
	padding-right: 15px !important;
}



#wrap{
	min-height: 100%;
	position: relative;
}
#pagecont{
	padding-bottom: 270px;
	height: 100%;
}


.section_title{
	border-bottom: 2px solid #344b80;
	margin-top: 5px !important;
	margin-bottom: 5px !important;
}
.section_title .content img{
	margin-bottom: 2px !important;
}

#footer{
	bottom: 0;
	height: 270px;
	background: #ddd9d5;
	color: #654d43;
	font-family: "Source Sans Pro";
	font-size: 17px;
	font-weight: 300;
	padding-top: 15px;
}
#footer p{
	padding: 0;
	margin: 0;
}



/* flex-box stuff  ---------------------------{ */


.flex-container{
	display: flex;
	flex-flow: column wrap;
	align-content: flex-start;
	margin-bottom: 15px !important;
	margin-top: 15px !important;
}
.flex-container.ltr{
	flex-flow: row wrap;
}
.fixed-height{
	height: 540px;
}

.flex-item{
	display: block;
}
/*  ------------hw- (Height, Width) */
	.flex-item._11{
		height: calc(165px * 1);
		width:  calc(100% / 3 - 10px);
	}
	.flex-item._21{
		height: calc(165px * 2 + 10px);
		width:  calc(100% / 3 - 10px);		
	}
	.flex-item._31{
		height: calc(165px * 3 + 20px);
		width:  calc(100% / 3 - 10px);			
	}
	/*-------------*/
	.flex-item._12{
		height: calc(165px * 1);
		width:  calc((100% / 3) * 2 + 10px - 10px);		
	}
	.flex-item._22{
		height: calc(165px * 2 + 10px);
		width:  calc((100% / 3) * 2 + 10px - 10px);			
	}
	.flex-item._32{
		height: calc(165px * 3 + 20px);
		width:  calc((100% / 3) * 2 + 10px - 20px);					
	}
	/*-------------*/
	.flex-item._13{
		height: calc(165px * 1);
		width:  100%;			
	}
	.flex-item._23{
		height: calc(165px * 2 + 10px);
		width:  100%;			
	}
	.flex-item._33{
		height: calc(165px * 3 + 20px);
		width:  100%;			
	}
	
	.square-flex-item{
		height: 255px;
		width: 25%;

	}
/* }--------------------------- */ 

.newscontainer{
	/*padding: 5px !important;*/
}
.newsarticle{
	border: 1px solid #ddd9d5;
	padding: 0;
	margin: 5px;
	
}




.flex-item{
	position: relative;
	overflow: hidden;
	
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}

.hidden{
	display: none !important;
}
/* -- item image -- */
.flex-item .item-image{
	display: block;
	min-height: 175px; /* height of one grid + bottom margin - 5. Don't ask. */
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
	
	flex: 0 1 100%;
}
	.item-image.thumb{
		/* feltételezhető, hogy ebben az esetben a flex-item CSAK onebyone */
		height: 100%;
		min-width: 48.5%;
		flex: initial;
	} 
	.item-image.full{
		height: 100%;
		width: 100%;
		flex: none;
	}
	.item-image.onegrid{
		display: block;
		height: 175px;
		width: 100%;
	}
	

/* -- item text -- */
.flex-item .item-text-container{
	width: 100%;
	display: block;
	padding: 15px;
	padding-top: 10px;
	overflow: hidden;
	height: 100%;
}
	.item-image.thumb + .item-text-container{
		width: 51.5%;
		display: table;
	}
	.item-image.thumb + .item-text-container .item-title{
		display: table-cell;
		vertical-align: middle;
	}
	.item-image.full + .item-text-container{
		position: absolute;
		bottom: 0;
		left: 0;
		height: 160px /* size of one grid without the bottom margin*/;
		background: rgba(39, 57, 97, 0.7);
		color: white;
	}
	
	
	
.flex-item:hover .item-text-container{
	background: #344b80;
	color: white;
}
.item-text-container .item-title{
	font-family: "Source Sans Pro";
	font-weight: "800";
	font-size: 29px;
	text-transform: uppercase;
	margin-bottom: 10px;
	display: block;
	width: 100%;
}
	.item-title.nobot{
		margin-bottom: 0;
	}

.item-text-container .item-text{
	display: block;
	width: 100%;
	font-family: "Source Sans Pro";
	font-weight: 300;
}

.flex-item .item-button{
	position: absolute;
	right: 5px;
	bottom: 5px;
	height: 20px;
	width: 20px;
	background-image: url("/parameters/hetedhetorszag.patronet/templates/images/r_arrow_orange.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}
	.flex-item:hover .item-button{
		background-image: url("/parameters/hetedhetorszag.patronet/templates/images/r_arrow_white.png") !important;
		cursor: pointer;
	}
	
.section_title h2, .section_title h3 {
    padding: 0;
    font-size: 29px;
    font-weight: 900;
    font-family: 'PT Sans';
    color: #ff8000;
    text-transform: uppercase;
    margin: 0;
}




#header.scrolled  .coumen{
	position: relative;
	z-index: 850;
}

.squares .item-text-container, .squares .item:hover .item-text-container{
	background: none !important;
}
