body {
  margin: 0;
  background-color: #fdfdfd;
  font-family: 'Lexend', sans-serif;
}

main {
  flex: 1;
  max-width: 1000px;
  margin: 1rem auto;
  padding: 0 1rem 1.5rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-family: 'Crimson Pro', serif;
  color: #153357
}

h2 {
  font-size: 2.3rem;
  margin: 3rem 0rem 0rem 0rem;
  font-family: 'Crimson Pro', serif;
  color: #153357;
  font-weight: 600;
}

h3 {
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
  font-family: 'Crimson Pro', serif;
  color: #153357;
  font-weight: 500;
}

h4 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
  font-family: 'Crimson Pro', serif;
  color: #153357;
  font-weight: 500;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-weight: 300;
  color: #153357;
}

strong {
  font-weight: 500;
  color: #153357;
}

.subheading {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: #153357;
  font-family: 'Crimson Pro', serif;
}

li {
  font-size: 1.1rem;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  font-weight: 400;
  color: #153357;
}

.content-divider {
  border: none;
  border-top: 1.5px solid #e5e7eb;
  margin: 2.5rem 0;
  width: 100%;
}

.content-divider-blank {
  border: none;
  margin: 2.5rem 0;
  width: 100%;
}

.text-block {
  margin: 0rem 5rem;
}

@media (max-width: 768px) {
  .text-block {
    margin: 0rem 0.5rem;
  }
}

/* half-text-block styling */
.half-text-block-inset {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  margin: 1.75rem 0 0;
  padding: 1rem;
  border: 3px dotted #93939353;
  border-radius: 16px;
  background: #f3f8ff;
}

.half-text-block-inset-image {
  width: min(280px, 35%);
  min-height: 180px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

.half-text-block-inset-content {
  flex: 1;
  display: flex;
  align-items: center;
}

/*regular half-text-block styling (not inset)*/
.half-text-block {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin: 1.5rem 0 2.5rem;
  flex-wrap: nowrap;
}

.half-text-block-image {
  width: min(280px, 40%);
  min-height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #93939353;
  margin-bottom: auto;
  margin-top: 0.5rem;
}

.half-text-block-image-circular {
  flex: 0 0 min(280px, 25%);
  height: min(280px, 25%);
  width: min(280px, 25%);
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  border: 1px solid #93939353;
}

.half-text-block-content {
  display: flex;
  flex: 2;
  align-items: center;
  margin-bottom: auto;
}

.half-text-block-content p {
  margin-bottom: 0;
}

.page-quote {
  flex: 1;
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #153357;
  background: #f3f8ff;
  border-radius: 0 14px 14px 0;
  align-self: stretch;
  display: flex;
  align-items: top;
}

.page-quote p {
  margin: 0;
  /*font-family: 'Crimson Pro', serif;*/
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: #153357;
}

@media (max-width: 768px) {
  .half-text-block {
    gap: 0.5rem;
    flex-direction: column-reverse;
    margin-bottom: 0;
  }

  .page-quote {
    font-size: 1.15rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
  }

  .half-text-block-content {
    width: 100%;
    flex: none;
    margin-top: 0;
  }

  .half-text-block-image-circular {
    width: 75%;
    flex: none;
  }

  .half-text-block-image {
    width: 100%;
    height: 100%;
    flex: none;
    width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
  }
}

/* Navigation styling */
:root {
  --nav-text: #fff;
  --nav-bg: rgba(255, 255, 255, .1);
  --nav-border: #fff;
  --nav-hover-bg: #fafafa;
  --nav-hover-text: #153457;
  --nav-shadow: 0 1px 8px rgba(0, 0, 0, .35);
  --transition: 0.2s;
  --transition-ease: 0.2s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: #18385eed;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #153457;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .4);
}

.site-header .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: .45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.site-title {
  color: #fff;
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding-top: .25rem;
}

.site-title img {
  display: block;
  height: 34px;
  width: auto;
}

.nav-btn {
  color: var(--nav-text);
  text-decoration: none;
  font-weight: 500;
  background: var(--nav-bg);
  border: 1.5px solid var(--nav-border);
  padding: .35rem .75rem;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
  border-color: transparent;
  box-shadow: var(--nav-shadow);
}

.nav-btn.active {
  background: #ffd500;
  border-color: #ffd500;
  color: #153457;
  font-weight: 600;
}

/* These are where you control the colours for the nav button variants */
.nav-btn--pink {
  --nav-bg: #fafafa;
  --nav-border: #fafafa;
  --nav-text: #153457;
}

.nav-btn--pink:hover {
  --nav-hover-bg: #e6f1ff;
  --nav-hover-text: #153457;
}

.nav-btn--green {
  --nav-bg: #fafafa;
  --nav-border: #fafafa;
  --nav-text: #153457;
}

.nav-btn--green:hover {
  --nav-hover-bg: #e6f1ff;
}

.nav-btn--yellow {
  --nav-bg: #fafafa;
  --nav-border: #fafafa;
  --nav-text: #153457;
}

.nav-btn--yellow:hover {
  --nav-hover-bg: #e6f1ff;
}

.nav-toggle {
  display: none;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  padding: .45rem .7rem;
  cursor: pointer;
}

.nav-toggle-icon {
  display: block;
  width: 18px;
  height: 18px;
  background: url("../images/menu_hamburger.svg") center/contain no-repeat;
  transition: var(--transition);
}

.site-header.nav-open .nav-toggle-icon {
  background-image: url("../images/close_white.svg");
}

.site-nav a {
  margin-left: .35rem;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  margin-left: .35rem;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 12px;
}

.nav-dropdown>a::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: .25rem;
  background: url("../images/arrow_down_navy.svg") center/contain no-repeat;
  transform: rotate(0deg);
  transform-origin: center;
  transition: var(--transition);
}

.nav-dropdown>a {
  margin-left: 0;
}

/* Arrow handling based on layout/interaction state */
.nav-dropdown.is-open>a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  padding: .25rem;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  border-radius: 16px;
  background: #fdfdfd;
  border: 2px solid #153457;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.12);
}

/* Dynamic Open State (Used for Tablets/Mobile via JS Toggle) */
.nav-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* Desktop Hover Capabilities Engine */
@media (hover: hover) and (min-width: 851px) {

  .nav-dropdown:hover>a::after,
  .nav-dropdown:focus-within>a::after {
    transform: rotate(180deg);
  }

  .nav-dropdown:hover .dropdown-menu,
  .nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.dropdown-menu a {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  position: relative;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: transparent;
  color: #153457;
  box-shadow: none;
}

.dropdown-menu a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: .25rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-ease);
}

