/* ============================================================
   POPUP MODULE — popup.css
   ESSAA brand palette
     Navy:       #1a2d5a
     Red:        #c0272d
     Blue:       #2d5fa6
     Light blue: #b8d4e8
   ============================================================ */

/* --- Overlay ------------------------------------------------ */
#popup_module_content {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

#popup_module_content.is-visible {
  display: block;
}

.popup_overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 45, 90, 0.72); /* navy tint */
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Transparent background variant */
#popup_module_content.transparent .popup_overlay {
  background: transparent;
  pointer-events: none;
}

/* Close button inside the overlay (top-right corner) */
.popup_overlay .popup_close {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 16px 0 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.popup_overlay .popup_close:hover {
  opacity: 1;
}

.popup_overlay .popup_close .fa {
  font-size: 18px;
}

/* --- Popup container --------------------------------------- */
.popup_outer {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 20px;
  box-sizing: border-box;
}

.popup_inner {
  pointer-events: all;
  width: 100%;
  max-width: 870px;
  max-height: 90vh;
  /*overflow-y: auto;*/
  animation: popupFadeIn 0.3s ease;
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Box --------------------------------------------------- */
.popup_box {
  position: relative;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 48px rgba(26, 45, 90, 0.35);
  overflow: hidden;
  /* Navy accent bar across the top */
  border-top: 5px solid #1a2d5a;
}

/* Close button inside the box */
.popup_box > .popup_close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2d5a;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.popup_box > .popup_close:hover {
  color: #c0272d;
}

.popup_box > .popup_close .fa {
  font-size: 18px;
}

/* --- Flex row (image + text) ------------------------------- */
.flexRow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: 300px;
}

.flexItem {
  box-sizing: border-box;
  flex: 1 1 auto;
  padding:1em;
}

.oneHalf {
  flex: 0 0 50%;
  max-width: 50%;
}

/* --- Image pane ------------------------------------------- */
.pop_image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #b8d4e8; /* light blue fallback */
  min-height: 240px;
}

/* --- Text pane -------------------------------------------- */
.bee-popup-container div.pop_text {
  padding: 44px 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.pop_text .h2 {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #1a2d5a; /* ESSAA navy */
}

/* Body copy */
.pop_text p {
  margin: 0 0 20px;
  color: #333;
  line-height: 1.65;
}
.bee-popup-container .button a{color: #fff;}

.pop_text .button:hover {
  background: #a01f24;
  color: #fff;
}

/* --- Responsive ------------------------------------------- */
@media (max-width: 640px) {
  .oneHalf {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .pop_image {
    min-height: 200px;
  }

  .pop_text {
    padding: 30px 22px 26px;
  }

  .pop_text .h2 {
    font-size: 1.25rem;
  }
}