@charset "utf-8";
/* 
  CSS Document
  Theme Name: Testville Website
  Author: Miloš Stojanović
*/


/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/

html{font-size:100%; scroll-behavior:smooth;}

* {
	box-sizing: border-box;
}
	
body {
	background: #fff;
	color: #ccc; 
	font-family: 'Source Sans Pro', sans-serif;
	padding: 0;
	margin: 0;
}

header {
	border-bottom: 1px solid #f4f4f4;
}

header div{
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: center;
	width: min(1160px, 100%);
	margin: 0 auto;
	position: relative;
}

.logo {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 300px;
	margin: 20px 0;
}

header div .logo img {
	width: 94px;
	margin-left: 2px;
}

header div h1 {
	color: #1A639E;
	margin-right: 4px;
	font-size: 28px;
}

header div form {
	display: flex;
	align-items: center;
	width: 274px;
}

header div form input {
	width: 240px;
	height: 28px; 
	border: 1px solid #bebebe;
	border-radius: 4px;
	margin-right: 5px;
}

header div form input[type="image"] {
	width: 28px;
	heigh: 28px;
	padding: 4px;
	background: #f4f4f4;
	border-radius: 4px;
	border: none;
	margin-right: 0;
}

header div .burger {
	display: none;
	width: 25px;
	height: 25px;
}

#menu {
	display: none;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

menu, ul, li {
	list-style: none;
	margin: 0;
	padding: 0;
}

menu {
	display: flex;
	flex-flow: row;
	justify-content: flex-start;
	align-items: center;
	width: min(1160px, 100%);
	margin: 0 auto;
	
}

menu li {
	display: flex;
	flex-flow: row;
	align-items: center;
	justify-content: space-between;
	position: relative;
	padding: 15px 10px;
}

menu a {
	display: block;
	text-decoration: none;
	color: #737373;
}

menu li img {
	margin: 0 0 0 4px;
	width: 9px;	
}

menu li ul {
	display: block;
	width: 180px;
	position: absolute;
	left: 0;
	top: 50px;
	height: 0;
	overflow: hidden;
}

menu li:hover ul {
	height: 150px;
	background: #f4f4f4;
	z-index: 9998;
}

menu li ul li:hover {
	background: #7c7c7c;
	
	
}

menu li ul li:hover a{
	color: #1A639E;
	font-weight: 700;
}

/*--------------------------------------------------------------
# Hero Section
------------------------------------------------------------*/


#hero {
	padding: 0 0 40px 0;
	border-bottom: 1px solid #f4f4f4;
}

#hero div {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: center;
	width: min(1160px, 100%);
	margin: 0 auto;
}

#hero div img {
	width: 100%;
	border-radius: 8px;
}

.rectangle {
	width: 130px !important;
	height: 30px;
	background: #000;
	position: absolute;
	bottom: 10px;
	right: 10px;
	border-radius: 4px;
}

.rectangle p span img {
	width: 15px !important;
	margin: -2px 5px -2px 10px;
}

.rectangle span p{
	display: block;
	font-size: 10px;
	float: left;
	margin: 0;
}

#hero article {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: center;
	width: min(1160px, 100%);
	margin: 0 auto;
}

#hero article div {
	width: 220px;
	height: 90px;
	border: 1px solid #f4f4f4;
	border-radius: 8px;
	padding: 10px;
	margin: 10px 0;
	display: grid;
	grid-template-columns: 60px 140px;
}

#hero article div aside:nth-child(1) {
  
}

#hero article div aside:nth-child(1) img {
	width: 26px;
	height: 26px;
	transform: translate(10px, -14px);
}

#hero article div aside h4 {
	color: #000;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 3px 0;
}

#hero article div aside p{
	margin: 0;
}

/*--------------------------------------------------------------
# Events Section
------------------------------------------------------------*/

#events {
	padding: 40px 0;
	border-bottom: 1px solid #f4f4f4;
}

.title-button-container {
    display: flex;
	flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: min(1160px, 100%);
	margin: 0 auto 10px auto;
}

.view-all {
    background-color: #F3F3F3;
	padding: 8px;
    border: none;
    font-size: 14px;
	font-weight: 600;
    color: #0061A8;
    cursor: pointer;
	margin-left: auto;
	font-family: 'Source Sans Pro', sans-serif;
}

