/* =============================================
   연구인력 - DB 콘텐츠 스타일
   =============================================

   [영역 1] 섹션 타이틀
   [영역 2] 그룹 카드
   [영역 3] 인력 그리드
   [영역 4] 인력 카드 (개인 항목)
   [영역 5] 프로필 사진
   [영역 6] 인력 정보 (이름, 배지, 연락처, 연구주제)
   [반응형]  미디어 쿼리 (768px 이하 / 480px 이하)
   ============================================= */  


/* ───────────────────────────────────────────── 
   [영역 1] 섹션 타이틀
   ─────────────────────────────────────────────
   DB 본문 상단의 "G-LMAP 핵심 LAMP 전임교원" 등
   대제목 영역을 감싸는 둥근 테두리 박스
   ───────────────────────────────────────────── */
.ri-section-title {
  border: 2px solid rgb(15, 23, 41);
  margin-bottom: 2.5rem;
  border-radius: 9999px;
  padding: 0.75rem 2rem;
  text-align: center;
  color: rgb(15, 23, 41);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
}

.ri-section-title h2 {
  font-size: 1.5rem;
  margin: 0;
  line-height: 2rem;
}


/* ─────────────────────────────────────────────
   [영역 2] 그룹 카드
   ─────────────────────────────────────────────
   "총괄 A LAMP 전임교원", "총괄 B LAMP 전임교원" 등
   각 그룹을 구분하는 카드 컨테이너
   ───────────────────────────────────────────── */
.ri-group-card {
  border: 1px solid rgb(229, 231, 235);
  margin-bottom: 2rem;
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: rgb(15, 23, 41);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
}

.ri-group-card h3 {
  font-size: 1.25rem;
  margin: 0 0 1.5rem;
  text-align: center;
  line-height: 1.75rem;
}

/* 섹션 헤더 (참여교원용 h2+p 타이틀) */
.ri-section-header {
  margin-bottom: 2rem;
  color: rgb(15, 23, 41);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
}

.ri-section-header h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.ri-section-header p {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(107, 114, 128);
  margin: 0;
}

/* 그룹 헤더 행 (배지 + 인원수) */
.ri-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* 카테고리 배지 (색상은 인라인 style로 지정) */
.ri-group-badge {
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  color: #fff;
}

/* 인원수 */
.ri-group-count {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(107, 114, 128);
}


/* ─────────────────────────────────────────────
   [영역 3] 인력 그리드
   ─────────────────────────────────────────────
   개인 카드들을 2열로 배치하는 그리드 레이아웃
   ───────────────────────────────────────────── */
.ri-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}


/* ─────────────────────────────────────────────
   [영역 4] 인력 카드 (개인 항목)
   ─────────────────────────────────────────────
   사진 + 이름/연락처/연구주제를 가로로 배치하는
   개별 연구원 카드
   ───────────────────────────────────────────── */
.ri-person-card {
  border: 1px solid rgb(229, 231, 235);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 8px;
  padding: 1rem;
}


/* ─────────────────────────────────────────────
   [영역 5] 프로필 사진
   ─────────────────────────────────────────────
   원형으로 크롭된 프로필 이미지 영역
   ───────────────────────────────────────────── */
.ri-photo-wrap {
  display: flex;
  width: 5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background-color: rgb(243, 244, 246); 
}

.ri-photo-wrap img {
  display: block;
  height: 80px;
  width: 80px;
  object-fit: cover;
}

.ri-photo-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: rgb(100, 110, 125);
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────
   [영역 6] 인력 정보 (이름, 배지, 연락처, 연구주제)
   ─────────────────────────────────────────────
   사진 우측의 텍스트 정보 영역
   ───────────────────────────────────────────── */

/* 정보 영역 래퍼 */
.ri-info {
  min-width: 0;
  flex: 1 1 0%;
}

