/* General */

:root {
	--brand-teal: #008285;
	--brand-teal-trans: rgba(0,130,133,0.95);
	--brand-teal-dark: #006E70;
	--brand-grey: #676362;
	--brand-blue: #00719d;
	--grey-light-light: #f1f1f1;
	--grey-light: #e0e0e0;
	--grey-dark: #737373;
	--grey-dark-dark: #444;
}

@media (min-width: 576px) {
	html {
		font-size: 1.2rem;
	}

	#npf-nav,
	.site-footer {
		font-size: 0.8rem;
	}
}

body {
	font-family: 'Outfit', sans-serif;
	letter-spacing: -0.01em;
	color: var(--grey-dark-dark);
}

section {
	padding: 3rem 0;
}

h1,
h2,
h3,
h4,
.strapline {
	font-weight: 600;
	margin-bottom: 1rem;
}

h2:not(:first-child) {
	margin-top: 2rem;
}

h3 {
	font-size: 1.4rem;
}

h4 {
	font-size: 1.2rem;
}

/* p:last-child {
	margin-bottom: 0;
} */

@media (min-width: 1300px) {
	.container {
		max-width: 1250px;
	}
}

a, a:hover {
	color: var(--brand-teal-dark);
}

.body-text a, .landing-intro a {
	text-decoration: underline;
}

.body-text a:hover, .landing-intro a:hover {
	text-decoration: none;
}

.date {
	font-size: .8rem;
	color: var(--grey-dark);
}

/* Table styles */

table {
	width: 100%;
	margin-bottom: 1rem;
}

thead {
	background-color: #e2e2e2;
}

th, td {
	padding: 0.3rem;
}

@media (min-width: 768px) {
	th, td {
		padding: 0.5rem;
	}
}

tr:nth-child(even) {
	background-color: #f5f5f5;
}

/* Nav */

#npf-nav {
	display: block;
	padding: 0;
}

.logos-wrapper {
	height: 6rem;
	padding: 1.5rem 0;
}

.logos-wrapper .container,
.logos-wrapper a,
.logos-wrapper img {
	height: 100%;
}

.logos-wrapper img {
	width: 100%;
}

.logos-wrapper .container {
	display: flex;
	justify-content: space-between;
	flex-wrap: nowrap;
}

#npf-nav .nav-wrapper {
	background-color: var(--brand-teal);
	padding: 1rem 0;
}

#npf-nav .nav-wrapper .container {
	position: relative;
	justify-content: flex-end;
}

#npf-nav .nav-link {
  color: #fff;
	text-transform: uppercase;
	position: relative;
}

#npf-nav .nav-link:before {
	content: "";
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: 0;
	left: 0;
	background: #fff;
	visibility: hidden;
	transform: scaleX(0);
	transition: .15s linear;
}

@media screen and (max-width: 1199.98px) {
	#npf-nav .nav-link:before {
		transform-origin: left;
	}
}

#npf-nav .nav-link:hover:before, #npf-nav .nav-link.active:before {
	visibility: visible;
	transform: scaleX(1);
}

#npf-nav .search-toggler, #npf-nav .search-close, #npf-nav .navbar-toggler {
	color: #fff;
}

#npf-nav .search-toggler, #npf-nav .search-close, #advanced-search .filter-close {
	font-size: 1.25rem;
	line-height: 1;
	background-color: transparent;
	border: 1px solid transparent;
	padding: 0;
}

#npf-nav .search-toggler {
	margin-left: .5rem;
}

@media (min-width: 1200px) {
	#npf-nav .search-toggler {
			margin-left: 4rem;
	}

			#npf-nav .search-toggler .label {
					display: none;
			}
}

#npf-nav .navbar-toggler {
	padding: 0;
}

#npf-nav .menu-text, #npf-nav .search-toggler .label, #npf-nav .search-close .label {
	text-transform: uppercase;
	font-size: .7rem;
	margin-top: 0.2rem;
}

@media (min-width: 576px) {
	#npf-nav .menu-text, #npf-nav .search-toggler .label, #npf-nav .search-close .label {
			font-size: 0.6rem;
	}
}

@media (max-width: 1199.98px) {
	#npf-nav #navbarNav {
			background-color: var(--brand-teal-trans);
			z-index: 3;
			position: fixed;
			top: 0;
			height: 100vh;
			min-width: 60vw;
			padding: 2rem;
			overflow: auto;
	}

			#npf-nav #navbarNav.collapsing {
					right: -60vw;
					transition: right 0.3s ease-in;
			}

			#npf-nav #navbarNav.show {
					right: 0;
					transition: right 0.3s ease-in;
			}

			#npf-nav #navbarNav .nav-item {
					margin: 1rem 0;
			}
}

