:root {
  /* Colors */
  --brand: #26549c;
  --text: #2b2b2b;
  --muted: #efefef;
  --dark: #2b2b2b;

  /* Layout */
  --container: 1440px;

  /* Spacing Scale */
  --space-xs: 0.25rem;
  /* 4px */
  --space-sm: 0.5rem;
  /* 8px */
  --space-md: 1rem;
  /* 16px */
  --space-lg: 1.5rem;
  /* 24px */
  --space-xl: 2.5rem;
  /* 40px */
  --space-2xl: 3.75rem;
  /* 60px */

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans KR", sans-serif;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Base size for rem */
  height: 100%;
  overflow-x: hidden;
  /* Prevent horizontal scroll */
}

body {
  margin: 0;
  font-family: var(--font-family);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: var(--line-height-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  word-break: keep-all;
  /* Better Korean text handling */
}

/* Global Reset & Safety */
img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: var(--line-height-tight);
  margin-top: 0;
  word-break: keep-all;
}

p {
  margin-top: 0;
}

/* ===== Text Truncation Utilities ===== */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Layout Safety Utilities ===== */
.flex-shrink-0 {
  flex-shrink: 0;
}

.min-w-0 {
  min-width: 0;
}

.overflow-hidden {
  overflow: hidden;
}

/* layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 60px;
  /* 기존 디자인 여백 반영 */
}

/* Header */
.header {
  background: #fff;
  border-bottom: 1px solid #f4f4f4;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 6.25rem;
  /* 100px */
  gap: 1.5rem;
  /* 24px */
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  min-width: 0;
  /* Prevent overflow */
}

.brand__logo {
  width: 6.625rem;
  height: auto;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  /* Allow text truncation if needed */
}

.brand__title {
  color: var(--brand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: var(--line-height-tight);
  white-space: nowrap;
}

/* 24px */
.brand__subtitle {
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.9;
}

/* 12px */

.nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 1rem;
  line-height: var(--line-height-normal);
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.nav__link:hover {
  opacity: 0.8;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  /* 10px */
  flex-shrink: 0;
}

.header__auth {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.header__auth:hover {
  text-decoration: underline;
}

.header__sep {
  color: var(--brand);
  opacity: .6;
}

.lab-mark {
  margin-left: 0.75rem;
  width: 6.25rem;
  height: 6.25rem;
  display: grid;
  place-items: center;
  background: var(--brand);
  text-decoration: none;
  flex-shrink: 0;
}

.lab-mark img {
  width: 3.25rem;
  height: auto;
}

/* 52px */

/* Hero */
.hero {
  position: relative;
  min-height: 32.5rem;
  /* 520px */
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

/* 배너 이미지 */
.hero--banner {
  background-image: url(".././images/banner.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* 어두운 오버레이 (글자 가독성용) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(0, 0, 0, 0.55) 0%,
      rgba(0, 0, 0, 0.25) 30%,
      rgba(0, 0, 0, 0.05) 50%);
  z-index: 1;
}

.hero__inner {
  min-height: 39.625rem;
  /* 634px */
  padding: 3.75rem 3.75rem;
  /* 60px */
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.75rem;
  /* 60px */
  position: relative;
  z-index: 2;
}

.hero__line {
  display: block;
  width: 8rem;
  height: 0.625rem;
  /* 128px, 10px */
  background: #fff;
  margin-bottom: 1.5rem;
  /* 24px */
}

.hero__kicker {
  margin: 0 0 0.5rem;
  /* 8px */
  font-size: 4rem;
  /* 64px */
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
}

.hero__title {
  margin: 0 0 1rem;
  /* 16px */
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  /* 72px -> clamp for mobile */
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  word-break: keep-all;
  /* Prevent awkward word breaks */
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(1rem, 4vw, 1.5rem);
  /* 24px -> clamp */
  font-weight: 300;
  color: #fff;
  opacity: 0.9;
}

.hero__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  justify-content: end;
  max-width: 28rem;
  margin-left: auto;
}

.action-btn {
  min-height: 4.5rem;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  font-weight: 600;
  transition: opacity 0.15s ease, transform 0.15s ease;
  border-radius: 0.25rem;
  box-sizing: border-box;
  overflow: hidden;
}

.action-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
}

.action-btn__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.action-btn__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

/* Header Logout Button */
.header__auth {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: #26549c;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

/* hover 효과 */
.header__auth:hover {
  text-decoration: underline;
}

/* 로그아웃 버튼 전용 (살짝 강조하고 싶을 때) */
#logoutBtn {
  font-weight: 600;
}

/* 숨김 처리 (이미 쓰고 있음) */
.is-hidden {
  display: none !important;
}

/* Info */
.info {
  padding: 3.75rem 0;
  /* 60px */
  background-size: cover;
  background-position: center;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  /* 24px */
  margin-bottom: 1.25rem;
  /* 20px */
  flex-wrap: wrap;
  /* allow wrapping on small screens */
}

.section-head__title {
  margin: 0 0 0.5rem;
  /* 8px */
  font-size: 2.25rem;
  /* 36px */
  font-weight: 800;
  line-height: 1.2;
}

.section-head__subtitle {
  margin: 0;
  font-size: 1rem;
  /* 16px */
  font-weight: 300;
  color: #555;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  /* 10px */
  padding: 0.875rem 1.375rem;
  /* 14px 22px */
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn__plus {
  width: 0.8125rem;
  height: 0.8125rem;
  /* 13px */
  background-image: url("./images/image.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.info__desc {
  margin: 0;
  font-size: 1rem;
  /* 16px */
  line-height: 1.8;
  max-width: 60ch;
  /* Limit line length for readability */
}

/* Research */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3.75rem;
  /* 60px */
}

/* =========================================================
   Research Page (Accordion List)
   - paper-list / paper-item / summary.paper 를 "항상 길게(풀폭)" 보이게
   - 열림/닫힘과 상관없이 각 줄 박스 폭이 유지되도록
========================================================= */

.research-page {
  width: 100%;
}

/* 목록 컨테이너: 화면 중앙 정렬 + 일정한 최대폭(원하면 max-width 제거 가능) */
.research-page .paper-list {
  width: 100%;
  max-width: none;
  /* ✅ 제한 제거 */
  margin: 0;
  padding: 0 60px;
  /* ✅ 대신 좌우 여백만 */
  box-sizing: border-box;
}

.research-page .paper-item,
.research-page .paper {
  width: 100%;
  box-sizing: border-box;
}

/* summary 기본 마커 제거(브라우저 기본 삼각형) */
.research-page .paper-item>summary {
  list-style: none;
}

.research-page .paper-item>summary::-webkit-details-marker {
  display: none;
}

/* ✅ "칸" (summary 한 줄) — 항상 길게/일관된 박스 */
.research-page .paper {
  width: 100%;
  box-sizing: border-box;

  display: grid;
  grid-template-columns: 72px 1fr 260px 40px;
  /* year / title / meta / arrow */
  align-items: center;
  gap: 16px;

  padding: 18px 20px;
  border: 1px solid #333;
  background: #fff;

  cursor: pointer;
}

/* 글자 스타일 */
.research-page .paper__year {
  font-weight: 700;
  font-size: 12px;
  color: #111;
}

.research-page .paper__title {
  margin: 0;
  font-weight: 700;
  font-size: 13px;
  color: #111;
  text-align: left;

  /* 길면 말줄임 */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-page .paper__meta {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: flex-end;
  overflow: hidden;
}

.research-page .paper__venue {
  width: 140px;
  text-align: right;
  font-weight: 600;
  font-size: 12px;
  color: #111;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.research-page .paper__divider {
  width: 1px;
  height: 28px;
  background: #333;
  margin: 0 15px;
  flex-shrink: 0;
}

.research-page .paper__edit {
  height: 28px;
  padding: 0 0.9rem;
  font-size: 0.75rem;
  border-radius: 0;
  flex-shrink: 0;
}

/* 오른쪽 화살표 영역 (너 HTML에 paper__go가 있고, CSS로 그리는 구조 기준) */
.research-page .paper__go {
  justify-self: end;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-left: 1px solid #333;
  padding-left: 10px;
}

/* 화살표 아이콘을 CSS로 만들기 (V 모양) */
.research-page .paper__go::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(45deg);
  /* 기본: 아래방향 */
  display: block;
}

/* 열렸을 때 화살표 방향 변경 */
.research-page .paper-item[open] .paper__go::before {
  transform: rotate(-135deg);
  /* 위방향 */
}

/* 상세 영역(열렸을 때) */
.research-page .paper-detail {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #333;
  border-top: 0;
  background: #fff;
}

.research-page .paper-detail__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  color: #111;
}

.research-page .paper-detail__content {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  /* 줄바꿈 유지 */
}

.research-page .paper-detail__link {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--brand);
  text-decoration: none;
  word-break: break-all;
  font-size: 0.9rem;
}

