/* ============================================================
   GECEC — 공통 스타일시트 v2.0
   사단법인 세계경제문화교류센터
   ============================================================ */

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

/* ── CSS 변수 ── */
:root {
  --navy-900: #071630;
  --navy-800: #0a1f44;
  --navy-700: #0d2755;
  --navy-600: #112d5e;
  --navy-500: #1a3a6b;
  --navy-400: #2a4f8a;
  --navy-300: #4a6fa5;
  --navy-200: #8aaad0;
  --navy-100: #d0dff0;
  --navy-50:  #eef3fb;
  --gold-700: #9a7520;
  --gold-600: #b8891e;
  --gold-500: #c9a84c;
  --gold-400: #d4b86a;
  --gold-300: #e0ca8e;
  --gold-200: #edd9a8;
  --gold-100: #f5eacc;
  --gold-50:  #fdf8ee;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --header-h: 72px;
  --topbar-h: 36px;
  --announce-h: 36px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --transition: 220ms cubic-bezier(0.4,0,0.2,1);
}

/* ── 리셋 ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 레이아웃 ── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── 섹션 헤더 ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.3;
  margin-bottom: 12px;
}
.section-title-white { color: var(--white); }
.section-desc {
  font-size: 15px;
  color: var(--gray-500);
  max-width: 560px;
  line-height: 1.8;
}
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}
.section-header-row .section-title { margin-bottom: 0; }

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-900);
  box-shadow: 0 2px 10px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-300));
  box-shadow: 0 4px 18px rgba(201,168,76,0.45);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1.5px solid var(--navy-200);
  color: var(--navy-700);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--gold-500);
  color: var(--gold-600);
  background: var(--gold-50);
}
.btn-ghost-white {
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.btn-ghost-white:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
  background: rgba(201,168,76,0.08);
}
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-600);
  transition: gap var(--transition);
}
.link-more:hover { gap: 9px; }

/* ── 배지 ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-gold { background: var(--gold-100); color: var(--gold-700); }
.badge-navy { background: var(--navy-50); color: var(--navy-600); }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #dc2626; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* ── 카드 ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gold-200);
}

/* ── 페이지 히어로 (서브 페이지용) ── */
.page-hero {
  background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.page-hero-breadcrumb a:hover { color: var(--gold-400); }
.page-hero-breadcrumb span { color: var(--gold-400); }
.page-hero-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.page-hero-desc { font-size: 15px; color: rgba(255,255,255,0.55); max-width: 500px; }

/* ── 탑바 ── */
#topbar {
  background: var(--navy-900);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.topbar-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.1);
  line-height: 1;
  transition: color var(--transition);
}
.topbar-links a:first-child { padding-left: 0; }
.topbar-links a:last-child { border-right: none; }
.topbar-links a:hover { color: var(--gold-400); }
.topbar-lang {
  display: flex;
  gap: 4px;
}
.lang-btn {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.lang-btn.active, .lang-btn:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(201,168,76,0.1);
}

/* ── 헤더 ── */
#header {
  background: rgba(255,255,255,0.97);
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 rgba(7,22,48,0.08);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
/* CI 로고 이미지 */
.logo-ci-img {
  height: 44px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}
.footer-ci-img {
  height: 52px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
}

.logo-emblem {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-400);
  border: 1px solid rgba(201,168,76,0.2);
  flex-shrink: 0;
}
.logo-text {}
.logo-en {
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--navy-800);
  line-height: 1.1;
}
.logo-ko {
  font-size: 10px;
  color: var(--gray-400);
  letter-spacing: 0.3px;
}

/* ── 네비게이션 ── */
.gnb {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
}
.gnb-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}
.gnb-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 18px;
  height: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: color var(--transition);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.gnb-link:hover, .gnb-link.active {
  color: var(--navy-800);
  border-bottom-color: var(--gold-500);
}
.gnb-link svg { transition: transform var(--transition); }
.gnb-item:hover .gnb-link svg { transform: rotate(180deg); }

