/* styles speicifically for the new home page - november 2025 */

html {
  /*overflow-x: hidden;*/
}

#dnn_LeftPane {
  display: none!important;
}

#dnn_ContentPane {
  width: 100% !important;
  margin-right: 0px;
}

#main {
margin-bottom: 60px;
}

.DnnModule.DnnModule-DNN_HTML {
  margin-bottom: 40px;
}

/* Carousel and button panel */

.home-hero-panel {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  height: 300px;
}

.home-hero-panel-left {
  background: purple;
  height: 280px;
}

.home-hero-panel-left .DnnModule-EasyDNNGallery #M8327 {
  height: 280px!important;
  margin-top: -18px!important;
}

.home-hero-panel-left .DnnModule-EasyDNNGallery #M8327 img {
  height: 280px!important;
  object-fit: cover!important;
}

.home-hero-panel-left .nivo-controlNav {
margin-top: -20px!important;
}

.home-hero-panel-right {
  height: 280px;
}

.home-hero-panel-right p {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 280px;
}

.home-hero-panel-right p a {
  font-size: 22px;
  width: 230px !important;
  padding: 22px;
  margin-bottom: 0px !important;
}

/* Add box shadow to all buttons */

[class*="button"] {
  box-shadow: 3px 3px 6px 0px rgba(101,131,151,0.75);
-webkit-box-shadow: 3px 3px 6px 0px rgba(101,131,151,0.75);
-moz-box-shadow: 3px 3px 6px 0px rgba(101,131,151,0.75);
}

/* Grey background masonry grid panel */

.DnnModule.DnnModule-DNN_HTML.DnnModule-8322 {
  background: #F6F6F6;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 99.5vw;
  padding: 30px 0px 40px 0px;
}

.DnnModule.DnnModule-DNN_HTML.DnnModule-8322 #dnn_ctr8322_contentpane {
  max-width: 1140px;
  margin: 0 auto;
}

.masonary-grid {
  display: flex;
width: 100%;
height: fit-content;
gap: 24px;
margin-left: 5px;
}

/* Left Column */
.left-column {
  width: 50%;
  display: grid;
  grid-template-rows: 190px 290px 88px;
  gap: 12px;
}

/* Right Column */
.right-column {
  width: 50%;
  display: grid;
  grid-template-rows: 190px 390px;
  gap: 12px;
}

/* Individual div styles with shadows */
.masonary-grid > .left-column > div,
.masonary-grid > .right-column > div {
  box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  -webkit-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  -moz-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  box-sizing: border-box;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: white;
}


/* Our co-leaders speak */
.masonary-grid-left-top,
.masonary-grid-right-top  { 
border: 2px solid #C4171F; 
display: grid!important;
grid-template-columns: 165px 1fr;
padding: 12px;
justify-content: space-between;
align-items: center;
}

.co-leaders-left {
  height: 100%;
}

.co-leaders-left a {
  height: 95%;
  display: block;
}

.co-leaders-left a img {
  height: 100%;
  object-fit: cover;
}

.co-leaders-right {
  height: 100%;
padding-left: 24px;
position: relative;
}

.co-leaders-right a[class*="button"] {
  position: absolute;
bottom: -10px;
right: 5px;
font-weight: 500;
}

.co-leaders-right p{
  font-weight: 500;
  line-height: 1.4;
}

.co-leaders-right strong {
  font-weight: 600;
  line-height: 1.4;
}

.masonary-grid-left-top h2,
.masonary-grid-right-top h2 {
  color: #C4171F; 
  font-weight: bold;
}

/* Maranga Mai */
.masonary-grid-left-middle {
border: 2px solid #501F74; 
padding: 12px;
flex-wrap: wrap;
justify-content: flex-start;
}

.masonary-grid-left-middle ul {
  width: 100%;
padding: 0px;
margin: 0;
}

.masonary-grid-left-middle ul li {
  list-style-type: none !important;
}

.masonary-grid-left-middle ul li p a {
  position: relative;
  font-weight: bold;
}

.masonary-grid-left-middle ul li p a::after {
  content: "";
  position: absolute;
  background-image: url('/portals/0/Files/Images/arrow-icon-purple.png');
  width: 15px;
  height: 15px;
  font-size: 20px;
  z-index: 6;
  background-size: cover;
  right: -20px;
  bottom: -2px;
  transition: 0.7s ease;
  border-radius: 100%;
  border: 1px solid white;
}

.masonary-grid-left-middle ul li p a:hover::after {
  border: 1px solid #501F74;
}

.masonary-grid-left-middle ul li a {
  color: #501F74!important; 
  font-weight: 500;
  line-height: 1.4;
}