.research-page .paper-detail__link:hover {
  text-decoration: underline;
}

.research-page .paper-detail__inner {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 20px;
}

/* 이미지/PDF가 부모 폭 꽉 차게 */
.research-page .paper-detail__img {
  width: 100%;
  height: auto;
  display: block;
}

/* iframe(PDF 미리보기) */
.research-page iframe {
  width: 100%;
  border: 0;
  display: block;
}

/* hover (데스크탑에서만) */
@media (hover: hover) {
  .research-page .paper:hover {
    background: #f7f7f7;
  }
}

/* 반응형: 좁아지면 venue 칸 줄이고 grid 조정 */
@media (max-width: 820px) {
  .research-page .paper-list {
    max-width: 100%;
  }

  .research-page .paper {
    grid-template-columns: 64px 1fr 170px 36px;
    padding: 16px 16px;
  }

  .research-page .paper__go {
    width: 24px;
    height: 24px;
    padding-left: 8px;
  }
}

/* 모바일: venue 숨기고 3열로 */
@media (max-width: 520px) {
  .research-page .paper {
    grid-template-columns: 56px 1fr 32px;
    /* year / title / arrow */
  }

  .research-page .paper__meta,
  .research-page .paper__venue,
  .research-page .paper__divider,
  .research-page .paper__edit {
    display: none;
  }
}


/* =========================================================
   FIX: Main(index.html) Research Section (Cards)
   - research.html 아코디언 CSS와 충돌 방지용 복구 블록
========================================================= */

section.research {
  padding: 60px 0 80px;
  background: linear-gradient(to bottom, var(--brand) 0 60%, #fff 60% 100%);
}

section.research .research__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

section.research .research__title {
  margin: 0;
  color: #fff;
  font-size: 48px;
  font-weight: 800;
  letter-spacing: .5px;
  line-height: 1.1;
}

section.research .research__rule {
  width: 390px;
  height: 1px;
  background: #fff;
  opacity: .9;
  display: block;
  margin-top: 12px;
}

section.research .research__more {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

section.research .research__scroller {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 0 12px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

section.research .research__scroller::-webkit-scrollbar {
  height: 10px;
}

section.research .research__scroller::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .2);
  border-radius: 999px;
}

section.research .research__scroller::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .06);
  border-radius: 999px;
}

section.research .research-card {
  flex: 0 0 280px;
  min-width: 280px;
  height: 380px;
  position: relative;
  scroll-snap-align: start;
}

section.research .research-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #d9d9d9;
  border-radius: 4px;
}

section.research .research-card__thumb {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
  overflow: hidden;
}

section.research .research-card__thumb img,
section.research .research-card__thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

section.research .research-card__thumb iframe {
  background: #fff;
}

section.research .research-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 30%,
      rgba(0, 0, 0, 0.95) 100%);
}

section.research .research-card__body {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
}

section.research .research-card__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  color: #fff;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

section.research .research-card__desc {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .9);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover:hover) {
  section.research .research-card__link:hover .research-card__thumb {
    transform: scale(1.03);
    transition: transform .2s ease;
  }
}

@media (max-width: 1024px) {
  section.research .research__title {
    font-size: 36px;
  }

  section.research .research__rule {
    width: 240px;
  }

  section.research .research-card {
    flex-basis: 260px;
    height: 360px;
  }
}

@media (max-width: 600px) {
  section.research {
    padding: 40px 0 60px;
    background: linear-gradient(to bottom, var(--brand) 0 55%, #fff 55% 100%);
  }

  section.research .research-card {
    flex-basis: 240px;
    height: 330px;
  }
}


/* Notice */
.notice {
  padding: 3.75rem 0;
  background: #fff;
}

/* 60px */
.notice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  /* 20px */
}

.notice__title {
  margin: 0;
  font-size: 2.75rem;
  /* 44px */
  font-weight: 800;
  line-height: 1.2;
}

.notice__pager {
  display: flex;
  gap: 0.625rem;
}

/* 10px */
.icon-btn {
  width: 3.125rem;
  height: 3.125rem;
  /* 50px */
  border: 0;
  background: #efefef;
  cursor: pointer;
}

.notice__bar {
  display: flex;
  align-items: center;
  gap: 1.875rem;
  /* 30px */
  margin-bottom: 1.875rem;
  /* 30px */
}

.notice__bar-active {
  height: 6px;
  background: var(--brand);
  width: 8.3125rem;
  /* 133px */
  border-radius: 3px 0 0 3px;
}

.notice__bar::before {
  content: "";
  height: 6px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0 3px 3px 0;
  flex: 1;
}

.notice__index strong {
  font-size: 2.1875rem;
  /* 35px */
  color: var(--brand);
}

.notice__index span {
  color: var(--text);
}

.notice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.875rem;
}

@media (max-width: 1100px) {
  .notice__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .notice__grid {
    grid-template-columns: 1fr;
  }
}

.notice-card {
  border: 1px solid var(--muted);
  padding: 2.5rem;
  min-height: 18.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  overflow: hidden;
  position: relative;
}

.notice-card__tag {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.notice-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

.notice-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 파일 업로드 목록 스타일 */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
}

.file-item__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 80%;
  color: #333;
}

.file-item__remove {
  border: none;
  background: none;
  color: #d93030;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.file-item__remove:hover {
  opacity: 0.7;
}

.notice-card__date {
  font-size: 0.8125rem;
  color: var(--text);
  flex-shrink: 0;
}

.notice-card__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  flex-shrink: 0;
}

.notice-card__icon {
  flex-shrink: 0;
  opacity: 0.6;
}

.notice-card__link {
  position: absolute;
  inset: 0;
}

/* Footer */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 40px 0;
  margin-top: auto;
}

.footer__top,
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__top {
  margin-bottom: 40px;
}

.footer-nav {
  display: flex;
  gap: 1.5rem 2.4375rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.footer__mobile {
  color: #fff;
  opacity: .8;
  font-size: 0.75rem;
  text-decoration: none;
  white-space: nowrap;
}

.footer__info {
  min-width: 0;
}

.footer__info p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  word-break: keep-all;
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: .9;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {

  .footer__top,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .footer__copy {
    text-align: left;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  /* 24px */
  .nav {
    display: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.5rem;
  }

  .hero__actions {
    justify-content: start;
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
    margin-left: 0;
  }

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

  .notice__grid {
    grid-template-columns: 1fr;
  }

  .lab-mark {
    width: 4.5rem;
    height: 4.5rem;
  }

  /* 72px */

  /* Mobile Header Adjustments */
  .header__inner {
    gap: 1rem;
  }

  .brand__logo {
    width: 3rem;
  }

  /* Reduce logo size */
  .brand__title {
    font-size: 1.125rem;
  }

  /* Reduce title */
  .brand__subtitle {
    display: none;
  }

  /* Hide subtitle on small screens */
  .lab-mark {
    width: 3rem;
    height: 3rem;
    margin-left: 0.5rem;
  }

  /* 72px -> smaller */
  .lab-mark img {
    width: 1.5rem;
  }

  .header__auth {
    font-size: 0.875rem;
  }

  /* Smaller auth links */
}

/* ====== (선택) 헤더 nav가 안 보이던 문제 방지용 ====== */
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  /* 모바일에서는 숨기는 게 자연스러움 */
}

/* ====== Login Page ====== */
.page {
  background: #fff;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl) var(--space-md);
}

.auth {
  width: min(37.5rem, 92vw);
  margin: 0;
  text-align: center;
}

.auth__head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.auth__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #2b2b2b;
  letter-spacing: -0.02em;
  line-height: var(--line-height-tight);
}

