/* Default: Only apply padding under 980px */
@media (max-width: 979px) {
  body {
    padding-top: 80px !important;
  }
}

/* Clear it above 980px */
@media (min-width: 980px) {
  body {
    padding-top: 168px !important;
  }
}

@media (max-width: 979px) {
  body.search {
    padding-top: 0 !important; /* Or 0 if you want it flush */
  }
}

/* SEARCH RESULTS ONLY */
body.search #et-main-area {
  min-height: calc(100vh - 200px); /* header allowance */
  display: flex;
  flex-direction: column;
}

/* Your search.php <main> */
body.search main.custom-search-results {
  flex: 1 0 auto;
}

/* --- 404 Styles --- */
.error-404-image img {
  max-width: 100%;
  height: auto;
  display: block;
}






/* ---- NO RIGHT CLICK ON IMAGES ---- */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Hide section */
.hide-me {
  display: none;
}

/* Reset layout behavior */
html, body {
  height: auto;
  margin: 0;
  padding: 0;
}

#page-container {
  min-height: 100vh;
  position: relative;
}

.et_builder_inner_content {
  padding-bottom: 0; /* Remove if already set */
}

/* --- Global List Reset --- */
ul, ol {
  margin: 0;
  padding: 0;
  list-style-position: outside;
}
ul li, ol li {
  margin: 0;
  padding: 0;
}


/* ========== DESKTOP TOP NAV AND SECONDARY NAV ========== */

.top-nav-row {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: white;
  z-index: 100000; /* Much higher z-index */
  isolation: isolate; /* Create new stacking context */
}

/* Primary Nav */
.primary-nav-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 108px;
  width: 100%;
}

.logo-area {
  padding-left: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-area img {
  width: clamp(180px, 20vw, 260px);
  height: auto;
  max-width: 260px;
}

.nav-area {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 2rem;
  padding-bottom: 0.5rem;
  height: 100%;
}

.nav-area ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Secondary Nav */
.secondary-nav-row {
  width: 100%;
  height: 60px;
  background-color: #e2edea;
  display: flex;
  justify-content: flex-end; /* This ensures the row content aligns right */
}

.nav-secondary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  margin-left: auto; /* This will push everything to the right */
}

.search-area {
  display: flex;
  align-items: center;
}

/* =======================
   CUSTOM SEARCH FIELD STYLES
   ======================= */

