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

:root {
  --bg: #faf7f0;
  --panel: #ffffff;
  --sidebar-bg: #2b2416;
  --sidebar-bg-2: #3d3220;
  --accent: #c9a15a;
  --accent-light: #e8d3a0;
  --text-dark: #2b2416;
  --text-muted: #6b6152;
  --text-light: #f4ede0;
  --shadow: 0 10px 30px rgba(43, 36, 22, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--text-light);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}

.brand-cross {
  font-size: 28px;
  color: var(--accent);
}

.brand-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-sub {
  font-size: 12px;
  color: var(--accent-light);
  opacity: 0.8;
}

.menu-label {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--accent-light);
  opacity: 0.7;
  margin-bottom: -12px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(3px);
}

.menu li a.active {
  background: var(--accent);
  color: #2b2416;
  font-weight: 700;
  border-color: var(--accent);
}

.menu li a .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent-light);
  opacity: 0.6;
  line-height: 1.6;
}

/* Main content */
.main {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  justify-content: center;
}

.content {
  max-width: 880px;
  width: 100%;
}

/* Home page hero */
.hero {
  text-align: center;
}

.hero-image {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 36px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-tag {
  display: inline-block;
  background: var(--accent-light);
  color: #6b4f16;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 32px;
  margin: 0 0 18px;
  color: var(--text-dark);
  line-height: 1.4;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-muted);
  text-align: left;
  background: var(--panel);
  padding: 28px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}

.verse {
  font-style: italic;
  color: var(--accent);
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  margin: 24px 0 0;
  text-align: left;
}

/* Sub pages */
.page-header {
  margin-bottom: 32px;
}

.page-header .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}

.page-header h1 {
  font-size: 30px;
  margin: 8px 0 0;
  color: var(--text-dark);
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.card .card-icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card .card-icon svg {
  width: 36px;
  height: 36px;
  color: #2b2416;
}

.card .card-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px;
}

.card .card-label {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.tag {
  background: var(--accent-light);
  color: #6b4f16;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}

.nav-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}

.nav-buttons a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav-buttons a:hover {
  background: var(--panel);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .brand { flex-direction: row; align-items: center; }
  .menu-label { display: none; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .sidebar-footer { display: none; }
  .main { padding: 32px 20px; }
  .card { flex-direction: column; text-align: center; }
}