#events h2 {
    font-size: 28px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #1A639E;
    font-weight: 700;
	margin: 0;
}

.events-list {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: baseline;
	width: min(1160px, 100%);
	margin: 0 auto;
}

.events-list .event {
	width: 350px;
	border-top: 1px solid #f4f4f4;
	margin: 15px 0;
	padding: 10px;
	display: grid;
	grid-template-columns: 80px auto;
}

.events-list div aside h4 {
	color: #000;
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 3px 0;
}

#events .date {
	width: 50px;
	height: 50px;
	margin-top: -10px;
    text-align: center;
	border-radius: 0 0 4px 4px;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

#events .date .month {
    font-size: 16px;
	margin: 0;
	font-weight: 600;
    color: #1A639E;
}

#events .date .day {
    font-size: 26px;
	margin: -7px;
	font-weight: 600;
	color: #1A639E;

}

#events .event-content {
    flex-grow: 1;
    padding-left: 15px;
}

#events .event-title {
    font-weight: 700;
	font-size: 18px;
	color: #000;
    margin-bottom: 10px;
}

#events .event-content p {
	font-weight: 400;
	font-size: 16px;
    margin: 5px 0;
}

#events .event-content p span img{
    margin-right: 5px;
	vertical-align: middle;
}

/*--------------------------------------------------------------
# News Section
------------------------------------------------------------*/

#news {
	padding: 40px 0;
	border-bottom: 1px solid #f4f4f4;
}

#news h2 {
	font-size: 28px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #1A639E;
    font-weight: 700;
	margin: 0;
}

.articles {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: center;
	width: min(1160px, 100%);
	margin: 0 auto;
}

.articles div {
	width: 350px;
	margin: 15px 0;
	padding: 5px;
}

.articles div aside div {
	display: block;
    overflow: hidden;
	border-radius: 8px;
}

.articles div aside img {
	display: block;
	transition: transform .4s;
	width: 100%;
	border-radius: 8px;
    filter: grayscale(100%);
	
}

.articles div aside:hover img {
	transform: scale(1.2);
    transform-origin: 50% 50%;
	cursor: pointer;
}

.articles div aside .cathegory {
	font-size: 16px;
	color: gray;
	margin: 5px 0 0 0;
	font-weight: 400;
}

.articles div aside h3 {
	color: #000;
	font-size: 20px;
	font-weight: 700;
}

.articles div aside .excerpt {
	font-size: 16px;
	color: #555;
	margin-top: 10px;
}

/*--------------------------------------------------------------
# Recordings
------------------------------------------------------------*/

#recordings {
	padding: 40px 0;
	border-bottom: 1px solid #f4f4f4;
}

#recordings h2 {
	font-size: 28px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #1A639E;
    font-weight: 700;
	margin: 0;
}

.videos {
	display: flex;
	flex-flow: wrap;
	justify-content: space-between;
	align-items: flex-start;
	width: min(1160px, 100%);
	margin: 0 auto;
	
}

.videos div {
	width: 350px;
	margin: 15px 0;
	padding: 5px;
}

.videos div aside {
display: block !important;
	position: relative; }

.videos div aside img.article-image {
	width: 100%;
	height: auto;
	border-radius: 8px;
    filter: grayscale(100%);
}

.videos div aside .cathegory {
	font-size: 16px;
	color: gray;
	margin: 5px 0 0 0;
	font-weight: 400;
}

.videos div aside h3 {
	color: #000;
	font-size: 20px;
	font-weight: 700;
}

.videos div aside .excerpt {
	font-size: 16px;
	color: #555;
	margin-top: 10px;
}

.rectangle1 {
	width: 80px !important;
	height: 30px;
	background: #000;
	position: absolute;
	top: 120px;
	right: 10px;
	border-radius: 4px;
	z-index: 9999;
}

.rectangle1 p {
	margin: 0;
}

.rectangle1 p span img {
	width: 15px !important;
	margin: 0 8px 0 5px;
}

.rectangle1 span p{
	display: block;
	font-size: 10px;
	float: left;
	margin: 0;
}

/*--------------------------------------------------------------
# Stay connected
------------------------------------------------------------*/
#stay-connected {
	padding: 80px 0;
	border-bottom: 1px solid #f4f4f4;
	background: #f4f4f4;
}

#stay-connected h2 {
	font-size: 28px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #1A639E;
    font-weight: 700;
	margin-bottom: 0;
}

