/* ============================================================
   Nubi Education — Destination pages
   ============================================================ */

/* ---------- Page hero ---------- */
.dest-hero {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0 3.2rem;
  position: relative;
}
.dest-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #243b8a 100%);
  opacity: .95;
}
.dest-hero .container { position: relative; z-index: 1; }
.dest-hero h1 { color: #fff; max-width: 42rem; margin-bottom: .6rem; }
.dest-hero-sub {
  color: #d6dcf0;
  font-size: 1.12rem;
  max-width: 40rem;
  margin-bottom: 0;
  line-height: 1.65;
}
.dest-hero-meta {
  display: flex; gap: 2.2rem; flex-wrap: wrap;
  margin-top: 2.2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.18);
}
.dest-hero-stat { display: flex; flex-direction: column; }
.dest-hero-stat strong {
  font-family: var(--font-display);
  font-size: 1.7rem; color: #fff; line-height: 1;
}
.dest-hero-stat span { font-size: .82rem; color: #b0bdd8; margin-top: .3rem; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex; gap: .45rem; align-items: center;
  font-size: .86rem; margin-bottom: 1.4rem; color: #9aa7cf;
}
.breadcrumb a { color: #9aa7cf; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .5; }

/* ---------- Why section ---------- */
.dest-why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.dest-why-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.dest-why-copy h2 { margin-bottom: .6rem; }

.dest-facts { display: flex; flex-direction: column; gap: 1rem; }
.dest-fact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem 1rem;
  align-items: start;
}
.dest-fact-icon {
  grid-row: 1 / 3;
  color: var(--navy);
  line-height: 0;
  align-self: start;
  padding-top: .1rem;
}
.dest-fact-svg { width: 26px; height: 26px; }
.dest-fact strong {
  font-family: var(--font-display);
  font-size: .98rem;
  color: var(--navy);
  display: block;
  margin-bottom: .1rem;
}
.dest-fact p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.5; }

/* ---------- Institution filters ---------- */
.inst-toolbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}
.inst-filter {
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  padding: .5rem 1.05rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, color .12s ease;
  white-space: nowrap;
}
.inst-filter:hover { border-color: var(--navy); }
.inst-filter.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.inst-count {
  font-size: .88rem;
  color: var(--muted);
  margin-left: auto;
  white-space: nowrap;
}

/* ---------- Institution grid ---------- */
.inst-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

/* ---------- Institution card ---------- */
.inst-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.inst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 40px -22px rgba(22,38,92,.3);
}

.inst-logo-wrap {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.inst-logo-wrap img {
  max-height: 54px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.inst-body {
  padding: 1rem 1.15rem 1.3rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.inst-type {
  display: inline-block;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--navy-soft);
  border-radius: 4px;
  padding: .18rem .5rem;
  margin-bottom: .6rem;
  align-self: flex-start;
}

.inst-name {
  font-size: .98rem;
  margin-bottom: .2rem;
  color: var(--navy);
  line-height: 1.3;
}

.inst-location {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: .7rem;
}

.inst-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
  margin-bottom: .8rem;
}

.inst-fact {
  font-size: .82rem;
  color: var(--navy);
  background: var(--navy-soft);
  border-radius: 6px;
  padding: .6rem .75rem;
  line-height: 1.45;
  margin-top: auto;
}

/* ---------- Filter hide override ---------- */
/* CSS display:flex on .inst-card would win over the hidden attribute without this */
.inst-card[hidden] { display: none !important; }

/* ---------- Empty state ---------- */
.inst-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  display: none;
}
.inst-empty.visible { display: block; }

/* ---------- Destination CTA band ---------- */
.dest-cta {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0;
}
.dest-cta h2 { color: #fff; }
.dest-cta p { color: #d6dcf0; max-width: 32rem; }
.dest-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .dest-why { grid-template-columns: 1fr; gap: 2rem; }
  .inst-grid { grid-template-columns: repeat(2, 1fr); }
  .dest-cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .inst-grid { grid-template-columns: 1fr; }
  .dest-hero-meta { gap: 1.3rem; }
  .dest-hero { padding: 2.8rem 0 2.2rem; }
  .inst-toolbar { gap: .45rem; }
  .inst-filter { font-size: .82rem; padding: .42rem .8rem; }
  .inst-count { display: none; }
}
