
/* -------------------------
   PAGE HEADER VISIBILITY
------------------------- */



/* ---------- POLICY HEADER BLOCKS ---------- */
.policy-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 2rem 0;
}
.policy-header-row > .et_pb_column {
  display: flex;
  align-items: center;
}
.policy-header-mob {
  display: none;
}

.page-title {
  margin: 0;
  padding: 0;
}
/* --- Button right alignment fix (Policy pages) --- */
/* Shrink the last column to fit its content, and right-align it */
.tight-button-row .et_pb_column_1_4.et-last-child {
  width: auto !important;
  flex: 0 0 auto !important;
  padding-right: 0 !important;
  margin-left: auto !important;
}
/* Force the button wrapper to align right */
.tight-button-row .et_pb_button_module_wrapper {
  text-align: right !important;
}
.tight-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}



@media (max-width: 767px) {
  .policy-header-mob {
    display: block;
    padding: 0.5rem 0 !important;
    /*margin: 80px auto 0 auto !important;*/
    position: relative !important;
  }
  .policy-header-section {
    display: none;
  }
  h2.et_pb_module_heading {
    margin-bottom: 0 !important;
  }
}


/* --------------- Custom Header - No Divi 250528 --------------- */
/* ========== Custom Header Section ========== */

.custom-header {
  position: relative;
  height: clamp(400px, 20vw, 550px);
  overflow: hidden;
  z-index: 1; /* Lower z-index */
}

.header-image {
  position: absolute;
  top: 0;
  left: 50vw;
  width: 50vw;
  height: 100%;
  background-repeat: no-repeat;
  background-position: right top;
  background-size: cover;
  z-index: 1;
  pointer-events: none;
}

.header-inner {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  z-index: 2;
}

.custom-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  z-index: 2;
}

.header-content {
  max-width: 570px;
  width: 100%;
  padding: 4rem 0 4rem 2rem;
  text-align: left;
  position: relative;
  z-index: 3;
}

.header-content > * {
  max-width: 570px;   /* 50% of 1140px */
  margin-left: 0;
  margin-right: auto;
}

/* Typography */
.header-content h6 {
  font-size: var(--font-size-sm);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--color-coral);
}

.header-content h1 {
  color: white;
}

.header-text p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-highlight-grey);
}

@media (max-width: 1660px) {
  .custom-header {
    overflow-y: visible;
    overflow-x: hidden;
  }
  .header-image {
    background-position: 0% center;
  }
}
@media (max-width: 980px) {
  .custom-header {
    padding-top: 0;
  }
  .header-image {
    background-position: 0% 0%;
    background-size: cover;
  }
  .header-inner {
    margin-top: -34px;
  }
  .header-content {
    width: 55vw;
  }
}
@media (max-width: 768px) {
  .header-content {
    width: 100%;
    padding-top: 5rem !important;
  }
  .header-inner {
    margin-top: -63px;
  }
  .header-text p {
    font-size: 16px !important;
  }
}




/* Optional: fade in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background color classes using your CSS variables */
.bg-primary        { background-color: var(--color-primary); }
.bg-grey           { background-color: var(--adica-grey); }
.bg-highlight-grey { background-color: var(--color-highlight-grey); }
.bg-midnight-blue  { background-color: var(--color-midnight-blue); }
.bg-redwood        { background-color: var(--color-redwood); }
.bg-rose           { background-color: var(--color-rose); }
.bg-olive          { background-color: var(--color-olive); }
.bg-plum           { background-color: var(--color-plum); }
.bg-gold           { background-color: var(--color-gold); }
.bg-coral          { background-color: var(--color-coral); }

/* ======== Text Color Overrides by Background ======== */

/* Adica Teal */
.bg-primary h6 { color: #caff91; }
.bg-primary h1 { color: #ffffff; }
.bg-primary p  { color: #ddf4dd; }

/* Adica Grey */
.bg-grey h6 { color: #36a599; }
.bg-grey h1 { color: #ffffff; }
.bg-grey p  { color: #dcdcdc; }

/* Light Grey */
.bg-highlight-grey h6 { color: #006e99; }
.bg-highlight-grey h1 { color: #003a52; }
.bg-highlight-grey p  { color: #ebebeb; }

/* Midnight Blue */
.bg-midnight-blue h6 { color: #59afff; }
.bg-midnight-blue h1 { color: #ffffff; }
.bg-midnight-blue p  { color: #dcdcdc; }

/* Redwood */
.bg-redwood h6 { color: #fffd96; }
.bg-redwood h1 { color: #ffffff; }
.bg-redwood p  { color: #fff9e1; }

/* Olive */
.bg-olive h6 { color: #5C3350; }
.bg-olive h1 { color: #29431C; }
.bg-olive p  { color: #29431C; }

/* Plum */
.bg-plum h6 { color: #73F8FF; }
.bg-plum h1 { color: #ffffff; }
.bg-plum p  { color: #dcdcdc; }

/* Gold */
.bg-gold h6 { color: #ffffff; }
.bg-gold h1 { color: #453714; }
.bg-gold p  { color: #000000; }

/* Coral */
.bg-coral h6 { color: #FFF2EC; }
.bg-coral h1 { color: #453530; }
.bg-coral p  { color: #453530; }
.header-image-mobile {
  display: none;
}

@media (max-width: 767px) {
  /* Hide desktop image */
  .header-image,
  .secondary-nav-row {
    display: none !important;
  }

  /* Show mobile image */
  .header-image-mobile {
    display: block;
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: top center; /* adjust to prevent head cutoff */
    background-repeat: no-repeat;
    margin-top: 1rem;
    overflow: visible;
    position: relative;
    z-index: 11;
  }

  /* Section adjustments */
  .custom-header {
    height: auto;
    /* padding-top: 4rem; /* space for sticky nav */
    overflow-y: hidden;
    overflow-x: hidden;
  }

  .custom-header::before {
    background: none;
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    z-index: 2;
    position: relative;
  }

  .header-content {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 4rem 1.5rem 2rem;
    text-align: left;
    z-index: 3;
  }

  .header-content > * {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* === ANZIIF AWARD - FLOATING BADGE === */
.floating-award-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  max-width: clamp(140px, 12vw, 220px);
  pointer-events: none;
  animation: fadeInUp 0.8s ease-out both;
}

.floating-award-badge img {
  width: 100%;
  height: auto;
  display: block;
}

/* Hide badge on mobile */
@media (max-width: 767px) {
  .floating-award-badge {
    display: none;
  }
}