
	.clearfix:after
	{
		visibility: hidden;
		display: block;
		font-size: 0;
		content: " ";
		clear: both;
		height: 0;
	}
	
	.agencyBox
	{
		width: 100%;
		border-radius: 5px;
		background-color: #f4f4f4;
		font-size: 15px;
      	font-family: 'century gothic','calibri','verdana','arial';
       box-sizing: content-box;
       line-height: 1.5;
       -webkit-box-shadow: 5px 5px 24px rgba(0, 0, 0, 0.15);
       box-shadow: 5px 5px 24px rgba(0, 0, 0, 0.15);
		display:table;
	}

    .REGULAR, .CERTIFIED
	{
		margin-top: 30px;
		margin-bottom: 20px;
	}

    .standardAgency
	{
		color: black;
	}

	.certifiedAgency
	{
	}

   .agencyLogoBox {
        width: 22%;
        margin-left: 3%;
        min-height: 190px;
        height: 190px;
        background-color: white;
        float: left;
        position: relative;
    }

    .agencyLogoPicture {
        width: 90%;
        max-width: 90%;
        height: auto;
        max-height: 185px;
        position: absolute;
        bottom: 5px;
        margin-left: 5%;
        margin-right: 5%;
    }	
	.agencyDescriptionBox
	{
		width: 94%;
		min-height: 50px;
		float: none;
		padding-left: 3%;
		padding-right: 3%;
		margin-top: 20px;
		word-break:break-word;
	}

    .CERTIFIED .agencyStamp
	{
		width: 21%;
		margin-left: 3%;
		margin-right:1%;
		float: left;
		padding-top: 20px;
	}

	.REGULAR .agencyStamp
	{
		display:none;
	}

	.REGULAR .agencyTableBox
	{
		width: 72%;
		padding-top: 20px;
		margin-left: 3%;
		min-height: 50px;
		float: left;
	}

	.CERTIFIED .agencyTableBox
	{
		width: 47%;
		padding-top: 20px;
		margin-left: 3%;
		min-height: 50px;
		float: left;
	}
    
	.agencyStamp img
	{
		width:100%;
		height: auto;
	}
	
	.agencyName
	{
		font-size:22px;
		margin-bottom: 15px;
	}

    .agencyBoxTable
	{
		font-size: inherit;
		color: inherit;
		line-height: inherit;
	}

    .agencyBoxTable td
	{
		vertical-align: top;
	}

	.agencyBox a.button
	{
		display: inline-block;
		line-height: 1;
		font-size: 15px;
		font-family: 'century gothic','calibri','verdana','arial';
		background-color: #fff;
		padding: 10px 10px;
		border: 0px;
		border-radius: 5px;
		margin: 10px auto 20px auto;
		color: #5593cb;
		text-decoration: none;
		float: right;
	}

    .REGULAR a.button 
	{
		background-color: #5593cb;
		color: #fff;
	}

	.CERTIFIED a.button
	{
		background-color: #fff;
		color: #5593cb;
	}

    .CERTIFIED .agencyBox
	{
		background-color: transparent;
		background-image: -webkit-linear-gradient(right bottom, rgba(85, 147, 203, 1), rgba(58, 243, 223, 1));
		background-image: -moz-linear-gradient(to right bottom, rgba(85, 147, 203, 1), rgba(58, 243, 223, 1));
		background-image: -o-linear-gradient(to right bottom, rgba(85, 147, 203, 1), rgba(58, 243, 223, 1));
		background-image: linear-gradient(to right bottom, rgba(85, 147, 203, 1), rgba(58, 243, 223, 1));
		color: white;
	}

	@media screen and (max-width:500px)
	{
		.REGULAR .agencyTableBox, .CERTIFIED .agencyTableBox
		{
			width: 94%;
			min-height: 50px;
			float: none;
			padding-left: 3%;
			padding-right: 3%;
			margin-top: 20px;
		}

		.CERTIFIED .agencyName::before
		{
			content: "Certified agency: ";
		}

		.CERTIFIED .agencyStamp
		{
			display: none;
		}

		.agencyLogoBox
		{
			width: 64%;
			margin-left: 18%;
			margin-right: 18%;
			min-height: 190px;
			height: 190px;
			background-color: white;
			float: left;
			position: relative;
			margin-bottom: 20px;
		}
	}

