/* Course visuals complement the existing Aqua palette, copy, and source section order. */
@layer aqua-courses {
  body.product-v2 #sbpopm .why__n.ve-course-numbered-marker,
  body.product-v2 #sbai .mod__n.ve-course-numbered-marker {
    background: transparent !important;
  }
}
body.product-v2 .ve-course-icon {
  display: block;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  max-width: none;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.product-v2 .ve-course-icon-card > .ve-course-icon {
  margin: 0 0 18px;
}

body.product-v2 #career .cstat > .ve-course-icon {
  margin-right: auto;
  margin-left: auto;
}

body.product-v2 #sbpopm .why__n.ve-course-numbered-marker,
body.product-v2 #sbai .mod__n.ve-course-numbered-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  gap: 12px;
  width: 42px;
  height: fit-content;
  min-height: 42px;
  padding: 0;
  background: transparent !important;
  color: var(--ink-heading);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.product-v2 #sbpopm.restored-course .restored-modules > .ve-course-module-row {
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: start;
}

body.product-v2 #sbpopm.restored-course .ve-course-module-row > .ve-course-icon {
  grid-column: 3;
  grid-row: 1;
  width: 28px;
  height: 28px;
}

body.product-v2 #about-course .ve-course-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

body.product-v2 #about-course .ve-course-overview-copy {
  min-width: 0;
}

body.product-v2 #about-course .ve-course-overview-copy .sec-head {
  text-align: left;
  margin-right: 0;
  margin-left: 0;
}

body.product-v2 #about-course .ve-course-overview-copy .restored-overview {
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body.product-v2 #about-course .ve-course-overview-visual {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  justify-self: end;
  margin: 0;
  border: 1px solid var(--brand-line, #c6eee0);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px -24px rgba(18,40,58,0.24);
}

body.product-v2 #about-course .ve-course-overview-visual::before {
  content: '';
  position: absolute;
  inset: 14px -12px -14px 12px;
  z-index: -1;
  border: 1px solid #7fd8db;
  border-radius: inherit;
  pointer-events: none;
}

body.product-v2 #about-course .ve-course-overview-visual > img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: inherit;
}

body.product-v2 #about-course .ve-course-overview-visual--badge > img {
  object-fit: contain;
  padding: 44px;
  box-sizing: border-box;
}

@media (max-width: 800px) {
  body.product-v2 #about-course .ve-course-overview-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body.product-v2 #about-course .ve-course-overview-visual {
    width: calc(100% - 12px);
    max-width: 520px;
    justify-self: start;
    margin-bottom: 14px;
  }
}

@media (max-width: 480px) {
  body.product-v2 #sbpopm.restored-course .restored-modules > .ve-course-module-row {
    grid-template-columns: 26px minmax(0, 1fr) 24px;
    gap: 10px;
  }

  body.product-v2 #sbpopm.restored-course .ve-course-module-row > .ve-course-icon {
    width: 24px;
    height: 24px;
  }

  body.product-v2 #about-course .ve-course-overview-visual--badge > img {
    padding: 32px;
  }
}
