@font-face {
	font-family: SFProDisplayRegular;
	src: url(SF-Pro-Display-Regular.otf);
}

@font-face{
	font-family: SFProDisplaySemibold;
	src: url(SF-Pro-Display-Semibold.otf);
}
body{
	margin: 0;
	background-color: #fafafa;
}

.header_img{
	position: relative;
	margin: 0;
	width: 100%;
	height: 400px;
	max-height: 400px;
	min-height: 400px;
	object-fit: cover;
}

.header_img_tablet{
	display: none;
	width: 100%;
	object-fit: cover;
	height: 470px;
}

.header_logo{
	position: absolute;
	top: 48px;
	left: 4.3%;
	max-height: 160px;
	max-width: 160px;
}

.header_text{
	position: absolute;
	top: 210px;
	left: 4.3%;
	font-size: 24px;
	color: #ffffff;
	font-family: SFProDisplayRegular;
	margin-right: 4%;
	letter-spacing: 2px;
	font-weight: 300;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	line-height: 28px;
	max-height: 84px;
	-webkit-line-clamp: 3; /* number of lines to show */
	-webkit-box-orient: vertical;
}

.card{
	width: 81%;
	height: 100px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0px 0px 20px 0px rgba(0,0,0,0.1);
	margin-bottom: 20px;
	position: relative;
}

.cards{
	position: relative;
	margin-top: -13%;
}

.icon_img{
	margin: 28px 20px 0 8%;
	vertical-align: middle;
	display: inline-block;
}

.icon_img img{
	max-height: 45px;
	max-width: 45px;
}

.card_title{
	margin: 0;
	font-family: SFProDisplaySemibold;
	font-size: 15px;
	width: 75%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
	
}

.card_paragraph{
	margin: 5px 24% 0 0;
	font-family: SFProDisplayRegular;
	font-size: 12px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	line-height: 12px;
	max-height: 24px;
	-webkit-line-clamp: 2; /* number of lines to show */
	-webkit-box-orient: vertical;
}

.card_text{
	right: 10px;
	left: 34.4%;
	display: inline-block;
	color: #37a7de;
	position: absolute;
	top: 25%;
}


/*-----SMALL DEVICES (iphone4/5) - portrait -----*/
@media only screen and (max-width: 359px) and (min-width: 320px) {
	.header_logo{
		width: 118px;
		height: 120px;
	}

	.header_text{
		top: 180px;
		font-size: 18px;
		letter-spacing: 2px;
		font-weight: 300;
		line-height: 22px;
		max-height: 66px;
	}
}

/*-----Low resolution tablets, mobiles (landscape)-----*/
@media only screen and (max-width:767px ) and (min-width: 480px) {
	.header_logo{
		top: 24px;
		max-height: 96px;
	}

	.header_text{
		top: 120px;
	}

	.card_paragraph{
		margin: 5px 18% 0 0;
		line-height: 16px;
		max-height: 32px;
	}

	.header_img{
		height: 300px;
		max-height: 300px;
		min-height: 300px;
		object-position: 100% 30%;
	}

	.icon_img{
		margin: 28px 20px 0 10%;
	}

	.cards{
		margin-top: -7%;
	}
}

/*-----Tablets, Ipads (portrait)-----*/
@media (min-width: 768px) and (max-width: 1024px) {
	.header_img{
		display: none;
	}

	.header_img_tablet{
		display: block;
	}

	.header{
		display: flex;
		flex-direction: row;
	}

	.header_logo{
		display: inline-block;
		top: 40px;
		left: 7%;
	}

	.header_text{
		top: 10px;
		left: 36%;
		right: 7%;
	}

	.card{
		width: 100%;
	}

	.a_flex{
			width: 39.4%;
			margin: 0 5.3% 20px 5.3%;
	}

	.cards{   
		display: flex;
		flex-wrap: wrap;
		align-content: stretch;
		position: relative;
		margin-top: -6%;
	}

	.card_text{
		right: 10px;
		left: 34.4%;
		display: inline-block;
		color: #37a7de;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}
}

/*-----Tablets, Ipads (portrait)-----*/
@media (min-width: 768px) and (max-width: 1366px) and (orientation: landscape) {
	.header_img{
		display: none;
	}

	.header_img_tablet{
		display: block;
	}

	.header{
		display: flex;
		flex-direction: row;
	}

	.header_logo{
		display: inline-block;
		top: 40px;
		left: 7%;
	}

	.header_text{
		top: 10px;
		left: 36%;
		right: 7%;
	}

	.card{
		width: 100%;
	}

	.a_flex{
			width: 39.4%;
			margin: 0 5.3% 20px 5.3%;
	}
	
	.cards{   
		display: flex;
		flex-wrap: wrap;
		align-content: stretch;
		position: relative;
		margin-top: -5%;
	}

	.card_text{
		right: 10px;
		left: 34.4%;
		display: inline-block;
		color: #37a7de;
		position: absolute;
		top: 50%;
		transform: translateY(-50%);
	}
}