/* =========================================================
   VIPL — SHARED MODERN DESIGN
   Home / Research / People / Publications / ...
   ========================================================= */

:root {
  --vipl-blue: #2458df;
  --vipl-blue-dark: #1744bd;

  --vipl-text: #182230;
  --vipl-muted: #5d6b80;

  --vipl-bg: #ffffff;
  --vipl-soft: #f5f8ff;
  --vipl-border: #e2e8f2;

  --vipl-container: 1180px;
}


/* =========================================================
   SHARED CONTAINER
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--vipl-container);

  margin: 0 auto;

  padding-left: 36px;
  padding-right: 36px;
}


/* =========================================================
   INNER PAGE HERO
   Research / People / Publications / ...
   ========================================================= */

.page-hero {
  /* Research 페이지와 동일한 hero 여백 */
  padding: 68px 0 64px;

  background:
    radial-gradient(
      circle at 82% 40%,
      rgba(36, 88, 223, 0.10),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      #f7faff 55%,
      #eef4ff 100%
    );

  border-bottom: 1px solid #e8edf5;
}

.page-hero h1 {
  margin: 0;

  /* Research 페이지와 동일한 제목 크기 */
  font-size: clamp(46px, 4.5vw, 58px);
  line-height: 1.05;

  letter-spacing: -0.05em;
  font-weight: 750;

  color: var(--vipl-text);
}

.page-hero p {
  max-width: 720px;

  margin: 18px 0 0;

  /* Research 페이지와 동일한 부제 크기 */
  font-size: 19px;
  line-height: 1.6;

  color: var(--vipl-muted);
}



/* =========================================================
   RESEARCH PAGE
   ========================================================= */

/* Research 페이지에서는 기존 page-body padding 제거 */
body[data-page="research.html"] #page-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.research-page {
  padding-top: 56px;
  padding-bottom: 104px;
}

/* Intro */

.research-intro {
  max-width: 1080px;
  margin-bottom: 42px;
}

.research-intro-text {
  max-width: none;
  width: 100%;
}

.research-intro-label {
  margin: 0 0 12px !important;

  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--vipl-blue) !important;
}

.research-intro h2 {
  margin: 0 0 16px;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: -0.035em;

  color: var(--vipl-text);
}

.research-intro-text {
  margin: 0 !important;

  font-size: 17px !important;
  line-height: 1.75 !important;

  color: var(--vipl-muted) !important;
}

.research-intro p {
  margin: 0;

  font-size: 17px;
  line-height: 1.75;

  color: var(--vipl-muted);
}


/* =========================================================
   RESEARCH HERO
   ========================================================= */

body[data-page="research.html"] .page-hero {
  padding: 68px 0 64px;
}

body[data-page="research.html"] .page-hero h1::before {
  content: "RESEARCH AT VIPL";

  display: block;

  margin-bottom: 18px;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: 0.14em;

  color: var(--vipl-blue);
}

body[data-page="research.html"] .page-hero h1 {
  font-size: clamp(46px, 4.5vw, 58px);
  letter-spacing: -0.05em;
}

body[data-page="research.html"] .page-hero p {
  margin-top: 18px;

  font-size: 19px;
  line-height: 1.6;

  color: var(--vipl-muted);
}

/* =========================================================
   RESEARCH GRID
   ========================================================= */

.research-grid {
  width: 100%;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 22px;
}


/* =========================================================
   RESEARCH CARD
   ========================================================= */

.research-card {
  box-sizing: border-box;

  min-height: 270px;

  padding: 30px;

  background: #ffffff;

  border: 1px solid var(--vipl-border);
  border-radius: 18px;

  box-shadow:
    0 6px 20px rgba(20, 40, 80, 0.045);

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

.research-card:hover {
  transform: translateY(-4px);

  border-color: #c9d6f5;

  box-shadow:
    0 16px 38px rgba(30, 60, 120, 0.09);
}


/* =========================================================
   RESEARCH ICON
   ========================================================= */

.research-icon {
  width: 48px;
  height: 48px;

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

  margin-bottom: 20px;

  border-radius: 13px;

  background: #f0f5ff;

  font-size: 24px;
  line-height: 1;
}


/* =========================================================
   RESEARCH TYPOGRAPHY
   ========================================================= */

.research-card h3 {
  margin: 0 0 12px;

  font-size: 20px;
  line-height: 1.35;

  font-weight: 700;
  letter-spacing: -0.02em;

  color: var(--vipl-text);
}

.research-card p {
  margin: 0;

  font-size: 16px;
  line-height: 1.7;

  color: var(--vipl-muted);
}

/* =========================================================
   RESEARCH PHILOSOPHY
   ========================================================= */

.research-philosophy {
  margin-top: 96px;

  padding-top: 72px;

  border-top: 1px solid var(--vipl-border);
}


/* Heading */

.research-philosophy-head {
  margin-bottom: 42px;
}

.research-philosophy-head h2 {
  margin: 0;

  font-size: 36px;
  line-height: 1.2;

  letter-spacing: -0.04em;

  color: var(--vipl-text);
}


/* 3-column philosophy */

.research-philosophy-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 42px;
}