.masonary-grid-left-middle p {
  font-weight: 500;
  line-height: 1.4;
  padding: 0px;
}

/* NZNO in the news */
.masonary-grid-left-bottom { 
border: 2px solid #2F97D5;
background: white !important;
padding: 4px 12px 4px 4px;
position: relative;
}

.masonary-grid-left-bottom:hover {
  background: #61acb636 !important;
}

.masonary-grid-left-bottom::after {
  content: "";
position: absolute;
background-image: url('/portals/0/Files/Images/arrow-icon-blue.png');
width: 25px;
height: 25px;
font-size: 20px;
z-index: 99;
background-size: cover;
right: 20px;
}

.masonary-grid-left-bottom a {
  width: 100%;
height: 100%;
color: #2F97D5 !important;
display: flex;
align-items: center;
font-size: 20px;
padding-left: 1px;
font-weight: 700;
transition: 0.3s ease;
text-decoration: none !important;
}

.masonary-grid-left-bottom a:hover {
  /* color: white!important; */
}

.masonary-grid-left-bottom a img {
  height: 100%;
margin-right: 20px;
border-radius: 3px;
}

/* Latest media releases */
.masonary-grid-right-bottom { 
border: 2px solid #501F74; 
padding: 12px;
flex-wrap: wrap;
align-items: flex-start;
position: relative;
}

.masonary-grid-right-bottom h2 {
  color: #501F74; 
  font-weight: bold;
}

.masonary-grid-right-bottom ul {
      margin: 0;
  padding: 0;
  width: 90%;
  height: 260px;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
  padding-top: 10px;
}

.masonary-grid-right-bottom ul li {
  width: 100%;
}

.masonary-grid-right-bottom ul li a{
  color: black;
  font-weight: 200;
  font-size: 16px;
}

.masonary-grid-right-bottom a[class*="button"] {
  position: absolute;
  bottom: 0px;
  right: 25px;
  font-weight: 500;
}

/* Purple call to action cards grid */


.purple-cta-grid {
 display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
justify-content: space-between;
align-items: center;
column-gap: 24px;
}


.purple-cta-card { 
border: 2px solid #501F74; 
background: #501F74!important; 
padding: 22px 12px 12px 12px;
position: relative;
border-radius: 6px;
height: 100px;
transition: 0.3s ease;
}

.library-card {
background-image: url('/portals/0/Files/Images/HomePage/library-outage3.png') !important;
background-size: 100% !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-color: #b70100 !important;
border: 0.5px solid #b70100;
border-radius: 0px;
}

.purple-cta-card:not(.library-card):hover {
  background: #501f748a !important;
}


.purple-cta-card::after {
  content: "";
position: absolute;
background-image: url('/portals/0/Files/Images/arrow-icon.png');
width: 25px;
height: 25px;
font-size: 20px;
z-index: 99;
background-size: cover;
right: 10px;
bottom: 10px;
}

.library-card::after {
opacity: 0;
}

.purple-cta-card a {
  width: 90%;
  height: 100%;
  color: white !important;
  display: flex;
  align-items: flex-start;
  font-size: 20px;
  padding-left: 20px;
  font-weight: 200;
  line-height: 28px;
}


/* Grey background call to action cards grid */

.DnnModule.DnnModule-DNN_HTML.DnnModule-8324 {
  background: #F6F6F6;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 99.5vw;
  padding: 30px 0px 40px 0px;
}


.DnnModule.DnnModule-DNN_HTML.DnnModule-8324 #dnn_ctr8324_contentpane {
  max-width: 1140px;
  margin: 0 auto;
}

.image-tiles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 24px;
  align-items: stretch;
}

.image-tiles-card { 
border: 2px solid white; 
background: white; 
border-radius: 6px;
width: 32%;
box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  -webkit-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  -moz-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
  overflow: hidden;
  transition: 0.3s ease;
}

.image-tiles-card a {
text-decoration: none!important
}


.image-tiles-card img {
  max-width: 100%;
height: 205px;
object-fit: cover;
width: 100%;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
transition: all .3s ease;
}

.image-tiles-card {
  position: relative;
}

.image-tiles-card:nth-of-type(10) {
display:none;
}

.image-tiles-card::after {
  content: "";
position: absolute;
background-image: url('/portals/0/Files/Images/arrow-icon-purple.png');
width: 25px;
height: 25px;
font-size: 20px;
z-index: 6;
background-size: cover;
right: 10px;
bottom: 10px;
transition: 0.7s ease;
border-radius: 100%;
border: 1.5px solid white;
}

