.program_grid{
	display: flex;
    flex-wrap: wrap;
}

.program_item {
    flex-basis: calc((100% - 80px) / 5);
    margin-right: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
}

.program_item:before{
	content: "";
	display: block;
	position: absolute;
	left: 0px;
	right: 0px;
	top: 0px;
	bottom: 0px;
    z-index: 999;
}

.program_item:nth-child(2n):before{
	background-color: rgba(255, 0, 8, 0.69);
}

.program_item:nth-child(2n+1):before{
	background-color: rgba(33, 117, 187, 0.69);
}

.program_item:nth-child(5n){
	margin-right: 0px;
}

.program_grid .program_item h3{
	font-size: 1.2vw;
    margin: 0px;
    position: absolute;
    top: 50%;
    text-align: left;
    transform: translateY(-50%);
    left: 30px;
    right: 30px;
    color: white;
    z-index: 9999;
}

.program_grid .program_item img{
	height: auto;
    object-fit: cover;
    width: 100%;
    transform: scale(1);
    transition: transform 200ms ease-in-out;
}

.program_item:hover img{
    transform: scale(1.1);
}


/* PROGRAM VYPIS */

.program-line-head{
    display: flex;
    padding: 30px;
    border: 2px solid #eaeaea;
    margin-top: 35px;
    cursor: pointer;
    position: relative;
    outline: none;
}

.program-line-head:hover, .program-line-head.ui-accordion-header-active{
	background-color: #f8f9fa;
	outline: none!important;
}

.program-line-content{
    padding: 30px;
    border: 2px solid #eaeaea;

}

#wrapper .program-line-head h3{
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 28px;
}

.program-line-short-desc {
    flex-basis: calc(80% - 20px);
}

.program-line-pic {
    flex-basis: 20%;
    margin-right: 20px;
}

.program-line-content h4{
	margin-top: 0px;
    font-size: 22px!important;
    color: #294a74!important;
    margin-bottom: 15px;
}

.program-line-content img{
	max-width: 100%;
	height: auto;
	margin: 20px 0px;
}

.program_menu{
	list-style: none;
	padding: 0px;
	margin: 0px;
}

.program_menu li a {
	white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sharing-program{
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-transform: uppercase;
}

.single-program #wrapper #main .fusion-row{
    max-width: 100%;
}

.single-program #wrapper #main{
    padding: 0px;
}

.program-detail-page {
    padding: 0px 100px;
}

.program-post-content{
    max-width: 900px;
    padding: 35px;
    margin: 70px auto;
    border: 2px solid #d5d5d5;
}

#main .program-post-content h1{
    font-weight: bold;
    margin-top: 0;
}