.research-philosophy-item {
  padding-top: 22px;

  border-top: 3px solid var(--vipl-blue);
}


.research-philosophy-item h3 {
  margin: 0 0 16px;

  font-size: 20px;
  line-height: 1.35;

  color: var(--vipl-text);
}


.research-philosophy-item p {
  margin: 0;

  font-size: 15.5px;
  line-height: 1.78;

  color: var(--vipl-muted);
}


/* Closing statement */

.research-closing {
  margin-top: 60px;

  padding: 32px 36px;

  background:
    linear-gradient(
      135deg,
      #f1f6ff 0%,
      #f7f9ff 100%
    );

  border-left: 4px solid var(--vipl-blue);
  border-radius: 0 16px 16px 0;
}


.research-closing p {
  margin: 0;

  font-size: 19px;
  line-height: 1.65;

  color: var(--vipl-text);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .container {
    padding-left: 26px;
    padding-right: 26px;
  }

  .page-hero {
    padding: 60px 0;
  }

  .research-page {
    padding-top: 64px;
    padding-bottom: 84px;
  }

  .research-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
   
   .research-philosophy-grid {
      grid-template-columns: 1fr;
      gap: 32px;
   } 
   .research-philosophy {
      margin-top: 72px;
      padding-top: 56px;
   }
}


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

@media (max-width: 600px) {

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-hero {
    padding: 48px 0;
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero p {
    font-size: 16px;
  }

  .research-page {
    padding-top: 48px;
    padding-bottom: 64px;
  }

  .research-intro {
    margin-bottom: 32px;
  }

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

  .research-card {
    min-height: auto;
    padding: 26px;
  }
}


/* =========================================================
   MODERN SUBPAGES
   People / Publications / Professor / Alumni / Teaching /
   Photos / Contact — matched to the Research page aesthetic.
   ========================================================= */

/* ---------- Shared inner-page body spacing (Research 페이지와 동일) ---------- */
body:not([data-page="index.html"]):not([data-page="research.html"]) #page-body {
  padding-top: 56px;
  padding-bottom: 104px;
}

/* ---------- Shared inner-page intro (Research intro 톤에 맞춤) ---------- */
body:not([data-page="index.html"]):not([data-page="research.html"]) .section-head {
  max-width: 1080px;
  margin: 0 0 42px;
}
body:not([data-page="index.html"]):not([data-page="research.html"]) .section-head p,
.pub-intro p{
  font-size: 17px;
  line-height: 1.75;
  color: var(--vipl-muted);
}

/* ---------- Shared hero eyebrow labels ---------- */
body[data-page="people.html"] .page-hero h1::before,
body[data-page="publications.html"] .page-hero h1::before,
body[data-page="professor.html"] .page-hero h1::before,
body[data-page="alumni.html"] .page-hero h1::before,
body[data-page="teaching.html"] .page-hero h1::before,
body[data-page="photos.html"] .page-hero h1::before,
body[data-page="contact.html"] .page-hero h1::before {
  display: block;
  margin-bottom: 18px;

  font-size: 13px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: 0.14em;

  color: var(--vipl-blue);
}
body[data-page="people.html"] .page-hero h1::before      { content: "PEOPLE AT VIPL"; }
body[data-page="publications.html"] .page-hero h1::before { content: "RESEARCH OUTPUT"; }
body[data-page="professor.html"] .page-hero h1::before    { content: "FACULTY AT VIPL"; }
body[data-page="alumni.html"] .page-hero h1::before       { content: "WHERE THEY ARE NOW"; }
body[data-page="teaching.html"] .page-hero h1::before      { content: "EDUCATION"; }
body[data-page="photos.html"] .page-hero h1::before       { content: "LIFE IN THE LAB"; }
body[data-page="contact.html"] .page-hero h1::before      { content: "GET IN TOUCH"; }


/* =========================================================
   MODERN AVATARS — portrait framing
   Photos are portrait (e.g. 3:4). The old circular/square
   crop distorted them, so frame every avatar as a rounded
   portrait with object-fit: cover (no stretching).
   ========================================================= */

.avatar {
  object-fit: cover;
  object-position: center top;
}

/* Team member avatars */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 48px;

  align-items: start;
}

/*

   =========================================================
   PEOPLE — STUDENT INFO
   ========================================================= */

