body.category-baby {
  background-color: #f7f8f4;
  background-image: url('../../img/backing.png');
  background-repeat: repeat;
}

.baby-hub {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
  color: #303030;
}

.baby-hub .container {
  max-width: 1216px;
}

.baby-hub__hero,
.baby-hub__months,
.baby-hub__services,
.baby-hub__intro,
.baby-hub__topics,
.baby-hub__more-tools,
.baby-hub__ad,
.baby-hub__getting-started,
.baby-hub__faq,
.baby-hub__feedback {
  padding: 0;
}

.baby-hub__hero {
  padding: 32px 0;
}

.baby-hub__ad,
.baby-hub__faq {
  padding: 32px 0;
}

.baby-hub__hero-card {
  position: relative;
  min-height: clamp(11.25rem, 22.94vw, 17.4375rem);
  max-height: 17.4375rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background-image: url('../../img/category-baby/baby-desktop-banner.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.baby-hub__hero-copy {
  position: relative;
  z-index: 1;
  max-width: 28rem;
  padding: 2.5rem 0 0 2.5rem;
}

.baby-hub__title {
  margin: 0;
  color: #ffffff;
  font-family: Cinzel, var(--font-heading);
  font-size: clamp(2rem, 3.29vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.006em;
  line-height: 1;
}

.baby-hub__description {
  max-width: 28rem;
  margin: 0.25rem 0 0;
  color: #ffffff;
  font-family: 'Source Sans 3', var(--font-primary);
  font-size: clamp(0.875rem, 1.32vw, 1rem);
  font-weight: 400;
  line-height: 1.2;
}

.baby-hub__section-title {
  margin: 0;
  color: #303030;
  font-family: 'Source Sans 3', var(--font-primary);
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.baby-hub__month-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
}

.baby-hub-month-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  gap: 8px;
  min-width: 0;
  padding: 12px 8px;
  border-radius: 8px;
  background: var(--baby-month-bg, #edf5ea);
  color: var(--baby-month-color, #79b262);
  text-align: right;
  text-decoration: none;
}

.baby-hub-month-card:nth-child(6n + 1) {
  --baby-month-bg: #edf5ea;
  --baby-month-color: #79b262;
}

.baby-hub-month-card:nth-child(6n + 2) {
  --baby-month-bg: #e5f6fd;
  --baby-month-color: #10b4e2;
}

.baby-hub-month-card:nth-child(6n + 3) {
  --baby-month-bg: #fff8e5;
  --baby-month-color: #f0b601;
}

.baby-hub-month-card:nth-child(6n + 4) {
  --baby-month-bg: #f1eaf2;
  --baby-month-color: #6f20ad;
}

.baby-hub-month-card:nth-child(6n + 5) {
  --baby-month-bg: #e0e7ef;
  --baby-month-color: #00187d;
}

.baby-hub-month-card:nth-child(6n) {
  --baby-month-bg: #ffe5e4;
  --baby-month-color: #c14041;
}

.baby-hub-month-card__icon {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.baby-hub-month-card__title {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  color: currentColor;
  font-family: Cinzel, var(--font-heading);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}

.baby-hub-month-card__label {
  color: currentColor;
  font-family: Cinzel, var(--font-heading);
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  line-height: 16px;
  letter-spacing: 0;
}

.baby-hub-month-card__number {
  color: currentColor;
  font-family: Cinzel, var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  font-style: normal;
  line-height: 40px;
  letter-spacing: 0;
}

.baby-hub__feedback .height-predictor__suggest {
  padding: 0;
}

.baby-hub .dl-section-title {
  text-align: center;
}

.baby-hub__intro-card {
  padding: 22px 0;
}

.baby-hub__intro-card h2 {
  margin: 0;
  color: #6e4f95;
  font-family: 'Source Sans 3', var(--font-primary);
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.baby-hub__intro-card p {
  max-width: 100%;
  margin: 16px 0 0;
  color: #303030;
  font-family: 'Source Sans 3', var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-indent: 32px;
}

.baby-hub__intro-card p + p {
  margin-top: 12px;
}

.baby-hub__topics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.baby-hub__topics .container > .baby-hub__topics-grid:first-child {
  margin-top: 0;
}

.baby-hub .pregnancy-hub-topic {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  border-radius: 12px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
}

.baby-hub .pregnancy-hub-topic__image-wrap {
  display: block;
  overflow: hidden;
  width: 100%;
  max-height: 188px;
  border-radius: 12px;
  background: #f5f1f7;
  line-height: 0;
}

.baby-hub .pregnancy-hub-topic__image {
  display: block;
  width: 100%;
  height: 188px;
  object-fit: cover;
}

.baby-hub .pregnancy-hub-topic__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 21px;
  background: #ffffff;
}

.baby-hub .pregnancy-hub-topic__title {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: #000000;
  font-family: Cinzel, var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

.baby-hub .pregnancy-hub-topic__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 10px;
  background: #8fb56c;
  color: #ffffff;
  font-family: 'Source Sans 3', var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.baby-hub__ad .marketplace-ad {
  margin: 0;
}

.baby-hub__getting-started-card {
  padding: 24px;
  border-radius: 12px;
  background: #ffffff;
}

.baby-hub__getting-started-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.baby-hub-start-card {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: row-reverse;
  gap: 8px;
  min-height: 88px;
  padding: 16px 12px;
  border-radius: 10px;
  background: var(--baby-start-bg, #edf5ea);
  color: var(--baby-start-color, #79b262);
  text-align: center;
  text-decoration: none;
}

.baby-hub-start-card:nth-child(1) {
  --baby-start-bg: #edf5ea;
  --baby-start-color: #79b262;
}

.baby-hub-start-card:nth-child(2) {
  --baby-start-bg: #e5f6fd;
  --baby-start-color: #10b4e2;
}

.baby-hub-start-card:nth-child(3) {
  --baby-start-bg: #fef2f4;
  --baby-start-color: #ff6482;
}

.baby-hub-start-card:nth-child(4) {
  --baby-start-bg: #e4eaf6;
  --baby-start-color: #00187d;
}

.baby-hub-start-card:nth-child(5) {
  --baby-start-bg: #eee6f1;
  --baby-start-color: #6f20ad;
}

.baby-hub-start-card:nth-child(6) {
  --baby-start-bg: #fef2f4;
  --baby-start-color: #ff6482;
}

.baby-hub-start-card:nth-child(7) {
  --baby-start-bg: #fff8e5;
  --baby-start-color: #f0b601;
}

.baby-hub-start-card:nth-child(8) {
  --baby-start-bg: #fff0dd;
  --baby-start-color: #c56600;
}

.baby-hub-start-card__icon {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.baby-hub-start-card__title {
  max-width: 186px;
  width: 100%;
  color: currentColor;
  font-family: Cinzel, var(--font-heading);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

@media (max-width: 767px) {
  .baby-hub__hero-card {
    aspect-ratio: 336 / 448;
    min-height: 0;
    max-height: none;
    border-radius: 0.75rem;
    background-image: url('../../img/category-baby/baby-mobile-banner.svg');
  }

  .baby-hub__hero-copy {
    max-width: min(30rem, calc(100% - 0.5rem));
    padding: 1.5rem 0 0 1.5rem;
  }

  .baby-hub__title {
    font-size: clamp(2rem, 10.67vw, 2.5rem);
    line-height: 1.2;
  }

  .baby-hub__description {
    margin-top: 0.75rem;
    font-size: clamp(0.875rem, 4.27vw, 1rem);
    line-height: clamp(1.125rem, 5.33vw, 1.25rem);
  }

  .baby-hub__month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
  }

  .baby-hub-month-card {
    padding: 10px 6px;
  }

  .baby-hub__intro-card {
    padding: 24px 0 0;
  }

  .baby-hub__topics-grid {
    gap: 16px;
    margin-top: 16px;
  }

  .baby-hub .pregnancy-hub-topic__image {
    height: 105px;
  }

  .baby-hub__getting-started-card {
    padding: 24px 12px;
  }

  .baby-hub__getting-started-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
  }

  .baby-hub-start-card {
    padding: 12px 8px;
  }

  .baby-hub__ad .marketplace-ad--list {
    padding: 13px 10px;
  }

  .baby-hub__ad .marketplace-ad__leaf {
    display: none;
  }

  .baby-hub__ad .marketplace-ad__slide {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .baby-hub__ad .marketplace-ad__slide.is-active {
    display: flex;
  }

  .baby-hub__ad .marketplace-ad__media {
    position: relative;
    flex: 0 0 127px;
    width: 127px;
    max-width: 127px;
    margin: 0;
  }

  .baby-hub__ad .marketplace-ad__image-link {
    max-width: 127px;
    aspect-ratio: 1 / 1;
  }

  .baby-hub__ad .marketplace-ad__arrow--prev {
    left: 0;
    right: auto;
  }

  .baby-hub__ad .marketplace-ad__arrow--next {
    left: auto;
    right: 0;
  }

  .baby-hub__ad .marketplace-ad__body {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0 8px;
    min-width: 0;
  }

  .baby-hub__ad .marketplace-ad__title,
  .baby-hub__ad .marketplace-ad__description {
    grid-column: 1 / -1;
  }

  .baby-hub__ad .marketplace-ad__title {
    font-size: 14px;
    line-height: 20px;
  }

  .baby-hub__ad .marketplace-ad__description {
    margin-top: 4px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .baby-hub__ad .marketplace-ad__offer,
  .baby-hub__ad .marketplace-ad__footer {
    display: contents;
  }

  .baby-hub__ad .marketplace-ad__price {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
  }

  .baby-hub__ad .marketplace-ad__cta {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    justify-content: center;
    width: auto;
    margin-top: 0;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 16px;
    white-space: nowrap;
  }

  .baby-hub__ad .marketplace-ad__brand {
    grid-column: 1 / -1;
    grid-row: 4;
    justify-content: flex-start;
    flex-wrap: nowrap;
    margin-top: 12px;
    font-size: 12px;
    line-height: 16px;
  }

  .baby-hub__ad .marketplace-ad__brand-logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }
}

@media (min-width: 768px) {
  .baby-hub__topics-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

}
