/*
Theme Name: NZHL2018_v3
Theme URI: https://www.nzhowardleague.org.nz/
Author: NZ Howard League
Description: Custom WordPress theme for the New Zealand Howard League.
Version: 2.0
Text Domain: nzhl2018
*/




/* Global Styles ------------*/

* {
  box-sizing: border-box;
}
html {
  font-family: "Helvetica", "Arial", sans-serif;
}
p {
  line-height: 1.7em;
}
strong {
  font-weight: 700;
}
h4 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.1em;
}
h5 {
  color: #389e47;
  margin-bottom: 10px;
  margin-top: 5px;
}
.grid {
  display: grid;
}

.woocommerce-breadcrumb {
  display:none;
}

.flexslider .slides img {
  max-height: 500px !important; /*maximum height for all slides*/
  width: auto; /*proper aspect ratio of images*/
  max-width: 100%; /*maximum width for all slides*/
  margin: 0 auto; /*centering images in the container*/
}

.v-top {
  vertical-align: top !important;
}
.max-width {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5%;
}
.volunteer-content {
  max-width: 900px;
}
.wpcf7-form-control {
  width: 100%;
}
#wpcf7-f417-o1 .wpcf7-list-item {
  width: 25%;
  margin: 0;
}
.contact-header {
  font-weight: 600;
  font-size: 1.2em;
  margin-bottom: 15px;
}
@media screen and (max-width: 1450px) {
  .max-width {
    margin: 0 2.5%;
  }
  .volunteer-content {
    margin: 0 auto;
  }
}
@media screen and (max-width: 900px) {
  .volunteer-content {
    margin: 0 2.5%;
  }
  #wpcf7-f417-o1 .wpcf7-list-item {
    width: 50%;
    margin: 0;
  }
}
.vh-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.fade {
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}
/* Header and primary navigation ------------*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  min-height: 82px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #e1e5e2;
}

.admin-bar .site-header {
  top: 32px;
}

.header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}

.site-branding {
  flex: 0 1 260px;
  min-width: 130px;
}

.custom-logo-link,
.site-branding__name {
  display: inline-flex;
  align-items: center;
  color: #252a26;
  font-weight: 700;
  text-decoration: none;
}

.custom-logo {
  display: block;
  width: auto;
  max-width: min(100%, 250px);
  max-height: 62px;
  height: auto;
}

.primary-nav {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
}

.primary-nav__panel-header,
.nav-toggle {
  display: none;
}

.primary-nav__list,
.primary-nav__list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.15rem, 0.8vw, 0.8rem);
}

.primary-nav__list > .menu-item,
.primary-nav__list > .page_item,
.primary-nav .menu-item-has-children,
.primary-nav .page_item_has_children {
  position: relative;
}

.primary-nav a {
  display: block;
  padding: 0.7rem 0.55rem;
  color: #303631;
  font-size: 0.9rem;
  line-height: 1.25;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .current_page_item > a,
.primary-nav .current_page_ancestor > a {
  color: #389e47;
}

.primary-nav a:focus-visible,
.header-email:focus-visible,
.nav-toggle:focus-visible,
.panel-close:focus-visible {
  outline: 3px solid #389e47;
  outline-offset: 3px;
}

.primary-nav .sub-menu,
.primary-nav .children {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 61;
  visibility: hidden;
  min-width: 210px;
  max-width: min(300px, 90vw);
  padding: 0.5rem;
  opacity: 0;
  background: #fff;
  border: 1px solid #dfe4e0;
  border-radius: 4px;
  box-shadow: 0 12px 30px rgba(20, 35, 23, 0.14);
  transform: translateY(0.4rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.primary-nav .sub-menu .sub-menu,
.primary-nav .children .children {
  top: -0.5rem;
  left: 100%;
}

.primary-nav__list > li:last-child > .sub-menu,
.primary-nav__list > li:last-child > .children {
  right: 0;
  left: auto;
}

.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu,
.primary-nav .page_item:hover > .children,
.primary-nav .page_item:focus-within > .children {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.primary-nav .sub-menu a,
.primary-nav .children a {
  padding: 0.65rem 0.75rem;
  white-space: normal;
}

@media screen and (min-width: 881px) {
  .primary-nav__list > .menu-item-has-children > a,
  .primary-nav__list > .page_item_has_children > a {
    position: relative;
    padding-right: 1.6rem;
  }

  .primary-nav__list > .menu-item-has-children > a::after,
  .primary-nav__list > .page_item_has_children > a::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.45rem;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-65%) rotate(45deg);
    transition: transform 160ms ease;
  }

  .primary-nav__list > .menu-item-has-children:hover > a::after,
  .primary-nav__list > .menu-item-has-children:focus-within > a::after,
  .primary-nav__list > .page_item_has_children:hover > a::after,
  .primary-nav__list > .page_item_has_children:focus-within > a::after {
    transform: translateY(-35%) rotate(225deg);
  }
}

.header__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-email,
.panel-close,
.nav-toggle {
  appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.header-email {
  padding: 0.55rem 0.9rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  background: #389e47;
  border: 2px solid #389e47;
  border-radius: 999px;
}

.header-email:hover,
.header-email:focus {
  color: #276f32;
  background: #fff;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  width: 100%;
  height: 100%;
  padding: 0;
  opacity: 0;
  background: rgba(15, 25, 17, 0.58);
  border: 0;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.nav-backdrop.is-visible {
  opacity: 1;
}

.nav-backdrop[hidden] {
  display: none;
}

@media screen and (max-width: 880px) {
  .site-header,
  .header__inner {
    min-height: 72px;
  }

  .header__inner {
    gap: 0.75rem;
  }

  .site-branding {
    flex: 1 1 auto;
    min-width: 0;
  }

  .custom-logo {
    max-width: min(100%, 190px);
    max-height: 52px;
  }

  .primary-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1100;
    display: block;
    width: min(92vw, 380px);
    max-width: 100%;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: 12px 0 35px rgba(13, 27, 16, 0.2);
    visibility: hidden;
    transform: translateX(-105%);
    transition: transform 220ms ease, visibility 220ms;
  }

  .primary-nav.is-open {
    visibility: visible;
    transform: translateX(0);
  }

  .primary-nav__panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0.8rem 1.25rem;
    background: #fff;
    border-bottom: 1px solid #e1e5e2;
  }

  .primary-nav__panel-title {
    color: #252a26;
    font-size: 1.15rem;
    font-weight: 700;
  }

  .panel-close {
    display: inline-flex;
    padding: 0.55rem 0.8rem;
    color: #276f32;
    font-weight: 700;
    background: #edf7ef;
    border-radius: 999px;
  }

  .primary-nav__list {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.75rem 1.25rem 2rem;
  }

  .primary-nav__list > li {
    display: block;
    float: none;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e8ebe9;
  }

  .primary-nav__list > li > a {
    display: block;
    width: 100%;
    padding: 0.9rem 0.25rem;
    font-size: 1rem;
  }

  .primary-nav .sub-menu,
  .primary-nav .children,
  .primary-nav .sub-menu .sub-menu,
  .primary-nav .children .children {
    position: static;
    display: block;
    visibility: visible;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 0 0 0.65rem;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .primary-nav .sub-menu a,
  .primary-nav .children a {
    padding: 0.6rem 0.25rem 0.6rem 1.25rem;
    font-size: 0.92rem;
  }

  .primary-nav .sub-menu .sub-menu a,
  .primary-nav .children .children a {
    padding-left: 2.25rem;
  }

  .primary-nav .sub-menu .sub-menu .sub-menu a,
  .primary-nav .children .children .children a {
    padding-left: 3.25rem;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    padding: 0;
    color: #276f32;
    background: #edf7ef;
    border-radius: 50%;
  }

  .nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
  }

  body.has-open-navigation {
    overflow: hidden;
  }
}

@media screen and (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .primary-nav {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

@media screen and (min-width: 783px) and (max-width: 880px) {
  .admin-bar .primary-nav {
    top: 32px;
    height: calc(100vh - 32px);
  }
}

@media screen and (max-width: 480px) {
  .header-email {
    padding: 0.45rem 0.65rem;
    font-size: 0.75rem;
  }
}

/* Hero ------------*/

