/* ============================================================
   SCHOLARSHIP PATHS
   ============================================================ */

#scholarship-dual { position: relative; }

#scholarship-dual .section-head {
  max-width: 820px;
  margin: 0 auto 3rem;
}
#scholarship-dual .section-head p {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.7;
}

.scholarship-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 960px) {
  .scholarship-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.scholarship-path {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.scholarship-path::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--tone-color);
  transform: scaleX(.16);
  transform-origin: left;
  transition: transform .35s ease;
}
.scholarship-path:hover {
  transform: translateY(-6px);
  border-color: var(--tone-color);
  box-shadow: var(--shadow-lg);
}
.scholarship-path:hover::before { transform: scaleX(1); }

.path-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
.path-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--tone-color);
  background: var(--tone-tint);
  box-shadow: 0 6px 18px -8px var(--tone-color);
}
.path-icon svg { width: 28px; height: 28px; }
.scheme-tag {
  display: inline-flex;
  padding: .28rem .65rem;
  margin-bottom: .45rem;
  border-radius: 999px;
  background: var(--tone-tint);
  color: var(--tone-color);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .055em;
}
.scholarship-path h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1.28;
}
.path-lead {
  margin: 0 0 .75rem;
  color: var(--tone-color);
  font-size: .98rem;
  font-weight: 650;
  line-height: 1.55;
}
.path-desc {
  margin: 0 0 1.4rem;
  color: var(--slate);
  line-height: 1.7;
}

.scholarship-amount {
  margin-bottom: 1.5rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--tone-color);
  border-radius: var(--radius-sm);
  background: var(--tone-tint);
}
.amount-label {
  display: block;
  margin-bottom: .25rem;
  color: var(--slate);
  font-size: .74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.scholarship-amount strong {
  display: block;
  color: var(--tone-color);
  font-size: 1.7rem;
  line-height: 1.1;
}
.scholarship-amount small {
  display: block;
  margin-top: .35rem;
  color: var(--slate);
  line-height: 1.45;
}

.course-box {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card-alt);
}
.course-box > span {
  display: block;
  margin-bottom: .7rem;
  color: var(--slate);
  font-size: .78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.course-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.course-tags b {
  padding: .3rem .62rem;
  border: 1px solid var(--tone-color);
  border-radius: 999px;
  color: var(--ink);
  background: var(--tone-tint);
  font-size: .78rem;
  font-weight: 600;
}

.process-label {
  margin-bottom: .75rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.scholarship-flow {
  display: grid;
  gap: .9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.scholarship-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: .75rem;
  align-items: flex-start;
}
.step-number {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--tone-tint);
  color: var(--tone-color);
  font-size: .72rem;
  font-weight: 850;
}
.scholarship-flow h4 {
  margin: 0 0 .18rem;
  color: var(--ink);
  font-size: .95rem;
}
.scholarship-flow p {
  margin: 0;
  color: var(--slate);
  font-size: .87rem;
  line-height: 1.55;
}

.btn-scheme-card {
  width: 100%;
  margin-top: auto;
  justify-content: center;
  background: var(--tone-color);
  color: #fff;
  border-color: var(--tone-color);
}
.btn-scheme-card:hover { filter: brightness(.96); }
.path-note {
  display: flex;
  gap: .45rem;
  align-items: flex-start;
  margin: 1rem 0 0;
  color: var(--slate);
  font-size: .78rem;
  line-height: 1.55;
}
.path-note svg { flex: 0 0 auto; margin-top: .08rem; color: var(--tone-color); }

.scholarship-bottom-note {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--slate);
  line-height: 1.65;
}
.scholarship-bottom-note svg { flex: 0 0 auto; margin-top: .2rem; color: var(--blue); }

@media (max-width: 620px) {
  .scholarship-path { padding: 1.5rem 1.15rem; }
  .path-top { gap: .75rem; }
  .path-icon { width: 48px; height: 48px; flex-basis: 48px; border-radius: 14px; }
  .path-icon svg { width: 24px; height: 24px; }
  .scholarship-path h3 { font-size: 1.1rem; }
  .scholarship-amount strong { font-size: 1.45rem; }
}


/* ============================================================
   ENSE SCHOLARSHIP WAIVER TIERS
   Values are populated dynamically from the admin-managed JSON.
   ============================================================ */
.waiver-box {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 1.05rem;
  border: 1px solid color-mix(in srgb, var(--tone-color) 48%, var(--line-soft));
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--tone-tint), var(--card-alt));
}
.waiver-box-head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: .85rem;
}
.waiver-eyebrow {
  display: block;
  margin-bottom: .3rem;
  color: var(--tone-color);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .075em;
}
.waiver-box h4 {
  margin: 0;
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.4;
}
.waiver-max {
  flex: 0 0 auto;
  padding: .32rem .55rem;
  border-radius: 999px;
  background: var(--tone-color);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  white-space: nowrap;
}
.waiver-table-wrap { overflow-x: auto; }
.waiver-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .78rem;
}
.waiver-table th,
.waiver-table td {
  padding: .62rem .5rem;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}
