.inst-page { font-family: var(--font); color: var(--body); background: var(--white); }

/* Hero lives in InstitutionHero.tsx — shared with the homepage. */

/* ── CHALLENGES ── */
.inst-challenges { padding: 92px 0; background: var(--white); }
.inst-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: start; }
.inst-block { display: flex; flex-direction: column; border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 16px; background: var(--white); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.inst-block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.inst-block-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: color-mix(in oklab, var(--accent) 14%, transparent); flex-shrink: 0; }
.inst-block-head h3 { font-size: 19px; font-weight: 700; color: var(--dark); line-height: 1.2; }
.inst-block-note { font-size: 12.5px; color: var(--muted); }
.inst-checks { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 4px; }
.inst-check { display: flex; align-items: flex-start; gap: 11px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.inst-check:hover { background: var(--bg); }
.inst-check input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
.inst-check-box { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.8px solid var(--border); background: var(--white); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: transparent; transition: background .15s, border-color .15s, color .15s; margin-top: 1px; }
.inst-check input:focus-visible + .inst-check-box { outline: 3px solid var(--accent); outline-offset: 3px; }
.inst-check.on .inst-check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.inst-check-text { font-size: 14px; color: var(--body); line-height: 1.45; }
.inst-check.on .inst-check-text { color: var(--dark); font-weight: 500; }
.inst-block-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.inst-count { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); padding: 4px 12px; border-radius: 999px; }
.inst-block-btn { width: 100%; padding: 13px 16px; border-radius: 12px; border: none; background: var(--accent); color: #fff; font-family: var(--font); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: transform .15s, filter .15s, box-shadow .15s; }
.inst-block-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 26px color-mix(in oklab, var(--accent) 40%, transparent); }
.inst-block-btn.active { box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent); }
/* Greyed-out until at least one challenge in the card is selected */
.inst-block-btn:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }
.inst-block-btn:disabled:hover { transform: none; filter: none; box-shadow: none; }

/* ── SOLUTION ── */
.inst-solution { padding: 20px 0 40px; background: var(--bg); animation: instFade .5s ease; }
.inst-sol { background: var(--white); border: 1px solid var(--border); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); margin-top: 40px; }
.inst-sol-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.inst-sol-title { font-size: clamp(24px, 3.4vw, 38px); font-weight: 700; color: var(--dark); line-height: 1.15; scroll-margin-top: 96px; }
.inst-sol-sub { font-size: 16px; color: var(--muted); margin: 8px 0 32px; }

.cmp { position: relative; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.cmp-col { padding: 28px 30px; }
.cmp-without { background: var(--legacy-bg, #fdf8f8); border-right: 1px solid var(--border); }
.cmp-with { background: var(--blue-light); }
.cmp-head { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 700; color: var(--dark); margin-bottom: 22px; }
.cmp-head-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.cmp-head-icon.on { background: var(--blue); border-color: var(--blue); }
.cmp-row { display: flex; align-items: flex-start; gap: 13px; padding: 11px 0; }
.cmp-mark { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; margin-top: 1px; }
.cmp-mark.x { background: #e5695f; }
.cmp-mark.check { background: var(--green); }
.cmp-row strong { display: block; font-size: 15px; font-weight: 600; color: var(--dark); margin-bottom: 2px; }
.cmp-row span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cmp-vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: var(--muted); }

.inst-benefits { display: grid; grid-template-columns: 1.2fr repeat(4, 1fr); gap: 8px; align-items: center; margin-top: 24px; padding: 26px 32px; border-radius: 16px; background: #0e2a44; }
[data-theme="dark"] .inst-benefits { background: #0a1a2c; }
.inst-benefits-label { display: flex; flex-direction: column; border-right: 1px solid rgba(255,255,255,.15); padding-right: 16px; }
.inst-benefits-label span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #f5b829; }
.inst-benefits-label strong { font-size: 24px; font-weight: 700; color: #fff; }
.inst-benefit { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13.5px; font-weight: 600; color: #eaf1ff; }
.inst-benefit-icon { font-size: 22px; }

/* ── ACADEMICS CARDS ── */
.inst-acad-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.inst-acad-card { border: 1px solid var(--border); border-left: 5px solid var(--accent); border-radius: 14px; padding: 26px 28px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.inst-acad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.inst-acad-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.inst-acad-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 23px; background: color-mix(in oklab, var(--accent) 15%, transparent); }
.inst-acad-head h4 { font-size: 18px; font-weight: 700; color: var(--dark); }
.inst-acad-sub { font-size: 14.5px; color: var(--body); line-height: 1.55; margin-bottom: 14px; }
.inst-acad-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.inst-acad-bullets li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.inst-acad-bullets li::before { content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.inst-acad-line { text-align: center; font-size: 18px; font-weight: 600; color: var(--dark); margin-top: 28px; }
.inst-acad-line em { font-style: normal; color: var(--blue); }

.inst-sol-switch { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.inst-sol-switch span { font-size: 14px; color: var(--muted); font-weight: 600; }
.inst-sol-switch button { font-family: var(--font); font-size: 14px; font-weight: 600; color: var(--blue); background: var(--white); border: 1.5px solid var(--border); border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.inst-sol-switch button:hover { border-color: var(--blue); background: var(--blue-light); }

/* ── DEMO FORM ── */
.inst-demo { padding: 92px 0; background: var(--bg); border-top: 1px solid var(--border); }
.inst-demo-wrap { max-width: 660px; margin: 40px auto 0; }

/* ── FINAL CTA ── */
.inst-cta { background: #0c152d; color: #fff; text-align: center; padding: 96px 0; }
[data-theme="dark"] .inst-cta { background: #020510; }
.inst-cta h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: #fff; margin-bottom: 16px; }
.inst-cta p { font-size: 18px; color: #6A8A9E; max-width: 540px; margin: 0 auto 36px; line-height: 1.65; }
.inst-cta-btns { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

@keyframes instFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .inst-blocks { grid-template-columns: 1fr; }
  .inst-acad-grid { grid-template-columns: 1fr; }
  .cmp { grid-template-columns: 1fr; }
  .cmp-without { border-right: none; border-bottom: 1px solid var(--border); }
  .cmp-vs { display: none; }
  .inst-benefits { grid-template-columns: 1fr 1fr; gap: 20px 8px; }
  .inst-benefits-label { grid-column: 1 / -1; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); padding: 0 0 14px; text-align: center; align-items: center; }
  .inst-sol { padding: 28px 20px; }
}
@media (max-width: 560px) {
  .inst-benefits { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .inst-solution { animation: none !important; }
}
