﻿:root {
  --nav-bg: #304a69;
  --nav-bg-2: #243a55;
  --ink: #0f1a28;
  --muted: #5b6a7c;
  --line: #e2e9f2;
  --card: #ffffff;
  --bg: #ffffff;
  --primary: #0a4b96;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

* { box-sizing: border-box; }

body {
  font-family: Roboto, "Noto Sans KR", sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background: var(--bg);
}

/* Keep title wrapping on word boundaries (no character-by-character breaks) */
h1, h2, h3, h4, h5, h6,
.sub-title-main,
.sub-title,
.entry-title,
.member-name,
.pub-title,
.pub-table-title,
.timeline-card-title,
.patcert-title,
.capstone-project-title {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
}

a { color: inherit; text-decoration: none; }

a:focus, button:focus {
  outline: 2px solid #B08968;
  outline-offset: 2px;
}

.site-content {
  width: 100%;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col-xs-12, .col-sm-6, .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-9, .col-md-12 {
  width: 100%;
  padding: 0 12px;
}

/* Header */
.site-header {
  --header-logo-h: 64px;
  /* Desktop top-menu horizontal offset: positive => move right, negative => move left */
  --header-nav-offset-x: 300px;
  background: #ffffff;
  border-bottom: 1px solid #e6edf5;
  transition: background .24s ease, border-color .24s ease, backdrop-filter .24s ease, -webkit-backdrop-filter .24s ease;
}

.header-bar {
  height: var(--header-logo-h);
  min-height: var(--header-logo-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 0;
}

.branding {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}
.branding > a {
  display: flex;
  align-items: center;
  height: 100%;
}

.home-intro-replay-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.32);
  color: #ffffff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.home-page .home-intro-replay-btn {
  display: inline-flex;
  position: fixed;
  left: 10px;
  top: 12px;
  z-index: 80;
}

.home-intro-replay-btn:hover {
  transform: translateY(-1px);
  background: rgba(7, 18, 31, 0.52);
  border-color: rgba(255, 255, 255, 0.82);
}

.branding .logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.branding .logo.logo-header {
  height: calc(var(--header-logo-h) - 2px);
  max-height: calc(var(--header-logo-h) - 2px);
}
.logo-header {
  width: auto;
  max-width: none;
  height: auto;
  max-width: 190px;
}
.logo-footer {
  width: min(110px, 24vw);
  max-width: 110px;
}
.sub-page .main-navigation .menu-item > a {
  padding: 0 12px;
}

.main-navigation {
  width: auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  min-width: 0;
  position: relative;
  left: var(--header-nav-offset-x);
}

.header-search-wrap {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.header-search-form {
  display: flex;
  align-items: center;
  width: 170px;
  height: 38px;
  border: 1px solid #d4deea;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  height: 100%;
  padding: 0 12px;
  font-size: 13px;
  color: #22344a;
}

.header-search-input::placeholder {
  color: #7b8ea5;
}

.header-search-input:focus {
  outline: 0;
}

.header-search-btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-left: 1px solid #dfe8f3;
  background: #f7fbff;
  color: #1e4f84;
  cursor: pointer;
}

.header-search-btn:hover {
  background: #ecf4fd;
}

.search-menu-item {
  display: flex;
  align-items: center;
}

.search-menu-item > .header-search-wrap {
  height: 100%;
  padding-left: 6px;
}

.menu-toggle {
  display: none;
  border: 1px solid #d4dde8;
  background: #ffffff;
  color: #1c2a3a;
  border-radius: 6px;
  padding: 7px 10px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 4px;
  height: 100%;
}

.main-navigation .menu-item { position: relative; }

.main-navigation .menu-item > a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 14px;
  color: #25364b;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.main-navigation .menu-item > a:hover {
  background: #eef3f9;
}

.home.menu-item img { width: 22px; height: 22px; filter: none; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: rgba(11, 25, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 28px rgba(9, 21, 36, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 30;
}

.dropdown-item:hover .dropdown-menu,
.dropdown-item:focus-within .dropdown-menu,
.dropdown-menu.open { display: block; }

.dropdown-menu-item a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.95);
}

.dropdown-menu-item a:hover { background: rgba(255, 255, 255, 0.18); }

/* Home hero overlay header */
.home-page .site-header {
  --header-logo-h: 64px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.sub-page .site-header.is-smart-glass {
  background: rgba(9, 22, 38, 0.30);
  border-bottom-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.home-page .main-navigation .menu-item > a {
  color: rgba(255, 255, 255, 0.95);
}

.home-page .main-navigation .menu-item > a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.home-page .home.menu-item img {
  filter: brightness(5);
}

.home-page .menu-toggle {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.home-page .header-search-form,
.sub-page .header-search-form {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.home-page .header-search-input,
.sub-page .header-search-input {
  color: #ffffff;
}

.home-page .header-search-input::placeholder,
.sub-page .header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.home-page .header-search-btn,
.sub-page .header-search-btn {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.home-page .header-search-btn:hover,
.sub-page .header-search-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Sub pages: use image-overlay header like index */
.sub-page .site-header {
  --header-logo-h: 64px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.sub-page .main-navigation .menu-item > a {
  color: rgba(255, 255, 255, 0.95);
}

.sub-page .main-navigation .menu-item > a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.sub-page .home.menu-item img {
  filter: brightness(5);
}

.sub-page .menu-toggle {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Hero */
.hero { position: relative; }
.hero .slides { list-style: none; margin: 0; padding: 0; }

body.has-home-intro {
  overflow: hidden;
}

.home-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 198, 96, 0.36), transparent 42%),
    radial-gradient(circle at 22% 78%, rgba(69, 130, 195, 0.28), transparent 48%),
    radial-gradient(circle at 78% 18%, rgba(255, 164, 64, 0.2), transparent 48%),
    linear-gradient(158deg, #050a12 0%, #0c1828 55%, #12263e 100%);
  animation: introFadeIn 280ms ease-out forwards;
}

.home-intro-grid {
  position: absolute;
  inset: -32% -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(860px) rotateX(62deg) scale(1.3);
  transform-origin: center 72%;
  opacity: 0.36;
  animation: introGridMove 1.9s linear infinite;
}

.home-intro-scan {
  position: absolute;
  inset: -20% 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.09) 46%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 54%,
    rgba(255, 255, 255, 0) 100%
  );
  mix-blend-mode: screen;
  animation: introScan 1.9s ease-in-out infinite;
}

.home-intro-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(66vw, 820px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 214, 136, 0.4);
  box-shadow:
    0 0 0 1px rgba(255, 214, 136, 0.2) inset,
    0 0 40px rgba(255, 196, 96, 0.35);
  transform: translate(-50%, -50%);
  animation: introPulse 2s ease-out infinite;
}

.home-intro-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  gap: 22px;
  text-align: center;
}

.home-intro-logo {
  width: min(112vw, 1700px);
  max-height: 84vh;
  object-fit: contain;
  filter:
    drop-shadow(0 28px 80px rgba(0, 0, 0, 0.68))
    drop-shadow(0 0 36px rgba(255, 233, 190, 0.38));
  animation: introLogoImpact 3.05s cubic-bezier(0.15, 0.8, 0.2, 1) forwards;
}

.home-intro-label {
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(5, 10, 18, 0.46);
  color: #f4f7fb;
  font-size: clamp(13px, 1.45vw, 17px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: introLabelGlow 2.2s ease-in-out infinite;
}

.home-intro.is-leaving {
  animation: introFadeOut 820ms ease forwards;
  pointer-events: none;
}

@keyframes introFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes introFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes introGridMove {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 56px, 56px 0; }
}

@keyframes introScan {
  from { transform: translateY(-62%); opacity: 0.32; }
  50% { opacity: 0.92; }
  to { transform: translateY(62%); opacity: 0.32; }
}

@keyframes introPulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.76);
  }
  24% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.26);
  }
}

@keyframes introLogoImpact {
  from {
    opacity: 0;
    transform: translateY(8px) scale(2.35);
    filter:
      blur(12px)
      brightness(1.42)
      drop-shadow(0 30px 90px rgba(0, 0, 0, 0.72));
  }
  30% {
    opacity: 1;
    transform: translateY(0) scale(1.14);
    filter:
      blur(0)
      brightness(1.08)
      drop-shadow(0 26px 80px rgba(0, 0, 0, 0.7))
      drop-shadow(0 0 42px rgba(255, 226, 176, 0.45));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter:
      blur(0)
      brightness(1)
      drop-shadow(0 22px 68px rgba(0, 0, 0, 0.65))
      drop-shadow(0 0 36px rgba(255, 226, 176, 0.36));
  }
}

@keyframes introLabelGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 201, 106, 0);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 201, 106, 0.3);
    opacity: 1;
  }
}

