:root {
  --panel: #3f4648;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.78);

  --bar-gray: rgba(120, 126, 130, 0.85);
  --look: #86b300;
  --read: #58bce3;
  --learn: #4a2a67;

  --max: 1100px;

  --link-offset: 4px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "rival-sans", sans-serif;
  background: #f5f5f3;
  height: 100vh;
}
strong {
  font-weight: 700;
}

/* Full-width hero background */
.hero {
  position: relative;
  overflow: hidden;
  height: inherit;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero.jpeg");
  background-size: cover;
  background-position: 35% center;
  background-repeat: no-repeat;
  object-fit: cover;
}
.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 55%
  );
}

.wrap {
  max-width: var(--max);
  margin-left: 8%;
  display: flex;
  justify-content: flex-start;
  z-index: 7;
  position: absolute;
  align-items: flex-start;
  top: 0;
  max-height: 95vh;
}

/* Content card */
.card {
  width: 592px;
  background: var(--panel);
  color: var(--text);
  overflow: hidden;
  max-height: inherit;
}
.card__body {
  padding-right: 60px;
  padding-left: 45px;
  padding-top: 100px;
  padding-bottom: 46px;
}
.card__body p {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 300;
  line-height: 24px;
  letter-spacing: -0.27px;
  margin-top: 0;
}
.card__body h1 {
  color: #fff;
  font-size: 60px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: -0.9px;
  margin-bottom: 0;
  margin-top: 0;
}

.card__body .more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;

  &:hover {
    text-decoration: underline;
    text-underline-offset: var(--link-offset);
    color: var(--read);
  }

  &:hover .line {
    background: var(--read);
  }
}
.more .line {
  width: 26px;
  height: 2px;
  background: #fff;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 90px;
  padding-left: 45px;
}
.cta__label {
  width: 120px;
  color: #fff;
  font-size: 26px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px; /* 84.615% */
  letter-spacing: -0.39px;
}

.cta__text {
  color: #fff;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px; /* 122.222% */
  letter-spacing: -0.27px;
}

.cta__look {
  background: var(--look);
}
.cta__read {
  background: var(--read);
}
.cta__learn {
  background: var(--learn);
}
.cta__link {
  text-decoration: none;

  &:hover .cta__text {
    text-decoration: underline;
    text-underline-offset: var(--link-offset);
  }

  &:hover .cta {
    background-color: #fff;
  }

  &:hover .cta__look .cta__label,
  &:hover .cta__look .cta__text {
    color: var(--look);
  }

  &:hover .cta__read .cta__label,
  &:hover .cta__read .cta__text {
    color: var(--read);
  }

  &:hover .cta__learn .cta__label,
  &:hover .cta__learn .cta__text {
    color: var(--learn);
  }
}
.cta__text a {
  color: #fff;
  text-decoration: underline;
}
.countdown-label {
  font-size: 14px !important;
  margin-bottom: 0;
  margin-top: 34px !important;
}

/* Desktop logos */
.logos-desktop {
  position: absolute;
  right: 2.5%;
  bottom: 25%;
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: flex-end; /* right-align logos */
  gap: 14px; /* space between logos */
  z-index: 2;
}

.logos-desktop img {
  height: 95px;
  width: auto;
  display: block;
}

/* Mobile header logos */
.logos-mobile {
  display: none;
  background: #fff;
  padding: 30px 35px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  position: relative;
  column-gap: 20px;
}
.logos-mobile img {
  height: auto;
  width: auto;
  min-width: 0;
}

.hero__bar {
  display: none;
  position: absolute;
  left: 35px;
  right: 35px;
  bottom: 18px;
  background: var(--bar-gray);
  color: #fff;
  padding-left: 30px;
  padding-right: 30px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

.underline {
  text-decoration: underline !important;
  text-underline-offset: var(--link-offset) !important;
}

@media (max-width: 1660px) {
  .card__body {
    padding-right: 40px;
    padding-left: 40px;
    padding-top: 7vh;
    padding-bottom: 5vh;
  }
  .card__body h1 {
    font-size: 50px;
  }
  .cta {
    min-height: 60px;
    padding-left: 40px;
  }
  .cta__label {
    width: 120px;
    font-size: 24px;
  }
  .logos-desktop img {
    height: 70px;
  }
}

@media (max-width: 1366px) {
  .card__body {
    padding-right: 20px;
    padding-left: 20px;
    padding-top: 5vh;
    padding-bottom: 5vh;
  }
  .card__body h1 {
    font-size: 40px;
  }
  .card__body p {
    font-size: 15px;
    line-height: 20px;
  }
  .countdown-label {
    font-size: 12px !important;
    margin-top: 20px !important;
  }
  .cta {
    min-height: 65px;
    padding-left: 20px;
  }
  .cta__label {
    width: 100px;
    font-size: 22px;
  }

  .cta__text {
    font-size: 15px;
  }

  .logos-desktop img {
    height: 65px;
  }
}

@media (max-width: 992px) {
  .wrap {
    position: relative;
    margin-left: 0;
  }

  .logos-mobile {
    display: flex;
  }

  .hero {
    min-height: 420px;
    height: auto;
  }
  .hero__bg {
    background-position: center top;
  }
  .hero__shade {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      rgba(0, 0, 0, 0) 45%
    );
  }

  .wrap {
    display: block;
    padding: 0;
  }
  .card {
    width: 100%;
  }
  .card__body {
    padding-top: 74px;
    padding-bottom: 45px;
    padding-left: 35px;
    padding-right: 35px;
  }
  h1 {
    display: none;
  }
  .hero__bar {
    display: block;
  }
  .logos-desktop {
    display: none;
  }
  .cta {
    padding-left: 35px;
    padding-right: 35px;
    column-gap: 20px;
  }
  .cta__label {
    width: 50px;
    align-items: center;
  }
  .cta__text {
    align-items: center;
    font-size: 16px;
  }
}