#hero {
  height: 35vw;
  background-color: white;
  background-image: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2018/03/hero_pattern.svg");
  background-size: cover;
  position: relative;
}
#hero::after {
  content: "";
  width: 100%;
  height: 35vw;
  display: block;
  position: absolute;
  top: 0px;
  background: -moz-radial-gradient(
    center,
    ellipse cover,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  ); /* FF3.6-15 */
  background: -webkit-radial-gradient(
    center,
    ellipse cover,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  ); /* Chrome10-25,Safari5.1-6 */
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  ); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}
#hero .vh-center {
  z-index: 10;
  text-align: center;
  width: 100%;
}
#hero h2 {
  /* background-color: #389e47; */
  display: inline;
  color: white;
  font-size: 2.7vw;
  /* padding: 1.4%; */
  line-height: 1.7em;
  font-weight: 800;
  /* text-decoration: underline; */
}
#hero .spacer {
  width: 20px;
  display: inline-block;
}
#hero a {
  display: inline-block;
  margin-top: 30px;
  background-color: #389e47;
  color: white;
  padding: 15px 20px;
  font-size: 0.9em;
  text-decoration: none;
}
@media screen and (max-width: 1000px) {
  #hero,
  #hero::after {
    height: 400px;
  }
  #hero h2 {
    font-size: 4.5vw;
  }
}

/* Programmes ------------*/
.programmes .left,
.programmes .right {
  display: inline-block;
  width: 50%;
  height: 300px;
  position: relative;
}
.programmes .info {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  padding: 10%;
  z-index: 100;
}
.programmes .info a {
  text-decoration: none;
  text-shadow: none;
  color: white;
  margin-top: 20px;
  display: inline-block;
  padding: 15px 20px;
  border: 1px solid black;
  position: relative;
  z-index: 101;
}
.programmes .info a::before {
  content: "";
  top: 0px;
  left: 0px;
  display: inline;
  width: 0%;
  z-index: -1;
  position: absolute;
  height: 100%;
  background-color: black;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
}
.programmes .info a:hover::before {
  width: 100%;
}
.programmes .box::after {
  content: "";
  background-color: #389e47;
  opacity: 0.7;
  display: inline-block;
  position: relative;
  width: 30%;
  left: 5%;
  height: 300px;
  -webkit-transition: all 300ms ease-in-out;
  -moz-transition: all 300ms ease-in-out;
  -ms-transition: all 300ms ease-in-out;
  -o-transition: all 300ms ease-in-out;
  transition: all 300ms ease-in-out;
  z-index: 99;
}
.programmes .box:hover::after,
.programmes .info:hover ~ .box::after {
  width: 100%;
  left: 0%;
}
.programmes article {
  overflow: hidden;
  text-shadow: 0 1px 1px #000000;
}
.programmes article img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
}
.programmes .left {
  background-color: grey;
}
.programmes .right {
  background-color: lightgray;
}
.programmes h3 {
  color: white;
  font-size: 2em;
  margin-bottom: 20px;
  font-weight: 700;
}
.programmes p {
  color: white;
  line-height: 1.5em;
}
@media screen and (max-width: 1230px) {
  .programmes h3 {
    font-size: 1.5em;
  }
}
@media screen and (max-width: 930px) {
  .programmes .left,
  .programmes .right {
    display: inline-block;
    width: 100%;
  }
  .programmes .left {
    margin-bottom: -3px;
  }
}

/* sponsors ------------*/
.sponsors {
  position: relative;
  height: 135px;
  padding: 25px;
  overflow-x: hidden;
  display: block;
  white-space: nowrap;
  overflow-y: scroll;
}
.sponsors div {
  width: 2350px;
}
.sponsors img {
  opacity: 0.4;
  -webkit-filter: grayscale(100%);
  filter: grayscale(100%);
  max-width: 250px;
  max-height: 80px;
  vertical-align: middle;
  margin-right: 15px;
  -webkit-transition: all 100ms ease-in-out;
  -moz-transition: all 100ms ease-in-out;
  -ms-transition: all 100ms ease-in-out;
  -o-transition: all 100ms ease-in-out;
  transition: all 100ms ease-in-out;
}
.sponsors img:hover {
  opacity: 1;
  -webkit-filter: grayscale(0%);
  filter: grayscale(0%);
}
.sponsors::-webkit-scrollbar {
  width: 0px;
  background: transparent;
}
.sponsors::-webkit-scrollbar-thumb {
  height: 0px;
  background: transparent;
}

