﻿/* ==========================================================================
   RISE modern theme â€” site-wide refresh (matches the MedLab reference layout)
   Loaded after styles2.css / new.css in MasterPage.master; overrides header,
   nav, footer and base typography so every inner page inherits the new look
   without needing per-page markup changes.
   ========================================================================== */

:root{
  --rise-navy: #0c1f3f;
  --rise-navy-2: #12295a;
  --rise-blue: #3f5edb;
  --rise-blue-deep: #30469f;
  --rise-ink: #0c1f3f;
  --rise-muted: #667085;
  --rise-line: #e7e9ee;
  --rise-bg: #ffffff;
  --rise-tint: #f4f6fb;
}

/* ---------- base ---------- */
body, #body1-wrapper{
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}
#body1-wrapper{
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  color: var(--rise-ink);
  line-height: 1.65;
}
#body1-wrapper h1,
#body1-wrapper h2,
#body1-wrapper h3{
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--rise-ink);
  background: none;
  padding: 0;
  letter-spacing: normal;
  font-weight: 800;
  line-height: 1.3;
}
#body1-wrapper h1{ font-size: 1.9rem; margin: 0 0 22px; }
#body1-wrapper h2{ font-size: 1.7rem; margin: 0 0 22px; }
#body1-wrapper h3{ font-size: 1.25rem; margin: 30px 0 14px; }
#body1-wrapper p{ font-size: 1rem; color: var(--rise-ink); margin: 0 0 14px; }
#body1-wrapper ul, #body1-wrapper ol{ padding-left: 22px; }
#body1-wrapper li{ margin-bottom: 8px; line-height: 1.6; }
#body1-wrapper a{ color: var(--rise-blue); text-decoration: none; }
#body1-wrapper a:hover{ text-decoration: underline; }
#body1-wrapper table{ border-collapse: collapse; width: 100%; margin: 10px 0 24px; font-size: .94rem; }
#body1-wrapper table td, #body1-wrapper table th{ border: 1px solid var(--rise-line); padding: 10px 12px; text-align: left; }
#body1-wrapper table th{ background: var(--rise-tint); font-weight: 700; }

/* ---------- header ---------- */
.rise-topbar{
  background: #fff;
  border-bottom: 1px solid var(--rise-line);
}
.rise-topbar-inner{
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.rise-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}
.rise-brand img{ height: 40px; width: auto; display: block; }
.rise-logo-cui{ height: 44px !important; }
.rise-logo-rise{ height: 46px !important; }
.rise-brand-sep{
  width: 1px;
  height: 32px;
  background: var(--rise-line);
  flex-shrink: 0;
}
.rise-brand-text{ display: flex; flex-direction: column; font-family: "Plus Jakarta Sans", Arial, sans-serif; }
.rise-brand-text strong{ font-size: 1.15rem; font-weight: 800; color: var(--rise-navy); line-height: 1.1; letter-spacing: .01em; }
.rise-brand-text small{ font-size: .7rem; font-weight: 500; color: var(--rise-muted); margin-top: 2px; }

/* ---------- nav ---------- */
#main-menu{ font-family: "Plus Jakarta Sans", Arial, sans-serif; }
#main-menu ul.menu{
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#main-menu ul.menu li{ position: relative; list-style: none; }
#main-menu ul.menu li a{
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  color: var(--rise-ink);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
}
#main-menu ul.menu li:hover > a{
  color: var(--rise-blue);
  background: var(--rise-tint);
}
#main-menu ul.menu li.cta{ margin-left: 8px; }
#main-menu ul.menu li.cta a{
  background: var(--rise-navy);
  color: #fff;
  border-radius: 30px;
  padding: 10px 24px;
}
#main-menu ul.menu li.cta:hover > a{ background: var(--rise-blue-deep); color: #fff; }
#main-menu ul.menu ul.sub-menu{
  position: absolute;
  left: 0; top: 100%;
  background: #fff;
  border: 1px solid var(--rise-line);
  box-shadow: 0 18px 40px rgba(12,31,63,.14);
  border-radius: 10px;
  padding: 8px;
  min-width: 240px;
  list-style: none;
  margin: 0;
  /* no gap between the trigger <li> and this panel — a margin/gap here breaks
     hover when the cursor moves diagonally from the link down into the menu */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* hiding is delayed (grace period) so a momentary cursor jitter or reflow
     during a click doesn't close the menu before the click registers;
     showing is instant */
  transition: opacity .15s ease, visibility 0s linear .15s;
  z-index: 20;
}
/* styles2.css has `#main-menu ul.menu li:hover ul.sub-menu { top: 50px }`, which
   outranks the base rule above and leaves a dead gap under the 38px-tall menu
   item — crossing it drops the hover. Re-assert the flush position here. */
