.counselling-shell {
  width: min(calc(100% - 48px), var(--content-width));
  margin-inline: auto;
}

.counselling-eyebrow {
  margin: 0 0 18px;
  color: var(--color-emerald);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.counselling-hero {
  position: relative;
  min-height: 710px;
  padding-block: 115px 90px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(13 79 145 / 4%) 1px, transparent 1px),
    linear-gradient(rgb(13 79 145 / 4%) 1px, transparent 1px),
    radial-gradient(circle at 85% 30%, rgb(20 184 166 / 10%), transparent 34%),
    var(--color-white);
  background-size: 52px 52px, 52px 52px, auto, auto;
}

.counselling-hero__grid {
  display: grid;
  min-height: 500px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: clamp(60px, 9vw, 135px);
}

.counselling-hero h1,
.counselling-heading h2,
.college-explorer h2,
.fee-sources h2,
.counselling-cta h2 {
  margin: 0;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.counselling-hero h1 {
  max-width: 760px;
  font-size: clamp(3.5rem, 5.5vw, 6.15rem);
}

.counselling-hero h1 span,
.counselling-heading h2 span,
.fee-sources h2 span,
.counselling-cta h2 span {
  color: var(--color-primary);
}

.counselling-hero__content > p:not(.counselling-eyebrow) {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: 1rem;
  line-height: 1.75;
}

.counselling-hero__actions {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 12px;
}

.counselling-button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.counselling-button:hover {
  transform: translateY(-3px);
}

.counselling-button--primary {
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 12px 25px rgb(13 79 145 / 18%);
}

.counselling-button--secondary {
  border-color: rgb(13 79 145 / 16%);
  color: var(--color-primary);
  background: var(--color-white);
}

.counselling-hero__visual {
  position: relative;
  display: grid;
  min-height: 500px;
  place-items: center;
}

.decision-map {
  position: relative;
  width: min(100%, 470px);
  aspect-ratio: 1;
  border: 1px solid rgb(13 79 145 / 13%);
  border-radius: 50%;
  animation: map-breathe 6s ease-in-out infinite;
}

.decision-map::before,
.decision-map::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.decision-map::before {
  inset: 15%;
  border: 1px dashed rgb(20 184 166 / 28%);
  animation: map-rotate 24s linear infinite;
}

.decision-map::after {
  inset: 31%;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 28px 65px rgb(11 29 58 / 10%);
}

.decision-map__core {
  position: absolute;
  z-index: 2;
  inset: 34%;
  display: grid;
  place-content: center;
  text-align: center;
}

.decision-map__core span {
  color: var(--color-emerald);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.decision-map__core strong {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.7rem;
}

.decision-map__node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 82px;
  height: 82px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgb(13 79 145 / 10%);
  border-radius: 18px;
  color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 16px 35px rgb(11 29 58 / 9%);
  text-align: center;
  animation: node-float 4s ease-in-out infinite;
}

.decision-map__node svg {
  width: 23px;
  margin-inline: auto;
}

.decision-map__node span {
  color: var(--color-navy);
  font-size: 0.64rem;
  font-weight: 700;
}

.decision-map__node--rank { top: -4%; left: 40%; }
.decision-map__node--budget { top: 40%; right: -4%; animation-delay: -1s; }
.decision-map__node--quota { right: 39%; bottom: -4%; animation-delay: -2s; }
.decision-map__node--state { top: 40%; left: -4%; animation-delay: -3s; }

.fee-guide,
.college-explorer,
.fee-sources {
  padding-block: clamp(80px, 10vw, 135px);
}

.fee-guide {
  background: var(--color-gray);
}

.counselling-heading {
  display: grid;
  margin-bottom: 48px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: clamp(45px, 8vw, 120px);
}

.counselling-heading h2,
.fee-sources h2 {
  font-size: clamp(2.5rem, 4.2vw, 4.4rem);
}

.counselling-heading > p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.75;
}

.fee-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgb(13 79 145 / 12%);
}

.fee-guide__grid article {
  min-height: 260px;
  padding: 32px;
  background: var(--color-white);
}

.fee-guide__grid span {
  color: var(--color-emerald);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fee-guide__grid strong {
  display: block;
  margin: 54px 0 16px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.65rem;
}

.fee-guide__grid p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.65;
}

.college-explorer {
  background: var(--color-white);
}