.dropdown-menu a:hover::after,
.dropdown-menu a:focus-visible::after {
  transform: scaleX(1);
}

/* Dropdown variants */
.nav-dropdown--pink {
  --dropdown-panel-bg: #ffffff;
  --dropdown-panel-border: #18385EED;
  --dropdown-item-bg: transparent;
  --dropdown-item-text: #153457;
  --dropdown-item-border: transparent;
  --dropdown-item-hover-bg: #18385EED;
  --dropdown-item-hover-text: #153457;
  --dropdown-item-hover-border: transparent;
}

.nav-dropdown--pink .dropdown-menu a.nav-btn--pink {
  background: var(--dropdown-item-bg);
  color: var(--dropdown-item-text);
  border: 1.5px solid var(--dropdown-item-border);
}

.nav-dropdown--pink .dropdown-menu a.nav-btn--pink:hover,
.nav-dropdown--pink .dropdown-menu a.nav-btn--pink:focus-visible {
  background: transparent;
  border-color: var(--dropdown-item-hover-border);
}

.nav-dropdown--pink .dropdown-menu a.nav-btn--pink:hover::after,
.nav-dropdown--pink .dropdown-menu a.nav-btn--pink:focus-visible::after {
  background: var(--dropdown-item-hover-bg);
}

.nav-dropdown--pink .dropdown-menu a::after {
  background: var(--dropdown-item-hover-bg);
}

.nav-dropdown--green {
  --dropdown-panel-bg: #ffffff;
  --dropdown-panel-border: #18385EED;
  --dropdown-item-bg: transparent;
  --dropdown-item-text: #153457;
  --dropdown-item-border: transparent;
  --dropdown-item-hover-bg: #18385EED;
  --dropdown-item-hover-text: #153457;
  --dropdown-item-hover-border: transparent;
}

.nav-dropdown--green .dropdown-menu a.nav-btn--green {
  background: var(--dropdown-item-bg);
  color: var(--dropdown-item-text);
  border: 1.5px solid var(--dropdown-item-border);
}

.nav-dropdown--green .dropdown-menu a.nav-btn--green:hover,
.nav-dropdown--green .dropdown-menu a.nav-btn--green:focus-visible {
  background: transparent;
  border-color: var(--dropdown-item-hover-border);
}

.nav-dropdown--green .dropdown-menu a.nav-btn--green:hover::after,
.nav-dropdown--green .dropdown-menu a.nav-btn--green:focus-visible::after {
  background: var(--dropdown-item-hover-bg);
}

.nav-dropdown--green .dropdown-menu a::after {
  background: var(--dropdown-item-hover-bg);
}

/* Mobile & Tablet Specific Layout Breakpoint */
@media (max-width: 850px) {
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .half-text-block {
    flex-direction: column-reverse;
    gap: 1rem;
  }

  .half-text-block-image {
    width: 100%;
    min-height: 0;
  }

  .page-quote {
    margin-top: 1rem;
  }

  .site-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    gap: 0.25rem;
    padding: 1rem 0;
    background: #18385eed;
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255, 255, 255, .12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: 0.4s;
  }

  .site-header.nav-open .site-nav {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .nav-dropdown>a {
    width: calc(100% - 1.5rem);
    margin: 0.4rem .75rem;
    box-sizing: border-box;
    justify-content: space-between;
    padding: .5rem 1rem;
  }

  .nav-dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-bottom: 0;
  }

  .nav-dropdown::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: rgba(231, 231, 231, 0.062);
    border: none;
    border-radius: 16px;
    margin: 0rem 1rem;
    width: calc(100% - 2rem);
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height var(--transition);
  }

  .nav-dropdown.is-open .dropdown-menu {
    max-height: 500px;
    padding: 0.5rem;
  }

  .nav-dropdown--pink,
  .nav-dropdown--green,
  .nav-dropdown--yellow {
    margin-bottom: 0;
    --dropdown-item-text: #ffffff;
    --dropdown-item-hover-bg: #ffffff;
  }
}


/* Hero banner styling */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  /*padding: 3.5rem 1rem;*/
  /* responsive padding so height fits content */
  text-align: center;
  border-bottom: 3px solid #153457;
  box-sizing: border-box;
  height: auto;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  /*used to be 50*/
  background: linear-gradient(to top, #fafafaeb 10%, #fafafae0 30%, rgba(255, 255, 255, 0) 90%);
  pointer-events: none;
  z-index: 0;
  backdrop-filter: blur(2px);
}

.hero .container {
  position: relative;
  max-width: 1000px;
  max-height: fit-content;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  margin-top: auto;
  z-index: 3;
}

/* logo overlay centered in hero */
.hero-logo-wrapper {
  position: relative;
  /* keep in flow so hero height fits contents */
  z-index: 2;
  /* above gradient */
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  /* responsive width to fit viewport */
  max-width: 920px;
  /* cap on large screens */
  box-sizing: border-box;
  height: auto;
  pointer-events: none;
  padding: 2rem;
  margin: 4rem 1rem;
}

.hero-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1.6, 1.1);
  transform-origin: center center;
  width: 100%;
  height: 120%;
  border-radius: 50% / 42%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 26%, rgba(255, 255, 255, 0.0) 72%);
  filter: blur(12px);
  z-index: 1;
  /* behind logo but above hero background */
  pointer-events: none;
}

.hero-logo {
  position: relative;
  display: block;
  width: 420px;
  max-width: 100%;
  height: auto;
  opacity: 0.98;
  z-index: 2;
  pointer-events: none;
  margin-bottom: 1rem;
}

/* tagline under the hero logo */
.hero-tagline {
  width: 80%;
  border-top: 2px solid rgba(21, 51, 87, 0.35);
  color: #153457;
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.15;
  text-align: center;
  text-transform: none;
  z-index: 2;
  pointer-events: none;
  padding-top: 1rem;
}

.hero-title h1 {
  position: static;
  margin: 0 1rem 1.5rem;
  align-self: flex-start;
  z-index: 2;
  pointer-events: none;
  text-align: left;
  overflow-wrap: break-word;
  font-size: clamp(2.8rem, 7vw, 4rem);
  z-index: 2;
}

