/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* General Styles */
.resources .resource .resource-type {
	float: left;
}
.resources .resource .resource-type.ETmodules {
	font-family: 'ETmodules';
}

/* Styles for resource list */
.resources.list .resource {
	position: relative;
	z-index: 1;
	padding: 20px;
	margin-bottom: 20px;
}
.resources.list .resource .resource-type {
	width: 5%;
	margin-right: 3%;
}
.resources.list .resource .resource-type.ETmodules {
	font-size: 40px;
}
.resources.list .resource .resource-type [data-icon] {
	font-size: 40px;
}
.resources.list .resource h1{
	font-size: 20px;
	line-height: 20px;
}
.resources.list .resource .resource-actions {
	position: relative;
	z-index: 3;
	float: right;
	width: auto;
	margin-left: 1em;
	margin-bottom: 1em;
}
.resources.list .resource .resource-actions .btn .text {
	margin-right: 0.5em;
}
.resources.list .resource .content-wrapper {
	position: relative;
	z-index: 2;
}

/* Styles for first 3 from the list */
body:not(.paged) .resources.list .resource:nth-child(-n+3) {
	color: #ffffff;
	background-position: center center;
    background-size: cover;
    overflow: hidden;
}
body:not(.paged) .resources.list .resource:nth-child(-n+3):before {
	position: absolute;
	z-index: 1;
	top: 0px;
	left: 0px;
	display: block;
	width: 100%;
	height: 100%;
	content: ' ';
	background-color: rgba(14, 119, 65, 0.9); /* green */
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .entry-title {
	color: #ffffff;
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .resource-type {
	display: none;
}

body:not(.paged) .resources.list .resource:nth-child(-n+3) .content-wrapper {
	float: none;
	width: 100%;
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .btn {
	padding: 0.375em 1.5em 0.375em 0.5em;
	height: 2.125em;
	background-color: rgba(255, 255, 255, 0.85);
    color: #00783f;
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .btn:hover {
	background-color: rgba(255, 255, 255, 1.0);
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .btn:active {
	box-shadow: inset 0px 0px 5px rgba(0,0,0,0.7);
}
body:not(.paged) .resources.list .resource:nth-child(-n+3) .btn .text {
	display: none;
}
body:not(.paged) .resources.list .resource:nth-child(1) {
	height: 300px;
}
body:not(.paged) .resources.list .resource:nth-child(1) .entry-title {
	font-size: 28px;
	line-height: 1.1;
}
body:not(.paged) .resources.list .resource:nth-child(1) .entry-content {
	font-size: 20px;
}
body:not(.paged) .resources.list .resource:nth-child(2),
body:not(.paged) .resources.list .resource:nth-child(3) {
	height: 214px;
	width: 48.5%;
	float: left;
}
body:not(.paged) .resources.list .resource:nth-child(3) {
	float: right;
}

/* Styling for the rest of the list */
body:not(.paged) .resources.list .resource:nth-child(4),
body.paged .resources.list .resource:nth-child(even) {
	clear: both;
}
body:not(.paged) .resources.list .resource:nth-child(n+4),
body.paged .resources.list .resource:nth-child(even){
	margin-bottom: 0px;
	background-image: none !important;
}
body:not(.paged) .resources.list .resource:nth-child(n+4):nth-child(odd),
body.paged .resources.list .resource:nth-child(odd) {
	background-color: #f7f8f9;
}
body:not(.paged) .resources.list .resource:nth-child(n+4) .resource-actions,
body.paged .resources.list .resource:nth-child(even) .resource-actions {
	margin-left: 2em;
}
body:not(.paged) .resources.list .resource:nth-child(n+4) .content-wrapper,
body.paged .resources.list .resource:nth-child(even) .content-wrapper {
	float: none;
	width: 92%;
    margin-left: 8%;
}

/* Section in a Page */

article.page-section-report{
	background-color: #f7f8f9;
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #ecedee;
	border-radius: 3px;
}
article.page-section-report .resource-actions{
	margin-top: 20px;
	text-align: right;
}
article.page-section-report .resource-actions .btn.download{
	padding-right: 2em;
}
article.page-section-report .resource-actions .btn.download:after{
    right: 10px;
}
article.page-section-report img.resource-cover{
	border: 1px solid #ecedee;
	width: 250px;
	float: left;
	margin-right: 20px;
}

/* Pagination */
.resources .pagination {
	margin-top: 20px;
}
.resources .pagination .next{
	float: right;
}
.resources .pagination .next a:after,
.resources .pagination .previous a:before{
	font-family: 'ETmodules';
	color: rgb(0, 120, 63);
	font-weight: bold;
	font-size: 100%;
	vertical-align: top;
}
.resources .pagination .previous a:before{
	content: "\34";
}
.resources .pagination .next a:after{
	content: "\35";
}

/* Related Resources */
.related-resource.resource {
	padding: 0 10px 20px 10px;
}
.related-resource.resource:last-of-type {
	padding-bottom: 0;
}
.related-resource.resource .resource-type {
	width: 10%;
	margin-right: 5%;
}
.related-resource.resource .resource-type.ETmodules {
	font-size: 16px;
}
.related-resource.resource .resource-type [data-icon] {
	font-size: 20px;
}
.related-resource.resource .content-wrapper {
	padding-top: 1px;
	width: 85%;
	margin-left: 15%;
}
.related-resource.resource h1 {
	padding-bottom: 0;
}
.related-resource.resource h1 a {
    color: rgb(0, 120, 63);
}
