:root{
	--primary: #00A64A;
	--container-color: #EBEBEB;
}


.text-to-left {
	text-align: left;
}

/* CATGEGORY PAGE STYLING */
.top-banner {
	position: relative;
	background: #00AE53;
	background-size: cover;
	background-position: center;
	height: 461px;
}
.top-banner:before {
	content: "";
	position: absolute;
	display: block;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(36, 38, 41, 0.5);
}
.top-banner img {
	width: 100%;
}
.top-banner h1 {
	color: #ffffff;
	font-size: 90px;
	font-weight: 900;
	position: absolute;
	bottom: 55px;
	width: 100%;
}
.information {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	position: relative;
	margin: 55px 0px 25px 0px;
}
.information .sub-heading {
	color: #414142;
	font-size: 18px;
	display: inline-block;
}
.information .cat-tags {
	display: block;
	width: 80%;
	margin: 0px auto;
	text-align: center;
}
.information .cat-tags a {
	color: var(--primary);
	margin-right: 10px;
}
.information .cat-tags a:last-of-type {
	margin-right: 0px;
}
.information .cat-tags a.news-back {
	position: relative;
}
.information .cat-tags a.news-back:before {
	content: "";
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-right: 6px solid var(--primary);
	border-bottom: 4px solid transparent;
	position: absolute;
	left: -8px;
	bottom: 3px;
	
}
.information .cat-tags span {
	text-decoration: underline;
	display: inline-block;
	margin: 0px 5px;
	margin-bottom: 5px;
}
.information ul.pagination {
	margin: 0 auto;
	display: inline-flex;
	justify-content: right;
	float: right;
	line-height: 21px;
	font-size: 20px;
	list-style-type: none;
}
.information ul.pagination li {
	margin: 0px 5px;
}
.information ul.pagination li a {
	color: var(--primary);
}
.information ul.pagination li.current a {
	color: #414142;
}
.information:last-of-type {
	margin: 0px;
	padding-bottom: 125px;
	margin-top: 8px;
}
.cards {
	display: grid;
	grid-template-areas: 'card card card';
	justify-content: space-between;
	
}
.article-card {
	background-color: #EBEBEB;
	width: 365px;
	height: 460px;
	margin: 0 auto;
	margin-bottom: 20px;
	font-size: 16px;
	font-weight: 500;
	padding: 19px 0px;
	box-sizing: border-box;
	position: relative;
	transition: all .4s ease;
}
.article-card a {
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	color: #000000;
}
.article-card .date {
	font-size: 14px;
	padding: 0px 20px;
}
.article-card .header {
	font-size: 20px;
	font-weight: 900;
	text-transform: capitalize;
	padding: 10px 20px;
	padding-top: 5px;
}
.article-card .featured-img {
	max-height: 205px;
	width: 100%;
	position: relative;
}
.article-card .featured-img img {
	width: 100%;
	max-height: 205px;
}
.article-card .featured-img .overlay {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-height: 205px;
	background-color: rgba(0, 166, 74, 0.3);
	display: none;
	transition: all .4s ease;
}
.article-card .intro {
	padding: 0px 20px;
	margin-top: 15px;
	line-height: 22px;
}
.article-card .card-footer {
	position: absolute;
	bottom: 15px;
	width: 325px;
	margin: 0px 20px;
	padding-top: 8px;
	border-top: 1px solid rgba(33, 33, 33, 0.1);
}
.article-card .card-footer .tags {
	display: inline-block;
	width: 175px;
	max-height: 45px;
	overflow: hidden;
}
.article-card .card-footer .tags a {
	font-size: 10px;
	font-weight: 600;
	color: var(--primary);
	text-transform: capitalize;
	text-decoration: underline;
	margin: 0px 5px 5px 0px;
	line-height: 12px;
	display: inline-block;
	z-index: 1;
}
.article-card .card-footer .tags a:hover {
	text-decoration: none;
}
.article-card .card-footer .read-button {
	width: 120px;
	height: 30px;
	box-sizing: border-box;
	padding: 0px 31px;
	line-height: 30px;
	background-color: var(--primary);
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	float: right;
	text-decoration: none;
	transition: all .4s ease;
	color: #ffffff;
}
.article-card .card-footer .read-button span {
	color: #ffffff;
	text-decoration: none;
	letter-spacing: 2px;
}
.article-card .card-footer .read-button span:after {
	position: absolute;
	margin-top: 10px;
	margin-left: 5px;
	content: "";
	height: 0px;
	width: 0px;
	border-left: 10px solid #ffffff;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
}
.article-card:hover {
	background: var(--primary);
	color: #EBEBEB;
}
.article-card:hover .featured-img .overlay {
	display: block;
}
.article-card:hover .card-footer .tags a {
	color: #EBEBEB!important;
}
.article-card:hover .card-footer .read-button, .article-card .card-footer .read-button:hover {
	cursor: pointer;
	background-color: #006C15;
}
@media only screen and (max-width: 1200px) {
	.article-card {
		width: 350px;
	}
	.page-blog_category .inner-wrapper {
		width: 978px;
	}
	.article-card {
		width: 315px;
	}
	.article-card .featured-img {
		height: auto;
	}
	.article-card .card-footer {
		display: inline-flex;
		justify-content: space-between;
		width: 100%;
		margin: 0px;
		padding: 13px 10px 0px 10px;
		box-sizing: border-box;
	}
	.article-card .card-footer .tags {
		width: 165px;
	}
}
@media only screen and (max-width: 978px) {
	.top-banner {
		height: 257px;
	}
	.top-banner h1 {
		font-size: 70px;
	}
	.page-blog_category .inner-wrapper {
		width: 700px;
	}
	.cards {
		grid-template-areas: 'card card';
		justify-content: center;
	}
	.information {
		display: grid;
		text-align: center;
		padding: 0px 12px;
		margin: 16px 0px 25px 0px;
		font-size: 14px;
	}
	.information .cat-tags {
		width: 100%;
		margin-top: 0px;
		position: relative;
		top: unset;
	}
	.information .sub-heading {
		font-size: 26px;
		margin: 10px 0px;
	}
	.information ul.pagination {
		position: inherit;
	}
	.information.bottom .pagination {
		justify-content: center;
		width: 100%;
		right: 0px;
	}
	.article-card:nth-of-type(odd) {
		margin-right: 24px;
	}
	.article-card {
		width: 328px;
	}
}
@media only screen and (max-width: 720px) {
	.top-banner {
		height: 152px;
	}
	.top-banner h1 {
		font-size:36px;
		bottom: 21px;
	}
	.page-blog_category .inner-wrapper {
		width: 580px;
	}
	.information .sub-heading {
		margin-right: 0px;
	}
	.information ul.pagination {
		justify-content: center;
		width: 100%;
		right: 0px;
		top: unset;
		bottom: -60px;
		padding: 0px;
		margin: 0px;
	}
	.cards {
		grid-template-areas: 'card';
	}
	.article-card {
		width: 400px;
	}
	.article-card:nth-of-type(odd) {
		margin-right: 0px;
	}
}
@media only screen and (max-width: 610px) {
	.information {
		font-size: 14px;
	}
	.information .sub-heading {
		font-size: 26px;
	}
	.page-blog_category .inner-wrapper {
		width: 450px;
	}
}
@media only screen and (max-width: 480px) {
	.page-blog_category .inner-wrapper {
		width: 94%;
	}
	.information .sub-heading {
		font-size: 20px;
	}
	.article-card {
		width: 300px;
	}
	.article-card .card-footer .tags {
		width: 150px;
	}
}
/* END OF CATGEGORY PAGE STYLING */