#main-menu ul.menu li:hover > ul.sub-menu,
#main-menu ul.menu ul.sub-menu:hover{
  top: 100%;
  left: 0;
  width: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .15s ease, visibility 0s linear 0s;
}
#main-menu ul.menu ul.sub-menu li a{
  color: var(--rise-ink);
  padding: 10px 14px;
  font-size: .86rem;
  font-weight: 500;
  border-radius: 6px;
  white-space: normal;
}
#main-menu ul.menu ul.sub-menu li:hover > a{
  background: var(--rise-tint);
  color: var(--rise-blue);
}

/* ---------- footer ---------- */
.rise-footer{
  background: var(--rise-navy);
  padding: 60px 28px 0;
  margin-top: 60px;
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
}
.rise-footer-grid{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.rise-footer h4{ color: #fff; font-size: .92rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 18px; }
.rise-footer p{ color: #b9c4de; font-size: .88rem; line-height: 1.7; margin: 0; }
.rise-footer ul{ list-style: none; margin: 0; padding: 0; }
.rise-footer li{ margin-bottom: 12px; color: #b9c4de; font-size: .88rem; line-height: 1.6; }
.rise-footer a{ color: #b9c4de; text-decoration: none; }
.rise-footer a:hover{ color: #fff; text-decoration: underline; }
.rise-footer-bottom{
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #8fa0c4;
}
.rise-footer-bottom a{ color: #8fa0c4; text-decoration: none; font-weight: 600; }
.rise-footer-bottom a:hover{ color: #fff; }

/* ==========================================================================
   Two-column inner pages (MasterPage2 — CER-Message-* pages)
   Replaces the legacy `float:left; width:635px` layout, which had no clearfix
   and collapsed into the footer once the wrapper became fluid.
   ========================================================================== */
.rise-two-col{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 48px;
  align-items: start;
}
.rise-two-col-main{ min-width: 0; }
.rise-two-col-main p{ text-align: left; }

.rise-side-card{
  background: var(--rise-tint);
  border: 1px solid var(--rise-line);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: 24px;
}
.rise-side-card h4{
  font-family: "Plus Jakarta Sans", Arial, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rise-blue);
  margin: 0 0 16px;
}
.rise-side-card ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rise-side-card li{ margin: 0; }
.rise-side-card li a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--rise-line);
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--rise-ink);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
/* chevron drawn in CSS so the shared master markup stays untouched */
.rise-side-card li a::after{
  content: "";
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-right: 2px solid var(--rise-blue);
  border-bottom: 2px solid var(--rise-blue);
  transform: rotate(-45deg);
  transition: transform .18s ease;
}
.rise-side-card li a:hover{
  border-color: var(--rise-blue);
  background: #fff;
  color: var(--rise-blue);
  box-shadow: 0 6px 16px rgba(63,94,219,.14);
  transform: translateY(-2px);
  text-decoration: none;
}
.rise-side-card li a:hover::after{ transform: rotate(-45deg) translate(2px, 2px); }
.rise-side-card li a:focus-visible{
  outline: 2px solid var(--rise-blue);
  outline-offset: 2px;
}

/* signature block at the end of the message pages */
.rise-two-col-main > div[style*="text-align:right"]{
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rise-line);
  font-weight: 600;
  color: var(--rise-ink);
  line-height: 1.6;
}

@media (max-width: 900px){
  .rise-two-col{ grid-template-columns: 1fr; gap: 32px; }
  .rise-side-card{ position: static; }
}

/* ==========================================================================
   Homepage-only components (index.aspx)
   ========================================================================== */
.rise-hero{
  position: relative;
  /* photo background behind a navy scrim — the gradient is listed first so it
     sits on top of the image and keeps the white headline readable */
  background:
    linear-gradient(105deg,
      rgba(12,31,63,.97) 0%,
      rgba(12,31,63,.93) 40%,
      rgba(18,41,90,.84) 70%,
      rgba(18,41,90,.74) 100%),
    url('../../assets/img/collages/Research.jpg') center center / cover no-repeat,
    linear-gradient(135deg, var(--rise-navy), var(--rise-navy-2));
  overflow: hidden;
  padding: 60px 0 150px;
  margin-top: 18px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.rise-hero .grid-art{
  position: absolute; top: 0; right: -80px; width: 640px; height: 100%;
  background-image:
    repeating-linear-gradient(0deg, rgba(90,140,255,.14) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(90,140,255,.14) 0 1px, transparent 1px 46px);
  -webkit-mask-image: radial-gradient(closest-side, black 0%, transparent 75%);
  mask-image: radial-gradient(closest-side, black 0%, transparent 75%);
}
.rise-hero .wrap{ position: relative; max-width: 1400px; margin: 0 auto; padding: 0 48px; }
.rise-hero .eyebrow{ color: #9fb4e8; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 18px; }
.rise-hero h1{
  background: none !important;
  padding: 0 !important;
  letter-spacing: normal !important;
  font-weight: 800 !important; font-size: clamp(2.1rem, 4.6vw, 3.2rem); line-height: 1.15 !important;
  color: #ffffff !important; margin: 0 0 22px !important; max-width: 15ch;
}
.rise-hero p{ color: #b7c3dd !important; font-size: 1.02rem; line-height: 1.65; max-width: 46ch; margin: 0 0 30px !important; }
.rise-hero .btn-ghost{
  display: inline-block; border: 1.5px solid rgba(255,255,255,.5); color: #fff !important;
  font-size: .88rem; font-weight: 600; padding: 13px 26px; border-radius: 30px; text-decoration: none !important;
}

.overlap-wrap{ max-width: 1400px; margin: -96px auto 0; padding: 0 48px; position: relative; z-index: 3; }
.overlap-card{
  background: var(--rise-blue);
  border-radius: 14px;
  padding: 40px 44px;
  display: grid; grid-template-columns: 1fr 1.6fr auto;
  align-items: center; gap: 30px;
  box-shadow: 0 20px 50px rgba(20,40,100,.25);
}
.overlap-card h3{ color: #fff !important; font-size: 1.25rem !important; font-weight: 700 !important; margin: 0 !important; line-height: 1.3; }
.overlap-card p{ color: #dbe3fa !important; font-size: .94rem; line-height: 1.6; margin: 0 !important; }
.overlap-card .btn-outline{
  border: 1.5px solid rgba(255,255,255,.55); color: #fff !important; font-size: .86rem; font-weight: 600;
  padding: 12px 24px; border-radius: 30px; white-space: nowrap; text-decoration: none !important;
}

.rise-benefits{ max-width: 1400px; margin: 0 auto; padding: 130px 48px 90px; text-align: center; }
.rise-benefits .stag{ color: var(--rise-blue); font-size: .84rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px; }
.rise-benefits h2{ font-size: clamp(1.6rem, 3.4vw, 2.1rem) !important; margin: 0 auto 60px !important; max-width: 26ch; }
.b-grid{ display: grid; grid-template-columns: repeat(4, 1fr); text-align: left; }
.b-item{ padding: 0 26px; border-left: 1px solid var(--rise-line); }
.b-item:first-child{ border-left: none; padding-left: 0; }
.b-item .ic{ width: 44px; height: 44px; margin-bottom: 18px; }
.b-item h4{ font-size: 1.02rem; font-weight: 700; margin: 0 0 10px; color: var(--rise-ink); }
.b-item p{ color: var(--rise-muted) !important; font-size: .9rem; line-height: 1.6; margin: 0 0 14px !important; }
.b-item a{ color: var(--rise-blue) !important; font-size: .85rem; font-weight: 700; text-decoration: none !important; }

.rise-highlights{
  background: var(--rise-tint);
  padding: 90px 48px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.rise-highlights .wrap{ max-width: 1400px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.rise-highlights .stag{ color: var(--rise-blue); font-size: .84rem; font-weight: 700; letter-spacing: .06em; margin-bottom: 14px; }
.rise-highlights h2{ font-size: clamp(1.5rem, 3vw, 2rem) !important; margin: 0 0 24px !important; }
.n-row{ display: flex; gap: 20px; padding: 16px 0; border-top: 1px solid var(--rise-line); }
.n-row:last-child{ border-bottom: 1px solid var(--rise-line); }
.n-row .date{ font-weight: 700; color: var(--rise-blue); font-size: .84rem; width: 76px; flex-shrink: 0; }
.n-row p{ margin: 0 !important; font-size: .93rem; line-height: 1.5; color: var(--rise-ink) !important; }

.photo-slider{ position: relative; width: 100%; aspect-ratio: 4/3.1; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(20,40,100,.15); }
.photo-slider .slide{ position: absolute; inset: 0; opacity: 0; animation: psFade 12s infinite; }
.photo-slider .slide img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-slider .slide:nth-child(1){ animation-delay: 0s; }
.photo-slider .slide:nth-child(2){ animation-delay: 4s; }
.photo-slider .slide:nth-child(3){ animation-delay: 8s; }
@keyframes psFade{ 0%{opacity:0;} 3%{opacity:1;} 30%{opacity:1;} 36%{opacity:0;} 100%{opacity:0;} }
@media (prefers-reduced-motion: reduce){ .photo-slider .slide{ animation:none; opacity:0; } .photo-slider .slide:first-child{ opacity:1; } }
.photo-slider .dots{ position: absolute; right: 16px; bottom: 14px; display: flex; gap: 6px; z-index: 2; }
.photo-slider .dots span{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); }

@media (max-width: 900px){
  #main-menu ul.menu{ flex-wrap: wrap; }
  .overlap-card{ grid-template-columns: 1fr; text-align: left; }
  .b-grid{ grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .b-item{ border-left: none; padding-left: 0; }
  .rise-highlights .wrap{ grid-template-columns: 1fr; }
  .rise-topbar-inner{ flex-wrap: wrap; }
  .rise-footer-grid{ grid-template-columns: 1fr; gap: 30px; }
  .rise-footer-bottom{ flex-direction: column; gap: 8px; text-align: center; }
}
