/* =====================================================
   ANUIT 공통 서브페이지 CSS  (subpage.css)
   - 변수, 리셋, 네비게이션, 푸터, 서브페이지 레이아웃
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

/* ===== VARIABLES ===== */
:root {
  --primary:      #27aae1;
  --primary-dark: #1a8bc0;
  --dark:         #0d1117;
  --dark-blue:    #1a1a2e;
  --text:         #212529;
  --muted:        #6c757d;
  --bg-light:     #f8f9fa;
  --border:       #e9ecef;
  --white:        #ffffff;
  --shadow:       0 4px 24px rgba(0,0,0,0.07);
  --shadow-hover: 0 16px 48px rgba(39,170,225,0.16);
  --radius:       14px;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Malgun Gothic', sans-serif;
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { border: 0; vertical-align: top; max-width: 100%; }
ul { list-style: none; }
address { font-style: normal; }

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ===== REVEAL ANIMATION ===== */
.rv { opacity: 0; transform: translateY(30px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.show { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }
.rv.d5 { transition-delay: .5s; }

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

/* ==============================================
   NAVBAR
   ============================================== */
#nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 22px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
#nav.solid {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { height: 36px; display: block; }
.nav-logo-text { font-size: 19px; font-weight: 800; color: #fff; letter-spacing: -.5px; transition: color .3s; }
#nav.solid .nav-logo-text { color: var(--dark-blue); }
.nav-logo-text em { color: var(--primary); font-style: normal; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }

/* hover 브릿지: nav-link와 dropdown 사이 틈을 채워 hover 유지 */
.nav-item::after {
  content: '';
  position: absolute;
  top: 100%; left: 0;
  width: 100%; height: 14px;
}

.nav-link {
  display: block; padding: 8px 17px;
  font-size: 13px; font-weight: 600; letter-spacing: .3px;
  color: rgba(255,255,255,.88); transition: color .25s; white-space: nowrap;
}
#nav.solid .nav-link { color: var(--text); }
.nav-link:hover { color: var(--primary) !important; }

/* Dropdown — top:100% (gap 없음), padding-top으로 시각적 간격 */
.drop {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #fff; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.11);
  padding: 12px 0 10px;
  min-width: 150px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  border-top: 3px solid var(--primary);
}
.nav-item:hover .drop {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.drop li a {
  display: block; padding: 8px 20px;
  font-size: 13px; color: var(--text);
  transition: color .2s, background .2s, padding-left .2s; white-space: nowrap;
}
.drop li a:hover { color: var(--primary); background: rgba(39,170,225,.05); padding-left: 26px; }

.nav-utils { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-util { font-size: 11.5px; color: rgba(255,255,255,.6); transition: color .25s; }
#nav.solid .nav-util { color: var(--muted); }
.nav-util:hover { color: var(--primary) !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: background .3s; }
#nav.solid .nav-toggle span { background: var(--dark-blue); }

/* Mobile Nav Overlay */
#mobile-nav {
  display: none; position: fixed; inset: 0;
  background: rgba(13,17,23,.97); z-index: 999;
  flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
#mobile-nav.open { display: flex; }
#mobile-nav a { font-size: 22px; font-weight: 700; color: rgba(255,255,255,.8); padding: 10px 0; transition: color .2s; }
#mobile-nav a:hover { color: var(--primary); }
.mobile-close { position: absolute; top: 24px; right: 28px; background: none; border: none; font-size: 32px; color: #fff; cursor: pointer; }

/* ==============================================
   SUB-HERO BANNER
   ============================================== */
.sub-hero {
  background: var(--dark);
  padding: 148px 28px 64px;
  position: relative;
  overflow: hidden;
}
.sub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,17,23,.98) 0%, rgba(39,170,225,.08) 100%);
}
.sub-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; }
.sub-hero-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 14px; display: block;
  animation: fadeUp .7s var(--ease) both;
}
.sub-hero-h1 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 900;
  color: #fff; line-height: 1.2; margin-bottom: 18px;
  animation: fadeUp .7s var(--ease) .08s both;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: rgba(255,255,255,.45);
  animation: fadeUp .7s var(--ease) .16s both;
}
.breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: rgba(255,255,255,.25); }
.breadcrumb .cur { color: var(--primary); }

