/* =====================================
   ADVISORY SPEAKERS GRID
===================================== */

.advisory-section {
  --ab-navy: #101d4a;
  --ab-yellow: #ffbf19;
  --ab-text: #657493;
  --ab-border: #e7eaf4;
  --ab-background: #fffefa;
  --ab-card: #ffffff;
  --asa-cols-d: 3;
  --asa-cols-t: 2;
  --asa-cols: var(--asa-cols-d);
  --asa-mcols: 1;
  --asa-photo: 188px;
  --asa-photo-m: 188px;
  --asa-gap-x: 22px;
  --asa-gap-y: 28px;
  --asa-max: 1650px;

  position: relative;
  /* NOTE: "isolation: isolate" was removed. It created a stacking context that
     trapped the pop-up underneath the site header. */
  width: 100%;
  margin: 0;
  padding: 70px 4.2%;
  overflow: hidden;
  background: var(--ab-background);
  color: var(--ab-navy);
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

.advisory-section *,
.advisory-section *::before,
.advisory-section *::after {
  box-sizing: border-box;
}

.advisory-section [hidden] {
  display: none !important;
}

.advisory-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--asa-max);
  margin: 0 auto;
}

/* ---------- Header ---------- */

.advisory-header {
  position: relative;
  z-index: 2;
  margin: 0 auto 42px;
  text-align: center;
}

.advisory-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 17px;
}

.advisory-eyebrow-line {
  display: block;
  width: 43px;
  height: 3px;
  flex-shrink: 0;
  background: var(--ab-yellow);
}

.advisory-eyebrow > span:last-child {
  color: var(--ab-navy);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
}

