:root {
  --primary-navy: #0A1D37;
  --accent-blue: #00468C;
  --text-dark: #1A1A1B;
  --text-muted: #4A4A4A;
  --bg-light: #FFFFFF;
  --bg-gray: #F8F9FA;
  --border-color: #E5E5E5;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-light);
}

.container {
  max-width: 1800px;
  width: 90%;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 600px) {
  .container {
    width: 100%;
    padding: 0 20px;
  }
}

/* 아이콘 폰트가 늦게 도착해도 'chevron_left' 같은 아이콘 이름 글자가 옆으로 넘치지 않도록 한 글자 폭으로 고정 */
.material-symbols-outlined {
  display: inline-block;
  width: 1em;
  overflow: hidden;
  white-space: nowrap;
}

/* Header Styles */
.topbar {
  background: var(--bg-light);
  /* 아래쪽 여백/테두리를 없애 네비게이션 바가 본문(히어로 영상)에 바로 맞닿도록 함 */
  padding: 10px 0 0;
}

.topbar-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.brand-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  margin-right: -5px;
}

.brand h1 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-navy);
}

.brand p {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.top-links {
  display: flex;
  align-items: center;
}

.top-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0 14px;
  border-radius: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-right: 1px solid var(--border-color);
  transition: color 0.2s ease;
}

.top-links a:last-child {
  padding-right: 0;
  border-right: none;
}

.top-badge:hover {
  background: transparent;
  color: var(--primary-navy);
}

.top-badge .material-symbols-outlined {
  font-size: 14px;
  color: var(--accent-blue);
  opacity: 0.8;
}

.nav {
  background: var(--primary-navy);
  color: white;
}

.nav-inner {
  display: flex;
  gap: 30px;
}

.nav-inner a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
}

.nav-inner a.active, .nav-inner a:hover {
  color: white;
  border-bottom: 3px solid white;
}

/* 좁은 화면: 상단 링크는 줄바꿈, 메뉴는 가로로 밀어서 보도록 해 페이지 전체가 옆으로 넓어지지 않게 함 */
@media (max-width: 768px) {
  .topbar-main { flex-wrap: wrap; row-gap: 8px; }
  .brand-logo { height: 60px; }
  .top-links { flex-wrap: wrap; row-gap: 6px; }
  .top-badge:first-child { padding-left: 0; }
  .nav-inner { gap: 20px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .nav-inner a { flex-shrink: 0; }
}

/* Hero Section - Slider Style */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 60px;
  background-color: #000;
  color: white;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 텍스트 가독성을 위한 어두운 오버레이 */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* 히어로 레이아웃 및 컨텐츠 설정 */
.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* 텍스트 비중을 늘림 */
  gap: 60px;
  align-items: center;
  /* 본문(.container)과 같은 폭·여백으로 맞춰, 넓은 화면에서도 텍스트가 본문과 같은 선에서 시작하도록 함 */
  max-width: 1800px;
  width: 90%;
  margin: 0 auto;
  padding: 0 40px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease-in-out;
}

.hero-content.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-text {
  text-align: left;
  z-index: 5;
}

/* 슬라이더 제어 버튼 */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
}

.hero-btn.prev { left: 30px; }
.hero-btn.next { right: 30px; }

.hero-spacer {
  display: none;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 24px 28px; /* 패딩을 줄여 더 콤팩트하게 */
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  z-index: 5;
  max-width: 380px; /* 박스 최대 너비 제한 */
  justify-self: end; /* 그리드 내에서 우측 정렬 */
}

@media (max-width: 1100px) {
  .hero { margin-bottom: 40px; }
  .hero-content {
    grid-template-columns: 1fr;
    padding: 0 40px;
    text-align: center;
  }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero h2 { font-size: 2.5rem; }
  .hero-desc { font-size: 1rem; }
  .hero-panel { display: none; } /* 모바일에서 패널 숨김 (가독성) */
  .hero-btn { width: 40px; height: 40px; }
}

@media (max-width: 600px) {
  .hero-content { width: 100%; padding: 0 20px; }
  .hero h2 { font-size: 2rem; }
  .hero-center-spline { height: 300px; }
  .hero-panel { padding: 20px; }
}

.hero-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-panel ul {
  list-style: none;
  padding: 0;
}

.hero-panel li {
  font-size: 0.9rem;
  margin-bottom: 10px;
  padding-left: 15px;
  position: relative;
}

.hero-panel li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #60a5fa;
}

/* Area Sections */
.section {
  /* 좌우 여백은 건드리지 않아야 .section.container 가 헤더·히어로와 같은 선에서 시작함 */
  padding-top: 80px;
  padding-bottom: 80px;
}

.area-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.area-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent-blue);
  padding-left: 20px;
}

/* Photo Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.photo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s;
}

.photo-card:hover {
  transform: translateY(-5px);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: #eee;
}

.card-content {
  padding: 25px 0;
}

.card-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 8px;
  background: #E8F0FE;
  color: #1A73E8;
  border-radius: 3px;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent-blue);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Area 02 (Dark) */
.section-dark {
  background: var(--primary-navy);
  color: white;
}

.section-dark .area-label { color: #fff; opacity: 0.7; }
.section-dark .area-title { color: #fff; border-color: #fff; }

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
}

.dark-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
}

.dark-card h4 { margin-top: 15px; font-size: 1.2rem; }
.dark-card p { font-size: 0.9rem; margin: 15px 0; opacity: 0.8; }

/* Area 03 (Complex) */
.area-03-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.map-container {
  background: #eee url('https://images.unsplash.com/photo-1526778548025-fa2f459cd5c1?auto=format&fit=crop&w=1000&q=80');
  background-size: cover;
  border-radius: 12px;
  height: 500px;
  position: relative;
}

.map-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.info-stacked {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-item {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.info-item:last-child { border: none; }

.info-item h4 { font-size: 1.1rem; margin-bottom: 10px; }

/* Collaboration Section */
.collab {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-gray);
}

.collab h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.collab p {
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn-group {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.btn {
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-primary { background: var(--primary-navy); color: white; }
.btn-secondary { border: 1px solid var(--text-dark); color: var(--text-dark); }

/* Footer */
.footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
}

.footer-icon {
  font-size: 14px;
  vertical-align: -2px;
  color: var(--accent-blue);
  opacity: 0.7;
  margin-right: 2px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-nav {
  display: flex;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.badge-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
}

.dot { width: 8px; height: 8px; background: #34A853; border-radius: 50%; }

@media (max-width: 768px) {
  /* 인라인 style로 고정폭(예: 300px 1fr)이 지정된 2단 카드까지 확실히 1단으로 쌓음 */
  .hero-inner, .grid-2, .dark-grid, .area-03-grid {
    grid-template-columns: 1fr !important;
  }
  /* 푸터 3단(로고·연락처) 그리드를 모바일에서 1단으로 쌓아 가로 넘침 방지 */
  .footer .container > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Custom Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  display: flex;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  padding: 24px 30px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0;
}

.modal-close:hover {
  color: #ff4d4f;
}

.modal-body {
  padding: 30px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
}
.modal-body h4 {
  margin: 20px 0 10px;
  color: var(--primary-navy);
}
.cursor-pointer {
  cursor: pointer;
}

/* 페이지 전체 사진 배경 (People 페이지): 흑백 사진을 본문 뒤에 흐릿하게 고정해서 깔아 둠
   background-attachment: fixed 는 모바일 사파리에서 동작하지 않아 고정 위치 가상 요소로 구현 */
.page-bg-photo::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    var(--page-bg-image) center / cover no-repeat;
}

.page-bg-photo {
  background: transparent;
}