.auth__subtitle {
  font-size: 1.125rem;
  font-weight: 300;
  color: #2b2b2b;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
  margin-top: 0.625rem;
}

.field {
  text-align: left;
  padding: 0.375rem 2.5rem 0.875rem;
  /* 6px 40px 14px */
  border-bottom: 1px solid #2b2b2b;
}

.field__label {
  display: block;
  font-size: 1.125rem;
  /* 18px */
  font-weight: 300;
  color: #2b2b2b;
  margin-bottom: 0.5rem;
  /* 8px */
}

.field__input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1.25rem;
  /* 20px */
  font-weight: 300;
  color: #2b2b2b;
  padding: 0.375rem 0;
  /* 6px */
}

.field__input:focus {
  outline: none;
}

/* 로그인 버튼 (2번째처럼 둥근 사각) */
.btn--login {
  height: 5rem;
  /* 80px */
  border: 0;
  border-radius: 1.25rem;
  /* 20px */
  background: #26549c;
  color: #fff;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 500;
  cursor: pointer;

  /* ✅ 핵심 */
  display: flex;
  align-items: center;
  /* 세로 가운데 */
  justify-content: center;
  /* 가로 가운데 */
}

.btn--login:active {
  transform: translateY(1px);
}

.auth__note {
  text-align: left;
  font-size: 16px;
  font-weight: 300;
  color: #2b2b2b;
  margin-top: 10px;
}

.auth__alert {
  margin-top: 18px;
  /* ✅ 스샷처럼 note 아래 여백 */
  font-size: 14px;
  /* Figma처럼 더 작게 보이면 14~16 조절 */
  font-weight: 500;
  text-align: center;
  color: #d93030;
}

.is-hidden {
  display: none !important;
}


/* 모바일에서 padding 줄이기 */
@media (max-width: 520px) {
  .field {
    padding: 6px 18px 14px;
  }

  .btn--login {
    height: 64px;
    font-size: 20px;
    border-radius: 16px;
  }
}

/* ========== Research Page ========== */
.research-page {
  padding: 3rem 0 5rem;
}

/* ===== 상단 타이틀 ===== */
.page-head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 36px;
}

.page-head__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  color: #2b2b2b;
  letter-spacing: -0.02em;
}

/* 글쓰기 버튼 */
.btn--write {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 30px;
  background: #26549c;
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.btn--write .btn__plus {
  font-size: 18px;
  line-height: 1;
}

/* ========== Accordion Wrapper ========== */
/* details 기본 스타일 리셋 */
.paper-item {
  margin: 0;
  padding: 0;
  border: 0;
}

/* summary 기본 마커 제거 */
.paper-item>summary {
  list-style: none;
  cursor: pointer;
}

.paper-item>summary::-webkit-details-marker {
  display: none;
}

/* Research List */
.paper-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== 논문 카드(summary) ===== */
.paper {
  display: grid;
  grid-template-columns: 4.375rem 1fr minmax(8rem, 14rem) 3.125rem;
  align-items: center;
  gap: 1.125rem;
  padding: 1rem 1.375rem;
  border: 1px solid #2b2b2b;
  background: #fff;
  min-width: 0;
}

/* hover */
.paper:hover {
  box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.08);
}

/* 연도 */
.paper__year {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2b2b2b;
  flex-shrink: 0;
}

/* 제목 */
.paper__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.4;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: keep-all;
}

/* 게재지 */
.paper__venue {
  font-size: 0.875rem;
  font-weight: 700;
  color: #2b2b2b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* 오른쪽 상세보기 영역 (V 버튼 영역처럼 보이게) */
.paper__go {
  justify-self: end;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-left: 1px solid #2b2b2b;
  cursor: pointer;
}

/* V 아이콘 */
.paper__go::before {
  content: "∨";
  font-size: 22px;
  font-weight: 700;
  color: #2b2b2b;
  display: inline-block;
  transition: transform 160ms ease;
}

/* 열렸을 때 V -> ^ (회전) */
.paper-item[open] .paper__go::before {
  transform: rotate(180deg);
}

/* ===== 펼쳐지는 상세 영역 ===== */
.paper-detail {
  border-left: 1px solid #2b2b2b;
  border-right: 1px solid #2b2b2b;
  border-bottom: 1px solid #2b2b2b;
  background: #fff;
}

/* 두번째 스샷처럼 "박스가 확장"되어 보이게 */
.paper-detail__inner {
  padding: 18px 22px 22px;
}

/* 이미지 출력 */
.paper-detail__img {
  width: 100%;
  height: auto;
  display: block;
  border-top: 1px solid #2b2b2b;
  padding-top: 18px;
}

/* (선택) 이미지가 너무 커보이면 제한하고 싶을 때 */
/*
.paper-detail__img{
  max-height: 520px;
  object-fit: contain;
}
*/

/* ===== 반응형(리스트) ===== */
@media (max-width: 900px) {
  .paper {
    grid-template-columns: 70px 1fr 50px;
    grid-template-areas:
      "year title go"
      "venue venue go";
    row-gap: 10px;
  }

  .paper__year {
    grid-area: year;
  }

  .paper__title {
    grid-area: title;
  }

  .paper__venue {
    grid-area: venue;
    opacity: 0.85;
  }

  .paper__go {
    grid-area: go;
  }

  .paper-detail__inner {
    padding: 16px;
  }
}

/* ========== Modal (Write Form) ========== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.modal.is-hidden {
  display: none;
}

/* 검은 배경 */
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* 모달 박스 (정중앙) */
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(860px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #2b2b2b;
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  padding: 22px;
}

/* 모달 헤더 */
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2b2b2b;
}

.modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #2b2b2b;
}

.modal__close {
  width: 40px;
  height: 40px;
  border: 1px solid #2b2b2b;
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}

/* body 스크롤 잠금 */
.body--lock {
  overflow: hidden;
}

/* ===== Form ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-field__label {
  font-size: 14px;
  font-weight: 700;
  color: #2b2b2b;
}

.form-field__input,
.form-field__textarea,
.form-field__file {
  border: 1px solid #2b2b2b;
  padding: 12px 14px;
  font-size: 14px;
  background: #fff;
}

.form-field__textarea {
  resize: vertical;
}

/* 버튼 영역 */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn--primary {
  height: 44px;
  padding: 0 18px;
  border: none;
  background: #26549c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn--ghost {
  height: 44px;
  padding: 0 18px;
  border: 1px solid #2b2b2b;
  background: #fff;
  color: #2b2b2b;
  font-weight: 700;
  cursor: pointer;
}

