/*
 Theme Name:     NZC - Newsletter
 Theme URI:      https://www.maker.co.nz
 Description:    New Zealand Couriers - Newsletter theme. (This is a child theme of WP Bootstrap Starter.)
 Author:         Maker
 Author URI:     https://www.maker.co.nz
 Template:       wp-bootstrap-starter
 Version:        1.0
*/


/****************************************
*** Theme customization starts below ***
*****************************************/


/* Maker Development */

@import url("https://use.typekit.net/arg8osf.css");


body {
    font-family: 'Raleway', sans-serif !important;
    font-weight: 400 !important;
    text-size-adjust: none !important;
    -webkit-text-size-adjust: none !important;
    position: relative !important;
    -webkit-font-feature-settings: "lnum" !important;
    -moz-font-feature-settings: "lnum" !important;
    font-feature-settings: "lnum" !important;
    letter-spacing: .02rem;
	overflow-x: hidden;
	font-size:16px !important;
}

h1, h2, h3, h4, h5, h6 {
    color: #222222;
}

h1{
    color: white;
	font-size:2.625rem;
	line-height: 3.25rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

h2 {
    font-size:2.25rem;
	line-height: 2.75rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

.wp-block-cover__inner-container h2{
	color:white !important;
}

.wp-block-cover__inner-container h2 a, .wp-block-cover__inner-container h2 a:hover {
	color:white !important;
	text-decoration:none;
}

h3 {
    font-size:2rem;
	line-height: 2.5rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

h3.has-vivid-red-color {
	margin: 0 0 10px 0;
}

h4 {
    font-size:1.75rem;
	line-height: 2rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

h5 {
    font-size:1.5rem;
	line-height: 1.75rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

h6 {
    font-size:1.25rem;
	line-height: 1.75rem;
	font-weight:700;
	padding:0;
	margin:0 0 1rem 0;
}

p {
    font-size: 1rem;
    font-weight: 400 !important;
    color: #222222;
	line-height: 1.5rem;
    margin-bottom: 1rem !important;
}

ul, ol {
	font-size: 1rem;
    font-weight: 400 !important;
    color: #222222;
    line-height: 1.5rem;
    margin-bottom: 2rem;
	padding-left:2rem;
}

ul ul, ul ol, ol ol, ol ul {
	margin-top:10px !important;
}

ul li {
	margin-bottom:10px;
}


strong {
	font-weight:700;
}

/**, ::after, ::before {
    box-sizing: content-box;
}*/

.green {
	color:#43b141 !important;
}

.red {
	color:#d73647 !important;
}

.black {
	color:#222222 !important;
}

figure.center {
	margin: 0 auto;
}

.blueblock {
	background: #D1F0F8;
	padding:25px 25px 5px 25px;
	border-radius:4px;
}

.showmobile {
	display:none;
}

.nomargin {
		margin-bottom: 0 !important;
	}

.sticky-newsletter-nav {  position: fixed; width: 100%; top: 0; }
.sticky-newsletter-nav + #content {  padding-top: 60; }

.center {
	text-align: center;
}

@media (max-width: 575px) {
	h1{
		font-size:2.25rem;
		line-height:2.75rem;
	}

	h2 {
		font-size:2rem;
		line-height:2.5rem;
	}

	h3 {
		font-size:1.75rem;
		line-height:2rem;
	}

	h4 {
		font-size:1.5rem;
		line-height:1.75rem;
	}

	h5 {
		font-size:1.25rem;
		line-height:1.75rem;
	}

	h6 {
		font-size:1.125rem;
		line-height:1.75rem;
	}
}

/* --- Scrolling progress --- */

.read-progress{
	position: absolute;
	bottom: -5px;
	height: 5px;
	background-color: var(--yellow);
	z-index: 20000;
}
@media (max-width: 767.9px) {
	.read-progress{
		position: fixed;
		bottom: unset;
		top: 0;
	}
}

/* --- HEADER STYLES --- */

header#masthead {
	background:#D73647;
	box-shadow:none;

	top: 0;
	z-index: 9999;
	padding: 0;
	box-shadow: none;
}
@media (min-width: 768px) {
	header#masthead {
		position: sticky;
	}
}


#masthead .container {
	min-width: 100%;
}

#masthead .navbar .navbar-brand > a {
	display:inline-block;
}

#masthead .navbar .navbar-brand {
	padding-left:calc(1.45rem - 15px);
	margin: calc(1.45rem - 10px) 0 1.45rem 0;
}