.person {
  min-width: 0;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

/* =========================================================
   PEOPLE — STUDENT PHOTO
   ========================================================= */

.person .avatar {
  display: block;

  width: 180px;
  height: 225px;

  margin: 0 0 18px;

  object-fit: cover;
  object-position: center 35%;

  background: #f7f9fc;

  border: 1px solid #e3e8f0;
  border-radius: 8px;

  box-shadow:
    0 5px 16px rgba(20, 40, 80, 0.055);
}

/* =========================================================
   NAME
   ========================================================= */

.person .name {
  width: 100%;

  margin: 0 0 7px;

  font-size: 18px;
  line-height: 1.35;

  font-weight: 700;
  letter-spacing: -0.02em;

  color: var(--vipl-text);

  text-align: center;
}

/* =========================================================
   EMAIL
   ========================================================= */

.person-email {
  width: 100%;

  margin: 0 0 7px;

  font-size: 13.5px;
  line-height: 1.5;

  font-weight: 500;

  color: #53647b;

  text-align: center;

  overflow-wrap: anywhere;
}

/* =========================================================
   EDUCATION
   ========================================================= */

.person-education {
  width: 100%;

  margin: 0;

  font-size: 13.5px;
  line-height: 1.55;

  font-weight: 400;

  color: var(--vipl-muted);

  text-align: center;
}
.people-intro {
  margin-bottom: 34px;
}

.people-eyebrow {
  margin: 0 0 14px;

  font-size: 12px;
  line-height: 1;

  font-weight: 700;
  letter-spacing: 0.14em;

  color: var(--vipl-blue);
}

.people-intro h2 {
  margin: 0;

  font-size: 34px;
  line-height: 1.2;

  font-weight: 700;
  letter-spacing: -0.035em;

  color: var(--vipl-text);
}


/* =========================================================
   PEOPLE — group headings
   ========================================================= */

.people-group { margin-bottom: 64px; }

.people-group h3 {
  position: relative;

  margin: 0 0 30px;
  padding-bottom: 16px;

  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;

  color: var(--vipl-text);

  border-bottom: 1px solid var(--vipl-border);
}
.people-group h3::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -1px;

  width: 46px;
  height: 3px;

  background: var(--vipl-blue);
}

/* =========================================================
   PEOPLE / PROFESSOR — NAME
   ========================================================= */

.prof-kr {
  margin-left: 9px;

  font-size: 20px;
  line-height: 1.25;
  font-weight: 700;

  letter-spacing: -0.03em;

  color: var(--vipl-text);
}

/* =========================================================
   PEOPLE — Principal Investigator card
   ========================================================= */

.prof-card {
  grid-template-columns: 210px 1fr;
  gap: 42px;

  padding: 38px;

  background:
    linear-gradient(
      135deg,
      #ffffff 0%,
      #fbfcff 58%,
      #f7faff 100%
    );

  border: 1px solid #dde5f1;
  border-radius: 14px;

  box-shadow:
    0 8px 26px rgba(25, 45, 90, 0.045);

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


.prof-card .avatar {
  width: 100%;
  max-width: 210px;
  height: auto;

  aspect-ratio: 4 / 5;

  margin: 0;

  border-radius: 10px;

  border: 1px solid #e1e6ef;

  box-shadow:
    0 8px 20px rgba(20, 40, 80, 0.07);
}


/* Text */


.prof-card h3 {
  margin: 0;

  font-size: 24px;
  line-height: 1.25;

  font-weight: 700;
  letter-spacing: -0.03em;

  color: var(--vipl-text);
   
  border-bottom: none;
}

.prof-card h3::before,
.prof-card h3::after {
  display: none;
  content: none;
}

.prof-card .prof-title {
  margin: 0 0 5px;

  font-size: 16px;
  font-weight: 700;

  color: var(--vipl-blue);
}

.prof-card .prof-meta {
  margin: 0 0 22px;

  font-size: 15px;
  line-height: 1.6;

  font-weight: 500;

  color: #000108;
}

.prof-card .prof-bio {
  max-width: 820px;

  margin: 0 0 22px;

  font-size: 16px;
  line-height: 1.75;

  font-weight: 400;

  color: #46556b;
}

.prof-detail-bio {
  max-width: 900px;

  margin-top: 34px;
  margin-bottom: 58px;
}

.prof-detail-bio p {
  margin: 0 0 18px;

  font-size: 16.5px;
  line-height: 1.78;

  font-weight: 400;

  color: #46556b;
}

.prof-detail-bio p:last-child {
  margin-bottom: 0;
}

.prof-detail-bio p:first-child {
  font-size: 17px;

  font-weight: 500;

  color: #344256;
}

/* tag */
.prof-card .tag,
.prof-detail .tag {
  padding: 5px 9px;

  background: #f6f8fc;

  border: 1px solid #e4e9f2;
  border-radius: 5px;

  font-size: 12.5px;
  line-height: 1.4;

  font-weight: 600;

  color: #44546a;
}

/* Research Interests */
.prof-detail-interests {
  margin: 0 0 30px;
}


.prof-detail-label {
  display: block;

  margin-bottom: 10px;

  font-size: 10px;
  line-height: 1;

  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: #8390a2;
}


.prof-detail .tag {
  padding: 5px 9px;

  background: #f6f8fc;

  border: 1px solid #e4e9f2;
  border-radius: 5px;

  font-size: 12.5px;
  line-height: 1.4;

  font-weight: 600;

  color: #44546a;
}

.prof-card:hover .view-profile {
  transform: translateX(3px);
}

/* Full profile */

.view-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-top: 30px;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;

  color: var(--vipl-blue);

  text-decoration: none;

  transition:
    color 0.2s ease,
    gap 0.2s ease;
}

