/* K-Culture Forum — Custom Styles */
:root {
  --kcf-navy: #1e3a8a;
  --kcf-navy-deep: #14245c;
  --kcf-gold: #c9a961;
  --kcf-gold-light: #e0c989;
  --kcf-cream: #f7f3e8;
  --kcf-cream-deep: #efe8d3;
  --kcf-pink: #e84a8a;
  --kcf-blue: #3b82f6;
  --kcf-yellow: #fbbf24;
  --kcf-ink: #1a1a1a;
  --kcf-muted: #6b6b6b;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--kcf-cream);
  color: var(--kcf-ink);
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  letter-spacing: -0.02em;
}

/* Topographic background pattern */
.topo-bg {
  background-color: var(--kcf-cream);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 169, 97, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(30, 58, 138, 0.06) 0%, transparent 40%);
}

.topo-lines {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%23c9a961' stroke-opacity='0.12' stroke-width='1'%3E%3Cpath d='M0 100 Q 100 80, 200 100 T 400 100'/%3E%3Cpath d='M0 150 Q 100 130, 200 150 T 400 150'/%3E%3Cpath d='M0 200 Q 100 180, 200 200 T 400 200'/%3E%3Cpath d='M0 250 Q 100 230, 200 250 T 400 250'/%3E%3Cpath d='M0 300 Q 100 280, 200 300 T 400 300'/%3E%3C/g%3E%3C/svg%3E");
}

/* Brand gradient (logo-inspired) */
.brand-gradient {
  background: linear-gradient(135deg, #e84a8a 0%, #fbbf24 35%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-bar {
  background: linear-gradient(90deg, #e84a8a 0%, #fbbf24 50%, #3b82f6 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}
.btn-primary {
  background: var(--kcf-navy);
  color: #fff;
}
.btn-primary:hover {
  background: var(--kcf-navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.25);
}
.btn-gold {
  background: var(--kcf-gold);
  color: #fff;
}
.btn-gold:hover {
  background: #b7975a;
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--kcf-navy);
  color: var(--kcf-navy);
}
.btn-outline:hover {
  background: var(--kcf-navy);
  color: #fff;
}

/* Card */
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(20, 36, 92, 0.06);
  border: 1px solid rgba(201, 169, 97, 0.15);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 36, 92, 0.12);
}

/* Section */
.section { padding: 5rem 0; }
.section-tight { padding: 3rem 0; }

.container-x {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--kcf-gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--kcf-navy-deep);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--kcf-muted);
  max-width: 720px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(232, 74, 138, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(251, 191, 36, 0.10) 0%, transparent 50%);
  z-index: 0;
}
.hero-content { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--kcf-navy-deep);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(247, 243, 232, 0.85);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--kcf-ink);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--kcf-navy); }
.nav-link.active { color: var(--kcf-navy); font-weight: 700; }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  background: var(--kcf-gold);
  border-radius: 2px;
}

/* Logo mark */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--kcf-navy-deep);
  font-size: 1.15rem;
}
.logo-mark .k {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e84a8a 0%, #fbbf24 50%, #3b82f6 100%);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
}

/* Stats */
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--kcf-navy-deep);
  line-height: 1;
}

/* Tag */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(201, 169, 97, 0.15);
  color: #8a6f30;
}
.tag-blue { background: rgba(59, 130, 246, 0.12); color: #1e40af; }
.tag-pink { background: rgba(232, 74, 138, 0.12); color: #b91c5e; }

/* News card */
.news-card {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.15);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(20, 36, 92, 0.12);
}
.news-thumb {
  height: 180px;
  background: linear-gradient(135deg, var(--kcf-cream-deep), var(--kcf-cream));
  position: relative;
  display: grid;
  place-items: center;
  font-size: 3rem;
}
.news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--kcf-navy-deep);
  margin: 0.5rem 0;
  line-height: 1.4;
}
.news-meta {
  font-size: 0.8rem;
  color: var(--kcf-muted);
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

a.news-card { color: inherit; text-decoration: none; }

/* K-Culture 뉴스 헤드라인 목록 (2026-10-17) */
.headline-list { border-top: 2px solid var(--kcf-navy-deep); }
.headline-row {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 0 1.25rem;
  padding: 1.1rem 0.5rem; border-bottom: 1px solid rgba(20, 36, 92, 0.1);
  color: inherit; text-decoration: none; align-items: baseline; transition: background 0.2s;
}
.headline-row:hover { background: rgba(201, 169, 97, 0.08); }
.headline-date { font-weight: 800; font-size: 1.15rem; color: var(--kcf-navy); font-variant-numeric: tabular-nums; }
.headline-title { font-weight: 700; font-size: 1.1rem; color: var(--kcf-navy-deep); margin: 0.35rem 0 0.25rem; line-height: 1.45; word-break: keep-all; }
.headline-summary { font-size: 0.92rem; color: #4b5563; line-height: 1.65; word-break: keep-all; }
.headline-press { font-size: 0.85rem; color: var(--kcf-muted); white-space: nowrap; }
@media (max-width: 640px) {
  .headline-row { grid-template-columns: 48px minmax(0, 1fr); }
  .headline-press { grid-column: 2; margin-top: 0.4rem; }
}

/* 기사 화면 (article.html) */
.article-body p { font-size: 1.06rem; line-height: 1.85; color: #1f2937; margin-bottom: 1.15rem; word-break: keep-all; }

/* Footer */
.footer {
  background: var(--kcf-navy-deep);
  color: #d4d8e8;
  padding: 4rem 0 2rem;
}
.footer a { color: #d4d8e8; transition: color 0.2s; }
.footer a:hover { color: var(--kcf-gold-light); }

.sns-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: all 0.2s;
}
.sns-icon:hover {
  background: var(--kcf-gold);
  color: #fff;
  transform: translateY(-3px);
}

/* Forms */
.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(20, 36, 92, 0.15);
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--kcf-navy);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--kcf-navy-deep);
  font-size: 0.9rem;
}

