/* =========================
   Global
========================= */
body {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  background: #121212;
  color: #e6e6e6;
}

/* =========================
   Layout
========================= */
.layout {
  display: flex;
  max-width: 1100px; /* 콘텐츠 최대폭 */
  margin: 0;          /* 왼쪽 공백 제거 */
  padding-left: 30px; /* 왼쪽 살짝 여유 */
  padding-right: 30px;
}


/* =========================
   Sidebar
========================= */
.sidebar {
  width: 260px;
  padding: 20px;
  border-right: 1px solid #2a2a2a;
  text-align: left;
}

.profile {
  width: 180px;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 2px solid #2a2a2a;
}

.sidebar h1 {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.role {
  font-size: 0.95em;
  color: #aaaaaa;
}

.info,
.links {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.info li,
.links li {
  margin-bottom: 8px;
}

.links a {
  text-decoration: none;
  color: #7aa2f7;
  font-family: Arial, sans-serif;
}

.links a:hover {
  color: #a5b4fc;
}

/* =========================
   Main Content
========================= */
.content {
  flex: 1;
  padding: 0 40px;
}

section {
  margin-bottom: 40px;
}

h2 {
  font-size: 1.4em;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 5px;
}

/* =========================
   Publication / List Style
========================= */
.pub-list {
  list-style: none;
  padding-left: 0;
}

.pub-list li {
  margin-bottom: 18px;
  padding-left: 1.6em;   /* hanging indent 기준 */
  text-indent: -1.6em;
}

/* =========================
   Links
========================= */
a {
  color: #7aa2f7;
}

a:hover {
  color: #a5b4fc;
}

/* =========================
   Tech Stack
========================= */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
  margin-top: 12px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tech-item img {
  width: 48px;
  height: auto;
  margin-bottom: 6px;
}

.tech-item span {
  font-size: 0.85rem;
}

/* =========================
   Footer (optional)
========================= */
footer {
  border-top: 1px solid #2a2a2a;
  color: #aaaaaa;
  padding-top: 12px;
  font-size: 0.85rem;
}

/* =========================
   Responsive (Mobile)
========================= */
@media (max-width: 768px) {

  .layout {
    flex-direction: column;
    margin: 16px;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
  }

  .profile {
    width: 120px;
    margin: 0 auto 12px auto;
  }

  .content {
    padding: 16px 0;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* =========================
   Header Banner
========================= */
.header-banner img {
  width: 100%;
  height: auto;
  display: block;
}


/* =========================
   About Videos Layout
========================= */
.about-video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  align-items: stretch;
}

/* 왼쪽 / 오른쪽 컬럼 */
.about-video-column {
  width: 100%;
  margin: 0;
}

/* 오른쪽 컬럼: 위아래 2행을 동일 높이로 강제 */
.about-video-column.right {
  display: grid;
  grid-template-rows: 1fr auto; /* video stack + caption */
  row-gap: 10px;
}

/* 오른쪽 영상 2개 스택 */
.about-video-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;                    /* 두 영상 사이 공백 */
  height: 100%;
}

/* 공통 비디오 박스 */
.about-video {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

/* 비디오 공통 */
.about-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;            /* 원본 비율 달라도 프레임에 맞춤 */
  border-radius: 10px;
  background: #111;
}

/* 왼쪽 MagLev: 오른쪽 전체 높이에 맞춰 채움 */
.about-video-column.left {
  display: grid;
  grid-template-rows: 1fr auto; /* video + caption */
  row-gap: 10px;
}

.about-video.mag {
  height: 100%;
}

/* 왼쪽 video는 세로형이므로 contain이 더 자연스러울 수도 있음.
   프레임 꽉 채우고 싶으면 cover 유지 */
.about-video.mag video {
  height: 100%;
  object-fit: cover;
}

/* 오른쪽 모바일 로봇 박스: 동일 width, 동일 height 강제 */
.about-video.robot {
  width: 100%;
  aspect-ratio: 16 / 9;         /* 두 영상 너비/높이 완전 통일 */
}

/* caption */
.about-video-column figcaption {
  margin: 0;
  font-size: 14px;
  color: #aaa;
  text-align: center;
  line-height: 1.4;
}

/* =========================
   Mobile: stack videos
========================= */
@media (max-width: 768px) {
  .about-video-grid {
    grid-template-columns: 1fr;
  }

  .about-video-column.left,
  .about-video-column.right {
    display: block;
  }

  .about-video-stack {
    grid-template-rows: auto;
    gap: 16px;
  }

  .about-video.robot {
    aspect-ratio: 16 / 9;
  }

  .about-video.mag {
    aspect-ratio: 4 / 5;
  }

  .about-video.mag video,
  .about-video.robot video {
    width: 100%;
    height: 100%;
  }

  .about-video-column figcaption {
    margin-top: 10px;
  }
}

/* =========================
   Paper Preview Grid (TUNED)
========================= */
.paper-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 5px;                /*  여백 축소 */
  margin-top: 12px;
}

.paper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 250px;  /* 이미지와 같은 최대 폭 */
  width: 100%;
}