#masthead .navbar .navbar-brand a:nth-of-type(2) {
	position:relative;
	top:2px;
}

#masthead .navbar .navbar-brand .logosubline {
    color: #ffffff;
    padding: 0 0 0 1.45rem;
    border-left: rgba(255,255,255,0.5) 1px solid;
    font-size: 1.25rem;
    margin-left: 1.45rem;
    font-weight: 500;
}

#masthead .navbar .navbar-brand > a > img {
	width: 159px;
    height: auto;
}

#masthead .navbar .navbar-brand > img.sixty-years {
	width: 42px;
    margin-left: 20px;
    margin-top: 10px;
}

@media (max-width: 400px) {
    #masthead .navbar .navbar-brand > img.sixty-years {
        display: none;
    }
}

#masthead .navbar .navbar-nav ul, #masthead .navbar .navbar-nav li {
    margin-bottom:0;
}

#masthead .navbar .navbar-nav li a {
    font-size: 1rem !important;
    text-decoration: none;
    color: #fff !important;
    font-weight: 400 !important;
	margin:0 1.45rem;
	padding:0 !important;
}

#masthead .navbar .navbar-nav li a:hover {
    text-decoration:underline;
}

#masthead .navbar .btn {
	background:none !important;
	border:white 2px solid !important;
	margin-right:calc(1.45rem - 15px);
	font-weight:600 !important;
	font-size: 1rem;
	padding: calc(0.667em + 2px) calc(1.333em + 2px);
}

#masthead .navbar .btn:hover {
	background:white !important;
	border:white 2px solid !important;
	color:#D73647 !important;
}

@media (max-width: 900px) {
	#masthead .navbar {
		flex-direction:column;
	}
	#masthead .navbar .navbar-brand {
		padding:0;
	}
	#masthead .navbar .btn {
		margin: 0 0 1.45rem 0 !important;
	}
	#masthead .navbar .navbar-nav {
		display:none;
	}
}

@media (max-width: 768px) {
	#masthead .navbar .btn{
		background:none !important;
		padding:0 !important;
		border:none !important;
		font-weight:400 !important;
		text-decoration:underline !important;
	}
	#masthead .navbar .btn:hover {
		background:none !important;
		padding:0 !important;
		border:none !important;
		font-weight:400 !important;
		text-decoration:none !important;
		color:white !important;
	}
}

/* --- HEADER STYLES --- */

.header-banner {
	border-radius: 0 0 50% 50% / 50px;
    margin-left: -5%;
    width: 110%;
	overflow-x:hidden;
}

.header-banner .wp-block-cover-image.has-background-dim:not([class*=-background-color]), .header-banner .wp-block-cover.has-background-dim:not([class*=-background-color]) {
    background-color:#D73647;
}

.header-banner .wp-block-cover, .header-banner .wp-block-cover-image {
	padding: 6vmin 20px 12vmin 20px;
	min-height:auto;
}

.header-banner .wp-block-group__inner-container {
	width:100%;
}

.header-banner .wp-block-button__link {
	border: white 2px solid !important;
}

.header-banner h4 {
    color: white;
	font-size:1.25rem;
	font-weight:400;
	margin: 0 0 1rem 0;
}

.header-banner .wp-block-button__link {
    color: #D73647 !important;
	background:white !important;
	border: white 2px solid !important;
	font-size: 1rem;
}

.header-banner .wp-block-button__link:hover {
    color: white !important;
	background:none !important;
	border: white 2px solid !important;
}

@media (max-width: 900px) {
	.header-banner{
		border-radius: 0 0 50% 50% / 15px;
	}
}

/* --- CONTENT STYLES --- */

#content.site-content{
	padding-top:0;
	padding-bottom: 0;
}



.main-content {
	margin:5rem auto;
}

#content .background-wrap:first-of-type {
    margin-bottom: 0;
    z-index: 999999;
    /* position: relative; */
    padding: 18px 0;
    background: #333333 !important;
}

