/* ==========================================================================
   IIHM redesigned homepage (app/page.js). Everything is scoped to .iihm-home
   so it can't leak into the legacy WordPress/Elementor pages, and resets the
   handful of Astra/Elementor globals (uppercase h1, grey body bg, heading
   fonts, link colours) that would otherwise bleed into it.
   The old homepage lives untouched at /home-backup/.
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  src: url('/fonts/playfair-display-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin-wght-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* Hide the legacy WordPress header/footer + skip link on this page only. */
body:has(.iihm-home) { background: #fff !important; }
body:has(.iihm-home) #masthead,
body:has(.iihm-home) #colophon,
body:has(.iihm-home) .skip-link,
body:has(.iihm-home) .ast-above-header-wrap { display: none !important; }
body:has(.iihm-home) #content { margin: 0 !important; padding: 0 !important; }

.iihm-home {
  --navy: #0a3470;
  --navy-deep: #062a5c;
  --navy-ink: #0b2f66;
  --red: #e5202f;
  --red-dark: #c91623;
  --ink: #1b2a44;
  --muted: #5d6b82;
  --line: #e3e9f2;
  --light: #f3f7fc;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.iihm-home *, .iihm-home *::before, .iihm-home *::after { box-sizing: border-box; }
.iihm-home img:where(:not(.ip-content *)) { max-width: 100%; height: auto; display: block; }
.iihm-home a:where(:not(.ip-content *)) { text-decoration: none; color: inherit; box-shadow: none; }
.iihm-home ul:where(:not(.ip-content *)) { list-style: none; margin: 0; padding: 0; }
.iihm-home li:where(:not(.ip-content *)) { margin: 0; }
.iihm-home :is(h1, h2, h3, h4, p, blockquote):where(:not(.ip-content *)) {
  margin: 0; padding: 0; text-transform: none; letter-spacing: normal; border: 0;
}
.iihm-home :is(h1, h2, h3, h4):where(:not(.ip-content *)) { font-family: var(--sans); }
.iihm-home button { font-family: inherit; }

.iihm-home .hm-wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: clamp(20px, 4.7vw, 72px);
  padding-right: clamp(20px, 4.7vw, 72px);
  position: relative;
}

/* ---- Buttons / links ---------------------------------------------------- */
.iihm-home .hm-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 20px; height: 44px; border-radius: 4px; border: 1.5px solid transparent;
  font-size: 13.5px; font-weight: 600; line-height: 1; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.iihm-home .hm-btn svg { width: 18px; height: 18px; flex: none; }
.iihm-home .hm-btn:hover { transform: translateY(-1px); }
.iihm-home .hm-btn--red { background: var(--red); color: #fff; }
.iihm-home .hm-btn--red:hover { background: var(--red-dark); box-shadow: 0 8px 20px rgba(229, 32, 47, .35); }
.iihm-home .hm-btn--lg { height: 48px; padding: 0 22px; font-size: 14px; min-width: 190px; }
.iihm-home .hm-btn--ghost { border-color: rgba(255, 255, 255, .75); color: #fff; background: rgba(255,255,255,.04); }
.iihm-home .hm-btn--ghost:hover { background: #fff; color: var(--navy); }
.iihm-home .hm-btn--white { background: #fff; color: var(--navy); }
.iihm-home .hm-btn--white:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.iihm-home .hm-btn--outline { border-color: rgba(255, 255, 255, .8); color: #fff; }
.iihm-home .hm-btn--outline:hover { background: #fff; color: var(--navy); }
.iihm-home .hm-btn--navy { background: var(--navy); color: #fff; }
.iihm-home .hm-btn--navy:hover { background: var(--navy-deep); box-shadow: 0 8px 20px rgba(10, 52, 112, .3); }

.iihm-home .hm-link {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500;
  color: var(--navy); transition: gap .2s;
}
.iihm-home .hm-link:hover { gap: 12px; }
.iihm-home .hm-link--red { color: var(--red); }

/* ---- Typography helpers ------------------------------------------------- */
.iihm-home .hm-eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-ink); margin-bottom: 14px;
}
.iihm-home .hm-eyebrow span { width: 28px; height: 2px; background: var(--red); flex: none; }
.iihm-home .hm-eyebrow--light { color: #fff; }
.iihm-home .hm-h2 {
  font-family: var(--serif); font-weight: 700; color: var(--navy);
  font-size: clamp(26px, 3vw, 38px); line-height: 1.2;
}
.iihm-home .hm-h2--light { color: #fff; }
.iihm-home .hm-lead { color: var(--navy-ink); font-size: 15px; margin-top: 12px; }

/* ---- Header -------------------------------------------------------------- */
.iihm-home .hm-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.iihm-home .hm-header__bar {
  max-width: 1360px; margin: 0 auto; height: 76px; display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(20px, 4.7vw, 72px);
}
.iihm-home .hm-logo { display: block; flex: none; }
.iihm-home .hm-logo img { height: 52px; width: auto; }
.iihm-home .hm-nav { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 24px); flex: 1; min-width: 0; }
.iihm-home .hm-nav__item { position: relative; display: flex; align-items: center; }
.iihm-home .hm-nav a {
  position: relative; font-size: 13px; font-weight: 500; color: var(--navy-ink); padding: 26px 0; white-space: nowrap;
}
.iihm-home .hm-nav a:not(.hm-btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; background: var(--red);
  transform: scaleX(0); transition: transform .25s;
}
.iihm-home .hm-nav a.is-active, .iihm-home .hm-nav a:not(.hm-btn):hover { color: var(--navy); font-weight: 600; }
.iihm-home .hm-nav a.is-active::after, .iihm-home .hm-nav a:not(.hm-btn):hover::after { transform: scaleX(1); }
.iihm-home .hm-nav__chev { width: 14px; height: 14px; margin-left: 3px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; flex: none; }
.iihm-home .hm-nav__chev::before { content: ''; position: absolute; left: 3px; top: 3px; width: 5px; height: 5px; border-right: 1.6px solid var(--navy-ink); border-bottom: 1.6px solid var(--navy-ink); transform: rotate(45deg); transition: transform .2s; }
.iihm-home .hm-sub {
  position: absolute; top: 100%; left: -16px; width: max-content; min-width: 230px; max-width: 360px; margin: 0; padding: 8px 0; list-style: none; background: #fff;
  border-top: 3px solid var(--red); box-shadow: 0 18px 36px rgba(10,52,112,.18); border-radius: 0 0 6px 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60;
}
.iihm-home .hm-sub li { margin: 0; }
.iihm-home .hm-nav .hm-sub a { display: block; padding: 10px 22px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--navy-ink); }
.iihm-home .hm-nav .hm-sub a::after { display: none; }
.iihm-home .hm-nav .hm-sub a:hover { background: #eef4fc; color: var(--red); font-weight: 500; }
.iihm-home .hm-nav__item.has-sub:hover > .hm-sub, .iihm-home .hm-nav__item.has-sub:focus-within > .hm-sub { opacity: 1; visibility: visible; transform: none; }
.iihm-home .hm-nav__item.has-sub:hover .hm-nav__chev::before { transform: rotate(225deg) translate(-1px, -1px); }

/* ---- Top bar ---- */
.iihm-home .hm-topbar { background: var(--navy-deep); color: #fff; font-size: 12px; }
.iihm-home .hm-topbar__in { max-width: 1360px; margin: 0 auto; padding: 0 clamp(20px, 4.7vw, 72px); min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.iihm-home .hm-topbar a { color: #fff; }
.iihm-home .hm-topbar a:hover { color: #ffd9dc; }
.iihm-home .hm-topbar__info { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.iihm-home .hm-topbar__right { display: flex; align-items: center; gap: 12px; }
.iihm-home .hm-topbar__follow { opacity: .85; margin-right: 2px; }
.iihm-home .hm-topbar__ico { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.12); transition: background .2s; }
.iihm-home .hm-topbar__ico:hover { background: var(--red); color: #fff; }
.iihm-home .hm-topbar__ico svg { width: 14px; height: 14px; }
.iihm-home .hm-topbar__dl { margin-left: 8px; padding: 6px 14px; background: var(--red); border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.iihm-home .hm-topbar__dl:hover { background: var(--red-dark); color: #fff; }
.iihm-home .hm-header__cta { height: 40px; min-width: 126px; gap: 14px; font-size: 12.5px; }
.iihm-home .hm-nav__cta-mobile { display: none !important; }
.iihm-home .hm-burger {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
}
.iihm-home .hm-burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.iihm-home .hm-header.is-open .hm-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.iihm-home .hm-header.is-open .hm-burger span:nth-child(2) { opacity: 0; }
.iihm-home .hm-header.is-open .hm-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- 1. Hero -------------------------------------------------------------- */
.iihm-home .hm-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, #0a3c82 0%, #0a3470 45%, #082a5d 100%);
  display: block;
}
.iihm-home .hm-hero__slides { display: grid; grid-template-columns: minmax(0, 1fr); }
.iihm-home .hm-slide {
  grid-area: 1 / 1; position: relative; display: flex; align-items: center; min-height: clamp(420px, 31vw, 490px);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.iihm-home .hm-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.iihm-home .hm-slide > .hm-hero__grid { width: 100%; }
.iihm-home .hm-hero__photo--art { width: 56%; background-position: 50% 60%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.iihm-home .hm-hero__photo--art::after { background: linear-gradient(180deg, rgba(8, 42, 93, 0), rgba(8, 42, 93, 0) 60%, rgba(8, 42, 93, .25)); }
.iihm-home .hm-slide--maritime { background: linear-gradient(100deg, #082a5d 0%, #0a3470 40%, #06224f 100%); }
.iihm-home .hm-slide--placements { background: linear-gradient(100deg, #7a0f1c 0%, #0a3470 55%, #082a5d 100%); }
.iihm-home .hm-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.iihm-home .hm-hero__chips li { padding: 6px 13px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.08); }
.iihm-home .hm-hero__frame { position: absolute; top: 50%; right: clamp(24px, 6vw, 110px); width: min(40%, 560px); transform: translateY(-50%) rotate(1.5deg); }
.iihm-home .hm-hero__frame img { display: block; width: 100%; height: auto; border-radius: 10px; border: 6px solid #fff; box-shadow: 0 26px 50px rgba(0,0,0,.4); }
.iihm-home .hm-hero__chip { position: absolute; display: flex; flex-direction: column; padding: 10px 16px; background: #fff; color: var(--navy-ink); border-radius: 8px; font-size: 12px; font-weight: 600; box-shadow: 0 14px 30px rgba(0,0,0,.28); transform: rotate(-1.5deg); }
.iihm-home .hm-hero__chip strong { font-size: 24px; line-height: 1.1; color: var(--red); font-family: var(--serif); }
.iihm-home .hm-hero__chip--a { left: -34px; bottom: 26px; }
.iihm-home .hm-hero__chip--b { right: -16px; top: -18px; }
.iihm-home .hm-hero__ctrl { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 14px; }
.iihm-home .hm-hero__arrow { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .2s; padding: 0; }
.iihm-home .hm-hero__arrow:hover { background: var(--red); border-color: var(--red); }
.iihm-home .hm-hero__dots { display: flex; gap: 8px; }
.iihm-home .hm-hero__dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.iihm-home .hm-hero__dots button.is-on { width: 28px; background: #fff; }
.iihm-home .hm-hero__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 52%;
  background-size: cover; background-position: 62% 30%; background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
.iihm-home .hm-hero__photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 42, 93, .25), rgba(8, 42, 93, .05) 40%, rgba(8, 42, 93, .35));
}
.iihm-home .hm-hero__grid { position: relative; z-index: 2; padding-top: 48px; padding-bottom: 48px; }
.iihm-home .hm-hero__copy { max-width: 680px; }
.iihm-home .hm-hero .hm-eyebrow { margin-bottom: 20px; white-space: nowrap; font-size: 11px; }
.iihm-home .hm-hero .hm-eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--red); }
.iihm-home .hm-hero .hm-hero__title {
  color: #fff; font-family: var(--serif); margin: 0; font-weight: 700; font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -.01em;
}
.iihm-home .hm-hero .hm-hero__title em { font-style: normal; color: #f0263a; }
.iihm-home .hm-hero p { margin-top: 20px; max-width: 520px; color: rgba(255, 255, 255, .92); font-size: clamp(14px, 1.05vw, 16px); line-height: 1.65; }
.iihm-home .hm-hero__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

/* ---- 2. Programs ----------------------------------------------------------- */
.iihm-home .hm-programs { padding: clamp(36px, 3.6vw, 52px) 0 clamp(36px, 3.6vw, 56px); background: #fff; }
.iihm-home .hm-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.7vw, 26px); margin-top: 28px; }
.iihm-home .hm-card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(10, 52, 112, .06);
  transition: transform .25s, box-shadow .25s;
}
.iihm-home .hm-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(10, 52, 112, .14); }
.iihm-home .hm-card__img { height: clamp(130px, 11.5vw, 165px); background-size: cover; background-position: center 25%; }
.iihm-home .hm-card__body { position: relative; padding: 36px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.iihm-home .hm-card__icon {
  position: absolute; top: -28px; left: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--navy); display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(10, 52, 112, .2);
}
.iihm-home .hm-card h3 { font-family: var(--serif); font-size: 17px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.iihm-home .hm-card p { margin: 10px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }

/* ---- 3. International placements ------------------------------------------- */
.iihm-home .hm-global { display: grid; grid-template-columns: 59fr 41fr; min-height: 300px; }
.iihm-home .hm-global__left { position: relative; background: linear-gradient(100deg, #0a3c82, #082a5d); color: #fff; overflow: hidden; display: flex; align-items: center; }
.iihm-home .hm-global__photo {
  position: absolute; top: 0; right: 0; bottom: 0; width: 46%;
  background-size: cover; background-position: 55% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 40%);
  opacity: .9;
}
.iihm-home .hm-global__copy { position: relative; z-index: 2; max-width: calc(500px + max(0px, (100vw - 1360px) / 2) + clamp(20px, 4.7vw, 72px)); padding: 40px 0 40px calc(max(0px, (100vw - 1360px) / 2) + clamp(20px, 4.7vw, 72px)); }
.iihm-home .hm-global__copy .hm-h2 { font-size: clamp(24px, 2.4vw, 34px); }
.iihm-home .hm-global__copy .hm-eyebrow { font-size: 11px; }
.iihm-home .hm-global__copy p { margin: 18px 0 26px; font-size: 13.5px; line-height: 1.65; max-width: 400px; color: rgba(255, 255, 255, .92); }
.iihm-home .hm-global__right {
  background: linear-gradient(180deg, #f4f8fd, #e9f0fa); padding: 40px clamp(20px, 4vw, 64px); display: flex; flex-direction: column; justify-content: center;
}
.iihm-home .hm-global__right h3 { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; }
.iihm-home .hm-flags { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: column; grid-template-rows: repeat(4, auto); column-gap: 24px; }
.iihm-home .hm-flags li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 14px; color: var(--navy-ink); }
.iihm-home .hm-flag { width: 28px; height: 28px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 2px 5px rgba(0,0,0,.15); overflow: hidden; }
.iihm-home .hm-flag svg { width: 100%; height: 100%; display: block; }

/* ---- 4. Why IIHM ------------------------------------------------------------ */
.iihm-home .hm-why { background: linear-gradient(180deg, #f6f9fd, #eef4fb); padding: clamp(30px, 3vw, 42px) 0; }
.iihm-home .hm-why__grid { display: grid; grid-template-columns: minmax(280px, 34%) 1fr; align-items: center; gap: 0; }
.iihm-home .hm-why__copy p { margin-top: 14px; font-size: 13.5px; line-height: 1.65; color: var(--muted); max-width: 330px; }
.iihm-home .hm-why .hm-h2 { font-size: clamp(24px, 2.4vw, 32px); }
.iihm-home .hm-stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.iihm-home .hm-stats li {
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 16px;
  color: var(--navy); border-left: 1px solid #cfd9e8;
}
.iihm-home .hm-stats strong { font-size: clamp(24px, 2.2vw, 30px); font-weight: 600; color: var(--red); margin: 10px 0 4px; line-height: 1.1; }
.iihm-home .hm-stats span { font-size: 13px; color: var(--navy-ink); line-height: 1.4; max-width: 150px; }

/* ---- 5. Student experience --------------------------------------------------- */
.iihm-home .hm-exp { background: linear-gradient(100deg, #0a3c82, #082a5d 60%, #0a3470); color: #fff; overflow: hidden; }
.iihm-home .hm-exp__grid { display: grid; grid-template-columns: 1.05fr 0.9fr 1.05fr; align-items: center; min-height: 270px; gap: 0; }
.iihm-home .hm-exp__copy { padding: 36px 24px 36px 0; position: relative; z-index: 2; }
.iihm-home .hm-exp__copy p { margin: 18px 0 26px; font-size: 13.5px; line-height: 1.65; max-width: 360px; color: rgba(255,255,255,.92); }
.iihm-home .hm-exp__photo {
  align-self: stretch; margin: 0 -40px; background-size: cover; background-position: 50% 12%;
  background-color: #7fa0d4; background-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 38%, #000 62%, transparent 100%);
  min-height: 270px; background-position: 50% 8%;
}
.iihm-home .hm-testi { position: relative; z-index: 2; padding: 30px 0 28px 44px; }
.iihm-home .hm-testi__q { color: #fff; width: 20px; height: 16px; margin-bottom: 12px; }
.iihm-home .hm-testi__body { font-style: italic; animation: hm-fade .5s ease; }
.iihm-home .hm-testi__body p { font-size: 15.5px; line-height: 1.6; font-style: italic; color: #fff; }
.iihm-home .hm-testi__body footer { margin-top: 20px; font-style: normal; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.iihm-home .hm-testi__body strong { font-weight: 600; color: #fff; }
.iihm-home .hm-testi__body span { color: rgba(255, 255, 255, .85); }
.iihm-home .hm-testi__ctrl { margin-top: 18px; display: flex; align-items: center; justify-content: center; position: relative; min-height: 34px; }
.iihm-home .hm-testi__dots { display: flex; gap: 10px; }
.iihm-home .hm-testi__dots button { width: 9px; height: 9px; border-radius: 50%; padding: 0; background: transparent; border: 1.5px solid rgba(255,255,255,.7); cursor: pointer; transition: background .2s, transform .2s; }
.iihm-home .hm-testi__dots button.is-on { background: #fff; transform: scale(1.1); }
.iihm-home .hm-testi__next { position: absolute; right: 0; top: -10px; width: 30px; height: 30px; min-width: 0; padding: 0; border-radius: 50%; background: #fff; color: var(--navy); border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .2s; }
.iihm-home .hm-testi__next:hover { transform: scale(1.1); }
@keyframes hm-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---- 6. News --------------------------------------------------------------- */
.iihm-home .hm-news { background: #fff; padding: clamp(28px, 3vw, 40px) 0; }
.iihm-home .hm-news__grid { display: grid; grid-template-columns: minmax(260px, 28%) 1fr; gap: clamp(20px, 2.4vw, 40px); align-items: center; }
.iihm-home .hm-news__copy p { margin: 12px 0 22px; font-size: 13.5px; line-height: 1.6; color: var(--muted); max-width: 270px; }
.iihm-home .hm-news .hm-h2 { font-size: clamp(24px, 2.4vw, 32px); }
.iihm-home .hm-news__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.4vw, 22px); }
.iihm-home .hm-ncard { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 10px 10px 16px; box-shadow: 0 6px 18px rgba(10, 52, 112, .07); transition: transform .25s, box-shadow .25s; }
.iihm-home .hm-ncard:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(10, 52, 112, .14); }
.iihm-home .hm-ncard__img { height: clamp(100px, 8.4vw, 124px); background-size: cover; background-position: center 18%; border-radius: 2px; }
.iihm-home .hm-ncard__body { padding: 12px 6px 0; }
.iihm-home .hm-ncard time { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.iihm-home .hm-ncard h3 { font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--navy-ink); min-height: 2.8em; margin-bottom: 12px; }

/* ---- 7. Footer ------------------------------------------------------------ */
.iihm-home .hm-footer { background: #06306a; color: #fff; }
.iihm-home .hm-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.5fr; gap: 28px; padding-top: 30px; padding-bottom: 24px; align-items: start; }
.iihm-home .hm-footer__brand img { height: 52px; width: auto; }
.iihm-home .hm-footer__col h4 { font-size: 12px; font-weight: 600; color: #fff; margin-bottom: 14px; }
.iihm-home .hm-footer__col a { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .88); padding: 4px 0; transition: color .2s, transform .2s; }
.iihm-home .hm-footer__col a:hover { color: #fff; transform: translateX(3px); }
.iihm-home .hm-footer__social > div { display: flex; gap: 22px; align-items: center; padding-top: 4px; }
.iihm-home .hm-footer__social a { padding: 0; display: inline-flex; }
.iihm-home .hm-footer__social a:hover { transform: translateY(-2px); }
.iihm-home .hm-news-form { display: flex; flex-wrap: wrap; }
.iihm-home .hm-news-form input {
  flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 3px 0 0 3px; padding: 0 12px;
  font-size: 11.5px; color: var(--ink); background: #fff; outline: none; font-family: inherit;
}
.iihm-home .hm-news-form input::placeholder { color: #8b97ab; }
.iihm-home .hm-news-form button { height: 38px; padding: 0 18px; background: var(--red); color: #fff; border: 0; border-radius: 0 3px 3px 0; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; min-width: 0; cursor: pointer; transition: background .2s; }
.iihm-home .hm-news-form button:hover { background: var(--red-dark); }
.iihm-home .hm-news-form__ok { width: 100%; margin-top: 8px; font-size: 11.5px; color: #bfe0ff; }
.iihm-home .hm-footer__bar { border-top: 1px solid rgba(255, 255, 255, .14); font-size: 11px; color: rgba(255, 255, 255, .85); }
.iihm-home .hm-footer__bar .hm-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.iihm-home .hm-footer__bar i { font-style: normal; margin: 0 14px; opacity: .6; }
.iihm-home .hm-footer__bar a:hover { text-decoration: underline; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1320px) {
  .iihm-home .hm-header__cta { display: none; }
  .iihm-home .hm-nav { justify-content: flex-end; }
}
@media (max-width: 1100px) {
  .iihm-home .hm-burger { display: flex; }
  .iihm-home .hm-nav {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 8px clamp(20px, 5vw, 40px) 20px; box-shadow: 0 18px 30px rgba(10, 52, 112, .15); display: none; max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .iihm-home .hm-header.is-open .hm-nav { display: flex; }
  .iihm-home .hm-nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .iihm-home .hm-nav__item > a:first-child { flex: 1; padding: 14px 0; font-size: 15px; }
  .iihm-home .hm-nav a:not(.hm-btn)::after { display: none; }
  .iihm-home .hm-nav__chev { width: 44px; height: 44px; margin: 0; }
  .iihm-home .hm-nav__chev::before { left: 19px; top: 16px; width: 7px; height: 7px; }
  .iihm-home .hm-nav__item.has-sub.is-sub-open .hm-nav__chev::before { transform: rotate(225deg); }
  .iihm-home .hm-sub { position: static; flex-basis: 100%; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border-top: 0; min-width: 0; padding: 0 0 8px 14px; background: #f6f9fd; }
  .iihm-home .hm-nav__item.has-sub:hover > .hm-sub { display: none; }
  .iihm-home .hm-nav__item.has-sub.is-sub-open > .hm-sub { display: block; }
  .iihm-home .hm-nav .hm-sub a { padding: 11px 12px; font-size: 14px; border: 0; }
  .iihm-home .hm-nav__cta-mobile { display: inline-flex !important; margin-top: 16px; border-bottom: 0 !important; justify-content: center; gap: 12px; padding: 12px 18px !important; }
}
@media (max-width: 767px) {
  .iihm-home .hm-topbar__follow, .iihm-home .hm-topbar__more, .iihm-home .hm-topbar__mail { display: none; }
  .iihm-home .hm-topbar__in { min-height: 34px; gap: 8px; }
  .iihm-home .hm-topbar__call { white-space: nowrap; }
  .iihm-home .hm-topbar__right { gap: 8px; }
  .iihm-home .hm-topbar__dl { margin-left: 2px; padding: 5px 10px; font-size: 10px; white-space: nowrap; }
  .iihm-home .hm-hero .hm-eyebrow { white-space: normal; }
}
@media (max-width: 920px) {
  .iihm-home .hm-cards { grid-template-columns: repeat(2, 1fr); }
  .iihm-home .hm-why__grid { grid-template-columns: 1fr; gap: 28px; }
  .iihm-home .hm-why__copy p { max-width: 520px; }
  .iihm-home .hm-stats li:first-child { border-left: 0; }
  .iihm-home .hm-news__grid { grid-template-columns: 1fr; }
  .iihm-home .hm-footer__grid { grid-template-columns: repeat(3, 1fr); }
  .iihm-home .hm-footer__brand { grid-column: 1 / -1; }
  .iihm-home .hm-exp__grid { grid-template-columns: 1fr 1fr; }
  .iihm-home .hm-exp__photo { grid-column: 2; grid-row: 1; margin: 0; min-height: 320px; }
  .iihm-home .hm-testi { grid-column: 1 / -1; padding: 8px 0 40px; }
}
@media (max-width: 900px) {
  .iihm-home .hm-global { grid-template-columns: 1fr; }
  .iihm-home .hm-global__copy { padding-right: clamp(20px, 4.7vw, 72px); max-width: 520px; }
  .iihm-home .hm-global__photo { width: 100%; opacity: .35; -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 767px) {
  .iihm-home .hm-slide { min-height: 0; flex-direction: column; align-items: stretch; padding-bottom: 44px; }
  .iihm-home .hm-hero__frame { position: relative; top: auto; right: auto; width: auto; margin: 18px 28px 6px; transform: rotate(1deg); }
  .iihm-home .hm-hero__chip--a { left: -14px; } .iihm-home .hm-hero__chip--b { right: -10px; top: -14px; }
  .iihm-home .hm-hero__ctrl { bottom: 12px; }
  .iihm-home .hm-hero__photo { position: relative; width: 100%; height: 260px; order: 2; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 25%); mask-image: linear-gradient(180deg, transparent 0, #000 25%); background-position: 50% 30%; }
  .iihm-home .hm-hero__grid { padding-top: 44px; padding-bottom: 8px; }
  .iihm-home .hm-hero__btns .hm-btn { flex: 1 1 100%; }
  .iihm-home .hm-cards { grid-template-columns: 1fr; }
  .iihm-home .hm-stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .iihm-home .hm-stats li:nth-child(odd) { border-left: 0; }
  .iihm-home .hm-news__cards { grid-template-columns: 1fr; }
  .iihm-home .hm-exp__grid { grid-template-columns: 1fr; }
  .iihm-home .hm-exp__copy { padding-right: 0; padding-bottom: 8px; }
  .iihm-home .hm-exp__photo { grid-column: 1; grid-row: auto; min-height: 280px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
  .iihm-home .hm-testi { padding-left: 0; }
  .iihm-home .hm-footer__grid { grid-template-columns: 1fr 1fr; }
  .iihm-home .hm-footer__sub { grid-column: 1 / -1; }
  .iihm-home .hm-footer__bar .hm-wrap { flex-direction: column; align-items: flex-start; }
  .iihm-home .hm-flags { grid-template-columns: 1fr 1fr; column-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .iihm-home * { transition: none !important; animation: none !important; }
}

.iihm-home blockquote:where(:not(.ip-content *)) { quotes: none; border: 0 !important; background: none !important; }
.iihm-home blockquote:where(:not(.ip-content *)) footer, .iihm-home .hm-testi__body footer { color: #fff; background: none; padding: 0; }
.iihm-home .hm-testi__body footer * { color: #fff; }
.iihm-home .hm-testi__body footer span { color: rgba(255,255,255,.85); }

/* Eyebrow labels are <p> elements; section copy rules above also target "p",
   so restate the eyebrow metrics with equal-or-higher specificity. */
.iihm-home p.hm-eyebrow { font-size: 11.5px; line-height: 1.4; margin: 0 0 14px; max-width: none; color: var(--navy-ink); }
.iihm-home p.hm-eyebrow--light { color: #fff; }
.iihm-home .hm-hero p.hm-eyebrow { font-size: 11px; margin: 0 0 20px; color: #fff; max-width: none; }
.iihm-home .hm-global__copy p.hm-eyebrow { font-size: 11px; margin: 0 0 14px; }
@media (min-width: 921px) and (max-width: 1180px) {
  .iihm-home .hm-global__copy p:not(.hm-eyebrow) { max-width: 330px; }
  .iihm-home .hm-global__photo { width: 40%; }
  .iihm-home .hm-footer__grid { grid-template-columns: 1.3fr 1fr 1fr .9fr 1.7fr; }
}

/* Footer: secondary link row (pages not in the main nav) */
.iihm-home .hm-footer__bar .hm-footer__more { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-top: 16px; padding-bottom: 6px; font-size: 11.5px; color: rgba(255,255,255,.7); }
.iihm-home .hm-footer__more a { color: rgba(255,255,255,.9); transition: color .2s; }
.iihm-home .hm-footer__more a:hover { color: #fff; text-decoration: underline; }
.iihm-home .hm-footer__more .hm-footer__push { margin-left: auto; }
@media (max-width: 767px) { .iihm-home .hm-footer__more .hm-footer__push { margin-left: 0; } }
@media (max-width: 420px) { .iihm-home .hm-topbar__dl-long { display: none; } }


/* ---- News ticker (below hero) ------------------------------------------------------------------ */
.iihm-home .hm-ticker { background: #fff; border-bottom: 1px solid #dbe4f0; box-shadow: 0 6px 18px rgba(10,52,112,.06); }
.iihm-home .hm-ticker__in { display: flex; align-items: stretch; width: 100%; max-width: none; margin: 0; padding: 0 clamp(16px, 2.5vw, 40px) 0 0; min-height: 52px; gap: 18px; }
.iihm-home .hm-ticker__label { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 22px 0 clamp(20px, 4.7vw, 72px); background: var(--red); color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; position: relative; margin-left: 0; }
.iihm-home .hm-ticker__label::after { content: ''; position: absolute; right: -10px; top: 50%; margin-top: -10px; border-left: 10px solid var(--red); border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.iihm-home .hm-ticker__label i { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: hmTickPulse 1.4s ease-in-out infinite; }
@keyframes hmTickPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
.iihm-home .hm-ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; margin-left: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.iihm-home .hm-ticker__track { display: flex; flex: 0 0 auto; width: max-content; margin: 0; padding: 0; list-style: none; animation: hmTicker 55s linear infinite; }
.iihm-home .hm-ticker__viewport:hover .hm-ticker__track, .iihm-home .hm-ticker__viewport:focus-within .hm-ticker__track { animation-play-state: paused; }
@keyframes hmTicker { to { transform: translateX(-50%); } }
.iihm-home .hm-ticker__track li { flex: 0 0 auto; display: flex; align-items: center; margin: 0; padding-right: 56px; }
.iihm-home .hm-ticker__track li::before { content: ''; width: 7px; height: 7px; margin-right: 14px; border-radius: 50%; background: var(--navy); opacity: .45; flex: 0 0 auto; }
.iihm-home .hm-ticker__track a { white-space: nowrap; font-size: 14px; font-weight: 500; color: var(--navy-ink, #1d3557); }
.iihm-home .hm-ticker__track a:hover { color: var(--red); }
.iihm-home .hm-ticker__all { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--navy); }
.iihm-home .hm-ticker__all:hover { color: var(--red); }
@media (max-width: 700px) {
  .iihm-home .hm-ticker__in { gap: 10px; min-height: 46px; padding: 0; }
  .iihm-home .hm-ticker__label { padding: 0 14px; font-size: 11px; }
  .iihm-home .hm-ticker__all { display: none; }
  .iihm-home .hm-ticker__viewport { margin-right: 12px; }
  .iihm-home .hm-ticker__track a { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .iihm-home .hm-ticker__track { animation: none; } .iihm-home .hm-ticker__viewport { overflow-x: auto; } }

/* ---- Security check (captcha) + form messages, shared by every form ---- */
.iihm-home .ip-captcha { margin: 14px 0 16px; padding: 12px 14px; border: 1px solid #d5dfee; border-radius: 6px; background: #f4f8fd; text-align: left; width: 100%; box-sizing: border-box; }
.iihm-home .ip-captcha__label { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; letter-spacing: .02em; }
.iihm-home .ip-captcha__label .ip-req { color: var(--red); font-style: normal; }
.iihm-home .ip-captcha__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.iihm-home .ip-captcha__q { min-width: 120px; min-height: 40px; display: flex; align-items: center; padding: 0 12px; background: #fff; border: 1px solid #cfd9e8; border-radius: 4px; font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.iihm-home .ip-captcha__q img { display: block; height: 40px; width: auto; }
.iihm-home .ip-captcha__new { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #cfd9e8; background: #fff; color: var(--navy); font-size: 18px; line-height: 1; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.iihm-home .ip-captcha__new:hover { background: var(--navy); color: #fff; }
.iihm-home .ip-captcha .ip-captcha__in { flex: 1 1 130px; min-width: 120px; height: 40px; margin: 0; padding: 0 12px; border: 1px solid #cfd9e8; border-radius: 4px; background: #fff; font-size: 14px; color: #0a1a33; box-sizing: border-box; }
.iihm-home .ip-captcha .ip-captcha__in:focus { outline: 2px solid rgba(10,52,112,.35); outline-offset: 1px; }
.iihm-home .ip-hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; pointer-events: none !important; }
.iihm-home .ip-form-msg { margin: 12px 0 0; padding: 10px 14px; border-radius: 4px; font-size: 13.5px; line-height: 1.5; }
.iihm-home .ip-form-msg[hidden] { display: none; }
.iihm-home .ip-form-msg.is-ok { background: #e8f6ee; color: #14683a; border: 1px solid #bfe3cd; }
.iihm-home .ip-form-msg.is-err { background: #fdecee; color: #b3141f; border: 1px solid #f5c2c7; }
.iihm-home .elementor-form .ip-captcha, .iihm-home .wpcf7-form .ip-captcha { clear: both; }
.iihm-home .elementor-form .elementor-form-fields-wrapper > .ip-captcha { flex: 0 0 100%; margin-left: 10px; margin-right: 10px; width: calc(100% - 20px); }
.iihm-home .wpcf7-form button:disabled, .iihm-home .wpcf7-form input[type=submit]:disabled, .iihm-home .elementor-form button:disabled { opacity: .6; cursor: not-allowed; }
/* newsletter (dark footer) */
.iihm-home .hm-news-form__cap { width: 100%; }
.iihm-home .hm-news-form .ip-captcha { margin: 10px 0 0; padding: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.iihm-home .hm-news-form .ip-captcha__label { color: #fff; font-size: 11.5px; margin-bottom: 6px; }
.iihm-home .hm-news-form .ip-captcha__q { min-height: 34px; font-size: 13px; padding: 0 8px; min-width: 0; }
.iihm-home .hm-news-form .ip-captcha__q img { height: 34px; }
.iihm-home .hm-news-form .ip-captcha .ip-captcha__in { height: 34px; flex-basis: 90px; min-width: 90px; border-radius: 3px; font-size: 12.5px; }
.iihm-home .hm-news-form .ip-captcha__new { width: 30px; height: 30px; font-size: 15px; }
.iihm-home .hm-news-form__err { width: 100%; margin-top: 8px; font-size: 11.5px; color: #ffb3ba; }
.iihm-home .hm-news-form button:disabled { opacity: .7; cursor: not-allowed; }
.iihm-home .ip-stepform .ip-captcha { margin: 18px 10px 4px; width: calc(100% - 20px); }

/* ---- Footer: SEO landing-page links (same permalinks as the old site) ---- */
.iihm-home .hm-footer__bar .hm-footer__seo { display: grid; align-items: start; justify-content: stretch; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 28px 40px; padding-top: 26px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.iihm-home .hm-footer__seo h4 { font-size: 12px; font-weight: 700; color: #fff; margin: 0 0 10px; letter-spacing: .04em; text-transform: uppercase; }
.iihm-home .hm-footer__seo ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.iihm-home .hm-footer__seo nav:nth-child(n+2) ul { columns: 2; column-gap: 22px; }
.iihm-home .hm-footer__seo li { break-inside: avoid; }
.iihm-home .hm-footer__seo a { display: block; font-size: 11.5px; line-height: 1.45; color: rgba(255,255,255,.78); padding: 3px 0; transition: color .2s; }
.iihm-home .hm-footer__seo a:hover { color: #fff; text-decoration: underline; }
.iihm-home .hm-footer__bar .hm-footer__seo { display: grid; }
@media (max-width: 1000px) { .iihm-home .hm-footer__bar .hm-footer__seo { grid-template-columns: 1fr 1fr; } .iihm-home .hm-footer__seo nav:first-child { grid-column: 1 / -1; } .iihm-home .hm-footer__seo nav:first-child ul { columns: 2; column-gap: 22px; } }
@media (max-width: 640px) { .iihm-home .hm-footer__bar .hm-footer__seo { grid-template-columns: 1fr; } .iihm-home .hm-footer__seo nav:nth-child(n+2) ul, .iihm-home .hm-footer__seo nav:first-child ul { columns: 1; } }
.iihm-home .hm-footer__bar .hm-wrap > span > a { text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
.iihm-home .hm-news-form .ip-captcha .ip-captcha__new { background: #fff; color: var(--navy); border: 1px solid #cfd9e8; border-radius: 50%; padding: 0; min-width: 0; width: 30px; height: 30px; font-size: 15px; }
.iihm-home .hm-news-form .ip-captcha .ip-captcha__new:hover { background: var(--navy); color: #fff; }