/* --- Wrapper and Layout --- */
.custom-search-form {
  width: clamp(240px, 300px, 320px);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

/* --- Input Field --- */
.search-field,
input[type="search"] {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  font-size: 1rem;
  background-color: #fff !important;
  color: var(--color-text, #231e20) !important;
  border: 1px solid #999;
  border-radius: 0;
  box-sizing: border-box;
  outline: none;
  caret-color: var(--color-olive, #006c60);
}

/* Responsive tweak */
@media (max-width: 480px) {
  .search-field {
    font-size: 0.95rem;
    padding-left: 2.25rem;
  }
}

/* --- Placeholder Styling & Animation --- */
input::placeholder,
input[type="search"]::placeholder {
  color: #666 !important;
  opacity: 1 !important;
  transition: color 0.3s ease;
}

input[type="search"]:focus::placeholder {
  color: rgba(0, 0, 0, 0.5) !important;
}

/* --- Autofill Fix (Chrome/Safari) --- */
input[type="search"]:-webkit-autofill {
  -webkit-text-fill-color: var(--color-text, #231e20) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- Icon Styling & Animation --- */
.search-icon {
  position: absolute;
  left: 0.75rem;
  width: 1.25rem;
  height: 1.25rem;
  color: #666;
  pointer-events: none;
  transition: transform 0.2s ease, color 0.2s ease;
}

.custom-search-form:hover .search-icon,
.custom-search-form:focus-within .search-icon {
  transform: scale(1.15);
  color: var(--color-olive, #718e7d);
}

/* --- Global Overrides for Search Fields in Other Containers --- */
.mobile-header input[type="search"],
.et_pb_menu__search input[type="search"],
#mobile-search input[type="search"] {
  background-color: #fff;
  color: var(--color-text, #231e20);
  caret-color: var(--color-olive, #006c60);
}

.mobile-header input[type="search"]::placeholder,
.et_pb_menu__search input[type="search"]::placeholder,
#mobile-search input[type="search"]::placeholder {
  color: #666;
  opacity: 1;
}

/* --- Remove iOS Search Styles --- */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* ========= Desktop Top Nav & Shrink Behavior ========= */

.top-nav-row {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: white;
  z-index: 100000;
  isolation: isolate;
  transition: all 0.3s ease;
}

/* Primary Nav */
.primary-nav-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 108px;
  width: 100%;
  transition: height 0.3s ease;
}

.logo-area {
  padding-left: 2rem;
  display: flex;
  align-items: center;
  height: 100%;
  transition: padding 0.3s ease;
}

.logo-area img {
  width: clamp(180px, 20vw, 260px);
  height: auto;
  max-width: 260px;
  transition: width 0.3s ease;
}

.nav-area {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding-right: 2rem;
  padding-bottom: 0.5rem;
  height: 100%;
  transition: padding 0.3s ease;
}

.nav-area ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: gap 0.3s ease;
}

.nav-area ul li a {
  font-size: 1rem;
  transition: font-size 0.3s ease, padding 0.3s ease;
}

/* Secondary Nav */
.secondary-nav-row {
  width: 100%;
  height: 60px;
  background-color: #e2edea;
  display: flex;
  justify-content: flex-end;
  transition: height 0.3s ease;
}

.nav-secondary {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  margin-left: auto;
}

.nav-secondary a {
  font-size: 1rem;
  transition: font-size 0.3s ease;
}

.search-area {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.custom-search-form {
  width: clamp(240px, 300px, 320px);
  transition: width 0.3s ease;
}

/* ---------------- SHRINKED STATE ---------------- */

.top-nav-row.shrink .primary-nav-row {
  height: 72px;
}

.top-nav-row.shrink .secondary-nav-row {
  height: 48px;
}

.top-nav-row.shrink .logo-area {
  padding-left: 1rem;
}

.top-nav-row.shrink .logo-area img {
  width: clamp(100px, 10vw, 140px);
}

.top-nav-row.shrink .nav-area {
  padding-right: 1rem;
  padding-bottom: 0;
}

.top-nav-row.shrink .nav-area ul {
  gap: 1.25rem;
  margin-bottom: 0 !important;
}

.top-nav-row.shrink .nav-area ul li a {
  font-size: 0.75rem;
  padding: 0.65em 0.75em;
}

.top-nav-row.shrink .nav-secondary a {
  font-size: 0.75rem;
}

.top-nav-row.shrink .custom-search-form {
  width: clamp(180px, 220px, 240px);
}

.top-nav-row.shrink .custom-search-form .search-field {
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  font-size: 0.95rem;
}
.top-nav-row.shrink .search-icon {
  transform: scale(0.9);
}

.top-nav-row.shrink .custom-search-form input::placeholder,
.top-nav-row.shrink .custom-search-form input[type="search"]::placeholder {
  font-size: 0.8125rem !important; /* Adjust as needed */
}

.top-nav-row.shrink .custom-search-form .search-field,
.top-nav-row.shrink .custom-search-form input[type="search"] {
  font-size: 0.875rem !important;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}


/* ====================================
   MOBILE OFF-CANVAS MENU
==================================== */

/* ---------- HEADER & TOGGLE ---------- */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.menu-toggle {
  position: absolute;
  left: 0;
  width: 80px;
  height: 80px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10000;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #000;
  position: absolute;
  left: 50%;
  margin-left: -12px;
  transition: all 0.3s ease;
}

.menu-toggle span:nth-child(1) { top: 30px; }
.menu-toggle span:nth-child(2) { top: 38px; }
.menu-toggle span:nth-child(3) { top: 46px; }

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 38px;
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 38px;
}

.menu-bar {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-right: 20px;
}

.menu-logo {
  height: 45px;
  width: auto;
}

.logo-link {
  display: block;
  line-height: 0;
  text-decoration: none;
}

/* ---------- OFF-CANVAS PANEL ---------- */
.mobile-menu-panel {
  position: fixed;
  top: calc(56px + var(--spacing-sm));
  left: 0;
  width: 70vw;
  height: 100%;
  background: transparent;
  z-index: 9998;
  transform: translateX(-100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); /* smoother easing */
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

.menu-content {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
}

/* ---------- MENU ITEMS ---------- */
.menu-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-items li {
  opacity: 0;
  transform: translateX(-20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  transition-delay: 0s;
  padding-left: 1rem;
  background-color: var(--color-primary);
  border-left: 2px solid white;
  margin-bottom: var(--spacing-xs);
}

/* Active state */
.mobile-menu-panel.open .menu-items li {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(var(--i) * 0.1s);
}

.menu-items a {
  display: block;
  color: white;
  font-size: 18px;
  padding: 16px 0;
  text-decoration: none;
}

/* ---------- SEARCH FIELD ---------- */
.menu-search {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  transition-delay: 0s;
}

.mobile-menu-panel.open .menu-search {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.92s; /* just after item 7 finishes */
}

.menu-search input[type="search"] {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 1);
  border: none;
  color: white;
  border-radius: 0;
}

.menu-search input {
  font-size: var(--font-size-base);
}

/* ---------- OVERLAY ---------- */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9997;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}



/* ====================================
   RESPONSIVE HEADER AND HAMBURGER MENU
==================================== */
@media (max-width: 767px) {
  .custom-header-container {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-column-wrapper {
    width: 100% !important;
    justify-content: flex-start;
  }

  .nav-area {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
    padding-right: 0 !important;
  }
}

@media (min-width: 981px) {
  .mobile-header,
  .mobile-menu-panel,
  .menu-overlay,
  .menu-toggle,
  #menu-toggle,
  .menu-bar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}


@media (max-width: 980px) {
  .fullwidth-header {
    display: none !important;
  }
}
 




  /* ---------- GENERAL RULES ---------- */
  .stack-horizontal {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
  }

  /* --- Job Board - Careers Page --- */
  .job-board-logo img {
    height: 50px;
    width: auto;
    margin: auto;
  }
 
  .job-board-col {
    padding: 4rem 2rem;  
    transition: border 0.3s ease;
    border: 2px solid #6a3e5d;
}

.job-board-col:hover {
  border: 2px solid #73f8fe; /* light blue */
}

.job-board-col .job-board-logo {
  transition: transform 0.3s ease;
}

.job-board-col:hover .job-board-logo {
  transform: scale(1.05);
}
@media (max-width: 767px){
  .job-board-section {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.et_pb_row.job-board-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

  

/* ---------- Background Colours ---------- */
.bg-lightgrey-1 {
  background-color: var(--color-light-grey1) !important;
}

.bg-lightgrey-2 {
  background-color: var(--color-light-grey2) !important;
}

.bg-lightgrey-3 {
  background-color: var(--color-light-grey3) !important;
}

.bg-lightgreen {
  background-color: var(--color-highlight) !important;
}



 /* ======================================================
   OVERLAP SECTION STYLING — DESKTOP & MOBILE RESPONSIVE
   Section Class: .overlap-section
   Structure: Two-column layout with text left, image right
====================================================== */

/* ------------------------------
   DESKTOP STYLES (≥981px)
------------------------------ */
@media (min-width: 981px) {
  .overlap-section {
    position: relative;
    padding-top: 4rem;
    padding-bottom: 6rem !important;
    overflow: visible;
  }

  .overlap-section .et_pb_row {
    position: relative;
    width: 90% !important;
    max-width: 1140px !important;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    z-index: 1;
  }

  .overlap-section .et_pb_column_1_2:first-child {
    width: 60% !important;
    position: relative;
    z-index: 2;
    padding-top: 3rem !important;
    margin-top: 3rem !important;
  }

  .overlap-section .et_pb_text {
    background-color: #e2dacb;
    padding: 4rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    margin-right: 1%;
    color: var(--color-text);
    position: relative;
    z-index: 2;
  }

  .overlap-section .et_pb_text h2 {
    color: var(--color-gold);
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .overlap-section .et_pb_column_1_2:last-child {
    position: absolute;
    top: 0;
    right: 0;
    width: 50% !important;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    padding-bottom: 3rem !important;
    margin-top: 3rem !important;
   
  }

  .overlap-section .et_pb_image,
  .overlap-section .et_pb_image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
  }
}

/* ------------------------------
   MOBILE STYLES (<981px)
------------------------------ */
@media (max-width: 980px) {
  .overlap-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    overflow: visible;
  }

  .overlap-section .et_pb_row {
    display: block;
    padding: 0;
    margin: 0 auto;
    width: 100%;
  }

  .overlap-section .et_pb_column_1_2:first-child,
  .overlap-section .et_pb_column_1_2:last-child {
    width: 100% !important;
    position: relative;
    height: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Only one z-index declaration needed for image column */
  .overlap-section .et_pb_column_1_2:last-child {
    z-index: 1;
  }

  .overlap-section .et_pb_image {
    width: 100% !important;
    height: auto;
    display: block;
    position: relative;
  }

  .overlap-section .et_pb_image img {
    width: 100% !important;
    height: auto;
    object-fit: cover;
    display: block;
  }

  .overlap-section .et_pb_text {
    position: relative;
    z-index: 2 !important; /* sits above the image */
    margin-top: 3rem !important;
    margin-bottom: -4rem !important;
    padding: 1.5rem 1.25rem !important;
    width: 90%;
    max-width: 700px;
    background-color: #e2dacb;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    left: 50%;
    transform: translateX(-50%);
  }

  .overlap-section .et_pb_text h2 {
    color: var(--color-gold);
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
}

/* ============================
   HALF SPLIT SECTIONS - About page
============================ */

.half-split-row {
  display: flex;
  flex-wrap: wrap;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
}

.half-split-row p,
.half-split-row h3,
.half-split-row h5 {
  color: var(--color-text) !important;
}

.half-split-row .et_pb_column {
  width: 50%;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: stretch; /* 🔥 critical to match sibling height */
  justify-content: center;
  box-sizing: border-box;
}


/* --------------------------------------
   TEXT LEFT
----------------------------------------- */

.half-split-row.text-left .et_pb_column:first-child {
  align-items: center;
  justify-content: center;
}

.half-split-row.text-left .et_pb_column:first-child .et_pb_text {
  max-width: min(700px, 100%);
  width: 100%;
  display: flex;
  align-items: center;
}

.half-split-row.text-left .et_pb_column:first-child .et_pb_text_inner {
  padding-block: clamp(3rem, 6vw, 6rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}


/* IMAGE RIGHT */
.half-split-row.text-left .et_pb_column:last-child {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch; /* 🔥 force it to stretch full height */
}

.half-split-row.text-left .et_pb_column:last-child .et_pb_image {
  flex: 1 1 auto;
  display: flex;
}

.half-split-row.text-left .et_pb_column:last-child .et_pb_image_wrap {
  height: 100%;
  width: 100%;
  display: flex;
}

.half-split-row.text-left .et_pb_column:last-child .et_pb_image_wrap img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}


/* --------------------------------------
   TEXT RIGHT
----------------------------------------- */

.half-split-row.text-right .et_pb_column:last-child {
  align-items: center;
  justify-content: center;
}

.half-split-row.text-right .et_pb_column:last-child .et_pb_text {
  max-width: min(700px, 100%);
  width: 100%;
  display: flex;
  align-items: center;
}

.half-split-row.text-right .et_pb_column:last-child .et_pb_text_inner {
  padding-block: clamp(3rem, 6vw, 6rem);
  padding-inline: clamp(1rem, 4vw, 2rem);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}


/* IMAGE LEFT */
.half-split-row.text-right .et_pb_column:first-child {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch; /* 🔥 force full height */
}

.half-split-row.text-right .et_pb_column:first-child .et_pb_image {
  flex: 1 1 auto;
  display: flex;
}

.half-split-row.text-right .et_pb_column:first-child .et_pb_image_wrap {
  height: 100%;
  width: 100%;
  display: flex;
}

.half-split-row.text-right .et_pb_column:first-child .et_pb_image_wrap img {
  width: 100vw;
  height: 100%;
  object-fit: cover;
}


/* ----------- TYPOGRAPHY ---------------- */

.half-split-row p {
  font-size: clamp(0.875rem, 1vw, 1rem);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.half-split-row section {
  margin-bottom: 2rem;
}


/* -------- RESPONSIVE STACKING -------------- */

@media (max-width: 980px) {
  .half-split-row {
    flex-direction: column;
  }

  .half-split-row .et_pb_column {
    width: 100% !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .half-split-row .et_pb_image_wrap,
  .half-split-row .et_pb_image_wrap img {
    height: auto !important;
    width: 100% !important;
    object-fit: cover;
  }

  .half-split-row .et_pb_text_inner {
    min-height: unset !important;
    padding: clamp(2rem, 5vw, 4rem) 2rem !important;
    text-align: center;
  }

  .half-split-row.text-left {
    flex-direction: column;
  }

  .half-split-row.text-right {
    flex-direction: column-reverse;
  }
}

/* Force full flex container behavior in builder preview */
.half-split-row .et_pb_column {
  min-height: 1px; /* Prevents collapsing in builder */
}

.half-split-row .et_pb_column .et_pb_text {
  flex: 1 1 auto;
}

.half-split-row .et_pb_column .et_pb_text_inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== Force vertical stacking inside column ===== */
.column-stack-modules {
  display: flex;
  flex-direction: column;
}

.column-stack-modules > * {
  width: 100%;
}

.fix-top-padding {
  margin-top: clamp(-16px, -10vw, -96px) !important;
  padding-bottom: clamp(48px, 6vw, 96px);
}
.module-stack-top .et_pb_text_inner  {
  padding-bottom: 1rem !important;
}

/* ======== POLICY DOCS ========= */
.policy-footer-row a {
  color: var(--color-midnight-blue);
  font-weight: 700;
}

/* ===== LOGO CAROUSEL ===== */
.logo-carousel {
  width: 100%;
  padding: 1rem 0;
}

/* Swiper container */
.swiper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Swiper wrapper */
.swiper-wrapper {
  display: flex;
  align-items: stretch; /* Match height of tallest slide */
  transition-timing-function: ease;
  will-change: transform;
}

/* Each slide */
.swiper-slide {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  align-items: center;      /* ✅ Vertically center content */
  justify-content: center;  /* ✅ Horizontally center content */
  box-sizing: border-box;
  min-height: 100px;        /* ✅ Slightly taller to give vertical breathing space */
  padding: 1rem 0;          /* ✅ Even vertical padding */
}

/* Group of logos */
.logo-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6rem; /* Adjust spacing between logos */
  height: 100%;
}

/* Logo image */
.logo-group img {
  height: var(--logo-height, 60px);
  width: auto;
  display: block;
  max-height: none;
  max-width: 100%;
  transition: transform 0.3s ease;
}

/* Hover effect */
.logo-group img:hover {
  transform: scale(1.05);
}

/* MOBILE */
@media (max-width: 979px) {
  .logo-group {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
  }

  .logo-group img {
    height: var(--logo-height-mobile, 40px);
    width: auto;
  }

  .swiper-slide {
    padding: 1rem 0; /* Slight vertical space without overdoing it */
    min-height: 100px;  /* Same min-height to ensure center alignment */
  }
}

/* === CAREERS PAGE CSS === */
.three-col .et_pb_image {
  height: auto !important;
  text-align: center;
}

.three-col h4 {
  color: var(--color-gold);
}

.three-col .et_pb_image_wrap img {
  height: clamp(160px, 190px, 220px);
  width: auto;
  display: inline-block;
}

.join-team-section {
  height: clamp(400px, 30vw, 670px);
  background-position: 50% calc(30px - 6.5vw) !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  transition: background-position 0.3s ease;

  display: flex;
  flex-direction: column;
}

.join-team-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between !important; /* pushes content to top & bottom */
  padding: 20px;
}

@media (max-width: 767px) {
  .join-team-row {
    display: flex;
    flex-direction: column;
    /* remove space-between if you’ve added it before */
    justify-content: flex-start !important;
  }

  .join-now-cta {
    margin-top: 75%;      /* pushes it to the bottom */
    margin-bottom: 2rem;   /* 2rem up from the edge */
    align-self: center;    /* keeps it centred */
  }
}

/* /* ===== NEUEMORPHIC STYLES - Careers > Recruitment (not in use) ==== 
.neuemorphic-section, .hiring-section {
  background-color: whitesmoke;
}
:root {
  --color-midnight-blue: #062d51;
  --color-redwood: #a45543;
  --color-rose: #f27081;
  --color-olive: #a5b48f;
  --color-plum: #854d74;
  --color-gold: #9f8552;
  --color-coral: #f58758;
}

/* Neumorphic grid layout 
.neuemorphic-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 1rem;
  padding: 1rem;
  background: whitesmoke;
}

.division-card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    8px 8px 16px rgba(0,0,0,0.05),
   -8px -8px 16px rgba(255,255,255,0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.division-card {
  text-align: center;
}

.card-content {
  padding: 2rem;
}

/* Grid placements (optional — adjust to taste) 
.neuemorphic-row .division-card:nth-child(1) {
  grid-column: span 3;
}
.neuemorphic-row .division-card:nth-child(2) {
  grid-column: span 3;
}
.neuemorphic-row .division-card:nth-child(3) {
  grid-column: span 2;
}
.neuemorphic-row .division-card:nth-child(4) {
  grid-column: span 2;
}
.neuemorphic-row .division-card:nth-child(5) {
  grid-column: span 2;
}
.neuemorphic-row .division-card:nth-child(6) {
  grid-column: span 3;
}
.neuemorphic-row .division-card:nth-child(7) {
  grid-column: span 3;
}

/* Soft tint background gradients 
.division-card.division-midnight-blue {
  background: linear-gradient(to bottom, rgba(6, 45, 81, 0.05), #fff);
}

.division-card.division-redwood {
  background: linear-gradient(to bottom, rgba(164, 85, 67, 0.05), #fff);
}

.division-card.division-rose {
  background: linear-gradient(to bottom, rgba(242, 112, 129, 0.05), #fff);
}

.division-card.division-olive {
  background: linear-gradient(to bottom, rgba(165, 180, 143, 0.05), #fff);
}

.division-card.division-plum {
  background: linear-gradient(to bottom, rgba(133, 77, 116, 0.05), #fff);
}

.division-card.division-gold {
  background: linear-gradient(to bottom, rgba(159, 133, 82, 0.05), #fff);
}

.division-card.division-coral {
  background: linear-gradient(to bottom, rgba(245, 135, 88, 0.05), #fff);
}

/* ----- Underlines ----- 

.division-card h4 {
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid transparent;
}

.division-card.division-midnight-blue h4 {
  border-bottom-color: var(--color-midnight-blue);
}

.division-card.division-redwood h4 {
  border-bottom-color: var(--color-redwood);
}

.division-card.division-rose h4 {
  border-bottom-color: var(--color-rose);
}

.division-card.division-olive h4 {
  border-bottom-color: var(--color-olive);
}

.division-card.division-plum h4 {
  border-bottom-color: var(--color-plum);
}

.division-card.division-gold h4 {
  border-bottom-color: var(--color-gold);
}

.division-card.division-coral h4 {
  border-bottom-color: var(--color-coral);
}

/* Responsive fallback 
@media (max-width: 768px) {
  .neuemorphic-row {
    display: block;
  }
  .division-card {
    margin-bottom: 1rem;
  }
}*/

/* ----- Community - Image grid ----- */
.img-square-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
@media (max-width: 768px) {
  .img-square-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


.img-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.img-square .et_pb_image_wrap {
  position: absolute;
  inset: 0;
}

.img-square img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hiring-section {
background-color: whitesmoke;
}
.hiring-row h3 {
  color: var(--color-plum);
}
 */


/* ====================================
   Leadership Grid (Board & ELT)
==================================== */
 
.board-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem;
  width: 100%;
}

.elt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.leader-card {
  border: 1px solid var(--color-redwood);
  background: rgba(255, 255, 255, .75);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
  
}
.elt-grid .leader-card {
  border-color: var(--color-midnight-blue);
  background: rgba(240, 240, 240, .45);
}


.leader-card h6 {
  background-color: var(--color-midnight, #001f3f);
  color: white;
  padding: 0.5rem 1rem !important;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0; /* no margins so it hugs the top-left */
  font-size: var(--font-size-xs) !important;
  font-weight: 700;
  position: absolute;
  top: 0;
  left: 0;
}
.board-grid h6 {
  background-color: var(--color-redwood);
  display: none;
}

.leader-photo {
  margin: 3.5rem auto 1rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  }

.leader-photo img {
  width: 90%;
  height: auto;  
}

.board-grid .leader-photo {
  margin: 1.5rem auto 1rem;
}

.leader-card h5,
.leader-card .leader-position {
  text-align: center;
}

.leader-card h5 {
  margin: 1rem 0 0;
  color: var(--color-text);
  margin-bottom: 0 !important;
}

.leader-position {
  font-weight: 700;
  margin: 0 0 0.5rem;
  font-size: var(--font-size-sm) !important;
  color: var(--color-primary);
  line-height: var(--line-height-tight);
}
.board-grid .leader-position {
  color: var(--color-redwood);
}

/* Description - animate properly */
.leader-description {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0.5rem 1rem 0;
  text-align: left;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}
.leader-description p {
  font-size: var(--font-size-sm) !important;
  line-height: var(--line-height-tight) !important;
}

.leader-card.active .leader-description {
  max-height: 600px; /* adjust to largest expected content */
  opacity: 1;
  
}

.toggle-desc {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  margin: 0 auto 0.5rem;
  transition: transform 0.3s ease;
}

.toggle-desc svg {
  width: 30px;
  height: 20px;
  stroke: var(--color-light-grey2);
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.leader-card.active .toggle-desc svg {
  transform: rotate(180deg);
}

@media screen and (max-width: 768px) {

  .board-grid,
  .elt-grid {
    grid-template-columns: 1fr;
  }
  .board-grid h6 {
    background-color: var(--color-redwood);
    display: none !important;
  }

  .leader-card {
    padding: 0;
    margin-bottom: 0.5rem;
    border-width: 1px;
    flex-direction: column;
  }

  .leader-card h6 {
    position: relative;
    top: auto;
    left: auto;
    display: inline-block;
    margin-bottom: 1rem;
    text-align: center;
  }

  .leader-photo {
    margin: 1rem auto 1.25rem;
    max-width: 160px;
  }

  .leader-photo img {
    width: 100%;
    height: auto;
  }

  .leader-card h5 {
    margin: 0 0 0.5rem 0;
    text-align: center;
  }

  .leader-position {
    text-align: center;
    margin-bottom: 1rem;
  }

  .leader-description {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 1rem;
    margin: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
  }
  .leader-card.active .leader-description {
    max-height: 600px;
    opacity: 1;
    padding: 0.0 1rem;
    margin: 0;
  }

  .toggle-desc {
    margin: 0 auto 0.5rem;
  }
}