/* ============================================================
   CAIPEX Main Site (caipex.site) — 공통 스타일시트
   디자인 토큰: navy #001f63 / cyan #12b7de / glassmorphism
   게시판(trademark.moip.ai.kr)과 동일한 디자인 언어
   라이트/다크/시스템 모드 지원 (data-theme 속성, 기본: 시스템)
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #001f63;
  --cyan: #12b7de;
  --bg: #f4f6f8;
  --text: #1f2b3a;
  --muted: #6c7a89;
  --glass: rgba(255, 255, 255, 0.65);
  --card: rgba(255, 255, 255, 0.7);
  --card-solid: #ffffff;
  --input-bg: #ffffff;
  --border: rgba(0, 31, 99, 0.1);
  --border-soft: rgba(0, 0, 0, 0.04);
  --hover: rgba(18, 183, 222, 0.08);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] {
  --navy: #9dc4ff;
  --cyan: #2dd4f0;
  --bg: #0d1420;
  --text: #e8ecf2;
  --muted: #9aa7b4;
  --glass: rgba(24, 33, 51, 0.88);
  --card: rgba(30, 41, 63, 0.92);
  --card-solid: #1e2a41;
  --input-bg: #18223a;
  --border: rgba(140, 180, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.1);
  --hover: rgba(45, 212, 240, 0.1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Malgun Gothic", sans-serif;
  background:
    url('../background.jpg') no-repeat center center fixed,
    radial-gradient(circle at top left, rgba(18,183,222,0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0,31,99,0.08), transparent 35%),
    linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  background-size: cover, auto, auto, auto;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: color 0.3s ease;
}
html[data-theme="dark"] body {
  /* 사진을 어둡게 눌러 다크 카드/텍스트가 안정적으로 보이도록 */
  background:
    linear-gradient(rgba(10, 15, 26, 0.86), rgba(10, 15, 26, 0.86)),
    url('../background.jpg') no-repeat center center fixed,
    radial-gradient(circle at top left, rgba(45,212,240,0.08), transparent 35%),
    radial-gradient(circle at bottom right, rgba(0,31,99,0.4), transparent 40%),
    linear-gradient(135deg, #0d1420 0%, #111a29 100%);
  background-size: auto, cover, auto, auto, auto;
}
@media (max-width: 768px) {
  body {
    background: radial-gradient(circle at top left, rgba(18,183,222,0.08), transparent 35%),
                radial-gradient(circle at bottom right, rgba(0,31,99,0.08), transparent 35%),
                linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
  }
  html[data-theme="dark"] body {
    background: radial-gradient(circle at top left, rgba(45,212,240,0.06), transparent 35%),
                radial-gradient(circle at bottom right, rgba(0,31,99,0.35), transparent 40%),
                linear-gradient(135deg, #0d1420 0%, #111a29 100%);
  }
}

/* ---------- 배경 블롭 ---------- */
.bg-shape {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.bg-shape::before,
.bg-shape::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
}
.bg-shape::before {
  width: 500px;
  height: 500px;
  background: var(--cyan);
  top: -120px;
  left: -120px;
}
.bg-shape::after {
  width: 500px;
  height: 500px;
  background: var(--navy);
  bottom: -150px;
  right: -100px;
}

/* ---------- 네비게이션 ---------- */
.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 24px 0 24px;
  flex-wrap: wrap;
}
.nav-btn {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.nav-btn:hover {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(18,183,222,0.25);
}
.nav-btn.active {
  background: var(--cyan);
  color: white;
  border-color: var(--cyan);
}
.nav-btn.disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.nav-btn.disabled::after {
  content: "Soon";
  position: absolute;
  top: -8px;
  right: -4px;
  background: var(--cyan);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
}
.nav-sep {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 4px;
}

/* 테마 토글 / 언어 선택 */
.theme-toggle {
  padding: 9px 12px;
  font-size: 0.95rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: inherit;
}
.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}
.lang-select {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  font-family: inherit;
}

