/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Institutions Listing — unified homepage design language
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

.hp-institutions {
  position: relative;
  background: var(--cream2, #F6F1E4);
  padding: 36px 0 48px;
  isolation: isolate;
}

.hp-institutions--standalone {
  padding-top: calc(var(--site-header-height, 72px) + 36px) !important;
}
@media (max-width: 640px) {
  .hp-institutions--standalone {
    padding-top: calc(var(--site-header-height, 64px) + 24px) !important;
  }
}

/* ── Header ──────────────────────────────────────────────────── */
.hp-inst-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--site-gutter, 24px);
  margin-bottom: 40px;
}

.hp-inst-header__left { max-width: 600px; }

.hp-inst-eyebrow-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #074635;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.hp-inst-star-mark {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.hp-inst-star-mark path {
  fill: #fff;
}

.hp-inst-eyebrow {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
}

.hp-inst-eyebrow-line {
  display: none;
}

.hp-inst-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: #074635;
  margin: 0 0 10px;
}

.hp-inst-headline em {
  font-style: italic;
  color: #b8860b;
}

.hp-inst-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
  margin: 0;
}

.hp-inst-header__right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.hp-inst-stats-inline {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hp-inst-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hp-inst-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 700;
  color: #074635;
  line-height: 1;
}

.hp-inst-stat-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9ca3af;
}

.hp-inst-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(7,70,53,.12);
}

/* ── Grid ────────────────────────────────────────────────────── */
.hp-inst-grid-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--site-gutter, 24px);
}

.hp-inst-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.hp-inst-empty {
    max-width: 1240px;
    margin: 0 auto;
    padding: 60px var(--site-gutter, 24px);
  text-align: center;
}

.hp-inst-empty p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #9ca3af;
}

/* ── Card ────────────────────────────────────────────────────── */
.hp-inst-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #074635;
  transition: transform .3s ease, box-shadow .3s ease;
  box-shadow: 0 2px 10px rgba(7,70,53,.04);
}

.hp-inst-card:nth-child(even) {
  border-left-color: #b8860b;
}

.hp-inst-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(7,70,53,.1);
}

/* ── Card photo ──────────────────────────────────────────────── */
.hp-inst-card__photo {
  height: 160px;
  overflow: hidden;
}

.hp-inst-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.hp-inst-card:hover .hp-inst-card__photo img {
  transform: scale(1.05);
}

/* ── Card top ────────────────────────────────────────────────── */
.hp-inst-card__top {
  padding: 20px 20px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.hp-inst-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'DM Sans', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: #074635;
  padding: 3px 8px;
  border-radius: 4px;
}

.hp-inst-card:nth-child(even) .hp-inst-card__tag {
  background: #b8860b;
}

.hp-inst-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 700;
  color: rgba(7,70,53,.06);
  line-height: 1;
}

.hp-inst-card:nth-child(even) .hp-inst-card__num {
  color: rgba(184,134,11,.06);
}

/* ── Card body ───────────────────────────────────────────────── */
.hp-inst-card__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.hp-inst-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #074635;
  margin: 0;
}

.hp-inst-card__tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  font-style: italic;
  color: #b8860b;
  margin: 0;
}

.hp-inst-card__desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  line-height: 1.55;
  color: #9ca3af;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Card footer ─────────────────────────────────────────────── */
.hp-inst-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid #f3f4f6;
}

.hp-inst-card__stats {
  display: flex;
  gap: 12px;
}

.hp-inst-card__stat {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  color: #9ca3af;
}

.hp-inst-card__stat strong {
  font-weight: 700;
  color: #074635;
}

.hp-inst-card:nth-child(even) .hp-inst-card__stat strong {
  color: #b8860b;
}

.hp-inst-card__arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f5f5f5;
  display: grid;
  place-items: center;
  color: #9ca3af;
  font-size: 11px;
  transition: all .3s ease;
}

.hp-inst-card:hover .hp-inst-card__arrow {
  background: #074635;
  color: #fff;
}

.hp-inst-card:nth-child(even):hover .hp-inst-card__arrow {
  background: #b8860b;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hp-inst-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .hp-inst-header {
    grid-template-columns: 1fr;
  }

  .hp-inst-header__right {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hp-inst-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hp-institutions { padding: 36px 0 36px; }

  .hp-inst-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}