.hero .slides {
  position: relative;
  height: 100vh;
  min-height: 620px;
}

.hero li {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 620px;
  background-size: cover;
  background-position: center center;
  background-color: #0b1421;
}

.hero-slide-layer {
  opacity: 0;
  transition: opacity .9s ease;
  will-change: opacity;
}

.hero-slide-layer.is-active {
  opacity: 1;
}

.hero li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 21, 39, 0.14), rgba(8, 21, 39, 0.06) 45%, rgba(8, 21, 39, 0.12));
}

.hero li.is-first-slide::after {
  background: linear-gradient(90deg, rgba(8, 21, 39, 0.22), rgba(8, 21, 39, 0.1) 45%, rgba(8, 21, 39, 0.16));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-inner { color: #fff; }
.hero-inner { padding-top: 0px; }
.hero-kicker { margin: 0 0 8px; font-size: 18px; opacity: 0.92; }
.hero-title { margin: 0 0 16px; max-width: 760px; font-size: clamp(50px, 6vw, 76px); line-height: 1.1; }
.hero-title-home {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(32px, 4.6vw, 64px);
}
.hero-sub { margin: 0; max-width: 760px; font-size: clamp(14px, 1.7vw, 24px); opacity: 0.95; }
.hero-sub-home {
  margin-top: 4px;
  font-size: clamp(22px, 2.6vw, 36px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(5, 12, 22, 0.28);
}

.hero-indicator-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-indicator {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  padding: 0;
  cursor: pointer;
  transition: all .22s ease;
}

.hero-indicator.is-active {
  width: 124px;
  height: 6px;
  background: rgba(255, 255, 255, 0.92);
}


/* Sections */
.fullwidth-block { padding: 40px 0; }

.about-block,
.bg-light,
.research-block {
  background: var(--card);
  border-radius: 10px;
  margin-top: 20px;
  box-shadow: 0 8px 28px rgba(19, 40, 65, 0.08);
}

.home-page .about-block {
  margin-top: 20px;
  padding-top: 0;
}

.about-block { position: relative; overflow: hidden; }
.about-block .container { position: relative; z-index: 2; }

.about-block::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(37,85,147,0.18) 0, rgba(37,85,147,0.03) 64%, transparent 70%);
}

.section-title {
  margin: 0 0 20px;
  font-size: clamp(22px, 4vw, 48px);
  color: #0c1625;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.about-copy {
  margin: 0;
  max-width: 840px;
  color: #4b5a6b;
  font-size: 18px;
}

.modern-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 10px 18px;
  background: #0d3562;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.modern-btn:hover { background: #11437d; }

.video-wrapper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.video-block {
  position: relative;
  overflow: hidden;
}

.home-page .video-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1200px 360px at -10% 10%, rgba(37, 92, 170, 0.38) 0%, rgba(37, 92, 170, 0.08) 45%, transparent 66%),
    radial-gradient(980px 320px at 108% 86%, rgba(255, 113, 80, 0.3) 0%, rgba(255, 113, 80, 0.07) 46%, transparent 70%),
    linear-gradient(120deg, #050d19 0%, #0c1e38 42%, #122949 75%, #0a1630 100%);
  z-index: 0;
}

.home-page .video-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(122deg, rgba(255, 255, 255, 0.1) 0%, transparent 34%),
    linear-gradient(-22deg, rgba(146, 198, 255, 0.08) 0%, transparent 42%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.home-page .video-block .container {
  position: relative;
  z-index: 1;
}

.home-page .video-showcase-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.home-page .video-showcase-head .section-title {
  margin-bottom: 0;
  color: #fff;
  border-left-color: rgba(255, 255, 255, 0.85);
}

.home-page .video-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.home-page .video-more-link:hover {
  background: rgba(255, 255, 255, 0.16);
}

.home-page .video-showcase-track {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 0.9fr 1.35fr 1.35fr;
  gap: 14px;
  width: 100%;
}

.home-page .video-showcase-card {
  position: relative;
  background: rgba(6, 25, 49, 0.42);
  border: 1px solid rgba(170, 214, 255, 0.22);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(3, 10, 24, 0.32);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-page .video-showcase-card:hover {
  transform: translateY(-4px);
  border-color: rgba(210, 235, 255, 0.52);
  box-shadow: 0 22px 40px rgba(3, 10, 24, 0.42);
}

.home-page .video-showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #09172d;
}

.home-page .video-showcase-media .background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-page .video-showcase-media .background-video {
  object-fit: cover;
  opacity: 1;
  transform: scale(1.02);
  transition: transform .28s ease;
}

.home-page .video-showcase-card.is-previewing .video-showcase-media .background-video,
.home-page .video-showcase-card:hover .video-showcase-media .background-video {
  transform: scale(1.08);
}

.home-page .video-showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 10, 24, 0.26) 0%, rgba(3, 10, 24, 0.44) 100%);
  transition: opacity .22s ease;
  pointer-events: none;
}

.home-page .video-showcase-card.is-previewing .video-showcase-media::after,
.home-page .video-showcase-card:hover .video-showcase-media::after {
  opacity: 0.12;
}

.home-page .video-showcase-card::before {
  content: attr(data-idx);
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(26px, 2.8vw, 48px);
  font-weight: 800;
  letter-spacing: 1px;
}

.home-page .video-showcase-info {
  padding: 12px 14px 14px;
}

.home-page .video-showcase-info h3 {
  margin: 0 0 6px;
  color: #f2f7ff;
  font-size: 17px;
  font-weight: 700;
}

.home-page .video-showcase-info p {
  margin: 0;
  color: rgba(227, 239, 255, 0.82);
  font-size: 13px;
  font-weight: 500;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.video-modal.open {
  display: block;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 16, 25, 0.72);
}

.video-modal-dialog {
  position: relative;
  width: min(1100px, 92vw);
  margin: 6vh auto 0;
  background: #0f1d2d;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

.video-modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.video-modal-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 18px;
}

.video-modal-player {
  width: 100%;
  aspect-ratio: 3/2;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.video-modal-player video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.background-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.latest-news {
  display: grid;
  grid-template-columns: minmax(280px, 46%) 1fr;
  align-items: start;
  gap: 20px;
  width: 100%;
}

.latest-news.no-lead-image {
  grid-template-columns: 1fr;
}

.latest-news-image {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
  align-self: start;
  border-radius: 8px;
  overflow: hidden;
}

.latest-news-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.latest-news-list {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid #e3ebf4;
  border-radius: 8px;
  background: #ffffff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 58, 103, 0.12);
  border-color: #cfe0f2;
}

.news-meta {
  font-size: 12px;
  color: #607086;
}

.news-more {
  margin-top: auto;
  font-size: 12px;
  font-weight: 700;
  color: #0a4b96;
}

.latest-news-list::-webkit-scrollbar {
  width: 8px;
}

.latest-news-list::-webkit-scrollbar-thumb {
  background: #cfd9e6;
  border-radius: 8px;
}

.latest-news-list::-webkit-scrollbar-track {
  background: #f4f7fb;
}

.entry-title {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.4;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.team.boxed-grey {
  border-radius: 8px;
  border: 1px solid #e4ebf3;
  background: linear-gradient(180deg, #fff, #f8fbff);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.team.boxed-grey:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15,58,103,0.15);
}

.team .avatar img { max-width: 100%; height: auto; }
.member-title { margin-top: 10px; font-size: clamp(14px, 2.4vw, 18px); }

.rep-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.rep-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #dce7f3;
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 22px rgba(18, 47, 83, 0.08);
}

.rep-card:hover {
  border-color: #c4d8ee;
  box-shadow: 0 12px 26px rgba(18, 47, 83, 0.14);
}

.rep-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: calc(1.2em * 4);
}

.rep-thumb {
  width: 100%;
  aspect-ratio: auto;
  height: 180px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dce7f3;
  background: #f4f8fd;
}

.rep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: #f7f9fc;
}

.rep-head h3 {
  margin: 0;
  font-size: 18px;
  color: #132941;
  line-height: 1.2;
}

.rep-card p {
  margin: 0;
  color: #4f6073;
  font-size: 14px;
  line-height: 1.45;
  min-height: 84px;
}

.rep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.rep-tags span {
  font-size: 11px;
  font-weight: 600;
  color: #1f568f;
  background: #e9f1fb;
  border-radius: 999px;
  padding: 3px 8px;
}

.rep-tags span:first-child {
  color: #ffffff;
  background: #1f9d55;
}

.rep-link {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #0a4b96;
}

/* Footer */
.site-footer {
  margin-top: 26px;
  background: #edf1f7;
  border-top: 1px solid #dde6f0;
  padding: 30px 0;
}

.footer-grid > div { margin-bottom: 14px; }
.widget-title { margin: 0 0 12px; }