#content .background-wrap:first-of-type ul {
    list-style: none;
    padding: 0;
    margin: 0 !important;
    display: block;
    width: 100%;
    text-align: center;
}

#content .background-wrap:first-of-type ul li {
    display: inline-block;
    color: #cccccc;
    margin-right: 15px;
	margin-bottom:0 !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
}

#content .background-wrap:first-of-type ul li a {
    color: #ffffff;
    text-decoration: none;
}

#content .background-wrap:first-of-type ul li a:hover {
    color: #ffffff !important;
	text-decoration: none;
    opacity: .5;
    filter: alpha(opacity50);
}

#content .background-wrap:first-of-type .page {
	padding:0 !important;
}

#content .background-wrap:first-of-type .page .entry-content {
	margin:0 !important;
}

.header-clickable {
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}

.header-clickable:hover {
    text-decoration: underline;
}

/* --- CONTENT STYLES --- */

@media (max-width: 901px) {
	.blog-main.pr-5 {
		padding-right:15px !important;
	}
}

.wp-block-image {
    margin-bottom: 2em;
}

#content .has-featured-image {
	background:#eeeeee;
	height: 50vh;
	background-repeat: no-repeat;
    background-size: cover;
    position: relative;
	background-position: center center;
}

#content .has-featured-image:before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: ' ';
    background-color: rgba(0,0,0,.20);
    height: 50vh;
}

#content .has-featured-image .container {
	text-align: center;
    position: relative;
    top: 50%;
    -ms-transform: translateX(-50%) translateY(-50%);
    -webkit-transform: perspective(1px) translateX(-50%) translateY(-50%);
    -moz-transform: perspective(1px) translateX(-50%) translateY(-50%);
    transform: perspective(1px) translateX(-50%) translateY(-50%);
    left: 50%;
    margin: 0;
    color: white;
}

/* --- PAGE IMAGE STYLES --- */

.blog-main .wp-block-image .alignright {
	margin: 0em 0 2em 2em;
	max-width:50%;
}

.blog-main .wp-block-cover-image .wp-block-cover__inner-container, .blog-main .wp-block-cover .wp-block-cover__inner-container {
	width: 90%;
}

.blog-main .wp-block-cover, .wp-block-cover-image {
	min-height:500px;
}

.blog-main .wp-block-cover, .wp-block-cover-image {
	min-height:500px;
}

.blog-main .wp-block-cover-image .wp-block-cover__inner-container, .blog-main .wp-block-cover .wp-block-cover__inner-container {
	width: 90%;
}

.grey {
	background:#eeeeee;
	border-radius:4px;
}

.grey h5 {
	margin:0 0 5px 0;
	padding: 20px 0 0 20px;
}

.grey table td{
	padding:10px 0 10px 20px;
    font-size: 1rem;
    font-weight: 400 !important;
    color: #222222;
	line-height: 1.5rem;
	vertical-align:top;
}

.grey table tr td:last-child{
	padding:10px 20px;
}

.grey table img {
	min-width:20px;
	max-width:35px;
}


@media (max-width: 768px) {
	.blog-main .wp-block-cover, .wp-block-cover-image {
		min-height:350px;
	}
}

@media (max-width: 575px) {
	.blog-main .wp-block-image .alignright {
		margin: 0 auto;
		max-width:100%;
		float:none;
	}
}

/* --- SIDEBAR STYLES --- */

.sidebar-sticky{
	position: -webkit-sticky;
	position: sticky;
	top: 135px;
	z-index: 500;
	transition: 0.3s;
}
@media (max-width: 767.9px) {
  .sidebar-sticky{
    position: relative;
    top: unset;
  }
}

.offset-anchor{
	display: block;
	position: relative;
	top: -200px;
	visibility: hidden;
}
@media (max-width: 767.9px) {
	.offset-anchor{
		top: -90px;
	}
}

.main-content a {
  color: var(--red);
  text-decoration: underline;
}

.main-content .blog-sidebar .pill-list li {
	margin-bottom: 10px;
}

.main-content .blog-sidebar .pill-list a {
	color:var(--red);
	text-decoration: none;
	padding:12px 20px;
	background:#FBEAEC;
	display:inline-block;
	border-radius:30px;
	font-weight:500;
	border:#FBEAEC 2px solid;
	transition: all .2s ease;
}