/* Search dropdowm */

#npf-nav #search-dropdown {
	position: absolute;
	right: 0;
	top: 3rem;
	z-index: 2;
	box-shadow: rgba(0,0,0,0.33) 0px 10px 10px 0px;
	border-bottom-right-radius: 1rem;
	border-bottom-left-radius: 1rem;
	background: var(--brand-teal-trans);
}

#npf-nav #search-dropdown .search-container {
	padding: 1rem;
}

#npf-nav #search-dropdown .search-close-wrapper {
	margin-bottom: 1rem;
	text-align: right;
}

#npf-nav #search-dropdown #search {
	border-radius: 2rem;
	border: 2px solid #fff;
	padding: 0.5rem 1rem;
	display: flex;
}

#npf-nav #search-dropdown #search-input {
	flex-grow: 1;
	margin-right: 1rem;
	border: 0;
	background-color: initial;
	color: #fff;
}

#npf-nav #search-dropdown #search-input::placeholder {
	color: #fff;
}

#npf-nav #search-dropdown #search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.25);
} 

#npf-nav #search-dropdown #search-input:focus {
		outline: none;
}

#npf-nav #search-dropdown #search-submit {
	border: 0;
	background-color: initial;
	color: #fff;
}

/* Footer */

footer {
	font-size: .9rem;
}

footer h2 {
	font-size: 1.5rem;
}

.footer-main {
	background-color: var(--grey-light);
	padding: 3rem 1rem;
}

.footer-main a {
	text-decoration: underline;
}

.footer-main a:hover {
	text-decoration: none;
}

.footer-main .logos {
	max-width: 250px;
}

.footer-main .logo-text {
	font-size: .8rem;
    margin-bottom: .3rem;
}

.footer-main .text {
	border-left: 2px solid #ccc;
}

.footer-main ul {
	padding: 0;
	margin: 0;
	list-style-type: none;
}

.footer-sub {
	background-color: #444;
    padding: 0.5rem 1rem;
    color: #fff;
}

/* Buttons */

.button {
	background-image: linear-gradient(var(--brand-blue), var(--brand-teal));
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	display: inline-block;
	color: #fff;
	text-decoration: none!important;
}

.button:hover {
	color: #fff;
	text-decoration: none;
}

/* Breadcrumb*/

.npf-breadcrumb-wrapper {
	background-color: var(--grey-light);
	text-shadow: none;
}

.npf-breadcrumb-wrapper .breadcrumb {
	margin: 0;
	padding: 1rem 0;
	background-color: transparent;
}

.npf-breadcrumb-wrapper .small {
	font-size: .7rem;
	text-transform: uppercase;
}

.npf-breadcrumb-wrapper .breadcrumb-item a {
	text-decoration: underline;
}

.npf-breadcrumb-wrapper .breadcrumb-item.active {
	color: var(--grey-dark-dark);
}

/* Headers and landing page features */

header {
	color: #fff;
	text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
	background-size: cover;
	background-position-y: bottom;
}

header.homepage, .landing-featured-pages li {
	position: relative;
	background-size: cover;
	background-position-y: center;

}

header.homepage {
	background-image: linear-gradient(rgb(0, 113, 157, 0.9), rgb(0, 154, 157, 0.9));
}

.landing-featured-pages li {
	background-attachment: fixed;
}

header.homepage .image-wrapper, .landing-featured-pages li .image-wrapper {
	height: 100%;
	overflow-y: clip;
	position: absolute;
}

header.homepage img, .landing-featured-pages li img {
	height: 100%;
	width: 100%;
	transform: scale(1.1);
	object-fit: cover;
}

header.homepage img, .landing-featured-pages li:nth-of-type(2n) img {
	border-top-right-radius: 25% 120%;
	border-bottom-right-radius: 25% 120%;
}

.landing-featured-pages li:nth-of-type(2n+1) img {
	border-top-left-radius: 25% 120%;
	border-bottom-left-radius: 25% 120%;
}

@media screen and (max-width: 991.98px) {
	header.homepage img {
		filter: brightness(0.5);
	}
}

header.homepage .text-wrapper, .landing-featured-pages li .text-wrapper {
	padding: 5rem 3rem;
}

header.homepage .strapline {
	font-size: 2rem;
	line-height: 1.2;
}