/* Responsive – Form */
@media (max-width: 860px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Member Page */
.member-page {
  padding: 3rem 0 5.625rem;
  /* 48px 0 90px */
}

/* Big Section Title (Faculty / Researchers / Alumni) */
.member-block {
  padding: 2.5rem 0 0.625rem;
  /* 40px 0 10px */
}

.member-block__title {
  margin: 0 0 1.625rem;
  /* 26px */
  text-align: center;
  font-size: clamp(2.125rem, 4vw, 3rem);
  /* 34px - 48px */
  font-weight: 600;
  color: #111;
  line-height: 1.2;
}

/* Group Title */
.member-group {
  padding: 0.625rem 0 2.125rem;
  /* 10px 0 34px */
}

.member-group__title {
  margin: 0 0 1.125rem;
  /* 18px */
  font-size: 1.5rem;
  /* 24px */
  font-weight: 600;
  color: #111;
}

/* ========== Faculty ========== */
.faculty {
  display: grid;
  grid-template-columns: minmax(16rem, 20rem) 1fr;
  gap: 2.25rem;
  align-items: start;
  padding: 0.625rem 0 2.5rem;
}

.faculty__photo {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
}

.faculty__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.faculty__info {
  padding-top: 0.5rem;
  min-width: 0;
}

.faculty__name {
  margin: 0 0 1.125rem;
  font-size: 2rem;
  font-weight: 600;
  color: #111;
  line-height: var(--line-height-tight);
}

.faculty__prefix {
  font-size: 1rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.faculty__group {
  margin-top: 1.125rem;
}

.faculty__label {
  margin: 0 0 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}

.faculty__list {
  margin: 0;
  padding-left: 1.125rem;
  color: #222;
  line-height: 1.6;
}

.faculty__list li {
  word-break: keep-all;
}

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

  .faculty__name {
    font-size: 1.75rem;
    /* 28px */
  }
}

/* ========== Member Grid ========== */
.member-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

@media (max-width: 1200px) {
  .member-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========== Person Card ========== */
.person-card {
  position: relative;
  border-radius: 1rem;
  /* 16px */
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e9e9e9;
}

.person-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.875rem;
  /* 14px */
  color: #fff;
  min-height: 6.125rem;
  /* 98px */
  display: grid;
  gap: 0.375rem;
  /* 6px */
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.85) 0%,
      rgba(0, 0, 0, 0.55) 55%,
      rgba(0, 0, 0, 0.00) 100%);
}

.person-card__name {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: var(--line-height-tight);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-card__meta {
  margin: 0;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
  opacity: 0.95;
  line-height: 1.2;
}

.person-card__role {
  margin: 0;
  font-size: 0.8125rem;
  /* 13px */
  font-weight: 600;
  line-height: 1.2;
  word-break: keep-all;
}

.person-card:hover {
  transform: translateY(-2px);
  transition: transform 160ms ease;
}

@media (max-width: 480px) {
  .person-card__overlay {
    min-height: 5.75rem;
    /* 92px */
  }

  .person-card__name {
    font-size: 1rem;
  }

  /* 16px */
  .person-card__role {
    font-size: 0.75rem;
  }

  /* 12px */
}

@media (max-width: 900px) {
  .member-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}


/* ========== Admin Page ========== */
.admin {
  max-width: 61.25rem;
  /* 980px */
  margin: 0 auto;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 1.75rem;
  /* 28px */
  align-items: center;
  justify-content: flex-start;
  margin: 1.75rem 0 2.5rem;
  /* 28px 0 40px */
}

.admin-tabs__btn {
  background: none;
  border: none;
  padding: 0 0 0.625rem;
  /* 10px */
  font: inherit;
  font-size: 1.125rem;
  /* 18px */
  color: #000;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tabs__btn.is-active {
  font-weight: 700;
  border-bottom-color: var(--brand);
  color: #000;
}

/* Panel */
.admin-panel {
  width: 100%;
}

.admin-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* 16px */
  margin-bottom: 0.875rem;
  /* 14px */
}

.admin-panel__title {
  margin: 0;
  font-size: 1rem;
  /* 16px */
  font-weight: 700;
  color: #000;
}

/* Table */
.admin-table {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.625rem;
  /* 10px */
  overflow: hidden;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table thead th {
  background: #f3f3f3;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
  padding: 0.875rem 0.75rem;
  /* 14px 12px */
  text-align: left;
  color: #000;
}

.admin-table tbody td {
  font-size: 0.75rem;
  /* 12px */
  padding: 0.875rem 0.75rem;
  /* 14px 12px */
  border-top: 1px solid #f1f1f1;
  color: #272727;
  vertical-align: middle;
  word-break: break-word;
  /* Wrap long emails/addresses */
}

.admin-table .is-center {
  text-align: center;
}

.table-empty {
  padding: 1.125rem;
  /* 18px */
  color: #777;
}

.table-empty--error {
  color: #d93030;
}

/* =========================
   Admin Modal - Form Controls
   (admin 톤에 맞춘 input/select)
========================= */

/* form row 레이아웃 (너의 modal HTML 구조 기준) */
.modal__form .form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.875rem;
  /* 14px */
  align-items: center;
  margin-bottom: 0.875rem;
  /* 14px */
}

.modal__form .form-label {
  font-size: 0.875rem;
  /* 14px */
  font-weight: 700;
  color: #000;
}

.modal__form .form-value {
  min-width: 0;
  /* 긴 값 있을 때 깨짐 방지 */
}