.main-content .blog-sidebar .pill-list a:hover {
	color:#D73647;
	background:white;
	border:#D73647 2px solid;
	text-decoration:none;
}

.main-content .blog-sidebar .pill-list a.current {
	color:white;
	background:#D73647;
	border:#D73647 2px solid;
	transition: all .2s ease;
}

.main-content .blog-sidebar .pill-list a.current:hover {
	color:#D73647;
	background:none;
	border:#D73647 2px solid;
}

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

.social_list li {
	display:inline-block;
}

.social_list li:not(:first-of-type) {
    margin-left: 20px;
}

.social_list li a {
    opacity: .5;
    transition: all .2s ease;
}

.social_list li a:hover {
    opacity: 1;
}

@media (max-width: 767.9px) {
	.social {
		margin-top: 5rem;
	}
}

@media (max-width: 576px) {
	.table-of-content {
		margin-bottom: 5rem;
	}
}

/* Table of content mobile*/


@media (max-width: 767.9px) {

  .table-fo-content-title{
    position: relative;
		cursor: pointer;
		padding: 10px 15px;
		-webkit-box-shadow: 0 6px 18px 18px rgb(0 0 0 / 15%);
		box-shadow: 0 6px 18px 0 rgb(0 0 0 / 15%);
		border-radius: 4px;
  }


  .table-fo-content-title::after{
		content: '';
		display: block;
		border: 2px solid var(--red);
		border-width: 0px 2px 2px 0px;
		width: 12px;
		height: 12px;
		-webkit-box-sizing: border-box;
		box-sizing: border-box;
		position: absolute;
		right: 20px;
		top: 17px;
		transform: rotate(45deg);
		transition: all 0.2s ease-in-out;
		transform-origin: 50% 50%;
		}


  .table-fo-content-title.open::after{
    top:23px;
    transform: rotate(-135deg);
  }

  .table-of-content .pill-list{
    height: 0;
    visibility: hidden;
    transition: height 0.2s ease-in-out;
  }

  .table-of-content .pill-list.open{
    visibility: visible;
    height: 100%;
  }
  .main-content .blog-sidebar .pill-list a{
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
  }
  .main-content .blog-sidebar .pill-list.open a{
    padding: 12px 20px;
    opacity: 1;
  }
}

/*  End Table of content mobile*/



/* --- COMPETITION STYLES --- */

.competition-wrap {
	position:relative;
	padding:0;
}

.competition-wrap::before {
    content: '';
    border-radius: 50% 50% 0 0 / 50px;
    margin-left: -5%;
    width: 110%;
    height: 100%;
    background: rgb(255,255,255);
	background: linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(209,240,248,1) 90%, rgba(209,240,248,1) 100%);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

@media (max-width: 900px) {
	.competition-wrap::before {
		border-radius: 50% 50% 0 0 / 15px;
	}
}

.competition {
	padding-top: 6rem;
}

@media (max-width: 599px) {
	.competition .wp-block-image img {
		display:block;
		margin:0 auto;
		max-width:50%;
		height:auto;
	}
}

/* --- FOOTER STYLES --- */

.pattern-footer{
  position: relative;
  z-index: 2;
  color:#222222;
}

.pattern-footer a{
    color: #222222;
  }

.pattern-footer a:hover{
      color:#222222;
      text-decoration: underline;
    }

.pattern-footer .main-footer{
    position: relative;
    width: 100%;
    padding-bottom: 50px;
    padding-top: 65px;
    width: 100%;
    overflow-x: hidden;
}

.pattern-footer .main-footer::before{
	content: '';
	border-radius: 50% 50% 0 0 / 50px;
	margin-left: -5%;
	width: 110%;
	height: 100%;
	background-color: #eeeeee;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

@media (max-width: 768px) {
	.pattern-footer .main-footer::before {
		border-radius: 50% 50% 0 0 / 15px;
	}
}

.pattern-footer .floating-footer-image {
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    width: 600px;
}

.pattern-footer .wp-block-image {
    margin: 0 0 1em;
}

@media (max-width: 1200px){
	.pattern-footer .floating-footer-image {
		width: 600px;
		top: -176px;
	}
}

@media (max-width: 768px){
	.pattern-footer .floating-footer-image {
		width: 400px;
		top: -120px;
	}
}

@media (max-width: 576px){
	.pattern-footer .floating-footer-image {
		width: 350px;
		top: -103px;
	}
}

@media (max-width: 400px){
	.pattern-footer .floating-footer-image {
		width: 300px;
		top: -87px;
	}
}

.pattern-footer .wp-block-group.common-section .wp-block-columns {
    margin-top: 50px;
}

.pattern-footer #footer-nav {
	margin-bottom:50px;
}