.default-list { list-style: none; margin: 0; padding: 0; }
.default-list li { margin-bottom: 6px; }
.colophon { margin-top: 10px; font-size: 13px; color: #667587; }

/* Generic detail/list pages */
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid #e8edf5; padding: 10px 0; }
.meta { color: #5f6d7e; }
.article { white-space: pre-wrap; }
.back { display: inline-block; margin: 12px 0; color: #0a4b96; }

img { max-width: 100%; height: auto; }

@media (min-width: 768px) {
  .col-sm-6 { width: 50%; }
}

@media (min-width: 992px) {
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.333333%; }
  .col-md-6 { width: 50%; }
  .col-md-8 { width: 66.666667%; }
  .col-md-9 { width: 75%; }
  .col-md-12 { width: 100%; }
}

@media (max-width: 1100px) {
  .header-search-form {
    width: 146px;
  }

  .video-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .video-showcase-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rep-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .container { padding: 0 10px; }

  .site-header,
  .home-page .site-header,
  .sub-page .site-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1200;
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .sub-page .site-header.is-smart-glass {
    background: linear-gradient(180deg, rgba(7, 20, 36, 0.58) 0%, rgba(7, 20, 36, 0.24) 68%, rgba(7, 20, 36, 0) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .header-bar {
    height: var(--header-logo-h);
    min-height: var(--header-logo-h);
    padding: 4px 0 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .branding {
    min-width: 0;
    flex: 1 1 auto;
  }

  .branding .logo.logo-header {
    height: 46px;
    max-height: 46px;
  }

  .main-navigation {
    width: auto;
    margin-left: auto;
    left: 0;
    flex: 0 0 auto;
    position: static;
    z-index: 1250;
  }

  .site-header .container,
  .header-bar,
  .branding,
  .main-navigation {
    position: relative;
    z-index: 1250;
  }

  .site-header,
  .site-header * {
    touch-action: manipulation;
  }

  .header-search-wrap {
    width: 100%;
    margin: 0;
  }

  .header-search-form {
    width: 100%;
    max-width: none;
    background: #ffffff;
    border-color: #d4deea;
  }

  .header-search-input {
    color: #22344a;
  }

  .header-search-input::placeholder {
    color: #7b8ea5;
  }

  .header-search-btn {
    background: #f7fbff;
    border-left-color: #dfe8f3;
    color: #1e4f84;
  }

  .search-menu-item > .header-search-wrap {
    padding-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(5, 16, 28, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 1305;
  }

  .menu {
    display: none;
    position: fixed;
    top: 58px;
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    height: auto;
    gap: 0;
    padding: 12px;
    background: rgba(9, 22, 38, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(6, 15, 26, 0.34);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1300;
    pointer-events: auto;
  }

  .menu.open { display: flex; }

  .search-menu-item {
    display: block !important;
    border-bottom: 0;
    padding-top: 4px;
  }

  .search-menu-item > .header-search-wrap {
    display: block;
    padding-left: 0;
  }

  .menu .search-menu-item .header-search-form {
    width: 100%;
    height: 44px;
    max-width: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    overflow: hidden;
  }

  .menu .search-menu-item .header-search-input {
    color: #1f3147;
  }

  .menu .search-menu-item .header-search-input::placeholder {
    color: #6f8198;
  }

  .menu .search-menu-item .header-search-btn {
    background: #eef5fc;
    border-left: 1px solid #d7e2ee;
    color: #1e4f84;
  }

  .main-navigation .menu-item {
    display: block;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .main-navigation .menu-item > a {
    min-height: 46px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.96) !important;
    font-weight: 600;
    background: transparent;
  }

  .main-navigation .menu-item > a .fa {
    color: rgba(255, 255, 255, 0.72) !important;
  }

  .dropdown-menu {
    position: static;
    min-width: auto;
    margin-top: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 0 6px 14px;
  }

  .dropdown-menu-item a {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
  }

  .dropdown-menu-item a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
  }

  .home-page .main-navigation > .menu > .menu-item > a,
  .sub-page .main-navigation > .menu > .menu-item > a {
    color: rgba(255, 255, 255, 0.96) !important;
  }

  .home-page .home.menu-item img,
  .sub-page .home.menu-item img {
    filter: brightness(5);
  }

  .site-content {
    overflow-x: clip;
  }

  .home-page .main-content {
    margin-top: 0;
  }

  .hero .slides {
    height: 360px;
    min-height: 360px;
  }

  .hero li {
    height: 360px;
    min-height: 360px;
  }

  .hero-inner {
    padding-top: 76px;
  }

  .subpage-head {
    padding-top: 72px;
  }
  .home-page .hero li {
    height: 72vh;
    min-height: 420px;
  }

  .home-page .hero .slides {
    height: 72vh;
    min-height: 420px;
  }

  .home-page .hero-inner {
    padding-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .home-page .about-block {
    margin-top: 20px;
    padding-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .home-page .about-block .container {
    padding-top: 0;
  }
  .hero-kicker { font-size: 14px; }
  .hero-title { font-size: 28px; }
  .hero-title-home { font-size: clamp(18px, 5.2vw, 28px); }
  .hero-sub { font-size: 14px; }
  .hero-sub-home {
    margin-top: 2px;
    font-size: clamp(15px, 4.2vw, 20px);
  }

  .hero-indicator-row {
    gap: 10px;
    margin-bottom: 12px;
  }

  .hero-indicator.is-active {
    width: 84px;
  }
  .logo-header {
    width: min(124px, 38vw);
    max-width: 124px;
  }
  .home-intro-replay-btn {
    width: 34px;
    height: 34px;
  }
  .home-page .home-intro-replay-btn {
    left: 8px;
    top: 8px;
  }
  .logo-footer {
    width: min(90px, 32vw);
    max-width: 90px;
  }

  .video-wrapper { grid-template-columns: 1fr; gap: 15px; }

  .home-page .video-showcase-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-page .video-showcase-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .search-section {
    padding: 12px;
  }

  .search-section-title {
    font-size: 20px;
  }

  .search-result-title {
    font-size: 18px;
  }

  .home-page .video-showcase-media {
    aspect-ratio: 16 / 9;
  }

  .about-copy { font-size: 15px; }
  .entry-title { font-size: 16px; }

  .latest-news {
    grid-template-columns: 1fr;
  }

  .latest-news-image {
    aspect-ratio: 1 / 1;
  }

  .latest-news-list {
    grid-template-columns: 1fr;
  }

  .rep-grid {
    grid-template-columns: 1fr;
  }
}
.subpage-head {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-bottom: 1px solid #d8e2ef;
}

.subpage-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.subpage-head .container {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

.subpage-head .sub-kicker {
  color: rgba(255, 255, 255, 0.78);
  display: none;
}

.subpage-head .sub-title-main {
  color: #ffffff;
  margin-bottom: 8px;
}

.subpage-head .sub-desc {
  color: rgba(255, 255, 255, 0.9);
}

.subpage-wrap {
  padding: 28px 0 56px;
}

.subpage-hero {
  padding: 18px 0 14px;
}

.sub-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #5b6d83;
}

.sub-title-main {
  margin: 4px 0 10px;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  color: #132942;
}

.sub-desc {
  margin: 0;
  max-width: 820px;
  color: #5a6b7f;
  font-size: 16px;
}

.sub-grid {
  display: grid;
  gap: 14px;
}

.sub-grid-news,
.sub-grid-projects,
.sub-grid-members,
.sub-grid-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sub-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(17, 46, 80, 0.08);
}

.sub-card-link {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sub-card-link:hover {
  transform: translateY(-3px);
  border-color: #c7d9ed;
  box-shadow: 0 14px 28px rgba(17, 46, 80, 0.15);
}

.sub-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #edf3fb;
  border-bottom: 1px solid #dbe5f0;
}

.sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-page .sub-thumb,
.gallery-detail-page .mosaic-item {
  background: #f5f8fc;
}

.gallery-card-grid {
  align-items: stretch;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.gallery-card-thumb {
  display: grid;
  place-items: center;
  height: 260px;
  padding: 14px;
  overflow: hidden;
  border-bottom: 1px solid #dbe5f0;
  background: #f5f8fc;
}

.gallery-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.gallery-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 172px;
  padding: 14px;
}

.gallery-card-meta {
  margin-top: 0;
}

.gallery-card-title {
  min-height: 0;
  margin: 0;
}

.gallery-card-cta {
  margin-top: auto;
}

.sub-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  min-height: 150px;
}

.sub-list-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.sub-list-count {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #5c6f85;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.sub-meta {
  margin-top: auto;
}

.project-section-split {
  margin-top: 30px;
}

.project-section-split:first-of-type {
  margin-top: 0;
}

.project-section-split-title {
  margin: 0 0 18px;
  color: #b08968;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-section-empty {
  margin: 0 0 8px;
  color: #7a8898;
  font-size: 14px;
}

.project-section-national-completed .sub-thumb {
  background: #f3f6fa;
  aspect-ratio: auto;
  height: 230px;
}

.project-section-national-completed .sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  padding: 0;
}

.search-summary {
  margin-bottom: 14px;
}

.search-section {
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(17, 46, 80, 0.08);
}

.search-section-title {
  margin: 0 0 10px;
  font-size: 24px;
  color: #132943;
}

.search-result-list {
  display: grid;
  gap: 10px;
}

.search-result-card {
  border: 1px solid #e4ecf5;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.search-result-title {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.25;
  color: #102a47;
}

.search-result-title a {
  color: inherit;
}

.search-result-title a:hover {
  color: #0a4b96;
}

.search-result-meta {
  margin: 0 0 6px;
  font-size: 13px;
  color: #58708b;
}

.search-result-snippet {
  margin: 0;
  font-size: 14px;
  color: #3f536a;
  line-height: 1.5;
}

.search-empty {
  padding: 18px 0;
  color: #5f738a;
}

.sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #64768b;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e9f1fb;
  color: #1f568f;
  font-size: 11px;
  font-weight: 700;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5fb;
  color: #40566f;
  font-size: 11px;
  font-weight: 600;
}

.status-chip.status-chip-ongoing {
  background: #1f9d55;
  color: #ffffff;
}

.status-chip.status-chip-completed {
  background: #d64545;
  color: #ffffff;
}

.sub-title {
  margin: 0;
  font-size: clamp(18px, 1.4vw, 24px);
  color: #14283f;
  line-height: 1.28;
  word-break: keep-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-summary {
  margin: 0;
  color: #52667e;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-cta {
  margin-top: auto;
  color: #0a4b96;
  font-size: 13px;
  font-weight: 700;
}

.member-card .sub-thumb,
.member-thumb {
  aspect-ratio: 1 / 1;
}

.member-thumb {
  width: 100%;
  background: #eef3fa;
}

.member-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-shell {
  padding-top: 8px;
}

.ghost-back {
  display: inline-flex;
  margin: 0 0 12px;
  font-size: 14px;
  color: #0a4b96;
  font-weight: 700;
}

.detail-card {
  background: #fff;
  border: 1px solid #dbe5f0;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(16, 45, 77, 0.1);
}

.detail-thumb {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #5f7288;
}

.detail-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.15;
  color: #132943;
}

.detail-content {
  color: #334860;
  line-height: 1.75;
  white-space: pre-wrap;
  font-size: 15px;
}

.detail-fact-row {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-source {
  display: inline-flex;
  margin-top: 14px;
  padding: 9px 14px;
  border-radius: 8px;
  background: #0c3f76;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.detail-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project pages: keep representative images uncropped and consistent */
.project-page .sub-thumb img,
.project-category-page .sub-thumb img {
  object-fit: contain;
  background: #f7f9fc;
}


.project-detail-page .detail-gallery figure {
  border: 1px solid #dbe5f0;
  background: #f7f9fc;
}

.project-detail-page .detail-gallery img {
  object-fit: contain;
  background: #f7f9fc;
}

.project-hero-figure {
  margin: 14px 0;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  overflow: hidden;
  background: #f2f6fb;
}

.project-hero-figure img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}

.project-fact-list {
  margin: 0 0 12px;
  padding-left: 20px;
}

.project-fact-list li {
  margin-bottom: 7px;
  color: #2e455f;
  line-height: 1.55;
}

.project-point-block {
  margin-top: 14px;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px 14px;
}

.project-point-title {
  margin: 0 0 8px;
  color: #133253;
  font-size: 18px;
}

.project-point-list {
  margin: 0;
  padding-left: 20px;
}

.project-point-list li {
  margin-bottom: 6px;
  color: #2e455f;
  line-height: 1.5;
}

.page-head {
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: 40% 39%;
  background-repeat: no-repeat;
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.page-head-inner {
  position: relative;
  z-index: 1;
  padding-top: 120px;
}

.page-head .page-title {
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 700;
}

.page-head .breadcrumb-text {
  position: absolute;
  right: 16px;
  bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.member-page .member-row-gap {
  margin-bottom: 8px;
}

.member-page .member-section-title-legacy {
  color: #B08968;
  font-weight: 700;
  margin: 0 0 14px;
}

.member-page .team-member-card {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 24px;
  min-height: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.member-page .team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.member-page .team-member-card.no-link {
  cursor: default;
}

.member-page .team-member-card.no-link:hover {
  transform: none;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.member-page .member-photo {
  flex: 0 0 100px;
  width: 100px;
  aspect-ratio: auto;
  margin-right: 15px;
  border-radius: 5px;
  border: 1px solid #eee;
  background: #fff;
}

.member-page .member-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.member-page .member-info {
  flex: 1;
  overflow: hidden;
}

.member-page .member-name {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin: 0 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-page .member-interests {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.member-page .member-interests li {
  font-size: 14px;
  color: #555;
  margin-bottom: 5px;
  position: relative;
  padding-left: 16px;
  line-height: 1.4;
}

.member-page .member-interests li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #B08968;
  font-weight: 700;
}

.member-page .member-email {
  margin: 8px 0 0;
  font-size: 13px;
  color: #4e6075;
  line-height: 1.4;
}

.member-page .member-email a {
  color: #0a4b96;
  text-decoration: none;
}

.member-page .member-email a:hover {
  text-decoration: underline;
}

.member-page .member-summary-bar-wrapper {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  overflow: hidden;
  margin-bottom: 40px;
}

.member-page .member-summary-bar {
  background-image: url('/legacy/images/배경.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 1.4em;
  font-weight: 700;
  line-height: 1.5;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.member-detail-top {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  margin-bottom: 12px;
}

.member-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  background: #eff4fb;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-role {
  margin: 0 0 10px;
  color: #52667f;
  font-size: 16px;
}

.member-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fact {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #35506d;
  background: #edf3fb;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.mosaic-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d7e2ef;
  background: #eff4fb;
  display: flex;
  flex-direction: column;
}

.gallery-zoom-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.mosaic-item img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.gallery-image-caption {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px solid #d7e2ef;
  background: #ffffff;
  color: #16314d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  word-break: keep-all;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
}

.gallery-lightbox.open {
  display: block;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 29, 0.84);
  backdrop-filter: blur(8px);
}

.gallery-lightbox-panel {
  position: relative;
  width: min(92vw, 1180px);
  max-height: 90vh;
  margin: 4vh auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(13, 24, 39, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.gallery-lightbox-title {
  margin: 0 40px 12px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: calc(90vh - 92px);
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
}

.gallery-lightbox-close {
  position: absolute;
  right: 12px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 767px) {
  .gallery-card-thumb {
    height: 220px;
  }
}

@media (max-width: 1100px) {
  .sub-grid-news,
  .sub-grid-projects,
  .sub-grid-members,
  .sub-grid-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-gallery,
  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-detail-top {
    grid-template-columns: 1fr;
  }

  .member-photo {
    max-width: 280px;
  }
}

@media (max-width: 767px) {
  .page-head {
    min-height: 260px;
  }

  .page-head-inner {
    padding-top: 70px;
  }

  .page-head .breadcrumb-text {
    position: static;
    text-align: center;
    margin-top: 12px;
  }

  .member-page .team-member-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .member-page .member-photo {
    margin-bottom: 10px;
    margin-right: 0;
  }

  .member-page .member-summary-bar {
    font-size: 1em;
    padding: 15px 0;
  }

  .subpage-head {
    min-height: 220px;
  }

  .subpage-head .container {
    padding-bottom: 16px;
  }

  .sub-grid-news,
  .sub-grid-projects,
  .sub-grid-members,
  .sub-grid-gallery,
  .detail-gallery,
  .mosaic-grid {
    grid-template-columns: 1fr;
  }

  .sub-title-main {
    font-size: clamp(28px, 8vw, 42px);
  }

  .detail-title {
    font-size: clamp(26px, 8vw, 38px);
  }
}

.page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.page-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d6e2ef;
  border-radius: 999px;
  font-size: 13px;
  color: #35516f;
  background: #ffffff;
}

.page-tab.is-active {
  background: #0d447f;
  color: #ffffff;
  border-color: #0d447f;
}

.pub-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pub-category-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
}

.pub-category-card h3 {
  margin: 0 0 8px;
  color: #16314e;
}

.pub-category-card p {
  margin: 0 0 8px;
  color: #51657d;
  font-size: 14px;
}

.pub-count {
  font-weight: 700;
  color: #0a4b96;
}

.pub-preview-block {
  margin-top: 18px;
}

.pub-list-wrap,
.pub-year-block {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.07);
  margin-bottom: 12px;
}

.pub-year-title {
  margin: 0 0 8px;
  color: #122e4d;
  font-size: 24px;
}

.pub-group-title {
  margin: 14px 0 8px;
  color: #1f3f63;
  font-size: 18px;
  font-weight: 700;
}

.patent-group-title {
  margin-top: 20px;
}

.pub-list {
  margin: 0;
  padding-left: 18px;
  list-style: decimal outside;
}

.pub-item {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #2f4560;
}

.pub-item a {
  color: #0b4d99;
}

.pub-media-item {
  list-style: none;
  display: grid;
  grid-template-columns: 44px 260px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #e6edf5;
}

.pub-media-item-no-thumb {
  grid-template-columns: 44px 1fr auto;
}

.pub-media-item:first-child {
  border-top: 0;
}

.pub-no {
  font-size: 22px;
  font-weight: 800;
  color: #0f2e4f;
  text-align: center;
}

.pub-thumb {
  margin: 0;
  width: 260px;
  height: 156px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #d6e3f1;
  background: #f2f6fb;
}

.pub-thumb-btn {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.pub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  image-rendering: auto;
}

.pub-main {
  min-width: 0;
}

.pub-meta {
  margin: 0 0 8px;
  color: #597089;
  font-size: 14px;
  line-height: 1.3;
}

.pub-title {
  margin: 0;
  color: #112a45;
  font-size: clamp(18px, 1.5vw, 36px);
  line-height: 1.35;
  word-break: keep-all;
}

.pub-metric {
  margin: 10px 0 0;
  color: #6d5432;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.pub-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d2691e;
  color: #111;
  font-weight: 700;
  font-size: 14px;
}

.pub-link-btn.is-disabled {
  background: #fff;
  border: 1px solid #e0ad8b;
  color: #555;
}

.pub-table-layout .pub-year-block {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-bottom: 28px;
}

.pub-year-nav-wrap {
  margin-bottom: 10px;
}

.pub-year-nav-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 8px;
  background: #ececec;
  border: 1px solid #dcdcdc;
  padding: 10px;
}

.pub-year-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-right: 1px solid #d2d2d2;
  color: #444;
  font-size: 15px;
  font-weight: 500;
}

.pub-year-chip:last-child {
  border-right: 0;
}

.pub-table-layout .pub-year-title {
  margin: 22px 0 14px;
  padding-left: 10px;
  border-left: 4px solid #0c2b66;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.05;
  color: #0f1f33;
}

.conference-layout .pub-year-title.is-global {
  color: #c06a1a;
  border-left-color: #c06a1a;
}

.conference-layout .pub-year-title.is-domestic {
  color: #0c3f76;
  border-left-color: #0c3f76;
}

.conference-layout .pub-year-nav-row {
  background: #fff;
  border: 1px solid #dbe5f0;
}

.conference-layout .pub-year-chip {
  background: #fff;
}

.conference-layout .pub-year-chip:nth-child(1) {
  border-left: 2px solid #c06a1a;
  border-right: 2px solid #c06a1a;
}

.conference-layout .pub-year-chip:nth-child(2) {
  border-left: 2px solid #0c3f76;
  border-right: 2px solid #0c3f76;
}

.publication-patent-page .pub-year-nav-row {
  background: #fff;
  border: 1px solid #dbe5f0;
}

.publication-patent-page .pub-year-chip {
  background: #fff;
  border-right-color: #dbe5f0;
  color: #28384c;
}

.publication-patent-page .pub-table thead th {
  background: #fff;
}

.conference-layout .pub-year-block.is-global .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.conference-layout .pub-year-block.is-domestic .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

.conference-layout .pub-table thead th {
  background: #fff;
}

.conference-layout .pub-table-title {
  display: block;
  width: 100%;
  padding: 2px 10px;
  box-sizing: border-box;
}

.conference-layout .pub-year-block.is-global .pub-table-title {
  border-left: 0;
  border-right: 0;
}

.conference-layout .pub-year-block.is-domestic .pub-table-title {
  border-left: 0;
  border-right: 0;
}

.conference-layout .pub-year-block.is-global .pub-group-title {
  color: #c06a1a;
}

.conference-layout .pub-year-block.is-domestic .pub-group-title {
  color: #0c3f76;
}

.patent-layout .pub-year-title.is-global {
  color: #c06a1a;
  border-left-color: #c06a1a;
}

.patent-layout .pub-year-title.is-domestic {
  color: #0c3f76;
  border-left-color: #0c3f76;
}

.patent-layout .pub-year-chip:nth-child(1) {
  border-left: 2px solid #c06a1a;
  border-right: 2px solid #c06a1a;
}

.patent-layout .pub-year-chip:nth-child(2) {
  border-left: 2px solid #0c3f76;
  border-right: 2px solid #0c3f76;
}

.patent-layout .pub-year-block.is-global .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(192, 106, 26, 0.32);
}

.patent-layout .pub-year-block.is-domestic .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(12, 63, 118, 0.28);
}

.publication-patent-page .pub-year-block:nth-of-type(1) .pub-year-title {
  color: #c06a1a;
  border-left-color: #c06a1a;
}

.publication-patent-page .pub-year-block:nth-of-type(2) .pub-year-title {
  color: #0c3f76;
  border-left-color: #0c3f76;
}

.publication-patent-page .pub-year-nav-row .pub-year-chip:nth-child(1) {
  border-left: 2px solid #c06a1a;
  border-right: 2px solid #c06a1a;
}

.publication-patent-page .pub-year-nav-row .pub-year-chip:nth-child(2) {
  border-left: 2px solid #0c3f76;
  border-right: 2px solid #0c3f76;
}

.publication-patent-page .pub-year-block:nth-of-type(1) .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(192, 106, 26, 0.32);
}

.publication-patent-page .pub-year-block:nth-of-type(2) .pub-table-wrap {
  background: #fff;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid rgba(12, 63, 118, 0.28);
}


.pub-table-layout .pub-group-title {
  margin: 8px 0 8px;
  font-size: 17px;
  color: #1f3553;
}

.patent-layout .pub-year-block.is-global .pub-group-title {
  color: #c06a1a;
}

.patent-layout .pub-year-block.is-domestic .pub-group-title {
  color: #0c3f76;
}

.journal-layout .pub-year-title.is-global {
  color: #c06a1a;
  border-left-color: #c06a1a;
}

.journal-layout .pub-year-title.is-domestic {
  color: #0c3f76;
  border-left-color: #0c3f76;
}

.journal-layout .pub-year-block.is-global .pub-group-title {
  color: #c06a1a;
}

.journal-layout .pub-year-block.is-domestic .pub-group-title {
  color: #0c3f76;
}

.publication-patent-page .pub-year-block:nth-of-type(1) .pub-year-title {
  color: #c06a1a;
  border-left-color: #c06a1a;
}

.publication-patent-page .pub-year-block:nth-of-type(2) .pub-year-title {
  color: #0c3f76;
  border-left-color: #0c3f76;
}

.publication-patent-page .pub-year-block:nth-of-type(1) .pub-group-title {
  color: #c06a1a;
}

.publication-patent-page .pub-year-block:nth-of-type(2) .pub-group-title {
  color: #0c3f76;
}

.pub-table-wrap {
  border-top: 2px solid #1b1b1b;
  background: #fff;
}

.pub-table {
  width: 100%;
  border-collapse: collapse;
}

.pub-table thead th {
  text-align: left;
  padding: 11px 12px;
  background: #f1f1f1;
  color: #111a26;
  font-size: 15px;
  font-weight: 700;
}

.pub-table .col-no {
  width: 90px;
  text-align: center;
}

.pub-table tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid #e3e3e3;
  vertical-align: top;
}

.pub-table-title {
  color: #182a44;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700;
}

a.pub-table-title:hover {
  color: #0b4d99;
}

.pub-table-meta {
  margin: 5px 0 0;
  color: #5f6f83;
  font-size: 13px;
  line-height: 1.35;
}

.pub-table-detail-meta {
  margin: 6px 0 0;
  color: #4f6074;
  font-size: 13px;
  line-height: 1.45;
}

.std-detail-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px;
}

.std-col .sub-section-title {
  margin: 0 0 12px;
  color: #112a45;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
}

.standard-layout .std-col:first-child .sub-section-title {
  color: #c06a1a;
}

.standard-layout .std-col:last-child .sub-section-title {
  color: #0c3f76;
}

body.publication-category-page .std-detail-layout .std-col:first-child .sub-section-title {
  color: #c06a1a;
}

body.publication-category-page .std-detail-layout .std-col:last-child .sub-section-title {
  color: #0c3f76;
}

.std-col .sub-category-title {
  margin: 12px 0 8px;
  color: #224569;
  font-size: 18px;
  font-weight: 700;
}

.std-col .ordered-list {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.std-col .ordered-list li {
  margin-bottom: 8px;
  color: #1f2e43;
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
}

.std-col .ordered-list li:last-child {
  margin-bottom: 0;
}

.std-col .has-border {
  border-top: 1px solid #d7e0ea;
  padding-top: 10px;
}


.pub-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
}

.pub-modal.open {
  display: block;
}

.pub-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.78);
}

