@font-face {
  font-family: 'Barlow Regular';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Barlow Regular'), url('../fonts/Barlow-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Medium';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Barlow Medium'), url('../fonts/Barlow-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Barlow SemiBold';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Barlow SemiBold'), url('../fonts/Barlow-SemiBold.woff') format('woff');
}

@font-face {
  font-family: 'Barlow Bold';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Barlow Bold'), url('../fonts/Barlow-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Regular';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Avenir Next LT Pro Regular'), url('../fonts/AvenirNextLTPro-Regular.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Bold';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Avenir Next LT Pro Bold'), url('../fonts/AvenirNextLTPro-Bold.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Medium';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Avenir Next LT Pro Medium'), url('../fonts/AvenirNextLTPro-Medium.woff') format('woff');
}

@font-face {
  font-family: 'Avenir Next LT Pro Medium Italic';
  font-style: normal;
  font-weight: normal;
  font-display: swap;
  src: local('Avenir Next LT Pro Medium Italic'), url('../fonts/AvenirNextLTPro-MediumIt.woff') format('woff');
}



html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Barlow Regular', sans-serif !important;
  /* Locked to design canvas (was 1vw at 1920 → 19.2px); stage scale handles sizing */
  font-size: 19.2px;
  background-color: #1a1a1a;
}

/* Tier 1: first-load ready gate */
body.app-loading #stage {
  opacity: 0;
  pointer-events: none;
}

body.app-ready #stage {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.35s ease;
}

body.app-loading [id^="hotspots-"] .hotspot-category {
  visibility: hidden;
  pointer-events: none;
}

body.app-ready [id^="hotspots-"] .hotspot-category:not(.hotspot-label-only) {
  visibility: visible;
  pointer-events: auto;
}

#app-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  background-color: #1a1a1a;
  z-index: 2000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#app-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  display: none;
}

#app-loader img {
  width: clamp(140px, 22vw, 220px);
  height: auto;
}

.app-loader-text {
  margin: 0;
  font-family: 'Barlow Regular', sans-serif;
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

.app-loader-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: #cd163f;
  border-radius: 50%;
  animation: app-loader-spin 0.8s linear infinite;
}

@keyframes app-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Phase 1: 1920×1080 stage scaled to fit viewport */
#app-shell {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #1a1a1a;
}

#stage-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background-color: #1a1a1a;
}

#stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  margin: 0;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  background-color: #dcdadc;
  overflow: hidden;
  /* Positioning context for all stage UI (videos, chrome, modals) */
  isolation: isolate;
  --solutions-modal-width: 72.395833%; /* 1390 / 1920 */
  /* Text column width beside .col-5 — used when stacked layout shrinks the dialog */
  --solutions-stacked-col-width: calc(var(--solutions-modal-width) * 0.583333333 - 23px);
}

/* Ensure hotspot layers and page backgrounds stack correctly on the stage */
#main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-anim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Video-only layers must not intercept clicks meant for hotspots above them */
#page-home > video,
#page-category,
#page-trans,
.page-anim:not(#page-home) {
  pointer-events: none;
  z-index: 1;
}

#page-trans {
  z-index: 5;
}

#page-category {
  z-index: 2;
}

#page-home {
  z-index: 0;
}

[id^="hotspots-"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.hotspot-category,
.btn-back,
.btn-home {
  pointer-events: auto;
}

/* Option A: modals + backdrop fill the stage canvas */
#stage .modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#stage .modal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Solutions modals sit below the page title bar (original top: 120px layout) */
#stage .modal.solutions {
  top: 120px;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Best viewed notice — below 768px width, any orientation; non-blocking, below stage */
#best-viewed-notice {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  margin: 0;
  padding: 8px 12px;
  text-align: center;
  font-family: 'Barlow Regular', sans-serif;
  font-size: 0.85rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.65);
  background-color: transparent;
  pointer-events: none;
  z-index: 50;
  transform: translateX(-50%) translateY(var(--best-viewed-offset, 0px));
  white-space: nowrap;
}

@media (max-width: 767px) {
  #best-viewed-notice {
    display: block;
  }
}

header {
  position: absolute;
  display: inline-block;
  bottom: 21px;
  right: 27px;
  z-index: 2000;
  pointer-events: none;
}

header img {
  max-width: 125px;
  height: auto;
  display: block;
}

/* Stage canvas video — fill parent page layer, not the viewport */
#stage .page-anim > video,
#stage #page-category video,
#stage #page-trans video,
#stage .page-anim > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  left: auto;
  top: auto;
  transform: none;
  z-index: 0;
}