/* =========================================================
   PEOPLE / PROFESSOR — RESEARCH INTERESTS
   ========================================================= */

.prof-interests {
  margin-top: 24px;
}

.prof-interests-label {
  display: block;

  margin-bottom: 10px;

  font-size: 16px;
  line-height: 1.4;

  font-weight: 500;

  color: var(--vipl-text);
}

.prof-interests .tags {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;
}

.prof-interests .tag {
  padding: 5px 10px;

  background: #f6f8fc;

  border: 1px solid #e3e8f1;
  border-radius: 5px;

  font-size: 12.5px;
  line-height: 1.4;

  font-weight: 600;

  color: #46566d;
}

.view-profile:hover {
  color: var(--vipl-blue-dark);
  gap: 12px;
}

.view-profile-arrow {
  transition: transform 0.2s ease;
}

.view-profile:hover .view-profile-arrow {
  transform: translateX(2px);
}

/* =========================================================
   PEOPLE — CURRENT MEMBERS
   ========================================================= */

.members-intro {
  margin-top: 82px;
  margin-bottom: 18px;
}

.members-eyebrow {
  margin: 0;

  font-size: 12px;
  line-height: 1;

  font-weight: 700;
  letter-spacing: 0.14em;

  color: var(--vipl-blue);
}

.member-group {
  margin-top: 0;
  margin-bottom: 58px;
}

.member-group + .member-group {
  margin-top: 64px;
}

.member-group-title {
  margin: 0 0 28px;

  padding-bottom: 14px;

  font-size: 24px;
  line-height: 1.25;

  font-weight: 700;
  letter-spacing: -0.03em;

  color: var(--vipl-text);

  border-bottom: 1px solid var(--vipl-border);
}

.member-group-title::before,
.member-group-title::after {
  display: none !important;
  content: none !important;
}

/* =========================================================
   PEOPLE — Research tags
   ========================================================= */

.tag {
  padding: 5px 10px;

  background: #f5f7fb;

  border: 1px solid #e6ebf3;
  border-radius: 5px;

  font-size: 13px;
  font-weight: 600;

  color: #43516a;
}



/* =========================================================
   PEOPLE — Alumni call-to-action banner
   ========================================================= */