.college-explorer__top {
  display: flex;
  margin-bottom: 40px;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.college-explorer h2 {
  font-size: clamp(2.6rem, 4vw, 4.3rem);
}

.college-count {
  display: grid;
  text-align: right;
}

.college-count strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.college-count span {
  font-size: 0.68rem;
}

.college-filters {
  display: grid;
  margin-bottom: 38px;
  padding: 20px;
  align-items: end;
  border: 1px solid rgb(13 79 145 / 10%);
  border-radius: 10px;
  background: #f8fafb;
  grid-template-columns: minmax(260px, 1.7fr) repeat(3, minmax(145px, 0.7fr)) auto;
  gap: 12px;
}

.college-filters label {
  display: grid;
  gap: 8px;
  color: var(--color-primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.college-filters input,
.college-filters select,
.college-filters button {
  width: 100%;
  height: 48px;
  border: 1px solid rgb(13 79 145 / 13%);
  border-radius: 6px;
  outline: none;
  color: var(--color-text);
  background: var(--color-white);
  font-size: 0.75rem;
  text-transform: none;
}

.college-filters input:focus,
.college-filters select:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgb(20 184 166 / 12%);
}

.college-filters select {
  padding-inline: 12px;
}

.search-field {
  position: relative;
  align-self: end;
}

.search-field svg {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  width: 20px;
  color: var(--color-primary);
}

.search-field input {
  padding: 0 14px 0 43px;
}

.college-filters button {
  width: auto;
  padding-inline: 16px;
  cursor: pointer;
  color: var(--color-primary);
  font-weight: 700;
}

.college-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
}

.college-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.college-card {
  display: flex;
  min-height: 425px;
  padding: 24px;
  flex-direction: column;
  border: 1px solid rgb(13 79 145 / 11%);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: 0 10px 30px rgb(11 29 58 / 4%);
  transition: transform 220ms ease, box-shadow 220ms ease;
  animation: college-card-enter 460ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-index, 0) * 45ms);
}

.college-card:hover {
  box-shadow: 0 18px 42px rgb(11 29 58 / 9%);
  transform: translateY(-5px);
}

.college-card--featured {
  position: relative;
  overflow: hidden;
  border-color: rgb(13 79 145 / 22%);
  box-shadow: inset 0 3px 0 var(--color-gold), 0 12px 32px rgb(11 29 58 / 6%);
}

.college-card--featured::after {
  position: absolute;
  top: 0;
  left: -80%;
  width: 42%;
  height: 3px;
  content: "";
  background: var(--color-teal);
  transition: left 420ms ease;
}

.college-card--featured:hover::after {
  left: 100%;
}

.college-card--featured .college-card__icon {
  background: rgb(20 184 166 / 6%);
  transition: color 220ms ease, background 220ms ease, transform 260ms ease;
}

.college-card--featured:hover .college-card__icon {
  color: var(--color-primary);
  background: rgb(13 79 145 / 8%);
  transform: translateY(-3px) rotate(-4deg);
}

.college-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.college-card__top > span {
  color: rgb(72 86 99 / 70%);
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.college-card__type {
  padding: 5px 7px;
  border-radius: 4px;
}

.college-card__type--government { color: var(--color-primary) !important; background: rgb(13 79 145 / 8%); }
.college-card__type--private { color: var(--color-emerald) !important; background: rgb(5 150 105 / 8%); }
.college-card__type--deemed { color: #866a13 !important; background: rgb(212 175 55 / 12%); }

.college-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 28px 0 20px;
  place-items: center;
  border: 1px solid rgb(20 184 166 / 18%);
  border-radius: 50%;
  color: var(--color-teal);
}

.college-card__icon svg {
  width: 24px;
}

.college-card h3 {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.2;
}

.college-card__location {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
}

.college-card__location svg {
  width: 15px;
  color: var(--color-emerald);
}

.college-card__fee {
  display: grid;
  margin-top: auto;
  padding: 18px 0;
  gap: 4px;
  border-top: 1px solid rgb(13 79 145 / 9%);
}

.college-card__fee span,
.college-card__fee small {
  font-size: 0.58rem;
}

.college-card__fee strong {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.25rem;
}


.college-card__source {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 4px;
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.college-card__source:hover,
.college-card__source:focus-visible {
  color: var(--color-emerald);
  text-decoration: underline;
}
.college-card > button {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgb(13 79 145 / 15%);
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-primary);
  background: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
}

.college-card > button svg {
  width: 16px;
}

.college-card > button.is-saved {
  border-color: var(--color-emerald);
  color: var(--color-white);
  background: var(--color-emerald);
}

.college-card > button.is-saved svg {
  transform: rotate(45deg);
}

.college-card > button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@keyframes college-card-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.load-more {
  display: block;
  min-height: 48px;
  margin: 28px auto 0;
  padding: 0 22px;
  border: 1px solid rgb(13 79 145 / 16%);
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-primary);
  background: var(--color-white);
  font-weight: 700;
}

