/* RVIBS institutional visual system — aligned to rvibs.ac.ke */

:root {
  --rvibs-navy: #163d66;
  --rvibs-navy-deep: #102f52;
  --rvibs-blue: #07558a;
  --rvibs-blue-bright: #0d78b7;
  --rvibs-pink: #ed1e82;
  --rvibs-pink-dark: #c9166b;
  --rvibs-green: #07953d;
  --rvibs-white: #ffffff;
  --rvibs-ink: #14355c;
  --rvibs-copy: #4c647d;
  --rvibs-muted: #6e8195;
  --rvibs-line: #dce4eb;
  --rvibs-surface: #f5f8fb;
  --rvibs-lilac: #dfe1ff;
  --rvibs-blush: #fde2f1;
  --rvibs-sun: #fff6cd;
  --rvibs-radius: 12px;
  --rvibs-shadow: 0 16px 38px rgba(18, 53, 92, 0.16);
  --primary-teal: var(--rvibs-blue);
  --primary-teal-dark: var(--rvibs-navy-deep);
  --primary-teal-light: #eaf3f8;
  --accent-fuchsia: var(--rvibs-pink);
  --accent-fuchsia-hover: var(--rvibs-pink-dark);
  --bg-cream: var(--rvibs-surface);
  --ink-900: var(--rvibs-ink);
  --ink-700: var(--rvibs-copy);
  --ink-500: var(--rvibs-muted);
  --ink-100: var(--rvibs-line);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 14px;
  --shadow-sm: 0 4px 12px rgba(18, 53, 92, 0.08);
  --shadow-md: 0 10px 28px rgba(18, 53, 92, 0.12);
  --shadow-lg: var(--rvibs-shadow);
}

html { scroll-behavior: smooth; }

