/*

	Authors page styles

	1. Cover section
	2. Content section
		2.1. Categories
		2.2. Recent posts
		2.3. Authors list
	3. Media queries

*/

/* 1. Cover section */

body.page-template-authors {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.page-template-authors .authors-cover {
  height: 300px;
  position: relative;
}

body.page-template-authors .gridlove-footer {
  margin-top: auto;
}

/* 2. Content section */

.authors-content {
  padding: 44px 0 50px;
}

.authors-content__inner {
  display: flex;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto -77px;

  position: relative;
}

.authors-content__side {
  width: 300px;
  height: 100%;
  margin-right: 3px;
  padding-bottom: 80px;

  flex-shrink: 0;
  align-self: stretch;

  position: sticky;
  top: 90px;
}

.authors-content__main {
	width: 100%;
  height: inherit;
  padding: 50px 23px 50px 77px;

  transform: translateY(-80px);
  position: relative;
  z-index: 1;

  background-color: #fff;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, .15);
}

.authors-header_tablet {
	display: none;
}

.authors-header__title {
  margin-bottom: 30px;

  font-family: 'Catamaran', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.44em;
}

.authors-header__desc {
  margin-bottom: 30px;

  font-family: 'Lato', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.42em;
}

/* 2.1. Categories */

.authors-all-cats {
	display: flex;
	justify-content: center;
	max-width: inherit;
  padding: 20px;
  box-shadow: 0px 0px 5px rgb(0, 0, 0, .15);
}

.authors-all-cats__toggler {
	display: block;
	margin-bottom: 20px;

	position: relative;

	font-family: 'Catamaran', sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4em;

	pointer-events: none;
	user-select: none;
}

.authors-all-cats__toggler::before {
	content: '';
	display: none;
	width: 12px;
	height: 6px;

	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%) rotate(-90deg);

	background-image: url(../../img/custom/svg/arrow-down.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;

	transition: transform .15s ease;
}

.authors-all-cats.active .authors-all-cats__toggler::before {
	transform: translateY(-50%) rotate(0);
}

.authors-all-cats__list {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	margin-right: 0 !important;
	padding: 0;
	list-style: none;
	overflow-y: hidden;
	overflow-x: auto;
}

.authors-all-cats__list::-webkit-scrollbar {
	display: none;
}

.authors-all-cats__item {
	display: flex;
	align-items: center;
}

.authors-all-cats__item:not(:last-child) {
	margin-right: 17px;
}

a.authors-all-cats__link {
	height: 20px;
	padding: 5px 12px;
	font-family: "Roboto", sans-serif;
	font-size: 10px;
	font-weight: bold;
	line-height: 1;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
	background-color: #009cff;
	border-radius: 14px;
	transition: all .2s ease-in-out;
}

a.authors-all-cats__link:hover {
	background-color: #111 !important;
}

.authors-all-cats__counter {
	display: none;
	height: 30px;
	min-width: 30px;
	padding: 0 5px;
	font-family: 'Lato', sans-serif;
	font-size: 12px;
	line-height: 30px;
	text-align: center;
	color: #fff;
	background-color: #009cff;
	border-radius: 15px;
}

.authors-all-cats {
  display: block;
  overflow: hidden;
  transition: height .15s ease;
}

.authors-all-cats__list {
  display: block;
  width: 100%;
	margin: 0;
  transition: opacity .15s ease;
}

.authors-all-cats__item {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.authors-all-cats__item:not(:last-child) {
  margin-right: 0;
  border-bottom: 1px solid #EFEFEF;
}

a.authors-all-cats__link {
	display: flex;
	width: 100%;
	height: auto;
	padding: 0;

	justify-content: space-between;
	align-items: center;

  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  color: #5E5E5E;

  background-color: rgba(255, 255, 255, 0) !important;
}

a.authors-all-cats__link:hover {
  background-color: unset !important;
}

.authors-all-cats__counter {
  display: block;
}

/* 2.2. Recent posts */

.authors-content__recent-posts-container {
  margin-top: 30px;
}

.authors-recent-posts {
  margin-top: 10px;
	padding: 20px;
	box-shadow: 0px 0px 5px rgba(0, 0, 0, .15);
}

.authors-recent-posts__title {
	margin: 0 0 20px !important;
	padding: 0 !important;
	font-family: 'Catamaran', 'Roboto', 'Lato', sans-serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.4em;
	pointer-events: none;
}

.authors-recent-posts__list {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.authors-recent-posts__item:not(:last-child) {
	margin-bottom: 20px;
}

.authors-recent-posts__item-container {
	display: flex;
	border: none !important;
}

.authors-recent-posts__item-cover {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	margin-right: 20px;
}

.authors-recent-posts__item-img {
	width: inherit;
	height: inherit;
	object-fit: cover;
	object-position: center;
}

.authors-recent-posts__item-title {
	margin-left: 0 !important;
	margin-bottom: 8px !important;
	padding-left: 0 !important;
	font-family: 'Lato', 'Roboto', sans-serif !important;
	font-size: 14px;
	font-weight: normal !important;
	line-height: 1.2em;
}

.authors-recent-posts__item-meta {
	line-height: 1.2em !important;
}

.authors-recent-posts__item-views {
	margin-right: 20px;
}

.authors-recent-posts__item-views,
.authors-recent-posts__item-comments {
	font-family: 'Roboto', sans-serif;
	font-size: 10px;
	font-weight: 400;
	line-height: 1.2em !important;
	color: #5E5E5E;
}

.authors-recent-posts__item-views:before,
.authors-recent-posts__item-comments:before {
	margin-right: 8px;
	font-family: 'FontAwesome';
}

.authors-recent-posts__item-views:before {
	content: '\f06e';
}

.authors-recent-posts__item-comments:before {
	content: '\f086';
}

/* 2.3. Authors list */

.authors-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.authors-list__item {
  min-height: 136px;
  padding: 23px 0 23px 132px;
	position: relative;

	font-family: 'Roboto', sans-serif;
	font-weight: normal;
	color: #444;
}

.authors-list__item:not(:last-child) {
  border-bottom: 1px solid #EFEFEF;
}

.authors-list__item-avatar {
	width: 90px;
	height: 90px;

	position: absolute;
	left: 0;
	top: 23px;

	border-radius: 50%;
	overflow: hidden;
}

.authors-list__item-avatar img {
	width: inherit;
  max-width: unset !important;
	height: inherit;
	object-fit: cover;
	object-position: center;
}

.authors-list__item-about {
  margin-bottom: 20px;
}

.authors-list__item-name {
	margin-bottom: 5px;

  font-family: 'Catamaran', sans-serif;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.46em;
  color: #2B2B2B;
}

.authors-list__item-position {
	margin-bottom: 10px;

  font-family: 'Lato', sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.42em;
	color: #444;
}

.authors-list__item-resources {
	display: flex;

	align-items: center;
	flex-wrap: wrap;
}

.authors-list__item-view-all {
	margin-right: 10px;
	padding: 6px 11px;

	flex-shrink: 0;

	font-family: 'Catamaran', sans-serif;
	font-size: 12px;
	font-weight: 800;
	line-height: 18px;
	color: #fff;
	text-decoration: none;
  text-transform: uppercase;

	background-color: #4BAEE3;
	border: 1px solid #27A5E9;
	border-radius: 6px;
	transition: background .15s ease, border .15s ease;
}

.authors-list__item-view-all:hover {
	color: #fff;
	background-color: #68CBFF;
	border: 1px solid #27A5E9;
}

.authors-list__item-view-all:active {
	color: #fff;
	background-color: #0D73B4;
	border: 1px solid #27A5E9;
}

.authors-list__item-socials {
	display: flex;

	flex-shrink: 0;
}

.authors-list__item-social {
	width: 32px;
	height: 32px;

	text-indent: -999px;

	background-position: center;
	background-repeat: no-repeat;
	background-size: 12px 12px;
	border: none;
	border-radius: 50%;
	overflow: hidden;
}

.author-info__social_personal-site {
	background-color: #BDE8FF;
	background-image: url(../../img/custom/svg/share-blue.svg);
}

.author-info__social_linkedin {
	background-color: #0077b7;
	background-image: url(../../img/custom/svg/linkedin.svg);
}

.author-info__social_fb {
	background-color: #39539D;
	background-image: url(../../img/custom/svg/facebook.svg);
  background-size: 8px;
}

.author-info__social_tw {
	background-color: #3DA9F5;
	background-image: url(../../img/custom/svg/twitter.svg);
}

.author-info__social_yt {
	background-color: #FF0000;
	background-image: url(../../img/custom/svg/youtube.svg);
  background-position: calc(50% + 1px) center;
  background-size: 12px;
}

.authors-list__item-social:not(:last-child) {
	margin-right: 5px;
}

/* 4. Media queries */

@media screen and (max-width: 1160px) {

	/* Cover */

  body.page-template-authors .authors-cover {
    margin-top: 70px;
  }

}

@media screen and (max-width: 991px) {

	/* Content */

	.authors-content {
		padding: 28px 0 30px 0;
	}

	.authors-content__inner {
		display: block;
		max-width: 830px;
		margin: 0 auto;
		padding: 0 24px;
	}

	.authors-content__side {
		width: 100%;
		max-width: 372px;
		padding-bottom: 0;

		position: static;
		top: unset;
	}

	.authors-content__main {
		padding: 0;
		padding-top: 30px;
		transform: unset;
		box-shadow: none;
	}

	.authors-header_tablet {
		display: block;
	}

	.authors-header_desktop {
		display: none;
	}

	.authors-header__title {
		margin-bottom: 20px;
		font-size: 30px;
		font-weight: 700;
	}

	.authors-header__desc {
		font-size: 15px;
		font-weight: 700;
	}

	/* Categories */

	.authors-all-cats {
		display: block;
		padding: 0;
		box-shadow: none;
		overflow: hidden;
		transition: height .15s ease;
	}

	.authors-all-cats__toggler {
		padding: 6px 0 !important;

		position: relative;

		border-bottom: 1px solid;
		border-image: linear-gradient(to right, #0095FF 75px, #ccc 75px, #ccc) 1;
		pointer-events: all;
		cursor: pointer;
	}

	.authors-all-cats__toggler::before {
		content: '';
		display: block;
		width: 12px;
		height: 6px;

		position: absolute;
		right: 12px;
		top: 50%;
		transform: translateY(-50%) rotate(-90deg);

		background-image: url(../../img/custom/svg/arrow-down.svg);
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;

		transition: transform .15s ease;
	}

	.authors-all-cats.active .all-cats__toggler::before {
		transform: translateY(-50%) rotate(0);
	}

	.authors-all-cats__list {
		opacity: 0;
	}

	.authors-all-cats.active .authors-all-cats__list {
		opacity: 1;
	}

	/* Recent posts */

	.authors-content__recent-posts-container {
		margin-top: 0;
	}

	.authors-recent-posts {
		display: block;
		margin-top: 0;
		padding: 0;
		box-shadow: none;
		overflow: hidden;
		transition: height .15s ease;
	}

	.authors-recent-posts__title {
		padding: 6px 0 !important;

		position: relative;

		border-bottom: 1px solid;
		border-image: linear-gradient(to right, #0095FF 75px, #ccc 75px, #ccc) 1;
		pointer-events: all;
	}

	.authors-recent-posts__title {
		padding: 6px 0 !important;
		border-bottom: 1px solid;
		border-image: linear-gradient(to right, #0095FF 75px, #ccc 75px, #ccc) 1;
		cursor: pointer;
	}

	.authors-recent-posts__title::before {
		content: '';
		display: block;
		width: 12px;
		height: 6px;

		position: absolute;
		right: 12px;
		top: 50%;
		transform: translateY(-50%) rotate(-90deg);

		background-image: url(../../img/custom/svg/arrow-down.svg);
		background-position: center;
		background-repeat: no-repeat;
		background-size: contain;

		transition: transform .15s ease;
	}

	.authors-recent-posts.active .authors-recent-posts__title::before {
		transform: translateY(-50%) rotate(0);
	}

	.authors-recent-posts__list {
		opacity: 0;
		transition: opacity .15s ease;
	}

	.authors-recent-posts.active .authors-recent-posts__list {
		opacity: 1;
	}

	/* Authors list */

	.authors-list__item {
		padding: 20px 0 20px 100px;
	}

	.authors-list__item-avatar {
		width: 80px;
		height: 80px;
	}

	.authors-list__item-name {
		font-size: 20px;
		font-weight: 800;
	}

	.authors-list__item-position {
		font-size: 19px;
		font-weight: 600;
	}

	.authors-list__item-resources {
		align-items: flex-start;
		flex-direction: column-reverse;
	}

	.authors-list__item-socials {
		margin-bottom: 10px;
	}

}

@media screen and (max-width: 579px) {

	/* Cover */

	body.page-template-authors .authors-cover {
		height: 161px;
		margin-top: 50px;
	}

}