.advisory-section .advisory-title {
  margin: 0 0 12px;
  color: var(--ab-navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(38px, 4vw, 62px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.8px;
}

.advisory-section .advisory-title span {
  color: var(--ab-yellow);
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.advisory-section .advisory-subtitle {
  margin: 0;
  color: var(--ab-text);
  font-family: "Inter", sans-serif;
  font-size: clamp(14px, 1.2vw, 19px);
  font-weight: 400;
  line-height: 1.7;
}

/* ---------- Grid ---------- */

.advisory-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(var(--asa-cols), minmax(0, 1fr));
  gap: var(--asa-gap-y) var(--asa-gap-x);
}

/* ---------- Cards ---------- */

.advisory-section .advisor-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 26px 24px 25px;
  overflow: hidden;
  border: 1px solid var(--ab-border);
  border-radius: 18px;
  background: var(--ab-card);
  box-shadow: 0 8px 25px rgba(16, 29, 74, 0.055);
  text-align: center;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.advisory-section .advisor-card.asa-static {
  cursor: default;
}

.advisory-section .advisor-card:not(.asa-static):hover {
  transform: translateY(-4px);
  border-color: #f3d77f;
  box-shadow: 0 14px 34px rgba(16, 29, 74, 0.10);
}

.advisory-section .advisor-card:focus-visible,
.advisory-section .asa-more-btn:focus-visible,
.advisory-section .asa-arrow:focus-visible,
.advisory-section .asa-dot:focus-visible,
.advisory-section .asa-modal-close:focus-visible,
.advisory-section .asa-modal-linkedin:focus-visible {
  outline: 3px solid var(--ab-yellow);
  outline-offset: 3px;
}

.advisory-section .advisor-card.asa-hidden {
  display: none;
}

/* ---------- Photos ---------- */

.advisory-section .advisor-photo {
  position: relative;
  flex: 0 0 var(--asa-photo);
  width: var(--asa-photo);
  height: var(--asa-photo);
  aspect-ratio: 1 / 1;
  margin: 0 auto 22px;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #06346e;
  box-shadow: 0 0 0 1px rgba(16, 29, 74, 0.08);
}

.advisory-section .advisor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.advisory-section .advisor-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, #101d4a, #344d83);
  font-family: "Poppins", sans-serif;
  font-size: calc(var(--asa-photo) * 0.22);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ---------- Info ---------- */

.advisory-section .advisor-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.advisory-section .advisor-info h3,
.advisory-section .asa-modal-name {
  margin: 0 0 10px;
  color: var(--ab-navy);
  font-family: "Poppins", sans-serif;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.advisory-section.asa-upper .advisor-info h3,
.advisory-section.asa-upper .asa-modal-name {
  text-transform: uppercase;
}

.advisory-section .advisor-accent {
  display: block;
  width: 39px;
  height: 3px;
  flex-shrink: 0;
  margin-bottom: 13px;
  border-radius: 3px;
  background: var(--ab-yellow);
}

.advisory-section .advisor-info p,
.advisory-section .asa-modal-role {
  margin: 0;
  color: var(--ab-text);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
}

/* ---------- Show more ---------- */

.advisory-section .asa-more {
  position: relative;
  z-index: 2;
  margin-top: 34px;
  text-align: center;
}

.advisory-section .asa-more-btn {
  padding: 13px 34px;
  border: 2px solid var(--ab-navy);
  border-radius: 999px;
  background: transparent;
  color: var(--ab-navy);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.advisory-section .asa-more-btn:hover {
  background: var(--ab-navy);
  color: #ffffff;
}

/* ---------- Mobile slider ---------- */

.advisory-section .asa-slider {
  position: relative;
  z-index: 2;
}

.advisory-section .asa-track {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  transition: height 0.2s ease;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.advisory-section .asa-track::-webkit-scrollbar {
  display: none;
}

.advisory-section .asa-slide {
  flex: 0 0 100%;
  min-width: 0;
  padding: 6px 4px 12px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.advisory-section .asa-slide-grid {
  display: grid;
  grid-template-columns: repeat(var(--asa-mcols), minmax(0, 1fr));
  gap: 15px;
}

.advisory-section .asa-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.advisory-section .asa-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ab-border);
  border-radius: 50%;
  background: var(--ab-card);
  color: var(--ab-navy);
  box-shadow: 0 4px 12px rgba(16, 29, 74, 0.08);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.advisory-section .asa-arrow:hover:not(:disabled) {
  background: var(--ab-yellow);
  border-color: var(--ab-yellow);
}

.advisory-section .asa-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.advisory-section .asa-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 200px;
}

.advisory-section .asa-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9cfdf;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.advisory-section .asa-dot.is-active {
  width: 26px;
  background: var(--ab-yellow);
}

/* ---------- Bio pop-up (centered, above the site header) ---------- */

.advisory-section .asa-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2147483647;      /* highest possible, sits over sticky headers */
  display: flex;
  align-items: center;      /* vertical centre */
  justify-content: center;  /* horizontal centre */
  margin: 0;
  padding: 20px;
}

.advisory-section .asa-modal-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(16, 29, 74, 0.62);
  animation: asa-fade 0.2s ease;
}

.advisory-section .asa-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 740px;
  max-height: 80vh;
  max-height: 80dvh;
  margin: auto;
  overflow-y: auto;
  padding: 36px 38px 38px;
  border-radius: 20px;
  background: var(--ab-card);
  box-shadow: 0 30px 80px rgba(16, 29, 74, 0.35);
  animation: asa-rise 0.25s ease;
}

.advisory-section .asa-modal-dialog:focus {
  outline: none;
}

.advisory-section .asa-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f3f9;
  color: var(--ab-navy);
  cursor: pointer;
  transition: background 0.2s ease;
}

.advisory-section .asa-modal-close:hover {
  background: var(--ab-yellow);
}

.advisory-section .asa-modal-head {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 30px;
}

.advisory-section .asa-modal-photo {
  --asa-photo: 130px;
  margin: 0;
}

.advisory-section .asa-modal-id {
  min-width: 0;
}

.advisory-section .asa-modal-name {
  font-size: clamp(18px, 2.4vw, 24px);
}

.advisory-section .asa-modal-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 9px 16px;
  border-radius: 8px;
  background: #0a66c2;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.advisory-section .asa-modal-linkedin:hover {
  background: #084f99;
  color: #ffffff;
}

.advisory-section .asa-modal-bio {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--ab-border);
  color: var(--ab-text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.85;
}