@media (max-width: 1000px) {
  .hero-halo {
    width: 100%;
    height: calc(100% + 120px);
    min-width: 560px;
    min-height: 320px;
  }

  .hero-logo {
    width: 360px;
  }

  .hero-tagline {
    width: 65%;
    font-size: 1.15rem;
    margin-top: 16px;
  }
}

@media (min-width: 1030px) {
  .hero-title h1 {
    margin-left: 0;
  }
}


@media (max-width: 600px) {
  .hero-halo {
    width: 100%;
    height: calc(100% + 100px);
    min-width: 380px;
    min-height: 220px;
    filter: blur(10px);
  }

  .hero-logo {
    width: 220px;
  }

  .hero-tagline {
    width: 80%;
    font-size: 1rem;
    margin-top: 14px;
    padding-top: 10px;
  }
}

/* image styling (global) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* for pages with a sidebar */
.page-content {
  display: flex;
  max-width: 1000px;
  margin: 1rem auto;
  gap: 2.5rem;
}

.page-main {
  flex: 1;
  min-width: 0;
}

/* Sidebar styling */
.sidebar {
  width: 250px;
  background: #f8f9fa;
  padding: 0rem 0.55rem 0.3rem 0.55rem;
  border-radius: 16px;
  border: 1px solid #c7d2e18f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 90px;
  height: fit-content;
  margin-top: 0.95rem;
}

.sidebar h3 {
  margin: 0.75rem 0;
  margin-left: 0.8rem;
}

/* Sidebar toggle button styling */
.sidebar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.7rem 0.5rem 0.4rem;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #153357;
  font-family: 'Crimson Pro', serif;
  font-weight: 600;
  font-size: 1.6rem;
  cursor: pointer;
}

.sidebar-toggle::after {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: url("../images/icons/icon_plus_navy.svg") center/contain no-repeat;
  transition: transform 0.2s ease;
}

.sidebar.is-expanded .sidebar-toggle::after {
  transform: rotate(180deg);
  background: url("../images/icons/icon_minus_navy.svg")
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;

}

.sidebar li {
  margin-bottom: 0.25rem;
}

.sidebar a {
  color: #007bff;
  text-decoration: none;
  display: block;
  padding: 0.25rem 0.8rem;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  text-decoration: none;
  font-weight: 400;
  line-height: 1.35;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.sidebar a:hover {
  text-decoration: none;
  background-color: rgba(255, 255, 255, 0.751);
  color: #007bff;
  border-color: none;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-main h1,
.page-main h2,
.page-main h3,
.page-main h4,
.page-main h5,
.page-main h6 {
  scroll-margin-top: 100px;
}

/* indented subheadings */
.sidebar .toc-subheading {
  margin-left: 1rem;
}

/* active heading tracking */
.sidebar a.active {
  color: #153357;
  background-color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Responsive sidebar */
@media (max-width: 768px) {
  .page-content {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .sidebar {
    width: auto;
    margin-top: 0.5rem;
    order: -1;
    position: static;
    top: auto;
  }

  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar h3 {
    display: none;
  }

  .sidebar.is-collapsed ul {
    display: none;
  }
}

/* card component styling; for image blocks */
.card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e4e4e4;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-height: 144px;
  position: relative;
  overflow: hidden;
  margin: 1.5rem 0 2rem;
}

/* team section styling */
.team-section {
  margin-top: 2rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.875rem;
  margin-top: 2rem;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.2rem 1.2rem;
  /*background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);*/
  border: 1px solid #dfe8f3;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.team-card h3 {
  margin-top: 1.7rem;
  margin-bottom: 0rem;
  font-size: 1.6rem;
}

.team-bio p {
  margin: 0;
  font-size: 0.95rem;
  color: #153457;
  font-weight: 300;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.team-role {
  margin: 0.5rem 0 1rem;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 600;
}

.team-credentials {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: #153457;
  font-weight: 400;
}

.team-avatar {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #93939353;
  /* box-shadow: 0 4px 8px rgba(21, 51, 87, 0.12); */
  color: #ffffff;
  font-family: 'Crimson Pro', serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-avatar {
    width: 116px;
    height: 116px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.card:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.lottie-card {
  padding: 1rem;
  border-radius: 22px;
  gap: 0.85rem;
}

.lottie-label {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}

.lottie-player {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0.85rem;
}

.lottie-player-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
  border-radius: 16px;
  border: 1px solid #d8e3ef;
}

.lottie-player-canvas {
  position: absolute;
  inset: 0;
}

.lottie-player-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  margin: 0.2rem 0 0.5rem;
  padding-right: 0.5rem;
}

.lottie-player-toggle {
  border: 0;
  border-radius: 999px;
  background: #153457;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.18);
}

.lottie-player-toggle img {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  pointer-events: none;
}

.lottie-player-toggle:hover,
.lottie-player-toggle:focus-visible {
  transform: translateY(-1px);
  background: #1c4a7b;
  box-shadow: 0 6px 14px rgba(21, 51, 87, 0.24);
}

.lottie-player-toggle:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.lottie-player-scrubber {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.lottie-player-scrubber-label {
  font-size: 0.85rem;
  color: #4a5a6a;
  font-weight: 500;
}

.lottie-player-range {
  width: 100%;
  accent-color: #153457;
}

@media (max-width: 640px) {
  .lottie-card {
    padding: 0.85rem;
  }

  .lottie-player {
    cursor: pointer;
  }

  .lottie-player-controls {
    grid-template-columns: 0fr 1fr;
    gap: 0.6rem;
  }

  .lottie-player-toggle {
    width: 3rem;
  }
}

.card-carousel {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0 2rem;
  padding: 1rem;
  position: relative;
  border: 1px solid #d8e3ef;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 4px 6px rgba(21, 51, 87, 0.08);
}

.card-carousel:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.card-carousel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}

.card-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.card-carousel-label {
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0;
}

.card-carousel-status {
  text-align: right;
  font-weight: 300;
  font-size: 0.85rem;
  margin: 0;
  margin-top: auto;
  flex: 1 0 auto;
}

.card-carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.card-carousel-footer .card-carousel-controls {
  flex: 0 0 auto;
}

.card-carousel-button {
  border: 1px solid #c6d3e2;
  border-radius: 999px;
  background: #ffffff;
  color: #153457;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.card-carousel-button:hover:not(:disabled),
.card-carousel-button:focus-visible:not(:disabled) {
  background: #153457;
  border-color: #153457;
  color: #ffffff;
  transform: translateY(-1px);
}

.card-carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.card-carousel-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 16px;
  border: 1px solid #d8e3ef;
  scrollbar-width: none;
}

.card-carousel-viewport-shell {
  position: relative;
}

.card-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.card-carousel-track {
  display: flex;
}

.card-carousel-overlay-controls {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.card-carousel-overlay-controls .card-carousel-button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #153457;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.32);
}

.card-carousel-overlay-controls .card-carousel-button img {
  width: 20px;
  height: 20px;
  display: block;
}

.card-carousel-overlay-controls .card-carousel-button:hover:not(:disabled),
.card-carousel-overlay-controls .card-carousel-button:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  background: #153457;
  box-shadow: 0 6px 16px rgba(21, 51, 87, 0.16);
}

.card-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
  border-radius: 0px;
  border: 0;
}

.card-carousel-slide .card-caption {
  min-height: 1.9rem;
}

.card-carousel-indicators {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card-carousel-indicator {
  width: 0.78rem;
  height: 0.78rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #b7c6d8;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.card-carousel-indicator:hover,
.card-carousel-indicator:focus-visible {
  transform: scale(1.15);
}

.card-carousel-indicator.is-active {
  background: #153457;
}

@media (max-width: 640px) {
  .card-carousel {
    padding: 0.85rem;
  }

  .card-carousel-heading,
  .card-carousel-footer {
    align-items: center;
  }

  .card-carousel-status {
    display: none;
  }

  .card-carousel-overlay-controls {
    left: 0.5rem;
    right: 0.5rem;
  }

  .card-carousel-button {
    padding: 0.5rem 0.8rem;
  }
}

.card-caption {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #ffffff;
  color: #153457;
  font-size: 0.95rem;
  line-height: 1.2rem;
  border-top: 1px solid #c6c6c6;
}

.card-info-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.15rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: #ffffff97;
  color: #1534576c;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(4px);
}

.card-info-badge::after {
  content: "🔍 click on the image to enlarge";
  display: inline-block;
  white-space: nowrap;
  font-weight: 600;
}

.card-info-badge:hover,
.card-info-badge:focus-visible {
  background: #ffffffc5;
  color: #153457a4;
  /*outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;*/
}

@media (max-width: 640px) {
  .card-info-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.72rem;
  }

  .card-info-badge::after {
    content: "tap to enlarge";
  }
}

/* Lightbox overlay styling for cards*/
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 90000;
  justify-content: center;
  align-items: center;
  padding: 0rem;
  flex-direction: column;
}

.lightbox.open {
  display: flex;
}

.lightbox-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  overflow: auto;
  width: 100%;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: #ffffff;
  cursor: pointer;
  z-index: 90001;
  font-weight: 300;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: #ff006f;
}