/* NEWS ARTICLE STYLING */
.article.text-to-left, .author-name,
.signup-title, .news-header, .news-date {
	font-size: 18px;
}

.published-date, .signup-info, 
.signup-container #name-signup,
.signup-container #email-signup,
.signup-container #location-signup, .news-link a {
	font-size: 16px;
}

.main-contianer {
	background-color: #FFFFFF;
}

.secondary-container {
	display: flex;
	margin: 0 auto;
	width: 100%;
	padding-top: 150px;
	justify-content: center;
}

/* everything before the article */

.back-btn-container {
	position: relative;
}

.back-btn:before {
	content: "";
	width: 0;
	height: 0;
	border-top: 4px solid transparent;
	border-right: 6px solid var(--primary);
	border-bottom: 4px solid transparent;
	position: absolute;
	left: 0;
	bottom: 2px;
}
.back-btn, .tags {
	margin-right: 10px;
	text-transform: uppercase;
	display: inline-block;
}
.back-btn {
	font-size: 12px;
	color: var(--primary);
	text-decoration: underline;
	cursor: pointer;
	font-weight: 600;
	padding-left: 10px;
}
.article-container .tags-container .tags a {
	font-size: 12px;
	font-weight: 800;
	margin-right: 5px;
	color: rgba(51, 51, 51, 0.5);
	text-decoration: underline;
	text-transform: uppercase;
	transition: all .4s ease;
}
.article-container .tags-container .tags a:hover {
	color: var(--primary);
}