/* 공용 input: 로그인처럼 라인형 */
.modal__form .input {
  width: 100%;
  font: inherit;
  font-size: 0.875rem;
  /* 14px */
  color: #272727;

  background: transparent;
  border: none;
  border-bottom: 1px solid #d6d6d6;

  padding: 0.625rem 0.125rem;
  /* 10px 2px */
  outline: none;

  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal__form .input::placeholder {
  color: #9a9a9a;
}

/* 포커스: brand 컬러로 강조 */
.modal__form .input:focus {
  border-bottom-color: var(--brand);
  box-shadow: 0 2px 0 0 var(--brand);
}

/* select도 같은 톤(라인형) */
.modal__form .select {
  width: 100%;
  font: inherit;
  font-size: 0.875rem;
  /* 14px */
  color: #272727;

  background: transparent;
  border: none;
  border-bottom: 1px solid #d6d6d6;

  padding: 0.625rem 0.125rem;
  /* 10px 2px */
  outline: none;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal__form .select:focus {
  border-bottom-color: var(--brand);
  box-shadow: 0 2px 0 0 var(--brand);
}

/* select 우측 화살표 (admin 스타일에 맞게 미니멀) */
.modal__form .form-value {
  position: relative;
}

.modal__form .form-value:has(.select)::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  /* 8px */
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #555;
  border-bottom: 2px solid #555;
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
  opacity: 0.7;
}

/* 작은 화면에서 레이블/인풋 1열로 */
@media (max-width: 520px) {
  .modal__form .form-row {
    grid-template-columns: 1fr;
    gap: 0.375rem;
    /* 6px */
  }
}

/* Buttons */
.btn--sm {
  height: 2.25rem;
  /* 36px */
  padding: 0 0.875rem;
  /* 14px */
  font-size: 0.875rem;
  /* 14px */
  border-radius: 0.625rem;
  /* 10px */
}

.btn--ghost {
  background: #fff;
  border: 1px solid #dcdcdc;
  color: #000;
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Accept/Reject Buttons */
.icon-action {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 700;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  /* 6px 8px */
  border-radius: 0.5rem;
  /* 8px */
}

.icon-action--ok {
  color: var(--brand);
}

.icon-action--no {
  color: #d93030;
}

.icon-action:hover {
  background: #f6f6f6;
}

/* Note */
.admin-note {
  margin: 0.875rem 0 0;
  /* 14px */
  font-size: 0.75rem;
  /* 12px */
  color: #7a1e1e;
}

/* Admin Header */
.admin__head {
  text-align: center;
  margin-bottom: 1.75rem;
  /* 28px */
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  /* 14px */
  justify-content: center;
}

.admin-brand__logo {
  width: 6.625rem;
  /* 106px */
  height: auto;
}

.admin-brand__text {
  text-align: left;
  line-height: 1.1;
}

.admin-brand__title {
  margin: 0;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 700;
  color: var(--brand);
}

.admin-brand__subtitle {
  margin: 0.375rem 0 0;
  /* 6px */
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
  color: var(--brand);
}

.admin-brand__desc {
  margin: 0.875rem 0 0;
  /* 14px */
  font-size: 0.875rem;
  /* 14px */
  color: var(--brand);
}

/* Icon Buttons */
.icon-btn {
  width: 2rem;
  height: 2rem;
  /* 32px */
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  /* 8px */
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background .15s ease, transform .05s ease;
}

.icon-btn svg {
  fill: currentColor;
}

.icon-btn--ok {
  color: var(--brand);
}

.icon-btn--no {
  color: #d93030;
}

.icon-btn:hover {
  background: #f3f3f3;
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(38, 84, 156, .35);
  outline-offset: 2px;
}

/* Mobile Scroll for Table */
@media (max-width: 820px) {
  .admin-table {
    overflow-x: auto;
    /* Allow scroll */
  }

  .admin-table table {
    width: 100%;
    min-width: 37.5rem;
    /* 600px min width for readability */
    table-layout: fixed;
  }
}

/* ========== Admin Page ========== */
.admin {
  max-width: 61.25rem;
  /* 980px */
  margin: 0 auto;
}

/* Tabs */
.admin-tabs {
  display: flex;
  gap: 1.75rem;
  /* 28px */
  align-items: center;
  justify-content: flex-start;
  margin: 1.75rem 0 2.5rem;
  /* 28px 0 40px */
}

.admin-tabs__btn {
  background: none;
  border: none;
  padding: 0 0 0.625rem;
  /* 10px */
  font: inherit;
  font-size: 1.125rem;
  /* 18px */
  color: #000;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.admin-tabs__btn.is-active {
  font-weight: 700;
  border-bottom-color: var(--brand);
  color: #000;
}

/* Panel */
.admin-panel {
  width: 100%;
}

.admin-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  /* 16px */
  margin-bottom: 0.875rem;
  /* 14px */
}

.admin-panel__title {
  margin: 0;
  font-size: 1rem;
  /* 16px */
  font-weight: 700;
  color: #000;
}

/* Table */
.admin-table {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.625rem;
  /* 10px */
  overflow: hidden;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.admin-table thead th {
  background: #f3f3f3;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
  padding: 0.875rem 0.75rem;
  /* 14px 12px */
  text-align: left;
  color: #000;
}

.admin-table tbody td {
  font-size: 0.75rem;
  /* 12px */
  padding: 0.875rem 0.75rem;
  /* 14px 12px */
  border-top: 1px solid #f1f1f1;
  color: #272727;
  vertical-align: middle;
  word-break: break-word;
  /* Wrap long emails/addresses */
}

.admin-table .is-center {
  text-align: center;
}

.table-empty {
  padding: 1.125rem;
  /* 18px */
  color: #777;
}

.table-empty--error {
  color: #d93030;
}

/* Buttons */
.btn--sm {
  height: 2.25rem;
  /* 36px */
  padding: 0 0.875rem;
  /* 14px */
  font-size: 0.875rem;
  /* 14px */
  border-radius: 0.625rem;
  /* 10px */
}

.btn--ghost {
  background: #fff;
  border: 1px solid #dcdcdc;
  color: #000;
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Accept/Reject Buttons (텍스트형, 혹시 쓰면) */
.icon-action {
  border: none;
  background: none;
  font: inherit;
  font-size: 0.75rem;
  /* 12px */
  font-weight: 700;
  cursor: pointer;
  padding: 0.375rem 0.5rem;
  /* 6px 8px */
  border-radius: 0.5rem;
  /* 8px */
}

.icon-action--ok {
  color: var(--brand);
}

.icon-action--no {
  color: #d93030;
}

.icon-action:hover {
  background: #f6f6f6;
}

/* Note */
.admin-note {
  margin: 0.875rem 0 0;
  /* 14px */
  font-size: 0.75rem;
  /* 12px */
  color: #7a1e1e;
}

/* Admin Header */
.admin__head {
  text-align: center;
  margin-bottom: 1.75rem;
  /* 28px */
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  /* 14px */
  justify-content: center;
}

.admin-brand__logo {
  width: 6.625rem;
  /* 106px */
  height: auto;
}

.admin-brand__text {
  text-align: left;
  line-height: 1.1;
}

.admin-brand__title {
  margin: 0;
  font-size: 1.5rem;
  /* 24px */
  font-weight: 700;
  color: var(--brand);
}

.admin-brand__subtitle {
  margin: 0.375rem 0 0;
  /* 6px */
  font-size: 0.75rem;
  /* 12px */
  font-weight: 600;
  color: var(--brand);
}

.admin-brand__desc {
  margin: 0.875rem 0 0;
  /* 14px */
  font-size: 0.875rem;
  /* 14px */
  color: var(--brand);
}

/* Icon Buttons */
.icon-btn {
  width: 2rem;
  height: 2rem;
  /* 32px */
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  /* 8px */
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background .15s ease, transform .05s ease;
}

.icon-btn svg {
  fill: currentColor;
}

.icon-btn--ok {
  color: var(--brand);
}

.icon-btn--no {
  color: #d93030;
}

.icon-btn:hover {
  background: #f3f3f3;
}

.icon-btn:active {
  transform: scale(0.96);
}

.icon-btn:focus-visible {
  outline: 2px solid rgba(38, 84, 156, .35);
  outline-offset: 2px;
}

/* 회원관리 테이블의 "관리" 버튼(텍스트) */
.link-btn {
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
}

/* Mobile Scroll for Table */
@media (max-width: 820px) {
  .admin-table {
    overflow-x: auto;
    /* Allow scroll */
  }

  .admin-table table {
    width: 100%;
    min-width: 37.5rem;
    /* 600px */
    table-layout: fixed;
  }
}

/* =========================================
   Admin User Modal (Clean)
   - 기본 숨김(display:none)
   - .is-open 붙으면 중앙 표시
========================================= */

/* Backdrop */
#userModalBackdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9998;
  display: none;
}

#userModalBackdrop.is-open {
  display: block;
}

/* Modal Overlay */
#userModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;

  align-items: center;
  justify-content: center;

  padding: 24px;
}

/* ✅ userModal 무조건 뷰포트 중앙 고정 */
#userModal.is-open {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Panel */
#userModal .modal__panel {
  width: 720px;
  max-width: calc(100vw - 48px);
  background: #fff;
  border-radius: 18px;
  border: 2px solid #2e6cff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
  overflow: hidden;
}

/* Header */
#userModal .modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e9eefb;
}

#userModal .modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}

#userModal .modal__close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #111;
}

/* Body */
#userModal .modal__body {
  padding: 18px 22px 22px;
}

/* Grid: left / right + footer full width */
#userModal .modal__grid {
  display: grid;
  grid-template-columns: 1fr 200px;
  column-gap: 16px;
  row-gap: 14px;
  align-items: start;
}

/* Form left */
#userModal .modal__form .form-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 6px 0;
}

#userModal .form-label {
  font-weight: 700;
  color: #222;
}

#userModal .form-value {
  color: #222;
}

#userModal .select {
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #d7dbe7;
  padding: 0 10px;
  background: #fff;
}

/* Photo right */
#userModal .modal__photo {
  justify-self: end;
}

#userModal .photo-box {
  width: 180px;
  height: 240px;
  border-radius: 12px;
  border: 1px solid #d7dbe7;
  background: #f3f5f9;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

#userModal .photo-box__hint {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  color: #777;
  font-size: 12px;
  line-height: 1.4;
}

#userModal .photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer (full width) */
#userModal .modal__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

#userModal .modal__footer-left {
  display: flex;
  gap: 14px;
}

/* Text-button style inside modal */
#userModal .btn {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

#userModal .btn--primary,
#userModal .btn--ghost {
  color: #111;
}

#userModal .btn--primary:hover,
#userModal .btn--ghost:hover {
  color: #1f4ea6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#userModal .btn--danger {
  color: #d93030;
}

#userModal .btn--danger:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================
   FIX: userModal 중앙 고정
   (전역 .modal/.modal__panel 영향 제거)
========================= */

#userModal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: none;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  z-index: 20000 !important;
  /* toast(10000)보다 위 */
}

#userModal.is-open {
  display: flex !important;
}

