nav {
	top: 0;
}

header.resources {
	background-image: linear-gradient(
			rgba(56, 56, 56, 0.5),
			rgba(56, 56, 56, 0.5)
		),
		url(https://assets-cdn.carwars.com/websites/callbox/resources.jpg);
}

header.resources .res-title {
	font-size: 2rem !important;
	margin-bottom: 0 !important;
	text-shadow: var(--text-shadow-light);
}

header.resources .title:not(.nocap) {
	text-transform: uppercase;
}
header.resources .title.label {
	font-size: 2rem;
	margin-bottom: -0.5rem;
	font-family: maven-light, 'Maven Pro', Helvetica, Sans-serif;
	text-transform: none;
}

section .nav {
	position: sticky;
	text-align: center;
	margin-right: 2rem;
	top: 7rem;
	height: calc(80vh - 7rem);
	z-index: 15;
	max-width: 12rem;
	flex-shrink: 0;
}

section .nav > a {
	width: 100%;
}

section .nav button {
	font-size: 1.1rem;
	width: 100%;
	box-shadow: var(--shadow-light);
	margin: 0.5rem 0;
	min-height: 3rem;
}

section .nav button.alt,
section .nav button:hover {
	box-shadow: none;
}

section .nav label {
	font-size: 1.25rem;
	font-family: var(--head);
}

section .nav label:after {
	content: ' Resources';
}

section .navback {
	display: none;
}

section.lander.first {
	display: flex;
	padding-top: 1.5rem;
}

.content {
	display: flex;
	max-width: 1600px;
	margin: auto;
	width: 100%;
}
.content.blog {
	max-width: 1200px;
}

.nr {
	text-align: left;
	width: 100%;
}
.nr.flex {
	display: flex;
}

.nr button {
	box-shadow: none !important;
}
.nr .container a:hover {
	text-decoration: none;
}

/*document viewer page*/
.nr .pdf {
	width: 100%;
	height: calc(100vh - 7.5rem);
	width: 100%;
	display: flex;
	flex-direction: column;
	top: 5rem;
	position: sticky;
}

.pdf .titlebox {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 0.5rem;
	margin-top: -0.5rem;
}

.pdf .titlebox .title.sub {
	text-align: left;
	margin: 0;
}

.pdf iframe {
	width: 100%;
	height: 100%;
	animation: show 0.3s ease;
	border: 1px solid var(--gray3);
	background-color: var(--d-gray3);
	outline: 0;
	border-radius: var(--radius-big);
}

.nr .relatedbox {
	padding-left: 1.5rem;
	width: 30%;
	min-width: 280px;
}

.relatedbox .subtitle {
	font-weight: 600;
	text-align: left;
	margin: 0 0.5rem;
}

.relatedbox .img-wrap {
	max-height: 18rem;
	overflow: hidden;
}

.relatedbox .card {
	margin: 1rem 0;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
}

.relatedbox .img-wrap img {
	width: 100%;
}

.relatedbox .card-text {
	padding: 1rem;
	padding-top: 0;
	box-sizing: border-box;
}

#request {
	padding: 1rem;
	margin-top: 0.5rem;
	text-align: left;
}

#request button,
#request label {
	margin-top: 0.5rem;
}

#request .address,
#request .address2 {
	display: flex;
}

#state-holder,
#request .num {
	margin-left: 1rem;
}

#request .num {
	width: 65% !important;
}

/*index pages*/
.nr.resources {
	margin-right: -1.5rem;
}

.nr .container {
	max-width: none;
	width: 100%;
	justify-content: flex-start;
}

