/* Academic Pages 원래 템플릿 스타일 유지하면서 간격 조정 */

/* 네비게이션과 콘텐츠 사이 간격 줄이기 */
.masthead {
  margin-bottom: 0 !important;
  border-bottom: 1px solid #f2f3f3;
  padding-bottom: 0 !important;
}

/* 메인 컨테이너 여백 조정 */
#main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* 사이드바 스타일 */
.sidebar {
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  margin-bottom: 1em;
}

@media screen and (min-width: 1024px) {
  .sidebar {
    float: left;
    width: calc(200px - 1em);
    opacity: 1;
    -webkit-transition: opacity 0.2s ease-in-out;
    transition: opacity 0.2s ease-in-out;
    height: 100vh;
    overflow-y: auto;
    position: fixed;
    padding-top: 2em;
  }
}

.author__avatar {
  display: table-cell;
  vertical-align: top;
  width: 36px;
}

@media screen and (min-width: 1024px) {
  .author__avatar {
    display: block;
    width: auto;
    height: auto;
  }

  .author__avatar img {
    max-width: 175px;
    border-radius: 50%;
    padding: 5px;
    border: 1px solid #f2f3f3;
  }
}

.author__content {
  display: table-cell;
  vertical-align: top;
  padding-left: 15px;
  padding-right: 25px;
  line-height: 1;
}

@media screen and (min-width: 1024px) {
  .author__content {
    display: block;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

.author__name {
  margin: 0;
  font-size: 1em;
}

@media screen and (min-width: 1024px) {
  .author__name {
    margin-top: 10px;
    margin-bottom: 10px;
  }
}

.author__bio {
  margin: 0;
  font-size: 0.9em;
}

@media screen and (min-width: 1024px) {
  .author__bio {
    margin-top: 10px;
    margin-bottom: 20px;
  }
}

.author__urls-wrapper {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  z-index: 10;
  cursor: pointer;
}

@media screen and (min-width: 1024px) {
  .author__urls-wrapper {
    display: block;
  }

  .author__urls-wrapper button {
    display: none;
  }
}

.author__urls {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 15px;
  padding: 10px;
  list-style-type: none;
  border: 1px solid #f2f3f3;
  border-radius: 4px;
  background: #fff;
  z-index: -1;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
  cursor: default;
}

@media screen and (min-width: 1024px) {
  .author__urls {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

.author__urls li {
  white-space: nowrap;
  font-size: 0.9em;
}

.author__urls a {
  display: block;
  margin-bottom: 5px;
  padding-right: 5px;
  padding-top: 2px;
  padding-bottom: 2px;
  color: inherit;
  text-decoration: none;
}

.author__urls a:hover {
  text-decoration: underline;
}

/* 메인 콘텐츠 영역 */
@media screen and (min-width: 1024px) {
  .page {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding-left: 3em;
    padding-right: 3em;
  }
}

/* 제목 간격 조정 */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

/* 메인 콘텐츠 상단 여백 조정 */
.page__content {
  margin-top: 0.5em;
}

/* 페이지 헤더 정렬 */
.page__inner-wrap header {
  margin-bottom: 1em;
}

/* 이미지 크기 조정 클래스들 */
.img-small {
  width: 200px;
  height: auto;
}

.img-medium {
  width: 400px;
  height: auto;
}

.img-large {
  width: 800px;
  height: auto;
  max-width: 100%;
}

.img-thumbnail {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.img-circle {
  border-radius: 50%;
  width: 200px;
  height: 200px;
  object-fit: cover;
}

.img-bordered {
  border: 2px solid #ddd;
  padding: 5px;
  border-radius: 4px;
}

/* 모든 이미지에 대한 반응형 설정 */
img.responsive {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 프로젝트 페이지 스타일 */
.projects {
  margin-bottom: 40px;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.card.hoverable:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.card-img-top, .card-img {
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.card-text {
  color: #666;
  margin-bottom: 1rem;
}

.github-icon {
  display: flex;
  align-items: center;
}

.gh-icon {
  color: #333;
  font-size: 1.2rem;
}

.stars {
  margin-left: 5px;
  font-size: 0.9rem;
  color: #666;
}

.demo-gallery-section {
  margin: 0 0 3rem;
  padding: 1.5rem 0 0.5rem;
}

.demo-gallery-intro {
  max-width: 720px;
  margin-bottom: 1.5rem;
  color: #5b6573;
}

.demo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.demo-gallery-card {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.demo-gallery-card h3 {
  margin: 0.85rem 0 0;
  font-size: 1.05rem;
}

.demo-gallery-video {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #0f172a;
}

.publication-default-header,
.publication-page__meta {
  display: none;
}

.publication-hero {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%), linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.06);
}

.publication-hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
}

.publication-hero__authors,
.publication-hero__venue,
.publication-hero__note {
  margin: 0.7rem 0 0;
}

.publication-hero__authors {
  font-size: 1rem;
  color: #0f172a;
}

.publication-hero__venue {
  font-weight: 600;
  color: #1d4ed8;
}

.publication-hero__note {
  color: #64748b;
}

.publication-hero__media {
  margin-top: 1.2rem;
  overflow: hidden;
  border-radius: 18px;
  background: #020617;
}

.publication-hero__media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020617;
}

.publication-page__content {
  padding: 1.4rem 1.5rem;
  border: 1px solid #e6ebf2;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.pub-link--placeholder {
  cursor: pointer;
  border: none;
}

.pub-inline-notice[hidden] {
  display: none !important;
}

.pub-inline-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 280px;
  max-width: 360px;
  padding: 14px 42px 14px 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

.pub-inline-notice__message {
  font-size: 14px;
  font-weight: 600;
}

.pub-inline-notice__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