.alumni-cta {
  padding: 26px 32px;

  border: 1px solid var(--vipl-border);
  border-radius: 18px;

  background: linear-gradient(135deg, #f1f6ff 0%, #eaf1ff 100%);
}
.alumni-cta:hover {
  transform: translateY(-3px);
  border-color: #c9d6f5;
  box-shadow: 0 16px 38px rgba(30, 60, 120, 0.10);
}
.alumni-cta-eyebrow { color: var(--vipl-blue); }
.alumni-cta-title { color: var(--vipl-text); }
.alumni-cta-arrow { color: var(--vipl-blue); }

/* =========================================================
   PROFESSOR — DETAIL PAGE
   ========================================================= */

.professor-page {
  padding-top: 58px;
  padding-bottom: 110px;
}


/* =========================================================
   PROFESSOR — BACK LINK
   ========================================================= */

.professor-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin-bottom: 34px;

  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;

  color: var(--vipl-blue);
  text-decoration: none;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.professor-page .back-link:hover {
  color: var(--vipl-blue-dark);
  transform: translateX(-3px);
  text-decoration: none;
}


.prof-detail {
  display: grid;

  grid-template-columns: 200px minmax(0, 1fr);

  gap: 48px;

  align-items: start;
}

.prof-detail-header {
  margin-bottom: 28px;
}

.prof-detail-main h1 {
  margin: 0 0 16px;

  font-size: 38px;
  line-height: 1.15;

  font-weight: 700;
  letter-spacing: -0.04em;

  color: var(--vipl-text);
}


.prof-detail-main .prof-kr {
  margin-left: 10px;

  font-size: 20px;
  line-height: 1.2;

  font-weight: 700;

  color: var(--vipl-text);
}


.prof-detail-main .prof-title {
  margin: 0 0 8px;

  font-size: 18px;
  line-height: 1.5;

  font-weight: 650;

  color: var(--vipl-blue);
}


.prof-detail-main .prof-meta {
  margin: 0;

  font-size: 15.5px;
  line-height: 1.6;

  font-weight: 500;

  color: #000108;
}

.prof-contact {
  margin-bottom: 28px;
  color: #000108;
}


.prof-contact-item {
  display: flex;
  flex-direction: column;

  gap: 6px;
}


.prof-contact-label {
  font-size: 10px;
  line-height: 1;

  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color:  #000108;
}


.prof-contact-value {
  font-size: 14px;
  line-height: 1.5;

  font-weight: 500;

  color: #000108;
}


.avatar.prof-detail-avatar {
  width: 100%;
  max-width: 176px;
  height: auto;
  aspect-ratio: 4 / 5;

  margin: 0 auto 20px;

  border-radius: 18px;
  border: 1px solid var(--vipl-border);

  box-shadow: 0 10px 26px rgba(20, 40, 80, 0.10);
}

.btn-link {
  border-color: var(--vipl-border);
  color: var(--vipl-blue);
  border-radius: 12px;
}
.btn-link:hover { background: #f0f5ff; border-color: #c9d6f5; }


/* =========================================================
   PROFESSOR — SIDEBAR LINKS
   ========================================================= */

.prof-detail-links {
  display: flex;
  flex-direction: column;

  margin-top: 24px;

  border-top: 1px solid var(--vipl-border);
}

.prof-detail-links .btn-link {
  display: flex;

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

  width: 100%;

  padding: 14px 2px;

  background: transparent;

  border: 0;
  border-bottom: 1px solid var(--vipl-border);
  border-radius: 0;

  box-shadow: none;

  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;

  color: #3f4d63;

  text-decoration: none;

  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
}


/* External-link arrow */

.prof-detail-links .btn-link::after {
  content: "↗";

  margin-left: 12px;

  font-size: 13px;
  font-weight: 600;

  color: var(--vipl-blue);
}


/* Hover */

.prof-detail-links .btn-link:hover {
  margin-top: 24px;
   
  padding-left: 5px;

  background: transparent;

  border-color: var(--vipl-border);

  color: var(--vipl-blue);

  box-shadow: none;
  transform: none;
}

.prof-detail-main .prof-title { color: var(--vipl-blue); }
.prof-detail-main .prof-meta { color: #344256; }
.prof-detail-main .prof-interests {
  margin-top: 0;
  margin-bottom: 32px;
}

.cv-block {
  margin-top: 52px;
}


.cv-title {
  margin: 0 0 24px;

  padding-bottom: 14px;

  font-size: 24px;
  line-height: 1.25;

  font-weight: 700;
  letter-spacing: -0.03em;

  color: var(--vipl-text);

  border-bottom: 1px solid var(--vipl-border);
}


.cv-title::before {
  content: "";

  display: block;

  width: 36px;
  height: 3px;

  margin-bottom: 13px;

  background: var(--vipl-blue);
}

/* =========================================================
   PROFESSOR — EDUCATION DETAILS
   ========================================================= */

.cv-education-detail {
  display: block;

  margin-top: 6px;

  font-size: 14px;
  line-height: 1.55;

  font-weight: 400;

  color: var(--vipl-muted);
}

.cv-detail-label {
  font-weight: 600;

  color: #4b5a70;
}

.cv-education-detail em {
  font-style: italic;

  color: #4b5a70;
}

.cv-year {
  color: var(--vipl-blue);
  line-height: 1.45;
  white-space: nowrap;   /* 날짜의 각 부분(시작/끝)이 중간에서 쪼개지지 않도록 */
}
.cv-org {
  display: block;

  margin-top: 5px;

  color: var(--vipl-muted);
}

/* Academic Activities — 항목 텍스트(과하지 않은 강조) */
.cv-activity {
  font-weight: 500;
  color: var(--vipl-text);
}

/* Academic Services — role + detail */
.cv-service {
  padding: 12px 0;
  border-bottom: 1px solid var(--vipl-border);
}
.cv-service:last-child { border-bottom: none; }
.cv-service-role {
  font-weight: 700;
  color: var(--vipl-text);
}
.cv-service-detail {
  margin-top: 3px;
  font-size: 0.95rem;
  color: var(--vipl-muted);
}

/* Invited Talks — period + title + detail */
.cv-talk {
  padding: 14px 0;
  border-bottom: 1px solid var(--vipl-border);
}
.cv-talk:last-child { border-bottom: none; }

/* 10개 초과 항목은 기본 숨김, "More" 클릭 시 표시 */
.talk-hidden { display: none; }
.cv-talk-list.expanded .talk-hidden { display: block; }
.cv-block .more-wrap { margin-top: 18px; }
.cv-talk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.cv-talk-period {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vipl-blue);
  white-space: nowrap;
}
.cv-talk-title {
  font-weight: 700;
  color: var(--vipl-text);
}
.cv-talk-detail {
  margin-top: 5px;
  font-size: 0.95rem;
  color: var(--vipl-muted);
}


/* =========================================================
   ALUMNI — grid page
   ========================================================= */

.alum-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 26px;
}
.alum-card {
  padding: 30px 22px 26px;

  border: 1px solid var(--vipl-border);
  border-radius: 18px;

  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.045);
}
.alum-card:hover {
  transform: translateY(-4px);
  border-color: #c9d6f5;
  box-shadow: 0 16px 38px rgba(30, 60, 120, 0.09);
}
.avatar.alum-avatar {
  width: 100%;
  max-width: 128px;
  height: auto;
  aspect-ratio: 4 / 5;

  margin: 0 auto 16px;

  border-radius: 14px;
  border: 1px solid var(--vipl-border);

  font-size: 1.7rem;
}
.alum-name { color: var(--vipl-text); }
.alum-badge.ms { background: #e6efff; color: var(--vipl-blue); }
.alum-pos { color: var(--vipl-text); }
.alum-note { color: var(--vipl-muted); }


/* =========================================================
   PUBLICATIONS
   ========================================================= */

body[data-page="publications.html"] #page-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}


/* =========================================================
   PUBLICATIONS — PAGE
   ========================================================= */

.pub-page {
  padding-top: 56px;
  padding-bottom: 104px;
}


/* =========================================================
   PUBLICATIONS — INTRO
   ========================================================= */

.pub-intro {
  max-width: 1080px;
  margin-bottom: 42px;
}


/* Eyebrow */

.pub-intro .pub-intro-label {
  margin: 0 0 12px !important;
   
  font-size: 12px !important;;
  line-height: 1 !important;;
  font-weight: 700;
   
  letter-spacing: 0.14em;  
   text-transform: uppercase;

  color: var(--vipl-blue) !important;;
}

/* Heading */

.pub-intro h2 {
  margin: 0 0 16px;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: -0.035em;

  color: var(--vipl-text);
}


/* Supporting text */

.pub-intro .pub-intro-text {
  margin: 0 !important;

  font-size: 17px !important;
  line-height: 1.75 !important;

  color: var(--vipl-muted) !important;
}

/* Publication footnote */
body[data-page="publications.html"] #page-body {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pub-note {
  display: block;

  margin-top: 32px;
  padding: 0;

  background: transparent;

  border: 0;
  border-radius: 0;

  font-size: 12.5px;
  line-height: 1.6;

  font-weight: 500;
  letter-spacing: 0;

  color: #7a8798;
}