.lightbox-controls {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.5);
  z-index: 90002;
  border-radius: 10px;
}

.lightbox-zoom-in,
.lightbox-zoom-out {
  background: rgba(255, 0, 111, 0.8);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.65rem 1rem;
  cursor: pointer;
  border-radius: 22px;
  transition: background 0.2s ease;
}

.lightbox-zoom-in:hover,
.lightbox-zoom-out:hover {
  background: #ff006f;
}

.lightbox-zoom-level {
  color: #ffffff;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

/* Gallery Section; for tile links with images*/
.gallery {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* CSS gallery grid Layout - 3 Column Grid (responsive to 2 and 1 cols) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 1.5rem auto;
  padding: 0rem;
}

/* Medium screens: 2 columns */
@media (max-width: 1000px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small screens: 1 column */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Gallery Item Styling */
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-item {
  display: block;
  background: #ffffff;
  border: 3px ridge #ffffff20;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-overlay {
  position: static;
  background: #ffffff;
  color: #153457;
  padding: 1rem 1.2rem 1.2rem;
  text-align: left;
  border-top: 1px solid #e5e7eb;
}

.gallery-overlay h1,
.gallery-overlay h2,
.gallery-overlay p {
  margin: 0;
  padding: 0;
}

.gallery-overlay h1,
.gallery-overlay h2 {
  text-align: left;
  margin-bottom: 0.45rem;
  font-size: 2rem;
}

.gallery-overlay p {
  line-height: 1.45;
}

/* Card nav styling */
.card-nav {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 3px ridge #ffffff20;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(60, 60, 60, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
  text-decoration: none;
}

.card-nav:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
}

.card-nav:focus-visible {
  outline: 3px solid #153457;
  outline-offset: 3px;
}

.card-nav-content {
  padding: 1.2rem 1.5rem 1.5rem;
}

.card-nav-content h3,
.card-nav-content p {
  margin: 0;
  padding: 0;
}

.card-nav-content h3 {
  margin-bottom: 0.45rem;
  font-size: 2rem;
  text-align: left;
}

.card-nav-content p {
  line-height: 1.45;
}

.card-nav-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin-top: auto;
}

.card-nav-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.05),
      transparent 5%,
      transparent 95%,
      rgba(0, 0, 0, 0.05));
}

.card-nav-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-top: auto;
}

.card-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 1.2rem 1rem;
  padding-top: 0.5rem;
  color: #153457;
  font-weight: 600;
  width: fit-content;
}

.card-nav-link-arrow {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* New footer layout for site-footer component */
.site-footer {
  background-color: #f8f9fa;
  padding: 2rem 1rem;
  border-top: 1px solid #e9ecef;
}

.site-footer .footer-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.site-footer .footer-brand h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
}

.site-footer .footer-brand p {
  font-size: 1.2rem;
  color: #153457;
  line-height: 1.8rem;
  font-family: 'Crimson Pro';
}

.site-footer .footer-nav h3,
.site-footer .footer-contact h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.site-footer .footer-nav ul,
.site-footer .footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
  line-height: 1.5rem;
}