/* Tabs */
.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  background: #fff;
  color: var(--kcf-muted);
  border: 1px solid rgba(201, 169, 97, 0.3);
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active {
  background: var(--kcf-navy);
  color: #fff;
  border-color: var(--kcf-navy);
}

/* Timeline */
.timeline-item {
  position: relative;
  padding-left: 2.5rem;
  padding-bottom: 2rem;
  border-left: 2px solid var(--kcf-gold);
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--kcf-gold);
  border: 3px solid var(--kcf-cream);
}
.timeline-item:last-child { border-left-color: transparent; }

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.6s ease-out both; }
.fade-up.delay-1 { animation-delay: 0.1s; }
.fade-up.delay-2 { animation-delay: 0.2s; }
.fade-up.delay-3 { animation-delay: 0.3s; }

/* Mobile nav */
@media (max-width: 768px) {
  .mobile-hidden { display: none; }
  .section { padding: 3rem 0; }
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(247, 243, 232, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-menu.open { display: flex; }

/* 활동 갤러리 (2026-10-22) */
.gallery-item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--kcf-cream-deep);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2rem 1rem 0.85rem;
  background: linear-gradient(transparent, rgba(20, 36, 92, 0.85));
  color: #fff; font-size: 0.85rem; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gallery-cap b { display: block; font-size: 0.75rem; color: var(--kcf-gold-light); letter-spacing: 0.05em; }

/* 로고 이미지 (2026-10-22 — kcultureforum.net 에서 이전한 공식 로고) */
.logo-img { height: 46px; width: auto; display: block; }
.logo-mark .mark { width: 40px; height: 40px; background: #fff; border-radius: 10px; padding: 4px; }

/* 행사 팝업 (2026-10-22 — 10.23 국회 정책세미나) */
.ev-wrap {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10, 18, 48, 0.55);
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 24px; overflow-y: auto;
}
.ev-wrap[hidden] { display: none; }
.ev-pop { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); flex: none; }
.ev-pop[hidden] { display: none; }
.ev-pop img { display: block; width: 100%; height: auto; }
.ev-pop-live { width: min(640px, 100%); }
.ev-pop-card { width: min(440px, 100%); }
.ev-body { padding: 18px 22px 20px; }
.ev-title { font-size: 1.15rem; font-weight: 800; color: var(--kcf-navy-deep); line-height: 1.4; margin-top: 6px; }
.ev-info { margin-top: 12px; font-size: 0.875rem; color: #374151; line-height: 1.5; }
.ev-info li + li { margin-top: 6px; }
.ev-bar { display: flex; justify-content: space-between; background: var(--kcf-navy-deep); }
.ev-bar button { color: #e5e7eb; font-size: 0.8rem; padding: 10px 16px; background: none; border: 0; cursor: pointer; }
.ev-bar button:hover { color: #fff; }
@media (max-width: 1100px) {
  .ev-wrap { flex-direction: column; justify-content: flex-start; }
  .ev-pop-live, .ev-pop-card { width: min(560px, 100%); }
}

/* 주차·교통 안내 팝업 — 세미나 카드와 구분되는 노란 안내판 톤 (2026-10-22) */
.ev-pop-alert { border: 3px solid #f59e0b; }
.ev-alert-head { background: linear-gradient(135deg, #fde047 0%, #fbbf24 100%); padding: 18px 22px 16px; color: #1f2937; }
.ev-alert-eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: #92400e; }
.ev-alert-title { font-size: 1.5rem; font-weight: 900; line-height: 1.3; margin-top: 4px; color: #111827; }
.ev-alert-sub { font-size: 0.9rem; font-weight: 600; margin-top: 6px; color: #422006; }
.ev-metro { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: #fefce8; border: 1px solid #fde68a; }
.ev-metro-line { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #bdb092; color: #fff; font-weight: 900; font-size: 1.35rem; box-shadow: inset 0 0 0 3px rgba(255,255,255,0.5); }
.ev-metro-name { font-size: 1.05rem; font-weight: 800; color: #111827; }
.ev-metro-id { font-size: 0.85rem; font-weight: 700; color: #b91c1c; margin-top: 2px; }
.ev-park { margin-top: 14px; font-size: 0.85rem; color: #4b5563; line-height: 1.55; }
.ev-park-title { font-weight: 700; color: #374151; margin-bottom: 4px; }
.ev-park-link { display: inline-block; margin-top: 8px; font-weight: 700; color: #b45309; text-decoration: underline; text-underline-offset: 3px; }
.ev-pop-alert .ev-bar { background: #78350f; }

/* 가입 양식 — 회원 등급·연회비 선택 카드 (join.html, 2026-10-27) */
.grade-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.grade-opt input { width: 16px; height: 16px; flex: none; }
.grade-opt span { display: flex; flex-direction: column; line-height: 1.35; }
.grade-opt b { font-size: 15px; color: var(--kcf-navy-deep); }
.grade-opt small { font-size: 13px; color: #6b7280; }
.grade-opt:has(input:checked) { border-color: var(--kcf-navy); background: #eef2ff; }