.page-title {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
  width: 680px;
  height: 73px;
  z-index: 1060;
  pointer-events: none;
}

.page-title span, .menu-top span {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}


.page-title .col-left {
  background: url('../images/title-l.png') no-repeat left top;
  background-size: 100% 100%;
  width: 11.47%;
  flex: 0 0 11.47%;
  height: 100%;
}

.page-title .col-right {
  background: url('../images/title-r.png') no-repeat left top;
  background-size: 100% 100%;
  width: 11.47%;
  flex: 0 0 11.47%;
  min-width: 0;
  height: 100%;
}

.col-title {
  background: url('../images/title-bg.png') repeat-x left top;
  background-size: auto 100%;
  height: 100%;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: -1px;
  margin-right: -1px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}


#title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: -webkit-linear-gradient(45deg, #ce163f, #fe7001);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em; /* spacing for non-home pages */
  line-height: 1.1; /* increase interline feel */
  gap: 0.25rem; /* extra spacing between lines */
  font-family: 'Barlow Medium';
  font-size: 1.2rem;
}

.title-line-1 {
  font-family: 'Barlow Regular';
  font-size: 1.2rem; /* reduced */
  letter-spacing: 0;
  line-height: 1.1;
}

.title-line-2 {
  font-family: 'Barlow SemiBold';
  font-size: 1.2rem; /* reduced to match line 1 */
  letter-spacing: 0.05em; /* Photoshop tracking 50 ≈ 0.05em */
  line-height: 1.1;
}

.hotspot {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  direction: row;
}

.hotspot a.icon {
  display: inline-block;
  width: 42px;
  height: 42px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}

/* should rework */
.hotspot:hover a.icon {
  width: 42px;
  height: 42px;
}

.hotspot a.icon {
  background: transparent url('../images/btn-plus.png') no-repeat -42px 0;
  background-size: 84px 42px;
}

.hotspot:hover a.icon {
  background: transparent url('../images/btn-plus.png') no-repeat 0 0;
  background-size: 84px 42px;
}

.hotspot a.icon-book {
  background: transparent url('../images/btn-book.png') no-repeat -42px 0;
  background-size: 84px 42px;
}

.hotspot:hover a.icon-book {
  background: transparent url('../images/btn-book.png') no-repeat 0 0;
  background-size: 84px 42px;
}

.hotspot a.icon-i {
  background: transparent url('../images/btn-i.png') no-repeat -42px 0;
  background-size: 84px 42px;
}

.hotspot:hover a.icon-i {
  background: transparent url('../images/btn-i.png') no-repeat 0 0;
  background-size: 84px 42px;
}

.hotspot {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  direction: row;
}

.hotspot-category {
  display: flex;
  justify-content: center;
  position: absolute;
}

.hotspot-popover-right {
  position: absolute;
  right: 30px;
}

.hotspot-popover-right div {
  padding-left: 0;
  padding-right: 20px;
}

.hotspot-popover-left {
  margin-left: -20px;
}
/* Always show popovers like the reference */
.hotspot-popover { display: block !important; }

