* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', 'Inter', -apple-system, sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
body.i18n-loading { visibility: hidden; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

section { padding: 96px 0; }
.section-heading { font-size: clamp(30px, 3.8vw, 42px); font-weight: 700; color: var(--navy); line-height: 1.28; letter-spacing: -0.8px; margin-bottom: 18px; }
.section-sub { font-size: 17px; color: var(--body); line-height: 1.75; max-width: 780px; }
.section-header { margin-bottom: 64px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { margin: 24px auto 0 auto; }

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; }
.logo-img { width: 100%; height: 100%; object-fit: cover; }
.logo-text { font-weight: 700; font-size: 20px; color: var(--navy); letter-spacing: -0.3px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 18px; font-size: 15px; font-weight: 600; color: var(--body);
  text-decoration: none; border-radius: var(--radius-sm); transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links li.active-tab a, .nav-links a:hover { background: var(--pastel-green-light); color: var(--navy); }
.nav-logo.nav-current .logo-text { color: var(--navy); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.lang-toggle { display: flex; background: var(--pastel-green-light); border: 1px solid rgba(168, 230, 207, 0.2); border-radius: 10px; padding: 3px; }
.lang-btn { padding: 5px 14px; font-size: 12px; font-weight: 700; cursor: pointer; border: none; background: none; color: var(--muted); border-radius: 8px; transition: background 0.2s, color 0.2s; }
.lang-btn.active { background: var(--pastel-green-main); color: var(--navy); }
.btn-donate {
  padding: 9px 22px; background: var(--pastel-purple); color: var(--navy); border: none;
  border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 700; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.1s; white-space: nowrap; display: inline-block;
}
.btn-donate:hover { background: var(--pastel-purple-hov); transform: translateY(-1px); }

#mobile-menu-toggle { display: none; flex-shrink: 0; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--navy); }
#mobile-nav-overlay {
  display: none; position: fixed; inset: 0; background: rgba(47, 62, 70, 0.42); z-index: 98;
}
#mobile-nav {
  display: none; position: absolute; top: 76px; left: 0; right: 0;
  background: var(--pastel-green-light); border-bottom: 1px solid var(--border-mid);
  box-shadow: var(--shadow-deep); padding: 16px 32px;
  flex-direction: column; gap: 8px; z-index: 99;
}
#mobile-nav a { text-decoration: none; color: var(--navy); font-weight: 600; padding: 10px 0; }
#mobile-nav .mobile-nav-donate { margin-top: 8px; padding: 9px 22px; text-align: center; align-self: stretch; }

.floating-quick-menu {
  position: fixed; right: 20px; top: 42%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 10px; z-index: 999;
}
.floating-item {
  display: flex; align-items: center; width: 260px; min-height: 58px;
  background: rgba(255, 255, 255, 0.96); border: 2px solid var(--pastel-green-main);
  border-radius: 18px; box-shadow: var(--shadow-deep); text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); padding: 0 16px; gap: 12px; cursor: pointer;
}
.floating-item:hover { transform: translateX(-8px); background: var(--white); border-color: var(--pastel-purple); }
.floating-icon {
  font-size: 30px;
  flex-shrink: 0;
  width: 1.375em;
  min-height: 1.6em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.6;
}
.floating-icon-img { width: 30px; height: 30px; object-fit: contain; display: block; }
.floating-text-group { display: flex; flex-direction: column; }
.floating-label-top { font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.floating-divider-label {
  font-size: 10.5px; font-weight: 800; color: #3D8B6F; text-align: center; margin: 4px 0 2px;
  letter-spacing: 1px; text-transform: uppercase; background: var(--pastel-green-light);
  padding: 4px 0; border-radius: 6px; border: 1px solid rgba(168, 230, 207, 0.3);
}

.prog-card, .join-card, .team-card {
  background: var(--white); border: 1px solid var(--border-mid); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s, transform 0.3s;
}
.prog-card { padding: 38px; display: flex; flex-direction: column; justify-content: space-between; }
.prog-card:hover { box-shadow: var(--shadow-deep); transform: translateY(-5px); }
.prog-icon { width: 58px; height: 58px; background: var(--pastel-green-light); border-radius: 18px; display: flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 24px; }
.prog-card h3 { font-size: 19.5px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.prog-card p { font-size: 14.5px; line-height: 1.75; margin-bottom: 24px; }
.prog-items { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.prog-items li { display: flex; gap: 8px; font-size: 14px; color: var(--navy); }
.prog-items li::before { content: '→'; color: var(--pastel-green-main); font-weight: 700; }

.join-card { padding: 38px; text-align: center; }
.join-card:hover { box-shadow: var(--shadow-deep); transform: translateY(-4px); }
.join-icon { font-size: 40px; margin-bottom: 18px; display: block; }
.join-card h3 { font-size: 19px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.join-card p { font-size: 14.5px; line-height: 1.75; margin-bottom: 24px; }
.btn-join, .btn-join-interactive {
  display: inline-block; padding: 9px 24px; background: var(--pastel-blue-light); color: var(--navy);
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; text-decoration: none; border: none; cursor: pointer;
}
.btn-join:hover, .btn-join-interactive:hover { background: var(--pastel-blue-main); }
.btn-outline-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--white);
  border: 1px solid #3D8B6F; color: #3D8B6F; text-decoration: none; font-size: 14.5px; font-weight: 600;
  border-radius: var(--radius-sm); transition: all 0.2s; cursor: pointer;
}
.btn-outline-link:hover { background: var(--pastel-green-light); }

.team-card { padding: 22px; }
.team-card:hover { box-shadow: var(--shadow-deep); }
.team-num { font-size: 11px; font-weight: 700; color: #3D8B6F; margin-bottom: 6px; }
.team-name { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.team-tasks { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.team-tasks li { font-size: 12px; padding-left: 12px; position: relative; }
.team-tasks li::before { content: '·'; position: absolute; left: 0; color: var(--pastel-blue-main); font-weight: 700; }
.team-card.team-join-btn-card { display: flex; justify-content: center; align-items: center; cursor: pointer; }

.sub-page-wrapper { padding: 60px 0 100px; }
.about-sub-layout { display: grid; grid-template-columns: 240px 1fr; gap: 50px; margin-top: 40px; }
.inner-sidebar { list-style: none; border-right: 2px solid var(--border-mid); padding-right: 20px; }
.sidebar-tab { padding: 14px 20px; font-size: 15.5px; font-weight: 600; color: var(--body); cursor: pointer; border-radius: var(--radius-sm); margin-bottom: 8px; transition: all 0.2s; }
.sidebar-tab:hover { background: var(--pastel-blue-light); color: var(--navy); }
.sidebar-tab.active-sub-tab { background: var(--pastel-blue-main); color: var(--navy); }
.sub-panel-box { display: none; background: var(--white); padding: 44px; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.sub-panel-box.active-panel { display: block; animation: fadeInTab 0.35s ease-in-out forwards; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.sub-panel-box h3 { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--pastel-green-light); }
.sub-panel-box p { font-size: 16.5px; line-height: 1.95; margin-bottom: 20px; text-align: justify; }

.detail-desc-p { font-size: 16px; line-height: 1.8; margin-bottom: 24px; }
.detail-sub-section { background: var(--warm-white); border-radius: var(--radius-md); padding: 24px; margin-top: 20px; }
.detail-sub-title { font-weight: 700; color: var(--navy); margin-bottom: 12px; font-size: 16.5px; }
.link-button-container { display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap; }

.event-board { width: 100%; border-collapse: collapse; margin-top: 14px; background: var(--white); }
.event-board th { background: var(--pastel-blue-light); color: var(--navy); font-weight: 700; padding: 12px; font-size: 14px; text-align: left; }
.event-board td { padding: 14px 12px; font-size: 14px; border-bottom: 1px solid var(--border); }
.badge-status { padding: 3px 8px; font-size: 11px; font-weight: 700; border-radius: 6px; }
.badge-done { background: var(--border-mid); color: var(--muted); }
.badge-active { background: var(--pastel-purple); color: var(--navy); }

.sub-timeline { list-style: none; position: relative; padding-left: 20px; }
.sub-timeline::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 2px; background: var(--pastel-green-main); }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--pastel-purple); }
.timeline-year { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.letter-sign { margin-top: 40px; padding-top: 20px; border-top: 1px dashed var(--border-mid); text-align: right; font-weight: 600; color: var(--navy); }

.box-info-grid { background: var(--white); border: 1px solid var(--border-mid); border-radius: var(--radius-md); padding: 24px; margin-top: 20px; box-shadow: var(--shadow-card); }
.box-info-title { font-weight: 700; color: var(--navy); font-size: 17px; margin-bottom: 14px; }

footer { background: #A8E6CF !important; padding: 20px 0 !important; }
.footer-bottom { display: flex; justify-content: center; font-size: 13.5px; font-weight: 600; color: var(--navy) !important; }

@media (min-width: 961px) and (max-width: 1024px) {
  .nav-inner { gap: 18px; }
  .nav-links a { padding-left: 14px; padding-right: 14px; }
}

@media (min-width: 841px) and (max-width: 960px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 3px; }
  .nav-links a { padding-left: 10px; padding-right: 10px; font-size: 14px; }
  .nav-right { flex-shrink: 0; gap: 10px; }
  .btn-donate { padding: 8px 14px; font-size: 13.5px; }
}

@media (min-width: 769px) and (max-width: 840px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .nav-inner { gap: 8px; }
  .logo-text { font-size: 18px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
  .nav-right { flex-shrink: 0; gap: 8px; }
  .btn-donate { padding: 7px 12px; font-size: 13px; }
  .lang-btn { padding: 5px 11px; font-size: 11px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-right .btn-donate { display: none; }
  .nav-right { flex-shrink: 0; gap: 10px; }
  #mobile-menu-toggle { display: block; }
  #mobile-nav { padding: 16px 20px; }
  #mobile-nav.open { display: flex; }
  #mobile-nav-overlay.open { display: block; }
  .floating-quick-menu { display: none; }
  .about-sub-layout { grid-template-columns: 1fr; }
  .inner-sidebar { border-right: none; padding-right: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .sidebar-tab { margin-bottom: 0; }
}
