/* ===== people.css ===== */

.people-section {
  padding: 50px 0;
}

.people-category {
  margin-bottom: 50px;
}

.category-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  border-bottom: 2px solid #FFC109;
  padding-bottom: 10px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.person-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease;
}

.person-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.person-card-link {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
.person-card-link .person-card {
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.person-card-link:hover .person-card {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.person-photo {
  text-align: center;
  margin-bottom: 15px;
}

.photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.person-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.person-title {
  font-size: 14px;
  color: #FFC109;
  font-weight: 500;
  margin-bottom: 10px;
}

/* links */
/* .person-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
} */

.person-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* 동그란 아이콘 버튼 */
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #555;
  font-size: 18px;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: #f5f5f5;
  border-color: #ccc;
  color: #000;
  transform: translateY(-1px);
}

/* 폰트 크기 보정 */
.icon-btn .ai,
.icon-btn .fa {
  line-height: 1;
  font-size: 22px;
}

.person-link {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.person-link:hover {
  background: #f5f5f5;
  color: #333;
}

/* JSON-based People header */
.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #FFC109;
  padding-bottom: 10px;
}

/* ==== Faculty single-card layout ==== */
.faculty-grid {
  display: grid;
  justify-content: flex-start;  /* 왼쪽 정렬 */
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

/* faculty 링크 전체 클릭 가능 + 폭 제한 */
.faculty-card-link {
  display: block;
  /* max-width: 340px; */   /* 3컬럼 중 한 칸 정도 폭 */
  width: 100%;
  text-decoration: none;
  color: inherit;
}

/* person-card와 거의 동일한 카드 스타일 */
.faculty-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.1s ease;
  cursor: pointer;
}

.faculty-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* 사진/텍스트 레이아웃은 기존 person-card와 동일하게 */
.faculty-card .person-photo {
  text-align: center;
  margin-bottom: 15px;
}

/* ==== Faculty photo (square with rounded corners) ==== */
.faculty-card .person-img {
  width: 140px;
  height: 140px;
  border-radius: 8px;   /* 약간 둥근 사각형 */
  object-fit: cover;
  background: #f0f0f0;
}

.faculty-card .person-name {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.faculty-card .person-title {
  font-size: 14px;
  color: #FFC109;
  font-weight: 500;
  margin-bottom: 10px;
}

.person-interests {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.interest-tag {
  background: #f0f0f0;
  color: #666;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.faculty-card .interest-tag {
  background: #ffe5dd;
  color: #FFC109;
}

.person-year {
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.person-affiliation {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.research-interests {
  font-size: 13px;
  margin-bottom: 13px;
}

.research-interests strong {
  font-size: 13px;
  color: #333;
}

.research-interests p {
  font-size: 13px;
  color: #666;
  margin-top: 3px;
}

.person-email {
  color: #007bff;
  font-size: 13px;
  margin-bottom: 10px;
}

.person-email a {
  color: #007bff;
  text-decoration: none;
}

.person-email a:hover {
  text-decoration: underline;
}

.next-position {
  font-size: 14px;
  color: #666;
  line-height: 1.4;
  margin-bottom: 10px;
}

.graduation-info {
  font-size: 13px;
  color: #888;
}

/* Alumni cards */
.alumni-card {
  border-left: 3px solid #FFC109;
  padding: 15px;
  background: #fafafa;
  border-radius: 6px;
  transition: all 0.2s ease;
  border: 1px solid #e8e8e8;
}

.alumni-card:hover {
  background: #f5f5f5;
  border-color: #ddd;
  transform: translateY(-1px);
}

/* Compact Alumni Layout */
.alumni-card .person-info {
  margin: 0;
}

.alumni-card .person-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  line-height: 1.3;
}

.alumni-card .person-title {
  font-size: 13px;
  color: #FFC109;
  font-weight: 500;
  margin-bottom: 3px;
}

.alumni-card .person-email {
  font-size: 12px;
  margin-bottom: 6px;
}

.alumni-card .person-email a {
  color: #007bff;
  text-decoration: none;
  font-size: 11px;
}

.alumni-card .person-email a:hover {
  text-decoration: underline;
}

.alumni-card .next-position {
  font-size: 13px;
  color: #555;
  line-height: 1.3;
  margin-bottom: 6px;
}

.alumni-card .next-position strong {
  color: #333;
  font-weight: 600;
}

.alumni-card .graduation-info {
  font-size: 11px;
  color: #999;
  margin-bottom: 0;
}

/* Alumni grid */
.alumni-category .people-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Alumni controls */
.alumni-controls {
  background-color: #f8f9fa;
  padding: 30px 0;
  border-bottom: 1px solid #eee;
}

.controls-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-box {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.search-box input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
}

.search-box button,
.filter-controls button {
  padding: 10px 20px;
  background-color: #FFC109;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.search-box button:hover,
.filter-controls button:hover {
  background-color: #e55a2b;
}

.filter-controls {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-controls select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

#clear-filters {
  background-color: #6c757d;
}

#clear-filters:hover {
  background-color: #5a6268;
}

.alumni-section {
  padding: 50px 0;
}

.alumni-category {
  margin-bottom: 50px;
}

/* Legacy alumni list (호환용) */
.alumni-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
}

.alumni-item {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 6px;
  border-left: 3px solid #FFC109;
}

.alumni-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}