.site-footer .footer-nav a,
.site-footer .footer-contact a {
  color: #007bff;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-footer .footer-nav a:hover,
.site-footer .footer-contact a:hover {
  text-decoration: underline;
}

.site-footer .footer-bottom {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
  color: #666;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Breadcrumb styling */
.breadcrumb {
  max-width: 1000px;
  margin: 1rem auto;
  font-size: 0.9rem;
  color: #666;
}

.breadcrumb a {
  color: #007bff;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.faq {
  max-width: 100%;
  margin: 0rem;
}

.faq-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.faq-group-title {
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
}

.faq-controls {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.5rem;
}

.faq-toggle-all {
  background: #18385eed;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  padding: 0.6rem 1rem;
  margin-bottom: -1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.faq-toggle-all:hover {
  background: #214a70;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  transform: translateY(-1px);
}

.faq-toggle-all:focus-visible {
  outline: 2px solid #ffd85f;
  outline-offset: 2px;
}

.faq-item {
  border: 1px solid #ffde49;
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  background: #ffdc30b8;
  border: none;
  padding: 1rem 1.5rem;
  padding-right: 2.2rem;
  text-align: left;
  font-size: 1.25rem;
  font-family: Lexend, sans-serif;
  font-weight: 500;
  color: #153457;
  cursor: pointer;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  background: #ffde49;
  transition: transform 0.3s ease;
}

.faq-question::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(0deg);
  background-image: url("../images/arrow_down_navy.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* .faq-icon removed: arrow rendered via .faq-question::after */

.faq-item.active .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows 0.45s ease, padding 0.45s ease, opacity 0.2s ease, transform 0.45s ease;
  padding: 0 1rem;
  font-size: 1rem;
  color: #153457;
  line-height: 1.5;
  box-sizing: border-box;
}

.faq-item.active .faq-answer {
  padding: 1rem 1.5rem 1.5rem;
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}

.faq-answer-inner {
  overflow: hidden;
  min-height: 0;
  display: grid;
  gap: 0.9rem;
}
/*idk if the next 3 classes are acc needed but ill keep them for now */
.faq-answer-inner > * {
  margin: 0;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
  margin: 0;
  padding-left: 1.35rem;
}

.faq-answer-inner li + li {
  margin-top: 0.35rem;
}

/*uhhh i think this is the definitions styling*/
.glossary-term {
  color: #0a66cc;
  border-bottom: 1px dotted #0a66cc;
  cursor: pointer;
  position: relative;
}

.glossary-term::after {
  content: "";
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin: 0 0.1rem 0.2rem 0.2rem;
  background: url("../images/icons/icon_definition_blue.svg") center/contain no-repeat;
  vertical-align: middle;
}

.glossary-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  max-width: min(320px, calc(100vw - 24px));
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  color: #0a66cc;
}

@media (max-width: 768px) {
  .glossary-popup {
    width: 85vw;
    max-width: 320px;
  }
}

.glossary-popup-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.glossary-popup-pronunciation {
  font-size: 13px;
  font-style: italic;
  color: #4b5f77;
  margin-bottom: 8px;
}

.glossary-popup-definition {
  font-size: 14px;
  line-height: 1.4;
}

.glossary-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

/* callout / aside styling for important text */
aside,
.callout {
  background: #f3f8ff;
  border: 3px dashed #93939353;
  border-radius: 16px;
  padding: 1rem 1.1rem 1rem 1.1rem;
  /*box-shadow: 0 2px 6px rgba(21, 51, 87, 0.08);*/
}

aside h3,
.callout h3,
aside h4,
.callout h4 {
  margin-top: 0;
  margin-bottom: 0;
  color: #153357;
}

.callout p,
aside p {
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}

aside p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

/* disclaimer callout variant */
.callout-disclaimer {
  background: #ffeff4;
  border-color: #E0065253;
  margin: 1.5rem 0;
}

.callout-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.callout-icon {
  width: 36px;
  height: 36px;
  color: #E00652;
  flex-shrink: 0;
  margin: 0 0.25rem;
}

/* callout accordion variant */
.callout-accordion {
  border: 1px solid #d9e4f1;
  border-radius: 14px;
  margin: 1rem 0;
  padding: 0 1.15rem 0 0.15rem;
  overflow: hidden;
  background: #f8fbff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.callout-accordion.active {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.callout-accordion:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  background: #f4f8ff;
}

.callout-question {
  width: 100%;
  border: none;
  background: transparent;
  color: #153357;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-family: Lexend, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  padding: 1rem 2rem 1rem 1rem;
  text-align: left;
}

.callout-question::after {
  content: "";
  position: absolute;
  right: 0rem;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(0deg);
  background-image: url("../images/arrow_down_navy.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.3s ease;
}

.callout-accordion.active .callout-question::after {
  transform: translateY(-50%) rotate(180deg);
}

.callout-accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  padding: 0 1rem;
  transition: grid-template-rows 0.45s ease, padding 0.45s ease, opacity 0.2s ease, transform 0.45s ease;
}

.callout-accordion.active .callout-accordion-body {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
  padding: 0rem 1rem 1rem;
}

.callout-accordion-inner {
  overflow: hidden;
  min-height: 0;
}

.callout-accordion-body p,
.callout-accordion-body ul {
  margin-top: 0;
}

.callout-accordion-body ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
}

.callout-accordion-body h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.3rem;
  font-weight: 600;
  font-family: Lexend, sans-serif;
  color: #153357;
}

/* Compact mini callout for tooltips */
.callout-tooltip {
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 1.15rem;
  background: #f7fbff;
  border: 1px solid #e1eef9;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  line-height: 1.3;
  margin: 1.5rem auto 0.75rem;
}

.callout-tooltip .callout-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  margin: auto 0;
  object-fit: contain;
}

.callout-tooltip p {
  font-size: 1rem;
  line-height: 1.4rem;
  margin: 0;
  font-weight: 400;
}

