/* =========================================
   TG Alliance — style.css
   Light bg (#eaeaea / #ffffff), Dark header
   ========================================= */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --dark:     #0d1117;
  --dark2:    #161b22;
  --dark3:    #21262d;
  --accent:   #00aaff;
  --accent2:  #7c4dff;
  --light:    #eaeaea;
  --white:    #ffffff;
  --text-dark:#1a1a2e;
  --text-mid: #444466;
  --text-soft:#667799;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,0.08);
  --shadow-md:0 8px 40px rgba(0,0,0,0.12);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-en:  'Inter', sans-serif;
  --font-ko:  'Noto Sans KR', sans-serif;
  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-en);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
body.lang-ko { font-family: var(--font-ko); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { font-weight: 700; line-height: 1.2; color: var(--text-dark); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* ── Container ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sections ── */
.section { padding: 96px 0; }
.bg-light { background: var(--light); }
.bg-white { background: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #1565c0, var(--accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(21,101,192,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(21,101,192,0.45); }
.btn-ghost {
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
.btn-full { width: 100%; justify-content: center; }

/* ── Section Labels ── */
.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1565c0;
  background: rgba(21,101,192,0.1);
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--text-dark);
}
.section-title br { display: block; }
.section-desc {
  max-width: 680px;
  color: var(--text-mid);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ──────────────────────────────────────────
   HERO SLIDER
──────────────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-width: 100vw;
  overflow: hidden;
  padding-top: 0;
  background: #040814; /* 슬라이드 전환 중 흰 화면 방지 */
}

/* Track */
.slider-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: none;
}

/* Individual slide */
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 0.9s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
  z-index: 3;
}
.slide.prev {
  opacity: 0;
  transform: scale(0.96);
  z-index: 2;
}

/* Decorative glow blobs */
.slide-deco {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
  right: -100px; bottom: -200px;
}
.slide-deco-blue   { background: #1565c0; }
.slide-deco-green  { background: #00897b; }
.slide-deco-purple { background: #6a1b9a; }
.slide-deco-orange { background: #e65100; }
.slide-deco-pink   { background: #ad1457; }

/* Slide content */
.slide-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  width: 100%;
  padding: calc(var(--header-h) + 40px) 48px 80px;
  margin: 0 auto;
}

/* Slogan */
.slide-slogan {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00aaff;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease 0.18s, transform 0.6s ease 0.18s;
}
.slide.active .slide-slogan { opacity: 1; transform: translateY(0); }

/* Badge */
.slide-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #00aaff;
  border: 1px solid rgba(0,170,255,0.35);
  background: rgba(0,170,255,0.08);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}
.slide.active .slide-badge {
  opacity: 1; transform: translateY(0);
}

/* Logo in slide */
.slide-logo-wrap {
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}
.slide.active .slide-logo-wrap {
  opacity: 1; transform: translateY(0);
}
.slide-alliance-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  display: block;
}
.slide-member-logo {
  height: 48px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  display: block;
  /* 어두운 배경에서 흰색 계열 로고가 잘 보이도록 */
  filter: brightness(0) invert(1);
}

/* Title */
.slide-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease 0.25s, transform 0.65s ease 0.25s;
}
.slide.active .slide-title {
  opacity: 1; transform: translateY(0);
}
.slide-title .accent {
  background: linear-gradient(90deg, #00aaff, #7c4dff, #e040fb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Description */
.slide-desc {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease 0.35s, transform 0.65s ease 0.35s;
}
.slide.active .slide-desc {
  opacity: 1; transform: translateY(0);
}

/* Buttons row */
.slide-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease 0.42s, transform 0.65s ease 0.42s;
}
.slide.active .slide-btns {
  opacity: 1; transform: translateY(0);
}

/* Tags row */
.slide-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease 0.5s, transform 0.65s ease 0.5s;
}
.slide.active .slide-tags {
  opacity: 1; transform: translateY(0);
}
.slide-tags span {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(4px);
}

/* Hero stats (slide 1 only) */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.65s ease 0.5s, transform 0.65s ease 0.5s;
}
.slide.active .hero-stats {
  opacity: 1; transform: translateY(0);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 32px 0 0;
}
.stat-top {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #00aaff;
  line-height: 1;
}
.stat-plus { font-size: 1.6rem; font-weight: 900; color: #00aaff; line-height: 1; }
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 6px; white-space: nowrap; }
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.15);
  margin: 0 32px 0 0;
}

/* ── Particles ── */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  animation: float linear infinite;
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0); opacity: 0.2; }
  50%  { opacity: 0.5; }
  100% { transform: translateY(-80vh) translateX(20px); opacity: 0; }
}

