/*
Theme Name: Green
Theme URI: https://example.com/
Author: You
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: green
*/
html, body { height: 100%; }

.wp-site-blocks {
  min-height: 100dvh;           /* use dynamic viewport for mobile chrome bars */
  display: flex;
  flex-direction: column;
}

/* Your main content should grow to fill space between header and footer */
.wp-site-blocks > main {
  flex: 1 0 auto;
}

/* Header/footer don’t stretch */
.wp-site-blocks > header,
.wp-site-blocks > footer {
  flex: 0 0 auto;
}

/* Optional: remove unexpected gaps around full-width groups */
.wp-site-blocks .alignfull { margin-left: 0; margin-right: 0; }


.hero-banner.alignfull { margin-left: 0; margin-right: 0; }
.hero-log img { width: auto; height: auto; object-fit: contain; display: block; }

.logo-tag {margin-top:-20px;margin-left:20px;font-weight:500px;font-size:20px;}
.logo-tag2 {margin-top:3px;margin-left:20px;font-weight:500px;font-size:20px;}

header .wp-block-group { position: sticky; top: 0; z-index: 50; }

/* Container for the classic menu inside the header */
.primary-menu {
    display: flex;
    justify-content: flex-start; /* or center / flex-end */
    align-items: center;
    height: 100%;
    margin-top: -20px;
    position: relative;   /* create stacking context */
    z-index: 1000;
}

/* The UL generated by wp_nav_menu */
.primary-menu-list {
    list-style: none;       /* no bullets */
    margin: 0;
    padding: 0;
    display: flex;          /* horizontal */
    gap: 1.5rem;            /* space between links */
}

/* Individual top-level menu items */
.primary-menu-list > li {
    position: relative;     /* needed for level-2 positioning */
}

/* Top-level links */
.primary-menu-list > li > a {
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;                 /* header text colour */
    padding: 0.25rem 0;
}

/* Hover / focus state */
.primary-menu-list > li > a:hover,
.primary-menu-list > li > a:focus {
    color: #ffefd5;                 /* softer highlight */
    text-decoration: underline;
}

/* Active/current page item */
.primary-menu-list > li.current-menu-item > a,
.primary-menu-list > li.current_page_item > a {
    border-bottom: 2px solid #ffffff;
}

/* ---------- DROPDOWNS: LEVEL 2+ ---------- */

/* Base dropdown (level 2 and deeper) */
.primary-menu-list li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    background: rgba(0, 128, 64, 0.93);  /* level 2: mid green */
    display: none;                       /* hidden by default */
    z-index: 9999;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

/* Sub-menu links (level 2+) */
.primary-menu-list li ul.sub-menu li a {
    display: block;
    padding: 0.35rem 0.75rem;
    color: #ffffff;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

/* Show dropdown on hover (level 2+) */
.primary-menu-list li:hover > ul.sub-menu {
    display: block;
}

/* Hover state inside dropdown */
.primary-menu-list li ul.sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- LEVEL 3 (AND DEEPER) ---------- */

/* Make each submenu li a positioning context for deeper levels */
.primary-menu-list li ul.sub-menu li {
    position: relative;
}

/* Level 3 dropdown (sub-sub-menu, fly out to the right) */
.primary-menu-list li ul.sub-menu li ul.sub-menu {
    top: 0;
    left: 100%;  /* position to the right of level 2 */
    background: rgba(120, 180, 120, 0.96); /* lighter green for tier 3 */
}

/* Slight indent for level 3 links */
.primary-menu-list li ul.sub-menu li ul.sub-menu li a {
    padding-left: 1.25rem;
}

/* Keep deeper levels open on hover as you move into them */
.primary-menu-list li:hover > ul.sub-menu,
.primary-menu-list li li:hover > ul.sub-menu {
    display: block;
}

/* ---------- ARROWS FOR ITEMS WITH CHILDREN ---------- */

/* Down arrow for items with submenus (top / level 2) */
.primary-menu-list li.menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 0.35rem;
    vertical-align: middle;
    color: #ffffff;
}

/* Right arrow for nested items (level 3 fly-outs) */
.primary-menu-list li ul.sub-menu li.menu-item-has-children > a::after {
    content: "▶";
}
/* ===========================
   Mobile hamburger additions
   Add AFTER your current CSS
   =========================== */

/* Panel wrapper (desktop default) */
.primary-menu-panel{
  display: block;
}

/* Toggle hidden on desktop */
.primary-menu-toggle{
  display: none;
}

/* Hamburger icon */
.primary-menu-toggle{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}