/* summary box */
.summary-box {
  background: #f3f8ff;
  border: 1px solid #93939337;
  border-radius: 16px;
  padding: 1rem 2rem 1rem 1.5rem;
  margin: 2rem auto 0rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.summary-box-logo {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  opacity: 0.95;
}

.summary-box-content {
  flex: 1;
}

.summary-box h1,
.summary-box h2 {
  margin-top: 0;
  color: #153357;
  font-size: 2rem;
}

.summary-box p {
  color: #153357;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

/* call-to-action button styling */
.cta-button {
  display: flex;
  align-items: center;
  width: fit-content;
  box-sizing: border-box;
  gap: 1.5rem;
  margin: 1rem auto 0rem;
  /* centered: margin: 0.5rem auto; right: 0.5rem 0 0 auto;*/
  padding: 0.95rem 1.25rem 0.95rem 1.5rem;
  border-radius: 60px;
  background: #153357;
  color: #ffffff;
  font-weight: 500;
  font-size: 1.25rem;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  background: #1a4170;
  box-shadow: 0 8px 16px rgba(21, 51, 87, 0.2);
}

.cta-button:focus-visible {
  outline: 4px solid #ffe032;
  outline-offset: 4px;
}

.cta-button-arrow {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  flex-shrink: 0;
  animation: ctaArrowNudge 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes ctaArrowNudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta-button-arrow {
    animation: none;
  }
}

@media (max-width: 768px) {
  .summary-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-box-logo {
    width: 80px;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cta-button {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    gap: 1rem;
  }
}


/* Machine Viewer Styling hotspots */
.machine-viewer {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  /* keep for the hotspot layer! */
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 36px 36px 24px 24px;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.machine-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  padding: 0.25rem;
  border: 1px solid #d8dde5;
  border-radius: 999px;
  background: #f3f8ff;
  box-sizing: border-box;
}

.machine-tab {
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6a7482;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  z-index: 1;
}

.machine-tab.active {
  color: #153357;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 51, 87, 0.12);
}

.machine-tab:hover {
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.machine-tab:not(.active):hover {
  color: #153357;
  background: rgba(255, 255, 255, 0.5);
}

.machine-tab br,
.ck-machine-tab br {
  display: none;
}

.machine-display {
  border-radius: 20px;
  box-shadow: none;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.machine-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1199 / 800;
  /* originally 1000/600, adjusted for better fit 2:3 aspect ratio */
  overflow: hidden;
  border-radius: 20px;
  background: #eef3f9;
}

#machine-image,
#machine-overlay,
#machine-hotspot-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#machine-image,
#machine-overlay {
  object-fit: contain;
  display: block;
}

#machine-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

#machine-overlay.is-visible {
  opacity: 1;
}

#machine-hotspot-layer {
  z-index: 2;
  overflow: visible;
}

.machine-description {
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
}

.machine-description-text {
  margin: 0;
  color: #153457;
  line-height: 1.4;
  font-size: 1rem;
  font-weight: 400;
}

.hotspot {
  fill: white;
  stroke: #0077cc;
  stroke-width: 5;
  cursor: pointer;
  transition: transform 0.12s ease, fill 0.12s ease, stroke 0.12s ease;
  transform-box: fill-box;
  transform-origin: center center;
  will-change: transform;
}

.hotspot-pulse {
  fill: #0077cc5e;
  opacity: 0.75;
  pointer-events: none;
  transform-box: fill-box;
  transform-origin: center center;
  animation: hotspot-pulse 2.4s ease-out infinite;
}

/* larger invisible hit area that prevents hover jitter */
.hotspot-hit {
  fill: transparent;
  pointer-events: all;
}

/* hover styling applied from the group so the hit area stays constant */
.hotspot-group:hover .hotspot {
  transform: scale(1.22);
}

.hotspot-group:hover .hotspot-pulse {
  animation-duration: 2.4s;
}

.hotspot.active {
  fill: #0077cc;
  stroke: #0077cc;
}

@keyframes hotspot-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.2;
  }

  60% {
    transform: scale(1.15);
    opacity: 0.7;
  }

  100% {
    transform: scale(0.85);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot-pulse {
    animation: none;
    opacity: 0.28;
  }
}

.machine-info {
  position: absolute;
  width: clamp(120px, 20vw, 240px);
  min-height: 0;
  padding: 12px;
  background: #ffffffe2;
  border: none;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.machine-info.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.machine-info-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #153357;
}

.machine-info-description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #153357;
}

.machine-info-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
  color: #153357;
}

/*
.machine-info::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-left: none;
  border-top: none;
  transform: rotate(45deg);
  left: -6px;
  top: 22px;
}

.machine-info.popup-left::before {
  left: auto;
  right: -6px;
  border-left: none;
  border-top: none;
  border-right: none;
  border-bottom: none;
}
*/

@media (min-width: 390px) and (max-width: 768px) {
  .machine-viewer {
    padding: 0.5rem;
    border-radius: 28px 28px 24px 24px;
    gap: 0.5rem;
  }

  .machine-tabs {
    gap: 0.25rem;
  }

  .machine-info {
    width: min(320px, calc(100vw - 2rem));
  }

  .machine-summary {
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
  }
}

@media (max-width: 390px) {

  .machine-tab br,
  .ck-machine-tab br {
    display: block;
  }

  .machine-viewer {
    border-radius: 36px 36px 24px 24px;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .machine-info {
    width: min(160px, calc(100vw - 2rem));
  }
}

/* animation interactive viewer */
.ck-viewer {
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #ffffff;
  border: 1px solid #dfe8f3;
  border-radius: 36px 36px 24px 24px;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.ck-machine-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  padding: 0.25rem;
  border: 1px solid #d8dde5;
  border-radius: 999px;
  background: #f3f8ff;
  box-sizing: border-box;
}

.ck-machine-tab {
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6a7482;
  font: inherit;
  font-weight: 600;
  font-size: clamp(0.85rem, 1.4vw, 1.05rem);
  transition: color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  position: relative;
  z-index: 1;
}

.ck-machine-tab.active {
  color: #153357;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(21, 51, 87, 0.12);
}

.ck-machine-tab:hover {
  transform: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.02);
}

.ck-machine-tab:not(.active):hover {
  color: #153357;
  background: rgba(255, 255, 255, 0.5);
}

.animation-controls {
  /*  display: flex;
  align-items: center;
  gap: 1rem; */
  position: relative;
  padding: 0.75rem 0.75rem;
  background: #f3f8ff;
  border-radius: 18px;
}

.ck-slider-stops {
  position: relative;
  height: 0.8rem;
  margin-top: 0.1rem;
  margin-bottom: 0.2rem;
}

.ck-slider-stop {
  position: absolute;
  top: 0.1rem;
  transform: translateX(-50%);
  width: 2px;
  height: 0.65rem;
  border-radius: 999px;
  background: #6a7482;
}

.ck-caption-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.ck-caption-display {
  min-height: 5rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #dfe8f3;
  color: #153357;
  font-size: 1rem;
  line-height: 1.4;
}

/*adjacent to .machine-visual */
.ck-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1199 / 800;
  background: #f5f7fa;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid #dfe8f3;
}