.advisory-section .asa-modal-bio:empty {
  display: none;
}

.advisory-section .asa-modal-bio p {
  margin: 0 0 1em;
}

.advisory-section .asa-modal-bio p:last-child {
  margin-bottom: 0;
}

.advisory-section .asa-modal-bio a {
  color: var(--ab-navy);
  text-decoration: underline;
}

html.asa-lock,
html.asa-lock body {
  overflow: hidden;
}

@keyframes asa-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes asa-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Decorations ---------- */

.advisory-section .advisory-dots {
  position: absolute;
  z-index: 0;
  width: 170px;
  height: 120px;
  background-image: radial-gradient(circle, #bbc4d6 2.5px, transparent 3px);
  background-size: 22px 22px;
  pointer-events: none;
}

.advisory-section .advisory-dots-left {
  top: 65px;
  left: -65px;
}

.advisory-section .advisory-dots-right {
  right: -60px;
  bottom: 65px;
}

.advisory-section .advisory-shape {
  position: absolute;
  z-index: 0;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 191, 25, 0.09);
  pointer-events: none;
}

.advisory-section .advisory-shape-top {
  top: -170px;
  right: -120px;
  width: 340px;
  height: 340px;
}

.advisory-section .advisory-shape-bottom {
  bottom: -220px;
  left: -170px;
  width: 390px;
  height: 390px;
}

/* =====================================
   TABLET
===================================== */