/* ── Slide backgrounds — 생성 이미지 적용 ── */
.slide-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll; /* fixed 금지 — 타일링 방지 */
  transform: scale(1.06);
  transition: transform 1.4s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}
.slide.active .slide-bg {
  transform: scale(1);
}

/* 공통 어두운 오버레이 — 텍스트 가독성 확보 */
.slide-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(4,8,20,0.82) 0%,
    rgba(4,8,20,0.65) 45%,
    rgba(4,8,20,0.2) 100%
  );
}
/* Slide3 퍼플 틴트 오버레이 */
.slide-overlay--purple {
  background: linear-gradient(
    105deg,
    rgba(8,4,22,0.85) 0%,
    rgba(12,6,30,0.68) 45%,
    rgba(20,8,40,0.22) 100%
  );
}

/* ── 콘텐츠 레이아웃 ── */
.slide-content--split {
  position: relative;
  z-index: 4;
  max-width: 680px;
  padding: calc(var(--header-h) + 52px) 0 88px 7vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}
.slide-content--center-v {
  justify-content: center;
}

/* ── Responsive ── */
@media(max-width:1024px){
  .slide-content--split { max-width: 75%; padding-left: 5vw; }
}
@media(max-width:768px){
  .slide-content--split {
    max-width: 100%;
    padding: calc(var(--header-h) + 28px) 22px 72px;
  }
  .slide-overlay {
    background: rgba(4,8,20,0.72);
  }
}
@media(max-width:480px){
  .slide-content--split { padding: calc(var(--header-h) + 20px) 18px 68px; }
}

/* ── Arrow controls ── */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(8px);
}
.slider-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-50%) scale(1.1);
}
.slider-prev { left: 28px; }
.slider-next { right: 28px; }

/* ── Dots ── */
.slider-dots {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}
.dot.active {
  width: 28px;
  border-radius: 4px;
  background: #00aaff;
}

/* ── Progress bar ── */
.slider-progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}
.slider-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #00aaff, #7c4dff);
  width: 0%;
  transition: width linear;
}

/* ── Scroll hint ── */
.hero-scroll {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.35);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 10;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100%{ transform: translateY(0); }
  50%    { transform: translateY(5px); }
}

/* Slide counter */
.slide-counter {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  right: 40px;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  z-index: 10;
}
.slide-counter .current { color: #fff; font-size: 1.1rem; }

/* ── Responsive ── */
@media(max-width:768px){
  .slide-content { padding: calc(var(--header-h) + 28px) 24px 72px; }
  .slide-title   { font-size: 2rem; }
  .slide-btns    { flex-direction: column; gap: 10px; }
  .slider-arrow  { width: 40px; height: 40px; font-size: 0.9rem; }
  .slider-prev   { left: 12px; }
  .slider-next   { right: 12px; }
  .hero-stats    { gap: 20px; flex-wrap: wrap; }
  .stat-divider  { display: none; }
  .stat          { padding: 0; }
}
@media(max-width:480px){
  .slide-content { padding: calc(var(--header-h) + 20px) 18px 68px; }
  .slide-alliance-logo { height: 38px; }
  .slide-member-logo   { height: 36px; }
  .slider-dots { bottom: 48px; gap: 8px; }
  .hero-scroll { display: none; }
}

/* ──────────────────────────────────────────
   HEADER
──────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  /* 로고가 흰 글씨이므로 다크 헤더에서 자연스럽게 보임 */
}

#main-nav { flex: 1; }
#main-nav ul {
  display: flex;
  gap: 4px;
  align-items: center;
}
#main-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: var(--transition);
}
#main-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }

/* 채용 메뉴 강조 스타일 */
#main-nav a.nav-careers {
  color: #00aaff;
  border: 1px solid rgba(0,170,255,0.35);
  background: rgba(0,170,255,0.08);
  border-radius: 6px;
  padding: 7px 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
#main-nav a.nav-careers::after {
  content: '\f35d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.72rem;
  opacity: 0.75;
}
#main-nav a.nav-careers:hover {
  color: #fff;
  background: rgba(0,170,255,0.22);
  border-color: rgba(0,170,255,0.7);
}

/* ── Dropdown menu ── */
.nav-arrow {
  font-size: 0.6rem;
  margin-left: 2px;
  vertical-align: middle;
  transition: transform 0.25s ease;
  display: inline-block;
}
#main-nav li.has-dropdown { position: relative; }
#main-nav li.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
#main-nav li.has-dropdown.open > a .nav-arrow { transform: rotate(180deg); }

