:root {
  --stcw-maroon: #7b0000;
  --stcw-maroon-dark: #5c0000;
  --stcw-red: #9e1b1b;
  --stcw-orange: #ee5b12;
  --stcw-orange-light: rgba(238, 91, 18, 0.12);
  --stcw-orange-border: rgba(238, 91, 18, 0.28);
  --stcw-ink: #171717;
  --stcw-muted: #5b5b5b;
  --stcw-border: #eadfdb;
  --stcw-bg: #fff7f4;
  --stcw-card: #ffffff;
  --stcw-shadow: 0 18px 45px rgba(79, 0, 0, .14);
}

* {
  box-sizing: border-box;
}

body.stcw-home-new {
  margin: 0;
  border-top: 3px solid var(--stcw-maroon);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--stcw-ink);
  background: #fff;
}

.stcw-home-new a {
  color: inherit;
  text-decoration: none;
}

.stcw-top-strip {
  background: var(--stcw-maroon);
  color: #fff;
}

.stcw-bottom-strip {
  background: linear-gradient(90deg, var(--stcw-maroon-dark), var(--stcw-maroon));
  color: #fff;
}

.stcw-top-strip__inner,
.stcw-nav {
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
}

.stcw-home-shell {
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
}

.stcw-home-shell .stcw-search-panel,
.stcw-home-shell .stcw-home-banner,
.stcw-home-shell .stcw-quick-grid,
.stcw-home-shell .stcw-stats,
.stcw-home-shell .stcw-categories,
.stcw-home-shell .stcw-trust {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.stcw-top-strip__inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 700;
}

.stcw-top-pill-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  text-align: center;
}

.stcw-nav-wrap {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 223, 219, 0.7);
}

.stcw-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stcw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stcw-brand__mark,
.stcw-brand img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 12px;
  flex: 0 0 56px;
  background: var(--stcw-maroon);
}

.stcw-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  line-height: 1;
}

.stcw-brand__name {
  display: block;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.8px;
  line-height: 1;
  color: var(--stcw-maroon);
}

.stcw-brand__name span {
  color: var(--stcw-ink);
}

.stcw-brand__tag {
  display: block;
  margin-top: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: var(--stcw-muted);
}

.stcw-nav__links,
.stcw-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stcw-nav__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 8px;
}

.stcw-nav__logins {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  white-space: nowrap;
  gap: 10px;
  flex-wrap: wrap;
}

.stcw-nav__links {
  font-size: 13px;
  font-weight: 800;
}

.stcw-nav__links .stcw-nav__drop {
  position: relative;
}

.stcw-nav__links .stcw-nav__drop > span {
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stcw-nav__links .stcw-nav__drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--stcw-border);
  border-radius: 10px;
  box-shadow: var(--stcw-shadow);
  padding: 8px;
  min-width: 190px;
  z-index: 50;
}

.stcw-nav__links .stcw-nav__drop:hover .stcw-nav__drop-menu,
.stcw-nav__links .stcw-nav__drop:focus-within .stcw-nav__drop-menu {
  display: block;
}

.stcw-nav__links .stcw-nav__drop-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.stcw-nav__links .stcw-nav__drop-menu a:hover {
  background: var(--stcw-orange-light);
}

.stcw-nav__actions a,
.stcw-nav__logins a {
  border: 1px solid var(--stcw-orange-border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 900;
  background: var(--stcw-orange-light);
  color: var(--stcw-ink);
}

.stcw-nav__actions a:hover,
.stcw-nav__logins a:hover {
  background: rgba(238, 91, 18, 0.2);
}

/* PWA install icons inside header — do not inherit login button chrome */
.stcw-nav__actions .stcw-pwa-install__btn,
.stcw-nav__actions .stcw-pwa-install a.stcw-pwa-install__btn {
  border: 0;
  background: transparent;
  padding: 2px 4px;
  font-weight: inherit;
}

.stcw-home-banner {
  width: 100%;
  margin: 24px 0 0;
  line-height: 0;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 1774 / 790.4;
}

.stcw-home-banner picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.stcw-home-banner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Legacy/mobile markup: never stack Booker logo on the seafarer hero image. */
.stcw-home-banner .stcw-mobile-banner-top,
.stcw-home-banner .stcw-brand--overlay {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.stcw-search-panel {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--stcw-shadow);
  overflow: visible;
  border: 1px solid var(--stcw-border);
}

.stcw-search-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.74fr) minmax(0, 0.66fr);
  background: #faf7f5;
  border-bottom: 1px solid var(--stcw-border);
}

.stcw-search-tab {
  border: 0;
  border-right: 1px solid var(--stcw-border);
  padding: 21px 10px;
  background: transparent;
  color: #2d2222;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.stcw-search-tab[data-tab="course"] {
  padding: 22px 18px;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.25px;
  color: #d4a000;
}

.stcw-search-tab[data-tab="course"] .fa {
  font-size: 1.12em;
  margin-right: 3px;
  color: inherit;
}

.stcw-search-tab[data-tab="job"],
.stcw-search-tab[data-tab="certificate"] {
  padding: 18px 8px;
  font-size: 13.5px;
  font-weight: 800;
}

.stcw-search-tab:last-child {
  border-right: 0;
}

.stcw-search-tab.is-active {
  background: linear-gradient(135deg, var(--stcw-red), var(--stcw-maroon));
  color: #fff;
}

.stcw-search-tab[data-tab="course"].is-active {
  color: #ffe14a;
  box-shadow: inset 0 -4px 0 rgba(255, 235, 120, .55);
  text-shadow:
    0 0 14px rgba(255, 225, 74, .65),
    0 1px 2px rgba(0, 0, 0, .35);
}

.stcw-tab-panel {
  display: none;
  padding: 28px 32px;
  overflow: visible;
}

.stcw-tab-panel.is-active {
  display: block;
}

.stcw-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.stcw-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--stcw-border);
  border-radius: 6px;
  background: #fff;
  color: #2d2222;
  font-weight: 900;
  cursor: pointer;
}

.stcw-mode-btn.is-active,
.stcw-mode-btn:hover {
  background: var(--stcw-red);
  color: #fff;
  border-color: var(--stcw-red);
}

.stcw-course-mode-panel {
  display: none;
}

.stcw-course-mode-panel.is-active {
  display: block;
}