/* Paper thumbnail */
/* .paper-item img {
  width: 100%;
  max-width: 360px;         
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
  border: 1px solid #2a2a2a;
  background: #ffffff;
} */
.paper-item img {
  width: 100%;
  max-width: 250px;
  height: auto; /* aspect-ratio 대체 */
  object-fit: contain;
}

.paper-item figcaption {
  margin-top: 6px;
  font-size: 0.78rem;       /* 약간 키움 */
  color: #aaaaaa;
  text-align: center;
  line-height: 1.35;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1200px) {
  .paper-preview-grid {
    grid-template-columns: repeat(3, minmax(260px, 1fr));
  }
}

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

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

  .paper-item img {
    max-width: 420px;       /* 모바일에서는 크게 */
  }
}



/* Divider */
.sidebar-divider {
  border: none;
  border-top: 1px solid #333;
  margin: 16px 0;
}

/* Section label */
.sidebar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* Unified item */
.sidebar-item {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 10px;
  color: #fff;              /* 기본은 흰색 */
  text-decoration: none;
}

/* Badges */
.sidebar-badges a {
  display: inline-block;
  margin-right: 6px;
  margin-top: 6px;
}

.sidebar-link:hover {
  color: #000;
}

/* Link color */
a.sidebar-item {
  color: #4da3ff;           /* 링크만 파랑 */
}

a.sidebar-item:hover {
  color: #7bb8ff;
}




/* ===== Project Accordion ===== */
.project-box {
  background-color: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.project-box:hover {
  border-color: #3a3a3a;
}

/* clickable area */
.project-summary {
  cursor: pointer;
}

.project-title {
  font-size: 1.12rem;
  font-weight: 750;
  color: #f1f1f1;
  letter-spacing: 0.2px;
}

.project-meta {
  font-size: 0.92rem;
  color: #b7b7b7;
  margin-top: 6px;
}

/* ===== Toggle button (visual) ===== */
.project-toggle-btn {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid #ffffff;
  background-color: #04207a;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  pointer-events: none;
}

/* ===== Detail area ===== */
.project-detail {
  display: none;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #2a2a2a;
  color: #dedede;
  line-height: 1.8;
}

/* open state */
.project-box.open .project-detail {
  display: block;
}

/* Detail section headings: visual hierarchy */
.project-detail h3 {
  margin: 14px 0 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #171717;
  border: 1px solid #2a2a2a;
  color: #f0f0f0;
  font-size: 0.98rem;
  font-weight: 850;
  position: relative;
}

.project-detail h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 3px;
  background: #2b6cff;
}

/* Detail lists: unify indent and spacing */
.detail-list {
  margin: 8px 0 0 0;
  padding-left: 18px;
  color: #d8d8d8;
}

.detail-list li {
  margin: 6px 0;
}

.detail-list li::marker {
  color: #7d7d7d;
}

.project-detail p {
  margin: 6px 0 0 0;
  color: #d8d8d8;
}