@media (max-width: 1199px) {
	.pattern-footer #footer-nav {
		display:none;
	}
}

.pattern-footer #footer-nav h5 {
	font-size:1.25rem;
	margin: 0 0 10px 0;
	font-weight:700;
}

.pattern-footer #footer-nav ul {
	list-style:none;
	padding:0;
	margin:0;
}

.pattern-footer #footer-nav ul li {
	padding:0 0 5px 0;
	margin:0;
}

.pattern-footer #footer-nav ul li a {
	font-size:1rem;
	color:#222222;
}

.pattern-footer .dark #footer-nav ul li a {
	color:#222222;
}

.pattern-footer #footer-nav ul li a::before {
	border: solid var(--red);
	border-width: 0 2px 2px 0;
	padding: 2.5px;
	transform: rotate(-45deg);
	-webkit-transform: rotate(-45deg);
	margin-right: 14px;
	content: "";
	width: 9px;
	height: 9px;
	display: inline-block;
	vertical-align: 0.1em;
}

.pattern-footer #footer-nav .youtube {
	height: 25px;
	background: url(https://nzcwp-main.clientsmaker.com/wp-content/uploads/2021/11/youtube-1.svg) no-repeat 1px 3px;
	background-size: 24px 17px;
	padding-left: 36px;
	line-height: 25px;
	display: block;
}

.pattern-footer #footer-nav .linkedin {
	height: 25px;
	background: url(https://nzcwp-main.clientsmaker.com/wp-content/uploads/2021/11/linkedin-1.svg) no-repeat 3px 0;
	background-size: 20px 19px;
	padding-left: 36px;
	line-height: 25px;
	display: block;
}

.pattern-footer #footer-nav .youtube::before, .pattern-footer #footer-nav .linkedin::before {
	display:none;
}

.pattern-footer #footer-logos {
	display:flex;
	justify-content: center;
	align-items:center;
	gap: 40px;
}

@media (max-width: 991px) {
	.pattern-footer #footer-logos {
        width: 100%;
        gap: 30px;
		flex-wrap: wrap;
	}
}

.pattern-footer #footer-logos a.site-title-footer img {
	width: 209px;
	height: auto;
}

.pattern-footer #footer-logos a.sixty-years-footer img {
	width: 60px;
	height: auto;
}

@media (max-width: 1199px) {
	
	.pattern-footer #footer-logos a.site-title-footer img {
		width: 177px;
		height: auto;
	}
	
	.pattern-footer #footer-logos a.sixty-years-footer img {
		width: 51px;
		height: auto;
	}
}

.pattern-footer .site-info {
	margin-bottom:35px;
	padding-top:50px;
	border-top:#ffffff 2px solid;
}

@media (max-width: 1200px) {
	.pattern-footer .site-info {
		border-top: none;
		margin-bottom: 35px;
	}
}
@media (max-width: 768px) {
	.pattern-footer .site-info {
		padding-top:20px;
	}
}

.pattern-footer .dark .site-info {
	border-top:#888888 2px solid;
}

.pattern-footer .site-info ul {
	list-style:none;
	margin:0;
	padding:0;
}

.pattern-footer .dark .site-info ul {
	color:#ffffff;
}

.pattern-footer .site-info, .pattern-footer .site-info a {
	font-size: 1rem;
	color: #222222;
	line-height: 1.5rem;
}

.pattern-footer .dark .site-info, .pattern-footer .dark .site-info a {
	color: #ffffff;
}

.pattern-footer .site-info ul li {
	display:inline-block;
	padding:0 10px;
	margin-bottom:0;
}

@media (max-width: 991px) {
	.pattern-footer .site-info ul li {
		padding: 5px 10px 0 10px;
	}
}