/* article container */
.article-container .header {
	font-size: 38px;
	font-weight: 800;
	padding-top: 16px;
}
.article-container {
	background-color: #FFFFFF;
	width: 600px;
	margin-right: 28px;
	padding-bottom: 100px;
}
.intro, .article {
	line-height: 30px;
	font-size: 20px;
}
/* img within the intro class & img within the article class  */
.main-article img, .article.text-to-left p .img {
	width: 100%!important;
	padding-top: 20.7px;
	padding-bottom: 8px;
}



/* sidebar */
.sidebar {
	width: 320px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-top: 35px;
}
.sidebar .errors {
	font-size: 16px;
	color: #AB0407;
	text-align: left;
	padding-left: 20px;
	width: 100%;
}
/* author */
.sidebar > *, .author-container, .article.text-to-left p .img,
.signup-outerwrapper, .author-container-dummy {
	box-sizing: border-box;
}
.author-container {
	display: flex;
	margin-bottom: 210px;
}
.author-img-container {
	position: relative;
}
.author-container div img, .author-container-dummy div img {
	border-radius: 50%;
	width: 100px;
	height: 100px;
	position: absolute;
	z-index: 100;
	right: 10px;
}
.author-descr {
	display: flex;
	flex-direction: column;
	background-color: var(--container-color); 
	width: 320px;
	height: 80px;
	margin-top: 10px;
	position: relative;
	z-index: 50;
	justify-content: center;
	padding-left: 10px;
	box-sizing: border-box;
}
.published-date {
	text-align: left;
}
.author-name {
	text-align: left;
	font-weight: 600;
	width: 180px;
}
.author-container-dummy {
	display: none;
}


/* signup form */
.signup-form {
	width: 320px;
}
.signup-outerwrapper {
	width: 100%;
	height: auto;
	background-color: var(--container-color);
	padding: 15px 15px;
}
.signup-container {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	text-align: left;
}
.signup-title {
	font-weight: 600;
	width: 200px;
	height: 35px;
	margin-bottom: 10px;
	text-transform: uppercase;
}
.signup-info {
	height: auto;
	padding-bottom: 16px;
	color: #333333;
}
.signup-container #name-signup,
.signup-container #email-signup,
.signup-container #location-signup {
	height: 46px;
	border: none;
	margin-bottom: 5px;
	padding-left: 10px;
	box-sizing: border-box;
}
.signup-container #name-signup::placeholder,
.signup-container #email-signup::placeholder,
.signup-container #location-signup::placeholder {
	color: #808080;
}
.signup-container #name-signup:focus,
.signup-container #email-signup:focus,
.signup-container #location-signup:focus {
	outline: none;
}
.signup-container #btn-signup {
	height: 46px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 5px;
	color: #FFFFFF;
	background-color: var(--primary);
	border: none;
	margin-top: 6px;
	transition: background-color .4s ease;
}
.signup-container #btn-signup:hover {
	cursor: pointer;
	background-color: #004829;
}

