/*
CTC Separate Stylesheet
Updated: 2025-06-24 13:06:57
*/

/*.ct-sticky-container {
    background: url(https://www.dev.littlerocket.co.nz/StratfordPrimary/wp-content/uploads/2025/07/StratfordCurve-1.svg) 0 bottom / 100% no-repeat;
    min-height: 229px !important;
    padding-bottom: 3vw !important;
    height: 13vw !important;
}*/


    ul.menu > li.mega-menu > ul.sub-menu > .mega-inner {
 
        padding: 20px 0 0px 0 !important;
   
    }
.ct-sticky-container {
    background: url(https://www.dev.littlerocket.co.nz/StratfordPrimary/wp-content/uploads/2025/07/StratfordCurve-1.svg) 0 bottom / 100% no-repeat;
    padding-bottom: 0 !important;
    height: 220px !important;
}
.is-scrolling ul.menu > li.mega-menu > ul.sub-menu {
    top: 113px;
}
.hero-section {
    margin-top: 2vw !important;
    margin-bottom: 0px !important;
}
.submenu-thumb {
    display: block;
    width: 60px;
    height: auto;
    margin-bottom: 5px;
}

.mega-sub-menu li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.submenu-title {
    display: block;
    margin-top: 5px;
}
.submenu-thumb {
    display: block;
    width: 100% !important;
    height: auto;
    margin-bottom: 5px;
}
#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
    line-height: 40px;
    height: 40px;
    padding: 0px 20px;
    font-size: 18px;
}
.submenu-title {
    margin-top: 0;
    font-size: 17px !important;
    line-height: 1.2em;
    font-weight: 700;
    text-transform: none;
    color: #000;
    font-family: "Itim";
}
nav#header-menu-1 {
    z-index: 1;
}
.ct-header-text {
    z-index: 2 !important; 
}
/* Target only sub-menus under items with 'dropdown-grid-3' */
/*li.dropdown-grid-3 > .sub-menu {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0rem;
  padding: 0px !important;
  min-width: 460px;
  box-sizing: border-box;
  background-color: none; /* Optional: make sure it's visible */
/*  z-index: 9999;*/

/* Individual items in the grid */
/*li.dropdown-grid-3 > .sub-menu > li {
  width: 100% !important;
  white-space: normal;
  text-align: left;

}*/
.ct-sidebar {
    border-radius: 0;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, .0);
    overflow: hidden;
    padding: 0;
    background: #ffffff;
}
.ct-sidebar li {
    background: #fff;
    padding: 4px;
}

.page-list li {
    background: none !important;
    padding: 0px 20px;
}
.page-list li a {
    background: none !important;
    padding: 10px 0px;
    line-height: 40px;
}
.page-list li li {
    background: none !important;
    padding: 0px 0px;
}
.page-list li.current-menu-item {
    background: #e91d25 !important;
}
.page-list li.current-menu-item a {
	color: #fff;
}
li ul.children {
    padding: 0 !important;
    margin: 0 !important;
    background: #666;
}
.home footer#footer {
    margin-top: 0px;
}
footer#footer {
    margin-top: 60px;
}
.child-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

ul.child-pages  {
	padding: 0px 0 0 0px !important;
	margin: 20px 0 30px 0 !important;
}
.child-pages li {
    background: #fff;
    padding: 0;
    border-radius: 0;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, .1);
    overflow: hidden;
}
.child-pages p {
 display: none;
}
.child-pages h2 a {
	color: #000 !important;
}
.child-pages .description h2 {
    min-height: 70px;
    text-align: center;
}
.child-pages img {
  width: 100%;
  border-radius: 0px;
	margin-bottom: 0px;
}
.child-pages .description {
    padding: 30px 30px;
}

.child-page-button {
    display: inline-block;
    margin-top: 0.5rem;
    background: none;
    color: #000;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    border: 2px solid #000;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.child-page-button:hover {
 background: #e91d25;
	color: #fff;
	border: 2px solid #e91d25;
}

.is-scrolling img.secondaryLogo {
    margin-top: 10px;
}
nav#header-menu-2 {
    position: relative;
    top: 40px;
}

@media screen and (max-width: 600px) {
	.guideVO ne {
    height: 100vh;
    width: 100%;
    background: rgba(0, 0, 255, .0);
    position: absolute;
    z-index: 99999;
    left: 0;
    margin: auto;
}
	ul.sub-menu {
    padding: 0 !important;
}
ul.sub-menu li {
    padding: 5px 0 5px 0 !important;
}
	ul.sub-menu li a {
	font-size: 16px !important;
}
	ul.recent-content-list a {
    font-size: 20px;
    line-height: 1.5em;
}
	span.mega-thumb {
    display: none;
}
.guideV One .inner {
        height: 100vh;
        width: 350px;
        background: rgba(0, 0, 255, .4);
        position: relative;
        z-index: 99999;
        left: 0;
        margin: auto;
    }
   .ct-sticky-container {
    background: url(https://www.dev.littlerocket.co.nz/StratfordPrimary/wp-content/uploads/2025/07/StratfordCurve-1.svg) 0 bottom / 150% no-repeat;
    min-height: 135px !important;
    padding-bottom: 0vw !important;
    height: 0 !important;
}
	.ct-panel-content-inner {
    margin: 0;
    padding: 0 40px;
}
    .secondaryLogo {
        max-width: 70px;
        margin-top: 10px;
    }
	.site-branding {
    margin: 0 !important;
  }
/* Ensure Blocksy's JS handles animation/visibility */
  li.dropdown-grid-3 > .sub-menu {
    display: none !important; /* Let Blocksy animate it */
  }

  /* Grid layout ONLY after Blocksy has opened the dropdown (height > 0) */
  li.dropdown-grid-3.dropdown-active > .sub-menu {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 1rem;
  }

  li.dropdown-grid-3 > .sub-menu > li {
    text-align: left;
  }
}