.nr .container a,
.nr .container > article {
	flex-basis: calc(25% - 1.5em);
	margin-right: 1.5rem;
	margin-bottom: 1rem;
	cursor: pointer;
}
.nr .container a {
	height: 450px;
}
.nr .container a article {
	height: 100%;
}
.nr .container article {
	width: 100%;
	background-color: white;
	border-radius: var(--radius-small);
	overflow: hidden;
	animation: slide-up-origin ease both;
	box-sizing: border-box;
	transition: var(--ease);
}
.nr .container article:hover div.slide-up {
	color: var(--gray1);
}
.nr .container article:hover .title, .nr .container article:hover :not(.slide-up) {
	color: var(--green2);
}
.nr .container article:hover {
	outline: 1px var(--gray2) solid;
}
.nr .container article.appear {
	animation-duration: 0.3s;
	visibility: visible;
}
.nr .container article label {
	text-transform: uppercase;
}

.nr .container article:hover label {
	color: var(--blue1);
}

.nr .container article .cover {
	height: 18rem;
	width: 100%;
	overflow: hidden;
}

.nr .container article .cover img {
	width: 100%;
	height: auto;
}

.nr .container article .cover.wide img {
	width: 175%;
	margin-left: -5rem;
}

.nr .container article .textwrapper {
	padding: 0 1rem;
	padding-bottom: 0.5rem;
}

/*** Blog styling ***/
.blogpost {
	width: 100%;
	border-radius: var(--radius-big);
	padding: 1.5rem;
	border: 1px solid var(--gray3);
	background: white;
	box-sizing: border-box;
}

.blogpost .flexchip {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 2rem;
}

.blogpost .blog-image {
	width: 100%;
	margin: 0.5rem 0;
}

.blogpost .blog-body {
	font-size: 1.25rem;
	line-height: 1.25;
	text-align: left;
}

.blogpost .icon {
	font-size: 6rem;
	color: var(--green2);
	font-weight: 900;
	margin: 2rem 0;
	margin-right: 3rem;
}

.blogpost .video {
	width: 100%;
	height: calc((100vw - 16rem) * 0.56);
	max-height: 550px;
	border-radius: var(--radius-big);
	overflow: hidden;
	display: flex;
	margin: 0 auto;
}

/** index page styling **/
section.triple a:hover {
	text-decoration: none;
}

section.triple .box {
	background-size: cover;
	border-radius: var(--radius-small);
	transition: var(--ease);
}

section.triple .box:hover {
	opacity: 0.9;
	box-shadow: var(--shadow-light);
}

section.triple .box .title {
	color: white;
	text-shadow: var(--text-shadow);
}

#auto {
	background-image: url(https://assets-cdn.carwars.com/cw/cw_bg.jpg);
}

#auto .title {
	color: var(--l-gray);
}

#dental {
	background-image: linear-gradient(
			rgba(56, 56, 56, 0.55),
			rgba(56, 56, 56, 0.2)
		),
		url(https://assets-cdn.carwars.com/websites/callbox/dental/dental-header.jpg);
}

#hospitals {
	background-image: linear-gradient(
			rgba(56, 56, 56, 0.55),
			rgba(56, 56, 56, 0.2)
		),
		url(https://assets-cdn.carwars.com/websites/callbox/hospitals.jpg);
}

#med {
	background-image: linear-gradient(
			rgba(56, 56, 56, 0.55),
			rgba(56, 56, 56, 0.2)
		),
		url(https://assets-cdn.carwars.com/websites/callbox/medical.jpg);
}

#vet {
	background-image: linear-gradient(
			rgba(56, 56, 56, 0.55),
			rgba(56, 56, 56, 0.2)
		),
		url(https://assets-cdn.carwars.com/websites/callbox/vet.jpg);
}

@media screen and (max-width: 1600px), screen and (max-device-width: 1600px) {
	.nr.resources {
		margin-right: -1rem;
	}

	.nr .container a,
	.nr .container > article {
		flex-basis: calc(25% - 1rem);
		margin-right: 1rem;
	}
}

@media screen and (max-width: 1440px), screen and (max-device-width: 1440px) {
	section .nav {
		max-width: 10rem;
	}

	.nr .container a,
	.nr .container > article {
		flex-basis: calc(33% - 1rem);
	}

	.content .relatedbox {
		padding-left: 1rem;
		margin-right: -1.5rem;
		min-width: 250px;
	}

	.nr .container article .cover {
		height: 21rem;
	}
}