.stcw-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.9fr) minmax(0, 0.68fr) minmax(0, 0.95fr) 136px;
  gap: 18px;
  align-items: end;
  overflow: visible;
}

.stcw-form-grid > .stcw-field {
  position: relative;
  z-index: 1;
}

.stcw-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 900;
}

.stcw-field input,
.stcw-field select {
  width: 100%;
  height: 58px;
  border: 1px solid #e0d4d0;
  border-radius: 7px;
  padding: 0 15px;
  font-size: 15px;
  background: #fff;
}

.stcw-field select option:disabled {
  color: #8a7672;
  font-weight: 700;
}

.stcw-autocomplete-field {
  position: relative;
  z-index: 1;
}

.stcw-autocomplete-field:focus-within,
.stcw-autocomplete-field.is-open {
  z-index: 200;
}

.stcw-autocomplete-list {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 1;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #d8c4bf;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.stcw-autocomplete-list div {
  padding: 10px 12px;
  cursor: pointer;
  color: #111;
  font-size: 14px;
}

.stcw-autocomplete-list div:hover {
  background: #fff2ef;
}

.stcw-search-button {
  height: 58px;
  border: 0;
  border-radius: 7px;
  padding: 0 8px;
  background: linear-gradient(135deg, #ff731d, #e24908);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

@keyframes stcw-cashback-amount-scale {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.22);
  }
}

@keyframes stcw-cashback-amount-color {
  0%,
  100% {
    color: #ffe14a;
    text-shadow: 0 0 10px rgba(255, 225, 74, .55);
  }

  20% {
    color: #ffffff;
    text-shadow:
      0 0 14px rgba(255, 255, 255, 1),
      0 0 26px rgba(255, 225, 74, .85);
  }

  40% {
    color: #57ff57;
    text-shadow:
      0 0 16px rgba(87, 255, 87, 1),
      0 0 30px rgba(40, 220, 80, .75);
  }

  60% {
    color: #ff7cf9;
    text-shadow:
      0 0 16px rgba(255, 124, 249, 1),
      0 0 28px rgba(255, 80, 220, .7);
  }

  80% {
    color: #5ef3ff;
    text-shadow:
      0 0 16px rgba(94, 243, 255, 1),
      0 0 28px rgba(40, 200, 255, .75);
  }
}

@keyframes stcw-cashback-gift-star {
  0%,
  100% {
    opacity: .75;
    transform: scale(.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.85);
  }
}