.ck-animation-controls {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 4;
  pointer-events: none;
}

/* these buttons are pointer-events: auto, so they can be clicked */
.ck-animation-controls button {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background: #153457;
  box-shadow: 0 4px 8px #15335757;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.ck-animation-controls button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: #153457;
  box-shadow: 0 6px 16px rgba(21, 51, 87, 0.16);
}

.ck-animation-controls button:focus-visible {
  outline: 3px solid #153457;
  outline-offset: 3px;
}

.ck-animation-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.ck-animation-controls button img {
  width: 20px;
  height: 20px;
  display: block;
}

/* animation layer for Lottie or other animated content */
.ck-animation-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s linear;
}

.ck-animation-layer svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.ck-image-wrap.is-lottie-active .ck-animation-layer {
  opacity: 1;
}

.ck-image-wrap.is-lottie-active .ck-frame {
  opacity: 0;
}

.ck-frame {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.22s linear;
}

.ck-stage {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: #153357;
  padding: 0.25rem 0.75rem;
}

.ck-label {
  font-size: 0.95rem;
  color: #4a5a6a;
  font-weight: 500;
}

/* range slider styling */
.ck-viewer input[type="range"] {
  width: calc(100% - 1rem);
  height: 2.25rem;
  margin: 0;
  padding: 0rem 0.5rem 0.2rem;
  background: transparent;
  cursor: pointer;
  accent-color: #153457;
  -webkit-appearance: none;
  appearance: none;
}

.ck-viewer input[type="range"]::-webkit-slider-runnable-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #cfdbea;
}

.ck-viewer input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: -0.625rem;
  border-radius: 50%;
  border: 3px solid #153457;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 51, 87, 0.18);
}

.ck-viewer input[type="range"]::-moz-range-track {
  height: 0.35rem;
  border-radius: 999px;
  background: #cfdbea;
}

.ck-viewer input[type="range"]::-moz-range-thumb {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  border: 3px solid #153457;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 51, 87, 0.18);
}

@media (min-width: 390px) and (max-width: 768px) {
  .ck-viewer {
    padding: 0.5rem;
    gap: 0.5rem;
    border-radius: 28px 28px 24px 24px;
  }

  .ck-machine-tabs {
    gap: 0.25rem;
  }

  .animation-controls {
    padding: 1rem;
  }

  .animation-controls {
    padding: 0.5rem;
  }

  .ck-caption-display {
    min-height: 5.5rem;
  }
}

@media (max-width: 390px) {
  .ck-viewer {
    border-radius: 36px 36px 24px 24px;
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .animation-controls {
    padding: 0.5rem;
  }

  .ck-slider-stops {
    position: relative;
    margin: 0.2rem 0.75rem 0.3rem;
  }
}

/* Back to top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #e00652;
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
  z-index: 999;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.25);
}

.back-to-top img {
  width: 22px;
  height: 22px;
  display: block;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: #ff6198;
  /* originally #4d7ea8;*/
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(21, 51, 87, 0.35);
}

.back-to-top:active {
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 44px;
    height: 44px;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
  }

  .back-to-top img {
    width: 20px;
    height: 20px;
  }
}

/*this is the styling for the journey bar and specific stages*/
.journey-bar {
  position: sticky;
  top: 22px;
  /* use 58 px to keep full bar visible*/
  z-index: 900;
  background: white;
  padding: 0.7rem 2rem 1rem;
  border-bottom: 1px solid #e5e5e5;
  border-top: 1px solid #e5e5e5;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.journey-overview {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  margin: 0.1rem auto;
}

.journey-track {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 16px;
  height: 4px;
  background: #d8dde5;
}

.journey-progress {
  position: absolute;
  left: 5%;
  top: 16px;
  height: 4px;
  width: 75%;
  background: #FFD85F;
  transition: width .45s cubic-bezier(.22, 1, .36, 1), left .45s cubic-bezier(.22, 1, .36, 1);
  will-change: width, left;
}

.journey-bar-title {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 500;
  text-align: center;
  color: #153457;
  margin: 0 0 0.5rem;
  letter-spacing: 0.3px;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: .5rem;
  background: none;
  border: 0;
  padding: .25rem .5rem;
  cursor: pointer;
  font-size: .9rem;
  color: #6a7482;
  transition: color .2s ease, transform .2s ease, background-color .2s ease;
  z-index: 1;
}

.stage:hover {
  transform: translateY(-1px);
}

.stage:focus-visible {
  outline: 3px solid #153457;
  outline-offset: 4px;
  border-radius: 14px;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #d8dde5;
  z-index: 2;
}

.stage.completed .dot {
  background: #CDEFCF;
  border-color: #A7D9AA;
}

.stage.active .dot {
  background: #FFD85F;
  border-color: #FFD85F;
}

.stage.active {
  color: #153457;
  font-weight: 600;
}

.dot-label {
  font-size: clamp(0.75rem, 1.5vw, 1.1rem);
  font-family: Lexend, sans-serif;
  color: #153457;
}

/* static journey explainer section styling */
.journey-explainer-section {
  margin: 2.25rem 0 2rem;
}

.journey-explainer {
  position: relative;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.journey-explainer-overview {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.1rem auto;
}

.journey-explainer-track,
.journey-explainer-progress {
  position: absolute;
  left: 5%;
  top: 16px;
  height: 4px;
  border-radius: 999px;
}

.journey-explainer-track {
  right: 5%;
  background: #d8dde5;
}

.journey-explainer-progress {
  width: 20%;
  background: #FFD85F;
  transition: width .45s cubic-bezier(.22, 1, .36, 1), left .45s cubic-bezier(.22, 1, .36, 1);
  will-change: width, left;
}

.journey-explainer .stage {
  min-height: 60px;
  width: 100%;
}

.journey-explainer .stage:focus-visible {
  outline-offset: 6px;
}

.journey-explainer-popup {
  position: relative;
  background: #ffe28c;
  color: #153457;
  border-radius: 18px;
  padding: 1rem 1rem 1rem 1.1rem;
  margin-top: 1rem;
  box-shadow: 0 4px 8px rgba(21, 51, 87, 0.08);
}

.journey-explainer-popup-title {
  margin: 0 2rem 0.35rem 0;
  color: #153457;
  font-size: 1.4rem;
  font-weight: 600;
  font-family: Lexend, sans-serif;
}

.journey-explainer-popup-description {
  margin: 0;
  color: #153457;
  line-height: 1.55;
}

.journey-explainer-popup-nav {
  margin-top: 0.85rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.journey-explainer-nav-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #153457;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.journey-explainer-nav-btn:hover,
.journey-explainer-nav-btn:focus-visible {
  background: rgba(255, 216, 95, 0.2);
  border-color: #153457;
  color: #153457;
}

.journey-explainer-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.2);
}