header.content-page .text-wrapper {
	margin: 7rem 0;
	padding: 2rem;
	background-color: rgba(0, 130, 133, 0.85);
	border-radius: 0.25rem;
}

.landing-featured-pages {
	list-style-type: none;
    margin: 0;
    padding: 0;
}

/* Homepage-specific */

.home-featured-pages {
	background-color: var(--grey-light-light);
	background-size: cover;
	background-attachment: fixed;
	text-align: center;
	font-size: .9rem;
}

.home-featured-page {
	color: var(--grey-dark-dark);
	border: 1px solid var(--grey-light);
    display: block;
	padding: 1.5rem;
    border-radius: 2rem;
	height: 100%;
	background-color: #fff;
	box-shadow: 0 0 20px rgba(128, 128, 128, 0.2);
}

@media screen and (min-width: 1200px) {
	.home-featured-page {
		padding: 2rem;
	}
}

.home-featured-page:hover {
	color: var(--grey-dark-dark);
	text-decoration: none;
}

.home-featured-page img {
	max-width: 100%;
}

.home-featured-page h2 {
	margin-bottom: .5rem;
	font-size: 1.5rem;
}

.home-featured-page .icon-wrapper {
	background-image: linear-gradient(var(--brand-blue), var(--brand-teal));
	box-shadow: 0 0 20px rgba(128, 128, 128, 0.6);
	width: 5rem;
    height: 5rem;
	border-radius: 50%;
    margin: 0 auto 1rem;
	display: flex;
	justify-content: center;
    align-items: center;
	transition: transform 0.3s;
}

.home-featured-page:hover .icon-wrapper {
	transform: scale(1.15);
}

.home-featured-page .icon-wrapper i {
	color: #fff;
    font-size: 2.5rem;
}

.home-featured-pages ul, .home-featured-news ul {
	list-style-type: none;
    padding: 0;
	margin-bottom: 0;
}

.home-featured-news {
	background-size: cover;
	background-position-y: center;
	position: relative;
}

.home-featured-news .tint-bg-wrapper {
    top: 0;
    left: 0;
    height: 100%;
	padding: 0;
	overflow-y: clip;
}

.home-featured-news .tint-bg {
	background-image: linear-gradient(rgba(0, 113, 157, 0.9), rgba(0, 154, 157, 0.9));
    border-top-left-radius: 25% 120%;
    border-bottom-left-radius: 25% 120%;
    height: 100%;
    transform: scaleY(1.1);
}

.home-featured-news .news-intro {
	color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

@media screen and (min-width: 992px) {
	.home-featured-news .tint-bg-wrapper, .home-featured-news .news-intro {
		position: absolute;
	}
}

.button.light, .home-featured-news .news-item {
	color: var(--grey-dark-dark);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	display: inline-block;
}

.button.light {
    background-image: linear-gradient(#fff, #ddd);
	text-decoration: none;
}

.button.light:hover {
	background-image: linear-gradient(#ddd, #fff);
}

.home-featured-news .news-item {
	background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(221, 221, 221, 0.9));
	width: 100%;
	height: 100%;
}

.home-featured-news .news-item:hover {
	background-image: linear-gradient(rgba(221, 221, 221, 0.9), rgba(255, 255, 255, 0.9));
	text-decoration: none;
}

.home-featured-news .news-item h3 {
	margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* Content pages */

section.content-page {
	background-color: #fbfbfb;
}

.content-page .body-text, .content-page .related h2 {
	background-color: #fff;
	padding: 2rem;
	border: 1px solid #eaeaea;
	border-radius: 0.25rem;
}

.content-page .related h2 {
	padding: .8rem;
	font-size: 1.2rem;
	color: var(--brand-teal);
	margin: 0;
}

.content-page .related ul {
	list-style-type: none;
	padding: 0;
}

.content-page .related img {
	max-width: 100%;
}

.content-page .related a, .content-page .widget-content {
	border: 1px solid #eaeaea;
	border-radius: 0.25rem;
	border-top: none;
	color: inherit;
	display: block;
	font-size: .8rem;
	padding: 0.8rem;
}

.content-page .related a:hover {
	background-color: var(--grey-light);
	text-decoration: none;
}

.content-page .widget-content {
	margin-bottom: 1rem;
}

.content-page .widget-content .button {
	color: #fff;
    text-align: center;
    padding: 0.5rem;
}

/* Resources */

.resources-list {
	list-style-type: none;
	padding: 0;
	margin-bottom: 0;
}

.resource-list-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 1rem;
	background-color: var(--brand-teal);
	color: #fff;
	border-radius: .25rem;
}

.resource-list-item:hover {
	color: #fff;
	text-decoration: none;
}

.resource-list-item .reference {
	font-size: .8rem;
	color: rgba(255,255,255,0.7);
}

.resource-list-item .date {
	color: #fff;
	margin-top: auto;
}

.resource-list-item .button {
	margin-top: 1rem;
	font-size: .8rem;
}

.resource-list-item .button:not(:last-child) {
	margin-bottom: 1.5rem;
}

.resource-list-item img {
	max-width: 100%;
	margin-bottom: 1rem;
}

.resource-list-item i {
	font-size: 5rem;
	margin-bottom: 1rem;
}

/* News */

#search.on-page {
	border-radius: 2rem;
	border: 2px solid var(--grey-dark);
	padding: 0.5rem 1rem;
	display: flex;
}

#search.on-page #search-input {
	width: 100%;
	margin-right: 1rem;
	border: 0;
	background-color: initial;
	color: var(--grey-dark-dark);
}

