.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .95), transparent 28%),
    linear-gradient(120deg, #f4fbff 0%, #e9f6ff 48%, #cfeaff 100%);
  min-height: 455px;
}

.hero:before {
  content: "";
  position: absolute;
  left: -80px;
  top: 210px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}

.hero:after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -95px;
  width: 420px;
  height: 260px;
  border-radius: 50% 0 0 0;
  background: rgba(255, 255, 255, .8);
}

.hero-content {
  position: relative;
  z-index: 3;
  /* top / bottom only: keep the container side gutters on small screens */
  padding-top: 46px;
  padding-bottom: 30px
}

.hero-title {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 51px;
  line-height: 1.06;
  font-weight: 200;
  letter-spacing: -2.2px;
  color: var(--vdomn-dark);
  max-width: 620px;
}

.hero-title span {
  color: var(--vdomn-blue)
}

.hero-copy {
  font-size: 16px;
  line-height: 1.55;
  max-width: 570px;
  color: #263b62
}

.search-box {
  background: #fff;
  border: 1px solid #e0ebf7;
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 13px 35px rgba(27, 72, 130, .12);
}

.search-field {
  height: 48px;
  border: 1px solid #d8e4f2;
  border-radius: 9px !important;
  font-size: 13px;
  color: #435777;
}

.search-field:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, .1);
  border-color: #7eaff1
}

.search-btn {
  height: 48px;
  border-radius: 9px !important
}

.quick-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #c9def7;
  border-radius: 20px;
  color: #17376a;
  background: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  margin: 4px 3px 0 0;
}

.hero-photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 55%;
  height: 100%;
  background-image: linear-gradient(90deg, rgba(232, 246, 255, .9) 0%, rgba(232, 246, 255, .1) 30%), url("../images/hero-person.jpeg");
  background-size: cover;
  background-position: center bottom;
  mix-blend-mode: multiply;

  /* This removes the harsh edge by fading the left side to transparent */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%);
  mask-image: linear-gradient(to right, transparent 0%, black 25%);
}

/* Desktop: fit the photo to the hero's height so her head is never cropped */
@media(min-width:992px) {
  .hero-photo {
    background-size: auto 100%;
    background-position: center top;
    background-repeat: no-repeat;
  }
}

/* Wide screens: the photo is narrower than its box, so keep it against the right edge */
@media(min-width:1324px) {
  .hero-photo {
    background-position: right top;
  }
}


.hero-note {
  position: absolute;
  right: 17%;
  top: 45px;
  color: #0c63d9;
  font-size: 20px;
  font-family: cursive;
  transform: rotate(-5deg);
  z-index: 4;
}

.hero-pill {
  position: absolute;
  right: 28px;
  top: 65px;
  z-index: 5;
  width: 168px;
  background: rgba(255, 255, 255, .96);
  border-radius: 15px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(20, 55, 100, .13);
  font-size: 12px;
  font-weight: 700;
  color: #10234e;
}

.hero-pill i {
  font-size: 23px;
  color: var(--vdomn-blue);
  margin-right: 9px
}

/* The pills are links: CV builder, companies, my applications */
a.hero-pill {
  text-decoration: none;
  transition: transform .2s, box-shadow .2s
}

a.hero-pill:hover,
a.hero-pill:focus-visible {
  color: #10234e;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(20, 55, 100, .2)
}

.stats {
  position: relative;
  z-index: 7;
  margin-top: -2px;
  padding: 0 0 10px;
  background: linear-gradient(180deg, #e9f6ff 0%, #f5fbff 100%);
}

.stats-card {
  position: relative;
  margin-top: -1px;
  background: rgba(255, 255, 255, .97);
  border-radius: 0 0 52px 52px;
  box-shadow: 0 10px 30px rgba(25, 65, 120, .06);
  padding: 18px 20px 19px;
  overflow: hidden;
}

.stats-card:after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -145px;
  width: 360px;
  height: 220px;
  border-radius: 50%;
  background: #dcefff;
  opacity: .75;
}

.stat {
  position: relative;
  z-index: 2;
  min-height: 58px;
  padding: 4px 22px;
  border-right: 1px solid #dbe7f3;
}

.stat:last-of-type {
  border-right: 0
}

.stat i {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #086be9;
  flex: 0 0 42px;
}

.stat-number {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 21px;
  line-height: 1.05;
  font-weight: 400;
  color: #10224c;
  letter-spacing: -.4px;
}

.stat-label {
  margin-top: 5px;
  font-size: 13px;
  color: #647390;
  white-space: nowrap;
}

.stats-join {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding-left: 18px;
}

.join-avatars {
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.join-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef7ff, #c9e5ff);
  border: 2px solid #fff;
  margin-left: -9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #173c73;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(20, 60, 110, .12);
}

.join-copy {
  font-size: 11.5px;
  line-height: 1.45;
  color: #506482;
  max-width: 220px;
}

.join-copy strong {
  color: #18345e;
  font-size: 12px
}

@media(max-width:991.98px) {
  .stats-card {
    border-radius: 0 0 34px 34px;
    padding: 14px 10px
  }

  .stat {
    padding: 8px 12px;
    border-right: 0
  }

  .stats-join {
    padding: 8px 12px
  }
}

