:root {
  --ash-sky: #2f91df;
  --ash-soft-blue: #eaf5ff;
  --ash-soft-orange: #fff1e7;
}

.value-card,
.tutor-home-card,
.program-paths > a,
.forms-hub-grid > a {
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 55px rgba(10, 37, 64, 0.09);
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.value-card::before,
.program-paths > a::before,
.forms-hub-grid > a::before {
  background: linear-gradient(90deg, var(--orange), var(--yellow) 34%, var(--green) 67%, var(--ash-sky));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.value-card::after,
.program-paths > a::after,
.forms-hub-grid > a::after {
  background: url("/afterschool-mark.png") center / contain no-repeat;
  bottom: -38px;
  content: "";
  height: 150px;
  opacity: 0.075;
  pointer-events: none;
  position: absolute;
  right: -35px;
  transform: rotate(-9deg);
  width: 150px;
  z-index: -1;
}

.program-paths > a:nth-child(2)::after,
.program-paths > a:nth-child(3)::after,
.forms-hub-grid > a:nth-child(3)::after,
.value-card.dark::after {
  filter: brightness(0) invert(1);
  opacity: 0.1;
}

.value-card:hover,
.tutor-home-card:hover,
.program-paths > a:hover,
.forms-hub-grid > a:hover {
  box-shadow: 0 25px 70px rgba(10, 37, 64, 0.16);
  transform: translateY(-7px);
}

.tutor-home-card {
  border-top: 5px solid var(--orange);
}

.tutor-home-card:nth-child(2) {
  border-top-color: var(--yellow);
}

.tutor-home-card:nth-child(3) {
  border-top-color: var(--green);
}

.tutor-home-card:nth-child(4) {
  border-top-color: var(--ash-sky);
}

.tutor-home-photo {
  border-radius: 20px 20px 0 0;
}

.placement-inline {
  align-items: center;
  background:
    radial-gradient(circle at 84% 18%, rgba(47, 145, 223, 0.34), transparent 28%),
    radial-gradient(circle at 4% 100%, rgba(243, 107, 34, 0.25), transparent 30%),
    linear-gradient(135deg, #062b55, #0a2540 58%, #103553);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
  padding-bottom: 82px;
  padding-top: 82px;
  position: relative;
}

.placement-inline::after {
  background: url("/afterschool-mark.png") center / contain no-repeat;
  content: "";
  height: 360px;
  opacity: 0.09;
  pointer-events: none;
  position: absolute;
  right: -92px;
  top: -78px;
  transform: rotate(10deg);
  width: 360px;
  z-index: -1;
}

.placement-inline > div,
.placement-inline > a {
  position: relative;
  z-index: 1;
}

.placement-inline h2 {
  color: #fff;
  max-width: 760px;
}

.placement-inline p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  max-width: 760px;
}

.placement-offer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 28px;
}

.placement-offer-meta span {
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.85px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.placement-offer-meta span:first-child {
  background: var(--orange);
  border-color: var(--orange);
}

.faq-section.ash-faq-feature {
  background: linear-gradient(135deg, #fffdf8, var(--ash-soft-blue));
  grid-template-columns: 0.8fr 1.2fr;
  position: relative;
}

.faq-section.ash-faq-feature::before {
  background: var(--orange);
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 8vw;
  position: absolute;
  top: 48px;
  width: 16px;
}

.ash-faq-feature .faq-list {
  border-top: 0;
  display: grid;
  gap: 12px;
}

.ash-faq-feature .faq-list details {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(10, 37, 64, 0.12);
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(10, 37, 64, 0.07);
  padding: 0 22px;
}

.ash-faq-feature .faq-list details[open] {
  border-color: rgba(47, 145, 223, 0.45);
  box-shadow: 0 16px 40px rgba(47, 145, 223, 0.12);
}

.ash-faq-feature .faq-list summary {
  border: 0;
  font-size: 13px;
  padding: 22px 0;
}

.ash-faq-feature .faq-list details p {
  padding-bottom: 22px;
}

/* Editorial roadmap cards inspired by the approved AfterSchool reference. */
.value-section {
  background:
    radial-gradient(circle at 58% 34%, rgba(255, 100, 0, 0.92) 0 92px, transparent 94px),
    #fffaf0;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.value-section::before {
  background:
    linear-gradient(rgba(47, 145, 223, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 145, 223, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #052650, #081e3e);
  background-size: 34px 34px, 34px 34px, auto;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
  inset: 0 0 0 42%;
  position: absolute;
  z-index: -2;
}

.value-section::after {
  background-image: radial-gradient(circle, var(--green) 2px, transparent 2.5px);
  background-size: 28px 28px;
  content: "";
  height: 120px;
  left: 34px;
  opacity: 0.8;
  position: absolute;
  top: 34px;
  width: 190px;
  z-index: -1;
}

.value-section .split-heading,
.value-section .value-cards {
  position: relative;
  z-index: 1;
}

.value-section .value-card {
  background: linear-gradient(135deg, #0b315d, #061c38) !important;
  border: 2px solid rgba(75, 166, 86, 0.9);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 50%, calc(100% - 54px) 100%, 0 100%);
  color: #fff;
  min-height: 142px;
  overflow: visible;
  padding: 28px 78px 26px 104px;
}

.value-section .value-card::before {
  background: rgba(75, 166, 86, 0.8);
  height: 2px;
  left: 0;
  right: 54px;
  top: auto;
  bottom: 0;
}

.value-section .value-card::after {
  background: none;
  border: 2px dashed rgba(75, 166, 86, 0.52);
  border-radius: 50%;
  bottom: auto;
  filter: none;
  height: 86px;
  left: 18px;
  opacity: 1;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  width: 86px;
}

.value-section .value-card:nth-child(2) {
  border-color: rgba(47, 145, 223, 0.95);
  transform: translateX(-34px);
}

.value-section .value-card:nth-child(2)::before {
  background: var(--ash-sky);
}

.value-section .value-card:nth-child(3) {
  border-color: rgba(255, 100, 0, 0.95);
  transform: translateX(-68px);
}

.value-section .value-card:nth-child(3)::before {
  background: var(--orange);
}

.value-section .value-card:hover {
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
  transform: translateY(-5px);
}

.value-section .value-card:nth-child(2):hover {
  transform: translate(-34px, -5px);
}

.value-section .value-card:nth-child(3):hover {
  transform: translate(-68px, -5px);
}

.value-section .value-card > span:first-child {
  align-items: center;
  background: #fffdf8;
  border: 3px solid var(--green);
  border-radius: 50%;
  color: #073b2b;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  left: 29px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  z-index: 3;
}

.value-section .value-card:nth-child(2) > span:first-child {
  border-color: var(--ash-sky);
  color: #0a558d;
}

.value-section .value-card:nth-child(3) > span:first-child {
  border-color: var(--orange);
  color: #a53d00;
}

.value-section .value-card h3 {
  color: #fff;
  font-size: clamp(23px, 2.1vw, 34px);
  margin: 0 0 8px;
}

.value-section .value-card p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 520px;
}

.value-section .focus-art,
.value-section .bars-art,
.value-section .talk-art {
  bottom: 15px;
  color: rgba(255, 255, 255, 0.12);
  font-size: 22px;
  font-weight: 900;
  height: 50px;
  left: auto;
  opacity: 0.75;
  position: absolute;
  right: 66px;
  top: auto;
  width: 64px;
}

.program-paths > a,
.forms-hub-grid > a {
  border-color: rgba(6, 76, 50, 0.28);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
}

.program-paths > a::before,
.forms-hub-grid > a::before {
  background: var(--orange);
  border: 7px solid #fffaf0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--green);
  height: 28px;
  left: auto;
  right: 24px;
  top: 24px;
  width: 28px;
}

.program-paths > a:nth-child(even),
.forms-hub-grid > a:nth-child(even) {
  background: linear-gradient(145deg, #0a315c, #061d3a);
  color: #fff;
}

.program-paths > a:nth-child(even) h3,
.program-paths > a:nth-child(even) p,
.program-paths > a:nth-child(even) b,
.forms-hub-grid > a:nth-child(even) h2,
.forms-hub-grid > a:nth-child(even) p,
.forms-hub-grid > a:nth-child(even) b {
  color: inherit;
}

@media (min-width: 901px) {
  .value-section {
    align-items: center;
    display: grid;
    gap: clamp(48px, 7vw, 110px);
    grid-template-columns: minmax(320px, 0.82fr) minmax(540px, 1.18fr);
  }

  .value-section .split-heading {
    display: block;
  }

  .value-section .split-heading > p {
    margin-top: 28px;
    max-width: 430px;
  }

  .value-section .value-cards {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .placement-inline,
  .faq-section.ash-faq-feature {
    grid-template-columns: 1fr;
  }

  .placement-inline {
    align-items: flex-start;
    gap: 32px;
  }

  .value-section::before {
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    inset: 40% 0 0;
  }

  .value-section .value-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 48px;
    max-width: 760px;
    width: 100%;
  }

  .value-section .value-card:nth-child(2),
  .value-section .value-card:nth-child(3) {
    transform: none;
  }
}

@media (max-width: 600px) {
  .value-card,
  .tutor-home-card,
  .program-paths > a,
  .forms-hub-grid > a {
    border-radius: 22px;
  }

  .placement-inline {
    padding: 64px 22px;
  }

  .placement-inline::after {
    height: 240px;
    right: -86px;
    top: -35px;
    width: 240px;
  }

  .placement-offer-meta {
    gap: 7px;
  }

  .placement-offer-meta span {
    font-size: 8px;
    padding: 9px 11px;
  }

  .faq-section.ash-faq-feature::before {
    left: 22px;
    top: 34px;
  }

  .value-section .value-card {
    clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 50%, calc(100% - 32px) 100%, 0 100%);
    min-height: 132px;
    padding: 24px 48px 22px 82px;
  }

  .value-section .value-card::after {
    height: 64px;
    left: 11px;
    width: 64px;
  }

  .value-section .value-card > span:first-child {
    height: 46px;
    left: 20px;
    width: 46px;
  }
}