/* ✅ 전역 .modal__panel(top:50%, transform...) 완전 차단 */
#userModal .modal__panel {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  margin: 0 !important;
}

/* backdrop도 확실히 */
#userModalBackdrop {
  position: fixed !important;
  inset: 0 !important;
  z-index: 19999 !important;
}

#userModalBackdrop.is-open {
  display: block !important;
}


/* ========================================
   MOBILE NAVIGATION
   ======================================== */

/* Hamburger Button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
  position: relative;
}

.nav-toggle__bar {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle__bar+.nav-toggle__bar {
  margin-top: 5px;
}

/* Hamburger animation when open */
.nav-toggle.is-active .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.is-active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Panel */
.nav--mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(20rem, 85vw);
  height: 100vh;
  background: #fff;
  z-index: 1060;
  padding: 5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.nav--mobile.is-active {
  right: 0;
}

.nav--mobile .nav__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.nav--mobile .nav__link:hover,
.nav--mobile .nav__link:focus {
  color: var(--brand);
  padding-left: 0.5rem;
}

.nav--mobile .nav__link--admin {
  color: var(--brand);
  font-weight: 700;
}

/* Mobile Auth Area */
.nav--mobile .mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.nav--mobile .mobile-auth a,
.nav--mobile .mobile-auth button {
  display: block;
  text-align: center;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav--mobile .mobile-auth a:first-child {
  background: var(--brand);
  color: #fff;
}

.nav--mobile .mobile-auth a:first-child:hover {
  background: #1e4380;
}

.nav--mobile .mobile-auth a:last-child {
  background: #f5f5f5;
  color: var(--text);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .header__right .header__auth,
  .header__right .header__sep {
    display: none;
  }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */

/* Base states - hidden before animation */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.fade-in {
  transform: translateY(0);
}

.animate-on-scroll.slide-up {
  transform: translateY(2rem);
}

.animate-on-scroll.slide-left {
  transform: translateX(2rem);
}

.animate-on-scroll.slide-right {
  transform: translateX(-2rem);
}

.animate-on-scroll.scale-in {
  transform: scale(0.95);
}

/* Animated state */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays for grid items */
.animate-on-scroll[data-delay="1"] {
  transition-delay: 0.1s;
}

.animate-on-scroll[data-delay="2"] {
  transition-delay: 0.2s;
}

.animate-on-scroll[data-delay="3"] {
  transition-delay: 0.3s;
}

.animate-on-scroll[data-delay="4"] {
  transition-delay: 0.4s;
}

.animate-on-scroll[data-delay="5"] {
  transition-delay: 0.5s;
}

/* ========================================
   LOADING SPINNER
   ======================================== */

.spinner {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(38, 84, 156, 0.2);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner--white {
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}

.spinner--sm {
  width: 1rem;
  height: 1rem;
  border-width: 2px;
}

.spinner--lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 4px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #333;
  color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  font-size: 0.9375rem;
  font-weight: 500;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  animation: toastSlideIn 0.3s ease forwards;
}

.toast.is-hiding {
  animation: toastSlideOut 0.3s ease forwards;
}

.toast--success {
  background: #1a8754;
}

.toast--error {
  background: #dc3545;
}

.toast--info {
  background: var(--brand);
}

.toast__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.toast__close {
  background: none;
  border: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.toast__close:hover {
  opacity: 1;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

@media (max-width: 480px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    transform: translateY(120%);
  }

  @keyframes toastSlideIn {
    from {
      transform: translateY(120%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  @keyframes toastSlideOut {
    from {
      transform: translateY(0);
      opacity: 1;
    }

    to {
      transform: translateY(120%);
      opacity: 0;
    }
  }
}

/* ========================================
   SKIP LINK (Accessibility)
   ======================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 1rem 1.5rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  z-index: 10001;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   BUTTON HOVER EFFECTS
   ======================================== */

.btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn--primary:hover {
  background: #1e4380;
}

.action-btn {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 84, 156, 0.3);
  background: #1e4380;
}

.action-btn:active {
  transform: translateY(0);
}

/* ========================================
   SMOOTH SCROLLING
   ======================================== */

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ========================================
   FOCUS STYLES (Accessibility)
   ======================================== */

*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.nav__link:focus-visible,
.btn:focus-visible,
.action-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ========================================
   FORM ENHANCEMENTS
   ======================================== */

.field__input:focus,
.form-field__input:focus,
.form-field__textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(38, 84, 156, 0.1);
}

.field--error .field__input,
.form-field--error .form-field__input {
  border-color: #dc3545;
}

.field__error {
  display: none;
  color: #dc3545;
  font-size: 0.8125rem;
  margin-top: 0.375rem;
}

.field--error .field__error {
  display: block;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 0.5rem;
  height: 4px;
  background: #e9e9e9;
  border-radius: 2px;
  overflow: hidden;
}

.password-strength__bar {
  height: 100%;
  width: 0;
  transition: width 0.3s ease, background 0.3s ease;
}

.password-strength--weak .password-strength__bar {
  width: 33%;
  background: #dc3545;
}

.password-strength--medium .password-strength__bar {
  width: 66%;
  background: #ffc107;
}

.password-strength--strong .password-strength__bar {
  width: 100%;
  background: #1a8754;
}

/* ========================================
   NOTICE PAGE
   ======================================== */

.notice-page {
  padding: 3rem 0 5rem;
}

/* Notice Tabs */
.notice-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9e9e9;
}

.notice-tabs__btn {
  background: #f5f5f5;
  border: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notice-tabs__btn:hover {
  background: #e9e9e9;
  color: #333;
}

.notice-tabs__btn.is-active {
  background: var(--brand);
  color: #fff;
}

/* Notice List */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ✅ 핵심 수정: tag 폭 고정(5.5rem) 제거 → 내용 길이에 맞게 자동 확장
   ✅ grid에서 텍스트 overflow 방지용 min-width:0 추가
*/
.notice-item {
  display: grid;
  /* pin | tag | title/preview | meta */
  grid-template-columns: auto max-content 1fr max-content;
  grid-template-rows: auto auto;
  gap: 0.5rem 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
  min-width: 0;
}

.notice-item:first-child {
  border-top: 2px solid var(--text);
}

.notice-item--pinned {
  background: linear-gradient(90deg, rgba(38, 84, 156, 0.03) 0%, transparent 100%);
  padding-left: 1rem;
  margin-left: -1rem;
  padding-right: 1rem;
  margin-right: -1rem;
}

.notice-item__pin {
  grid-column: 1;
  grid-row: 1 / 3;
  font-size: 1rem;
  align-self: center;
}

/* ✅ pin 자리(column 1)는 비워두고 tag는 column 2로 고정하는게 안정적 */
.notice-item__tag {
  grid-column: 2;
  grid-row: 1;
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(38, 84, 156, 0.1);
  border-radius: 0.25rem;
  white-space: nowrap;
  justify-self: start;
}

.notice-item__tag--recruit {
  color: #1a8754;
  background: rgba(26, 135, 84, 0.1);
}

.notice-item__tag--seminar {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
}

/* ✅ title은 항상 column 3에서 시작 (tag 옆) */
.notice-item__title {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;

  /* grid 안에서 긴 텍스트가 옆을 밀거나 겹치지 않게 */
  min-width: 0;
  word-break: break-word;
}

.notice-item__title a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-block;
  max-width: 100%;
}

.notice-item__title a:hover {
  color: var(--brand);
}

/* ✅ preview도 column 3에서 시작 */
.notice-item__preview {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  min-width: 0;
  word-break: break-word;
}

/* ✅ meta는 항상 마지막 column(4)에 고정 */
.notice-item__meta {
  grid-column: 4;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.8125rem;
  color: #999;
  white-space: nowrap;

  justify-self: end;
  min-width: max-content;
}

.notice-item__views {
  font-size: 0.75rem;
}

/* Hover effect */
.notice-item:hover {
  background: #fafafa;
}

.notice-item--pinned:hover {
  background: linear-gradient(90deg, rgba(38, 84, 156, 0.06) 0%, #fafafa 100%);
}

/* ✅ 모바일/좁은 화면에서 겹침 방지: 세로로 쌓기 */
@media (max-width: 720px) {
  .notice-item {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.4rem 0.75rem;
  }

  .notice-item__pin {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
  }

  .notice-item__tag {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .notice-item__title {
    grid-column: 2;
    grid-row: 1;
  }

  .notice-item__preview {
    grid-column: 2;
    grid-row: 2;
  }

  .notice-item__meta {
    grid-column: 2;
    grid-row: 3;
    flex-direction: row;
    gap: 0.75rem;
    justify-content: flex-start;
    align-items: center;
  }
}

/* ==========================
   NOTICE LAYOUT FIX (wide like design)
   ========================== */

/* notice 페이지 컨테이너만 더 넓게 쓰기 */
.notice-page.container {
  max-width: 1200px;
  /* ✅ 원하는 폭으로 조절 (1100~1300 추천) */
  width: min(1200px, 100%);
  margin: 0 auto;
}

/* 제목/글쓰기 버튼이 가운데로 몰리는 것 방지 */
.notice-page .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* ✅ 타이틀 왼쪽, 글쓰기 오른쪽 */
  gap: 1rem;
  text-align: left;
}

/* 혹시 page-head__title이 중앙정렬/고정폭이면 풀어주기 */
.notice-page .page-head__title {
  margin: 0;
  text-align: left;
}

/* 글쓰기 버튼이 제목 위로 겹치거나 가운데로 뜨는 것 방지 */
.notice-page #openNoticeWrite {
  flex: 0 0 auto;
}

/* 탭도 가운데 정렬이 아니라 왼쪽 정렬 */
.notice-page .notice-tabs {
  justify-content: flex-start;
}

/* 리스트가 너무 좁게 잡히는 경우 방지 */
.notice-page #noticeList,
.notice-page .notice-list {
  width: 100%;
}


/* Hover effect */
.notice-item:hover {
  background: #fafafa;
}

.notice-item--pinned:hover {
  background: linear-gradient(90deg, rgba(38, 84, 156, 0.06) 0%, #fafafa 100%);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}

.pagination__btn {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 0.5rem;
  cursor: pointer;
  color: #666;
  transition: all 0.2s ease;
}

.pagination__btn:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination__pages {
  display: flex;
  gap: 0.25rem;
}

.pagination__page {
  min-width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination__page:hover {
  background: #f5f5f5;
}

.pagination__page.is-active {
  background: var(--brand);
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .notice-item {
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
  }

  .notice-item__tag {
    grid-column: 1;
    grid-row: 1;
  }

  .notice-item--pinned .notice-item__tag {
    grid-column: 2;
  }

  .notice-item__title {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .notice-item--pinned .notice-item__title {
    grid-column: 2 / -1;
  }

  .notice-item__preview {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .notice-item--pinned .notice-item__preview {
    grid-column: 2 / -1;
  }

  .notice-item__meta {
    grid-column: -2;
    grid-row: 1;
    flex-direction: row;
    gap: 0.75rem;
  }

  .notice-tabs {
    gap: 0.375rem;
  }

  .notice-tabs__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   NOTICE DETAIL PAGE
   ======================================== */

.notice-detail {
  padding: 2rem 0 5rem;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.notice-detail__nav {
  margin-bottom: 1.5rem;
}

.notice-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: #666;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.notice-detail__back:hover {
  color: var(--brand);
}

.notice-detail__header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e9e9e9;
}

.notice-detail__tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand);
  background: rgba(38, 84, 156, 0.1);
  border-radius: 0.25rem;
  margin-bottom: 1rem;
}

.notice-detail__title {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

.notice-detail__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: #888;
}

.notice-detail__author {
  font-weight: 600;
  color: #555;
}

/* Content */
.notice-detail__content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #333;
}

.notice-detail__content p {
  margin: 0 0 1.25rem;
}

.notice-detail__content h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand);
}

.notice-detail__content h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.notice-detail__content ul,
.notice-detail__content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
}

.notice-detail__content li {
  margin-bottom: 0.5rem;
}

.notice-detail__content a {
  color: var(--brand);
  text-decoration: underline;
}

.notice-detail__content a:hover {
  text-decoration: none;
}

/* Figure / Image */
.notice-detail__figure {
  margin: 2rem 0;
  text-align: center;
}

.notice-detail__figure img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.notice-detail__figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: #888;
}

/* Attachments */
.notice-detail__attachments {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
}

.notice-detail__attachments-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.notice-detail__file-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-detail__file {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--brand);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: opacity 0.2s ease;
}