@media (max-width: 1024px) {
  .advisory-section {
    --asa-cols: var(--asa-cols-t);
    padding: 55px 4%;
  }

  .advisory-header {
    margin-bottom: 32px;
  }

  .advisory-section .advisory-title {
    font-size: clamp(34px, 4.5vw, 48px);
    letter-spacing: -1px;
  }

  .advisory-section .advisor-card {
    padding: 22px 15px;
  }

  .advisory-section .advisor-photo {
    flex-basis: min(var(--asa-photo), 160px);
    width: min(var(--asa-photo), 160px);
    height: min(var(--asa-photo), 160px);
    margin-bottom: 18px;
  }

  .advisory-section .advisor-info h3 {
    font-size: 14px;
  }

  .advisory-section .advisor-info p {
    font-size: 13px;
  }

  .advisory-section .asa-modal-photo {
    flex-basis: 130px;
    width: 130px;
    height: 130px;
  }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width: 767px) {
  .advisory-section {
    padding: 43px 20px 48px;
  }

  .advisory-header {
    margin-bottom: 27px;
  }

  .advisory-eyebrow {
    gap: 10px;
    margin-bottom: 13px;
  }

  .advisory-eyebrow-line {
    width: 30px;
    height: 2px;
  }

  .advisory-eyebrow > span:last-child {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .advisory-section .advisory-title {
    font-size: clamp(31px, 7.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -1px;
  }

  .advisory-section .advisory-subtitle {
    max-width: 450px;
    margin: 0 auto;
    font-size: 13px;
    line-height: 1.7;
  }

  .advisory-section .advisor-card {
    padding: 20px 14px;
    border-radius: 14px;
  }

  .advisory-section .advisor-photo {
    flex-basis: var(--asa-photo-m);
    width: var(--asa-photo-m);
    height: var(--asa-photo-m);
    margin-bottom: 16px;
  }

  .advisory-section .advisor-info h3 {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.55;
  }

  .advisory-section .advisor-accent {
    width: 30px;
    height: 2px;
    margin-bottom: 10px;
  }

  .advisory-section .advisor-info p {
    font-size: 13px;
    line-height: 1.65;
  }

  .advisory-section[data-mcols="2"] .advisor-info h3 {
    font-size: 12px;
  }

  .advisory-section[data-mcols="2"] .advisor-info p {
    font-size: 12px;
  }

  .advisory-section .advisory-dots {
    width: 90px;
    height: 75px;
    background-size: 16px 16px;
  }

  .advisory-section .advisory-dots-left {
    top: 80px;
    left: -30px;
  }

  .advisory-section .advisory-dots-right {
    right: -35px;
    bottom: 45px;
  }

  /* Pop-up: centered on mobile too */
  .advisory-section .asa-modal {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  .advisory-section .asa-modal-dialog {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 60vh;
    overflow-y: auto;
    padding: 28px 20px 30px;
    border-radius: 20px;
    box-sizing: border-box;
    top:30% !important;
  }

  .advisory-section .asa-modal-head {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-right: 0;
    text-align: center;
  }

  .advisory-section .asa-modal-id {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .advisory-section .asa-modal-photo {
    flex-basis: 110px;
    width: 110px;
    height: 110px;
  }
}

/* ---------- Accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  .advisory-section .advisor-card,
  .advisory-section .asa-dot,
  .advisory-section .asa-modal-backdrop,
  .advisory-section .asa-modal-dialog {
    transition: none;
    animation: none;
  }

  .advisory-section .advisor-card:not(.asa-static):hover {
    transform: none;
  }
}

/* =====================================
   CARD LAYOUTS (selected in Speakers → Layout & settings)
   Layout 1 is the default styling above.
===================================== */

/* ----- Layout 2: side by side ----- */
.advisory-section.asa-layout-2 .advisor-card {
  /*flex-direction: row;*/
  align-items: center;
  gap: 22px;
  padding: 26px 24px 25px;
  /*text-align: left;*/
}

.advisory-section.asa-layout-2 .advisor-card .advisor-photo {
  flex: 0 0 var(--asa-photo);
  width: var(--asa-photo);
  height: var(--asa-photo);
  margin: 0;
}

.advisory-section.asa-layout-2 .advisor-card .advisor-photo-placeholder {
  font-size: calc(var(--asa-photo) * 0.22);
}

/* Tablet: slightly smaller photo so the text still has room */
@media (max-width: 1024px) {
  .advisory-section.asa-layout-2 .advisor-card {
    gap: 18px;
    padding: 22px 18px;
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-photo {
    flex: 0 0 min(var(--asa-photo), 150px);
    width: min(var(--asa-photo), 150px);
    height: min(var(--asa-photo), 150px);
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-photo-placeholder {
    font-size: 33px;
  }
}

.advisory-section.asa-layout-2 .advisor-card .advisor-info {
  /*align-items: flex-start;*/
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

/* ----- Layout 3: portrait ----- */
.advisory-section.asa-layout-3 .advisor-card {
  padding: 0 0 22px;
}

.advisory-section.asa-layout-3 .advisor-card .advisor-photo {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  margin: 0 0 20px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.advisory-section.asa-layout-3 .advisor-card .advisor-photo img {
  border-radius: 0;
  object-position: center top;
}

.advisory-section.asa-layout-3 .advisor-card .advisor-photo-placeholder {
  font-size: 56px;
}

.advisory-section.asa-layout-3 .advisor-card .advisor-info {
  padding: 0 18px;
}

/* ----- Layout 4: compact list ----- */
.advisory-section.asa-layout-4 .advisor-card {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  text-align: left;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-photo {
  flex: 0 0 68px;
  width: 68px;
  height: 68px;
  margin: 0;
  border-width: 2px;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-photo-placeholder {
  font-size: 18px;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-info {
  align-items: flex-start;
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-info h3 {
  margin-bottom: 4px;
  font-size: 15px;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-accent {
  display: none;
}

.advisory-section.asa-layout-4 .advisor-card .advisor-info p {
  font-size: 13px;
  line-height: 1.5;
}

/* ----- Mobile: keep the chosen layout (side-by-side cards stay side by side) ----- */
@media (max-width: 767px) {
  .advisory-section.asa-layout-2 .advisor-card {
    gap: 14px;
    padding: 20px 16px;
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-photo {
    flex: 0 0 min(var(--asa-photo-m), 108px);
    width: min(var(--asa-photo-m), 108px);
    height: min(var(--asa-photo-m), 108px);
    border-width: 2px;
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-photo-placeholder {
    font-size: 26px;
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-info h3 {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .advisory-section.asa-layout-2 .advisor-card .advisor-info p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  .advisory-section.asa-layout-4 .advisor-card {
    padding: 12px 14px;
  }

  .advisory-section.asa-layout-4 .advisor-card .advisor-photo {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
  }

  .advisory-section.asa-layout-3 .advisor-card .advisor-photo {
    aspect-ratio: 1 / 1;
  }
}

/* ----- Mobile "stacked" style: side-by-side layouts become the classic square card ----- */
@media (max-width: 767px) {
  .advisory-section.asa-m-stack.asa-layout-2 .advisor-card,
  .advisory-section.asa-m-stack.asa-layout-4 .advisor-card,
  .advisory-section[data-mcols="2"].asa-layout-2 .advisor-card,
  .advisory-section[data-mcols="2"].asa-layout-4 .advisor-card {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 20px 14px;
    text-align: center;
  }

  .advisory-section.asa-m-stack.asa-layout-2 .advisor-card .advisor-photo,
  .advisory-section.asa-m-stack.asa-layout-4 .advisor-card .advisor-photo,
  .advisory-section[data-mcols="2"].asa-layout-2 .advisor-card .advisor-photo,
  .advisory-section[data-mcols="2"].asa-layout-4 .advisor-card .advisor-photo {
    flex: 0 0 var(--asa-photo-m);
    width: var(--asa-photo-m);
    height: var(--asa-photo-m);
    margin: 0 auto 16px;
    border-width: 3px;
  }

  .advisory-section.asa-m-stack.asa-layout-2 .advisor-card .advisor-photo-placeholder,
  .advisory-section.asa-m-stack.asa-layout-4 .advisor-card .advisor-photo-placeholder,
  .advisory-section[data-mcols="2"].asa-layout-2 .advisor-card .advisor-photo-placeholder,
  .advisory-section[data-mcols="2"].asa-layout-4 .advisor-card .advisor-photo-placeholder {
    font-size: calc(var(--asa-photo-m) * 0.22);
  }

  .advisory-section.asa-m-stack.asa-layout-2 .advisor-card .advisor-info,
  .advisory-section.asa-m-stack.asa-layout-4 .advisor-card .advisor-info,
  .advisory-section[data-mcols="2"].asa-layout-2 .advisor-card .advisor-info,
  .advisory-section[data-mcols="2"].asa-layout-4 .advisor-card .advisor-info {
    align-items: center;
    flex: 1 1 auto;
    width: 100%;
  }

  .advisory-section.asa-m-stack.asa-layout-4 .advisor-card .advisor-accent,
  .advisory-section[data-mcols="2"].asa-layout-4 .advisor-card .advisor-accent {
    display: block;
  }
}

/* =====================================
   POP-UP OVER STICKY HEADER (Elementor)
   While a pop-up is open the page gets html.asa-lock,
   so we push the sticky header and its spacer underneath.
===================================== */

html.asa-lock .elementor-sticky,
html.asa-lock .elementor-sticky--active,
html.asa-lock .elementor-sticky--effects,
html.asa-lock .elementor-sticky__spacer,
html.asa-lock .ekit-template-content-header,
html.asa-lock .ekit-template-content-header *[data-settings*="sticky"],
html.asa-lock header,
html.asa-lock [data-elementor-type="header"],
html.asa-lock [data-elementor-type="wp-post"] .elementor-sticky {
  z-index: 0 !important;
}

/* =====================================
   FIX: make the pop-up fixed to the SCREEN (not to a parent section)
   Elementor entrance animations / transforms on a parent make
   "position: fixed" behave like "absolute" inside that parent, which is why the
   pop-up was cut off at the bottom and the header stayed on top.
   While a pop-up is open (html.asa-lock) we remove those on every parent.
===================================== */

html.asa-lock :has(.asa-modal),
html.asa-lock :has(.asa-modal) .animated {
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  contain: none !important;
  content-visibility: visible !important;
  will-change: auto !important;
  animation: none !important;
  translate: none !important;
  scale: none !important;
  rotate: none !important;
}

/* Pop-up: always centred in the visible screen, desktop + mobile */
html.asa-lock .asa-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  z-index: 2147483647 !important;
}

html.asa-lock .asa-modal[hidden] {
  display: none !important;
}

html.asa-lock .asa-modal .asa-modal-dialog {
  margin: 0 auto !important;
  max-height: calc(100vh - 40px) !important;
  max-height: calc(100dvh - 40px) !important;
}

@media (max-width: 767px) {
  html.asa-lock .asa-modal {
    padding: 14px !important;
  }

  html.asa-lock .asa-modal .asa-modal-dialog {
    max-width: 100% !important;
    max-height: calc(100dvh - 28px) !important;
    padding: 56px 18px 24px !important;
    border-radius: 18px !important;
  }

  .advisory-section .asa-modal-close {
    top: 10px;
    right: 10px;
  }

  .advisory-section .asa-modal-photo {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }

  .advisory-section .asa-modal-bio {
    margin-top: 18px;
    padding-top: 16px;
    font-size: 14px;
    line-height: 1.75;
  }
}

/* =====================================
   MOBILE / TABLET: hide the sticky header while the pop-up is open
   (z-index alone is not enough on mobile, so we hide it with visibility,
   which keeps its space and avoids any layout jump behind the dark overlay)
===================================== */

@media (max-width: 1024px) {
  html.asa-lock .ekit-template-content-header,
  html.asa-lock .ekit-template-content-header *,
  html.asa-lock [data-elementor-type="header"],
  html.asa-lock [data-elementor-type="header"] *,
  html.asa-lock .elementor-sticky,
  html.asa-lock .elementor-sticky * {
    visibility: hidden !important;
  }

  /* make sure the pop-up itself stays visible */
  html.asa-lock .asa-modal,
  html.asa-lock .asa-modal * {
    visibility: visible !important;
  }
}

/* =====================================
   MOBILE: BOTTOM-SHEET POP-UP
   Sheet slides up from the bottom, full width, rounded top corners.
   (Overrides the older bottom-sheet rule, incl. "bottom: -15%")
===================================== */

@keyframes asa-sheet {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* =====================================
   MOBILE: CENTERED POP-UP (nudged 10% below center, shorter height)
===================================== */

@media (max-width: 767px) {
  html.asa-lock .advisory-section .asa-modal {
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 16px 20px!important;
  }

  html.asa-lock .advisory-section .asa-modal .asa-modal-dialog {
    position: relative !important;
    top: 10dvh !important;          /* 10% below the exact center */
    bottom: auto !important;
    width: 100% !important;
    max-width: 420px !important;
    height: auto !important;
    max-height: 100vh !important;    /* smaller height on mobile */
    max-height: 100dvh !important;
    margin: 0 auto !important;
    padding: 48px 18px 12vh !important;
    overflow-y: auto !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(16, 29, 74, 0.35) !important;
    animation: asa-rise 0.25s ease !important;
  }

  /* remove the old bottom-sheet drag handle */
  html.asa-lock .advisory-section .asa-modal .asa-modal-dialog::before {
    content: none !important;
    display: none !important;
  }

  .advisory-section .asa-modal-close {
    top: 10px;
    right: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.asa-lock .advisory-section .asa-modal .asa-modal-dialog {
    animation: none !important;
  }
}


/* Popover reset: keep the pop-up looking exactly as before */
.advisory-section .asa-modal[popover] {
  background: transparent;
  border: 0;
  color: inherit;
  overflow: visible;
  max-width: none;
  max-height: none;
}

.advisory-section .asa-modal::backdrop {
  background: transparent;
}

/* The portal wrapper copies the section's padding and background,
   which adds an empty cream block at the bottom of the page. Remove it. */
.advisory-section.asa-portal {
  position: static !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: none !important;
}


/* Hide the site header while a speaker pop-up is open */
html.asa-lock .ekit-template-content-header,
html.asa-lock .ekit-template-content-markup,
html.asa-lock .elementor-location-header,
html.asa-lock [data-elementor-type="header"],
html.asa-lock .elementor-sticky,
html.asa-lock .elementor-sticky__spacer {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: none !important;
}