.pub-modal-panel {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 90vh;
  margin: 4vh auto;
  background: #0f1d2e;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 16px;
}

.pub-modal-title {
  margin: 0 36px 10px 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.pub-modal-image {
  width: 100%;
  max-height: calc(90vh - 92px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.pub-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.timeline-block {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.07);
  margin-bottom: 12px;
}

.timeline-year {
  margin: 0 0 8px;
  color: #122e4d;
  font-size: 24px;
}

.timeline-list {
  margin: 0;
  padding-left: 18px;
}

.timeline-list li {
  margin-bottom: 7px;
  color: #2f4560;
}

.timeline-item-with-image {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 14px;
  align-items: center;
  padding: 8px 0;
}

.timeline-thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  background: #eff4fb;
}

.timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-item-text {
  min-width: 0;
  line-height: 1.55;
}

.timeline-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.timeline-card-item {
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fdfefe;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(18, 47, 83, 0.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.timeline-card-item:hover {
  transform: translateY(-2px);
  border-color: #c6d9ee;
  box-shadow: 0 12px 24px rgba(18, 47, 83, 0.12);
}

.timeline-card-thumb {
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #eef4fb;
  border-bottom: 1px solid #dbe5f0;
}

.timeline-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.timeline-card-title {
  margin: 0;
  padding: 12px 12px 14px;
  font-size: 17px;
  line-height: 1.45;
  color: #142f4e;
}

.timeline-card-title a {
  color: inherit;
  text-decoration: none;
}

.timeline-card-title a:hover {
  color: #0b4d99;
}

/* Unified Card Sizing Across Pages */
:root {
  --unified-thumb-ratio: 16 / 10;
  --unified-title-lines: 3;
  --unified-cta-h: 34px;
}

.sub-grid,
.timeline-card-grid,
.rep-grid,
.video-archive-grid {
  align-items: stretch;
}

.sub-card,
.timeline-card-item,
.rep-card,
.video-card {
  height: 100%;
}

.sub-thumb,
.timeline-card-thumb,
.rep-thumb {
  aspect-ratio: var(--unified-thumb-ratio);
}

.home-page .rep-thumb {
  aspect-ratio: auto;
  height: 180px;
}

.sub-body {
  flex: 1;
  min-height: 196px;
}

.sub-title {
  min-height: calc(1.28em * var(--unified-title-lines));
}

.sub-summary {
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sub-cta,
.rep-link,
.timeline-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--unified-cta-h);
  min-width: 104px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #c6d9ee;
  background: #f4f8fd;
  color: #0a4b96;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.sub-cta:hover,
.rep-link:hover,
.timeline-card-cta:hover {
  background: #eaf2fb;
  border-color: #b7cfe9;
}

.timeline-card-item {
  display: flex;
  flex-direction: column;
}

.timeline-card-title {
  min-height: calc(1.45em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.timeline-card-actions {
  margin-top: auto;
  padding: 0 12px 14px;
}

.timeline-card-cta.is-placeholder {
  visibility: hidden;
}

.rep-card {
  display: flex;
  flex-direction: column;
}

.rep-card p {
  min-height: calc(1.45em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rep-link {
  margin-top: auto;
}

.video-card {
  display: flex;
  flex-direction: column;
}

.video-meta h3 {
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-container {
  margin-top: auto;
}

.prof-list {
  margin: 0;
  padding-left: 18px;
}

.prof-list li {
  margin-bottom: 8px;
  color: #2f4560;
}

.prof-contact-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.prof-contact-pill {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 12px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.07);
}

.prof-contact-pill .label {
  display: block;
  font-size: 12px;
  color: #5b7088;
  margin-bottom: 2px;
}

.prof-contact-pill .value {
  display: block;
  color: #132d48;
  font-weight: 700;
  font-size: 16px;
}

.prof-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.prof-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
}

.prof-card-title {
  margin: 0 0 10px;
  color: #15314f;
  font-size: 22px;
  line-height: 1.2;
}

.prof-photo {
  margin: 0 0 10px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid #dbe5f0;
  border-radius: 10px;
  overflow: hidden;
  background: #edf3fb;
}

.prof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prof-name {
  margin: 0 0 6px;
  font-size: 30px;
  color: #132d48;
}

.prof-position {
  margin: 0 0 10px;
  color: #475c75;
  font-size: 14px;
}

.prof-facts {
  margin: 0;
  padding-left: 18px;
}

.prof-facts li {
  margin-bottom: 6px;
  color: #2f4560;
  font-size: 14px;
}

.prof-empty {
  margin: 0;
  color: #60748b;
  font-size: 14px;
}

.prof-career-block {
  margin-bottom: 14px;
}

.prof-career-block .prof-list li {
  line-height: 1.6;
  margin-bottom: 10px;
  border-bottom: 1px dashed #d7e2ef;
  padding-bottom: 8px;
}

.prof-career-block .prof-list li:last-child {
  border-bottom: 0;
}

.member-section-block {
  margin-bottom: 20px;
}

.member-summary-bar-wrapper {
  margin: 10px 0 24px;
}

.member-summary-bar {
  color: #ffffff;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  padding: 18px 16px;
  border-radius: 10px;
  background-image: url('/legacy/images/배경.jpg');
  background-size: cover;
  background-position: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.member-section-title {
  margin: 0 0 10px;
  color: #9a7a5a;
  font-size: 24px;
}

/* Home About sizing tune */
.home-page .about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  align-items: stretch;
  gap: 30px;
}

.home-page .about-visual {
  margin: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  min-height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #d7e2ef;
  background: #f3f7fc;
  box-shadow: 0 10px 24px rgba(20, 48, 80, 0.12);
}

.home-page .about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.home-page .about-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.home-page .about-block .section-title {
  margin-bottom: 14px;
  font-size: clamp(30px, 3.6vw, 44px);
}

.home-page .about-copy {
  max-width: 760px;
  font-size: clamp(17px, 1.15vw, 21px);
  line-height: 1.72;
  color: #3e5166;
}

.home-page .about-content .modern-btn {
  margin-top: 18px;
  align-self: flex-start;
}

@media (max-width: 991px) {
  .home-page .about-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-page .about-visual {
    max-width: 520px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .home-page .about-block .section-title {
    font-size: clamp(26px, 6.6vw, 38px);
  }

  .home-page .about-copy {
    font-size: 16px;
    line-height: 1.68;
  }

  .home-page .about-content {
    display: block;
    height: auto;
  }
}

/* Professor page (scoped only, safe recovery) */
.professor-page .prof-overview-block {
  padding-top: 28px;
  padding-bottom: 8px;
}

.professor-page .prof-overview-grid > .col-md-4 {
  display: flex;
  flex-direction: column;
}

.professor-page .prof-legacy-section-title {
  margin: 0 0 10px;
  padding-left: 0;
  border-left: 0;
  border-bottom: 2px solid #eadfce;
  padding-bottom: 8px;
  color: #9a653f;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.2;
}

.professor-page .prof-overview-card,
.professor-page .prof-text-list,
.professor-page .prof-history-list {
  list-style: none !important;
}

.professor-page .prof-text-list li::marker,
.professor-page .prof-history-list li::marker {
  content: "";
}

.professor-page .prof-overview-grid > .col-md-4 > .prof-text-list,
.professor-page .prof-history-block {
  background: linear-gradient(180deg, #fffefc 0%, #faf4ec 100%);
  border: 1px solid #ebdece;
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(84, 60, 38, 0.09);
}

.professor-page .prof-overview-card {
  min-height: 0;
  padding: 16px;
}

.professor-page .prof-photo {
  margin: 0 auto 12px;
  max-width: 250px;
  border-color: #e0d1be;
  border-radius: 12px;
  background: #f4eadf;
}

.professor-page .prof-name {
  margin: 0 0 6px;
  text-align: center;
  color: #2f241a;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.15;
}

.professor-page .prof-position {
  margin: 0;
  text-align: center;
  color: #6d5d4d;
  font-size: 14px;
}

.professor-page .prof-overview-grid > .col-md-4 > .prof-text-list {
  margin: 0;
  padding: 8px 14px 10px;
  list-style: none;
  flex: 1;
}

.professor-page .prof-text-list li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 14px;
  border-bottom: 1px dashed #e6d9c8;
  color: #2f241a;
  font-size: 14px;
  line-height: 1.58;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.professor-page .prof-text-list li:last-child {
  border-bottom: 0;
}

.professor-page .prof-text-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #bc8455;
}

.professor-page .prof-history-wrap {
  background: #fffaf4;
  border-top: 1px solid #ecdfcf;
  border-bottom: 1px solid #ecdfcf;
  padding-top: 30px;
  padding-bottom: 32px;
}

.professor-page .prof-history-block {
  padding: 16px 18px;
}

.professor-page .prof-history-block + .prof-history-block {
  margin-top: 16px;
}

.professor-page .prof-history-list {
  margin: 0;
  padding-top: 2px;
}

.professor-page .prof-history-list li {
  padding: 7px 0 7px 14px;
}

.professor-page .prof-overview-card:hover,
.professor-page .prof-overview-grid > .col-md-4 > .prof-text-list:hover,
.professor-page .prof-history-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(84, 60, 38, 0.13);
}

@media (max-width: 991px) {
  .professor-page .prof-overview-grid > .col-md-4 > .prof-text-list {
    margin-bottom: 10px;
  }
}

/* Professor modern layout (for current about_professor.html structure) */
.professor-page .prof-modern-wrap {
  --prof-ink: #2d241c;
  --prof-muted: #6f6153;
  --prof-accent: #b98356;
  --prof-accent-dark: #955f38;
  --prof-line: #eadfce;
  --prof-soft: #faf3ea;
}

.professor-page .prof-modern-top {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.professor-page .prof-identity-card {
  position: sticky;
  top: 92px;
  background: linear-gradient(180deg, #fffefb 0%, var(--prof-soft) 100%);
  border: 1px solid var(--prof-line);
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(82, 58, 36, 0.1);
  padding: 18px;
}

.professor-page .prof-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #dec4a7;
  background: #fff4e7;
  color: var(--prof-accent-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.professor-page .prof-identity-photo {
  margin: 14px 0 12px;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #dfcfbb;
  background: #f4e9dd;
}

.professor-page .prof-identity-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.professor-page .prof-identity-name {
  margin: 0;
  color: var(--prof-ink);
  font-size: clamp(25px, 2.2vw, 30px);
  line-height: 1.15;
}

.professor-page .prof-identity-role {
  margin: 6px 0 0;
  color: var(--prof-muted);
  font-size: 14px;
}

.professor-page .prof-identity-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.professor-page .prof-identity-stat {
  border: 1px solid var(--prof-line);
  border-radius: 12px;
  background: #fffefb;
  padding: 10px 10px 8px;
}

.professor-page .prof-identity-stat .label {
  display: block;
  margin-bottom: 4px;
  color: #7c6d5d;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.professor-page .prof-identity-stat strong {
  color: var(--prof-accent-dark);
  font-size: 18px;
  line-height: 1;
}

.professor-page .prof-modern-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.professor-page .prof-modern-panel,
.professor-page .prof-wide-panel {
  background: #fff;
  border: 1px solid var(--prof-line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(82, 58, 36, 0.08);
  overflow: hidden;
}

.professor-page .prof-modern-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #efe3d3;
  background: linear-gradient(180deg, #fffaf2 0%, #fffefc 100%);
}

.professor-page .prof-modern-panel-head h3 {
  margin: 0;
  color: var(--prof-accent-dark);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

.professor-page .prof-modern-panel-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e3c8a9;
  background: #fff4e7;
  color: var(--prof-accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.professor-page .prof-modern-list {
  list-style: none;
  margin: 0;
  padding: 10px 14px 14px;
}

.professor-page .prof-modern-list li {
  position: relative;
  margin: 0;
  padding: 10px 0 10px 14px;
  border-bottom: 1px dashed #e8dccb;
  color: var(--prof-ink);
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.professor-page .prof-modern-list li:last-child {
  border-bottom: 0;
}

.professor-page .prof-modern-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--prof-accent);
}

.professor-page .prof-modern-bottom {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.professor-page .prof-wide-panel {
  padding-bottom: 4px;
}

.professor-page .prof-timeline-list {
  list-style: none;
  margin: 0;
  padding: 12px 16px 14px 22px;
  position: relative;
}

.professor-page .prof-timeline-list::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 14px;
  bottom: 16px;
  width: 1px;
  background: #e6d8c4;
}

.professor-page .prof-timeline-list li {
  position: relative;
  margin: 0;
  padding: 8px 0 8px 14px;
  color: var(--prof-ink);
  font-size: 14px;
  line-height: 1.55;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.professor-page .prof-timeline-list li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 16px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--prof-accent);
  box-shadow: 0 0 0 3px #fff;
}

@media (max-width: 1180px) {
  .professor-page .prof-modern-top {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .professor-page .prof-modern-top {
    grid-template-columns: 1fr;
  }

  .professor-page .prof-identity-card {
    position: static;
    top: auto;
  }

  .professor-page .prof-modern-panels {
    grid-template-columns: 1fr;
  }
}

/* Research video page: card/video size normalization */
.research-video-page .video-year-block {
  margin-bottom: 24px;
}

.research-video-page .video-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.research-video-page .video-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #dfe8f3;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(18, 48, 78, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.research-video-page .video-card:hover {
  transform: translateY(-2px);
  border-color: #c8d8ea;
  box-shadow: 0 14px 26px rgba(18, 48, 78, 0.14);
}

.research-video-page .video-meta {
  padding: 12px 14px 10px;
  border-bottom: 1px solid #e8eef6;
  min-height: 98px;
}

.research-video-page .video-meta h3 {
  margin: 0 0 8px;
  color: #1f334a;
  font-size: 16px;
  line-height: 1.45;
  min-height: calc(1.45em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.research-video-page .video-meta p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.research-video-page .video-meta p span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e4c9ab;
  background: #fff4e8;
  color: #8f5c35;
  font-size: 11px;
  font-weight: 600;
}

.research-video-page .video-container {
  margin-top: auto;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0f1f34;
  overflow: hidden;
  cursor: zoom-in;
}

.research-video-page .video-container .background-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .research-video-page .video-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .research-video-page .video-archive-grid {
    grid-template-columns: 1fr;
  }

  .research-video-page .video-meta {
    min-height: 0;
  }
}

.member-legacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.alumni-master-priority {
  order: -1;
}

.alumni-empty-note {
  margin: 0 0 18px;
  color: #5f7084;
  font-size: 15px;
}

.member-legacy-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}

.member-legacy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 49, 84, 0.15);
}

.member-legacy-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 148px;
  padding: 14px;
}

.member-legacy-photo {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf3fb;
}

.member-legacy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-legacy-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-legacy-name {
  margin: 0;
  color: #183451;
  font-size: 20px;
  line-height: 1.2;
}

.member-legacy-interests {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-legacy-interests li {
  position: relative;
  margin: 0 0 3px;
  padding-left: 14px;
  color: #435c78;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-legacy-interests li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #b08968;
  font-weight: 700;
}

.member-legacy-role {
  margin: 0;
  color: #3f5875;
  font-size: 14px;
}

.member-legacy-meta {
  margin: 0;
  color: #607891;
  font-size: 13px;
}

.member-legacy-cta {
  margin-top: 6px;
  color: #0a4b96;
  font-size: 13px;
  font-weight: 700;
}

.alumni-legacy-card .member-legacy-link {
  min-height: 126px;
}

.alumni-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.alumni-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
}

.alumni-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #edf3fb;
}

.alumni-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.alumni-card h3 {
  margin: 0;
  padding: 10px 12px;
  font-size: 16px;
  color: #183451;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
}

.contact-card h3 {
  margin: 0 0 8px;
  color: #173451;
}

.contact-card p {
  margin: 0;
  color: #334a65;
}

.video-year-block {
  margin-bottom: 14px;
}

.video-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 1100px) {
  .pub-category-grid,
  .alumni-grid,
  .video-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-legacy-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prof-top-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item-with-image {
    grid-template-columns: 180px 1fr;
  }

  .timeline-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .std-detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .pub-category-grid,
  .alumni-grid,
  .contact-grid,
  .video-archive-grid {
    grid-template-columns: 1fr;
  }

  .member-legacy-grid {
    grid-template-columns: 1fr;
  }

  .member-legacy-link {
    min-height: 0;
  }

  .member-summary-bar {
    font-size: 16px;
    padding: 14px 12px;
  }

  .pub-media-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .pub-no {
    font-size: 18px;
    text-align: left;
  }

  .pub-thumb {
    width: 100%;
    height: 220px;
  }

  .pub-link-btn {
    justify-self: start;
  }

  .pub-year-nav-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pub-table .col-no {
    width: 64px;
  }

  .pub-table-title {
    font-size: 18px;
  }

  .prof-top-grid {
    grid-template-columns: 1fr;
  }

  .prof-contact-strip {
    grid-template-columns: 1fr;
  }

  .timeline-item-with-image {
    grid-template-columns: 1fr;
  }

  .timeline-card-grid {
    grid-template-columns: 1fr;
  }
}

/* News Accordion */
.news-list-accordion {
  display: block;
}

.news-item-acc {
  display: block;
  margin-bottom: 20px;
  border-bottom: 2px solid #D2691E;
  padding-bottom: 10px;
}

.news-item-header-acc {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 5px 0;
}

.news-item-header-acc:hover .news-title {
  color: #FF6347;
}

.news-item-acc .news-index {
  font-weight: 700;
  font-size: 16px;
  color: #000;
  flex-shrink: 0;
}

.news-item-acc .news-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
  line-height: 1.45;
}

.news-item-details-acc {
  padding-left: 35px;
  padding-top: 15px;
  margin-top: 10px;
  border-top: 1px dashed #ccc;
}

.news-image-acc {
  margin-bottom: 15px;
  overflow: hidden;
  border-radius: 5px;
}

.news-image-acc img {
  max-width: 600px;
  max-height: 600px;
  width: auto;
  height: auto;
  border-radius: 5px;
}

.news-content-full {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 15px;
}

.news-date {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.news-link-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #fff;
  border: 1px solid #D2691E;
  color: #111;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.news-link-button:hover {
  background-color: #fff7ef;
  color: #111;
}

/* Detail text should be black (not blue-tinted) */
.subpage-wrap .detail-content,
.subpage-wrap .project-fact-list li,
.subpage-wrap .project-point-list li,
.subpage-wrap .pub-table-title,
.subpage-wrap .pub-table-meta,
.subpage-wrap .pub-table-detail-meta,
.subpage-wrap .timeline-item-text,
.subpage-wrap .timeline-card-title,
.subpage-wrap .timeline-card-title a,
.subpage-wrap .news-content-full,
.subpage-wrap .member-interests li,
.subpage-wrap .member-email {
  color: #111 !important;
}

@media (max-width: 767px) {
  .news-item-details-acc {
    padding-left: 0;
  }
}

/* Patent Certificates (activity/patents only) */
.patcert-page .patcert-year-block {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin-bottom: 42px;
}

.patcert-page .timeline-year {
  margin: 0 0 16px;
  color: #a57d55;
  font-size: clamp(32px, 4.2vw, 44px);
  line-height: 1;
  font-weight: 800;
}

.patcert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 44px 56px;
  align-items: start;
}

.patcert-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.patcert-figure {
  margin: 0;
  width: 100%;
  max-width: 200px;
  height: 230px;
  overflow: hidden;
  background: transparent;
}

.patcert-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.patcert-shelf {
  position: relative;
  width: 86%;
  max-width: 186px;
  height: 14px;
  margin: -2px 0 10px;
  background: linear-gradient(180deg, #dbe3ee 0%, #becbda 100%);
  border-top: 2px solid #edf2f8;
  box-shadow: 0 3px 0 #8ea2b8;
  transform: perspective(420px) rotateX(34deg);
}

.patcert-bookend {
  display: none;
}

.patcert-reflection {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
}

.patcert-title {
  margin: 0;
  width: min(100%, 280px);
  text-align: center;
  font-size: clamp(12px, 1.05vw, 20px);
  line-height: 1.24;
  color: #000;
  font-weight: 800;
  text-transform: uppercase;
  word-break: keep-all;
}

.patcert-title a {
  color: inherit;
  text-decoration: none;
}

.patcert-title a:hover {
  color: #0b4d99;
}

.patcert-page .patent-group-title.is-global {
  color: #c06a1a;
}

.patcert-page .patent-group-title.is-domestic {
  color: #0c3f76;
}

.awards-page .timeline-year {
  margin: 0 0 22px;
  color: #111827;
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.awards-page .patcert-year-block {
  margin-bottom: 58px;
}

.awards-page .patcert-grid {
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
}

.awards-page .patcert-card {
  align-items: stretch;
  border: 1px solid #111111;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  padding: 18px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.awards-page .patcert-card:hover {
  transform: translateY(-6px);
  border-color: #000000;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}

.awards-page .patcert-figure {
  max-width: none;
  height: 290px;
  border-radius: 18px;
  border: 1px solid #d1d5db;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

.awards-page .patcert-figure img {
  object-fit: contain;
  padding: 18px;
}

.awards-page .patcert-shelf {
  display: none;
}

.awards-page .patcert-title {
  width: 100%;
  margin-top: 16px;
  padding: 0;
  font-size: clamp(15px, 1.1vw, 19px);
  line-height: 1.45;
  color: #111827;
  text-transform: none;
}

.awards-page .patcert-title span,
.awards-page .patcert-title a {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.awards-page .patcert-title a:hover {
  color: #0f172a;
}

@media (max-width: 991px) {
  .patcert-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .awards-page .patcert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  .awards-page .patcert-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .awards-page .patcert-card {
    padding: 14px;
    border-radius: 20px;
  }

  .awards-page .patcert-figure {
    height: 238px;
  }

  .awards-page .timeline-year {
    margin-bottom: 14px;
    font-size: clamp(28px, 9vw, 40px);
  }
}

/* Capstone Design */
.capstone-year-block {
  margin-bottom: 18px;
}

.capstone-year-title {
  margin: 0 0 10px;
  color: #b08968;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  line-height: 1.1;
}

.capstone-project-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.capstone-project-card {
  border: 1px solid #dbe5f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(20, 49, 84, 0.08);
}

.capstone-project-content {
  padding: 12px;
}

.capstone-award-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ffe68a;
  color: #5a4300;
  border: 1px solid #f0ca4f;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.capstone-image-wrap {
  margin: 0 0 10px;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #dbe5f0;
  background: #edf3fb;
}

.capstone-image-btn {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: zoom-in;
}

.capstone-project-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f7f9fc;
}

.capstone-project-title {
  margin: 0 0 6px;
  color: #132d48;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1.35;
  word-break: keep-all;
}

.capstone-project-subtitle {
  margin: 0;
  color: #4f647c;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .capstone-project-list {
    grid-template-columns: 1fr;
  }
}

.capstone-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
}

.capstone-modal.open {
  display: block;
}

.capstone-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.78);
}

.capstone-modal-panel {
  position: relative;
  width: min(92vw, 1100px);
  max-height: 90vh;
  margin: 4vh auto;
  background: #0f1d2e;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 16px;
}

.capstone-modal-title {
  margin: 0 36px 10px 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
}

.capstone-modal-image {
  width: 100%;
  max-height: calc(90vh - 92px);
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.capstone-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Final gallery overrides: keep gallery cards isolated from generic card sizing rules */
.gallery-page .gallery-card-grid {
  align-items: stretch;
}

.gallery-page .gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-page .gallery-card-thumb {
  display: grid !important;
  place-items: center;
  width: 100%;
  height: 260px !important;
  aspect-ratio: auto !important;
  padding: 14px;
  overflow: hidden;
  border-bottom: 1px solid #dbe5f0;
  background: #f5f8fc;
}

.gallery-page .gallery-card-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
}

.gallery-page .gallery-card-body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 172px !important;
  padding: 14px;
}

