:root {
  --swl-blue: #123f84;
  --swl-purple: #6f2f92;
  --swl-orange: #f58216;
  --swl-light: #f6f8fc;
  --swl-dark: #172033;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--swl-dark);
  font-family: Arial, Helvetica, sans-serif;
}

.navbar-brand img {
  width: 525px;
  height: 174px;
  object-fit: contain;
  object-position: left center;
}

.navbar {
  min-height: 198px;
}

.navbar .container {
  gap: 1rem;
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-weight: 600;
  text-decoration-line: none;
  text-underline-offset: 0.35em;
  text-decoration-thickness: 2px;
  white-space: nowrap;
}

.nav-link.active {
  color: #fb6c00 !important;
  text-decoration-line: underline;
  text-decoration-color: #fb6c00;
}

.hero-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.18) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(246, 248, 252, 0.58)),
    url("hero-biomedical-research.png") center / cover no-repeat;
}

.page-header {
  background:
    radial-gradient(circle at 90% 15%, rgba(245, 130, 22, 0.12), transparent 24%),
    linear-gradient(135deg, #f9fbff 0%, #f2f5fb 100%);
  padding: 5rem 0;
}

.science-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 42%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(246, 248, 252, 0.42)),
    url("science-hero-research.png") center / cover no-repeat;
}

.about-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(246, 248, 252, 0.46)),
    url("about-hero-research.png") center / cover no-repeat;
}

.join-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(246, 248, 252, 0.46)),
    url("join-hero-team.png") center / cover no-repeat;
}

.contact-hero {
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 44%, rgba(255, 255, 255, 0.2) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(246, 248, 252, 0.46)),
    url("contact-hero-lab.png") center / cover no-repeat;
}

.text-gradient {
  background: linear-gradient(135deg, var(--swl-blue), var(--swl-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-swl {
  color: #fff;
  background: linear-gradient(135deg, var(--swl-blue), var(--swl-purple));
  border: none;
}

.btn-swl:hover {
  color: #fff;
  opacity: 0.92;
}

.section-padding {
  padding: 5rem 0;
}

.bg-soft {
  background-color: var(--swl-light);
}

.placeholder-card {
  height: 100%;
  border: 1px solid #e7ebf2;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(24, 50, 92, 0.06);
}

.placeholder-block {
  min-height: 190px;
  border: 2px dashed #d8deea;
  border-radius: 1rem;
  background: #fbfcfe;
}

.about-story {
  padding: 2rem;
  border: 1px solid #e7ebf2;
  border-left: 4px solid var(--swl-orange);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(24, 50, 92, 0.06);
}

.about-story p {
  color: #5f6b7a;
}

.statement-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(24, 50, 92, 0.1);
}

.statement-card::after {
  content: "";
  position: absolute;
  inset: auto -3rem -4rem auto;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: rgba(251, 108, 0, 0.1);
}

.statement-card-mission {
  border-top: 4px solid var(--swl-orange);
}

.statement-card-vision {
  border-top: 4px solid var(--swl-blue);
}

.statement-icon {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--swl-blue), var(--swl-orange));
}

.statement-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.join-callout,
.job-card {
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(24, 50, 92, 0.06);
}

.join-callout {
  border-left: 4px solid var(--swl-orange);
}

.job-card {
  padding: 2rem;
  margin-bottom: 2rem;
}

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e7ebf2;
}

.job-meta {
  color: #5f6b7a;
}

.job-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--swl-orange);
}

.job-list {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.15rem;
  margin-bottom: 0;
  color: #5f6b7a;
}

.contact-link {
  color: #5f6b7a;
  text-decoration-color: rgba(251, 108, 0, 0.45);
  text-underline-offset: 0.25em;
}

.contact-link:hover {
  color: #fb6c00;
}

.science-summary,
.funding-list {
  display: grid;
  gap: 1rem;
}

.science-summary > div,
.funding-list > div {
  padding: 1rem;
  border-left: 4px solid var(--swl-orange);
  background: #fff;
  box-shadow: 0 0.75rem 2rem rgba(24, 50, 92, 0.06);
}

.science-summary strong,
.funding-list strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--swl-blue);
}

.science-summary span,
.funding-list span {
  color: #5f6b7a;
}

.science-card {
  border-radius: 8px;
}

.science-band {
  padding: 2rem;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: var(--swl-light);
}

.leadership-photo {
  width: 150px;
  height: 150px;
  display: block;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #d8deea;
  border-radius: 50%;
  background: var(--swl-light);
}

.icon-badge {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--swl-blue), var(--swl-purple));
}

footer {
  background: #101a2d;
  color: rgba(255,255,255,0.75);
}

footer a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .navbar-brand img {
    width: min(435px, 72vw);
    height: auto;
  }

  .navbar {
    min-height: 168px;
  }

  .hero-section {
    min-height: auto;
    padding: 5rem 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.86)),
      url("hero-biomedical-research.png") center / cover no-repeat;
  }

  .science-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.86)),
      url("science-hero-research.png") center / cover no-repeat;
  }

  .about-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.86)),
      url("about-hero-research.png") center / cover no-repeat;
  }

  .join-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.86)),
      url("join-hero-team.png") center / cover no-repeat;
  }

  .contact-hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 248, 252, 0.86)),
      url("contact-hero-lab.png") center / cover no-repeat;
  }

  .job-card-header {
    display: block;
  }

  .job-badge {
    margin-top: 1rem;
  }
}