body {
  background: var(--rvibs-surface);
  color: var(--rvibs-ink);
  font-family: "Mona Sans", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

::selection { background: var(--rvibs-pink); color: var(--rvibs-white); }

* { scrollbar-color: var(--rvibs-blue) #edf2f6; }

*:focus-visible {
  outline: 3px solid rgba(237, 30, 130, 0.45);
  outline-offset: 3px;
}

button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
a { text-underline-offset: 4px; }

.screen h1, .screen h2, .screen h3, .screen h4,
.step-title, .card-course-title, .modal-header h3 {
  font-family: "Mona Sans", "Avenir Next", "Segoe UI", Arial, sans-serif !important;
}

.portal-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1000;
  padding: 0;
  background: var(--rvibs-white);
  color: var(--rvibs-ink);
  box-shadow: 0 3px 16px rgba(18, 53, 92, 0.1);
}

.utility-bar { background: var(--rvibs-navy); }

.utility-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.utility-inner a {
  color: #fff;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.utility-inner a:hover { color: #f7a6cf; }

.header-container {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  min-height: 110px;
  margin: 0 auto;
  gap: 36px;
}

.header-left { flex: 0 0 auto; }
.header-left .logo { width: 325px; height: auto; max-height: 88px; object-fit: contain; }

.header-right { gap: clamp(14px, 1.6vw, 28px); }

.nav-link {
  appearance: none;
  position: relative;
  border: 0;
  background: transparent;
  color: var(--rvibs-ink);
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 4px;
  height: 2px;
  background: var(--rvibs-pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
}

.nav-link:hover, .nav-link.active { color: var(--rvibs-blue); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.btn-get-started {
  border: 0;
  border-radius: 999px;
  background: var(--rvibs-navy);
  color: #fff;
  padding: 13px 24px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
}
.btn-get-started:hover { background: var(--rvibs-blue); transform: none; }

.dropdown-menu {
  top: calc(100% + 12px);
  border: 0;
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--rvibs-shadow);
}

.dropdown-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #fff;
  padding: 10px 13px;
  color: var(--rvibs-ink) !important;
  font-size: 13px;
  font-weight: 600 !important;
  text-align: left;
}
.dropdown-item:hover { background: #edf5fa !important; color: var(--rvibs-blue) !important; }

.mobile-menu-toggle { display: none; }

.app-container { background: var(--rvibs-surface); }
.screen { min-height: calc(100vh - 150px); }
.screen.active { animation: screenReveal 440ms cubic-bezier(.16, 1, .3, 1); }

@keyframes screenReveal {
  from { opacity: .82; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.legacy-landing { display: none !important; }
.landing { min-height: 0; background: #fff; }

.rvibs-hero {
  position: relative;
  width: 100vw;
  max-width: none;
  min-height: 560px;
  margin: 0 calc(50% - 50vw) 92px;
  overflow: visible;
  background: #fff;
}

.rvibs-hero-photo {
  position: absolute;
  inset: 0 0 0 28%;
  background-image: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.92) 8%, rgba(255,255,255,.12) 48%, rgba(255,255,255,0) 70%), url("thumbnails/slideshow2.jpg");
  background-position: center right;
  background-size: cover;
}

.rvibs-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 48px max(24px, calc((100% - 1280px) / 2)) 86px;
}

.rvibs-hero-copy { width: min(520px, 48%); }

.rvibs-hero h1 {
  max-width: 520px;
  margin: 0 0 16px;
  color: var(--rvibs-blue);
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.1rem, 4.6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  text-wrap: balance;
}

.rvibs-hero h1 span { color: var(--rvibs-pink); }
.hero-hashtag { margin: 0 0 22px; color: var(--rvibs-pink); font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 800; }
.hero-promise { margin: 0 0 8px; color: var(--rvibs-ink); font-size: 15px; font-weight: 800; }
.hero-description { max-width: 49ch; margin: 0; color: var(--rvibs-copy); font-size: 15px; line-height: 1.55; }

.hero-actions {
  position: absolute;
  z-index: 3;
  width: 70%;
  inset-inline: auto;
  left: 50%;
  inset-block-end: -42px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-action {
  min-height: 104px;
  display: grid;
  grid-template-columns: 34px 1fr 32px;
  align-items: center;
  gap: 14px;
  border: 0;
  border-radius: 10px;
  padding: 18px 20px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  box-shadow: var(--rvibs-shadow);
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), box-shadow 260ms cubic-bezier(.16, 1, .3, 1);
}

.hero-action:hover { transform: translateY(-5px); box-shadow: 0 22px 48px rgba(18, 53, 92, .22); }
.hero-action-pink { background: var(--rvibs-pink); }
.hero-action-green { background: var(--rvibs-green); }
.hero-action-blue { background: #073f91; }
.hero-action-white { background: #fff; color: var(--rvibs-ink); }

.hero-action strong, .hero-action small { display: block; }
.hero-action strong { font-size: 13px; }
.hero-action small { margin-top: 4px; color: inherit; opacity: .86; font-size: 12px; }
.action-icon { position: relative; width: 30px; height: 30px; display: block; color: transparent; font-size: 0; }
.action-icon::before { content: ""; position: absolute; inset: 2px; border: 3px solid currentColor; border-radius: 4px; color: #fff; transform: rotate(-12deg); }
.hero-action-green .action-icon::before { border-radius: 50%; transform: none; }
.hero-action-blue .action-icon::before { border-radius: 8px; transform: none; }
.hero-action-white .action-icon::before { width: 16px; height: 22px; inset: 2px 7px; border-radius: 50% 50% 50% 0; color: var(--rvibs-blue); transform: rotate(-45deg); }
.hero-action-white .action-icon::after { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--rvibs-blue); top: 10px; left: 13px; }
.action-arrow { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--rvibs-navy); color: #fff; font-size: 24px; line-height: 1; }
.action-arrow::before { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateX(-1px) rotate(45deg); }

.task-strip {
  width: 80vw;
  max-width: none;
  box-sizing: border-box;
  margin: 0 calc(50% - 40vw);
  padding: 28px max(24px, calc((100% - 1280px) / 2)) 72px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: stretch;
}

.task-strip h2 {
  position: relative;
  margin: 0;
  padding: 22px 32px 28px 0;
  color: var(--rvibs-ink);
  font-size: 29px;
  line-height: 1.28;
  letter-spacing: -0.025em;
}
.task-strip h2::after { content: ""; position: absolute; left: 0; bottom: 10px; width: 40px; height: 3px; background: var(--rvibs-pink); }

.task-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.task-option {
  min-width: 0;
  min-height: 132px;
  border: 0;
  border-left: 1px solid var(--rvibs-line);
  background: #fff;
  color: var(--rvibs-ink);
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition: background 200ms ease, transform 260ms cubic-bezier(.16, 1, .3, 1);
}
.task-option:hover { background: #edf5fa; transform: translateY(-4px); }
.task-option.task-lilac { background: var(--rvibs-lilac); }
.task-option.task-pink { background: var(--rvibs-blush); }
.task-option.task-yellow { background: var(--rvibs-sun); }
.task-symbol { display: inline-block; margin-bottom: 18px; color: var(--rvibs-blue); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
.task-option strong, .task-option small { display: block; }
.task-option strong { font-size: 13px; }
.task-option small { margin-top: 5px; color: var(--rvibs-copy); font-size: 12px; }

.portal-services-section {
  max-width: none !important;
  padding: 76px max(24px, calc((100% - 1280px) / 2)) 88px !important;
  background: #f4f7fa !important;
  color: var(--rvibs-ink) !important;
}

.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading-row h2 { margin: 0; color: var(--rvibs-ink); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1; letter-spacing: -0.03em; }
.section-link, .service-copy button { border: 0; background: transparent; color: var(--rvibs-blue); font-weight: 800; cursor: pointer; }
.section-link { padding: 10px 0; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.service-card {
  overflow: hidden !important;
  display: grid !important;
  grid-template-rows: 235px 1fr;
  min-height: 500px;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 14px 32px rgba(18, 53, 92, .1) !important;
}
.service-card > img { width: 100%; height: 235px; object-fit: cover; display: block; }
.service-copy { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.service-copy h3 { margin: 0 0 10px; color: var(--rvibs-ink); font-size: 23px; }
.service-copy p { margin: 0 0 24px; color: var(--rvibs-copy); line-height: 1.65; }
.service-copy button { margin-top: auto; padding: 8px 0; color: var(--rvibs-pink); }

.trust-stats-section {
  width: 100vw !important;
  max-width: none !important;
  box-sizing: border-box;
  margin-inline: calc(50% - 50vw) !important;
  padding: 70px max(24px, calc((100% - 1280px) / 2)) !important;
  background: var(--rvibs-navy) !important;
  color: #fff !important;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(520px, 1.5fr);
  gap: 60px;
  align-items: center;
}
.trust-intro h2 { margin: 0 0 12px; color: #fff; font-size: 33px; line-height: 1.16; }
.trust-intro p { margin: 0; color: #dce8f2; }
.stats-cards-grid { display: grid !important; grid-template-columns: repeat(5, 1fr); gap: 1px !important; background: rgba(255,255,255,.18); }
.stat-card {
  max-width: none !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--rvibs-navy) !important;
  box-shadow: none !important;
  color: #fff;
  padding: 24px 18px !important;
  text-align: left !important;
}
.stat-card strong { display: block; color: #fff; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card span { display: block; margin-top: 7px; color: #cbdbea; font-size: 12px; }

/* Shared application surfaces */
.step-progress {
  width: min(1040px, calc(100% - 40px));
  max-width: none;
  margin: 38px auto 0;
  padding: 36px max(24px, calc((100% - 1040px) / 2)) 28px;
  background: var(--rvibs-navy);
  color: #fff;
}
.step-label { color: #bdd2e4; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.step-title { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }
.progress-track { height: 5px; margin-top: 20px; gap: 8px; background: transparent; }
.progress-segment { height: 5px; background: rgba(255,255,255,.22); border-radius: 6px; }
.progress-segment.active, .progress-segment.done { background: var(--rvibs-pink); }

.screen-body, .screen-body-wide {
  width: min(1040px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 44px 0 56px;
}
.screen-body-wide { width: min(1280px, calc(100% - 40px)); }

.card, .portal-course-card, .career-card, .application-modal, .portal-card {
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(18, 53, 92, .09);
}
.card { padding: 28px; margin-bottom: 20px; }
.card-label { margin-bottom: 7px; color: var(--rvibs-ink); font-size: 17px; font-weight: 800; }
.card-hint, .form-hint { color: var(--rvibs-muted); }

.chip {
  min-height: 42px;
  border: 1px solid #cdd9e3;
  border-radius: 8px;
  background: #fff;
  color: var(--rvibs-ink);
  font-weight: 700;
}
.chip:hover { border-color: var(--rvibs-blue); background: #edf5fa; }
.chip.selected { border-color: var(--rvibs-blue); background: var(--rvibs-blue); color: #fff; box-shadow: none; }

.btn-primary, .btn-secondary, .btn-card-apply, .btn-card-learn {
  min-height: 46px;
  border-radius: 7px;
  padding: 12px 22px;
  font-weight: 800;
  box-shadow: none;
}
.btn-primary, .btn-card-apply { border: 1px solid var(--rvibs-pink); background: var(--rvibs-pink); color: #fff; }
.btn-primary:hover, .btn-card-apply:hover { background: var(--rvibs-pink-dark); border-color: var(--rvibs-pink-dark); transform: translateY(-2px); }
.btn-secondary, .btn-card-learn { border: 1px solid var(--rvibs-blue); background: #fff; color: var(--rvibs-blue); }
.btn-secondary:hover, .btn-card-learn:hover { background: #edf5fa; transform: none; }
.btn-primary:disabled { opacity: .48; cursor: not-allowed; transform: none; }

.form-input, .form-select, .department-select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  min-height: 46px;
  border: 1px solid #c8d5df;
  border-radius: 7px;
  background: #fff;
  color: var(--rvibs-ink);
  box-shadow: none;
}
.form-input:focus, .form-select:focus, .department-select:focus, input:focus, textarea:focus, select:focus { border-color: var(--rvibs-blue); outline: 3px solid rgba(7, 85, 138, .13); }
.form-group label, .form-section-title { color: var(--rvibs-ink); font-weight: 800; }

.results-portal-container { width: min(1280px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 60px; }
.portal-results-controls, .qualification-tabs, .portal-tabs { border-radius: 10px; background: #fff; box-shadow: 0 8px 24px rgba(18, 53, 92, .08); }
.tab-btn { color: var(--rvibs-copy); }
.tab-btn.active { color: var(--rvibs-blue); border-color: var(--rvibs-pink); }
.portal-course-card { overflow: hidden; }
.card-course-title { color: var(--rvibs-ink); }
.level-badge, .department-tag, .badge-diploma, .badge-certificate { border-radius: 5px; }
.card-detail-drawer { background: #f5f8fb; border-color: var(--rvibs-line); }

.career-card { box-shadow: inset 0 3px 0 var(--rvibs-pink), 0 10px 30px rgba(18, 53, 92, .09); }
.department-filter-container { background: #fff; border-radius: 10px; box-shadow: 0 8px 24px rgba(18, 53, 92, .08); }

.application-modal-overlay { background: rgba(10, 35, 61, .72); }
.application-modal { box-shadow: inset 0 4px 0 var(--rvibs-pink), 0 22px 54px rgba(10, 35, 61, .28); }
.modal-header { background: var(--rvibs-navy); color: #fff; }
.modal-header h3 { color: #fff; }
.modal-close-btn { color: #fff; }
.modal-footer { background: #f3f7fa; border-color: var(--rvibs-line); }
.cv-notice { background: #edf5fa; border: 0; color: var(--rvibs-ink); }

/* About screen and long-form content */
#screenAboutUs { background: #fff; }
#screenAboutUs h1, #screenAboutUs h2, #screenAboutUs h3 { color: var(--rvibs-ink); letter-spacing: -0.025em; }
#screenAboutUs p { color: var(--rvibs-copy); }
#screenAboutUs [style*="background"] { border-radius: 10px; }
#screenAboutUs > div:first-child {
  max-width: none !important;
  margin: 0 !important;
  padding: 72px 24px !important;
  border-radius: 0 !important;
  background: var(--rvibs-navy) !important;
}
#screenAboutUs > div:first-child h1,
#screenAboutUs > div:first-child p { color: #fff !important; }
#screenAboutUs > div:first-child span { background: transparent !important; color: #f7a6cf !important; padding: 0 !important; }

.portal-footer {
  background: #102f52;
  color: #fff;
  padding: 64px 24px 26px;
}
.footer-container { width: min(1280px, 100%); max-width: none; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand-row img { width: 300px; height: auto; filter: brightness(0) invert(1); }
.footer-brand-row p { margin: 0; color: #d9e6f0; font-weight: 700; }
.footer-grid { grid-template-columns: 1.5fr .8fr .8fr; gap: 70px; padding-top: 38px; }
.footer-col h3 { color: #fff; font-size: 17px; }
.footer-contact-list a, .footer-menu a, .footer-menu button { border: 0; background: transparent; color: #c7d7e5; padding: 0; text-align: left; text-decoration: none; cursor: pointer; }
.footer-contact-list a:hover, .footer-menu a:hover, .footer-menu button:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,.14); }
.footer-copyright-row p { color: #a9bfd1; }

#cookieConsentBar {
  background: rgba(16, 47, 82, .97) !important;
  border-top: 2px solid var(--rvibs-pink) !important;
  backdrop-filter: none !important;
}

@media (max-width: 1100px) {
  .utility-inner { gap: 16px; }
  .header-left .logo { width: 260px; }
  .header-right { gap: 14px; }
  .nav-link { font-size: 12px; }
  .rvibs-hero-copy { width: 52%; }
  .hero-actions { gap: 10px; }
  .hero-action { padding: 15px; gap: 9px; }
  .task-strip { grid-template-columns: 190px 1fr; }
  .stats-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .utility-bar { display: none; }
  .header-container { min-height: 88px; width: min(100% - 36px, 760px); }
  .header-left .logo { width: 240px; max-height: 72px; }
  .mobile-menu-toggle {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    border: 0;
    background: #fff;
    color: var(--rvibs-ink);
  }
  .mobile-menu-toggle span { width: 24px; height: 2px; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header-right {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 88px);
    overflow-y: auto;
    background: #fff;
    padding: 16px 22px 24px;
    box-shadow: 0 18px 36px rgba(18, 53, 92, .18);
  }
  .header-right.is-open { display: flex; }
  .nav-link { width: 100%; padding: 15px 6px; text-align: left; font-size: 14px; }
  .nav-link::after { display: none; }
  .btn-get-started { margin-top: 8px; text-align: center; }
  .nav-dropdown { width: 100%; }
  .dropdown-menu { position: static; display: none; width: 100%; box-shadow: none; padding: 0 0 8px 12px; }
  .nav-dropdown:focus-within .dropdown-menu { display: block; }

  .rvibs-hero { width: 100vw; min-height: 720px; margin: 0 calc(50% - 50vw); overflow: hidden; }
  .rvibs-hero-photo { inset: 0; background-image: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.8) 45%, rgba(7,85,138,.18) 100%), url("thumbnails/slideshow2.jpg"); background-position: 58% center; }
  .rvibs-hero-inner { min-height: 720px; padding: 46px 24px 390px; align-items: flex-start; }
  .rvibs-hero-copy { width: min(520px, 100%); }
  .rvibs-hero h1 { font-size: clamp(2.8rem, 10vw, 4rem); }
  .hero-actions { width: 70%; left: 50%; right: auto; bottom: 26px; grid-template-columns: repeat(2, 1fr); }
  .task-strip { width: 80vw; margin-inline: calc(50% - 40vw); grid-template-columns: 1fr; padding: 46px 20px 60px; }
  .task-strip h2 { max-width: 360px; padding-top: 0; }
  .task-options { grid-template-columns: repeat(2, 1fr); }
  .task-option:last-child { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { grid-template-columns: 42% 1fr; grid-template-rows: 1fr; min-height: 320px; }
  .service-card > img { height: 100%; min-height: 320px; }
  .trust-stats-section { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .header-container { width: calc(100% - 28px); min-height: 80px; }
  .header-left .logo { width: 235px; height: auto !important; max-height: 64px; }
  .header-right { top: 80px; max-height: calc(100vh - 80px); }

  .rvibs-hero { min-height: 880px; }
  .rvibs-hero-photo { background-image: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.62) 62%, rgba(7,85,138,.26) 100%), url("thumbnails/slideshow2.jpg"); background-position: 48% center; }
  .rvibs-hero-inner { min-height: 880px; padding: 34px 22px 610px; }
  .rvibs-hero h1 { max-width: 330px; font-size: 42px; }
  .hero-hashtag { font-size: 20px; }
  .hero-description { max-width: 340px; }
  .hero-actions { grid-template-columns: 1fr; gap: 12px; }
  .hero-action { min-height: 88px; }

  .task-options { grid-template-columns: 1fr; }
  .task-option:last-child { grid-column: auto; }
  .task-option { min-height: 112px; border-left: 0; border-top: 1px solid var(--rvibs-line); }
  .portal-services-section { padding-top: 56px !important; padding-bottom: 62px !important; }
  .section-heading-row { align-items: flex-start; flex-direction: column; }
  .service-card { display: grid !important; grid-template-columns: 1fr; grid-template-rows: 210px 1fr; min-height: 0; }
  .service-card > img { height: 210px; min-height: 0; }
  .service-copy { padding: 24px; }
  .trust-stats-section { padding-top: 54px !important; padding-bottom: 54px !important; }
  .stats-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-cards-grid .stat-card:last-child { grid-column: 1 / -1; }

  .screen-body, .screen-body-wide, .results-portal-container { width: calc(100% - 28px); padding-top: 26px; }
  .card { padding: 20px; }
  .step-progress { padding: 26px 18px 22px; }
  .cta-container { flex-direction: column; }
  .application-modal { border-radius: 10px 10px 0 0; }

  .portal-footer { padding-inline: 20px; }
  .footer-brand-row { align-items: flex-start; flex-direction: column; }
  .footer-brand-row img { width: 250px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  #cookieConsentBar { padding: 14px 18px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Career report and shared-account surfaces */
.career-report{display:grid;gap:18px;margin:0 0 28px}.career-report-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,.7fr);gap:28px;padding:30px;border-radius:14px;background:#0d3157;color:#fff;box-shadow:0 18px 42px rgba(13,49,87,.18)}.career-code{font-family:var(--font-head);font-size:clamp(2.6rem,8vw,5.2rem);line-height:.9;letter-spacing:-.03em;color:#fff;margin:8px 0 14px}.career-report-hero h2,.career-report-hero h3{color:#fff}.career-report-hero p{color:rgba(255,255,255,.82);line-height:1.7}.career-score-list{display:grid;gap:9px}.career-score-row{display:grid;grid-template-columns:92px 1fr 38px;align-items:center;gap:10px;font-size:12px}.career-score-track{height:8px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden}.career-score-fill{height:100%;border-radius:inherit;background:#f53291}.career-report-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.career-report-panel{padding:24px;border:1px solid var(--ink-100);border-radius:14px;background:#fff}.career-report-panel h3{margin:0 0 10px;color:var(--ink-900);font-size:1.05rem}.career-report-panel p,.career-report-panel li{color:var(--ink-600);font-size:14px;line-height:1.65}.career-report-panel ul{margin:10px 0 0;padding-left:19px}.career-report-actions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 22px;border-radius:14px;background:var(--bg-pink)}.career-report-actions p{margin:0;color:var(--ink-700);font-size:14px}.career-report-actions>div{display:flex;gap:10px;flex-wrap:wrap}.career-save-status{font-weight:700;color:var(--primary-teal)}

.account-dialog-backdrop{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:20px;background:rgba(7,23,42,.72)}.account-dialog-backdrop[hidden]{display:none}.account-dialog{position:relative;width:min(100%,500px);max-height:calc(100vh - 40px);overflow:auto;border-radius:16px;background:#fff;padding:30px;box-shadow:0 28px 80px rgba(0,0,0,.3)}.account-dialog [hidden]{display:none!important}.account-dialog-close{position:absolute;right:16px;top:12px;border:0;background:transparent;color:var(--ink-500);font-size:30px;cursor:pointer}.account-dialog-copy h2{margin:0;color:var(--ink-900)}.account-dialog-copy p{margin:8px 30px 20px 0;color:var(--ink-500);font-size:14px;line-height:1.55}.account-tabs{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid var(--ink-100);margin-bottom:20px}.account-tabs button{border:0;border-bottom:3px solid transparent;padding:11px;background:transparent;color:var(--ink-500);font-weight:700;cursor:pointer}.account-tabs button.active{border-bottom-color:var(--accent-fuchsia);color:var(--ink-900)}#careerAccountForm{display:grid;gap:14px}#careerAccountForm label{display:grid;gap:6px;color:var(--ink-700);font-size:12px;font-weight:700}#careerAccountForm input{width:100%;box-sizing:border-box;border:1.5px solid var(--ink-200);border-radius:12px;padding:12px 14px;font:inherit;color:var(--ink-900);background:#fff}#careerAccountForm input:focus{border-color:var(--accent-fuchsia);outline:3px solid rgba(233,30,140,.14)}.account-name-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.account-consent{grid-template-columns:auto 1fr!important;align-items:start}.account-consent input{width:auto!important;margin-top:2px}.account-form-error{padding:10px 12px;border-radius:10px;background:#fff0f2;color:#a21b39;font-size:13px}.account-submit{width:100%}

.career-dashboard-shell{max-width:1080px;margin:0 auto;padding:52px 22px 80px}.career-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:26px}.career-dashboard-head h1{margin:0;color:var(--ink-900);font-size:clamp(2rem,5vw,3.2rem)}.career-dashboard-head p{margin:8px 0 0;color:var(--ink-500)}.career-dashboard-actions{display:flex;gap:10px;flex-wrap:wrap}.dashboard-status{min-height:24px;color:var(--ink-500);font-size:14px}.saved-report-list{display:grid;gap:16px}.saved-report-card{padding:24px;border:1px solid var(--ink-100);border-radius:14px;background:#fff;box-shadow:0 10px 28px rgba(20,45,75,.07)}.saved-report-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.saved-report-code{font-size:1.8rem;font-weight:800;color:var(--primary-navy)}.saved-report-meta{color:var(--ink-500);font-size:12px}.saved-report-courses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:16px}.saved-course{display:flex;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:10px;background:var(--ink-50);font-size:13px}.saved-report-empty{padding:54px 24px;text-align:center;border:1px dashed var(--ink-200);border-radius:14px;color:var(--ink-500)}
.saved-report-directions{margin-top:14px;color:var(--ink-500);font-size:13px;line-height:1.7}.saved-report-directions strong{color:var(--ink-700)}

@media(max-width:760px){.career-report-hero,.career-report-grid{grid-template-columns:1fr}.career-report-actions,.career-dashboard-head{align-items:stretch;flex-direction:column}.account-name-grid,.saved-report-courses{grid-template-columns:1fr}.account-dialog{padding:26px 20px}.career-score-row{grid-template-columns:82px 1fr 34px}}

@media print{.portal-header,.portal-footer,.results-actions,.career-report-actions,#cookieConsentBar{display:none!important}.screen{display:none!important}#screenResults{display:block!important}.career-report-hero{background:#fff!important;color:#17243b!important;border:2px solid #0d3157;box-shadow:none}.career-report-hero h2,.career-report-hero h3,.career-report-hero p,.career-code{color:#17243b!important}.portal-course-card{break-inside:avoid}.career-report-panel{break-inside:avoid}}