.college-empty {
  padding: 70px 25px;
  border: 1px dashed rgb(13 79 145 / 20%);
  text-align: center;
}

.college-empty h3 {
  color: var(--color-navy);
  font-family: var(--font-heading);
}

.shortlist-panel {
  position: sticky;
  top: 98px;
  padding: 26px;
  border-top: 3px solid var(--color-teal);
  color: rgb(255 255 255 / 68%);
  background: var(--color-navy);
  box-shadow: 0 20px 50px rgb(11 29 58 / 15%);
}

.shortlist-panel__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.shortlist-panel__header span {
  color: var(--color-teal);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shortlist-panel h2 {
  margin: 4px 0 0;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.75rem;
}

.shortlist-panel__header > strong {
  color: var(--color-gold);
  font-family: var(--font-heading);
}

.shortlist-panel > p {
  margin: 18px 0 22px;
  font-size: 0.7rem;
  line-height: 1.6;
}

.shortlist-panel__items {
  display: grid;
  gap: 8px;
}

.shortlist-panel__items article {
  display: grid;
  padding: 13px;
  align-items: center;
  border: 1px solid rgb(255 255 255 / 10%);
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.shortlist-panel__items article div {
  display: grid;
  gap: 4px;
}

.shortlist-panel__items strong {
  color: var(--color-white);
  font-size: 0.67rem;
  line-height: 1.35;
}

.shortlist-panel__items span {
  font-size: 0.56rem;
}

.shortlist-panel__items button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  cursor: pointer;
  color: var(--color-teal);
  background: transparent;
}

.shortlist-panel__items svg {
  width: 16px;
}

.shortlist-panel__empty {
  padding: 28px 12px;
  border: 1px dashed rgb(255 255 255 / 15%);
  font-size: 0.65rem;
  line-height: 1.5;
  text-align: center;
}

.shortlist-panel > a {
  display: flex;
  min-height: 45px;
  margin-top: 20px;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  background: var(--color-teal);
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
}

.fee-sources {
  background: var(--color-gray);
}

.fee-sources__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(60px, 10vw, 150px);
}

.fee-sources__grid > div:last-child > p {
  margin: 0;
  line-height: 1.8;
}

.fee-sources__links {
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fee-sources__links a {
  padding: 14px;
  border: 1px solid rgb(13 79 145 / 13%);
  color: var(--color-primary);
  background: var(--color-white);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
}

.counselling-cta {
  padding-block: clamp(90px, 11vw, 150px);
  color: rgb(255 255 255 / 70%);
  background: var(--color-primary);
  text-align: center;
}

.counselling-cta .counselling-eyebrow {
  color: var(--color-gold);
}

.counselling-cta h2 {
  color: var(--color-white);
  font-size: clamp(2.8rem, 5vw, 5.2rem);
}

.counselling-cta h2 span {
  color: var(--color-teal);
}

.counselling-cta p:not(.counselling-eyebrow) {
  max-width: 680px;
  margin: 25px auto 34px;
  line-height: 1.75;
}

.counselling-button--light {
  color: var(--color-primary);
  background: var(--color-white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes map-rotate {
  to { transform: rotate(360deg); }
}

@keyframes map-breathe {
  50% { transform: scale(1.015); }
}

@keyframes node-float {
  50% { transform: translateY(-7px); }
}

@media (max-width: 1120px) {
  .college-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .college-filters button {
    width: 100%;
  }

  .college-layout {
    grid-template-columns: 1fr;
  }

  .shortlist-panel {
    position: static;
  }
}

@media (max-width: 900px) {
  .counselling-hero__grid,
  .counselling-heading,
  .fee-sources__grid {
    grid-template-columns: 1fr;
  }

  .counselling-hero__visual {
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .fee-guide__grid,
  .college-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .counselling-shell {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .counselling-hero {
    min-height: auto;
    padding-block: 72px 65px;
  }

  .counselling-hero h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .counselling-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .counselling-hero__visual {
    min-height: 390px;
  }

  .decision-map__node {
    width: 68px;
    height: 68px;
  }

  .fee-guide__grid,
  .college-grid,
  .college-filters,
  .fee-sources__links {
    grid-template-columns: 1fr;
  }

  .fee-guide__grid article {
    min-height: 220px;
  }

  .college-explorer__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .college-count {
    text-align: left;
  }

  .college-card {
    min-height: 390px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .decision-map,
  .decision-map::before,
  .decision-map__node {
    animation: none;
  }

  .counselling-button,
  .college-card {
    animation: none;
    transition: none;
  }

  .college-card--featured::after,
  .college-card--featured .college-card__icon {
    transition: none;
  }
}