/* ==============================================
   SUB BODY / LAYOUT
   ============================================== */
.sub-body { padding: 80px 28px 100px; }
.sub-layout {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr; gap: 60px; align-items: start;
}

/* Sidebar */
.sidebar { position: sticky; top: 100px; }
.sidebar-title {
  font-size: 16px; font-weight: 900; color: var(--dark-blue);
  padding-bottom: 14px; margin-bottom: 6px;
  border-bottom: 2px solid var(--primary);
  letter-spacing: .5px;
}
.sidebar-list { margin-top: 4px; }
.sidebar-list li { border-bottom: 1px solid var(--border); }
.sidebar-list li a {
  display: block; padding: 11px 12px;
  font-size: 13.5px; color: var(--muted);
  transition: color .2s, background .2s, padding-left .2s;
}
.sidebar-list li a:hover { color: var(--primary); padding-left: 18px; }
.sidebar-list li.active a {
  color: var(--primary); font-weight: 700;
  padding-left: 18px; background: rgba(39,170,225,.05);
}

/* Content area */
.sub-content {}
.page-tit {
  font-size: clamp(22px, 3vw, 34px); font-weight: 800;
  color: var(--dark-blue); margin-bottom: 12px;
  padding-bottom: 20px; border-bottom: 2px solid var(--border);
}
.page-tit span { color: var(--primary); }
.page-lead { font-size: 15px; color: var(--muted); line-height: 1.9; margin-bottom: 48px; }

/* Info box */
.info-box {
  background: var(--bg-light); border-radius: var(--radius);
  border-left: 4px solid var(--primary); padding: 24px 28px; margin-bottom: 36px;
}
.info-box p { font-size: 14px; color: var(--text); line-height: 1.85; }

/* Card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 36px; }
.card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 32px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: rgba(39,170,225,.3); }
.card-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.card-title { font-size: 17px; font-weight: 800; color: var(--dark-blue); margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.8; }
.card-list { margin-top: 12px; padding-left: 0; }
.card-list li { font-size: 12.5px; color: var(--muted); padding: 3px 0 3px 14px; position: relative; }
.card-list li::before { content: '▸'; position: absolute; left: 0; color: var(--primary); font-size: 10px; top: 5px; }

/* Icon card (horizontal) */
.icon-card { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 18px; transition: box-shadow .3s, transform .3s var(--ease); }
.icon-card:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.icon-card-icon { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: linear-gradient(135deg, rgba(39,170,225,.1), rgba(39,170,225,.2)); display: flex; align-items: center; justify-content: center; font-size: 24px; }
.icon-card-title { font-size: 16px; font-weight: 800; color: var(--dark-blue); margin-bottom: 6px; }
.icon-card-desc { font-size: 13px; color: var(--muted); line-height: 1.75; }