.hotspot-popover div {
  font-family: 'Barlow Regular';
  font-size: 0.85rem;
  height: 42px;
  width: 560px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #cd163f;
  color: #ffffff;
  border: none;
  border-radius: 0;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  text-align: left;
  padding: 16px 16px 16px 35px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.hotspot-popover-auto div {
  width: auto;
  min-width: fit-content;
  padding: 16px 20px 16px 35px;
}

.hotspot:hover .hotspot-popover div {
  background-color: #ffffff;
  color: #cd163f;
}

.hotspot-label-only {
  pointer-events: none;
}

body.hotspot-drag-mode .hotspot-label-only {
  pointer-events: auto;
}

.hotspot-label-shell {
  display: inline-block;
  background: linear-gradient(180deg, #ef732c, #ce153f);
  padding: 1.5px;
  border-radius: 13px;
  overflow: hidden;
}

.hotspot-label-inner {
  background: #fff;
  border-radius: 11px;
  padding: 0 16px;
  min-width: 140px;
  height: 42px;
  text-align: center;
  font-family: 'Barlow Regular';
  font-size: 1rem;
  line-height: 1;
  color: #cd163f;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hotspot-label-inner span {
  display: inline-block;
  width: 100%;
}

/* Hotspot drag/dev mode */
body.hotspot-drag-mode .hotspot-category {
  cursor: grab;
}

body.hotspot-drag-mode .hotspot-category.dragging {
  cursor: grabbing;
}

.hotspot-drag-label {
  position: absolute;
  top: -90px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  max-width: 260px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.72rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1300;
  pointer-events: auto;
}

body.hotspot-drag-mode .hotspot-drag-label {
  display: flex;
}

.drag-label-title {
  font-family: 'Barlow SemiBold';
  font-size: 0.75rem;
}

.drag-label-values {
  font-family: 'Barlow Regular';
}

.hotspot-drag-label button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.hotspot-drag-label button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hotspot-dev-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 260px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  z-index: 2000;
  font-family: 'Barlow Regular';
  backdrop-filter: blur(4px);
}

.hotspot-dev-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.hotspot-dev-panel__header button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.hotspot-dev-panel__header button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.hotspot-dev-panel__output {
  width: 100%;
  height: 120px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 0.68rem;
  padding: 6px;
  resize: none;
}

.hotspot-dev-panel__tip {
  font-size: 0.65rem;
  margin-top: 6px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
}

.hotspot-dev-panel__tip code {
  font-family: 'Barlow SemiBold';
  color: #ffcf88;
}

/* removed sidebar menu styles */


.sidebar-toggled {
  left: 310px;
}

.modal.right .modal-dialog,
.modal.left .modal-dialog {
  position: absolute;
  left: 0;
  bottom: 10%;
  margin: auto;
  width: 123px;
  -webkit-transform: translate3d(0%, 0, 0);
  -ms-transform: translate3d(0%, 0, 0);
  -o-transform: translate3d(0%, 0, 0);
  transform: translate3d(0%, 0, 0);
}

.modal.right.fade.show .modal-dialog {
  left: 0;
}


.modal.right .modal-content {
  height: 100%;
  background: -webkit-linear-gradient(30deg, #D83C3C, #D9453B, #DA403B);
  border-radius: 0;
  position: relative;
}

#menuModal {
  position: relative;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 1040;
}

.close {
  content: '';
  background: linear-gradient(107deg,#DA403B,#D46030, #CE612E);
  line-height: 0.9em;
  font-size: 3rem;
  font-weight: 300;
  color: #ffffff;
  text-shadow: none;
  background-position: center;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  border: none;
  right: -42px;
  top: 0;
  height: 40px;
  width: 44px;
}

.btn-home {
  position: absolute;
  left: 0;
  top: 68px;
  background: transparent url('../images/i-home.png') no-repeat 12px center;
  height: 46px;
  width: 55px;
  display: flex;
  align-items: center;
  font-family: 'Avenir Next LT Pro Bold';
  z-index: 1001;
  cursor: pointer;
}

.btn-home span {
  display: none;
}

.btn-home:hover {
  background-color: #ce1c3f;
  width: 55px;
  border-radius: 0 5px 5px 0;
}

.modal-close {
  content: '';
  background: url('../../assets/images/close.png') no-repeat;
  background-color: #fff;
  color: #ffffff;
  text-shadow: none;
  background-position: center;
  background-size: 45%;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
  position: absolute;
  border: none;
  right: -42px;
  top: 0;
  height: 32px;
  width: 36px;
}


.main-menu-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
}

.main-menu-item {
  height: 25%;
  display: flex;
  gap: 5px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #9c9c9c;
  padding: 10px 5px 0 5px;
  border: solid 2px #9c9c9c;
}

.main-menu-item p {
  font-family: 'Barlow Regular';
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 10px;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;

}

.main-menu-item:hover {
  border: solid 2px #fff;
}

.main-menu-item-active {
  clip-path: polygon(80% 0, 100% 24%, 100% 100%, 0 100%, 0 0);
  background-color: #fff;
  border: solid 2px #fff;
}

.application-status-title {
  position: absolute;
  /* Native badge art is 249×57; keep aspect ratio so the left slant
     stays parallel to title-r.png. Center vertically in the 73px title bar
     and keep the same ~62px overlap into the white right wing as the
     original design (right = -(width - overlap)). */
  top: 15px;
  right: -187px;
  width: 249px;
  height: 57px;
  z-index: 1060;
  background: url('../images/btn-application-status.png') no-repeat 0 0;
  background-size: 249px 57px;
}


.modal-content {
  border-radius: 0;
  border: none;
}

#menuModal .nav-item {
  background-color: transparent;
  width: auto;
  position: relative;
  display: inline-block;
  height: auto;
  padding: 8px 12px;
  margin: 0 16px 0 16px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid #fad9c8;
  font-family: 'Avenir Next LT Pro Medium';
  font-size: 0.9rem;
  color: #ffffff;
}