/* content ------------*/
.content {
  -webkit-box-shadow: 0 3px 20px 1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 20px 1px rgba(0, 0, 0, 0.2);
  padding: 2.5%;
  overflow: hidden;
}
.woo-content {
  margin-top: 20px;
}
.product-type-donation .images,
.product-type-donation div.summary {
  display: none;
}
.content p {
  margin-bottom: 1.25em;
}
.content-title {
  opacity: 0.7;
  font-weight: 800;
  font-size: 1.3em;
  margin-bottom: 2rem;
  margin-top: 2rem;
}
.content-title::after {
  content: "";
  display: block;
  position: relative;
  top: 10px;
  margin-left: -5%;
  width: 10%;
  height: 4px;
  background-color: #389e47;
}
.content img {
  border-radius: 3px;
  -webkit-box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2);
  box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2);
}
.columns {
  -webkit-columns: 300px 2;
  -moz-columns: 400px 2;
  columns: 400px 2;
}
.columns img {
  width: 100%;
}
.img-caption {
  opacity: 0.6;
  font-size: 0.8em;
  margin-top: 5px;
}
#breadcrumbs {
  margin-top: 1rem;
  font-size: 0.7em;
  opacity: 0.7;
}
#breadcrumbs a {
  text-decoration: none;
  color: black;
}

/* content news ----------*/
.news div {
  width: 33.333%;
  display: inline-block;
  vertical-align: top;
}
.news div a img {
  width: 100%;
}
.news div a {
  text-decoration: none;
  color: black;
}
.news div:first-child {
  padding-right: 1em;
}
.news div:nth-child(2) {
  padding: 0 0.5em;
}
.news div:last-child {
  padding-left: 1em;
}

.content p.publication {
  margin-bottom: 0rem;
  text-align: center;
  font-size: 0.7em;
}
.news-title {
  margin-top: 10px;
}
@media screen and (max-width: 650px) {
  .news div {
    width: 100%;
    display: inline-block;
    padding: 0rem !important;
  }
}
/*  Info bg ------------------- */
.literacy-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2023/01/programmes_tn-scaled.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.driving-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2023/01/slow-down-kiwis-nz_orig.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.press-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2018/03/press-bg.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.about-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2023/03/about-us-fern.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.help-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2018/04/background-img.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.elect-bg {
  background: url("https://www.nzhowardleague.org.nz/wp-content/uploads/2020/08/1500530112612.jpg")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}



/* info page ------------------ */
#info-page header {
  height: 500px;
  text-align: center;
  margin-bottom: -200px;
  overflow: hidden;
}
#info-page .woo-content header {
  height: auto;
  margin-bottom: 50px;
}

#info-page .content {
  background-color: white;
}
#info-page header h1 {
  font-size: 2em;
  color: black;
  display: inline;
  border-bottom: 2px solid black;
  font-weight: 700;
}
#info-page header .box-h1 {
  background-color: white;
  padding: 20px;
  display: inline-block;
  margin: 0 auto;
  margin-top: 100px;
}
.col img {
  width: 120px;
  box-shadow: none;
  margin-bottom: 1rem;
}
.content .left,
.content .right {
  width: 50%;
  display: inline-block;
  margin-bottom: 25px;
  vertical-align: middle;
}
.support .left,
.support .right {
  vertical-align: top;
}
.driving-content .right,
.pdf-content .right {
  padding-left: 1rem;
}
.driving-content .right img,
.pdf-content .right img {
  width: 100%;
}
.pdf-content .right {
  width: 49%;
}
.literacy-content ul {
  margin-bottom: 30px;
}
.literacy-content ul li {
  padding: 10px 10px 10px 13px;
  background-color: #f5f5f5;
  margin: 5px 0;
  position: relative;
}
.literacy-content ul li::before {
  content: "";
  display: inline-block;
  position: absolute;
  background-color: orange;
  height: 35px;
  width: 3px;
  top: 0px;
  left: 0px;
}
.literacy-content ul li:hover::before {
  background-color: green;
}
.four-row .col,
.three-row .col {
  display: inline-block;
  padding: 0rem 2rem;
  text-align: center;
  vertical-align: top;
}
.four-row {
  margin-bottom: 2rem;
}
.four-row .col {
  width: 25%;
}

.three-row .col {
  width: 33.333%;
}
.stat {
  font-size: 4em;
  background-color: #389e47;
  color: white;
  padding: 5px 8px 3px 8px;
}
p.count-p {
  margin-bottom: 15px;
  text-align: center;
}
p.achieved {
  text-align: center;
}

.person {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1em;
  margin-top: 1em;
}
.about-img {
  width: 100px;
  height: 100px;
  border-radius: 999px;
  overflow: hidden;
  background-color: #f0f0f0;
}
.about-img img {
  max-width: 100px;
}

.about-text {
  display: flex;
  align-items: center;
}

.about-text h3 {
  font-weight: 700;
  font-size: 1.2em;
  opacity: 0.7;
}
.page-cta {
  text-align: center;
  width: 80%;
  margin: 0 auto;
  margin-top: 50px;
}
.page-cta p {
  margin-bottom: 25px;
  font-size: 1.2em;
  font-weight: 700;
}
.buttonn {
  margin: 0em !important;
  display: inline-block;
  background-color: #389e47;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  color: white;
  text-decoration: none;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}
.mem-button {
  padding: 10px 20px;
  font-size: 0.9em;
  font-weight: 400;
  background-color: white;
  color: #389e47;
  border: 2px solid #389e47;
  cursor: pointer;
}
.volunteer-btn {
  cursor: pointer;
}
#quantity_5b1cb431c25b1,
#quantity_5b1cb4bbf1add {
  display: none;
}
#donation_amount_field {
  font-size: 1em;
  padding: 15px;
  border: 1px solid #389e47;
  height: 53px;
  margin-left: -5px;
  position: relative;
  top: -1px;
}
p.buttonn {
  padding: 9px 30px;
}
.buttonn::after {
  content: "";
  display: block;
  background-color: green;
  width: 100%;
  position: relative;
  left: -30px;
  top: 15px;
  padding: 0 30px;
  height: 0px;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}