/* ---------- 컨테이너 / 히어로 ---------- */
.container {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.hero {
  width: 100%;
  max-width: 1100px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-soft);
  border-radius: 32px;
  padding: 64px;
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24rem;
  font-weight: 800;
  color: var(--border);
  letter-spacing: -20px;
  user-select: none;
  pointer-events: none;
}
.hero.watermark-ai::before { content: "AI"; }
.hero.watermark-about::before { content: "About"; font-size: 16rem; letter-spacing: -4px; }
.hero.watermark-contact::before { content: "Contact"; font-size: 14rem; letter-spacing: -4px; }
.hero.watermark-pub::before { content: "Pub"; font-size: 20rem; letter-spacing: -8px; }
.hero.watermark-events::before { content: "Events"; font-size: 16rem; letter-spacing: -4px; }
.hero.watermark-team::before { content: "Team"; font-size: 18rem; letter-spacing: -6px; }

.logo {
  width: 380px;
  max-width: 90%;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
}
.tag {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(18,183,222,0.1);
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 24px;
  border: 1px solid rgba(18,183,222,0.25);
  position: relative;
  z-index: 2;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.3rem);
  line-height: 1.1;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}
h1 span { color: var(--cyan); }

.page-title {
  font-size: 2.8rem;
}
.page-subtitle {
  max-width: 820px;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.subtitle {
  max-width: 820px;
  margin: 0 auto 36px;
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--muted);
  position: relative;
  z-index: 2;
}
.divider {
  width: 100px;
  height: 4px;
  margin: 0 auto 42px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  border-radius: 999px;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 24px;
  margin: 0 auto 40px;
  display: block;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
}
.hero-image:hover { transform: scale(1.01); }