#main-nav ul.dropdown {
  display: block;
  position: absolute;
  top: 100%;          /* 갭 없이 바로 붙임 */
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 190px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 14px 0 8px; /* 위쪽 padding이 마우스 이동 브릿지 역할 */
  gap: 0;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 2000;
}
/* 말풍선 꼭짓점 — padding 안쪽에 위치 */
#main-nav ul.dropdown::before {
  content: '';
  position: absolute;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}
/* JS mouseenter/leave가 .open 클래스를 제어 — CSS :hover 제거로 충돌 방지 */
#main-nav li.has-dropdown.open > ul.dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#main-nav ul.dropdown li { width: 100%; }
#main-nav ul.dropdown li a {
  display: block;
  color: #1a2236 !important;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 0;
  background: none !important;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
  white-space: nowrap;
}
#main-nav ul.dropdown li a:hover {
  background: #f0f6ff !important;
  color: #1565c0 !important;
  padding-left: 26px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 4px 12px;
}
.lang-btn {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  padding: 3px 6px;
  border-radius: 4px;
  transition: var(--transition);
  letter-spacing: 0.05em;
}
.lang-btn.active, .lang-btn:hover { color: #fff; }
.lang-sep { color: rgba(255,255,255,0.25); font-size: 0.75rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media(max-width:900px){
  .hamburger { display: flex; }
  #main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--dark2);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 16px 0 24px;
    transform: translateY(-120%);
    transition: transform var(--transition);
    z-index: 999;
  }
  #main-nav.open { transform: translateY(0); }
  #main-nav ul { flex-direction: column; gap: 2px; padding: 0 24px; }
  #main-nav a { display: block; padding: 12px 16px; font-size: 1rem; }

  /* 모바일 드롭다운 */
  #main-nav ul.dropdown {
    position: static;
    transform: none !important;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    min-width: auto;
    padding: 4px 0;
    margin: 4px 0 8px 16px;
    opacity: 1; visibility: visible; pointer-events: auto;
    display: none;
  }
  #main-nav ul.dropdown::before { display: none; }
  #main-nav li.has-dropdown.open > ul.dropdown { display: flex; }
  #main-nav li.has-dropdown:hover > ul.dropdown { display: flex; }
  #main-nav ul.dropdown li a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.9rem;
    padding: 9px 16px;
  }
  #main-nav ul.dropdown li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1) !important;
    padding-left: 22px;
  }
  #main-nav li.has-dropdown > a { cursor: pointer; }
}

/* ── Slide 2 : Members grid ── */
.slide-content--members .slide-title,
.slide-content--ai .slide-title { margin-bottom: 14px; }

.slide-members-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease 0.38s, transform 0.65s ease 0.38s;
}
.slide.active .slide-members-grid { opacity: 1; transform: translateY(0); }

.smg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 110px;
  flex: 1;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
}
.smg-item:hover { background: rgba(255,255,255,0.13); }
.smg-logo {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.smg-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  text-align: center;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ── Slide 3 : AI pills ── */
.slide-ai-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease 0.42s, transform 0.65s ease 0.42s;
}
.slide.active .slide-ai-pills { opacity: 1; transform: translateY(0); }
.slide-ai-pills span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(173,20,87,0.18);
  border: 1px solid rgba(173,20,87,0.35);
  color: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
}
.slide-ai-pills span i { color: #e040fb; font-size: 0.78rem; }

/* slide-title--sm : 슬라이드2 제목 작게 */
.slide-title--sm {
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  margin-bottom: 10px !important;
}

/* ── Responsive ── */
@media(max-width:768px){
  .slide-members-grid { gap: 8px; }
  .smg-item { min-width: 80px; padding: 10px 10px; }
  .smg-logo { height: 22px; max-width: 72px; }
  .smg-role { font-size: 0.65rem; white-space: normal; text-align: center; }
  .slide-ai-pills span { font-size: 0.75rem; padding: 6px 12px; }
}
@media(max-width:480px){
  .slide-members-grid { gap: 6px; }
  .smg-item { padding: 8px 6px; min-width: 56px; }
}

/* ──────────────────────────────────────────
   ABOUT
──────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 3px solid transparent;
}
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: #1565c0;
}
.about-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0fe, #d0e4ff);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: #1565c0;
}
.about-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text-dark); }
.about-card p  { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ──────────────────────────────────────────
   PANEL LOGO IMAGE
──────────────────────────────────────────── */
.panel-logo-img-wrap {
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.06);
  min-height: 88px;
}
.panel-logo-img {
  max-width: 200px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ──────────────────────────────────────────
   MEMBERS (Tab UI)
──────────────────────────────────────────── */
.member-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 0;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px 8px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.tab-btn:hover { color: #1565c0; background: rgba(21,101,192,0.05); }
.tab-btn.active { color: #1565c0; border-bottom-color: #1565c0; background: rgba(21,101,192,0.06); }
.tab-num { font-size: 0.72rem; font-weight: 800; opacity: 0.6; }

.member-panels { position: relative; }
.member-panel {
  display: none;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  animation: fadeIn 0.35s ease;
}
.member-panel.active { display: grid; }

@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.panel-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.panel-logo {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-logo svg { width: 100%; height: auto; display: block; }

.panel-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.panel-year, .panel-domain {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
}
.panel-year { background: rgba(0,0,0,0.06); color: var(--text-mid); }
.panel-domain { background: rgba(21,101,192,0.1); color: #1565c0; }

.panel-title { font-size: 1.4rem; margin-bottom: 14px; }
.panel-desc { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 20px; }
.panel-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 50px;
  background: var(--light);
  color: var(--text-mid);
  border: 1px solid rgba(0,0,0,0.08);
}
.panel-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1565c0;
  transition: var(--transition);
}
.panel-link:hover { color: var(--accent); gap: 10px; }

/* ──────────────────────────────────────────
   AI SOLUTIONS
──────────────────────────────────────────── */
.ai-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.ai-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.ai-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ai-card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}
.ai-card h4 { font-size: 1rem; margin-bottom: 10px; }
.ai-card p  { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; }

/* ──────────────────────────────────────────
   SYNERGY
──────────────────────────────────────────── */
/* ──────────────────────────────────────────
   SYNERGY
──────────────────────────────────────────── */
.synergy-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: space-between;
  margin-bottom: 56px;
}

.flow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 20px 28px;
  flex: 1;
  min-width: 0;
  box-shadow: var(--shadow);
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}
.flow-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: #1565c0;
}