.mem-button::after {
  content: "";
  display: block;
  background-color: #389e47;
  width: 100%;
  position: relative;
  left: -22px;
  top: 10px;
  padding: 0 22px;
  height: 0px;
  -webkit-transition: all 200ms ease-in-out;
  -moz-transition: all 200ms ease-in-out;
  -ms-transition: all 200ms ease-in-out;
  -o-transition: all 200ms ease-in-out;
  transition: all 200ms ease-in-out;
}
p.buttonn::after {
  top: 9px;
}
.buttonn:hover {
  -moz-transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -o-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
}
.buttonn:hover {
  -moz-transform: translateY(-5px);
  -webkit-transform: translateY(-5px);
  -o-transform: translateY(-5px);
  -ms-transform: translateY(-5px);
  transform: translateY(-5px);
}
.buttonn:hover::after {
  height: 5px;
  margin-bottom: -5px;
}
@media screen and (max-width: 850px) {
  .content .left,
  .content .right {
    width: 100%;
  }
  .four-row .col,
  .three-row .col {
    width: 50%;
  }
}
@media screen and (max-width: 650px) {
  .about-text > h3 {
    /* text-align: center; */
  }
}
@media screen and (max-width: 500px) {
  .four-row .col,
  .three-row .col {
    width: 100%;
  }
}
.tablenav-pages_0 {
  margin-top: 15px !important;
}
.tablenav-pages_0 a {
  padding: 10px 15px !important;
}

/* footer ------------------ */
.site-footer {
  padding: 3.5rem 0 1.5rem;
  margin-top: 50px;
  color: #d8e4e8;
  background-color: #172c1b;
}
.site-footer a {
  color: #fff;
}
.site-footer .max-width {
  box-sizing: border-box;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #fff;
  font-weight: 700;
}
.footer-logo {
  display: block;
  width: auto;
  max-width: min(240px, 100%);
  height: auto;
}
.footer__heading {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.3;
}
.footer__identity p {
  max-width: 38rem;
  margin: 0;
}
.footer__links,
.footer__contact address {
  margin: 0;
}
.footer__links {
  padding: 0;
  list-style: none;
}
.footer__links li + li {
  margin-top: 0.5rem;
}
.footer__contact address {
  color: #d8e4e8;
  font-style: normal;
}
.footer__contact address p {
  margin: 0.75rem 0 0;
}
.footer__links a,
.footer__contact a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.footer__links a:hover,
.footer__contact a:hover {
  text-decoration-thickness: 2px;
}
.footer__links a:focus,
.footer__contact a:focus,
.footer-logo-link:focus,
.footer__links a:focus-visible,
.footer__contact a:focus-visible,
.footer-logo-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9rem;
}
.footer__bottom p {
  margin: 0;
}
@media screen and (max-width: 880px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media screen and (max-width: 620px) {
  .site-footer {
    padding-top: 2.5rem;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

[id^="wpcf7-f91-"] {
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2rem);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(15, 25, 17, 0.72);
  transition: opacity 180ms ease, visibility 180ms ease;
}

[id^="wpcf7-f91-"].show-menu {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
}

body.has-open-contact-modal {
  overflow: hidden;
}

#wpcf7-f1054-o1 {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.2s ease-out, opacity 0.2s ease-out,
    transform 0.2s ease-out, -webkit-transform 0.2s ease-out;
  background-color: rgba(0, 0, 0, 0.7);
}

#wpcf7-f417-o1 div.wpcf7-response-output,
#wpcf7-f1054-o1 div.wpcf7-response-output {
  margin: 0rem;
  text-align: center;
}

#wpcf7-f1054-o1 .wpcf7-form {
  width: 80%;
  max-width: 950px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 2.5%;
}

#wpcf7-f417-o1 input,
#wpcf7-f1054-o1 input {
  margin-bottom: 20px;
}

#wpcf7-f417-o1 input,
#wpcf7-f417-o1 textarea,
#wpcf7-f1054-o1 input,
#wpcf7-f1054-o1 textarea {
  width: 100%;
  padding: 5px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  font-size: 1em;
}

#wpcf7-f417-o1 .wpcf7-submit,
#wpcf7-f1054-o1 .wpcf7-submit {
  margin-bottom: 0px;
  border: 2px solid #389e47;
  padding: 5px;
  background-color: #389e47;
  color: white;
}

#wpcf7-f1054-o1 .contact-close {
  position: absolute;
  padding: 2px 5px;
  border-radius: 3px;
  border: 1px solid #389e47;
  right: 10px;
  top: 10px;
  display: inline-block;
  cursor: pointer;
}
.wpcf7-form input {
  padding: 5px;
}
.wpcf7-form .right p:nth-child(3) {
  float: none;
  width: 100%;
}
.wpcf7-form .left,
.wpcf7-form .right {
  width: 49%;
}

.wpcf7-form input,
.wpcf7-form textarea {
  transition: all 250ms;
  font-family: "Helvetica Neue";
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  transform: translateY(-2px);
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
}
.wpcf7-form input[type="radio"],
.wpcf7-form input[type="checkbox"] {
  width: auto !important;
}
.wpcf7-form select {
  padding: 8px;
  font-size: 0.8em;
}
:not([id^="wpcf7-f91-"]).show-menu {
  display: inline-block !important;
  left: 0;
  opacity: 1 !important;
  visibility: visible !important;
}
.show-menu-items {
  right: 2.5% !important;
}
.wpcf7-list-item.first {
  margin: 0em;
}
.wpcf7-form-control {
  margin-top: 0.8em;
  display: inline-block;
}
#radio-132 {
  display: inline-block;
}

[id^="wpcf7-f91-"] .wpcf7-form {
  position: relative;
  width: min(100%, 680px);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow-y: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.15rem 1.25rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  background: #fff;
  border: 1px solid rgba(31, 55, 36, 0.12);
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(10, 24, 14, 0.28);
}

[id^="wpcf7-f91-"] .wpcf7-form > * {
  grid-column: 1 / -1;
  min-width: 0;
}

[id^="wpcf7-f91-"] .wpcf7-form > p {
  margin: 0;
}