@media(max-width:575.98px) {
  .stats {
    padding-bottom: 6px
  }

  .stats-card {
    padding: 12px 8px;
    border-radius: 0 0 25px 25px
  }

  .stat {
    min-height: 66px;
    padding: 8px 7px
  }

  .stat i {
    width: 34px;
    height: 34px;
    font-size: 21px;
    flex-basis: 34px
  }

  .stat-number {
    font-size: 18px
  }

  .stat-label {
    font-size: 10px;
    white-space: normal
  }

  .stats-join {
    display: none
  }
}

.company-strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid #e4ebf4;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 3px 15px rgba(20, 50, 100, .04)
}

/* Each logo scales to fit a slim 3:1 box; any shape (mostly 600x300) fits inside uncropped */
.company {
  min-width: 0;
  min-height: 55px;
  aspect-ratio: 3 / 1;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #edf1f7;
  font-size: 18px;
  font-weight: 800;
  color: #53647c
}

.company img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain
}

.company:nth-child(1) {
  color: #4285f4
}

.company:nth-child(2) {
  color: #5e6878
}

.company:nth-child(3) {
  color: #1570e8
}

.company:nth-child(4) {
  color: #e44747
}

.company:nth-child(5) {
  color: #39216b
}

.company:nth-child(6) {
  color: #2868b6
}

.company:nth-child(7) {
  color: #252f45
}

.company:nth-child(8) {
  color: #1767bd
}

.category {
  height: 102px;
  border: 1px solid #e1eaf5;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: .2s;
  cursor: pointer;
}

.category:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 24px rgba(15, 85, 170, .09);
  border-color: #9fc5f7
}

.category i {
  font-size: 27px;
  color: #0d6efd;
  margin-bottom: 8px
}

.category strong {
  font-size: 12px
}

.category small {
  font-size: 11px;
  color: #6c7b95
}

.cv-card {
  height: 100%;
  min-height: 220px;
  border-radius: 13px;
  background: linear-gradient(135deg, #eaf6ff, #cce8ff);
  overflow: hidden;
  position: relative;
  padding: 26px 24px;
}

.cv-card h3 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 23px;
  font-weight: 400;
  color: #09235a
}

.cv-card p {
  font-size: 13px;
  color: #27456e
}

.cv-card li {
  font-size: 12px;
  margin: 8px 0
}

.cv-paper {
  position: absolute;
  right: 22px;
  top: 20px;
  width: 205px;
  height: 240px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 12px 30px rgba(25, 65, 120, .13);
  padding: 16px;
}

.cv-avatar {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: #dbeeff;
  float: right
}

.line {
  height: 5px;
  background: #d8e4f1;
  border-radius: 4px;
  margin: 8px 0
}

.line.short {
  width: 58%
}

.line.mid {
  width: 78%
}

.ats-badge {
  position: absolute;
  right: 8px;
  bottom: 35px;
  background: #13a55a;
  color: #fff;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 400;
  transform: rotate(-5deg);
}

@media(max-width:991.98px) {
  .hero {
    min-height: 650px
  }

  .hero-photo {
    width: 62%;
    height: 52%;
    opacity: .72
  }

  .hero-note {
    right: 20px;
    top: 355px
  }

  /* !important: the pills also carry Bootstrap d-flex, which is !important */
  .hero-pill {
    display: none !important
  }

  .hero-title {
    font-size: 41px
  }

  .company-strip {
    grid-template-columns: repeat(4, 1fr)
  }

  .company {
    border-bottom: 1px solid #edf1f7
  }

  .cv-paper {
    right: -10px;
    opacity: .85
  }

  .cv-card {
    min-height: 270px
  }
}

@media(max-width:575.98px) {
  .hero {
    min-height: 720px
  }

  .hero-content {
    padding-top: 32px
  }

  .hero-title {
    font-size: 34px;
    letter-spacing: -1.2px
  }

  .hero-copy {
    font-size: 14px
  }

  .hero-photo {
    width: 100%;
    height: 43%;
    opacity: .5
  }

  .search-box {
    padding: 8px
  }

  .search-btn {
    width: 100%
  }

  .company-strip {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid #e3ebf4
  }

  .stats {
    border-radius: 0 0 25px 25px
  }

  .cv-card {
    padding: 22px;
    min-height: 300px
  }

  .cv-paper {
    right: -35px;
    transform: scale(.82);
    transform-origin: top right
  }
}

/* Popular searches on phones: label on its own line, chips in one row that scrolls sideways */
@media(max-width:575.98px) {
  .popular-label {
    display: block;
    margin-bottom: 6px;
    color: #10234e
  }

  .popular-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 16px 6px 0;
    margin-right: -12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch
  }

  .popular-chips::-webkit-scrollbar {
    display: none
  }

  .popular-chips .quick-link {
    flex: 0 0 auto;
    margin: 0;
    white-space: nowrap;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 12px rgba(27, 72, 130, .08)
  }
}

/* Phones and tablets: text and search first, then the photo as its own band below
   (on wide screens the photo sits beside the text, so this only applies below 992px) */
@media(max-width:991.98px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 0
  }

  .hero-content {
    order: 1;
    padding-bottom: 8px
  }

  .hero-photo {
    order: 2;
    position: relative;
    width: 100%;
    height: 300px;
    opacity: 1;
    background-image: url("../images/hero-person.jpeg");
    background-position: center 25%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 35%)
  }

  .hero:after {
    display: none
  }
}

@media(max-width:575.98px) {
  .hero-photo {
    height: 240px
  }
}