.gallery-page .gallery-card-meta {
  margin-top: 0 !important;
}

.gallery-page .gallery-card-title {
  min-height: 0 !important;
  margin: 0;
}

.gallery-page .gallery-card-cta {
  margin-top: auto;
}

@media (max-width: 767px) {
  .gallery-page .gallery-card-thumb {
    height: 220px !important;
  }
}

/* Admin editor */
.admin-toolbar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-toolbar-btn {
  border: 1px solid #d98731;
  background: #fff;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.admin-toolbar-btn:hover {
  background: #fff7ef;
}

.admin-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 1700;
  display: none;
}

.admin-editor-modal.open {
  display: block;
}

.admin-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 30, 0.72);
}

.admin-editor-dialog {
  position: relative;
  width: min(940px, 92vw);
  margin: 5vh auto 0;
  background: #fff;
  border: 1px solid #d7e2ef;
  border-radius: 10px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
  padding: 14px;
}

.admin-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.admin-editor-head h3 {
  margin: 0;
  font-size: 18px;
}

.admin-editor-close {
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.admin-editor-help {
  margin: 0 0 8px;
  font-size: 13px;
  color: #4b5a6b;
}

#admin-editor-textarea {
  width: 100%;
  min-height: 58vh;
  border: 1px solid #d5e0ee;
  border-radius: 8px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
  resize: vertical;
}

.admin-editor-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.admin-editor-save {
  border: 1px solid #d98731;
  background: #fff;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.admin-editor-save:hover {
  background: #fff7ef;
}