/* Year group heading with blue accent bar */
.pub-year { margin-bottom: 56px; }
.pub-year > h3 {
  position: relative;

  margin: 0 0 26px;
  padding-bottom: 14px;

  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;

  color: var(--vipl-text);

  border-bottom: 1px solid var(--vipl-border);
}
.pub-year > h3::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -1px;

  width: 46px;
  height: 3px;

  background: var(--vipl-blue);
}

/* Two-column publication cards */
.pub-list {
  display: grid;
  gap: 22px;
}
.pub-list .pub {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: center;

  padding: 26px 30px;

  background: #ffffff;
  border: 1px solid var(--vipl-border);
  border-radius: 18px;

  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.045);

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

.pub-list .pub.pub-no-figure {
  grid-template-columns: 1fr;
}

.pub-list .pub:last-child { border-bottom: 1px solid var(--vipl-border); }

.pub-list .pub:hover {
  transform: translateY(-3px);
  border-color: #c9d6f5;
  box-shadow: 0 18px 40px rgba(30, 60, 120, 0.10);
}

/* Left column — text */

/* Research-area chips (연관 연구 분야) */
.pub-areas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 13px;
}
.pub-area {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 12px 4px 10px;

  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;

  color: #44526b;
  background: #f4f6fb;
  border: 1px solid #e6ebf5;
  border-radius: 999px;
}
.pub-area-icon {
  font-size: 13px;
  line-height: 1;
}