/* social media */
.social-container {
	background-color: var(--container-color);
	width: 320px;
	height: auto;
	padding: 15px 15px;
	text-align: left;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-top: 28px;
}
.social-inner-container .social-header {
	width: 200px;
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	text-transform: uppercase;
}
.news-container {
	margin: 50px 0px 20px 0px;
}
.news-header {
	font-weight: 600;
	text-transform: uppercase;
	margin-bottom: 10px;
}
.news-inner {
	padding-top: 20px;
}
.news-link {
	border-bottom: 1px solid rgba(128, 128, 128, 0.5);
	padding-bottom: 10px;
	font-weight: 500;
}
.news-link a {
	color: var(--primary);
}


/* tablet size */
@media only screen and (max-width: 991px) {
	/* article */
	.secondary-container{
		flex-direction: column;
		flex-wrap: wrap;
		width: 100%;
		box-sizing: border-box;
		padding-left: 23px;
		padding-right: 23px;
		padding-top: 100px;
	}

	.intro.text-to-left + .main-article > img, .article.text-to-left p .img {
		padding-top: 15px;
		padding-bottom: 8px;
	}
	/* sidebar */
	.author-container {
		display: none;
	}
	.author-container-dummy {
		display: flex;
		margin-top: 17.7px;
		margin-bottom: 23px;
		
	}
	.article-container, .author-descr, .signup-form, .signup-title, .social-container, .social-container .social-header  {
		width: 100%;
	}
	.sidebar {
		width: 100%;
		margin-top: 0px;
		padding-bottom: 100px;
		flex-direction: row;
	}
	.article-container {
		margin-right: 0px;
	}
	.author-descr {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}
	
	.signup-container {
		width: 290px;
		height: 302px;
	}
	.signup-title {
		width: 200px;
		height: 35px;
		margin-bottom: 10px;
	}
	.signup-info {
		padding-bottom: 16px;
	}
	.news-header {
		font-size: 22px!important;
	}
	.signup-info, .nav-btn {
		font-size: 16px;
	}
	.social-container {
		margin-left: 20px;
		margin-top: 0px;
		height: 333px;
	}
	.tags {
		font-size: 12px;
	}
	#btn-signup {
		width: 290px;
	}
	.news-link a {
		font-size: 18px;
	}
}

/* mobile size */
@media only screen and (max-width: 760px) {

	/* article */
	.main-contianer .secondary-container {
		padding-top: 40px;
	}

	.article-container .header {
		font-size: 30px;
	}
	.intro.text-to-left {
		font-size: 18px;
	}

	/* sidebar */
	.tags-outerwrapper {
		display: block;
	}
	.tags {
		padding-top: 5px;
	}
	.author-descr {
		justify-content: center;
		flex-direction: column;
		padding-left: 10px;
	}
	.author-name, .published-date {
		width: 100%;
	}
	.signup-outerwrapper {
		height: auto;
	}
	#btn-signup {
		width: 100%;
	}
	.news-link a {
		font-size: 16px;
	}
}

/* smaller mobile phones */
@media only screen and (max-width: 540px) {
	.sidebar {
		flex-direction: column;
	}
	.sidebar form {
		width: 100%;
	}
	.signup-container {
		width: 100%;
		height: auto;
	}
	.signup-info {
		padding-bottom: 15px;
	}
	.social-container {
		margin-top: 20px;
		margin-left: 0px;
		height: auto;
	}
	.main-contianer .secondary-container {
		padding-top: 50px;
	}
}

/* additional adjustment for small mobile phones */
@media only screen and (max-width: 425px) {
	.signup-title {
		width: 210px;
		margin: 0 auto;
	}
	.signup-info {
		padding: 15px 0px 30px 0px;
	}
}
/* END OF NEWS ARTICLE STYLING */