#stay-connected p {
	font-size: 20px;
    font-family: 'Source Sans Pro', sans-serif;
    color: #000;
    font-weight: 700;
	margin-top: 15px;
}

.connected-content {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	align-items: baseline;
	width: min(1160px, 100%);
	margin: 0 auto;
}

.connected-content div.left {	
	width: 440px;
	margin-right: 10px;
}

.connected-content div.right {	
	width: 640px;
	margin-left: 10px;
	display: grid;
	grid-template-rows: auto auto;
}

.connected-content div.right .top {	
	display: grid;
	grid-template-columns: auto auto;
	margin-bottom: 15px;
}

.connected-content div form aside label {	
	display: block;
	margin-bottom: 10px;
}

.connected-content div form aside input.name {	
	display: inline-block;
	width: 93%;
	height: 36px;
	padding: 10px;
	margin-right: 30px;
	border-radius: 4px;
	border: 1px solid #bebebe;
}

.connected-content div form aside input.phone-number { 
	width: 100%;
	height: 36px;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #bebebe;
}

.connected-content div form aside input.email {	
	width: 82%;
	height: 36px;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #bebebe;
}

.connected-content div form aside button {
	background: #000;
	padding: 9px 16px;
	color: #fff;
	font-size: 16px;
	border: none;
	border-radius: 4px;
	margin-left: 30px;
	font-family: 'Source Sans Pro', sans-serif;
	transition: all .3s;
}


.connected-content div form aside button:hover {
	background: #1A639E;
	cursor: pointer;
}

/*--------------------------------------------------------------
# FOOTER
------------------------------------------------------------*/
footer {
	width: 100%;
	padding: 0 40px;
	background: #1D1F26;
}

.footer-top {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	width: min(1160px, 100%);
	margin: 0 auto;
	padding: 40px 0 0 0;
	border-bottom: 1px solid #737373;
}
	
.footer-top div span button {
	display: inline-block;
	background: #000;
	border-radius: 8px;
	border: none;
	padding: 6px 12px;
	vertical-align: middle;
	margin-left: 7px;
	transition: all 0.5s;
}

.footer-top div span:hover button {
	background: #464646;
	cursor: pointer;
}

.updated {
	display: inline-block;
	float: right;
	vertical-align: middle;
}

.updated p{
	margin-bottom: 0;
}

.footer-middle {
	width: min(1160px, 100%);
	margin: 0 auto;
	padding: 30px 0;
}

.footer-middle-left {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}

.column-1, .column-2, .column-3 {
	padding: 0 70px 0 0;
}

.column-1 h2 {
	color: #fff;
}

.column-1 p {
	color: #fff;
}


.column-2 ul, .column-3 ul {
	padding: 0;
	margin: 0;
}

.column-2 ul li, .column-3 ul li  {
	list-style: none;
	margin: 4px 0;
}

.column-2 ul li a{
	color: #fff;
	text-decoration: none;
	font-family: 'Source Sans Pro', sans-serif;
}

.column-2 ul li a:hover{
	color: #ccc;
}

.column-3 ul li a{
	color: #fff;
	text-decoration: none;
	font-family: 'Source Sans Pro', sans-serif;	
}

.column-3 ul li a:hover{
	color: #ccc;
}

.footer-middle {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
}

.footer-middle-right form button {
	background: #f4f4f4;
	padding: 9px 16px;
	color: #1A639E;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	margin-left: 10px;
	font-family: 'Source Sans Pro', sans-serif;
}

.footer-middle-right form button:hover {
	background: #c7c7c7;
	cursor: pointer;
}

.footer-middle-right form input {
	width: 248px;
	height: 35px;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #bebebe;
}

.footer-bottom {
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	width: min(1160px, 100%);
	margin: 0 auto;
}

.footer-bottom a{
	color: #737373;
}

.footer-bottom-right a {
	margin: 0 5px;
	
}

/*--------------------------------------------------------------
# MODAL
------------------------------------------------------------*/

/* The Modal (hidden by default) */
.modal {
	display: none; 
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto; 
	background-color: rgb(0, 0, 0);
	background-color: rgba(0, 0, 0, 0.4); 
}

/* Modal Content */
.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	border-radius: 8px;
}