/* Timeline */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item::before { content: ''; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--primary); }
.tl-year { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 6px; letter-spacing: 1px; }
.tl-content { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; }
.tl-content h4 { font-size: 15px; font-weight: 700; color: var(--dark-blue); margin-bottom: 6px; }
.tl-content p, .tl-content ul li { font-size: 13px; color: var(--muted); line-height: 1.75; }
.tl-content ul { padding-left: 16px; list-style: disc; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; margin-top: 24px; }
.data-table th { background: var(--dark-blue); color: #fff; padding: 13px 16px; font-size: 13px; font-weight: 600; text-align: left; }
.data-table td { padding: 12px 16px; font-size: 13px; color: var(--text); border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: rgba(39,170,225,.04); }
.data-table .tag {
  display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 10px;
  border-radius: 50px; background: rgba(39,170,225,.1); color: var(--primary);
}

/* Section divider */
.sec-gap { margin-top: 60px; padding-top: 60px; border-top: 1px solid var(--border); }
.sec-title { font-size: 20px; font-weight: 800; color: var(--dark-blue); margin-bottom: 24px; }
.sec-title span { color: var(--primary); }

/* Stat row */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; margin: 36px 0; }
.stat-item { text-align: center; padding: 28px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.stat-big { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 8px; }
.stat-lbl { font-size: 12.5px; color: var(--muted); }

/* Partner logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; margin-top: 36px; }
.logo-cell {
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 24px 20px; display: flex; align-items: center; justify-content: center;
  transition: box-shadow .3s, transform .3s var(--ease);
}
.logo-cell:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.logo-cell img { max-height: 40px; max-width: 110px; width: auto; filter: grayscale(80%); opacity: .7; transition: filter .3s, opacity .3s; }
.logo-cell:hover img { filter: grayscale(0%); opacity: 1; }

/* Contact info */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
.contact-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; }
.contact-card.highlight { background: var(--dark-blue); border-color: var(--dark-blue); }
.contact-card.highlight * { color: #fff !important; }
.contact-card.highlight .contact-label { color: var(--primary) !important; }
.contact-badge { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.contact-card.highlight .contact-badge { color: rgba(255,255,255,.6) !important; }
.contact-title { font-size: 20px; font-weight: 800; color: var(--dark-blue); margin-bottom: 20px; }
.contact-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; margin-top: 14px; margin-bottom: 4px; display: block; }
.contact-val { font-size: 14px; color: var(--text); line-height: 1.7; }
.contact-link { color: var(--primary); }

/* Benefit tags */
.tag-grid { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.benefit-tag {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--border); border-radius: 50px;
  padding: 10px 20px; font-size: 14px; color: var(--text); font-weight: 500;
  transition: background .2s, border-color .2s, color .2s;
}
.benefit-tag:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.benefit-tag span { font-size: 18px; }

/* Org chart */
.org-wrap { text-align: center; margin-top: 36px; }
.org-node {
  display: inline-block; background: var(--dark-blue); color: #fff;
  border-radius: 10px; padding: 14px 28px; font-size: 14px; font-weight: 700;
  position: relative;
}
.org-node.sub { background: var(--primary); font-size: 13px; padding: 10px 22px; }
.org-node.leaf { background: #fff; color: var(--text); border: 1px solid var(--border); font-size: 13px; padding: 9px 18px; font-weight: 500; }
.org-row { display: flex; justify-content: center; gap: 16px; margin-top: 20px; position: relative; }
.org-row::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 1px; height: 10px; background: var(--border); }
.org-connector { display: flex; justify-content: center; }
.org-connector::after { content: ''; display: block; width: 1px; height: 20px; background: var(--border); margin: 0 auto; }

/* Sitemap */
.smap-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; margin-top: 36px; }
.smap-section {}
.smap-title { font-size: 15px; font-weight: 800; color: var(--dark-blue); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid var(--primary); }
.smap-list li { margin-bottom: 8px; }
.smap-list a { font-size: 13.5px; color: var(--muted); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.smap-list a::before { content: '›'; color: var(--primary); }
.smap-list a:hover { color: var(--primary); }

/* CI color palette */
.color-palette { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.color-swatch { text-align: center; }
.color-block { width: 100px; height: 80px; border-radius: 10px; margin-bottom: 10px; }
.color-name { font-size: 12px; font-weight: 600; color: var(--dark-blue); }
.color-hex { font-size: 11px; color: var(--muted); }

/* ==============================================
   FOOTER
   ============================================== */
#footer { background: #0a0e18; padding: 72px 28px 40px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px;
  padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.07);
}
.f-brand-name { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -.5px; }
.f-brand-name em { color: var(--primary); font-style: normal; }
.f-brand-desc { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; margin-bottom: 18px; }
.f-contact a { color: var(--primary); font-size: 13px; }
.f-contact p { font-size: 13px; color: rgba(255,255,255,.45); margin-top: 4px; }
.f-col-title { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.07); }
.f-list li { margin-bottom: 10px; }
.f-list a { font-size: 12.5px; color: rgba(255,255,255,.48); transition: color .2s; }
.f-list a:hover { color: var(--primary); }
.footer-bottom { padding-top: 36px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px; }
.f-info { font-size: 11.5px; color: rgba(255,255,255,.32); line-height: 2; }
.f-copy { font-size: 11.5px; color: rgba(255,255,255,.22); }

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-menu  { display: none; }
  .nav-utils { display: none; }
  .nav-toggle { display: flex; }
  .sub-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-bottom: 40px; }
}
@media (max-width: 600px) {
  .footer-top { grid-template-columns: 1fr; }
  .sub-body { padding: 60px 20px 80px; }
  .sub-hero { padding: 130px 20px 50px; }
}