/* 드롭다운 */
.dropdown {
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 8px 32px rgba(7,22,48,0.14);
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--gold-500);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition);
  z-index: 100;
}
.gnb-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 13.5px;
  color: var(--gray-600);
  transition: all var(--transition);
}
.dropdown a:hover {
  background: var(--navy-50);
  color: var(--navy-800);
  padding-left: 26px;
}
.dropdown a i {
  font-size: 15px;
  color: var(--gold-500);
  width: 18px;
  flex-shrink: 0;
}
.dropdown-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 6px 0;
}

/* 헤더 우측 버튼 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── 공지 바 ── */
#announce-bar {
  background: linear-gradient(90deg, var(--navy-700), var(--navy-600));
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.announce-badge {
  background: var(--gold-500);
  color: var(--navy-900);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}
.announce-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.announce-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.announce-link {
  font-size: 11px;
  color: var(--gold-400);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}
.announce-link:hover { color: var(--gold-300); }

/* ── 푸터 ── */
#footer {
  background: var(--navy-900);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo-emblem {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-500));
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-400);
  border: 1px solid rgba(201,168,76,0.15);
}
.footer-logo-en {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--white);
}
.footer-logo-ko { font-size: 10px; color: rgba(255,255,255,0.3); }
.footer-info {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  line-height: 2;
  margin-bottom: 20px;
}
.footer-info strong { color: rgba(255,255,255,0.55); font-weight: 600; }
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-size: 16px;
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(201,168,76,0.08);
}
.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover { color: var(--gold-400); }
.footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition);
}
.footer-links a:hover::before { background: var(--gold-500); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-copyright {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}
.footer-bottom-links {
  display: flex;
  gap: 0;
}
.footer-bottom-links a {
  font-size: 11px;
  color: rgba(255,255,255,0.2);
  padding: 0 12px;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.footer-bottom-links a:last-child { border-right: none; padding-right: 0; }
.footer-bottom-links a:hover { color: var(--gold-400); }

/* ── 스크롤 탑 ── */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  font-size: 18px;
  box-shadow: 0 4px 16px rgba(7,22,48,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 999;
  border: 1px solid rgba(201,168,76,0.2);
}
#scroll-top.visible { opacity: 1; visibility: visible; }
#scroll-top:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(7,22,48,0.4); }

/* ── 모바일 메뉴 ── */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}
.mobile-menu-btn span {
  display: block;
  height: 2px;
  background: var(--navy-800);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy-900);
  z-index: 2000;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-nav-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
}
.mobile-nav-group { margin-bottom: 24px; }
.mobile-nav-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mobile-nav-group a {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: color var(--transition);
}
.mobile-nav-group a:hover { color: var(--gold-400); }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .gnb { display: none; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 26px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 40px 0; }
  .section-title { font-size: 22px; }
  #topbar { display: none; }
  .page-hero { padding: 64px 0 52px; }
  .page-hero-title { font-size: 26px; }
}

/* ── 유틸리티 ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold-500); }
.text-navy { color: var(--navy-800); }
.text-white { color: var(--white); }
.bg-navy { background: var(--navy-800); }
.bg-light { background: var(--gray-50); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ── 서브메뉴 바 ── */
.sub-nav-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: calc(var(--topbar-h) + var(--header-h) + var(--announce-h));
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.sub-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sub-nav-inner::-webkit-scrollbar { display: none; }
.sub-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 14px 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.sub-nav-link:hover { color: var(--navy-800); }
.sub-nav-link.active {
  color: var(--navy-800);
  font-weight: 700;
  border-bottom-color: var(--gold-500);
}

/* ── GNB 활성 상태 ── */
.gnb-link.active { color: var(--gold-500) !important; }

/* ── 버튼 추가 스타일 ── */
.btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-ghost-white {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}
.btn-ghost-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

/* ── 반응형 서브메뉴 ── */
@media (max-width: 768px) {
  .sub-nav-link { padding: 12px 14px; font-size: 13px; }
}