.modal-content p {
	margin: 0;
	text-align:center;
	font-size: 30px;
	font-weight: 700;
	font-family: 'Source Sans Pro', sans-serif;
	color: #000;
	
}

/* Close Button */
.close {
	color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}


/*--------------------------------------------------------------
# GO TO TOP
------------------------------------------------------------*/
#topButton {
	display: none; /* Hidden by default */
	position: fixed;
	bottom: 20px;
	right: 30px;
	z-index: 99;
	font-size: 30px;
	background-color: #000;
	color: #fff;
	padding: 9px 20px;
	border: none;
	border-radius: 31px;
	cursor: pointer;
	opacity: 0;
	transition: all 0.5s;
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 15px;
  }
}


#topButton.show {
	display: block;
	opacity: 1;
}

#myBtn {
	display: none;
	position: fixed; 
	bottom: 20px; 
	right: 30px; 
	z-index: 99; 
	border: none; 
	outline: none; 
	background: #000; 
	color: #fff; 
	cursor: pointer; 
	padding: 11px 18px;
	border-radius: 31px; 
	font-size: 18px; 
	transform: rotate(-90deg);
	transition: all 0.5s;
}

#myBtn:hover {
	background: #1A639E; 
	color: white;
}

/*--------------------------------------------------------------
# RESPONSIVE PREVIEW
------------------------------------------------------------*/

@media only screen and (max-width: 659px) {
	#hero article {
		justify-content: space-around;
	}
	
	.events-list {
		justify-content: space-around;
	}
	
	.articles {
		justify-content: space-around;
	}
	
	#recordings {
		margin: 10px auto 0 auto;
	}
	
	.videos {
		justify-content: space-around;
	}
	
	.videos div {
		margin: 15px 10px;
	}
	
	.view-all {
		margin-left: 0;
	}
	
	.events-list .event {
		width: 290px;
	}
	
	.connected-content .left {
		margin: 0 0 0 10px;
	}
	
	.connected-content {
		justify-content: space-around;
	}
	
	.connected-content div.right .top {	
		grid-template-columns: auto;
	}
	
	.connected-content div form aside input.name {	
		width: calc(100% - 10px);
		margin-right: 10px;
	}
	
	.connected-content div form aside input.phone-number {	
		width: calc(100% - 10px);
		margin-right: 10px;
	}
	
	.connected-content div form aside input.email {	
		width: calc(100% - 10px);
		margin-right: 10px;
	}
	
	.connected-content div form aside button {
		margin-left: 0;
		margin-top: 10px;
	}
	
	#newsletter aside {
		margin-top: 10px;
	}
	
	#stay-connected {
		padding: 20px 0;
	}
	
	.footer-top {
		justify-content: space-around;
		padding-bottom: 30px;
	}
	
	.footer-middle-right form input {
		width: 100%;
	}
	
	.footer-middle-right {
		margin-top: 30px;
	}
	
	.footer-middle-right form button {
		margin-left: 0;
		margin-top: 10px;
	}
	
	.footer-bottom {
		justify-content: space-around;
	}
}

/* tablet */

@media only screen and (max-width: 573px) {
	header div {
		justify-content: space-around;
	}
	
	.logo {
		width: 300px;
		margin: 10px 0;
	}

	header div .logo img {
		width: 70px;
		height: 70px;
	}

	header div h1 {
		font-size: 28px;
		margin-right: 35px;
	}
	
	header div form {
		margin-bottom: 10px;
	}
	
	header div .burger {
		display: block;
		position: absolute;
		color: red;
		top: 10px;
		right: 10px;
		z-index: 9999;
	}

	menu {
		display: flex;
		flex-flow: column;
		position: fixed;
		width: 100%;
		height: 100%;
		top: 0;
		left: -100%;
		background: #fff;
		transition: all 1s;
		padding: 30px;
		font-size: 28px;
		z-index: 9999 !important;
	  }
	
	#menu:checked + menu {
		left: 0;
	} 
	
	menu li:hover ul {
		background: #f4f4f4;
		z-index: 9998;
	}
	
	/* hero section */
	
		#hero article {
		display: flex;
		flex-flow: row wrap;
		justify-content: space-around;
		align-items: center;
		width: min(1160px, 100%);
		margin: 0 auto;
	}
	
	#stay-connected {
		width: 100%;
	}
	
	.connected-content .left {
		margin: 0 0 0 10px;
	}
}	