
:root {
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --primary-light: #40916c;
  --accent: #f4a261;
  --accent-dark: #e76f51;
  --bg: #ffffff;
  --bg-light: #f8f9fa;
  --bg-warm: #faf8f5;
  --text: #2b2b2b;
  --text-light: #555b62;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 12px;
  --max-width: 1100px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  word-break: keep-all;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo img {
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(45,106,79,0.08);
  color: var(--primary);
}

.nav-band {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 500;
  padding: 0.55rem 1.2rem !important;
}

.nav-band:hover {
  background: var(--primary-dark) !important;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.4rem;
  z-index: 200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--text);
}

@media (max-width: 768px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { list-style: none; }
  .nav-links > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links > li:last-child {
    border-bottom: none;
    margin-top: 0.3rem;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 0;
  }
  .nav-links .nav-band {
    text-align: center;
    border-radius: 8px;
    margin: 0.3rem 0;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0 0 0.3rem 1rem;
    min-width: auto;
  }
  .nav-dropdown-menu a {
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
    color: var(--text-light);
  }
  .nav-dropdown:hover .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(160deg, #0d3320 0%, #1b4332 25%, #2d6a4f 50%, #40916c 75%, #52b788 100%);
  color: #fff;
  text-align: center;
  padding: 5rem 1.5rem 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 20%, rgba(244,162,97,0.08) 0%, transparent 50%);
  animation: heroShimmer 12s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { transform: translateX(-5%) translateY(-2%); }
  100% { transform: translateX(5%) translateY(2%); }
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.hero p {
  font-size: 1.08rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.92;
  line-height: 1.9;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-outline {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* ===== PRESIDENT GREETING (HOME) ===== */
.home-greeting {
  background: var(--bg-warm);
  padding: 3.5rem 1.5rem;
}

.home-greeting-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.home-greeting-photo {
  flex-shrink: 0;
}

.home-greeting-photo img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.home-greeting-text {
  flex: 1;
}

.home-greeting-text .greeting-label {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.home-greeting-text blockquote {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 1rem;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}

.home-greeting-text .greeting-name {
  font-weight: 700;
  color: var(--primary-dark);
}

.home-greeting-text .greeting-link {
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  font-size: 1rem;
  min-height: 48px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-band {
  background: var(--primary);
  color: #fff;
}

.btn-band:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== SECTIONS ===== */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.card-date {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ===== STATS ===== */
.stats {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 600px;
  margin: 0 auto;
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== BAND CTA ===== */
.band-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  margin: 2rem 0;
}

.band-cta h2 {
  font-size: 1.4rem;
  margin-bottom: 0.7rem;
}

.band-cta p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* ===== DONATION ===== */
.donation-box {
  background: var(--bg-warm);
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.donation-box .account {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin: 1rem 0;
  letter-spacing: 0.5px;
}

.copy-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  min-height: 44px;
}

.copy-btn:hover { background: var(--primary-dark); }

.copy-btn.copied {
  background: var(--accent);
}

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #0d3320 0%, #091f15 100%);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.5rem 2rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.8rem;
}

.footer-brand .footer-logo img {
  width: 28px;
  height: 28px;
}

.footer-brand .footer-slogan {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
}

.footer-brand .footer-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s;
}

.footer-brand .footer-band-btn:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-contact p {
  margin-bottom: 0.3rem;
}

.footer-contact .footer-account {
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin: 0.6rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ===== CONTENT PAGE ===== */
.page-header {
  background: linear-gradient(160deg, #0d3320 0%, #1b4332 30%, #2d6a4f 60%, #40916c 100%);
  color: #fff;
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 400px at 70% 40%, rgba(82,183,136,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.06));
  pointer-events: none;
}

.page-header .page-badge {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
  position: relative;
}

.page-header p {
  opacity: 0.9;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  position: relative;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.page-content h2 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 2rem 0 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--primary-light);
}

.page-content p,
.page-content li {
  line-height: 1.9;
  margin-bottom: 0.8rem;
}

.page-content ul {
  padding-left: 1.2rem;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-light);
  border-radius: 2px;
}

.timeline-era {
  margin-bottom: 2.5rem;
}

.timeline-era-label {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  position: relative;
}

.timeline-era-label::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-event {
  padding: 0.5rem 0;
  position: relative;
}

.timeline-event::before {
  content: '';
  position: absolute;
  left: -2.15rem;
  top: 0.9rem;
  width: 8px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 50%;
}

.timeline-year {
  font-weight: 700;
  color: var(--primary);
  margin-right: 0.5rem;
}

/* ===== GREETING PAGE ===== */
.greeting-card {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.greeting-quote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.greeting-body {
  white-space: pre-line;
  line-height: 2;
}

.greeting-profile {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.greeting-profile dt {
  font-weight: 500;
  color: var(--primary-dark);
  margin-top: 0.8rem;
}

.greeting-profile dd {
  margin-left: 0;
  color: var(--text-light);
}

/* ===== OFFICERS ===== */
.officers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.officer-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}

.officer-position {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.officer-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 0.3rem;
}

/* ===== POSTS LIST ===== */
.posts-empty {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* ===== ADMIN ===== */
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
}

.admin-login input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: inherit;
}

.admin-login input:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-panel {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
}

.admin-tabs {
  display: flex;
  gap: 0.3rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.admin-tab {
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}

.admin-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 500;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-field {
  margin-bottom: 1.2rem;
}

.admin-field label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.admin-field textarea {
  min-height: 120px;
  resize: vertical;
}

.admin-field input:focus,
.admin-field textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.admin-save {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
}

.admin-save:hover { background: var(--primary-dark); }

.admin-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.admin-msg {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.admin-msg.success {
  background: #d4edda;
  color: #155724;
}

.admin-msg.error {
  background: #f8d7da;
  color: #721c24;
}

.admin-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.admin-list-item button {
  background: none;
  border: 1px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  margin-left: 0.3rem;
}

.admin-list-item button:hover {
  background: var(--bg-light);
}

.admin-list-item button.delete:hover {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

/* ===== LOADING ===== */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== HERITAGE ===== */
.heritage-intro {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 2;
}

.heritage-filters {
  margin-bottom: 1.5rem;
}

.heritage-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  min-width: 2.5rem;
}

.filter-btn {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.heritage-stats {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.2rem;
}

.heritage-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.heritage-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.heritage-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.heritage-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.badge-national {
  background: #fef3c7;
  color: #92400e;
}

.badge-provincial {
  background: #dbeafe;
  color: #1e40af;
}

.badge-local {
  background: #f3f4f6;
  color: #374151;
}

.heritage-area {
  font-size: 0.8rem;
  color: var(--text-light);
}

.heritage-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.heritage-detail p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.detail-label {
  display: inline-block;
  min-width: 2.2rem;
  font-weight: 500;
  color: var(--text-light);
  margin-right: 0.4rem;
}





/* ===== SHARE FAB BUTTON ===== */
.share-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(45,106,79,0.35);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 900;
}

.share-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(45,106,79,0.45);
  background: var(--primary-dark);
}

.share-fab:active {
  transform: scale(0.95);
}

.share-fab svg {
  pointer-events: none;
}

.share-toast {
  position: fixed;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 901;
  white-space: nowrap;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== POPULATION CHART ===== */
.pop-grid {
  max-width: 600px;
  margin: 0 auto;
}

.pop-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.pop-name {
  min-width: 3.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  text-align: right;
}

.pop-bar-wrap {
  flex: 1;
  height: 1.4rem;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}

.pop-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.pop-num {
  min-width: 3.5rem;
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ===== HOME EXPLORE CARDS ===== */
.home-explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.home-explore-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-decoration: none;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.home-explore-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.home-explore-icon {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.home-explore-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.home-explore-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== GUIDE (맛집·숙소) ===== */
.guide-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.9;
}

.guide-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.guide-tab {
  flex: 1;
  padding: 0.9rem 1rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.guide-tab:hover {
  color: var(--primary);
}

.guide-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.guide-tab-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 0.3rem;
}

.guide-tab.active .guide-tab-count {
  color: var(--primary-light);
}

.guide-search {
  margin-bottom: 1.2rem;
}

.guide-search input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.guide-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.1);
}

.guide-search input::placeholder {
  color: #aaa;
}

.guide-filters {
  margin-bottom: 1.5rem;
}

.guide-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.guide-stats {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}

.guide-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.guide-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}

.guide-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.gbadge-food { background: #fef3c7; color: #92400e; }
.gbadge-cafe { background: #fde8d0; color: #7c2d12; }
.gbadge-hotel { background: #dbeafe; color: #1e40af; }
.gbadge-motel { background: #e0e7ff; color: #3730a3; }
.gbadge-pension { background: #d1fae5; color: #065f46; }
.gbadge-minbak { background: #fce7f3; color: #9d174d; }
.gbadge-guest { background: #ede9fe; color: #5b21b6; }
.gbadge-etc { background: #f3f4f6; color: #374151; }

.guide-area {
  font-size: 0.8rem;
  color: var(--text-light);
}

.guide-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
  line-height: 1.4;
}

.guide-detail p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.6;
}

.guide-phone {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.guide-phone:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { font-size: 17px; }
  .hero { padding: 3rem 1.2rem; }
  .hero h1 { font-size: 1.6rem; }
  .section { padding: 2rem 1.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .page-header { padding: 3rem 1.2rem 2.5rem; }
  .page-header h1 { font-size: 1.5rem; }
  .greeting-card { padding: 1.5rem; }
  .home-greeting { padding: 2.5rem 1.2rem; }
  .home-greeting-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .home-greeting-text blockquote {
    border-left: none;
    padding-left: 0;
    border-top: 3px solid var(--accent);
    padding-top: 1rem;
  }
  .footer { padding: 2.5rem 1.2rem 1.5rem; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand .footer-slogan { margin-bottom: 0.8rem; }
  .footer-col a { display: inline; padding: 0; }
  .footer-col a + a::before { content: ' · '; color: rgba(255,255,255,0.3); }
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-filter-group { gap: 0.4rem; }
  .filter-btn { font-size: 0.8rem; padding: 0.3rem 0.7rem; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-filter-group { gap: 0.4rem; }
  .guide-tab { font-size: 0.95rem; padding: 0.7rem 0.8rem; }
  .guide-search input { font-size: 0.9rem; }
  .share-fab { bottom: 1rem; right: 1rem; width: 48px; height: 48px; }
  .share-toast { bottom: 4.5rem; font-size: 0.85rem; }
}