#menuModal .nav-item:first-of-type {
  border-top: 1px solid #fad9c8;
}

#menuModal .nav-item:hover {
  background-color: #f8caaf;
  color: #000000;
  border-top: 1px solid #e8d1c3;
  margin: 0 16px 0 16px;
}

.solutions.modal {
  z-index: 1050;
}

.solutions.modal {
  max-height: 100%;
}

.solutions .modal-content {
  background-color: transparent;
  font-family: 'Barlow Regular';
  overflow: visible;
  position: relative;
}

#pdfModal {
  z-index: 1050;
}

#pdfModal .modal-dialog {
  max-width: 1200px;
}

#pdfModal .modal-content {
  background-color: rgba(255, 255, 255, 0.4);
  padding: 22px 25px;
  border-radius: 25px 0 25px 25px;
  position: relative;
  overflow: visible;
}

#pdfModal .modal-body {
  padding: 0;
  overflow: hidden;
  height: 756px;
}

#pdfModal embed {
  width: 100%;
  height: 100%;
  border: none;
}

#pdfModal .modal-close {
  right: -42px;
  top: 0;
}

.solutions .modal-body {
  padding: 0;
  margin: 0;
  list-style: none;
  -ms-box-orient: horizontal;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -moz-flex;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  font-size: 0.9rem;
  overflow: visible;
  /* Matches .col-content width beside .col-5 (41.666667%) + 23px gutter */
  --solutions-text-col-width: calc(58.333333% - 23px);
}

/* Locked to stage design size — do not use viewport breakpoints; stage scale handles sizing */
#stage .solutions .modal-dialog {
  width: var(--solutions-modal-width);
  max-width: var(--solutions-modal-width);
  margin: 1.75rem auto;
  overflow: visible;
}

#videoModal .modal-dialog {
  max-width: 80%;
  margin: 30px auto;
}

#videoModal .modal-body {
  position: relative;
  padding: 0px;
}

#videoModal .btn-close {
  z-index: 1000;
  border: 2px solid #ffffff;
  position: absolute;
  right: -35px;
  top: 0;
  color: #ffffff;
  border-radius: 30px;
  background-color: #ffffff;
}

.col-content .row {
  width: 100%;
  height: 100%;
}

.col-content .col:first-child {
  text-align: left;
}

.col-content .col:last-child {
  text-align: right;
}

.col-content {
  background-color: transparent;
  border: none;
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right: 23px;
  position: relative;
  overflow: visible;
  flex: 1;
  min-width: 0;
  min-height: 720px;
  display: flex;
  flex-direction: column;
}

.modal-all-content {
  padding: 0;
  max-height: 720px;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  background-color: #f4f4f4;
  border-top-left-radius: 15px;
  overflow: hidden;
  position: relative;
}

.col-content h1 {
  font-family: 'Barlow Bold';
  font-size: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background-color: #fff;
  padding: 27px 27px 2px 27px;
  position: relative;
  z-index: 2;
  border: none;
  border-top-left-radius: 15px;
  overflow: visible;
  flex-shrink: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.col-content h1::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background-color: #fff;
  pointer-events: none;
}

.modal-all-content .title-icon {
  /* Keep native aspect ratio — never force a square crop.
     Assets: i-mom 130×112, i-process 109×131, i-safety 100×128 */
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 56px;
  object-fit: contain;
  object-position: top right;
  flex-shrink: 0;
  position: absolute;
  right: 27px;
  top: 27px;
  z-index: 3;
  display: block;
  pointer-events: none;
}

/* Reserve space so title/subtitle text does not cover the icon */
.modal-all-content:has(.title-icon) h1,
.modal-all-content:has(.title-icon) h4.subtitle-blue {
  padding-right: 90px;
}

.col-content h4.subtitle-blue {
  font-family: 'Barlow Medium';
  font-size: 1.2rem;
  color: #003e7e;
  background-color: #fff;
  margin: -2px 0;
  padding: 12px 27px 23px 27px;
  position: relative;
  z-index: 2;
  border: none;
  flex-shrink: 0;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.col-content h4.subtitle-blue::before,
.col-content h4.subtitle-blue::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #fff;
  pointer-events: none;
}

.col-content h4.subtitle-blue::before {
  top: -3px;
}

.col-content h4.subtitle-blue::after {
  bottom: -3px;
}