.flow-num {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--dark);
  color: #fff;
  padding: 3px 12px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.flow-icon {
  width: 64px; height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.flow-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.flow-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
}
.flow-text span {
  font-size: 0.8rem;
  color: var(--text-soft);
  line-height: 1.4;
}

/* 화살표 */
.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  font-size: 1rem;
  color: #b0b8cc;
  align-self: center;
  margin-top: 10px; /* flow-num 만큼 살짝 내려 시각 중심 맞춤 */
}

/* 설명 박스 */
.synergy-desc {
  text-align: center;
  max-width: 780px;
  margin: 16px auto 0;
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding: 28px 36px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid #1565c0;
}

/* ── Tablet (≤ 1024px) ── */
@media(max-width:1024px){
  .synergy-flow { flex-wrap: wrap; gap: 12px; justify-content: center; }
  .flow-item { flex: 0 0 calc(50% - 40px); min-width: 180px; }
  .flow-arrow { width: 100%; justify-content: center; transform: rotate(90deg); margin: 0; height: 28px; }
}

/* ── Mobile (≤ 768px) ── */
@media(max-width:768px){
  .synergy-flow { flex-direction: column; align-items: stretch; gap: 10px; }
  .flow-item { padding: 32px 18px 22px; }
  .flow-arrow { transform: rotate(90deg); height: 24px; width: 100%; }
  .synergy-desc { padding: 22px 20px; font-size: 0.9rem; }
}

/* ──────────────────────────────────────────
   SOLUTIONS GRID
──────────────────────────────────────────── */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.solution-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}
.solution-card:hover {
  transform: translateY(-4px);
  border-bottom-color: #1565c0;
  box-shadow: var(--shadow-md);
}
.sol-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #1565c0;
}
.solution-card h4 { font-size: 1.05rem; margin-bottom: 10px; }
.solution-card p  { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; margin-bottom: 18px; }
.sol-partners {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.sol-partners span {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(21,101,192,0.08);
  color: #1565c0;
}

/* ──────────────────────────────────────────
   CONTACT
──────────────────────────────────────────── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 56px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item i {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(21,101,192,0.1);
  color: #1565c0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-item strong { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.contact-item span   { font-size: 0.9rem; color: var(--text-mid); }

.contact-companies p {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.company-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.company-links a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(21,101,192,0.25);
  color: #1565c0;
  transition: var(--transition);
}
.company-links a:hover { background: #1565c0; color: #fff; }

/* Form */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dark); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ──────────────────────────────────────────
   FOOTER (dark)