.pub .pub-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--vipl-text);
}
.pub .pub-authors {
  margin: 0 0 5px;

  font-size: 14.5px;
  line-height: 1.6;

  color: #526176;
}
.pub .pub-authors .me {
  color: var(--vipl-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
}

/* =========================================================
   PUBLICATIONS — AUTHOR HIGHLIGHT
   ========================================================= */

/* Bold */
.pub-author-bold {
  font-weight: 700;
  color: var(--vipl-text);
}


/* Bold + underline */
.pub-author-highlight {
  font-weight: 700;

  color: var(--vipl-text);

  text-decoration-line: underline;
  text-decoration-color: var(--vipl-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pub .pub-venue {
  margin: 0;

  font-size: 14px;
  line-height: 1.5;

  font-weight: 600;

  color: var(--vipl-blue);
}

/* Highlight note (e.g. front-cover / award) */
.pub-highlight {
  margin-top: 9px;
  display: inline-flex;
  align-items: center;

  padding: 3px 12px;

  font-size: 12.5px;
  font-weight: 700;

  color: #9a6b00;
  background: #fff7e6;
  border: 1px solid #f2e0b5;
  border-radius: 999px;
}

/* Link pills */
.pub .pub-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pub .pub-links .pub-link {
  display: inline-flex;
  align-items: center;

  padding: 6px 15px;

  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;

  color: var(--vipl-blue);
  background: #f0f5ff;
  border: 1px solid #dbe4fb;
  border-radius: 999px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
a.pub-link:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: var(--vipl-blue);
  border-color: var(--vipl-blue);
  text-decoration: none;
}

/* url 미입력 링크 — 회색 자리표시(클릭 불가) */
.pub .pub-links .pub-link-todo {
  color: #9aa7bd;
  background: #f4f6fb;
  border: 1px dashed #d3dbe8;
  cursor: default;
}

/* Right column — figure */
.pub-figure {
  position: relative;
  overflow: hidden;

  aspect-ratio: 16 / 10;

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

  padding: 10px;
  box-sizing: border-box;

  border-radius: 14px;
  border: 1px solid var(--vipl-border);

  background: #ffffff;
}

.pub-figure img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
  object-position: center;
}

.pub-list .pub:hover .pub-figure img {
  transform: none;
}

.pub-figure-mark {
  position: absolute;
  inset: 0;

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

  font-size: 30px;
  opacity: 0.45;
}
.pub-figure.is-empty .pub-figure-mark {
  display: flex;
}

@media (max-width: 760px) {
  .pub-list .pub {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px;
  }
  .pub-figure { order: 2; }
}


/* =========================================================
   TEACHING
   ========================================================= */

.course {
  padding: 24px 0;
  border-bottom: 1px solid var(--vipl-border);
}
.course .course-code {
  background: #f0f5ff;
  color: var(--vipl-blue);
  border-radius: 12px;
}
.course .course-title { color: var(--vipl-text); }
.course .course-desc { color: var(--vipl-muted); }
.course .course-title .course-term { color: var(--vipl-muted); }


/* =========================================================
   PHOTOS
   ========================================================= */

.photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.photo {
  border: 1px solid var(--vipl-border);
  border-radius: 18px;

  box-shadow: 0 6px 20px rgba(20, 40, 80, 0.045);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.photo:hover {
  transform: translateY(-4px);
  border-color: #c9d6f5;
  box-shadow: 0 16px 38px rgba(30, 60, 120, 0.09);
}
.photo .placeholder {
  background: linear-gradient(135deg, #eef4ff 0%, #e2ecff 100%);
  color: var(--vipl-blue);
}
.photo .caption { 
  color: #3f4d63;
  font-weight: 500;
}

/* =========================================================
   PHOTOS — CAROUSEL
   ========================================================= */

.photo-carousel {
  position: relative;

  width: 100%;

  aspect-ratio: 4 / 3;

  overflow: hidden;

  background: #f7f9fc;

  border-radius: 18px 18px 0 0;
}


/* Slider */

.photo-slider {
  display: flex;

  width: 100%;
  height: 100%;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
}

.photo-slider::-webkit-scrollbar {
  display: none;
}


/* Each slide */

.photo-slide {
  flex: 0 0 100%;

  width: 100%;
  height: 100%;

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

  scroll-snap-align: start;

  background: #f7f9fc;
}


/* Important:
   contain = 사진을 자르지 않음 */

.photo-slide img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* Navigation buttons */

.photo-nav {
  position: absolute;
  top: 50%;

  width: 38px;
  height: 38px;

  padding: 0;

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

  transform: translateY(-50%);

  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;

  background: rgba(20, 34, 52, 0.48);
  color: #fff;

  font-size: 27px;
  line-height: 1;

  cursor: pointer;

  backdrop-filter: blur(6px);

  opacity: 0;

  transition:
    opacity 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;

  z-index: 2;
}


.photo-prev {
  left: 12px;
}


.photo-next {
  right: 12px;
}


/* 마우스를 올렸을 때만 화살표 표시 */

.photo-carousel:hover .photo-nav {
  opacity: 1;
}


.photo-nav:hover {
  background: rgba(20, 34, 52, 0.72);
}


/* Current photo number */

.photo-count {
  position: absolute;

  right: 12px;
  bottom: 10px;

  padding: 4px 9px;

  font-size: 12px;
  font-weight: 600;

  color: #fff;

  background: rgba(20, 34, 52, 0.55);

  border-radius: 999px;

  backdrop-filter: blur(6px);

  z-index: 2;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 64px;

  align-items: start;
  margin-top: 28px;
}

.contact-list {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: no
     ne;
}

.contact-list li {
  display: grid;

  grid-template-columns: 24px 1fr;
  column-gap: 14px;

  align-items: start;

  padding: 18px 0;

  border-bottom: 1px solid var(--vipl-border);
}

.contact-list li:first-child {
  padding-top: 0;
}

.contact-list .ci {
  line-height: 1;
}

.contact-list .ck {
  display: block;

  margin: 0;

  font-weight: 700;
  color: var(--vipl-text);
}

.contact-list .cv {
  display: block;

  margin: 0;

  line-height: 1.5;

  color: #46556b;
}

.contact-list li:last-child {
  border-bottom: none;
}

/* =========================================================
   CONTACT — PAGE
   ========================================================= */

.contact-page {
  padding-top: 0;
}


/* =========================================================
   CONTACT — INTRO
   ========================================================= */

.contact-intro {
  width: 100%;
  max-width: 1080px;
}


/* Eyebrow */

.contact-intro-label {
  margin: 0 0 12px;

  font-size: 12px;
  line-height: 1;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;

  color: var(--vipl-blue);
}


/* Heading */

.contact-intro h2 {
  margin: 0;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: -0.035em;

  color: var(--vipl-text);
}


/* =========================================================
   CONTACT — MAIN GRID
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 84px;
  align-items: start;
  margin-top: 28px;
}


/* Left description */

.contact-copy {
  max-width: none;
}

.contact-intro-text {
  margin: 0 0 16px;

  font-size: 17px;
  line-height: 1.75;

  color: var(--vipl-muted);
}

.contact-intro-text:last-child {
  margin-bottom: 0;
}


/* Right contact information */

.contact-list {
  margin: 0;
  padding: 0;

  list-style: none;

  border-top: none;
}

.contact-list li {
  display: grid;

  grid-template-columns: 28px 1fr;

  gap: 14px;

  padding: 16px 0;

  border-bottom: none;
}

.contact-list .ci {
  line-height: 1.5;
}

.contact-list .ck {
  display: block;

  margin-bottom: 3px;

  font-weight: 700;

  color: var(--vipl-text);
}

.contact-list .cv {
  display: block;

  line-height: 1.6;

  color: var(--vipl-muted);
}


/* =========================================================
   CONTACT — JOIN VIPL
   ========================================================= */

.contact-join {
  width: 100%;

  margin-top: 64px;
  padding-top: 48px;

  border-top: 1px solid var(--vipl-border);
}

.contact-join-head {
  margin-bottom: 18px;
}

.contact-join h2 {
  margin: 0;

  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;

  letter-spacing: -0.035em;

  color: var(--vipl-text);
}

.contact-join-copy {
  width: 100%;
  max-width: none;
}

.contact-join-text {
  width: 100%;
  max-width: none;

  margin: 0 0 18px;

  font-size: 17px;
  line-height: 1.75;

  color: var(--vipl-muted);
}

.contact-join-text:last-child {
  margin-bottom: 0;
}

/* =========================================================
   MODERN SUBPAGES — TABLET / MOBILE
   ========================================================= */

@media (max-width: 720px) {
  .prof-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .prof-card .avatar {
    max-width: 200px;
    margin: 0 auto;
  }

  .prof-detail {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .avatar.prof-detail-avatar { max-width: 200px; }

     .contact-grid {
    grid-template-columns: 1fr;

    gap: 32px;
  }

  .contact-copy {
    max-width: none;
  }

  .contact-join {
    grid-template-columns: 1fr;

    gap: 20px;

    margin-top: 56px;
    padding-top: 40px;
  }

  .contact-join-text {
    max-width: none;

    margin-top: 0;
  }
}

@media (max-width: 600px) {
  body:not([data-page="index.html"]):not([data-page="research.html"]) #page-body {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .people-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px;
  }
}