/* 이름 + 배지 행 */
.ri-name-row {
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 이름 텍스트 */
.ri-name {
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 700;
}

/* 번호 배지 (A-1, A-2 ...) */
.ri-badge {
  border: 1px solid rgb(229, 231, 235);
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
}

/* 전화번호 행 */
.ri-phone-row {
  margin-bottom: 0.125rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(107, 114, 128);
}

/* 이메일 행 */
.ri-email-row {
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(107, 114, 128);
}

/* 연구주제 */
.ri-research {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.375;
  color: rgb(107, 114, 128);
}


/* ─────────────────────────────────────────────
   [반응형] 태블릿 이하 (768px 이하)
   ─────────────────────────────────────────────
   - 그리드 2열 → 1열
   - 그룹 카드·섹션 타이틀 여백 축소
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ri-section-title {
    margin-bottom: 1.5rem;
    padding: 0.625rem 1.25rem;
  }

  .ri-section-title h2 {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .ri-group-card {
    padding: 1rem;
    margin-bottom: 1.25rem;
  }

  .ri-group-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .ri-grid {
    grid-template-columns: 1fr;
  }
}


/* ─────────────────────────────────────────────
   [반응형] 모바일 (480px 이하)
   ─────────────────────────────────────────────
   - 인력 카드 세로 정렬 (사진 위, 정보 아래)
   - 사진 가운데 정렬
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .ri-section-title {
    border-radius: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .ri-group-card {
    padding: 0.75rem;
  }

  .ri-person-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .ri-photo-wrap {
    width: 4rem;
  }

  .ri-photo-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .ri-name-row {
    justify-content: center;
  }

  .ri-phone-row,
  .ri-email-row {
    justify-content: center;
  }
}


/* =============================================
   인사말 - DB 콘텐츠 스타일
   =============================================

   [영역 1] 섹션 헤더 (제목)
   [영역 2] 2열 그리드 (프로필 | 텍스트)
   [영역 3] 프로필 사진 카드
   [영역 4] 인사말 텍스트
   ============================================= */


/* ─────────────────────────────────────────────
   [영역 1] 섹션 헤더
   ───────────────────────────────────────────── */
.ri-greeting-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  color: rgb(15, 23, 41);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
}

.ri-greeting-header h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  margin: 0;
}


/* ─────────────────────────────────────────────
   [영역 2] 2열 그리드
   ───────────────────────────────────────────── */
.ri-greeting-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 240px 1fr;
  color: rgb(15, 23, 41);
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 16px;
}


/* ─────────────────────────────────────────────
   [영역 3] 프로필 사진
   ───────────────────────────────────────────── */
.ri-greeting-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.ri-greeting-profile > div {
  width: 100%;
  text-align: center;
}

/* 사진: 컨테이너 폭 꽉 채우기, 원형 클립 제거 */
.ri-greeting-profile img {
  display: block;
  width: 100% !important;
  max-width: none !important;
  max-height: 340px;
  height: auto;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

/* 캡션 (직함 / 이름) */
.ri-greeting-position {
  display: block;
  margin-top: 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5rem;
  color: rgb(80, 90, 110);
}

.ri-greeting-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  color: rgb(15, 23, 41);
  margin-top: 0.125rem;
}


/* ─────────────────────────────────────────────
   [영역 4] 인사말 텍스트
   ───────────────────────────────────────────── */
.ri-greeting-text {
  line-height: 1.8;
  color: rgba(15, 23, 41, 0.9);
  font-size: 1rem;
}

.ri-greeting-text p {
  margin: 1.375rem 0 0;
}

.ri-greeting-text p:first-child {
  margin-top: 0;
}

/* 첫 문장: 오른쪽 강조 바 */
.ri-greeting-intro {
  display: block;
  font-size: 1.14rem;
  line-height: 1.7;
  font-weight: 600;
  color: #5E1120;
  border-left: 4px solid #5E1120;
  padding: 0.75rem 1rem;
}

/* 감사합니다 */
.ri-greeting-thanks {
  padding-top: 1.25rem;
  font-weight: 700;
}

/* 서명 */
.ri-greeting-signature {
  font-weight: 700;
  color: rgb(15, 23, 41);
}


/* ─────────────────────────────────────────────
   [반응형] 인사말 - 태블릿 이하 (768px 이하)
   ─────────────────────────────────────────────
   - 2열 → 1열 (사진 위, 텍스트 아래)
   - 사진 카드 가로 고정 해제
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .ri-greeting-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ri-greeting-profile img {
    max-width: 320px !important;
    margin: 0 auto;
  }

  /* 논문 반응형 */
  .cont-item{
    width:100% !important;
  }
}


/* ─────────────────────────────────────────────
   [반응형] 인사말 - 모바일 (480px 이하)
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .ri-greeting-profile img {
    max-width: 240px !important;
  }
}


.bbs-top_etc_w {
  display:none;
}


/* 카카오맵 타일 이미지 정규화 방지 */
#map img {
  max-width: none !important;
  height: initial !important;
}