.waiver-table th {
  color: var(--slate);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.waiver-table tbody tr:last-child td { border-bottom: 0; }
.waiver-table td:nth-child(2) { color: var(--slate); }
.waiver-table td:nth-child(3) strong { color: var(--tone-color); }
.grade-badge {
  display: inline-grid;
  min-width: 34px;
  padding: .28rem .45rem;
  place-items: center;
  border-radius: 8px;
  background: var(--tone-tint);
  color: var(--tone-color);
  font-size: .72rem;
  font-weight: 850;
}
.waiver-disclaimer {
  margin: .8rem 0 0;
  color: var(--slate);
  font-size: .72rem;
  line-height: 1.5;
}
@media (max-width: 620px) {
  .waiver-box { padding: .9rem; }
  .waiver-box-head { flex-direction: column; }
  .waiver-table { min-width: 520px; }
}


/* Critical icon sizing: svgIcon() outputs SVGs without intrinsic dimensions.
   Keep every scholarship icon explicitly sized so flex/grid cannot stretch it. */
.btn-scheme-card svg {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
  display: block;
}

.path-note svg {
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  display: block;
}

.scholarship-bottom-note svg {
  width: 20px !important;
  height: 20px !important;
  flex: 0 0 20px !important;
  display: block;
}

.path-icon svg {
  width: 28px !important;
  height: 28px !important;
  flex: 0 0 28px !important;
}

.btn-scheme-card {
  min-height: 48px;
  padding: .82rem 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}

@media (max-width: 620px) {
  .path-icon svg {
    width: 24px !important;
    height: 24px !important;
    flex-basis: 24px !important;
  }
}

.path-note a{color:var(--tone-color);text-decoration:underline;text-underline-offset:2px;font-weight:650}

/* ============================================================
   NEET / JEE SCHOLARSHIP SUPPORT
   ============================================================ */

.neet-support-section {
  margin: 0 0 1.5rem;
  padding: 1.1rem;
  border: 1px solid color-mix(
    in srgb,
    var(--tone-color) 35%,
    var(--line-soft)
  );
  border-radius: var(--radius-sm);
  background:
    linear-gradient(
      145deg,
      var(--tone-tint),
      var(--card-alt)
    );
}

.neet-support-heading {
  margin-bottom: 1rem;
}

.neet-support-heading span {
  display: block;
  margin-bottom: .35rem;
  color: var(--tone-color);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .075em;
}

.neet-support-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}


.neet-support-grid {
  display: grid;
  gap: .7rem;
}


.neet-support-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: .8rem;
  align-items: start;

  padding: .8rem;

  border: 1px solid var(--line-soft);
  border-radius: 12px;

  background: var(--card);

  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.neet-support-card:hover {
  transform: translateX(4px);

  border-color: var(--tone-color);

  box-shadow:
    0 10px 25px -18px
    var(--tone-color);
}


.neet-support-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  color: var(--tone-color);

  background: var(--tone-tint);
}

.neet-support-icon svg {
  width: 21px;
  height: 21px;
}


.neet-support-card h5 {
  margin: 0 0 .2rem;

  color: var(--ink);

  font-size: .88rem;
  font-weight: 800;
}

.neet-support-card p {
  margin: 0;

  color: var(--slate);

  font-size: .78rem;
  line-height: 1.5;
}


/* Already qualified highlight */

.neet-qualified-callout {
  display: grid;

  grid-template-columns: 38px 1fr;

  gap: .7rem;
  align-items: center;

  margin-top: 1rem;
  padding: .85rem .9rem;

  border-radius: 12px;

  border:
    1px solid
    color-mix(
      in srgb,
      var(--tone-color) 55%,
      var(--line-soft)
    );

  background:
    color-mix(
      in srgb,
      var(--tone-color) 10%,
      var(--card)
    );
}


.neet-qualified-icon {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  color: var(--tone-color);

  background: var(--tone-tint);
}

.neet-qualified-icon svg {
  width: 20px;
  height: 20px;
}


.neet-qualified-callout strong {
  display: block;

  margin-bottom: .18rem;

  color: var(--ink);

  font-size: .82rem;
}


.neet-qualified-callout span {
  display: block;

  color: var(--slate);

  font-size: .74rem;
  line-height: 1.5;
}


/* Mobile */

@media (max-width: 620px) {

  .neet-support-section {
    padding: .9rem;
  }

  .neet-support-card {
    grid-template-columns: 38px 1fr;

    padding: .7rem;
  }

  .neet-support-icon {
    width: 38px;
    height: 38px;
  }

  .neet-qualified-callout {
    grid-template-columns: 34px 1fr;
  }

  .neet-qualified-icon {
    width: 34px;
    height: 34px;
  }

}