/* Skill-up hub — homepage feature + category cards */

.resources-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.resources-hub--beside {
  min-width: 0;
  gap: 18px;
  height: 100%;
}

.resources-hub--beside .resources-hub-grid--primary {
  grid-template-columns: 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
  flex: 1 1 auto;
  height: 100%;
}

.resources-hub--beside .resources-hub-grid--secondary {
  gap: 18px;
}

.resources-hub--beside .resources-hub-card-title {
  font-size: clamp(22px, 1.8vw, 28px);
}

.resources-hub--beside .resources-hub-card-copy {
  margin-bottom: 0;
  font-size: 13px;
  -webkit-line-clamp: 2;
}

.resource-feature {
  border: var(--border, 2px solid #3c3c3c);
  border-radius: 42px;
  background: var(--green, #00994d);
  color: var(--white, #fff);
  padding: 28px;
  box-shadow: var(--shadow);
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  align-self: stretch;
}

.resource-feature h3 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 0 0 14px;
  color: inherit;
}

.resource-feature p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  max-width: 460px;
}

.resource-feature .eyebrow {
  color: var(--ink, #3c3c3c);
  box-shadow: var(--shadow-sm);
}

.resource-feature .button-row {
  align-self: flex-end;
  margin-top: auto;
  justify-content: flex-end;
}

.resource-feature .button {
  box-shadow: var(--shadow-sm);
}

.resource-feature .button:hover {
  box-shadow: var(--shadow-press);
}

.resources-hub {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.resources-hub-grid {
  display: grid;
  gap: 18px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
}

.resources-hub-grid--primary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.resources-hub-grid--secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.resources-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 24px 28px 24px 24px;
  border: var(--border, 2px solid #3c3c3c);
  border-radius: 30px;
  background: var(--off-white-blue, #eef4f8);
  box-shadow: var(--shadow);
  box-sizing: border-box;
  overflow: visible;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.resources-hub-card:has(.resources-hub-card-hit:hover),
.resources-hub-card:has(.resources-hub-card-hit:focus-visible) {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow);
}

.resources-hub-card:has(.resources-hub-card-hit:active) {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-sm);
}

.resources-hub-card-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  cursor: pointer;
}

.resources-hub-card-hit:focus-visible {
  outline: 3px solid var(--green, #00994d);
  outline-offset: 3px;
}

.resources-hub-card-title {
  position: relative;
  z-index: 0;
  margin: 0 0 12px;
  color: var(--ink, #3c3c3c);
  font-size: 26px;
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.resources-hub-card-copy {
  position: relative;
  z-index: 0;
  flex: 1 1 auto;
  margin: 0;
  color: var(--ink, #3c3c3c);
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (max-width: 980px) {
  .resources-layout {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .resource-feature {
    min-height: 0;
    padding: 28px 24px;
    border-radius: 28px;
    gap: 20px;
    justify-content: flex-start;
    align-self: auto;
  }

  .resource-feature h3 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.05;
    margin-bottom: 12px;
  }

  .resource-feature p {
    font-size: 14px;
    line-height: 1.5;
    max-width: none;
  }

  .resources-hub {
    gap: 22px;
  }

  .resources-hub--beside {
    gap: 18px;
    height: auto;
  }

  .resources-hub--beside .resources-hub-grid--primary {
    grid-template-rows: none;
    height: auto;
  }

  .resources-hub-grid--primary,
  .resources-hub-grid--secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .resources-hub--beside .resources-hub-grid--primary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .resources-hub {
    gap: 18px;
  }

  .resources-hub-grid,
  .resources-hub-grid--primary,
  .resources-hub-grid--secondary {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .resources-hub-card {
    border-radius: 24px;
    padding: 18px;
  }

  .resources-hub-card-title {
    font-size: 22px;
  }

  .resources-hub-card-copy {
    font-size: 13px;
  }
}


/* Homepage desktop: narrower shell and shorter supporting cards. */
@media (min-width: 981px) {
  #resources .resources-layout {
    width: 80%;
    margin-inline: auto;
    align-items: start;
  }

  #resources .resource-feature {
    min-height: 460px;
    padding: 26px;
  }

  #resources .resources-hub--beside,
  #resources .resources-hub--beside .resources-hub-grid--primary {
    height: auto;
  }

  #resources .resources-hub--beside .resources-hub-grid--primary {
    grid-template-rows: repeat(3, auto);
    gap: 12px;
  }

  #resources .resources-hub-card {
    height: auto;
    padding: 18px 22px;
  }

  #resources .resources-hub-card-title {
    margin-bottom: 6px;
    font-size: clamp(21px, 1.55vw, 25px);
  }

  #resources .resources-hub-card-copy {
    line-height: 1.4;
  }
}


/* Keep both homepage Skill Up columns equal in height. */
@media (min-width: 981px) {
  #resources .resources-layout {
    align-items: stretch;
  }

  #resources .resource-feature {
    min-height: 100%;
    height: 100%;
  }

  #resources .resources-hub--beside,
  #resources .resources-hub--beside .resources-hub-grid--primary {
    height: 100%;
  }

  #resources .resources-hub--beside .resources-hub-grid--primary {
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  #resources .resources-hub-card {
    height: 100%;
  }
}