/* ---------- Feature 카드 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 22px;
  transition: 0.3s ease;
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: var(--card-solid);
}
.feature h3 {
  color: var(--navy);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.feature p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.96rem;
}

/* 최신 연구 하이라이트 (콘텐츠 최신화) */
.research-highlight {
  background: linear-gradient(135deg, rgba(18,183,222,0.08), rgba(0,31,99,0.05));
  border: 1px solid rgba(18,183,222,0.3);
  border-radius: 20px;
  padding: 1.1rem 1.4rem;
  margin: 24px auto 0;
  max-width: 860px;
  text-align: left;
  position: relative;
  z-index: 2;
}
.research-highlight .rh-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.research-highlight .rh-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.research-highlight .rh-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.research-highlight .rh-link:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  position: relative;
  z-index: 2;
  text-align: left;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 20px 22px;
}
.info-icon { font-size: 1.6rem; }
.info-text h4 {
  color: var(--navy);
  margin-bottom: 6px;
  font-size: 1rem;
}
.info-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}
.info-text small { color: var(--muted); font-size: 0.8rem; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 28px 26px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }
.form-group textarea { min-height: 110px; resize: vertical; }
.btn-submit {
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--cyan);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-submit:hover { background: var(--navy); }
.btn-submit.disabled {
  background: #d1d9e6;
  color: #7b8a9c;
  cursor: not-allowed;
}
html[data-theme="dark"] .btn-submit.disabled {
  background: #223047;
  color: #6c7a89;
}
.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ---------- Publications ---------- */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
  text-align: left;
}
.pub-item {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 22px 24px;
  transition: 0.25s ease;
}
.pub-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  background: var(--card-solid);
}
.pub-cover {
  width: 86px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pub-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.pub-info { flex: 1; }
.pub-info h3 {
  color: var(--navy);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.pub-info .meta {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.pub-info .desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}
.pub-download {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}
.btn-download {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-download:hover {
  background: var(--navy);
  transform: translateY(-2px);
}
.btn-download.disabled {
  background: #d1d9e6;
  color: #7b8a9c;
  pointer-events: none;
}
html[data-theme="dark"] .btn-download.disabled {
  background: #223047;
  color: #6c7a89;
}
.soon-badge {
  display: inline-block;
  background: rgba(18,183,222,0.15);
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ---------- Events ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 2;
  text-align: left;
}
.event-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px 26px;
  transition: 0.25s ease;
}
.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  background: var(--card-solid);
}
.event-thumb {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #e0e7f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.event-info { flex: 1; }
.event-date {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}
.event-title {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.event-location {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.event-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.event-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
}
.btn-event {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
  background: transparent;
}
.btn-event:hover { background: var(--cyan); color: white; }
.btn-event.disabled {
  border-color: #d1d9e6;
  color: #7b8a9c;
  pointer-events: none;
}
.past-badge {
  background: rgba(108,122,137,0.15);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.ongoing-badge {
  background: rgba(25,135,84,0.12);
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}
.more-events {
  margin-top: 26px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ---------- Members ---------- */
.list-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 2;
  text-align: left;
}
.member-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 24px 20px;
  transition: 0.25s ease;
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  background: var(--card-solid);
}
.member-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, #e0e7f0, #cbd5e1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
}
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-name {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
  margin-bottom: 4px;
}
.member-role {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 6px;
}
.member-affiliation {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 10px;
  line-height: 1.5;
}
.member-bio {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  text-align: center;
}
.more-members {
  margin-top: 26px;
  border: 2px dashed var(--border);
  border-radius: 18px;
  padding: 20px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* ---------- CAIPEX 연구 체험 섹션 ---------- */
.research-section {
  margin-top: 44px;
  position: relative;
  z-index: 2;
  text-align: left;
}
.research-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin-bottom: 10px;
}
.research-section-intro {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
}
.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 768px) {
  .research-grid {
    grid-template-columns: 1fr;
  }
}
.research-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 24px 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.research-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  background: var(--card-solid);
  border-color: rgba(18, 183, 222, 0.45);
}
.research-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .research-card {
    transition: none;
  }
  .research-card:hover {
    transform: none;
  }
}
.research-graphic {
  display: flex;
  justify-content: center;
  padding: 0.6rem 0 0.9rem;
  pointer-events: none;
}
.research-graphic svg {
  width: 150px;
  height: 64px;
  color: var(--cyan);
}
.research-graphic .g-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  opacity: 0.4;
}
.research-graphic .g-fill {
  fill: rgba(18, 183, 222, 0.12);
  stroke: currentColor;
  stroke-width: 1.2;
}
html[data-theme="dark"] .research-graphic .g-fill {
  fill: rgba(45, 212, 240, 0.14);
}
.research-graphic .g-dot {
  fill: currentColor;
}
.research-graphic .g-label {
  fill: currentColor;
  opacity: 0.85;
}
.research-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}
.research-card-title {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}
.research-card-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
}
.research-keywords {
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.research-btn {
  display: inline-block;
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}
.research-card:hover .research-btn {
  background: var(--cyan);
  color: white;
}
@media (prefers-reduced-motion: reduce) {
  .research-btn {
    transition: none;
  }
}
.research-disclaimer {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 라이트박스 ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: white;
  font-size: 2.6rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--cyan); }

/* ---------- 푸터 ---------- */
footer {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
}

/* ---------- 반응형 ---------- */
@media (max-width: 768px) {
  .navbar { gap: 6px; padding: 16px 12px 0 12px; }
  .nav-btn { padding: 8px 13px; font-size: 0.75rem; }
  .hero { padding: 40px 24px; border-radius: 24px; }
  .hero::before { font-size: 8rem; letter-spacing: -4px; }
  .page-title { font-size: 2rem; }
  .subtitle, .page-subtitle { font-size: 0.95rem; line-height: 1.75; }
  .hero-image { border-radius: 18px; margin-bottom: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .pub-item { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pub-cover { width: 60px; height: 85px; }
  .event-card { flex-direction: column; gap: 16px; align-items: center; text-align: center; }
  .event-thumb { width: 80px; height: 80px; }
  .event-actions { justify-content: center; }
  .member-photo { width: 80px; height: 80px; font-size: 1.8rem; }
  .logo { width: 280px; }
}
