/* ==========================================================================
   Assessment & Evaluation (academics.html, #assessment only).
   Layout: intro column on the left (sticky on desktop), four step cards on the
   right in a staggered two-column grid, closing note as a full-width banner.
   Typography follows index.html: .hp-h2 with the orange .hp-script "@Ananya".
   Existing classes (.as-head, .as-steps, .as-step, .as-num, .as-close) are kept.
   ========================================================================== */

#assessment {
  position: relative;
  overflow-x: clip;
}

#assessment .stage {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas:
    "intro steps"
    "close close";
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
  grid-auto-rows: auto;
}

/* closing banner sits fully below the cards, never over the intro text */
#assessment .as-close {
  position: relative;
  z-index: 1;
  clear: both;
}

/* ---------- intro column ---------- */
#assessment .as-head {
  grid-area: intro;
  position: static;
  text-align: left;
  max-width: 480px;
}

#assessment .as-head .kicker {
  display: block;
  font-family: var(--hp-nav);
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hp-orange);
  margin-bottom: 14px;
}

#assessment .as-head .h2 {
  font-family: var(--hp-sans);
  font-size: clamp(36px, 3.6vw, 54px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--hp-navy);
  margin: 0 0 26px;
  text-wrap: balance;
}

#assessment .as-head .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

#assessment .as-head .copy-18 {
  font-family: var(--hp-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--hp-ink);
  margin: 0;
  max-width: none;
}

/* ---------- step cards ---------- */
#assessment .as-steps {
  grid-area: steps;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

#assessment .as-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 28px 28px 30px;
  background: #fff;
  border: 1px dashed rgba(10, 74, 149, .32);
  border-radius: 26px;
  box-shadow: 0 12px 32px rgba(14, 42, 71, .06);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

#assessment .as-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(14, 42, 71, .12);
  border-color: var(--hp-orange);
}

/* drop the older decorative pseudo-elements from refined.css */
#assessment .as-step::before,
#assessment .as-step::after {
  content: none;
  display: none;
}

#assessment .as-num {
  display: block;
  width: auto;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: "Pacifico", "Segoe Script", cursive;
  font-size: 46px;
  line-height: 1;
  color: var(--hp-orange);
  margin-bottom: 6px;
}

#assessment .as-step h3 {
  font-family: var(--hp-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--hp-navy);
  margin: 0;
}

#assessment .as-step p {
  font-family: var(--hp-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hp-ink);
  margin: 0;
}

/* ---------- closing banner ---------- */
#assessment .as-close {
  grid-area: close;
  margin: 0;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 5vw, 64px);
  border-radius: 32px;
  background: var(--hp-navy);
  color: var(--hp-cream);
  font-family: var(--hp-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.5;
  text-align: center;
  max-width: none;
  box-shadow: 0 24px 50px rgba(18, 41, 75, .22);
}

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  #assessment .stage {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "intro"
      "steps"
      "close";
  }
  #assessment .as-head {
    position: static;
    max-width: 640px;
  }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  #assessment .as-head .h2 {
    font-size: clamp(32px, 8.8vw, 42px);
  }
  #assessment .as-head .hp-script {
    font-size: 1.05em;
  }
  #assessment .as-head .copy-18 {
    font-size: 16px;
  }
  #assessment .as-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  #assessment .as-step {
    min-height: 0;
    padding: 22px 22px 24px;
    border-radius: 22px;
  }
  #assessment .as-num {
    font-size: 38px;
  }
  #assessment .as-close {
    border-radius: 24px;
  }
}