/* Circular arrow from the floating trial widget. */
.resources-hub-card {
  padding-right: 82px;
}

.resources-hub-card-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 22px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink, #3c3c3c);
  border-radius: 50%;
  background: var(--yellow, #ffe381);
  color: var(--ink, #3c3c3c);
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
  pointer-events: none;
}

.resources-hub-card-arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.resources-hub-card:has(.resources-hub-card-hit:hover) .resources-hub-card-arrow,
.resources-hub-card:has(.resources-hub-card-hit:focus-visible) .resources-hub-card-arrow {
  transform: translate(3px, -50%);
}

@media (max-width: 720px) {
  .resources-hub-card {
    padding-right: 70px;
  }

  .resources-hub-card-arrow {
    right: 16px;
    width: 38px;
    height: 38px;
  }
}

/* Homepage Skill Up Sprout assets.
   The shared /skillup/ hub keeps its existing card layout; these illustrations
   are only surfaced in the homepage side stack. */
.resources-hub-card-asset {
  display: none;
}

#resources .resources-hub--beside .resources-hub-card {
  padding-left: 126px;
  min-height: 128px;
}

#resources .resources-hub--beside .resources-hub-card-asset {
  position: absolute;
  z-index: 1;
  left: 18px;
  top: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  pointer-events: none;
}

#resources .resources-hub--beside .resources-hub-card-asset img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  transform: scale(1.08);
  transform-origin: center;
}

@media (max-width: 980px) {
  #resources .resources-hub--beside .resources-hub-card {
    padding-left: 116px;
    min-height: 122px;
  }

  #resources .resources-hub--beside .resources-hub-card-asset {
    left: 18px;
    width: 82px;
    height: 82px;
  }
}

@media (max-width: 720px) {
  #resources .resources-hub--beside .resources-hub-card {
    padding-left: 94px;
    padding-right: 70px;
    min-height: 110px;
  }

  #resources .resources-hub--beside .resources-hub-card-asset {
    left: 14px;
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 420px) {
  #resources .resources-hub--beside .resources-hub-card {
    padding-left: 84px;
  }

  #resources .resources-hub--beside .resources-hub-card-asset {
    left: 12px;
    width: 58px;
    height: 58px;
  }
}

/* Approved Sprout blob treatment, matching the flexibility cards. */
#resources .resource-feature-asset,
#resources .resources-hub--beside .resources-hub-card-asset {
  isolation: isolate;
}

#resources .resource-feature-asset::before,
#resources .resources-hub--beside .resources-hub-card-asset::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

#resources .resource-feature-asset::before {
  width: 195px;
  height: 185px;
  background: rgba(255, 243, 185, 0.30);
  border-radius: 60% 40% 53% 47% / 44% 58% 42% 56%;
}

#resources .resources-hub--beside .resources-hub-card-asset::before {
  width: 108px;
  height: 104px;
}

#resources .resources-hub--beside .resources-hub-card:nth-child(1) .resources-hub-card-asset::before {
  background: rgba(219, 233, 175, 0.48);
  border-radius: 60% 40% 53% 47% / 44% 58% 42% 56%;
}

#resources .resources-hub--beside .resources-hub-card:nth-child(2) .resources-hub-card-asset::before {
  background: rgba(207, 231, 237, 0.50);
  border-radius: 47% 53% 61% 39% / 58% 44% 56% 42%;
}

#resources .resources-hub--beside .resources-hub-card:nth-child(3) .resources-hub-card-asset::before {
  background: rgba(244, 224, 215, 0.52);
  border-radius: 55% 45% 43% 57% / 48% 60% 40% 52%;
}

#resources .resource-feature-asset img,
#resources .resources-hub--beside .resources-hub-card-asset img {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) and (min-width: 981px) {
  #resources .resource-feature-asset::before {
    width: 158px;
    height: 150px;
  }
}

@media (max-width: 980px) {
  #resources .resource-feature-asset::before {
    width: 156px;
    height: 148px;
  }

  #resources .resources-hub--beside .resources-hub-card-asset::before {
    width: 98px;
    height: 94px;
  }
}

@media (max-width: 720px) {
  #resources .resource-feature-asset::before {
    width: 116px;
    height: 110px;
  }

  #resources .resources-hub--beside .resources-hub-card-asset::before {
    width: 78px;
    height: 74px;
  }
}

@media (max-width: 420px) {
  #resources .resources-hub--beside .resources-hub-card-asset::before {
    width: 68px;
    height: 66px;
  }
}