──────────────────────────────────────────── */
#footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.footer-top {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.45); }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 6px; }
.footer-col a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color var(--transition); }
.footer-col a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-legal-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal-links a:hover { color: #fff; }
.footer-legal-links a.highlight {
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.footer-legal-links a.highlight:hover { color: #fff; }
.footer-legal-sep {
  color: rgba(255,255,255,0.18);
  font-size: 0.75rem;
}
.footer-bizinfo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}
.footer-lang { display: flex; align-items: center; gap: 8px; }
.footer-lang button {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
  letter-spacing: 0.05em;
}
.footer-lang button.active, .footer-lang button:hover { color: #fff; }
.footer-lang span { color: rgba(255,255,255,0.2); }

/* ──────────────────────────────────────────
   MODAL
──────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 80px rgba(0,0,0,0.25);
  transform: scale(0.9);
  transition: transform var(--transition);
}
.modal-overlay.show .modal-box { transform: scale(1); }
.modal-box .fa-check-circle { font-size: 3.5rem; color: #00897b; margin-bottom: 20px; }
.modal-box h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal-box p { font-size: 0.95rem; color: var(--text-mid); margin-bottom: 28px; line-height: 1.6; }

/* ──────────────────────────────────────────
   SCROLL ANIMATIONS
──────────────────────────────────────────── */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ──────────────────────────────────────────
   RESPONSIVE — Tablet (≤ 1024px)
──────────────────────────────────────────── */
@media(max-width:1024px){
  .member-panel { grid-template-columns: 1fr; gap: 28px; }
  .panel-logo-wrap { align-items: flex-start; }
  .panel-logo { max-width: 220px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ──────────────────────────────────────────
   RESPONSIVE — Mobile (≤ 768px)
──────────────────────────────────────────── */
@media(max-width:768px){
  :root { --header-h: 64px; }
  .section { padding: 64px 0; }

  .hero-content { padding: 0 20px; }
  .hero-btns { flex-direction: column; gap: 12px; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat { padding: 0; }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 16px; }
  .ai-cards   { grid-template-columns: 1fr; }
  .solution-grid { grid-template-columns: 1fr; }

  .member-tabs { gap: 4px; }
  .tab-btn { padding: 8px 12px; font-size: 0.8rem; }
  .tab-name { display: none; }
  .tab-btn.active .tab-name { display: inline; }
  .member-panel { padding: 24px 20px; }

  .synergy-flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { transform: rotate(90deg); text-align: center; }
  .flow-item { min-width: unset; }

  .contact-wrap { grid-template-columns: 1fr; }
  .contact-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-links { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ──────────────────────────────────────────
   RESPONSIVE — Small (≤ 480px)
──────────────────────────────────────────── */
@media(max-width:480px){
  .container { padding: 0 16px; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.6rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .member-tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .tab-btn { flex-shrink: 0; }
  .footer-links { grid-template-columns: 1fr; }
  .header-inner { padding: 0 16px; gap: 16px; }
}

/* ──────────────────────────────────────────
   LEGAL MODAL (이용약관 / 개인정보 처리방침)
──────────────────────────────────────────── */
.legal-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  padding: 0;
  transition: color 0.2s;
  font-family: inherit;
}
.legal-link-btn:hover { color: #fff; }
.legal-link-btn.highlight { color: rgba(255,255,255,0.85); font-weight: 600; }
.legal-link-btn.highlight:hover { color: #fff; }

.legal-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.legal-modal-overlay.show {
  display: flex;
}

.legal-modal-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 760px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
  animation: legalModalIn 0.28s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes legalModalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);     }
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.legal-modal-header h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0d47a1;
}
.legal-modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}
.legal-modal-close:hover { background: #f0f2f5; color: #222; }

.legal-modal-body {
  overflow-y: auto;
  padding: 28px 32px 36px;
  flex: 1;
  scroll-behavior: smooth;
  color: #333;
  font-size: 0.92rem;
  line-height: 1.85;
}
.legal-modal-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0d47a1;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8eef8;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin: 0 0 12px; }
.legal-modal-body ul {
  margin: 0 0 14px;
  padding-left: 20px;
}
.legal-modal-body ul li { margin-bottom: 6px; }
.legal-modal-body a { color: #1565c0; }
.legal-date {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.82rem;
}

/* Scrollbar 스타일 */
.legal-modal-body::-webkit-scrollbar { width: 6px; }
.legal-modal-body::-webkit-scrollbar-track { background: #f5f7fa; }
.legal-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

@media(max-width: 600px) {
  .legal-modal-box { border-radius: 12px; max-height: 92vh; }
  .legal-modal-header { padding: 18px 20px 14px; }
  .legal-modal-body { padding: 20px 20px 28px; }
}

/* =============================================
   CEO SECTION
   ============================================= */
.ceo-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 48px;
}
.ceo-photo-col { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.ceo-photo-frame {
  width: 220px; height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0fe, #c5d8fc);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(21,101,192,0.15);
}
.ceo-photo-placeholder i { font-size: 6rem; color: #1565c0; opacity: 0.4; }
.ceo-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.ceo-nameplate { text-align: center; }
.ceo-name { font-size: 1.2rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.ceo-title { font-size: 0.82rem; color: var(--text-mid); line-height: 1.5; }
.ceo-message-col { position: relative; padding-top: 8px; }
.ceo-quote-mark {
  font-size: 6rem; line-height: 0.7; color: #1565c0; opacity: 0.12;
  font-family: Georgia, serif; position: absolute; top: 0; left: -10px;
}
.ceo-message { margin: 0 0 28px; padding: 0; border: none; }
.ceo-message p {
  font-size: 1rem; line-height: 1.85; color: var(--text-mid);
  margin-bottom: 18px; font-style: normal;
}
.ceo-message p:last-child { margin-bottom: 0; }
.ceo-sig { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid #e2e8f0; padding-top: 20px; margin-top: 20px; }
.ceo-sig-name { font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.ceo-sig-role { font-size: 0.82rem; color: var(--text-mid); }

@media(max-width: 900px) {
  .ceo-wrap { grid-template-columns: 1fr; gap: 32px; }
  .ceo-photo-col { flex-direction: row; gap: 24px; align-items: center; }
  .ceo-photo-frame { width: 100px; height: 120px; flex-shrink: 0; }
  .ceo-nameplate { text-align: left; }
}
@media(max-width: 600px) {
  .ceo-photo-col { flex-direction: column; align-items: center; }
  .ceo-nameplate { text-align: center; }
}

/* =============================================
   HISTORY / TIMELINE SECTION
   ============================================= */
.history-timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 40px;
}
.timeline-line {
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, #1565c0, #e2e8f0);
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -44px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #1565c0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(21,101,192,0.2);
}
.timeline-dot--future {
  background: #fff;
  border: 2px solid #1565c0;
}
.timeline-year {
  font-size: 1.15rem; font-weight: 800;
  color: #1565c0; line-height: 1.3;
  padding-top: 2px;
  white-space: nowrap;
}
.timeline-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid #f0f4f8;
  transition: box-shadow var(--transition), transform var(--transition);
}
.timeline-card:hover { box-shadow: 0 6px 24px rgba(21,101,192,0.12); transform: translateY(-2px); }
.timeline-card h4 { font-size: 0.95rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.timeline-card p  { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; margin: 0; }
.timeline-card--future { border: 1px dashed #1565c0; background: #f8fbff; }
.timeline-card--future h4 { color: #1565c0; }
.timeline-card-inner {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.timeline-card-inner.has-images {
  gap: 14px;
}
.timeline-card-text {
  flex: 1;
  min-width: 0;
}
.timeline-card-images {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.timeline-thumb {
  display: block;
  width: auto;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@media(max-width: 600px) {
  .timeline-card-inner.has-images {
    flex-direction: column;
    gap: 12px;
  }
  .timeline-thumb {
    width: auto;
    height: 80px;
  }
}

@media(max-width: 600px) {
  .history-timeline { padding-left: 28px; }
  .timeline-item { grid-template-columns: 54px 1fr; gap: 12px; }
  .timeline-dot { left: -32px; }
  .timeline-year { font-size: 1rem; }
  .timeline-card { padding: 16px 18px; }
}

/* =============================================

   MULTI-PAGE SUPPORT
   ============================================= */

/* 내부 페이지 공통 히어로 배너 */
.page-hero-banner {
  background: linear-gradient(135deg, #0d1b2a 0%, #1565c0 100%);
  padding: 110px 0 52px;
  color: #fff;
}
.page-hero-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin: 12px 0 0;
  line-height: 1.2;
}
.page-hero-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  margin-top: 10px;
}

/* 내부 페이지에서 header--solid 스타일 덮어쓰기 방지 */
body:not(.home) #header { background: var(--dark) !important; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 12px rgba(0,0,0,0.18); }

/* 홈 헤더는 투명 유지 (스크롤 전) */
body.home #header { background: transparent; }
body.home #header.scrolled { background: var(--dark) !important; }

/* =============================================
   MULTI-PAGE — 상단 여백 보정
   ============================================= */

/* 내부 페이지: header--solid가 sticky이므로 콘텐츠 첫 섹션 padding 불필요 */
.page-hero-banner { margin-top: 0; }

/* notice-single-wrap: header 높이만큼 상단 여백 */
.notice-single-wrap { padding-top: 60px; }
body.home #header { transition: background var(--transition), box-shadow var(--transition); }
body.home #header.scrolled { background: var(--dark) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.25); }

/* archive breadcrumb: notice-page-hero 내부 흰색 */
.notice-page-hero .npb-breadcrumb a,
.notice-page-hero .npb-breadcrumb span,
.notice-page-hero .npb-breadcrumb i { color: rgba(255,255,255,0.65); }
.notice-page-hero .npb-breadcrumb a:hover { color: #fff; }

/* =============================================
   NOTICE — 공통 (배지·브레드크럼)
   ============================================= */
.notice-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.notice-badge--notice { background: rgba(21,101,192,0.12); color: #1565c0; }
.notice-badge--news   { background: rgba(46,125,50,0.12);  color: #2e7d32; }
.notice-badge--press  { background: rgba(230,81,0,0.12);   color: #e65100; }

.site-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.site-breadcrumb a { color: rgba(255,255,255,0.65); transition: color .2s; }
.site-breadcrumb a:hover { color: #fff; }
.site-breadcrumb i { font-size: 0.6rem; opacity: .7; }



/* =============================================
   INNER HERO — 내부 페이지 배경이미지 타이틀
   ============================================= */
.inner-hero {
  position: relative;
  padding: 100px 0 60px;
  color: #fff !important;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
}
.inner-hero *,
.inner-hero h1,
.inner-hero h2,
.inner-hero h3,
.inner-hero p,
.inner-hero .inner-hero-tag,
.inner-hero .inner-hero-desc,
.inner-hero .nps-hero-title {
  color: #fff !important;
}
/* 배경이미지 레이어 */
.inner-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
/* 그라디언트 오버레이 */
.inner-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,20,50,0.82) 0%,
    rgba(21,101,192,0.65) 60%,
    rgba(10,20,50,0.55) 100%
  );
}
.inner-hero .container {
  position: relative;
  z-index: 1;
  width: 100%;
}
.inner-hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
  backdrop-filter: blur(4px);
}
.inner-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.inner-hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  line-height: 1.6;
  margin: 0;
}
/* 배경이미지: 각 페이지 PHP에서 inline style로 적용 */

/* =============================================
   NOTICE ARCHIVE — 목록 페이지
   ============================================= */
.notice-archive-wrap { padding: 56px 0 96px; background: var(--light); min-height: 60vh; }

/* 탭 필터 */
.notice-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.notice-filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid #e0e4ea;
  transition: var(--transition);
  cursor: pointer;
}
.notice-filter-btn:hover { border-color: #1565c0; color: #1565c0; }
.notice-filter-btn.active {
  background: #1565c0;
  border-color: #1565c0;
  color: #fff;
}

/* 카드형 목록 */
.notice-card-list { display: flex; flex-direction: column; gap: 12px; }
.notice-card {
  background: var(--white);
  border-radius: 14px;
  border: 1.5px solid #e8ecf2;
  padding: 22px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.notice-card:hover {
  box-shadow: 0 8px 32px rgba(21,101,192,0.13);
  border-color: #a8c0e8;
  transform: translateY(-2px);
}
.notice-card-left { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.notice-card-num {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}
.notice-card-body { min-width: 0; }
.notice-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--transition);
}
.notice-card:hover .notice-card-title { color: #1565c0; }
.notice-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.notice-card-date { font-size: 0.8rem; color: var(--text-soft); white-space: nowrap; }
.notice-card-arrow { font-size: 0.8rem; color: #a0b0c8; transition: transform var(--transition), color var(--transition); }
.notice-card:hover .notice-card-arrow { transform: translateX(4px); color: #1565c0; }
.notice-card-important {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: #fff0f0;
  color: #c62828;
}

/* 페이지네이션 */
.notice-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.notice-pagination .page-numbers { display: contents; }
.notice-pagination .page-numbers li { display: contents; }
.notice-pagination .page-numbers li a,
.notice-pagination .page-numbers li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--white);
  border: 1.5px solid #e0e4ea;
  text-decoration: none;
  transition: var(--transition);
}
.notice-pagination .page-numbers li a:hover { background: #e8f0fe; color: #1565c0; border-color: #a8c0e8; }
.notice-pagination .page-numbers li .current { background: #1565c0; color: #fff; border-color: #1565c0; }

/* 빈 상태 */
.notice-empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-soft);
  background: var(--white);
  border-radius: 16px;
  border: 1.5px dashed #d0d8e4;
}
.notice-empty-state i { font-size: 3rem; opacity: .2; display: block; margin: 0 auto 16px; }
.notice-empty-state p { font-size: 1rem; }

/* 메인 페이지 notice 미리보기용 */
.notice-preview-list { display: flex; flex-direction: column; gap: 0; }
.notice-preview-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eaecf0;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.notice-preview-item:last-child { border-bottom: none; }
.notice-preview-item:hover .notice-preview-title { color: #1565c0; }
.notice-preview-title {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.notice-preview-date { font-size: 0.78rem; color: var(--text-soft); white-space: nowrap; }
.notice-footer { margin-top: 28px; text-align: center; }
.notice-footer .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid #1565c0;
  color: #1565c0;
  transition: var(--transition);
}
.notice-footer .btn-outline:hover { background: #1565c0; color: #fff; }

/* =============================================
   NOTICE SINGLE — 상세 페이지
   ============================================= */
.nps-wrap { padding: 56px 0 96px; background: var(--light); }
.nps-container { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* 아티클 카드 */
.nps-article {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid #e8ecf2;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.nps-header {
  padding: 40px 48px 32px;
  border-bottom: 1px solid #f0f2f6;
}
.nps-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.nps-date { font-size: 0.82rem; color: var(--text-soft); }
.nps-author { font-size: 0.82rem; color: var(--text-soft); }
.nps-author::before { content: '·'; margin-right: 10px; color: #ccc; }
.nps-title {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
  margin: 0;
}
.nps-thumbnail img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.nps-content {
  padding: 40px 48px 48px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-mid);
}
.nps-content h2,
.nps-content h3 { color: var(--text-dark); margin: 32px 0 12px; font-weight: 700; }
.nps-content p   { margin-bottom: 18px; }
.nps-content img { max-width: 100%; border-radius: 10px; margin: 20px 0; }
.nps-content a   { color: #1565c0; text-decoration: underline; }
.nps-content ul,
.nps-content ol  { padding-left: 24px; margin-bottom: 18px; }
.nps-content li  { margin-bottom: 8px; }
.nps-content blockquote {
  border-left: 4px solid #1565c0;
  padding: 12px 20px;
  background: #f0f6ff;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
  color: var(--text-mid);
  font-style: italic;
}

/* 언어 전환 탭 (상세 페이지) */
.nps-lang-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e8ecf2;
  margin: 0 48px;
  padding-top: 8px;
}
.nps-lang-tab {
  padding: 10px 22px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  position: relative;
  bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.nps-lang-tab:hover { color: var(--text-dark); }
.nps-lang-tab.active { color: #1565c0; border-bottom-color: #1565c0; }
.nps-lang-panel { display: none; }
.nps-lang-panel.active { display: block; }

/* 이전/다음 네비게이션 */
.nps-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid #e8ecf2;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.nps-nav-item { display: flex; flex-direction: column; gap: 5px; }
.nps-nav-prev { align-items: flex-start; }
.nps-nav-next { align-items: flex-end; }
.nps-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-soft);
}
.nps-nav-link {
  font-size: 0.88rem;
  color: var(--text-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: color var(--transition);
  max-width: 260px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.nps-nav-link:hover { color: #1565c0; }
.nps-nav-none { font-size: 0.82rem; color: var(--text-soft); font-style: italic; }
.nps-nav-list-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 12px 20px;
  border-radius: 10px;
  background: #f0f4fb;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}
.nps-nav-list-btn i { font-size: 1rem; }
.nps-nav-list-btn:hover { background: #e8f0fe; color: #1565c0; }

/* =============================================
   RESPONSIVE — notice
   ============================================= */
@media(max-width: 768px) {
  .notice-card { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
  .notice-card-num { display: none; }
  .notice-card-right { flex-direction: row; justify-content: space-between; align-items: center; }
  .nps-header { padding: 28px 24px 20px; }
  .nps-lang-tabs { margin: 0 24px; }
  .nps-content { padding: 24px 24px 32px; }
  .nps-nav { grid-template-columns: 1fr; }
  .nps-nav-list-btn { flex-direction: row; justify-content: center; }
  .nps-nav-next { align-items: flex-start; }
  .notice-filter { gap: 6px; }
  .notice-filter-btn { padding: 7px 14px; font-size: 0.8rem; }
}

/* ── single 히어로 내 제목·메타 ── */
.nps-hero-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.nps-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nps-hero-date {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

/* ── About 드롭다운 현재 페이지 상위 강조 ── */
#main-nav li.has-dropdown.nav-current > a { color: #fff; }

/* ── HOME nav 아이템 ── */
#main-nav ul > li:first-child > a { font-weight: 600; }

/* ── inner-hero 반응형 ── */
@media(max-width:768px) {
  .inner-hero { padding: 90px 0 44px; min-height: 200px; }
  .inner-hero h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
  .nps-wrap { padding-top: 0; }
}

/* =============================================
   HOME — 섹션 구분 네비게이션 배너
   ============================================= */
.home-section-nav {
  background: var(--dark2);
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.home-section-nav .container {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.home-section-label {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.home-section-label::before {
  content: '—';
  color: #1565c0;
  margin-right: 12px;
  font-weight: 400;
}
.home-section-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.5;
}
@media(max-width:600px) {
  .home-section-nav { padding: 24px 0; }
  .home-section-label { font-size: 1.2rem; }
  .home-section-nav .container { flex-direction: column; gap: 6px; }
}
