/* ============================================================
   PROGRAMS PAGE STYLES — programs.css
   ============================================================ */

/* ─────────────────────────────────────────
   INSTITUTIONS SHOWCASE
───────────────────────────────────────── */
.institutions-showcase { background: var(--white); }

.institutions-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.institution-showcase-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
  transition: all var(--transition);
}
.institution-showcase-card:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.inst-logo-wrap {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
}
.inst-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}
.inst-logo-placeholder {
  font-size: 32px;
  line-height: 1;
}

.institution-showcase-card h3 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 6px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.institution-showcase-card .inst-abbr {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.institution-showcase-card .inst-description {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.inst-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.inst-meta span {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.inst-meta i { color: var(--green-primary); }

/* ─────────────────────────────────────────
   172 SECTORS
───────────────────────────────────────── */
.sectors-section { background: var(--navy); }

.sectors-clusters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.cluster-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.cluster-card:hover {
  background: rgba(42, 159, 87, 0.12);
  border-color: rgba(42, 159, 87, 0.35);
}

.cluster-icon {
  font-size: 40px;
  color: var(--green-mid);
  margin-bottom: 12px;
  display: block;
}
.cluster-card h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 10px;
}
.cluster-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.cluster-count {
  display: inline-block;
  background: rgba(42, 159, 87, 0.2);
  color: var(--green-mid);
  padding: 5px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

/* ─────────────────────────────────────────
   FEATURED PROGRAMS (LARGE CARDS)
───────────────────────────────────────── */
.featured-programs { background: var(--white); }

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.program-card-large {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.program-card-large:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.program-card-header {
  padding: 24px 20px;
  color: var(--white);
}
.program-card-header h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.35;
}
.program-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.program-card-content {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.program-card-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.program-stats {
  display: flex;
  gap: 16px;
}
.stat {
  flex: 1;
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.program-card-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
}

/* ─────────────────────────────────────────
   ALL PROGRAMS GRID (ITEMS)
───────────────────────────────────────── */
.programs-all-section { background: var(--surface); }

.program-item-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.program-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
}
.program-item:hover {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.program-item-img {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 12px;
  color: var(--white);
}
.program-item h4 {
  font-size: 13px;
  margin-bottom: 6px;
  line-height: 1.4;
}
.program-item p {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.program-item .badge {
  font-size: 10px;
}

/* ─────────────────────────────────────────
   FILTER BUTTONS
───────────────────────────────────────── */
.filter-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}
.filter-btn.active {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
}

/* ─────────────────────────────────────────
   RESPONSIVE — PROGRAMS
───────────────────────────────────────── */
@media (max-width: 1200px) {
  .institutions-showcase-grid { grid-template-columns: repeat(4, 1fr); }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .institutions-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .program-item-grid { grid-template-columns: repeat(3, 1fr); }
  .sectors-clusters { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .institutions-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .program-item-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors-clusters { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .institutions-showcase-grid { grid-template-columns: 1fr; }
  .program-item-grid { grid-template-columns: 1fr; }
}