.primary-menu-toggle__icon{
  display: inline-block;
  width: 22px;
  height: 2px;
  background: #fff;
  position: relative;
}

.primary-menu-toggle__icon::before,
.primary-menu-toggle__icon::after{
  content:"";
  position:absolute;
  left:0;
  width:22px;
  height:2px;
  background:#fff;
}

.primary-menu-toggle__icon::before{ top:-7px; }
.primary-menu-toggle__icon::after { top: 7px; }

.primary-menu-toggle { display: none; }
.primary-menu-panel  { display: block; }



/* ---------- MOBILE BREAKPOINT ---------- */
@media (max-width: 1200px){

  /* Let nav wrap into two rows (toggle + panel) */
  .primary-menu{
    flex-wrap: wrap;
    margin-top: 0;          /* your -20px will feel weird on mobile */
    height: auto;
	   align-items: center;
  }

  /* Show the hamburger */
  .primary-menu-toggle{
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  /* Hide the menu until toggled */
  .primary-menu-panel{
    display: none;
    width: 100%;
    flex-basis: 100%;
    margin-top: 12px;
  }

  .primary-menu.is-open .primary-menu-panel{
    display: block;
  }

  /* Stack menu vertically */
  .primary-menu-list{
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 128, 64, 0.93); /* match your dropdown green */
    padding: 0.75rem;
    border-radius: 12px;
  }

  /* Make links easier to tap */
  .primary-menu-list > li > a{
    display: block;
    padding: 0.6rem 0.75rem;
    font-size: 1.15rem; /* slightly smaller than 1.5rem for mobile */
    text-decoration: none;
  }

  /* Disable hover-based dropdown behaviour on touch screens */
  .primary-menu-list li:hover > ul.sub-menu{
    display: none;
  }

  /* Make submenus position static for mobile */
  .primary-menu-list li ul.sub-menu{
    position: static;
    display: none;          /* hidden until opened */
    min-width: 0;
    box-shadow: none;
    padding: 0.25rem 0 0.25rem 0.75rem;
    background: rgba(0, 110, 55, 0.85);
  }

  /* When a LI is marked open, show its submenu */
  .primary-menu-list li.is-open > ul.sub-menu{
    display: block;
  }

  /* Level 3 also stacks (no fly-out) */
  .primary-menu-list li ul.sub-menu li ul.sub-menu{
    left: auto;
    top: auto;
    background: rgba(120, 180, 120, 0.25);
    padding-left: 0.75rem;
  }
}



/* Tabs */
* Tabs container */
.page-tabs-nav {
    margin-bottom: 1rem;
}

/* Tab list */
.page-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
}

/* Each tab */
.page-tabs-list > li {
    margin: 0;
}

/* Tab links: default = light green pill */
.page-tabs-list > li > a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #004020;
    background: #a7e3ba;           /* light green for all tabs */
    transition: background 0.15s ease, color 0.15s ease;
}

/* Hover: darker green */
.page-tabs-list > li > a:hover,
.page-tabs-list > li > a:focus {
    background: #4fa870;           /* darker on hover */
    color: #ffffff;
}

/* Active/current tab: darkest green */
.page-tabs-list > li.current-menu-item > a,
.page-tabs-list > li.current_page_item > a {
    background: #2d7747;           /* darkest green for active tab */
    color: #ffffff;
}


/* Nav Buttons */
page-tab-nav-bottom
{
    margin-top: 2rem;
}