.journey-explainer-close {
  position: absolute;
  top: 0.6rem;
  right: 0.75rem;
  border: 0;
  background: transparent;
  color: #153457;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.journey-explainer-close:hover,
.journey-explainer-close:focus-visible {
  color: #ffd85f;
}

.journey-explainer-popup[hidden] {
  display: none;
}

.journey-explainer-stage.active .dot {
  background: #ffd85f;
  border-color: #ffd85f;
}

.journey-explainer-stage.completed .dot {
  background: #CDEFCF;
  border-color: #A7D9AA;
}

.journey-explainer-stage.completed .dot-label {
  color: #153457;
}

.journey-explainer-stage.active .dot-label {
  font-weight: 600;
}

/* staggered dot label orientation for smaller screens */
@media (max-width: 500px) {
  .journey-explainer {
    padding: 2rem 0;
  }

  .journey-overview {
    gap: 0.1rem;
  }

  .journey-bar-title {
    margin-bottom: 1.25rem;
  }

  .stage {
    position: relative;
    justify-content: flex-start;
    gap: 0;
    padding: 0.5rem 0.15rem;
    transform: translateY(-3px);
  }

  .dot-label {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(7rem, 22vw);
    text-align: center;
    line-height: 1.15;
    white-space: normal;
  }

  .stage:nth-child(even) .dot-label {
    bottom: calc(100% - 0.25rem);
  }

  .stage:nth-child(odd) .dot-label {
    top: calc(100% - 0.25rem);
  }

  .journey-explainer {
    padding: 1.5rem 1rem 1rem;
  }

  .journey-explainer .stage {
    min-height: 36px;
  }

  .journey-explainer-popup {
    margin-top: 1.5rem;
  }
}

/* panels for each stage content */
.journey-stage-panels {
  margin-top: 1.25rem;
}

.stage-panel {
  display: block;
  margin-bottom: 1.25rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 16px rgba(21, 51, 87, 0.08);
  scroll-margin-top: 180px;
}

.stage-panel.active {
  border-color: #c7d2e1;
  box-shadow: 0 8px 24px rgba(21, 51, 87, 0.12);
}

.stage-panel-layout {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.stage-panel-main {
  flex: 3 1 0;
  min-width: 0;
}

.stage-panel-aside {
  flex: 1.5 1 0;
  min-width: 180px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  border: none;
}

.stage-panel-image {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}

.stage-panel-image-caption {
  font-size: 0.85rem;
  color: #6a7482;
  margin-top: 0.5rem;
  text-align: center;
}

@media (max-width: 900px) {
  .stage-panel-layout {
    flex-direction: column;
  }

  .stage-panel-aside {
    min-width: 0;
    width: 100%;
  }

  .stage-panel-image-placeholder {
    min-height: 180px;
  }
}

@media (max-width: 500px) {
  .stage-panel {
    padding: 1rem;
  }
}

.stage-panel h2 {
  margin-top: 0;
}

.stage-panel ul {
  margin-top: .5rem;
}

/* subpanels for each stage with subtabs */
.stage-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.5rem 0 0.9rem;
  scroll-margin-top: 11.4rem;
}

.stage-subtab {
  .stage-subpanel[hidden] {
    display: none !important;
  }

  display:inline-flex;
  align-items:center;
  border:1px solid #d8dde5;
  background:#f4f6f8;
  color:#5a6776;
  border-radius:999px;
  padding:.55rem 1rem;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
  transition:background-color .2s ease,
  color .2s ease,
  transform .2s ease,
  border-color .2s ease;
}

.stage-subtab:hover {
  transform: translateY(-1px);
}

.stage-subtab:focus-visible {
  outline: 3px solid #153457;
  outline-offset: 3px;
}

.stage-subtab.active,
.stage-subtab[aria-selected="true"] {
  background: #FFD85F;
  color: #153457;
  border-color: #FFD85F;
  font-weight: 600;
}

/* styling for the tab subpanels */
.stage-subpanel {
  display: block;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: #f9fbfd;
  border: 1px solid #e5e7eb;
  scroll-margin-top: 11.4rem;
}

.stage-subpanel[hidden] {
  display: none !important;
}

.stage-subpanel.active,
.stage-subpanel[aria-selected="true"] {
  border-color: #FFD85F;
  box-shadow: 0 4px 16px rgba(21, 51, 87, 0.08);
}

.stage-subpanel+.stage-subpanel {
  margin-top: 1rem;
}

.stage-subpanel h3 {
  margin-top: 0;
  scroll-margin-top: 12.5rem;
}

/* subnav for stage panels for back/next buttons */
.stage-subnav {
  display: flex;
  justify-content: center;
  gap: .75rem;
}

.stage-subnav-footer {
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.stage-subnav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.5rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #f4f6f8;
  color: #5a6776;
  border: 1px solid #d8dde5;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s ease,
    color .2s ease,
    transform .2s ease,
    border-color .2s ease,
    opacity .2s ease;
}

.stage-subnav-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.stage-subnav-button:focus-visible {
  outline: 3px solid #153457;
  outline-offset: 3px;
}

.stage-subnav-button:disabled {
  cursor: not-allowed;
  opacity: .4;
  transform: none;
}

.stage-subnav-button:not(:disabled):hover {
  background: #eaf0f7;
  border-color: #c7d2df;
}

.stage-subnav-button:not(:disabled):active {
  transform: translateY(0);
}

.stage-subnav a {
  padding: .5rem 1rem;
  border-radius: 999px;
  background: #f4f6f8;
  color: #5a6776;
  text-decoration: none;
}

.stage-subnav a.active {
  background: #FFD85F;
  color: #153457;
}

/*tabs for smaller screens*/
@media (max-width:850px) {
  .journey-nav.compact {
    width: 60px;
  }

  .journey-nav.compact .journey-label,
  .journey-nav.compact .journey-substeps,
  .journey-nav.compact .journey-title {
    display: none;
  }

}