[id^="wpcf7-f91-"] .wpcf7-form > p:first-of-type {
  grid-column: 1;
}

[id^="wpcf7-f91-"] .wpcf7-form > p:nth-of-type(2) {
  grid-column: 2;
}

[id^="wpcf7-f91-"] .wpcf7-form h1,
[id^="wpcf7-f91-"] .wpcf7-form h2,
[id^="wpcf7-f91-"] .wpcf7-form h3 {
  margin: 0 0 0.35rem;
  padding-right: 3.5rem;
  color: #1f3724;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.2;
  text-shadow: none;
}

[id^="wpcf7-f91-"] label {
  display: block;
  color: #303631;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.4;
}

[id^="wpcf7-f91-"] .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.45rem;
}

[id^="wpcf7-f91-"] input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
[id^="wpcf7-f91-"] textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: #252a26;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  border: 1px solid #aeb8b0;
  border-radius: 7px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

[id^="wpcf7-f91-"] textarea {
  min-height: 175px;
  max-height: 50vh;
  resize: vertical;
}

[id^="wpcf7-f91-"] input:focus,
[id^="wpcf7-f91-"] textarea:focus {
  transform: none;
  border-color: #389e47;
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 158, 71, 0.22);
}

[id^="wpcf7-f91-"] .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.55rem;
}

[id^="wpcf7-f91-"] .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

[id^="wpcf7-f91-"] .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

[id^="wpcf7-f91-"] input[type="radio"] {
  width: auto;
  margin: 0;
  accent-color: #389e47;
}

[id^="wpcf7-f91-"] .wpcf7-submit {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0.75rem 1.25rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  background: #389e47;
  border: 2px solid #389e47;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
    box-shadow 160ms ease;
}

[id^="wpcf7-f91-"] .wpcf7-submit:hover,
[id^="wpcf7-f91-"] .wpcf7-submit.is-loading {
  background: #2e7f3a;
  border-color: #2e7f3a;
}

[id^="wpcf7-f91-"] .wpcf7-submit:focus-visible,
[id^="wpcf7-f91-"] .contact-close:focus-visible {
  outline: 3px solid #389e47;
  outline-offset: 3px;
}

[id^="wpcf7-f91-"] .contact-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.25rem;
  color: #287c35;
  font-size: 1.35rem;
  line-height: 1;
  background: #edf7ef;
  border: 1px solid #389e47;
  border-radius: 50%;
  cursor: pointer;
}

[id^="wpcf7-f91-"] .contact-close:hover {
  color: #fff;
  background: #389e47;
}

[id^="wpcf7-f91-"] .wpcf7-not-valid-tip {
  margin-top: 0.4rem;
  color: #a12622;
  font-size: 0.875rem;
  line-height: 1.4;
}

[id^="wpcf7-f91-"] .wpcf7-response-output {
  margin: 0.25rem 0 0;
  padding: 0.75rem 1rem;
  overflow-wrap: anywhere;
  color: #7d211d;
  font-size: 0.9rem;
  line-height: 1.45;
  background: #fff2f1;
  border: 1px solid #d99894;
  border-radius: 7px;
}

[id^="wpcf7-f91-"] form.sent .wpcf7-response-output {
  color: #205f2b;
  background: #edf7ef;
  border-color: #83bc8b;
}

@media screen and (max-width: 620px) {
  [id^="wpcf7-f91-"] {
    align-items: flex-start;
    padding: 0.65rem;
  }

  [id^="wpcf7-f91-"] .wpcf7-form {
    width: 100%;
    max-height: calc(100vh - 1.3rem);
    max-height: calc(100dvh - 1.3rem);
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding: 1.35rem;
  }

  [id^="wpcf7-f91-"] .wpcf7-form > p:first-of-type,
  [id^="wpcf7-f91-"] .wpcf7-form > p:nth-of-type(2) {
    grid-column: 1;
  }

  [id^="wpcf7-f91-"] .wpcf7-radio {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  [id^="wpcf7-f91-"] .contact-close {
    top: 0.75rem;
    right: 0.75rem;
  }
}
/* 
CHECKOUT */
.woocommerce .input-text {
  font-size: 1em;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid #aaa;
}
.woocommerce p label {
  font-size: 0.8em;
  color: green;
  margin-top: 20px;
}
.woocommerce form .form-row {
  padding: 0;
}
#order_review_heading {
  margin: 20px 0 10px 0;
}
.woocommerce-additional-fields {
  margin-top: 25px;
}
#stripe-card-element {
  width: 450px;
}
@media screen and (max-width: 500px) {
  #stripe-card-element {
    width: 100%;
  }
}
.payment_box {
  background-color: #f8f8f8 !important;
}
#payment {
  background-color: #fcfcfc !important;
}
#payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  border-color: #f8f8f8;
  border-right-color: transparent;
  border-left-color: transparent;
  border-top-color: transparent;
}
#add_payment_method #payment ul.payment_methods,
.woocommerce-cart #payment ul.payment_methods,
.woocommerce-checkout #payment ul.payment_methods {
  border-bottom: 0px;
}
#place_order,
.checkout-button {
  background-color: #389e47;
  border: none;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: 700;
  color: white;
}
.woocommerce-message {
  display: none;
}