@media screen and (max-width: 1024px), screen and (max-device-width: 1024px) {
	.nr .container a,
	.nr .container > article {
		flex-basis: calc(50% - 1rem);
	}
}

@media screen and (max-width: 950px), screen and (max-device-width: 950px) {
	section .nav {
		margin-right: 1.5rem;
	}
	section .nav button {
		font-size: 1rem;
	}

	.content .relatedbox {
		display: none;
	}
}

@media screen and (max-width: 770px), screen and (max-device-width: 770px) {
	header {
		text-align: center;
	}

	header .title:not(.label) {
		font-size: 2.5rem !important;
		margin-bottom: 0 !important;
	}

	.content {
		flex-direction: column;
	}

	section .nav {
		top: 0;
		max-width: none;
		height: auto;
		margin: 0;
		margin-top: -0.5rem;
		margin-bottom: 1rem;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		position: relative;
	}

	section .nav > a {
		min-height: 3rem;
		width: 32%;
		margin: 0.25rem 0.5%;
	}

	section .nav button {
		height: 100%;
		margin: 0;
	}

	section .nav label {
		width: 100%;
	}

	.nr .container {
		justify-content: space-between;
	}

	.nr .container a,
	.nr .container > article {
		flex-basis: calc(50% - 0.5rem);
		margin-right: 0;
	}

	.nr .pdf {
		margin-top: 0;
	}

	.blogpost .video {
		height: 50vw;
	}
}

@media screen and (max-width: 550px), screen and (max-device-width: 550px) {
	section.triple .container a {
		width: 100%;
		margin: 1rem 0;
	}

	section.triple .container .box {
		width: 100%;
		margin: 0;
		padding: 4rem;
	}
}

@media screen and (max-width: 450px), screen and (max-device-width: 450px) {
	section .nav > a {
		width: calc(50% - 0.5rem);
	}

	.nr .container a,
	.nr .container > article {
		flex-basis: 100%;
		max-width: 360px;
		margin: auto;
		margin-bottom: 1rem;
	}

	section.first.lander.template {
		padding-left: 0;
		padding-right: 0;
		padding-bottom: 0;
		border-radius: 0;
		overflow: hidden;
	}

	section .nav.template,
	.download-button {
		display: none;
	}

	header.min {
		padding-top: 4.5rem;
	}

	section .navback {
		display: flex;
		justify-content: space-between;
		margin: 0 0.5rem;
		align-items: center;
		margin-top: -1rem;
		margin-bottom: 0.5rem;
	}

	section .navback button {
		border-radius: 2rem;
		box-shadow: none !important;
	}

	section .navback button.alt {
		font-weight: 700;
		color: var(--green1);
		font-size: 0.8rem;
		height: 100%;
		white-space: nowrap;
		padding: 0.6rem 1rem;
	}

	section .navback button .zmdi {
		margin-left: -0.5rem;
		margin-right: 0.25rem;
	}

	.pdf .titlebox {
		margin-top: 0;
	}

	/*.pdf .titlebox {
	    margin: 0.5rem 1rem;
	}

	footer{
		display: none;
	}

	section.first.lander{
		height: calc(100vh - 5.5rem);
	    padding: 0;
	    overflow: hidden;
	}

	.nr .pdf{
    	height: calc(100vh - 5rem);
	}*/

	.blogpost {
		padding: 1rem;
	}

	.blogpost .flexchip {
		text-align: center;
		flex-direction: column;
		margin: 0.5rem;
	}

	.blogpost .blog-image {
		width: calc(100% + 2rem);
		margin-left: -1rem;
	}

	.blogpost .blog-body {
		font-size: 1.1rem;
	}

	.blogpost .icon {
		font-size: 4.5rem;
		margin: 0;
	}

	section article {
		padding: 0;
	}
}