.image-tiles-card:hover::after {
  border: 1.5px solid #501F74;
}

.image-tiles-card a:hover img {
transform: scale(1.1);
}

.image-tiles-card-text {
  padding: 12px 16px 24px 16px;
}



.image-tiles-card h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 0px;
  padding-bottom: 24px;
  text-decoration: underline;
  color: black!important;
}

.image-tiles-card p,
.image-tiles-card ol,
.image-tiles-card ul,
.image-tiles-card a {
  margin: 0px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.image-tiles-card p,
.image-tiles-card ol,
.image-tiles-card ul {
  padding-bottom: 12px;
  text-decoration: none;
}

.image-tiles-card ol,
.image-tiles-card ul {
  padding-left: 16px;
}

.image-tiles-card a {
  color: black;
  text-decoration: none;
}

/* Masanory image grid above footer */

.image-masonry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.image-masonry-grid-column {
  width: 32%;
row-gap: 16px;
display: flex;
flex-wrap: wrap;
}

.image-masonry-grid-column a {
  width: 100%;
}

.image-masonry-grid-column img {
  width: 100%;
  object-fit: cover;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.image-masonry-grid-column img:hover {
  opacity: 0.7;
  border-radius: 6px;
}

.image-masonry-grid-column:nth-child(1) a:nth-of-type(1) > img {
  height: 205px;
}

.image-masonry-grid-column:nth-child(1) a:nth-of-type(2) > img {
  height: 225px;
}

.image-masonry-grid-column:nth-child(2) a:nth-of-type(1) > img {
  height: 65px;
}

.image-masonry-grid-column:nth-child(2) a:nth-of-type(2) > img {
  height: 140px;
}

.image-masonry-grid-column:nth-child(2) a:nth-of-type(3) > img {
  height: 210px;
}

.image-masonry-grid-column:nth-child(3) a:nth-of-type(1) > img {
  height: 200px;
}

.image-masonry-grid-column:nth-child(3) a:nth-of-type(2) > img {
  height: 229px;
}

    /* Background image call to action cards grid */
    
.DnnModule-8328 {
margin-bottom: 80px!important;
}

.background-cta-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  row-gap: 24px;
}

.background-cta-card { 
padding: 22px 12px 12px 18px;
position: relative;
border-radius: 6px;
width: 20%;
height: 160px;
transition: 0.3s ease;
}

.background-cta-card.red-bg {
  background-image: url('/portals/0/Files/Images/NZNO-BrandPattern-Red1.png');
  border: 2px solid #c85f66; 
}

.background-cta-card.red-bg::before {
  background: #c85f66;
}

.background-cta-card.purple-bg {
  background-image: url('/portals/0/Files/Images/NZNO-BrandPattern-Purple1.png');
  border: 2px solid #8D53B7; 
}

.background-cta-card.purple-bg::before {
  background: #8D53B7;
}

.background-cta-card.blue-bg {
  background-image: url('/portals/0/Files/Images/NZNO-BrandPattern-Blue1.png');
  border: 2px solid #2F97D5; 
}

.background-cta-card.blue-bg::before {
  background: #2F97D5;
}

.background-cta-card:hover {
border: 2px solid #1c1c1c;
}

.background-cta-card:hover::before {
  transform: scale(1.15);
}

.background-cta-card:hover::after {
  transform: scale(1.15);
}

.background-cta-card::after {
  content: "";
position: absolute;
background-image: url('/portals/0/Files/Images/arrow-icon.png');
width: 25px;
height: 25px;
font-size: 20px;
z-index: 7;
background-size: cover;
right: -4px;
bottom: -6px;
transition: 0.3s ease;
}

.background-cta-card::before {
  content: "";
position: absolute;
width: 35px;
height: 35px;
font-size: 20px;
z-index: 6;
right: -8.5px;
bottom: -10.5px;
border-radius: 100%;
transition: 0.3s ease;
}

.background-cta-card a {
  width: 100%;
  height: 100%;
  color: white !important;
  text-shadow: 1.5px 1.5px 3px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: flex-start;
  font-size: 22px;
  font-weight: 200;
  line-height: 28px;
}

    /* Social media feeds */
.social-media-container {
  display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}

.social-media-container div {
 background: #F6F6F6;
 border-radius: 6px;
 box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
-webkit-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
-moz-box-shadow: 2px 2px 6px 0px rgba(101, 131, 151, 0.61);
padding: 18px;
height: fit-content;
}

.social-media-container h2 {
  color: #C10C17;
font-weight: 600;
font-size: 20px;
margin-top: 0px;
margin-bottom: 10px;
}

.two-across-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.two-across-images img {
  height: 350px;
  object-fit: cover;
}



/* TABLET/MOBILE STYLES */

@media screen and (max-width: 1140px) {
  .home-hero-panel {
      grid-template-columns: 1fr;
      gap: 20px;
      height: fit-content;
  }

  .home-hero-panel-right {
      height: fit-content;
      margin-top: 40px;
  }

  .home-hero-panel-right p {
      display: flex;
      justify-content: space-between;
      height: fit-content;
    }

    .home-hero-panel-right p a {
      font-size: 20px;
      width: 50% !important;
      padding: 16px;
      margin-bottom: 0px !important;
    }

    .masonary-grid {
      width: 95%;
      height: fit-content;
      margin: 0 auto;
      flex-wrap: wrap;
    }

    .left-column,
    .right-column {
      width: 100%;
    }

    .purple-cta-card {
      /*width: 45%;*/
    }

    .image-tiles-grid {
      width: 95%;
      margin: 0 auto;
    }

    .image-tiles-card {
      width: 48%;
    }

    .image-tiles-card a {
      height: 100% !important;
      display: block;
    }

    .image-masonry-grid-column:nth-of-type(1),
    .image-masonry-grid-column:nth-of-type(2) {
      width: 48%;
    }

    .image-masonry-grid-column:nth-of-type(3) {
      width: 100%;
      display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 18px;
    }

    .image-masonry-grid-column:nth-of-type(3) a {
      width: 48%;
    }

    .image-masonry-grid-column:nth-child(3) a:nth-of-type(1) > img {
      height: 230px;
    }
    
    .background-cta-card { 
      width: 25%;
    }
    
    .social-media-container {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
width: 90%;
margin: 0 auto;
}

.two-across-images {
padding: 10px!important;
}

.two-across-images div {
margin-top: 20px;
}

.two-across-images div,
.two-across-images div h2{
width: 100%!important;
}

.two-across-images img {
  width: 100% !important;
  height: auto !important;
  max-width: 400px;
  margin: 0 auto;
}

}

@media screen and (max-width: 630px) {
    
    .home-hero-panel {
        max-width: 90%;
        margin: 0 auto;
      }
      
      .home-hero-panel-right p a {
          width: 92% !important;
        }
      .masonary-grid {
      width: 86%;
      flex-direction: column-reverse;
    }

    .left-column {
      grid-template-rows: auto 290px 70px;
    }
    
    /* get the 2 co-leaders speak panels one under another */
    .masonary-grid-left-top {
      grid-row: 1;
    }
    
    .masonary-grid-right-top {
      grid-row: 2;
    }

    .right-column {
      grid-template-rows: auto auto;
    }

    .masonary-grid-left-top,
    .masonary-grid-left-middle,
    .masonary-grid-left-bottom,
    .masonary-grid-right-top,
    .masonary-grid-right-bottom {
      grid-template-columns: 1fr;
    }

    .co-leaders-left a {
      text-align: center;
    }

    .co-leaders-left a img {
      width: 50% !important;
    }

    .co-leaders-right {
      height: 170px;
      padding-left: 0px;
      padding-top: 8px;
    }

    .masonary-grid-left-bottom a img {
      margin-right: 0px;
      padding-right: 6px;
    }

    .purple-cta-grid {
      width: 90%;
      margin: 0 auto;
      row-gap: 16px;
    }

    .image-tiles-grid {
      width: 87%;
      margin: 0 auto;
    }

    .image-tiles-card {
      width: 100%;
    }
    
    .purple-cta-card {
      width: 90%;
    }

    .image-masonry-grid {
      max-width: 90%;
    }

    .image-masonry-grid-column:nth-child(2) a:nth-of-type(2) > img {
      height: 90px;
    }

    .image-masonry-grid-column:nth-child(2) a:nth-of-type(3) > img {
      height: 120px;
    }

    .image-masonry-grid-column:nth-child(1) a:nth-of-type(1) > img {
      height: 110px;
    }

    .image-masonry-grid-column:nth-child(2) a:nth-of-type(1) > img {
      height: 50px;
    }

    .image-masonry-grid-column:nth-child(1) a:nth-of-type(2) > img {
      height: 165px;
    }

    .image-masonry-grid-column:nth-child(3) a:nth-of-type(1) > img,
    .image-masonry-grid-column:nth-child(3) a:nth-of-type(2) > img {
      height: 130px;
    }
    
    .background-cta-grid {
      width: 90%;
      margin: 0 auto;
    }
    
    .background-cta-card { 
      width: 35%;
    }
    
    .home-heading-one {
    font-size: 20px!important;
    }

}