@keyframes stcw-cashback-spark-1 {
  0% { opacity: 0; transform: translate(0, 8px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(-18px, -20px) scale(1.15) rotate(60deg); }
  100% { opacity: 0; transform: translate(-48px, -50px) scale(1.65) rotate(140deg); }
}

@keyframes stcw-cashback-spark-2 {
  0% { opacity: 0; transform: translate(0, 8px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(16px, -22px) scale(1.12) rotate(-50deg); }
  100% { opacity: 0; transform: translate(46px, -52px) scale(1.6) rotate(-120deg); }
}

@keyframes stcw-cashback-spark-3 {
  0% { opacity: 0; transform: translate(0, 6px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(-24px, -2px) scale(1.1) rotate(100deg); }
  100% { opacity: 0; transform: translate(-54px, -8px) scale(1.55) rotate(200deg); }
}

@keyframes stcw-cashback-spark-4 {
  0% { opacity: 0; transform: translate(0, 6px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(22px, -4px) scale(1.1) rotate(-30deg); }
  100% { opacity: 0; transform: translate(52px, -10px) scale(1.55) rotate(-40deg); }
}

@keyframes stcw-cashback-spark-5 {
  0% { opacity: 0; transform: translate(0, 10px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(-14px, 12px) scale(1.08) rotate(40deg); }
  100% { opacity: 0; transform: translate(-36px, 34px) scale(1.5) rotate(80deg); }
}

@keyframes stcw-cashback-spark-6 {
  0% { opacity: 0; transform: translate(0, 10px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(14px, 10px) scale(1.08) rotate(-70deg); }
  100% { opacity: 0; transform: translate(38px, 32px) scale(1.5) rotate(-150deg); }
}

@keyframes stcw-cashback-spark-7 {
  0% { opacity: 0; transform: translate(0, 12px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(-2px, -26px) scale(1.2) rotate(10deg); }
  100% { opacity: 0; transform: translate(-8px, -58px) scale(1.7) rotate(20deg); }
}

@keyframes stcw-cashback-spark-8 {
  0% { opacity: 0; transform: translate(0, 12px) scale(.5) rotate(0deg); }
  12% { opacity: 1; }
  45% { opacity: 1; transform: translate(4px, -24px) scale(1.18) rotate(-12deg); }
  100% { opacity: 0; transform: translate(12px, -56px) scale(1.65) rotate(-25deg); }
}

@keyframes stcw-cashback-cash-pop {
  0%,
  100% {
    transform: scale(1);
    color: #ffe14a;
    text-shadow: 0 0 6px rgba(255, 225, 74, .3);
  }

  50% {
    transform: scale(1.06);
    color: #fff0a0;
    text-shadow:
      0 0 14px rgba(255, 225, 74, .9),
      0 0 26px rgba(255, 200, 60, .45);
  }
}

.stcw-cashback {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 12px 22px 12px 16px;
  border-radius: 22px;
  overflow: visible;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, #9a1c24 0%, #7c1219 58%, #5c0c12 100%);
  box-shadow: 0 10px 22px rgba(90, 8, 14, .22);
}

.stcw-cashback__gift {
  --gift-w: 104px;
  --gift-h: 94px;
  position: relative;
  z-index: 2;
  flex: 0 0 var(--gift-w);
  width: var(--gift-w);
  height: var(--gift-h);
  overflow: visible;
}

.stcw-cashback__gift svg {
  position: relative;
  z-index: 1;
  display: block;
  width: var(--gift-w);
  height: var(--gift-h);
  overflow: visible;
}

.stcw-cashback__gift-star {
  transform-box: fill-box;
  transform-origin: center;
  filter:
    drop-shadow(0 0 2px #fff)
    drop-shadow(0 0 6px #fff)
    drop-shadow(0 0 10px #ffe14a);
  animation: stcw-cashback-gift-star 1.1s ease-in-out infinite;
}

.stcw-cashback__gift-star:nth-of-type(1) { animation-delay: 0s; }
.stcw-cashback__gift-star:nth-of-type(2) { animation-delay: .18s; }
.stcw-cashback__gift-star:nth-of-type(3) { animation-delay: .36s; }
.stcw-cashback__gift-star:nth-of-type(4) { animation-delay: .54s; }
.stcw-cashback__gift-star:nth-of-type(5) { animation-delay: .72s; }
.stcw-cashback__gift-star:nth-of-type(6) { animation-delay: .9s; }

.stcw-cashback__sparkles {
  position: absolute;
  z-index: 3;
  inset: -22px -18px -12px -18px;
  pointer-events: none;
  overflow: visible;
}

.stcw-cashback__spark {
  position: absolute;
  left: calc(var(--gift-w, 104px) / 2);
  top: calc(var(--gift-h, 94px) * .46);
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  font-size: 26px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
  -webkit-text-stroke: .35px rgba(124, 18, 25, .35);
  text-shadow:
    0 0 6px #fff,
    0 0 12px #fff,
    0 0 18px #ffe14a,
    0 0 28px #fff200,
    0 0 38px rgba(255, 225, 74, 1);
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #ffe14a);
  opacity: 0;
  transform: translate(0, 0);
  transform-origin: center center;
}

.stcw-cashback__spark--1 { color: #ffffff; animation: stcw-cashback-spark-1 1.9s ease-out infinite; animation-delay: 0s; font-size: 28px; }
.stcw-cashback__spark--2 { color: #fff200; animation: stcw-cashback-spark-2 1.9s ease-out infinite; animation-delay: .24s; font-size: 24px; }
.stcw-cashback__spark--3 { color: #ffffff; animation: stcw-cashback-spark-3 1.9s ease-out infinite; animation-delay: .48s; font-size: 26px; }
.stcw-cashback__spark--4 { color: #fff200; animation: stcw-cashback-spark-4 1.9s ease-out infinite; animation-delay: .72s; font-size: 23px; }
.stcw-cashback__spark--5 { color: #ffffff; animation: stcw-cashback-spark-5 1.9s ease-out infinite; animation-delay: .96s; font-size: 27px; }
.stcw-cashback__spark--6 { color: #fff200; animation: stcw-cashback-spark-6 1.9s ease-out infinite; animation-delay: 1.2s; font-size: 24px; }
.stcw-cashback__spark--7 { color: #ffffff; animation: stcw-cashback-spark-7 1.9s ease-out infinite; animation-delay: .36s; font-size: 30px; }
.stcw-cashback__spark--8 { color: #fff200; animation: stcw-cashback-spark-8 1.9s ease-out infinite; animation-delay: .84s; font-size: 29px; }

.stcw-cashback__rule {
  flex: 0 0 2px;
  align-self: stretch;
  margin: 8px 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .9);
}

.stcw-cashback__offer {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 8px 0 4px;
}

.stcw-cashback__offer-lead {
  color: #ffe14a;
  width: 100%;
  font-size: clamp(16px, 1.65vw, 26px);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -.2px;
  line-height: 1.25;
  text-align: center;
}

.stcw-cashback__cash {
  display: inline-block;
  transform-origin: center center;
  will-change: transform, color;
  animation: stcw-cashback-cash-pop 2.2s cubic-bezier(.45, .05, .55, .95) infinite;
}

.stcw-cashback__amount {
  display: inline-block;
  transform-origin: center center;
  will-change: transform, color;
  color: #ffe14a;
  font-size: 1.45em;
  font-style: italic;
  font-weight: 900;
  letter-spacing: -.4px;
  white-space: nowrap;
  text-shadow: 0 0 10px rgba(255, 225, 74, .55);
  animation:
    stcw-cashback-amount-color 3.2s cubic-bezier(.45, .05, .55, .95) infinite,
    stcw-cashback-amount-scale 3.2s cubic-bezier(.45, .05, .55, .95) infinite;
}

.stcw-cashback:hover .stcw-cashback__amount,
.stcw-cashback:hover .stcw-cashback__cash,
.stcw-cashback:hover .stcw-cashback__spark,
.stcw-cashback:hover .stcw-cashback__gift-star {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .stcw-cashback__amount,
  .stcw-cashback__cash {
    animation: none;
    transform: none;
    text-shadow: none;
    color: #ffe14a;
  }

  .stcw-cashback__spark,
  .stcw-cashback__gift-star {
    animation: none !important;
    opacity: .85;
  }
}

.stcw-cashback__pill {
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe56a, #f0c200);
  color: #7a1020;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.stcw-search-notes {
  display: flex;
  justify-content: center;
  gap: 44px;
  margin-top: 14px;
  padding: 17px;
  background: #fff2ef;
  color: #3a2222;
  font-weight: 900;
}

.stcw-course-by-institute {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.stcw-form-grid--institute {
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.5fr) 180px;
}

.stcw-inline-msg {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 11px 13px;
  border: 1px solid #f3c1b8;
  border-radius: 8px;
  background: #fff3ef;
  color: #8a1b12;
  font-weight: 800;
}

.stcw-inline-msg.is-visible {
  display: flex;
}

.stcw-inline-msg button {
  border: 0;
  background: transparent;
  color: #8a1b12;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}

.stcw-quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 30px;
  border: 1px solid var(--stcw-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.stcw-quick-grid.stcw-desktop-only {
  display: grid;
}

.stcw-quick-card {
  min-height: 205px;
  padding: 30px 20px;
  text-align: center;
  border-right: 1px solid var(--stcw-border);
}

.stcw-quick-card:last-child {
  border-right: 0;
}

.stcw-quick-icon {
  display: block;
  margin-bottom: 16px;
  font-size: 42px;
  color: var(--stcw-red);
}

.stcw-quick-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 15px;
}

.stcw-quick-card p {
  margin: 0;
  color: var(--stcw-muted);
  font-size: 13px;
  line-height: 1.45;
}

.stcw-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 28px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--stcw-maroon-dark), var(--stcw-maroon));
  color: #fff;
  overflow: hidden;
}

.stcw-stat {
  padding: 20px 12px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.25);
}

.stcw-stat:last-child {
  border-right: 0;
}

.stcw-stat strong {
  display: block;
  font-size: 22px;
}

.stcw-stat span {
  font-size: 11px;
  font-weight: 800;
}

.stcw-section-title {
  text-align: center;
  margin: 30px 0 20px;
  font-size: 22px;
  font-weight: 900;
}

.stcw-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stcw-category-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  text-align: center;
}

.stcw-category-card--soon {
  cursor: default;
  pointer-events: none;
  opacity: .94;
}

.stcw-category-soon {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe56a, #f0c200);
  color: #7a1020;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

.stcw-category-card--soon strong {
  color: #7a3a3a;
}

.stcw-category-card--soon > span:last-child {
  color: #a65a28;
  font-weight: 800;
}

.stcw-category-thumb {
  height: 148px;
  background:
    linear-gradient(135deg, #dcecf5, #b9d3e3);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stcw-red);
  font-size: 44px;
}

.stcw-category-card--ship .stcw-category-thumb,
.stcw-category-card--bridge .stcw-category-thumb,
.stcw-category-card--rig .stcw-category-thumb,
.stcw-category-card--stcw .stcw-category-thumb,
.stcw-category-card--tanker .stcw-category-thumb,
.stcw-category-card--value .stcw-category-thumb,
.stcw-category-card--elearn .stcw-category-thumb,
.stcw-category-card--viva .stcw-category-thumb {
  background-color: #e9f0f5;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.stcw-category-card--ship .stcw-category-thumb {
  background-image: url("../images new/dp_vessel.jpg");
}

.stcw-category-card--bridge .stcw-category-thumb {
  background-image: url("../images new/bridge.jpg");
}

.stcw-category-card--rig .stcw-category-thumb {
  background-image: url("../images new/rig.png");
}

.stcw-category-card--stcw .stcw-category-thumb {
  background-image: url("../images new/Front End Images/STCW Courses Image.png");
}

.stcw-category-card--tanker .stcw-category-thumb {
  background-image: url("../images new/Front End Images/Tanker Courses Image.png");
}

.stcw-category-card--value .stcw-category-thumb {
  background-image: url("../images new/Front End Images/Value Added Image.png");
}

.stcw-category-card--elearn .stcw-category-thumb {
  background-image: url("../images new/Front End Images/E Learning Image.png");
}

.stcw-category-card--viva .stcw-category-thumb {
  background-image: url("../images new/Front End Images/Vivia Image.png");
}

.stcw-category-card--ship .stcw-category-thumb i,
.stcw-category-card--bridge .stcw-category-thumb i,
.stcw-category-card--rig .stcw-category-thumb i,
.stcw-category-card--stcw .stcw-category-thumb i,
.stcw-category-card--tanker .stcw-category-thumb i,
.stcw-category-card--value .stcw-category-thumb i,
.stcw-category-card--elearn .stcw-category-thumb i,
.stcw-category-card--viva .stcw-category-thumb i {
  display: none;
}

.stcw-category-card strong {
  display: block;
  padding: 14px 10px 3px;
  font-size: 13px;
}

.stcw-category-card span {
  display: block;
  padding: 0 10px 14px;
  color: var(--stcw-muted);
  font-size: 12px;
}

.stcw-trust {
  margin-top: 34px;
  padding: 22px 0;
  text-align: center;
}

.stcw-trust h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.stcw-trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #506070;
  font-weight: 900;
}

.stcw-bottom-strip__inner {
  min-height: 52px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1050px) {
  .stcw-nav {
    flex-wrap: wrap;
  }

  .stcw-nav__links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .stcw-form-grid,
  .stcw-stats,
  .stcw-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stcw-quick-grid.stcw-desktop-only {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .stcw-top-strip__inner,
  .stcw-nav,
  .stcw-home-shell {
    width: min(100% - 20px, 1340px);
  }

  .stcw-top-strip__inner,
  .stcw-top-pill-row,
  .stcw-nav__actions {
    justify-content: center;
  }

  .stcw-nav {
    justify-content: center;
  }

  .stcw-nav__links {
    display: none;
  }

  .stcw-brand__name {
    font-size: 23px;
  }

  .stcw-home-banner {
    margin-top: 18px;
    border-radius: 12px;
  }

  .stcw-search-tabs,
  .stcw-form-grid,
  .stcw-stats,
  .stcw-category-grid {
    grid-template-columns: 1fr;
  }

  .stcw-search-panel {
    margin-top: 0;
  }

  .stcw-tab-panel {
    padding: 18px;
  }

  .stcw-cashback {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .stcw-cashback__rule {
    display: none;
  }

  .stcw-cashback__offer {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .stcw-cashback__offer-lead {
    font-size: 17px;
    line-height: 1.35;
  }

  .stcw-cashback__pill {
    margin-left: 0;
    font-size: 14px;
    text-align: center;
  }

  .stcw-search-notes {
    flex-direction: column;
    gap: 12px;
  }

  .stcw-quick-card,
  .stcw-stat {
    border-right: 0;
    border-bottom: 1px solid var(--stcw-border);
  }
}

.stcw-mobile-only {
  display: none !important;
}

.stcw-mobile-hero-block {
  display: flex;
  flex-direction: column;
}

.stcw-mobile-hero-block .stcw-search-panel {
  order: 1;
}

.stcw-mobile-hero-block .stcw-home-banner {
  order: 2;
  margin-top: 24px;
}

@media (max-width: 768px) {
  .stcw-desktop-only {
    display: none !important;
  }

  .stcw-mobile-only {
    display: block !important;
  }

  body.stcw-student-booking-mobile .stcw-mobile-login-row,
  body.stcw-student-booking-mobile .stcw-nav-wrap,
  .stcw-mobile-login-row--hidden,
  body.stcw-student-booking-mobile .stcw-mobile-trust,
  .stcw-mobile-trust--hidden {
    display: none !important;
  }

  .stcw-student-mobile-chrome {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: #7b0000;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  }

  .stcw-student-mobile-chrome__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 8px 4px;
  }

  .stcw-student-mobile-chrome__back,
  .stcw-student-mobile-chrome__back-spacer {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }

  .stcw-student-mobile-chrome__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    text-decoration: none;
  }

  .stcw-student-mobile-chrome__center {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    line-height: 1.15;
  }

  .stcw-student-mobile-chrome__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: -.3px;
    color: #fff;
  }

  .stcw-student-mobile-chrome__eyebrow span {
    color: #ffb4b4;
  }

  .stcw-student-mobile-chrome__title {
    display: block;
    margin-top: 1px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .92);
  }

  .stcw-student-mobile-chrome__user {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    max-width: 72px;
  }

  .stcw-student-mobile-chrome__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    object-fit: cover;
  }

  .stcw-student-mobile-chrome__name {
    font-size: 8px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stcw-student-mobile-chrome__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 8px 5px;
    border-top: 1px solid rgba(255, 255, 255, .14);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }

  .stcw-student-mobile-chrome__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, .95);
    text-decoration: none;
    white-space: nowrap;
  }

  .stcw-student-mobile-chrome__link--logout {
    color: #ffd4a8;
  }

  .stcw-student-mobile-chrome__link .fa {
    font-size: 11px;
    opacity: .9;
  }

  .stcw-mobile-header-tools.stcw-mobile-only {
    display: flex !important;
  }

  .stcw-mobile-search-modes.stcw-mobile-only {
    display: flex !important;
  }

  .stcw-top-strip {
    display: none;
  }

  .stcw-top-strip__inner,
  .stcw-nav {
    width: min(100% - 24px, 1340px);
  }

  .stcw-home-shell {
    width: 100%;
    max-width: 100%;
    padding: 0 14px;
    box-sizing: border-box;
  }

  .stcw-nav {
    min-height: 64px;
    justify-content: space-between;
  }

  .stcw-brand__mark,
  .stcw-brand img {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .stcw-brand__name {
    font-size: 20px;
  }

  .stcw-brand__tag {
    font-size: 9px;
    letter-spacing: 2px;
  }

  .stcw-mobile-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .stcw-mobile-icon-btn {
    position: relative;
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 17px;
    cursor: pointer;
  }

  .stcw-mobile-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    font-weight: 900;
  }

  .stcw-mobile-only[hidden] {
    display: none !important;
  }

  .stcw-mobile-login-row {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    padding: 0 10px 10px;
    border-bottom: 1px solid var(--stcw-border);
    background: #fff;
  }

  .stcw-mobile-login-row a {
    flex: 1 1 0;
    text-align: center;
    padding: 8px 4px;
    border: 1px solid var(--stcw-orange-border);
    border-radius: 6px;
    background: var(--stcw-orange-light);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
  }

  .stcw-mobile-login-row a i {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
  }

  .stcw-nav-wrap {
    border-bottom: 0;
  }

  .stcw-nav {
    display: none !important;
  }

  .stcw-home-banner {
    position: relative;
  }

  .stcw-mobile-banner-top {
    display: none !important;
  }

  .stcw-brand--overlay .stcw-brand__name {
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
  }

  .stcw-brand--overlay .stcw-brand__name span {
    color: #ffb4a0;
  }

  .stcw-brand--overlay .stcw-brand__tag {
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  }

  .stcw-mobile-icon-btn--overlay {
    border-color: rgba(255, 255, 255, .55);
    background: rgba(255, 255, 255, .18);
    color: #fff;
    backdrop-filter: blur(4px);
  }

  .stcw-mobile-hero-block {
    width: 100%;
    margin: 0;
    padding-bottom: 28px;
  }

  .stcw-mobile-hero-block .stcw-home-banner {
    order: 1;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    overflow: hidden;
    max-height: none;
  }

  .stcw-mobile-hero-block .stcw-home-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
  }

  .stcw-mobile-hero-block .stcw-search-panel {
    order: 2;
    width: 100%;
    max-width: 100%;
    margin: -68px auto 0;
    z-index: 8;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(79,0,0,.2);
    border: 1px solid #f0e4e0;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
  }

  .stcw-mobile-search-modes {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding: 18px 14px 0;
    border-bottom: 0;
  }

  .stcw-mobile-radio {
    flex: 1 1 0;
    justify-content: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    color: #333;
    cursor: pointer;
    text-align: center;
    line-height: 1.25;
  }

  .stcw-mobile-radio input {
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
    accent-color: var(--stcw-maroon);
  }

  .stcw-tab-panel {
    padding: 14px 14px 18px;
  }

  .stcw-form-grid,
  .stcw-form-grid--institute {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
  }

  body.stcw-mobile-mode-city .stcw-mobile-primary,
  body.stcw-mobile-mode-institute .stcw-mobile-primary,
  body.stcw-mobile-mode-job .stcw-mobile-primary,
  body.stcw-mobile-mode-city .stcw-search-button,
  body.stcw-mobile-mode-institute .stcw-search-button,
  body.stcw-mobile-mode-job .stcw-search-button {
    grid-column: 1 / -1;
  }

  body.stcw-mobile-mode-institute .stcw-mobile-f-secondary,
  body.stcw-mobile-mode-job .stcw-mobile-f-secondary,
  body.stcw-mobile-mode-certificate .stcw-mobile-f-secondary,
  body.stcw-mobile-mode-certificate .stcw-search-button {
    grid-column: 1 / -1;
  }

  body.stcw-mobile-mode-job .stcw-field:has(#jobtitle),
  body.stcw-mobile-mode-job .stcw-field:has(#shiptype) {
    grid-column: span 1;
  }

  body.stcw-mobile-mode-city .stcw-mobile-f-institute,
  body.stcw-mobile-mode-city .stcw-mobile-f-job,
  body.stcw-mobile-mode-institute .stcw-mobile-f-city,
  body.stcw-mobile-mode-institute .stcw-mobile-f-job,
  body.stcw-mobile-mode-job .stcw-mobile-f-city,
  body.stcw-mobile-mode-job .stcw-mobile-f-institute {
    display: none !important;
  }

  body.stcw-mobile-mode-institute .stcw-field-agency,
  body.stcw-mobile-mode-job .stcw-field-country {
    display: none !important;
  }

  body.stcw-mobile-mode-city .stcw-field-agency,
  body.stcw-mobile-mode-city .stcw-field-course,
  body.stcw-mobile-mode-city .stcw-field-country,
  body.stcw-mobile-mode-city .stcw-field-city {
    grid-column: 1 / -1;
    order: 0;
  }

  body.stcw-mobile-mode-institute .stcw-mobile-primary,
  body.stcw-mobile-mode-job .stcw-mobile-primary {
    order: 1;
  }

  body.stcw-mobile-mode-institute .stcw-mobile-f-secondary,
  body.stcw-mobile-mode-job .stcw-mobile-f-secondary {
    order: 2;
  }

  body.stcw-mobile-mode-city .stcw-search-button,
  body.stcw-mobile-mode-institute .stcw-search-button,
  body.stcw-mobile-mode-job .stcw-search-button,
  body.stcw-mobile-mode-certificate .stcw-search-button {
    order: 10;
    width: 100%;
    height: 44px;
    margin-top: 6px;
    border-radius: 10px;
    font-size: 15px;
  }

  .stcw-field label {
    margin-bottom: 7px;
    font-size: 11px;
  }

  .stcw-mobile-primary input,
  .stcw-mobile-primary select {
    height: 58px;
    padding-left: 42px;
    font-size: 15px;
    border-radius: 8px;
  }

  .stcw-mobile-f-secondary input,
  .stcw-mobile-f-secondary select {
    height: 50px;
    font-size: 14px;
    border-radius: 8px;
  }

  body.stcw-mobile-mode-city .stcw-mobile-primary {
    position: relative;
  }

  body.stcw-mobile-mode-city .stcw-mobile-primary::before {
    content: '\f041';
    font-family: FontAwesome;
    position: absolute;
    left: 14px;
    bottom: 20px;
    color: #888;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
  }

  body.stcw-mobile-mode-institute .stcw-mobile-primary::before {
    content: '\f19c';
    font-family: FontAwesome;
    position: absolute;
    left: 14px;
    bottom: 20px;
    color: #888;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
  }

  body.stcw-mobile-mode-job .stcw-mobile-primary::before {
    content: '\f0b1';
    font-family: FontAwesome;
    position: absolute;
    left: 14px;
    bottom: 16px;
    color: #888;
    font-size: 18px;
    z-index: 2;
    pointer-events: none;
  }

  body.stcw-mobile-mode-job .stcw-mobile-primary {
    position: relative;
  }

  body.stcw-mobile-mode-job .stcw-field:has(#stcw-flag) {
    display: none !important;
  }

  .stcw-mobile-trust {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
    margin: 20px 0 10px;
    text-align: center;
  }

  .stcw-mobile-trust div {
    font-size: 11px;
    font-weight: 800;
    color: #4a4a4a;
    line-height: 1.3;
  }

  .stcw-mobile-trust i {
    display: block;
    margin-bottom: 6px;
    color: var(--stcw-maroon);
    font-size: 22px;
  }

  .stcw-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 0;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #fff3f0;
    color: var(--stcw-maroon);
    box-shadow: none;
    border: 1px solid #f0ded8;
  }

  .stcw-stat:nth-child(5) {
    grid-column: 1 / -1;
  }

  .stcw-stat {
    padding: 16px 10px;
    border-right: 0;
    border-bottom: 1px solid #f0ded8;
    background: transparent;
  }

  .stcw-stat strong {
    font-size: 18px;
    color: var(--stcw-maroon);
  }

  .stcw-stat span {
    color: #444;
  }

  .stcw-bottom-strip__inner {
    gap: 14px;
    font-size: 11px;
    padding: 10px 8px;
  }

  .stcw-bottom-strip__inner span {
    flex: 1 1 40%;
    text-align: center;
  }
}

/* ==========================================================================
   Shrishan AI ribbon, hero overlay, AI ecosystem, Meet Shrishan AI, footer
   improvements (V2 homepage redesign). Reuses existing --stcw-* tokens and
   card/shadow/radius conventions already established above - no new palette.
   ========================================================================== */

.stcw-ai-ribbon {
  background: linear-gradient(90deg, var(--stcw-maroon-dark), var(--stcw-maroon));
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.stcw-ai-ribbon__inner {
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 10px 0;
}

.stcw-ai-ribbon__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Placeholder mark until the approved Shrishan AI logo file is supplied -
   swap this .stcw-ai-mark block for an <img> once the asset exists. */
.stcw-ai-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  flex: 0 0 auto;
}

.stcw-ai-ribbon__text strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.stcw-ai-ribbon__text span {
  display: block;
  font-size: 11px;
  opacity: .88;
  font-weight: 700;
  margin-top: 1px;
}

.stcw-ai-ribbon__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stcw-ai-ribbon__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.stcw-ai-ribbon__links a:hover {
  background: rgba(255,255,255,.2);
}

.stcw-ai-ribbon__links a i {
  font-size: 12px;
}

/* Hero: text content + real seafarer/ship photo side by side */
/* Full-bleed hero: real seafarer/ship photo as a section background spanning
   the full browser width (escapes .stcw-home-shell's max-width), text
   overlaid on top with a left-to-right scrim for legibility. Replaces the
   earlier side-by-side split layout per review feedback. */
.stcw-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin: -79px 0 0;
  padding-top: 90px;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.stcw-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(255,251,248,.96) 0%, rgba(255,251,248,.9) 32%, rgba(255,251,248,.55) 52%, rgba(123,0,0,.12) 78%, rgba(123,0,0,.02) 100%);
}

.stcw-hero__content {
  position: relative;
  z-index: 2;
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
  padding: 64px 0;
}

.stcw-hero__content > * {
  max-width: 520px;
}

.stcw-hero__eyebrow {
  color: var(--stcw-red);
  font-weight: 900;
  font-size: 14px;
  margin: 0 0 8px;
}

.stcw-hero__title {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.16;
  font-weight: 900;
  color: var(--stcw-ink);
}

.stcw-hero__title em {
  font-style: normal;
  color: var(--stcw-maroon);
}

.stcw-hero__sub {
  margin: 0 0 20px;
  color: var(--stcw-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 46ch;
}

.stcw-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid var(--stcw-orange-border);
  border-radius: 10px;
  background: var(--stcw-orange-light);
  margin-bottom: 22px;
}

.stcw-hero__badge .stcw-ai-mark {
  background: #fff;
  border-color: var(--stcw-orange-border);
  color: var(--stcw-maroon);
}

.stcw-hero__badge strong {
  display: block;
  font-size: 13px;
  color: var(--stcw-maroon);
}

.stcw-hero__badge span {
  display: block;
  font-size: 11px;
  color: var(--stcw-muted);
  font-weight: 700;
}

.stcw-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.stcw-hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #3a2222;
}

.stcw-hero__trust i {
  color: var(--stcw-red);
}

/* Override .stcw-home-banner's normal boxed/aspect-ratio treatment only
   inside .stcw-hero, where it becomes the full-bleed background layer instead
   of a bounded card image - overrides intentionally scoped to this one
   context, base .stcw-home-banner rule is untouched for any other use. */
.stcw-hero .stcw-home-banner {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  margin: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
}

.stcw-hero .stcw-home-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 22%;
}

/* AI-Powered Maritime Ecosystem: flat icon row */
.stcw-ai-eco {
  margin-top: 34px;
  padding: 26px 24px;
  border: 1px solid var(--stcw-border);
  border-radius: 14px;
  background: #fff;
}

.stcw-ai-eco__label {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 900;
  color: var(--stcw-maroon);
  letter-spacing: .4px;
}

.stcw-ai-eco__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.stcw-ai-eco__item {
  text-align: center;
  padding: 10px 6px;
}

.stcw-ai-eco__item i {
  display: block;
  margin: 0 auto 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--stcw-orange-light);
  color: var(--stcw-red);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.stcw-ai-eco__item span {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--stcw-ink);
}

/* Meet Shrishan AI: intro column + feature-card grid */
.stcw-meet-ai {
  margin-top: 34px;
  padding: 30px;
  border: 1px solid var(--stcw-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf8, #fff);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 30px;
}

.stcw-meet-ai__intro .stcw-ai-mark {
  background: var(--stcw-maroon);
  color: #fff;
  border-color: var(--stcw-maroon);
  width: 52px;
  height: 52px;
  font-size: 18px;
  margin-bottom: 14px;
}

.stcw-meet-ai__intro h2 {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 900;
  color: var(--stcw-ink);
}

.stcw-meet-ai__intro p.stcw-meet-ai__kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--stcw-red);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stcw-meet-ai__intro p {
  color: var(--stcw-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 18px;
}

.stcw-meet-ai__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--stcw-maroon);
  color: #fff;
  font-weight: 900;
  font-size: 13.5px;
}

.stcw-meet-ai__cta:hover {
  background: var(--stcw-maroon-dark);
}

.stcw-meet-ai__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stcw-meet-ai__card {
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--stcw-border);
  border-radius: 10px;
}

.stcw-meet-ai__card i {
  display: block;
  margin-bottom: 10px;
  color: var(--stcw-maroon);
  font-size: 20px;
}

.stcw-meet-ai__card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--stcw-red);
}

.stcw-meet-ai__card span {
  display: block;
  font-size: 12px;
  color: var(--stcw-muted);
  line-height: 1.45;
}

.stcw-footer-links {
  width: min(1340px, calc(100% - 28px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  padding: 16px 0;
  font-size: 12.5px;
  font-weight: 800;
  border-top: 1px solid rgba(255,255,255,.15);
}

@media (max-width: 1050px) {
  .stcw-hero {
    min-height: 520px;
  }

  .stcw-hero::before {
    background: linear-gradient(180deg, rgba(255,251,248,.55) 0%, rgba(255,251,248,.93) 46%, rgba(255,251,248,.97) 100%);
  }

  .stcw-hero__content > * {
    max-width: none;
  }

  .stcw-ai-eco__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stcw-meet-ai {
    grid-template-columns: 1fr;
  }

  .stcw-meet-ai__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .stcw-ai-ribbon__links {
    display: none;
  }

  .stcw-hero {
    min-height: 420px;
  }

  .stcw-hero__title {
    font-size: 30px;
  }

  .stcw-ai-eco__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stcw-meet-ai {
    padding: 20px;
  }

  .stcw-meet-ai__grid {
    grid-template-columns: 1fr;
  }

  .stcw-footer-links {
    gap: 14px;
    font-size: 11.5px;
  }
}

/* Full-bleed homepage hero + logo lockup (2026-08-26) */
body.stcw-home-new {
  overflow-x: hidden;
}

.stcw-mobile-hero-block {
  width: 100%;
  max-width: none;
}

.stcw-hero__content {
  padding: 36px 0 72px;
}

.stcw-nav-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(255,255,255,.62) 100%);
}

@media (max-width: 768px) {
  body.stcw-home-new {
    display: flex;
    flex-direction: column;
  }

  body.stcw-home-new > .stcw-student-mobile-chrome { order: 1; }
  body.stcw-home-new > .stcw-nav-wrap { order: 2; }
  body.stcw-home-new > main { order: 3; }
  body.stcw-home-new > .stcw-pwa-install { order: 4; }
  body.stcw-home-new > .stcw-bottom-strip { order: 5; }

  .stcw-nav-wrap {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .stcw-nav {
    display: flex !important;
    justify-content: center;
    min-height: 58px;
  }

  .stcw-hero {
    margin-top: 0;
    padding-top: 0;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .stcw-hero::before {
    background: linear-gradient(180deg, rgba(255,251,248,.12) 0%, rgba(255,251,248,.82) 70%, rgba(255,251,248,.97) 100%);
  }

  .stcw-hero .stcw-home-banner,
  .stcw-mobile-hero-block .stcw-home-banner {
    position: relative;
    order: -1;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    min-height: 220px;
  }

  .stcw-hero .stcw-home-banner img,
  .stcw-mobile-hero-block .stcw-home-banner img {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 280px;
    object-fit: cover;
    object-position: 70% 18%;
  }

  .stcw-hero__content {
    order: 1;
    width: 100%;
    padding: 18px 14px 24px;
  }

  .stcw-mobile-hero-block .stcw-search-panel {
    margin-top: 12px;
  }
}

/* Compact homepage: seafarer + text on the left, search inside the hero,
   Shrishan AI ask bar directly underneath. Desktop only above 768px so the
   existing mobile search modes keep their own stacking rules. */
@media (min-width: 769px) {
  .stcw-hero {
    position: relative;
    z-index: 4;
    width: min(1340px, calc(100% - 28px));
    margin: 18px auto 0;
    padding: 0;
    min-height: 0;
    display: block;
    overflow: visible;
    background: transparent;
    isolation: auto;
  }

  .stcw-hero::before {
    content: none;
  }

  .stcw-hero__stage {
    display: grid;
    grid-template-columns: minmax(200px, 0.48fr) minmax(0, 1.52fr);
    gap: 22px;
    align-items: center;
  }

  .stcw-hero__identity {
    grid-column: 1;
    grid-row: 1;
  }

  .stcw-hero .stcw-search-panel {
    grid-column: 2;
    grid-row: 1;
  }

  .stcw-hero .stcw-cashback {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0;
  }

  .stcw-hero__identity {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .stcw-hero__portrait {
    flex: 0 0 96px;
    width: 96px;
    height: 122px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(79, 0, 0, .12);
  }

  .stcw-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 22%;
  }

  .stcw-hero__content {
    width: auto;
    margin: 0;
    padding: 0;
  }

  .stcw-hero__content > * {
    max-width: none;
  }

  .stcw-hero__eyebrow {
    margin-bottom: 3px;
    font-size: 11.5px;
  }

  .stcw-hero__title {
    margin-bottom: 6px;
    font-size: 21px;
    line-height: 1.14;
  }

  .stcw-hero__sub {
    margin-bottom: 8px;
    font-size: 11.5px;
    line-height: 1.4;
  }

  .stcw-hero__badge {
    margin-bottom: 0;
    padding: 6px 10px;
    gap: 8px;
    border-radius: 8px;
  }

  .stcw-hero__badge strong {
    font-size: 11.5px;
  }

  .stcw-hero__badge span {
    font-size: 10px;
  }

  .stcw-hero__badge .stcw-ai-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .stcw-hero .stcw-search-panel {
    margin: 0;
    border-radius: 16px;
    min-width: 0;
  }

  .stcw-hero .stcw-search-tab[data-tab="course"] {
    padding: 20px 16px;
    font-size: 22px;
  }

  .stcw-hero .stcw-search-tab[data-tab="job"],
  .stcw-hero .stcw-search-tab[data-tab="certificate"] {
    padding: 18px 8px;
    font-size: 12.5px;
  }

  .stcw-hero .stcw-tab-panel {
    padding: 24px 26px 26px;
  }

  .stcw-hero .stcw-mode-row {
    gap: 12px;
    margin-bottom: 16px;
  }

  .stcw-hero .stcw-mode-btn {
    padding: 11px 16px;
    font-size: 13.5px;
  }

  .stcw-hero .stcw-form-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.9fr) minmax(0, 0.68fr) minmax(0, 0.95fr) 128px;
    gap: 12px;
    align-items: end;
  }

  .stcw-hero .stcw-form-grid--institute {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(148px, 198px);
  }

  .stcw-hero .stcw-field label {
    margin-bottom: 7px;
    font-size: 12px;
  }

  .stcw-hero .stcw-field input,
  .stcw-hero .stcw-field select,
  .stcw-hero .stcw-search-button {
    height: 54px;
    font-size: 15px;
  }

  .stcw-hero .stcw-search-button {
    grid-column: auto;
    width: 100%;
    padding: 0 6px;
    font-size: 13px;
  }
}

/* Public Shrishan is hidden until the library can answer maritime questions. */
.stcw-ask,
.stcw-ask-pills,
.stcw-ai-eco,
.stcw-meet-ai,
.stcw-footer-links a[href="#stcw-meet-ai"],
.pai-fab {
  display: none !important;
}

.stcw-ask {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 16px 18px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(100deg, #4a146e 0%, #7b1a72 46%, #c2185b 100%);
  box-shadow: 0 12px 28px rgba(90, 10, 60, .16);
}

.stcw-ask__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stcw-ask__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stcw-ask__brand .stcw-ai-mark {
  width: 54px;
  height: 54px;
  background: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.stcw-ask__text strong {
  display: block;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.2px;
}

.stcw-ask__text span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  opacity: .92;
}

.stcw-ask__topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.stcw-ask__topics button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 72px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.stcw-ask__topics button i {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.stcw-ask__topics button:hover i,
.stcw-ask__topics button:focus-visible i {
  background: rgba(255, 255, 255, .28);
}

.stcw-ask__form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: #fff;
}

.stcw-ask__form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  border: 0;
  outline: none;
  background: transparent;
  color: #171717;
  font-size: 15px;
}

.stcw-ask__form button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.stcw-ask__form button:hover {
  filter: brightness(1.05);
}

.stcw-ask-pills {
  width: min(1340px, calc(100% - 28px));
  margin: 12px auto 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stcw-ask-pills a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #f3ddd6;
  background: #fff6f3;
  color: #9e1b1b;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.stcw-ask-pills a:hover {
  background: #fff;
  border-color: #e7b8ae;
}

@media (max-width: 768px) {
  .stcw-hero {
    margin: 12px 12px 0;
    padding: 0;
    min-height: 0;
    width: auto;
    display: block;
    overflow: visible;
    background: transparent;
  }

  .stcw-hero::before {
    content: none;
  }

  .stcw-hero__stage {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--stcw-border);
    border-radius: 16px;
    background: #fff;
  }

  .stcw-hero__identity {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .stcw-hero__portrait {
    flex: 0 0 80px;
    width: 80px;
    height: 102px;
    border-radius: 12px;
    overflow: hidden;
  }

  .stcw-hero__portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% 22%;
  }

  .stcw-hero__content {
    order: 0;
    width: auto;
    padding: 0;
  }

  .stcw-hero__title {
    font-size: 18px;
  }

  .stcw-hero__sub {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .stcw-hero__badge {
    margin-bottom: 0;
    padding: 6px 8px;
  }

  .stcw-hero .stcw-search-panel {
    margin-top: 0;
  }

  .stcw-ask,
  .stcw-ask-pills {
    width: auto;
    margin-left: 12px;
    margin-right: 12px;
  }

  .stcw-ask__text strong {
    font-size: 18px;
  }

  .stcw-ask__form {
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    padding: 10px;
  }

  .stcw-ask__form button {
    justify-content: center;
  }

  .stcw-ask-pills {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stcw-cashback {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 8px;
    border-radius: 12px;
  }

  .stcw-cashback__gift {
    --gift-w: 44px;
    --gift-h: 40px;
    flex-basis: 44px;
    width: 44px;
    height: 40px;
  }

  .stcw-cashback__sparkles,
  .stcw-cashback__rule {
    display: none;
  }

  .stcw-cashback__offer {
    flex: 1 1 auto;
    padding: 0;
    text-align: left;
  }

  .stcw-cashback__offer-lead {
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
  }

  .stcw-cashback__pill {
    flex: 0 1 38%;
    max-width: 38%;
    margin: 0;
    padding: 6px 8px;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
}