.notice-detail__file:hover {
  opacity: 0.8;
}

.notice-detail__file-icon {
  flex-shrink: 0;
}

.notice-detail__file-size {
  color: #999;
  font-size: 0.8125rem;
  font-weight: 400;
}

/* Pagination */
.notice-detail__pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9e9e9;
}

.notice-detail__prev,
.notice-detail__next {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.notice-detail__prev:hover,
.notice-detail__next:hover {
  background: #f0f0f0;
}

.notice-detail__next {
  text-align: right;
}

.notice-detail__pagination-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.notice-detail__pagination-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions */
.notice-detail__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9e9e9;
}

.btn--danger {
  background: #dc3545;
  color: #fff;
  border: none;
}

.btn--danger:hover {
  background: #c82333;
}

/* Responsive */
@media (max-width: 600px) {
  .notice-detail__pagination {
    grid-template-columns: 1fr;
  }

  .notice-detail__next {
    text-align: left;
  }
}

/* ========== Admin Page ========== */
.admin {
  padding: 3rem 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 60vh;
}

.admin__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand__logo {
  height: 48px;
  width: auto;
}

.admin-brand__text {
  display: flex;
  flex-direction: column;
}

.admin-brand__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2b2b2b;
  line-height: 1.2;
}

.admin-brand__subtitle {
  font-size: 0.875rem;
  color: #666;
}

.admin-brand__desc {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* 탭 스타일 */
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #ddd;
}

.admin-tabs__btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #888;
  padding: 12px 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.admin-tabs__btn.is-active {
  color: #26549c;
  border-bottom-color: #26549c;
}

.admin-tabs__btn:hover {
  color: #26549c;
}

/* 패널 스타일 */
.admin-panel {
  display: none;
  /* 기본 숨김 */
  animation: fadeIn 0.3s ease;
}

.admin-panel.is-active {
  display: block;
  /* 활성화 시 표시 */
}

.admin-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-panel__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #333;
  margin: 0;
}

/* 테이블 스타일 */
.admin-table {
  width: 100%;
  border-top: 2px solid #333;
  overflow-x: auto;
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.admin-table th,
.admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #444;
}

.admin-table th {
  font-weight: 600;
  background: #f9f9f9;
  color: #222;
}

.admin-table .is-center {
  text-align: center;
}

.table-empty {
  padding: 40px !important;
  color: #888;
  font-size: 1rem;
}

.table-empty--error {
  color: #d93030;
}

/* 버튼 스타일 */
.icon-btn {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover {
  background-color: #eee;
}

.icon-btn--ok {
  color: #2ecc71;
}

.icon-btn--no {
  color: #e74c3c;
}

.link-btn {
  background: none;
  border: none;
  color: #26549c;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 8px;
}

.link-btn:hover {
  color: #1a3c75;
}

.admin-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #888;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   Research Areas Section (Homepage)
========================================================= */
.research-areas {
  padding: 80px 0;
  background: #f8f9fa;
}

.research-areas__head {
  text-align: center;
  margin-bottom: 48px;
}

.research-areas__title {
  margin: 0 0 12px;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.2;
}

.research-areas__subtitle {
  margin: 0;
  font-size: 1.125rem;
  color: #666;
  font-weight: 300;
}

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

@media (max-width: 1024px) {
  .research-areas__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .research-areas__grid {
    grid-template-columns: 1fr;
  }

  .research-areas__title {
    font-size: 2rem;
  }
}

/* Area Card */
.area-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.area-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.area-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(38, 84, 156, 0.15);
}