.product-price > input[type="number"] {
  width: 3.631em;
  text-align: center;
  font-size: 1em;
  padding: 4px 7px;
  border-radius: 5px;
  border: 1px solid #aaa;
}
tbody td.product-thumbnail img {
  display: none;
}





 #prison-modal {
            width: 100%;
            height: 1500px;
        }

        /* MODAL STYLES */

        .modal-lightbox {
            background-color: black;
            width: 100%;
            height: 100vh;
            position: fixed;
            z-index: 10;
            top: 0;
            left: 0;
            transition: all 500ms;
            opacity: 0.5;
        }
        .modal-wrapper {
            transition: all 200ms;
            position: fixed;
            top: 50%;
            left: 45%;
            transform: translate(-50%, -50%);
            width: 100%;
            min-width: 400px;
            max-width: 900px;
            z-index: -1;
            visibility: hidden;
            opacity: 0;
        }
        .show {
            left: 50%;
            visibility: visible;
            opacity: 1;
            z-index: 11;
        }
        .modal {
            max-width: 500px;
            margin: 0 auto;
            background-color: #fafafa;
            position: relative;
            padding: 2em;
            border-top: 10px solid #389e47;
            box-shadow: 0 0 20px 0 rgba(0,0,0,0.5);
        }
        .modal h3 {
            margin-top: 0;
            text-align: center;
            font-size: 1.6em;
            font-weight: 800;
            margin-bottom:1em;
        }
        .number-of-prisoners {
            margin-bottom: 1em;
        }
        .number-of-prisoners > p {
            margin-bottom: 0.25em;
        }
        .repeater-grid-wrapper p {
            font-size:0.9em;
            margin-bottom: 0.5em;
            border-bottom: 2px solid #cbcbcb
        }
        .repeater-grid-wrapper {
            margin-bottom: 1em;
        }
        
        .close-region-modal {
            cursor: pointer;
            position: absolute;
            top: 5px;
            right: 7px;
            font-size:0.6em;
            padding: 7px;
        }

        /* Number of Prisoners */
        .number-of-prisoners-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-column-gap: 1em;
            text-align: center;
            margin-bottom: 2em;
        }
        .number-of-prisoners-grid h4 {
            margin: 0.25em 0 0 0;
        }
        .number-of-prisoners > p {
            text-align: center;
        }

        /* Programmes Operating */
        .programmes-operating > p {
            font-weight: 700;
        }
        .programmes-operating > p span:last-of-type,
        .repeater-grid-wrapper > p span:last-of-type {
            float: right;
        }
        .programmes-operating {
            margin-bottom: 2em;
        }

        /* Info Footer */
        .info-footer {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr;
        }
        .info-footer p {
            margin-bottom: 0;
        }
        .last-updated {
            text-align: center;
            font-size: 0.6em;
            margin-top: 0.7em;
        }
        .number-of-prisoners-grid div {
            border: 1px solid #ccc;
            border-radius:3px;
        }
        .number-of-prisoners-grid div p {
            margin-bottom: 0.5em;
        }
        .number-of-prisoners-grid div h4 {
            margin-top: 0.6em;
        }
        .next-region {
            text-align: right;
        }

        /* MAP SVG STYLES */
        .mapOpacity {
            opacity: 0.15;
        }
        .greyColor{
            fill:#4D4D4D;
        }
        .regionText{
            font-family:'Helvetica';
            fill: #fff;
            z-index: 11;
        }
        .pathLine{
            fill:none;
            stroke: #4D4D4D;
            stroke-width: 2;
            stroke-linejoin: round;
            stroke-miterlimit: 10;
        }
        .text-rect {
            transition: all 200ms;
            cursor: pointer;
        }
        .region {
            cursor: pointer;
        }
        /* MAP SVG HOVER EVENTS */
        .region-left .text-rect:hover {
            transform: translate(-5px, -2px);
        }
        .region-right .text-rect:hover {
            transform: translate(5px, -2px);
        }
        .text-rect:hover .pathLine {
            opacity: 1;
        }

    .st0{fill:#ededed;stroke:#ededed;stroke-width:16;stroke-miterlimit:10;}
  .st1{fill: #d6d6d6;}
  .st2{fill:#389e47;stroke:#389e47;stroke-width:2;stroke-miterlimit:10;enable-background:new    ;}
  .st3{fill: #d6d6d6;stroke:#389e47;stroke-width:2;stroke-miterlimit:10;}
  .st4{display:none;}
  .st5{display:inline;}
  .st6{fill:none;stroke:#4D4D4D;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:10;}
  .st7{fill:#4D4D4D;}
  .st8{fill:#FFFFFF;}
  .st9{font-family:'GothamBook';}
  .st10{font-size:13.6465px;}




  .resources, .documents {
    display: grid;
    grid-gap: 25px;
    grid-template-columns: 1fr 1fr 1fr;
}
@media screen and (max-width: 1100px) {
    .resources, .documents {
        grid-template-columns: 1fr 1fr;
    }
    .driving-content .right, .pdf-content .right {
      padding-left: 0em;
    }
}
@media screen and (max-width: 650px) {
    .resources, .documents {
        grid-template-columns: 1fr;
    }
}
.resource, .docuemnts {
    align-self: center;
    border-radius: 3px;
    border: 1px solid #cfcfcf;
    padding: 25px;
}
.resource p:last-of-type {
    margin-bottom: 0;
}
h5 a {
    color: #389e47;
}
.document a img {
    display: inline-block;
    height: 15px;
    margin-right: 15px;
    box-shadow: none;
}
.document a h5 {
    display: inline-block;
}
.word-icon {
    height: 15px;
}
.driving-content div.research .left,
.driving-content div.research .right {
  vertical-align: top;
}
.driving-content div.research div.document a > img {
  width: auto;
}
.driving-content .right > img {
  margin-bottom: 15px;
}
.driving-content {
  margin-bottom: 30px;
}







/* FAQ PAGE */

section.video {
  margin-bottom: 2em;
}

.faq-question {
  margin-top:1.5em;
  color:#389e47;
}

.faq-group ul {
  list-style-type: disc;
  padding-left: 2em;
  /* margin-bottom: 1em; */
}
.faq-group ul li {
  margin-bottom: 1em;
}

/* --------------------------------------------------------------
   NZHL-authored News & Updates
   -------------------------------------------------------------- */
.nzhl-posts-area {
  background: #f7faf7;
}

.nzhl-posts-hero,
.nzhl-post-single__header {
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(28, 102, 40, 0.98), rgba(56, 158, 71, 0.9)),
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 45%);
}

.nzhl-posts-hero__inner {
  max-width: 900px;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.nzhl-posts-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  opacity: 0.85;
}

.nzhl-posts-hero h1,
.nzhl-post-single__title {
  margin: 0;
  color: inherit;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

@media screen and (min-width: 901px) {
  .nzhl-post-single__title {
    font-size: clamp(2.25rem, 3.5vw, 3.4rem);
  }
}

.nzhl-posts-hero__inner > p:last-child {
  max-width: 720px;
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  opacity: 0.92;
}

.nzhl-posts-index {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.nzhl-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.nzhl-post-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(34, 80, 40, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(34, 80, 40, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nzhl-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(34, 80, 40, 0.13);
}

.nzhl-post-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #e6f1e8;
}

.nzhl-post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  transition: transform 300ms ease;
}

.nzhl-post-card:hover .nzhl-post-card__image img {
  transform: scale(1.025);
}

.nzhl-post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(56, 158, 71, 0.92), rgba(31, 111, 44, 0.9)),
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.25), transparent 35%);
}

.nzhl-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.nzhl-post-date {
  display: block;
  margin-bottom: 0.65rem;
  color: #247632;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.nzhl-post-card__title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
}

.nzhl-post-card__title a {
  color: #1e2f21;
  text-decoration: none;
}

.nzhl-post-card__title a:hover,
.nzhl-post-card__title a:focus {
  color: #247632;
}

.nzhl-post-card__excerpt {
  color: #536056;
  font-size: 0.96rem;
  line-height: 1.65;
}

.nzhl-post-card__excerpt p {
  margin: 0;
}

.nzhl-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1.25rem;
  color: #247632;
  font-weight: 700;
  text-decoration: none;
}

.nzhl-post-card__link span {
  transition: transform 160ms ease;
}

.nzhl-post-card__link:hover span,
.nzhl-post-card__link:focus span {
  transform: translateX(3px);
}

.nzhl-posts-index .navigation.pagination {
  margin-top: 3rem;
}

.nzhl-posts-index .nav-links {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.nzhl-posts-index .page-numbers {
  display: inline-flex;
  min-width: 2.6rem;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  color: #247632;
  background: #ffffff;
  border: 1px solid rgba(34, 80, 40, 0.14);
  border-radius: 5px;
  text-decoration: none;
}

.nzhl-posts-index .page-numbers.current,
.nzhl-posts-index a.page-numbers:hover,
.nzhl-posts-index a.page-numbers:focus {
  color: #ffffff;
  background: #389e47;
  border-color: #389e47;
}

.nzhl-posts-empty {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem;
  text-align: center;
  background: #ffffff;
  border-radius: 10px;
}

.nzhl-post-single__header-inner {
  max-width: 960px;
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}

.nzhl-post-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.86;
}

.nzhl-post-back:hover,
.nzhl-post-back:focus {
  color: #ffffff;
  opacity: 1;
}

.nzhl-post-single__header .nzhl-post-date {
  color: #ffffff;
  opacity: 0.8;
}

.nzhl-post-single__intro {
  max-width: 780px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  opacity: 0.92;
}

.nzhl-post-single__layout {
  max-width: 1000px;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.nzhl-post-single__featured {
  margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.nzhl-post-single__featured img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 18px 45px rgba(34, 80, 40, 0.14);
}

.nzhl-post-single__content {
  max-width: 760px;
  margin: 0 auto;
  color: #28352b;
  font-size: 1.06rem;
  line-height: 1.78;
}

.nzhl-post-single__content > *:first-child {
  margin-top: 0;
}

.nzhl-post-single__content h2,
.nzhl-post-single__content h3,
.nzhl-post-single__content h4 {
  color: #1f3724;
  line-height: 1.25;
}

.nzhl-post-single__content h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.nzhl-post-single__content h3 {
  margin-top: 2rem;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
}

.nzhl-post-single__content a {
  color: #247632;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.nzhl-post-single__content blockquote {
  margin: 2rem 0;
  padding: 0.2rem 0 0.2rem 1.5rem;
  color: #3f5042;
  border-left: 4px solid #389e47;
  font-size: 1.15rem;
}

.nzhl-post-navigation {
  display: grid;
  max-width: 1000px;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-top: 0;
  padding-bottom: clamp(4rem, 7vw, 7rem);
}

.nzhl-post-navigation > div:last-child {
  text-align: right;
}

.nzhl-post-navigation a {
  color: #247632;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none;
}

.nzhl-post-navigation a:hover,
.nzhl-post-navigation a:focus {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media screen and (max-width: 900px) {
  .nzhl-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 620px) {
  .nzhl-post-grid {
    grid-template-columns: 1fr;
  }

  .nzhl-post-card__body {
    padding: 1.2rem;
  }

  .nzhl-post-single__featured img {
    border-radius: 6px;
  }

  .nzhl-post-navigation {
    grid-template-columns: 1fr;
  }

  .nzhl-post-navigation > div:last-child {
    text-align: left;
  }
}


/* Gutenberg content within NZHL-authored articles. */
.nzhl-post-single__content::after {
  display: table;
  clear: both;
  content: "";
}

.nzhl-post-single__content > * {
  max-width: 100%;
}

.nzhl-post-single__content p,
.nzhl-post-single__content ul,
.nzhl-post-single__content ol,
.nzhl-post-single__content .wp-block-group,
.nzhl-post-single__content .wp-block-columns,
.nzhl-post-single__content .wp-block-media-text,
.nzhl-post-single__content .wp-block-gallery,
.nzhl-post-single__content .wp-block-video,
.nzhl-post-single__content .wp-block-embed,
.nzhl-post-single__content .wp-block-table,
.nzhl-post-single__content .wp-block-buttons,
.nzhl-post-single__content .wp-block-separator {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.nzhl-post-single__content h2,
.nzhl-post-single__content h3,
.nzhl-post-single__content h4 {
  scroll-margin-top: 7rem;
}

.nzhl-post-single__content h4 {
  margin-top: 1.75rem;
  font-size: 1.15rem;
}

.nzhl-post-single__content ul,
.nzhl-post-single__content ol {
  padding-left: 1.5em;
}

.nzhl-post-single__content li > ul,
.nzhl-post-single__content li > ol {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.nzhl-post-single__content a:hover,
.nzhl-post-single__content a:focus {
  color: #1f612a;
}

.nzhl-post-single__content .wp-block-image {
  max-width: 100%;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.nzhl-post-single__content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.nzhl-post-single__content .wp-block-image.is-resized,
.nzhl-post-single__content .wp-block-image.is-resized img {
  margin-right: auto;
  margin-left: auto;
}

.nzhl-post-single__content .alignleft {
  float: left;
  margin-right: 1.75rem;
  margin-left: 0;
}

.nzhl-post-single__content .alignright {
  float: right;
  margin-right: 0;
  margin-left: 1.75rem;
}

.nzhl-post-single__content .aligncenter {
  display: table;
  clear: both;
  margin-right: auto;
  margin-left: auto;
}

.nzhl-post-single__content figcaption,
.nzhl-post-single__content .wp-element-caption,
.nzhl-post-single__content .blocks-gallery-caption {
  margin-top: 0.55rem;
  color: #647067;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.nzhl-post-single__content .wp-block-gallery {
  gap: 1rem;
}

.nzhl-post-single__content .wp-block-gallery img,
.nzhl-post-single__content .wp-block-media-text img,
.nzhl-post-single__content .wp-block-video video {
  max-width: 100%;
  height: auto;
}

.nzhl-post-single__content .wp-block-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

.nzhl-post-single__content .wp-block-embed__wrapper {
  max-width: 100%;
  overflow: hidden;
}

.nzhl-post-single__content .wp-block-embed.is-type-video .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
}

.nzhl-post-single__content .wp-block-embed.is-type-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.nzhl-post-single__content .wp-block-media-text {
  gap: clamp(1.25rem, 4vw, 2.5rem);
}

.nzhl-post-single__content .wp-block-media-text__content {
  padding: 0;
}

.nzhl-post-single__content .wp-block-quote,
.nzhl-post-single__content .wp-block-pullquote {
  margin: 2rem 0;
}

.nzhl-post-single__content .wp-block-pullquote:not(.has-border-color):not([class*="-border-color"]) {
  border-top-color: #999999;
  border-bottom-color: #999999;
}

.nzhl-post-single__content .wp-block-pullquote {
  border-top-width: 4px;
  border-bottom-width: 4px;
  border-top-style: solid;
  border-bottom-style: solid;
  text-align: center;
}

.nzhl-post-single__content .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  border-left: 0;
  font-size: inherit;
}

.nzhl-post-single__content .wp-block-pullquote blockquote > *:first-child {
  margin-top: 0;
}

.nzhl-post-single__content .wp-block-pullquote blockquote > *:last-child {
  margin-bottom: 0;
}

.nzhl-post-single__content blockquote p:last-of-type {
  margin-bottom: 0;
}

.nzhl-post-single__content blockquote cite {
  display: block;
  margin-top: 0.75rem;
  color: #58635a;
  font-size: 0.85rem;
  font-style: normal;
}

.nzhl-post-single__content .wp-block-separator {
  clear: both;
  width: 100%;
  border: 0;
  border-top: 2px solid #d9e4da;
}

.nzhl-post-single__content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nzhl-post-single__content table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
}

.nzhl-post-single__content th,
.nzhl-post-single__content td {
  padding: 0.75rem;
  border: 1px solid #ccd8ce;
  text-align: left;
}

.nzhl-post-single__content th {
  color: #1f3724;
  background: #edf5ee;
}

.nzhl-post-single__content .wp-block-button__link {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  background: #247632;
  border-radius: 4px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.nzhl-post-single__content .wp-block-button__link:hover {
  color: #ffffff;
  background: #1f612a;
}

.nzhl-post-single__content .wp-block-button__link:focus {
  color: #ffffff;
  outline: 3px solid #1e2f21;
  outline-offset: 3px;
}

.nzhl-post-single__content .wp-block-columns {
  gap: clamp(1rem, 3vw, 2rem);
}

.nzhl-post-single__content .nzhl-donation-cta {
  clear: both;
  margin: clamp(2rem, 5vw, 3.5rem) 0;
  padding: clamp(1.5rem, 5vw, 2.75rem);
  color: #28352b;
  background: #f3f3f3;
  border-radius: 8px;
}

.nzhl-donation-cta .wp-block-buttons,
.nzhl-donation-cta .wp-block-button {
  margin-bottom: 0;
}

.nzhl-post-single__content .nzhl-donation-cta h2,
.nzhl-post-single__content .nzhl-donation-cta p {
  color: #28352b;
}

.nzhl-post-single__content .nzhl-donation-cta h2 {
  margin-top: 0;
}

.nzhl-post-single__content .nzhl-donation-cta .wp-block-html {
  margin-bottom: 0;
  padding-bottom: 0;
}

.nzhl-post-single__content .nzhl-donation-cta .buttonn {
  margin-bottom: 0;
  padding-bottom: 0;
}

.nzhl-author-bio {
  display: flex;
  max-width: 760px;
  align-items: flex-start;
  gap: 0.875rem;
  margin: 0 auto;
  padding: 1.125rem;
  color: #344137;
  background: #f3f3f3;
  border-left: 4px solid #389e47;
  border-radius: 6px;
}

.nzhl-author-bio__media {
  flex: 0 0 3.5rem;
}

.nzhl-author-bio__photo {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  border-radius: 50%;
}

.nzhl-author-bio__content {
  min-width: 0;
}

.nzhl-author-bio__label,
.nzhl-author-bio__role,
.nzhl-author-bio__description p {
  margin-top: 0;
}

.nzhl-author-bio__label {
  margin-bottom: 0.35rem;
  color: #247632;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nzhl-author-bio__name {
  margin: 0;
  color: #1f3724;
  font-size: 1.35rem;
  line-height: 1.25;
}

.nzhl-author-bio__role {
  margin-bottom: 0.65rem;
  color: #536056;
  font-size: 0.92rem;
  font-weight: 700;
}

.nzhl-author-bio__description,
.nzhl-author-bio__description p:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 620px) {
  .nzhl-post-single__content .alignleft,
  .nzhl-post-single__content .alignright {
    float: none;
    margin-right: 0;
    margin-left: 0;
  }

  .nzhl-post-single__content .wp-block-media-text {
    grid-template-columns: 100% !important;
  }

  .nzhl-post-single__content .wp-block-media-text .wp-block-media-text__media,
  .nzhl-post-single__content .wp-block-media-text .wp-block-media-text__content {
    grid-column: 1;
  }

  .nzhl-post-single__content .wp-block-media-text .wp-block-media-text__media {
    grid-row: 1;
  }

  .nzhl-post-single__content .wp-block-media-text .wp-block-media-text__content {
    grid-row: 2;
  }

  .nzhl-author-bio {
    gap: 0.75rem;
    padding: 0.875rem;
  }

  .nzhl-author-bio__media {
    flex-basis: 2.75rem;
  }

  .nzhl-author-bio__photo {
    width: 2.75rem;
    height: 2.75rem;
  }
}