.page-tab-nav-inner
{
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.page-tab-nav-bottom a
{
    flex: 1 1 10%;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(0, 128, 64, 0.15);
    color: #004020;
    display: flex;
    flex-direction: column;
}

.page-tab-nav-bottom a:hover
{
    background: rgba(0, 128, 64, 0.3);
}

.page-tab-nav-label
{
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.page-tab-nav-title
{
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* When there's no prev or next, keep layout from collapsing */
.page-tab-nav-placeholder
{
    flex: 1 1 35%;
}

/* Page Turner */

.page-tab-card
{
    position: relative;
    background: #ffffff;
    border: 2px solid grey;
    border-radius: 16px;
    padding: 2rem 2rem 3.5rem; /* extra bottom space for the dog-ear */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin: 1.5rem 0 2.5rem;
    overflow: hidden; /* keep content inside rounded corners */
}
.page-tab-card .page-turn-corner {
    position: absolute;
    width: 60px;
    height: 60px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent;
}

/* NEXT (bottom-right) */
.page-tab-card .page-turn-next {
    right: 0;
    bottom: 0;
}

.page-tab-card .page-turn-next::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #ffffff 50%,
        #e0e0e0 50%
    );
    box-shadow: -4px -4px 8px rgba(0, 0, 0, 0.25);
    border-top-left-radius: 16px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.page-tab-card .page-turn-next:hover::before {
    transform: translate(-4px, -4px);
    background: linear-gradient(
        135deg,
        #ffffff 45%,
        #d0d0d0 55%
    );
    box-shadow: -6px -6px 12px rgba(0, 0, 0, 0.3);
}

.page-tab-card .page-turn-next::after {
    content: "Next \00bb";
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #555555;
}

/* PREVIOUS (bottom-left) */
.page-tab-card .page-turn-prev {
    left: 0;
    bottom: 0;
}

.page-tab-card .page-turn-prev::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        225deg,
        #ffffff 50%,
        #e0e0e0 50%
    );
    box-shadow: 4px -4px 8px rgba(0, 0, 0, 0.25);
    border-top-right-radius: 16px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.page-tab-card .page-turn-prev:hover::before {
    transform: translate(4px, -4px);
    background: linear-gradient(
        225deg,
        #ffffff 45%,
        #d0d0d0 55%
    );
    box-shadow: 6px -6px 12px rgba(0, 0, 0, 0.3);
}

.page-tab-card .page-turn-prev::after {
    content: "\00ab Prev";
    position: absolute;
    bottom: 6px;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #555555;
}

.page-tab-card .page-turn-corner.is-hidden {
    display: none;
}


/* Images */
/* Outer box on the left – half the previous width */
.pt-collage-box-left {
    float: left;
    width: 240px;              /* was 260px */
    margin: 1.5em 1.5rem 1rem 0;   /* slightly tighter margins */
	transform: translateX(30px);
}

/* Stack container – normal flow, not positioned */
.pt-collage-stack {
    position: relative;
}

/* Each image "card" */
.pt-collage-item {
    margin-bottom: 1.1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    border: 4px solid #2d7747;        /* strong green border */
    background: #ffffff;
    transform-origin: center center;
}

/* The image itself */
.pt-collage-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Slight variations in angle / horizontal offset per item */
.pt-collage-item-1 {
    transform: rotate(-3deg) translateX(-4px);
}
.pt-collage-item-2 {
    transform: rotate(2deg) translateX(6px);
}
.pt-collage-item-3 {
    transform: rotate(-1.5deg) translateX(-8px);
}
.pt-collage-item-4 {
    transform: rotate(3deg) translateX(3px);
}
.pt-collage-item-5 {
    transform: rotate(-2.5deg) translateX(5px);
}
.pt-collage-item-6 {
    transform: rotate(1.5deg) translateX(-6px);
}

/* Small screens: center the column above the text */
@media (max-width: 768px) {
    .pt-collage-box-left {
        float: none;
        margin: 0 auto 1.5rem auto;
        width: 80%;
    }
}

.big_bold_text
{
	font-size: 20px;
}


/* Group */
.group-detail
{
    max-width: 800px;
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #d0d4da;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.group-detail__title
{
    margin-top: 0;
    color: #2d7747;
}

.group-detail__body
{
    margin-top: 0.75rem;
}

.pt-section-banner {
  width: 90%;
  margin: 2.5rem auto;
  background: #00643b;
  padding: 10px 10px;;
  text-align: center;
  font-size: 25px;
  font-weight: 800;           
  text-transform: uppercase;   
  line-height: 1.1;
  color: #ffffff;

  /* subtle depth without cheesiness */
  text-shadow:
    0 1px 0 rgba(0,0,0,0.25),
    0 2px 4px rgba(0,0,0,0.25);
}

.pt-clause {
  font-size: 20px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 1em;
}

.pt-clause-number {
  width: 3em;
  flex-shrink: 0;
}

.pt-clause-text {
  flex: 1;
}

.pt-subclause {
  display: flex;
  align-items: flex-start;
  margin-top: 0.5em;
}

.pt-subclause-letter {
  width: 2em;
  flex-shrink: 0;
}

.pt-subclause-text {
  flex: 1;
}

.pt-procedure {
  margin-top: 0.75em;
}

.pt-proc-item {
  display: flex;
  align-items: flex-start;
  margin-top: 0.35em;
}

.pt-proc-label {
  width: 3em;        /* adjust if you want tighter/looser */
  flex-shrink: 0;
}

.pt-proc-text {
  flex: 1;
}
.pt-appendix {
  font-size: 20px;
}