.modal-all-content-scrollable {
  background-color: #f4f4f4;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 27px 27px 27px;
  border-bottom-left-radius: 15px;
}

.col-content p.main-text {
  font-family: 'Barlow Regular';
  font-size: 1.05rem;
  line-height: 1.4;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
}

.col-content h5 {
  font-family: 'Barlow Regular';
}

.col-content a {
  font-family: 'Barlow Medium';
}

.anchors li {
  font-size: 1.2rem;
}

.col-content .headers {
  color: #d43559;
  display: grid;
  grid-template-columns: 1fr 2% 1fr;
  font-family: 'Barlow Medium';
  font-size: 1.3rem;
  letter-spacing: 0.1rem;
  margin-top: 10px;
  margin-bottom: 10px;
  padding: 0 !important;
}

.col-content .headers span:first-child {
  grid-column: 1;
  padding-left: 15px;
}

.col-content .headers span:last-child {
  grid-column: 3;
  text-align: right;
}

.col-content span {
  display: flex;
  gap: 5px
}

.anchors-content {
  overflow: visible;
  display: grid;
  gap: 9px;
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  box-sizing: border-box;
  position: relative;
}

.anchors-content::after {
  content: '';
  display: block;
  height: 20px;
  width: 100%;
}

.anchors-content h4 {
  font-family: 'Barlow SemiBold';
  font-size: 1.1rem;
}

.anchor-item {
  background: #e5e5e5;
  border: solid 1px #fff;
  border-radius: 10px;
  padding: 20px 27px 27px 27px;
}

.anchors-content > .anchor-item:last-child {
  margin-bottom: 0;
}

.anchor-item-content {
  display: grid;
  grid-template-columns: 1fr 2% 1fr;
  gap: 18px;
}

.anchor-item li {
  font-family: 'Barlow Regular';
  font-size: 1rem;
}

.anchor-item-content-right {
  display: flex;
  flex-direction: column;
}

.anchor-item-content-right li {
  font-family: 'Barlow Medium';
  font-size: 1rem;
  line-height: 1.5;
}

.col-img {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
  flex-basis: auto;
  width: auto;
}

.col-img img {
  width: auto;
  height: auto;
  max-height: 720px;
  display: block;
  object-fit: contain;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.btn-back {
  position: absolute;
  left: 0;
  top: 120px;
  background: transparent url(../images/btn-back.png) no-repeat 12px center;
  height: 46px;
  width: 55px;
  display: flex;
  align-items: center;
  font-family: avenir next lt pro bold;
  z-index: 1001;
  cursor: pointer
}

.btn-home span,.btn-back span {
  display: none
}

.btn-home:hover,.btn-back:hover {
  background-color: #ce1c3f;
  width: 55px;
  border-radius: 0 5px 5px 0
}

/* Narrow stage: stack solutions modals — text column on top, image below */
#stage.stage-narrow .modal.solutions {
  top: 85px;
  overflow: visible;
}

#stage.stage-narrow .solutions .modal-dialog {
  width: var(--solutions-stacked-col-width);
  max-width: var(--solutions-stacked-col-width);
  margin: 1.75rem auto;
}

#stage.stage-narrow .solutions .modal-content {
  overflow: visible;
  width: 100%;
}

#stage.stage-narrow .solutions .modal-body {
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 900px;
}

#stage.stage-narrow .solutions .col-content {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  margin-right: 0;
  overflow: visible;
  position: relative;
}

#stage.stage-narrow .solutions .modal-all-content {
  width: 100%;
  min-height: 0;
  max-height: none;
}

#stage.stage-narrow .solutions .modal-all-content-scrollable {
  overflow-y: visible;
  max-height: none;
}

#stage.stage-narrow .solutions .col-img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 16px;
  align-items: center;
  justify-content: flex-start;
}

#stage.stage-narrow .solutions .modal-close {
  right: -42px;
  top: 0;
}

#stage.stage-narrow .solutions .col-img img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

/* Keep CAPABILITIES / SOLUTIONS two-column layout on narrow stages —
   headers stay aligned with their bullet lists below. */
#stage.stage-narrow .solutions .col-content .headers,
#stage.stage-narrow .solutions .anchor-item-content {
  grid-template-columns: 1fr 2% 1fr;
  min-width: 0;
}

#stage.stage-narrow .solutions .col-content .headers span:last-child {
  grid-column: 3;
  text-align: right;
}

#stage.stage-narrow .solutions .anchor-item-content > ul,
#stage.stage-narrow .solutions .anchor-item-content-right {
  min-width: 0;
}