.area-card:hover::before {
  transform: scaleX(1);
}

.area-card__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  color: var(--brand);
  transition: transform 0.3s ease, color 0.3s ease;
}

.area-card:hover .area-card__icon {
  transform: scale(1.15);
  color: #1a3c75;
}

.area-card__icon svg {
  width: 100%;
  height: 100%;
}

.area-card__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.area-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #666;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.area-card:hover .area-card__desc {
  opacity: 1;
  max-height: 150px;
}

/* =========================================================
   Projects Page Styles
========================================================= */
.projects-page {
  padding: 60px 0 80px;
}

.projects-page .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.projects-page .page-head__title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 10px 24px;
  border: 2px solid var(--brand);
  background: transparent;
  color: var(--brand);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 24px;
}

.filter-tab:hover {
  background: rgba(38, 84, 156, 0.08);
}

.filter-tab.is-active {
  background: var(--brand);
  color: #fff;
}

/* Project Cards Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 860px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* Project Card */
.project-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(38, 84, 156, 0.12);
  transform: translateY(-4px);
}

.project-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  flex: 1;
}

/* Status Badge */
.badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.project-card__header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.project-card__admin {
  display: flex;
  gap: 4px;
}

.pub-card__header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.pub-card__admin {
  display: flex;
  gap: 4px;
}

.badge--ongoing {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge--completed {
  background: #e3f2fd;
  color: #1565c0;
}

.project-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8125rem;
  color: #888;
}

.project-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-card__meta-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Tech Stack Tags */
.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  padding: 4px 10px;
  background: #f5f5f5;
  color: #555;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 4px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__panel {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 0;
}

.modal__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}

.modal__close {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: #e0e0e0;
  color: #111;
}

.modal__body {
  padding: 24px;
}

.modal__section {
  margin-bottom: 24px;
}

.modal__section:last-child {
  margin-bottom: 0;
}

.modal__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.modal__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: #333;
}

/* =========================================================
   Publications Page Styles
========================================================= */
.publications-page {
  padding: 60px 0 80px;
}

.publications-page .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.publications-page .page-head__title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}

/* Publications Toolbar */
.pub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.pub-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.pub-search:focus {
  outline: none;
  border-color: var(--brand);
}

.pub-select {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
}

.pub-select:focus {
  outline: none;
  border-color: var(--brand);
}

.sort-btn {
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sort-btn:hover {
  border-color: var(--brand);
  background: rgba(38, 84, 156, 0.04);
}

.sort-btn svg {
  width: 16px;
  height: 16px;
}

/* Publications List */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(38, 84, 156, 0.08);
}

.pub-card__year {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
}

.pub-card__body {
  flex: 1;
  min-width: 0;
}

.pub-card__header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.pub-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  flex: 1;
}

.pub-card__category {
  flex-shrink: 0;
  padding: 3px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
}

.pub-card__category--conference {
  background: #fff3e0;
  color: #e65100;
}

.pub-card__category--journal {
  background: #e8f5e9;
  color: #2e7d32;
}

.pub-card__category--patent {
  background: #fce4ec;
  color: #c2185b;
}

.pub-card__authors {
  margin: 0 0 8px;
  font-size: 0.875rem;
  color: #666;
  line-height: 1.5;
}

.pub-card__venue {
  margin: 0;
  font-size: 0.8125rem;
  color: #888;
  font-style: italic;
}

.pub-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.pub-card__link:hover {
  text-decoration: underline;
}

.pub-card__link svg {
  width: 14px;
  height: 14px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #888;
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.empty-state__text {
  font-size: 1rem;
  margin: 0;
}

@media (max-width: 600px) {
  .pub-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pub-card {
    flex-direction: column;
    gap: 12px;
  }

  .pub-card__year {
    width: auto;
    height: auto;
    padding: 6px 12px;
    font-size: 0.875rem;
    align-self: flex-start;
  }
}

/* =========================================================
   Common Button Styles
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: #1a3c75;
}

.btn--secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn--secondary:hover {
  background: #e8e8e8;
}

/* =========================================================
   Page Head Actions (for filter tabs + create button)
========================================================= */
.page-head__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================
   Create Form Styles
========================================================= */
.create-form {
  background: #f8f9fa;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.create-form__title {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand);
}

.create-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 768px) {
  .create-form__grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--half {
  grid-column: span 1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9375rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(38, 84, 156, 0.12);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

select.form-input {
  cursor: pointer;
}

.create-form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* =========================================================
   Research Page New Styles
========================================================= */
.research-page-new {
  padding: 60px 0 80px;
}

.research-page-new .page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.research-page-new .page-head__title {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}

/* Research Toolbar */
.research-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding: 16px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.research-search {
  flex: 1;
  min-width: 200px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s ease;
}

.research-search:focus {
  outline: none;
  border-color: var(--brand);
}

/* Research List - Card Grid */
.research-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .research-list {
    grid-template-columns: 1fr;
  }
}

/* Research Card */
.research-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.research-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(38, 84, 156, 0.1);
  transform: translateY(-4px);
}

.research-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.research-card__year {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 16px;
}

.research-card__admin {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.btn--icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn--icon svg {
  width: 16px;
  height: 16px;
  color: #555;
}

.btn--icon:hover {
  background: var(--brand);
}

.btn--icon:hover svg {
  color: #fff;
}

.btn--icon-danger:hover {
  background: #e74c3c;
}

.research-card__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-card__venue {
  margin: 0;
  font-size: 0.875rem;
  color: #888;
  font-style: italic;
}

.research-card__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.research-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.research-card__link,
.research-card__file {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.research-card__link:hover,
.research-card__file:hover {
  text-decoration: underline;
}

.research-card__link svg,
.research-card__file svg {
  width: 14px;
  height: 14px;
}

/* File Type Badges */
.file-badge {
  display: inline-block;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.file-badge--pdf {
  background: #fce4ec;
  color: #c2185b;
}

.file-badge--img {
  background: #e8f5e9;
  color: #2e7d32;
}

.file-badge--link {
  background: #e3f2fd;
  color: #1565c0;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .research-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .research-page-new .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .research-page-new .page-head__title {
    font-size: 2rem;
  }

  .research-card__header {
    flex-wrap: wrap;
  }

  .research-card__admin {
    margin-left: 0;
    width: 100%;
    justify-content: flex-end;
  }
}

/* =========================================================
   Research Card Expandable (Accordion) Styles
========================================================= */
details.research-card {
  cursor: pointer;
}

.research-card__summary {
  display: block;
  list-style: none;
  position: relative;
  padding: 20px 48px 20px 20px;
}

.research-card__summary::-webkit-details-marker {
  display: none;
}

.research-card__summary::marker {
  display: none;
}

/* Toggle Arrow */
.research-card__toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.research-card__toggle::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #666;
  border-bottom: 2px solid #666;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

details.research-card[open] .research-card__toggle::before {
  transform: rotate(-135deg);
}

/* Detail Section */
.research-card__detail {
  border-top: 1px solid #eee;
  margin-top: 0;
  padding: 20px;
  padding-top: 16px;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.research-card__content {
  margin-bottom: 16px;
}

.research-card__content-title {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.research-card__full-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #444;
  white-space: pre-wrap;
}

/* PDF/Image Preview */
.research-card__preview {
  margin: 16px -20px 0;
  border-radius: 0;
  overflow: hidden;
  background: #f8f9fa;
}

.research-card__pdf {
  width: 100%;
  height: 600px;
  border: 0;
  border-radius: 0;
}

.research-card__img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

/* Actions in Detail */
.research-card__detail .research-card__actions {
  border-top: none;
  margin-top: 16px;
  padding-top: 0;
}

.research-card__link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .research-card__pdf {
    height: 400px;
  }
}