#search.on-page #search-input::placeholder {
	color: var(--grey-dark);
}

#search.on-page #search-input:focus::placeholder {
	color: var(--grey-light);
}

#search.on-page #search-input:focus {
	outline: none;
}

#search.on-page #search-submit {
	border: 0;
	background-color: initial;
	color: var(--brand-teal);
}

.news-list .search-panel {
	padding: 1rem;
	border-radius: .25rem;
	background-color: var(--grey-light-light);
	position: sticky;
	top: 1rem;
}

.news-list .search-panel h2 {
	font-size: 1.5rem;
}

.news-list ul {
	list-style-type: none;
	padding: 0;
}

.news-list li {
	padding: 1.5rem;
	border-radius: .25rem;
	margin-bottom: 1.5rem;
}

.news-list li:nth-child(2n+1) {
	background-color: var(--grey-light-light);
}

@media screen and (min-width: 992px) {
	.news-list li:nth-child(2n+1) .col-lg {
		order: 2;
	}
}

.news-list img {
	max-width: 100%;
	margin-bottom: 1rem;
}

.news-item .button {
	font-size: .8rem;
}

.news-item .body-text img {
	border: 1px solid var(--grey-light);
	padding: 0.25rem;
	width: 100%;
	margin-bottom: 1rem;
}

@media screen and (min-width: 992px) {
	.news-item .body-text img {
		float: right;
		max-width: 300px;
		margin-left: 1rem;
	}
}

.news-item .related a {
	padding: 0;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.news-item .related .content {
	padding: .8rem;
	background-color: var(--brand-teal);
	color: #fff;
	flex-grow: 1;
}

.news-item .related h3 {
	font-size: 1.1rem;
	margin-bottom: 0;
}

.news-item .related .date {
	color: #fff;
}

/* Search results */

.search-results {
	list-style-type: none;
	padding: 0;
}

	.search-results li {
		border-top: 1px solid var(--grey-light);
		margin-bottom: 1rem;
		padding-top: 1rem;
	}

	.search-results h2 {
		font-size: 1.2rem;
	}

/* Login */

.login-status-wrapper {
	background-color: var(--grey-light-light);
	padding: 1rem 0;
}

.login-status-wrapper .container {
	display: flex;
	justify-content: flex-end;
}

.login-status-wrapper .pill {
	background-color: var(--grey-light);
	padding: 0.5rem 1rem;
	border-radius: 2rem;
	text-shadow: none;
	font-size: .8rem;
	color: var(--grey-dark-dark);
}

.login-status-wrapper form {
	display: inline;
}

.login-status-wrapper i {
	margin-right: .25rem
}

.login-status-wrapper button {
	border: 0;
	background: none;
	text-decoration: underline;
	color: var(--brand-teal);
}

.login-wrapper .form-signin input, .login-wrapper .form-signin button {
	max-width: 400px;
	border-radius: 0.5rem;
}

.login-wrapper .form-signin input {
	margin: 1rem 0;
}

.login-wrapper .form-signin button {
	background-image: linear-gradient(var(--brand-blue), var(--brand-teal));
	padding: 0.5rem 1rem;
	box-shadow: 0 0 20px rgb(0 0 0 / 30%);
	display: inline-block;
	color: #fff;
	text-decoration: none !important;
	border: 0;
	font-size: 1rem;
}

.umb-block-list {
	display: contents;
}