/* ===================================================
   말씀교회 — Main Stylesheet
   =================================================== */

/* ---------- CSS Variables ---------- */
:root {
  --primary:    #7472B2;   /* periwinkle violet */
  --primary-dk: #5A57A0;
  --primary-lt: #9896CA;
  --accent:     #F5A623;   /* warm gold */
  --accent-dk:  #d48c0e;
  --text:       #1a1a2e;
  --text-2:     #4a4a68;
  --text-3:     #7a7a96;
  --bg:         #ffffff;
  --bg-light:   #F5F2FA;
  --bg-dark:    #2C2845;
  --border:     #E2DBEE;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 8px 30px rgba(0,0,0,.10);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.15);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --transition: 0.3s ease;
  --max-w:      1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}

/* ---------- Utility ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); color: white; }
.section-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245,166,35,.12);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.section-tag.light { color: var(--accent); background: rgba(245,166,35,.15); }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}
.section-title.light { color: white; }
.section-desc {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 60px;
}
.section-desc.light { color: rgba(255,255,255,.75); }
.lead { font-size: 1.15rem; font-weight: 500; color: var(--text); margin-bottom: 18px; }
.hidden { display: none !important; }

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 4px 15px rgba(116,114,178,.3);
}
.btn-primary:hover { background: var(--primary-dk); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(116,114,178,.4); }
.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.7);
  color: white;
  padding: 13px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: all var(--transition);
}
.btn-outline:hover { background: white; color: var(--primary); border-color: white; }
.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.5);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--transition);
  text-align: center;
}
.btn-outline-white:hover { background: white; color: var(--primary); }
.btn-text {
  color: var(--primary);
  font-weight: 700;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.btn-text:hover { gap: 8px; }
.btn-program {
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  margin-top: 16px;
  display: inline-block;
  transition: color var(--transition);
}
.btn-program:hover { color: var(--accent-dk); }
.btn-full { width: 100%; text-align: center; }
.btn-map {
  display: inline-block;
  margin-top: 20px;
  color: var(--primary);
  font-weight: 700;
  font-size: .9rem;
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  transition: all var(--transition);
}
.btn-map:hover { background: var(--primary); color: white; }

/* ===================================================
   HEADER / NAV
   =================================================== */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#header.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  transition: color var(--transition);
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-shrink: 0;
}
#header.scrolled .logo { color: var(--primary); }
.logo-t { color: var(--accent); }
.logo-rest { }
.logo-kr {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: .85rem;
  font-weight: 700;
  opacity: .7;
  margin-left: 6px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-item { position: relative; }
.nav-item > a {
  display: block;
  padding: 8px 16px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
#header.scrolled .nav-item > a { color: var(--text); }
.nav-item > a:hover { color: white; background: rgba(255,255,255,.15); }
#header.scrolled .nav-item > a:hover { color: var(--primary); background: var(--bg-light); }
#header.scrolled .nav-item > a.active { color: var(--primary); font-weight: 700; }
.nav-item > a.active { color: var(--accent) !important; }
/* ── 메가 메뉴 ──────────────────────────────────────── */
#header { position: fixed; }

.mega-panel {
  position: absolute;
  top: 72px; /* nav 높이 */
  left: 0; right: 0;
  background: white;
  border-top: 3px solid var(--primary);
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s;
  z-index: 998;
}
#header:hover .mega-panel,
#header.mega-open .mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mega-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 24px 20px;
  display: flex;
  gap: 0;
}
.mega-col {
  flex: 1;
  padding: 0 18px;
  border-right: 1px solid var(--border);
}
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child  { border-right: none; }
.mega-col-title {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 2px solid var(--primary);
  white-space: nowrap;
}
.mega-col ul { list-style: none; padding: 0; }
.mega-col ul li { margin: 0; }
.mega-col ul li a {
  display: block;
  padding: 3px 0;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition), padding-left var(--transition);
  border-bottom: 1px solid transparent;
  line-height: 1.5;
}
.mega-col ul li a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* 기존 개별 dropdown — 메가 메뉴로 대체됨 */
.dropdown { display: none; }
/* 멤버십 버튼 */
.btn-membership {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,.55);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  flex-shrink: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-membership:hover {
  background: rgba(255,255,255,.15);
  border-color: white;
}
#header.scrolled .btn-membership {
  color: var(--primary);
  border-color: var(--primary);
}
#header.scrolled .btn-membership:hover {
  background: var(--primary);
  color: white;
}

.btn-donate {
  background: var(--accent);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}
.btn-donate:hover { background: var(--accent-dk); transform: translateY(-1px); }
/* ── Language Switcher ─────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
}
.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255,255,255,.65);
  padding: 4px 7px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.lang-btn:hover { color: white; }
#header.scrolled .lang-btn { color: var(--text-3); }
#header.scrolled .lang-btn:hover { color: var(--primary); }
.lang-btn-active {
  color: white !important;
  background: rgba(255,255,255,.18);
}
#header.scrolled .lang-btn-active {
  color: var(--primary) !important;
  background: rgba(116,114,178,.10);
}
.lang-sep {
  color: rgba(255,255,255,.3);
  font-size: .65rem;
  pointer-events: none;
  user-select: none;
}
#header.scrolled .lang-sep { color: var(--border); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
#header.scrolled .hamburger span { background: var(--text); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 30%, rgba(255,200,220,.45) 0%, transparent 55%),
    radial-gradient(ellipse at 20% 70%, rgba(37,135,204,.4) 0%, transparent 50%),
    linear-gradient(160deg, #7BBFE8 0%, #A8C8E8 25%, #D4B8D8 55%, #F0C8D8 80%, #F8D8E8 100%);
}
/* Animated grid overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.08) 0%, transparent 40%, rgba(44,40,69,.35) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
  padding: 120px 24px 80px;
  max-width: 800px;
}
.hero-label {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: white;
  margin-bottom: 24px;
  opacity: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.hero-title em::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  opacity: .6;
}
html[lang="en"] .hero-title em {
  white-space: nowrap;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}
.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,.8);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-down {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  z-index: 2;
  animation: bounce 2s infinite;
}
.scroll-down svg { width: 28px; height: 28px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================================
   STATS BAND
   =================================================== */
.stats-band {
  background: var(--primary);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.15);
  color: white;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}
.stat-unit {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: .85rem;
  color: rgba(255,255,255,.7);
  margin-top: 6px;
}

/* ===================================================
   ABOUT
   =================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p { color: var(--text-2); margin-bottom: 16px; }
.about-text em { font-style: normal; color: var(--primary); font-weight: 600; }
.about-card-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.about-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-1 { border-top: 3px solid var(--primary); }
.card-2 { border-top: 3px solid var(--accent); }
.card-3 { border-top: 3px solid #38b2ac; }
.card-4 { border-top: 3px solid #9f7aea; grid-column: span 2; }
.card-icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--primary); }
.card-1 .card-icon { color: var(--primary); }
.card-2 .card-icon { color: var(--accent-dk); }
.card-3 .card-icon { color: #38b2ac; }
.card-4 .card-icon { color: #9f7aea; }
.about-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.about-card p { font-size: .85rem; color: var(--text-3); }
.card-4 { display: flex; align-items: center; gap: 16px; }
.card-4 .card-icon { flex-shrink: 0; }

/* ===================================================
   VISION & MISSION
   =================================================== */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.vm-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: background var(--transition);
}
.vm-card:hover { background: rgba(255,255,255,.1); }
.vm-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .3;
  line-height: 1;
  margin-bottom: 16px;
}
.vm-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 14px;
}
.vm-card p { color: rgba(255,255,255,.75); font-size: .95rem; line-height: 1.8; margin-bottom: 16px; }
.vm-card blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  font-style: italic;
  margin-top: 16px;
}
.mission-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mission-list li {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  padding-left: 16px;
  position: relative;
}
.mission-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.values-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.values-list li { display: flex; gap: 12px; align-items: flex-start; }
.value-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}
.values-list strong { display: block; color: white; font-size: .9rem; }
.values-list p { color: rgba(255,255,255,.6); font-size: .82rem; margin: 0; }

/* ===================================================
   GREETING
   =================================================== */

/* 대제목 블록 */
.greeting-headline {
  margin-bottom: 60px;
  text-align: center;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.greeting-pretitle {
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 14px;
}
.greeting-main-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.greeting-main-title::before {
  display: block;
  content: '';
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* 그리드 */
.greeting-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}
.greeting-portrait { text-align: center; }
.portrait-frame {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: var(--bg-light);
  border: 4px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-placeholder svg { width: 70px; height: 70px; color: var(--text-3); }
.portrait-photo { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.portrait-name { font-weight: 800; font-size: 1.15rem; margin-bottom: 2px; }
.portrait-title { color: var(--text-3); font-size: .85rem; margin-bottom: 28px; }

/* 3 questions */
.greeting-questions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.gq-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
}
.gq-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--primary); }
.gq-icon svg { width: 100%; height: 100%; }
.gq-item p { font-size: .85rem; color: var(--text-2); line-height: 1.6; margin: 0; }

/* 본문 */
.greeting-text p { color: var(--text-2); margin-bottom: 16px; line-height: 1.85; }
.greeting-subhead {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.greeting-mission-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin: 28px 0;
  color: white;
}
.greeting-mission-box p {
  color: rgba(255,255,255,.92) !important;
  font-size: 1rem;
  line-height: 1.9;
  margin: 0 !important;
}
.greeting-mission-box strong { color: white; font-size: 1.05rem; }
.greeting-closing {
  margin-top: 24px !important;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3) !important;
  font-size: .9rem !important;
}

/* ===================================================
   TEAM — 섬기는 사람들
   =================================================== */
/* ── 섬기는 사람들 ── */

/* 카테고리 구분선 */
.tg {
  margin-bottom: 60px;
}
.tg:last-child { margin-bottom: 0; }

.tg-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.tg-label::before,
.tg-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.tg-label span {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  color: var(--text-3);
  text-transform: uppercase;
  white-space: nowrap;
}

/* 카드 그리드 */
.tg-grid {
  display: grid;
  gap: 20px;
}
.tg-grid-2  { grid-template-columns: repeat(2, 1fr); max-width: 600px; margin: 0 auto; }
.tg-grid-3  { grid-template-columns: repeat(3, 1fr); max-width: 740px; margin: 0 auto; }
.tg-grid-4  { grid-template-columns: repeat(4, 1fr); }
.tg-grid-5  { grid-template-columns: repeat(5, 1fr); }

/* 카드 기본 */
.tc {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}
.tc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

/* 담임 강조 카드 */
.tc-lead {
  border-top: 3px solid var(--primary);
}

/* 사진 자리 */
.tc-photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: #bbb;
  margin-bottom: 18px;
  overflow: hidden;
  flex-shrink: 0;
}
.tc-lead .tc-photo {
  width: 110px; height: 110px;
  border-color: var(--primary);
}
.tc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tc-photo svg { width: 44%; height: 44%; }

/* 이름 */
.tc-name {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.01em;
  margin-bottom: 6px;
}
.tc-lead .tc-name { font-size: 1.15rem; }

/* 직함 */
.tc-position {
  font-size: .76rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: .06em;
  margin-bottom: 14px;
}

/* 역할 태그 */
.tc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.tc-tag {
  font-size: .7rem;
  color: var(--text-3);
  background: var(--bg-light);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 50px;
  line-height: 1.6;
}

/* 사진 placeholder */
.team-photo-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light);
  color: #c8c4d8;
}
.team-photo-placeholder svg { width: 46%; height: 46%; }

/* 반응형 */
@media (max-width: 900px) {
  .tg-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tg-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .tg-grid-2  { grid-template-columns: 1fr 1fr; max-width: none; }
  .tg-grid-3  { grid-template-columns: 1fr 1fr; max-width: none; }
  .tg-grid-4,
  .tg-grid-5  { grid-template-columns: 1fr 1fr; }
  /* 예배 순서 1부·2부 모바일 */
  #sunday .fade-in[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* 하위 호환 — 구 클래스 (다른 페이지용 최소 유지) */
.team-group { margin-bottom: 56px; }
.team-group:last-child { margin-bottom: 0; }
.team-row { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.team-card { background:white; border-radius:var(--radius-md); border:1px solid var(--border); box-shadow:var(--shadow-sm); padding:24px 18px; display:flex; flex-direction:column; align-items:center; text-align:center; gap:14px; transition:transform var(--transition),box-shadow var(--transition); }
.team-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }
.team-photo-wrap { width:80px;height:80px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid var(--border); }
.team-info h4 { font-size:1rem;font-weight:800;color:var(--text);margin-bottom:6px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center; }
.team-role-badge { font-size:.7rem;font-weight:700;background:rgba(116,114,178,.1);color:var(--primary);padding:2px 8px;border-radius:50px; }
.team-info ul { list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:3px; }
.team-info li { font-size:.78rem;color:var(--text-2);line-height:1.5; }

/* ===================================================
   PROGRAMS
   =================================================== */
.programs-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.program-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-card.featured {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.program-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.program-icon { width: 48px; height: 48px; margin-bottom: 20px; }
.program-card.featured .program-icon { color: var(--accent); }
.program-card:not(.featured) .program-icon { color: var(--primary); }
.program-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 14px;
  line-height: 1.4;
}
.program-card.featured h3 { color: white; }
.program-card.featured h3 span { color: rgba(255,255,255,.6); font-size: .9rem; }
.program-card h3 span { color: var(--text-3); font-size: .85rem; font-weight: 500; }
.program-card p { font-size: .9rem; line-height: 1.7; margin-bottom: 16px; }
.program-card.featured p { color: rgba(255,255,255,.8); }
.program-card:not(.featured) p { color: var(--text-2); }
.program-card ul { margin-bottom: 8px; }
.program-card li {
  font-size: .88rem;
  padding: 5px 0 5px 16px;
  position: relative;
}
.program-card.featured li { color: rgba(255,255,255,.8); }
.program-card:not(.featured) li { color: var(--text-2); }
.program-card li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--accent);
}
.program-card.featured .btn-program { color: var(--accent); }

/* ===================================================
   OUTREACH
   =================================================== */
/* ── 세계지도 ── */
.outreach-worldmap {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid rgba(116,114,178,.25);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
.worldmap-img-wrap { position: relative; width: 100%; line-height: 0; }
.worldmap-img { width: 100%; height: auto; display: block; }

/* 핀 오버레이 */
.mpo {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 0; height: 0;
  z-index: 2;
}
.mpo-aura {
  position: absolute;
  width: 72px; height: 72px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: mapAura 3s ease-in-out infinite;
  transform-origin: center;
}
.mpo-ripple {
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid;
  transform: translate(-50%, -50%) scale(.3);
  animation: mapRipple 3s linear infinite;
  transform-origin: center;
}
.mpo-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2.5px solid white;
  transform: translate(-50%, -50%);
  z-index: 3;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}
.mpo-flag {
  position: absolute;
  font-size: 17px;
  left: 0; top: -30px;
  transform: translateX(-50%);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.95));
  z-index: 4;
  line-height: 1;
}
.mpo-label {
  position: absolute;
  top: 12px; left: 0;
  transform: translateX(-50%);
  font-size: 11px; font-weight: 700;
  color: white; white-space: nowrap;
  text-shadow: 0 0 6px rgba(0,0,0,1), 0 1px 3px rgba(0,0,0,1);
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: .02em;
  z-index: 4;
}
/* 핀 색상별 지연 */
#pin-us .mpo-aura, #pin-us .mpo-ripple { animation-delay: 0s; }
#pin-pl .mpo-aura, #pin-pl .mpo-ripple { animation-delay: .75s; }
#pin-lb .mpo-aura, #pin-lb .mpo-ripple { animation-delay: 1.5s; }
#pin-np .mpo-aura, #pin-np .mpo-ripple { animation-delay: 2.25s; }
.pin-flag { font-size: 18px; }
.pin-label {
  font-size: 12px;
  fill: rgba(255,255,255,.92);
  font-family: 'Noto Sans KR', sans-serif;
  font-weight: 700;
  letter-spacing: .03em;
}
.pin-aura {
  transform-box: fill-box;
  transform-origin: center;
  animation: mapAura 3s ease-in-out infinite;
}
.pin-ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: mapRipple 3s linear infinite;
}
@keyframes mapAura {
  0%, 100% { opacity: .35; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.18); }
}
@keyframes mapRipple {
  0%   { transform: scale(.35); opacity: .9; }
  100% { transform: scale(2.4);  opacity: 0; }
}
#pin-us .pin-aura  { animation-delay: 0s; }
#pin-us .pin-ripple { animation-delay: 0s; }
#pin-lb .pin-aura  { animation-delay: .75s; }
#pin-lb .pin-ripple { animation-delay: .75s; }
#pin-pl .pin-aura  { animation-delay: 1.5s; }
#pin-pl .pin-ripple { animation-delay: 1.5s; }
#pin-np .pin-aura  { animation-delay: 2.25s; }
#pin-np .pin-ripple { animation-delay: 2.25s; }

/* ── 방문 국가 현황 바 ── */
.outreach-country-bar {
  display: flex;
  margin-bottom: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.outreach-country {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 22px 12px;
  background: white;
  border-right: 1px solid var(--border);
  text-align: center;
  transition: background var(--transition);
}
.outreach-country:last-child { border-right: none; }
.outreach-country:hover { background: var(--bg-light); }
.country-flag { font-size: 2rem; line-height: 1; }
.country-name { font-size: .9rem; font-weight: 700; color: var(--text-1); }
.country-year { font-size: .72rem; color: var(--text-3); font-weight: 500; }

/* ── 프로그램 카드 그리드 ── */
.outreach-programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.outreach-prog-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.outreach-prog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.outreach-prog-top {
  padding: 28px 28px 24px;
  color: white;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.outreach-prog-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.95);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
  width: fit-content;
  letter-spacing: .02em;
}
.outreach-prog-badge--upcoming {
  background: rgba(255,200,50,.25);
  border-color: rgba(255,200,50,.55);
  color: #ffe082;
}
.outreach-prog-top h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.outreach-prog-top p { font-size: .83rem; opacity: .8; }
.outreach-prog-body { padding: 24px 28px; flex: 1; display: flex; flex-direction: column; }
.outreach-prog-body > p {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.85;
  margin-bottom: 16px;
  flex: 1;
}
.outreach-prog-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}
.outreach-prog-list li {
  font-size: .88rem;
  color: var(--text-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.outreach-prog-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: .82rem;
}
.outreach-prog-countries {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: auto;
}
.outreach-prog-countries span {
  background: var(--bg-light);
  color: var(--text-2);
  font-size: .78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

/* ===================================================
   TIMELINE
   =================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}
.timeline-item {
  position: relative;
  padding: 0 0 50px 48px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}
.timeline-year {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 8px;
}
.timeline-content h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { color: var(--text-2); font-size: .93rem; }

/* ===================================================
   SUPPORT
   =================================================== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.support-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition);
}
.support-card:hover { background: rgba(255,255,255,.1); }
.support-icon { font-size: 2.5rem; }
.support-card h3 { font-size: 1.2rem; font-weight: 700; color: white; }
.support-card p { color: rgba(255,255,255,.7); font-size: .9rem; }
.support-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.amount-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: all var(--transition);
}
.amount-btn:hover, .amount-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.partner-benefits {
  list-style: none;
  text-align: left;
}
.partner-benefits li {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}
.partner-benefits li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.finance-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 16px 24px;
  max-width: 600px;
  margin: 0 auto;
}
.info-icon { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.finance-note p { font-size: .88rem; color: rgba(255,255,255,.7); }
.finance-note a { color: var(--accent); font-weight: 600; }

/* ===================================================
   PARTNERS MARQUEE
   =================================================== */
.partners-marquee { overflow: hidden; padding: 20px 0; }
.marquee-track {
  display: flex;
  gap: 32px;
  animation: marquee 20s linear infinite;
  width: max-content;
}
.partner-logo {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===================================================
   CONTACT
   =================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.contact-info > p { color: var(--text-2); margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.contact-icon svg { width: 20px; height: 20px; color: var(--primary); }
.contact-list strong { display: block; font-size: .85rem; color: var(--text-3); margin-bottom: 2px; }
.contact-list p { color: var(--text); font-size: .93rem; line-height: 1.6; }
/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(116,114,178,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.form-success svg { width: 48px; height: 48px; color: #48bb78; margin: 0 auto 16px; }
.form-success p { color: var(--text); font-weight: 600; }

/* ===================================================
   LOCATION
   =================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.location-address h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.location-address p { color: var(--text-2); margin-bottom: 32px; line-height: 1.8; }
.transport-list { display: flex; flex-direction: column; gap: 16px; }
.transport-item { display: flex; gap: 12px; align-items: flex-start; }
.transport-badge {
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  flex-shrink: 0;
  white-space: nowrap;
}
.transport-badge.subway { background: #3182ce; color: white; }
.transport-badge.bus { background: #38a169; color: white; }
.transport-badge.car { background: var(--text-3); color: white; }
.transport-item p { font-size: .9rem; color: var(--text-2); line-height: 1.6; }
.map-frame {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 60px 32px;
  text-align: center;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.map-pin-anim { animation: pinBounce 1.5s ease infinite; }
.pin-svg { width: 48px; height: 60px; }
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.map-address-label { font-size: .95rem; font-weight: 600; color: var(--text); }

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.7);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: white;
  display: inline-block;
  margin-bottom: 8px;
}
.footer-logo .logo-t { color: var(--accent); }
.footer-tagline {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.footer-desc { font-size: .88rem; line-height: 1.8; margin-bottom: 24px; }
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.social-links a:hover { background: var(--primary-lt); transform: translateY(-2px); }
.social-links svg { width: 18px; height: 18px; color: white; }
.footer-links h4 {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 20px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dk); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===================================================
   HERO CANVAS (particles)
   =================================================== */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-bg   { z-index: 2; position: absolute; inset: 0; }
.hero-overlay { z-index: 3; }
.hero-content { z-index: 4; }
.scroll-down  { z-index: 4; }

/* ===================================================
   NEWS
   =================================================== */
.news-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 12px;
}
.news-header .section-title { margin-bottom: 0; }
.news-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
}
.news-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-featured { grid-row: span 2; }
.news-img {
  width: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.news-featured .news-img { height: 280px; }
.news-card:not(.news-featured) .news-img { height: 150px; }
.news-img-1 {
  background-color: #5A57A0;
  background-image:
    radial-gradient(circle at 30% 50%, rgba(245,166,35,.35) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.08) 0%, transparent 40%),
    linear-gradient(135deg, #2C2845 0%, #7472B2 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-img-1::after {
  content: '🚀';
  font-size: 3rem;
}
.news-img-2 {
  background: linear-gradient(135deg, #2d6ec4 0%, #1a5276 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-img-2::after { content: '🌏'; font-size: 2rem; }
.news-img-3 {
  background: linear-gradient(135deg, #38a169 0%, #276749 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-img-3::after { content: '🎓'; font-size: 2rem; }
.news-img-4 {
  background: linear-gradient(135deg, #9f7aea 0%, #6b46c1 100%);
  display: flex; align-items: center; justify-content: center;
}
.news-img-4::after { content: '📊'; font-size: 2rem; }
.news-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-badge {
  display: inline-block;
  background: rgba(116,114,178,.1);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
  width: fit-content;
}
.badge-outreach { background: rgba(45,110,196,.1); color: #2d6ec4; }
.badge-academy  { background: rgba(56,161,105,.1); color: #276749; }
.badge-support  { background: rgba(159,122,234,.1); color: #6b46c1; }
.badge-camp     { background: rgba(192,86,33,.12);  color: #c05621; }
.news-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text);
}
.news-featured .news-body h3 { font-size: 1.2rem; }
.news-body p {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.news-meta time { font-size: .8rem; color: var(--text-3); }
.news-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--transition);
}
.news-link:hover { color: var(--accent-dk); }

/* ===================================================
   TESTIMONIALS
   =================================================== */
/* 슬라이더 래퍼 */
.testi-slider {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}
.testi-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.testi-page {
  min-width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 4px 2px 12px;
}
.testi-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 36px;
}
.testi-nav-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  width: 46px; height: 46px;
  cursor: pointer;
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.testi-nav-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.testi-nav-btn:disabled { opacity: .3; cursor: default; }
.testi-dots-wrap { display: flex; gap: 8px; align-items: center; }
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.testi-dot.active { background: var(--accent); transform: scale(1.4); }
/* 페이지 표시 */
.testi-page-label {
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  min-width: 50px;
  text-align: center;
}
/* (legacy 그리드 — 미사용) */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.testi-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}
.testi-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.testi-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 6rem;
  font-weight: 900;
  color: var(--accent);
  line-height: .7;
  margin-bottom: 20px;
  opacity: .55;
  display: block;
  height: 50px;
}
.testi-card > p {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: white;
  flex-shrink: 0;
}
.testi-av1 { background: linear-gradient(135deg, #9896CA, #5A57A0); }
.testi-av2 { background: linear-gradient(135deg, #38b2ac, #276749); }
.testi-av3 { background: linear-gradient(135deg, #f5a623, #c27c10); }
.testi-av4 { background: linear-gradient(135deg, #f56565, #c53030); }
.testi-av5 { background: linear-gradient(135deg, #9f7aea, #6b46c1); }
.testi-av6 { background: linear-gradient(135deg, #667eea, #3c4fe0); }
.testi-av7 { background: linear-gradient(135deg, #ed8936, #c05621); }
.testi-av8 { background: linear-gradient(135deg, #48bb78, #276749); }
.testi-author strong { display: block; font-size: .9rem; color: white; }
.testi-author span { font-size: .8rem; color: rgba(255,255,255,.55); }

/* ===================================================
   RESPONSIVE (news + testi)
   =================================================== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-featured { grid-column: span 2; grid-row: span 1; }
  .news-featured .news-img { height: 200px; }
  .testi-grid { grid-template-columns: 1fr 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 2; }
  .testi-page { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .news-grid { grid-template-columns: 1fr; }
  .news-featured { grid-column: span 1; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid .testi-card:last-child { grid-column: span 1; }
  .testi-page { grid-template-columns: 1fr; }
  .news-header { flex-direction: column; align-items: flex-start; }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid .program-card.featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .vm-grid { grid-template-columns: 1fr; }
  /* 5대 목표 반응형 */
  #vision .fade-in [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(3,1fr) !important; }
}
  .greeting-grid { grid-template-columns: 1fr; }
  .greeting-portrait { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .portrait-frame { width: 120px; height: 120px; flex-shrink: 0; margin: 0 auto 12px; }
  .greeting-questions { width: 100%; }
  .greeting-headline { margin-bottom: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,.15); }
  .stat-item:last-child { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .location-grid { grid-template-columns: 1fr; }
  .outreach-programs { grid-template-columns: 1fr; }
  .outreach-grid { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* ── 모바일: 기존 nav 숨김 ── */
  .nav-links, .btn-donate, .btn-membership, .btn-lms-shortcut { display: none; }
  .hamburger { display: flex; }

  /* ── 모바일 메가 드로어: JS가 display로 직접 제어 ── */
  .mega-panel {
    position: fixed !important;
    top: 72px !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    background: white !important;
    overflow-y: auto !important;
    transform: none !important;
    border-top: 3px solid var(--primary) !important;
    display: none !important;   /* JS가 block으로 전환 */
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
    z-index: 999 !important;
    box-shadow: none !important;
  }
  .mega-panel.mob-drawer-open {
    display: block !important;
  }

  .mega-inner {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .mega-col {
    padding: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .mega-col:last-child { border-bottom: none; }

  /* 카테고리 타이틀 — 탭 가능한 아코디언 헤더 */
  .mega-col-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin: 0;
    font-size: .82rem;
    border-bottom: none;
    cursor: pointer;
    user-select: none;
  }
  .mega-col-title::after {
    content: '›';
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    transition: transform .2s;
    transform: rotate(90deg);
  }
  .mega-col.mob-open .mega-col-title::after {
    transform: rotate(270deg);
  }

  /* 하위 링크 목록 — 기본 닫힘 */
  .mega-col ul {
    display: none;
    background: var(--bg-light);
    padding: 8px 0 12px;
  }
  .mega-col.mob-open ul { display: block; }

  .mega-col ul li a {
    padding: 10px 28px;
    font-size: .92rem;
    border-bottom: none;
  }
  .mega-col ul li a:hover { padding-left: 34px; }

  /* 두 번째 타이틀(후원) 처리 */
  .mega-col p.mega-col-title + ul {
    margin-top: 0;
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-item > a { color: var(--text) !important; }
  .section { padding: 70px 0; }
  .outreach-country-bar { flex-wrap: wrap; }
  .outreach-country { flex: 0 0 50%; border-bottom: 1px solid var(--border); }
  .outreach-country:nth-child(odd) { border-right: 1px solid var(--border); }
  .outreach-country:last-child:nth-child(odd) { border-right: none; }
  .outreach-programs { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: 1fr; }
  .programs-grid .program-card.featured { grid-column: span 1; }
  .about-card-stack { grid-template-columns: 1fr; }
  .card-4 { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}

/* ===================================================
   ABOUT — 위기와 응답
   =================================================== */
.crisis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
}
.crisis-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  transition: transform var(--transition), box-shadow var(--transition);
}
.crisis-card:nth-child(2) { border-top-color: var(--accent); }
.crisis-card:nth-child(3) { border-top-color: #38b2ac; }
.crisis-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.crisis-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  opacity: .15;
  line-height: 1;
  margin-bottom: 12px;
}
.crisis-card:nth-child(2) .crisis-num { color: var(--accent); }
.crisis-card:nth-child(3) .crisis-num { color: #38b2ac; }
.crisis-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.crisis-card p { font-size: .92rem; color: var(--text-2); line-height: 1.75; }

/* ===================================================
   VISION — 교육 철학 TMD & 3T & 실행 전략
   =================================================== */
.tmd-label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tmd-t-color { color: #68d391 !important; opacity: 1 !important; }
.tmd-m-color { color: var(--accent) !important; opacity: 1 !important; }
.tmd-d-color { color: #76e4f7 !important; opacity: 1 !important; }

.philos-subsection { margin-bottom: 48px; }
.philos-badge {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.philos-grid { display: grid; gap: 18px; }
.philos-grid.three-col { grid-template-columns: repeat(3, 1fr); }
.philos-grid.two-col   { grid-template-columns: repeat(2, 1fr); }
.philos-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  transition: background var(--transition);
}
.philos-card:hover { background: rgba(255,255,255,.12); }
.philos-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.philos-card p { color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.75; }
.philos-kr {
  font-size: .76rem;
  font-weight: 600;
  background: rgba(245,166,35,.22);
  color: var(--accent);
  padding: 2px 10px;
  border-radius: 50px;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 0;
  text-transform: none;
}
.strat-card { display: flex; align-items: flex-start; gap: 18px; }
.strat-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 32px;
}

.bible-section {
  text-align: center;
  margin: 60px 0 44px;
  padding: 44px 40px;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bible-quote {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  font-style: italic;
  line-height: 2;
  max-width: 600px;
  margin: 0 auto;
}
.bible-quote cite {
  display: block;
  margin-top: 14px;
  font-size: .9rem;
  font-style: normal;
  color: var(--accent);
  font-weight: 700;
}

.vision-close {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 10px 0 20px;
}
.vision-close p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  line-height: 2.1;
}
.kw-em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .crisis-grid { grid-template-columns: 1fr; }
  .philos-grid.three-col { grid-template-columns: 1fr; }
  .philos-grid.two-col   { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .vm-card { padding: 28px 20px; }
  .support-card { padding: 28px 20px; }
  /* 5대 목표 모바일 2열 */
  #vision .fade-in [style*="grid-template-columns:repeat(5"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* ===================================================
   SUB-PAGE — 페이지 공통 헤더
   =================================================== */
.page-hero {
  background: var(--bg-dark);
  padding: 140px 0 64px;
  color: white;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }
.page-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.page-hero .page-sub { font-size: 1.05rem; color: rgba(255,255,255,.7); max-width: 540px; }

/* ===================================================
   SUB-PAGE — 프로그램 개요
   =================================================== */
.prog-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.prog-desc-text .section-tag { margin-bottom: 16px; }
.prog-desc-text h2 { font-size: 1.7rem; font-weight: 800; margin-bottom: 18px; line-height: 1.3; }
.prog-desc-text p { color: var(--text-2); margin-bottom: 14px; line-height: 1.85; }

.prog-features { display: flex; flex-direction: column; gap: 14px; }
.prog-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: white;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.prog-feature-item:hover { box-shadow: var(--shadow-md); }
.prog-feature-item:nth-child(2) { border-left-color: var(--accent); }
.prog-feature-item:nth-child(3) { border-left-color: #38b2ac; }
.prog-feature-item:nth-child(4) { border-left-color: #9f7aea; }
.feat-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(116,114,178,.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.prog-feature-item:nth-child(2) .feat-icon { background: rgba(245,166,35,.1); color: var(--accent-dk); }
.prog-feature-item:nth-child(3) .feat-icon { background: rgba(56,178,172,.1); color: #2c7a7b; }
.prog-feature-item:nth-child(4) .feat-icon { background: rgba(159,122,234,.1); color: #6b46c1; }
.feat-text h4 { font-size: .95rem; font-weight: 700; margin-bottom: 3px; }
.feat-text p  { font-size: .85rem; color: var(--text-3); margin: 0; }

/* ===================================================
   BOARD — 게시판
   =================================================== */
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.board-tab-btn {
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .87rem;
  font-weight: 600;
  color: var(--text-2);
  background: white;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.board-tab-btn:hover { border-color: var(--primary); color: var(--primary); }
.board-tab-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

.board-search-wrap { display: flex; gap: 8px; }
.board-search-wrap input {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: .87rem;
  width: 210px;
  font-family: inherit;
  transition: border-color var(--transition);
}
.board-search-wrap input:focus { border-color: var(--primary); outline: none; }
.board-search-wrap button {
  padding: 8px 18px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: .87rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background var(--transition);
}
.board-search-wrap button:hover { background: var(--primary-dk); }

.board-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.board-table th {
  background: var(--bg-dark);
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 600;
  padding: 13px 16px;
  text-align: left;
  white-space: nowrap;
}
.board-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
  background: white;
}
.board-table tbody tr { cursor: pointer; transition: background var(--transition); }
.board-table tbody tr:hover td { background: rgba(116,114,178,.04); }
.board-table tbody tr:last-child td { border-bottom: none; }
.col-num  { width: 56px; text-align: center; color: var(--text-3) !important; font-size: .85rem !important; }
.col-cat  { width: 72px; }
.col-date { width: 100px; color: var(--text-3) !important; font-size: .85rem !important; white-space: nowrap; }
.col-views{ width: 64px; text-align: center; color: var(--text-3) !important; font-size: .85rem !important; }

.board-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.badge-notice   { background: rgba(245,166,35,.15);  color: #b7690e; }
.badge-resource { background: rgba(116,114,178,.1);     color: var(--primary); }
.badge-review   { background: rgba(56,178,172,.12);   color: #2c7a7b; }
.badge-research { background: rgba(159,122,234,.12);  color: #553c9a; }
.badge-data     { background: rgba(72,187,120,.12);   color: #276749; }
.badge-general  { background: var(--bg-light);        color: var(--text-3); }

.pin-icon { color: var(--accent); }
.title-cell { font-weight: 500; }
.title-cell:hover { color: var(--primary); }

.board-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
  font-size: .95rem;
}

/* Pagination */
.board-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn:disabled { opacity: .35; cursor: default; }

/* ===================================================
   MODAL — 게시글 읽기
   =================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  transform: translateY(18px);
  transition: transform .28s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-head {
  padding: 32px 40px 22px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.meta-author, .meta-date, .meta-views {
  font-size: .82rem;
  color: var(--text-3);
}
.modal-title {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--text);
  padding-right: 36px;
}
.modal-close {
  position: absolute;
  top: 28px; right: 28px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-light);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: inherit;
}
.modal-close:hover { background: var(--text); color: white; }
.modal-body {
  padding: 28px 40px 40px;
  line-height: 1.9;
  color: var(--text-2);
  font-size: .96rem;
}
.modal-body h3, .modal-body h4 { color: var(--text); margin: 22px 0 10px; font-weight: 700; }
.modal-body h3 { font-size: 1.15rem; }
.modal-body h4 { font-size: 1rem; }
.modal-body p { margin-bottom: 14px; }
.modal-body ul, .modal-body ol { margin: 10px 0 16px 22px; }
.modal-body li { margin-bottom: 7px; }
.modal-body strong { color: var(--text); font-weight: 700; }
.modal-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 10px 18px;
  margin: 20px 0;
  color: var(--text-3);
  font-style: italic;
  background: var(--bg-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ===================================================
   DONATION MODAL — 정기 후원 모달
   =================================================== */
.donation-modal { max-width: 520px; }

.don-modal-body { padding: 24px 36px 36px; }

/* 단계 표시 */
.don-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.don-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: var(--text-3);
  font-weight: 500;
}
.don-step.active { color: var(--primary); font-weight: 700; }
.don-step.done   { color: #48bb78; font-weight: 600; }
.don-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg-light);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
  transition: all var(--transition);
}
.don-step.active .don-step-num { background: var(--primary); border-color: var(--primary); color: white; }
.don-step.done   .don-step-num { background: #48bb78;        border-color: #48bb78;        color: white; }
.don-step-line {
  width: 48px; height: 2px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
  transition: background var(--transition);
}

/* 금액 배지 */
.don-amount-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(116,114,178,.06);
  border: 1.5px solid rgba(116,114,178,.2);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 22px;
}
.don-amount-badge .badge-label { font-size: .82rem; color: var(--text-3); }
.don-amount-badge .badge-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  margin-left: auto;
}
.don-amount-badge .badge-cycle { font-size: .8rem; color: var(--text-3); }

/* 후원자 폼 */
.donor-form .wf-group { margin-bottom: 16px; }
.req { color: #e53e3e; margin-left: 2px; }
.opt-label { font-size: .78rem; color: var(--text-3); font-weight: 400; }

/* 계좌 안내 박스 */
.account-info-box {
  background: linear-gradient(135deg, rgba(116,114,178,.06) 0%, rgba(116,114,178,.02) 100%);
  border: 2px solid rgba(116,114,178,.22);
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 18px;
}
.acc-bank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(116,114,178,.12);
}
.acc-bank-icon {
  width: 30px; height: 30px;
  background: var(--primary);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.acc-bank-name { font-size: .85rem; font-weight: 700; color: var(--primary); }
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(116,114,178,.08);
}
.account-row:last-child { border-bottom: none; padding-bottom: 0; }
.acc-label { font-size: .8rem; color: var(--text-3); min-width: 66px; }
.acc-value {
  font-size: .92rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.acc-amount { color: var(--primary) !important; font-size: 1rem !important; }
.acc-cycle { font-size: .78rem; color: var(--text-3); font-weight: 400; margin-left: 2px; }
#copyAccBtn {
  font-size: .72rem;
  font-weight: 700;
  background: var(--primary);
  color: white;
  border: none;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: inherit;
}
#copyAccBtn:hover { background: var(--primary-dk); }

/* 자동이체 안내 */
.transfer-guide {
  background: var(--bg-light);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.transfer-guide h5 {
  font-size: .84rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.transfer-guide ol { padding-left: 18px; margin: 0; }
.transfer-guide li {
  font-size: .82rem;
  color: var(--text-2);
  margin-bottom: 6px;
  line-height: 1.55;
}
.transfer-guide li:last-child { margin-bottom: 0; }

/* 주의 노트 */
.transfer-note {
  display: flex;
  gap: 10px;
  background: rgba(245,166,35,.07);
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: .82rem;
  color: var(--text-2);
  line-height: 1.6;
}
.note-icon { flex-shrink: 0; font-size: 1rem; line-height: 1.6; }

/* 하단 버튼 */
.don-nav {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.btn-don-back {
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-don-back:hover { border-color: var(--text-2); color: var(--text); }

/* 감사 화면 */
.don-thank {
  text-align: center;
  padding: 16px 0 8px;
}
.don-thank .thank-icon { font-size: 3rem; margin-bottom: 14px; }
.don-thank h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.don-thank p { font-size: .92rem; color: var(--text-2); line-height: 1.75; margin-bottom: 6px; }
.don-thank .thank-contact {
  font-size: .82rem;
  color: var(--text-3);
  margin-top: 10px;
}
.don-thank .thank-contact a { color: var(--primary); }

/* 직접입력 필드 */
.custom-amount-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.custom-amount-input:focus { border-color: var(--primary); outline: none; }

/* ===================================================
   BOARD — 관리자 UI
   =================================================== */
/* 게시글 행 수정/삭제 버튼 */
.admin-row-btns {
  display: inline-flex;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}
.row-btn {
  font-size: .72rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition);
}
.row-btn:hover { opacity: .75; }
.edit-btn { background: rgba(116,114,178,.12); color: var(--primary); }
.del-btn  { background: rgba(229,62,62,.1);  color: #c53030; }

/* 게시판 하단 관리 영역 */
.board-footer-admin {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.btn-write {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.btn-write:hover { background: var(--primary-dk); }
.admin-link-btn {
  font-size: .78rem;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color var(--transition);
}
.admin-link-btn:hover { color: var(--primary); }
.admin-logout-btn {
  font-size: .78rem;
  color: #c53030;
  background: rgba(229,62,62,.07);
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 12px;
  border-radius: 4px;
  transition: background var(--transition);
}
.admin-logout-btn:hover { background: rgba(229,62,62,.15); }

/* 관리자 접속 표시 바 */
#adminIndicator {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(116,114,178,.07);
  border: 1px solid rgba(116,114,178,.18);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: .82rem;
  color: var(--primary);
  margin-bottom: 16px;
}
#adminIndicator .ind-dot {
  width: 8px; height: 8px;
  background: #48bb78;
  border-radius: 50%;
}

/* ===================================================
   WRITE MODAL — 글쓰기 / 수정
   =================================================== */
.write-modal { max-width: 660px; }
.write-modal-body { padding: 24px 36px 36px; }

.wf-row-top {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 18px;
}
.wf-group { margin-bottom: 18px; }
.wf-pin-group { flex-shrink: 0; padding-bottom: 2px; }
.wf-pin-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.wf-pin-label input { accent-color: var(--primary); width: 15px; height: 15px; }
.wf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.wf-hint-btn {
  font-size: .76rem;
  color: var(--text-3);
  background: var(--bg-light);
  border: none;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  margin-left: auto;
  transition: color var(--transition);
}
.wf-hint-btn:hover { color: var(--primary); }
.wf-html-hint {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.wf-html-hint.hidden { display: none; }
.wf-html-hint code {
  font-size: .76rem;
  background: white;
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--primary);
}
.wf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.wf-input:focus { border-color: var(--primary); outline: none; }
.wf-select { appearance: none; cursor: pointer; }
.wf-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  min-height: 200px;
  line-height: 1.7;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
.wf-textarea:focus { border-color: var(--primary); outline: none; }
.wf-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}
.btn-cancel-write {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}
.btn-cancel-write:hover { border-color: var(--text-2); color: var(--text); }

/* ===================================================
   파일 첨부 — 글쓰기 모달
   =================================================== */

/* 라벨 힌트 */
.wf-label-hint {
  font-size: .75rem;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 8px;
}

/* 드롭존 컨테이너 */
.wf-dropzone {
  border: 2px dashed #c8d4e8;
  border-radius: 10px;
  background: #f7f9ff;
  transition: border-color .2s, background .2s;
}
.wf-dropzone:hover  { border-color: var(--primary); }

/* 드롭 영역 */
.wf-drop-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 16px;
  cursor: pointer;
  text-align: center;
}
.wf-drop-area.drag-over {
  border-color: var(--primary);
  background: #e8f0fb;
}
.wf-drop-icon { font-size: 1.6rem; line-height: 1; }
.wf-drop-text {
  font-size: .88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.wf-drop-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* 대기 파일 목록 */
.wf-file-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wf-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f0f5ff;
  border: 1px solid #d0ddf5;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: .85rem;
}
.wf-file-keep { background: #f7fdf2; border-color: #bbf7d0; }
.wf-file-icon { font-size: 1.1rem; flex-shrink: 0; }
.wf-file-name {
  flex: 1;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.wf-file-size {
  color: var(--text-3);
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.wf-file-label {
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #e8edf7;
  color: #4a5568;
  flex-shrink: 0;
}
.wf-new-label { background: #dcfce7; color: #15803d; }
.wf-file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  font-size: .9rem;
  padding: 2px 4px;
  border-radius: 4px;
  flex-shrink: 0;
  line-height: 1;
  transition: color .15s;
}
.wf-file-remove:hover { color: #e53e3e; }

/* 게시판 목록 — 첨부 칩 */
.attach-chip {
  display: inline-flex;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  color: #1b4f8a;
  background: #e8f0fb;
  border-radius: 8px;
  padding: 1px 7px;
  margin-left: 4px;
  vertical-align: middle;
  cursor: default;
}

/* ===================================================
   파일 첨부 — 글 읽기 모달
   =================================================== */
.modal-attachments {
  border-top: 1px solid var(--border, #e2e8f0);
  padding: 16px 36px 24px;
  background: #f8faff;
  border-radius: 0 0 var(--radius-md, 16px) var(--radius-md, 16px);
}
.modal-attach-header {
  font-size: .85rem;
  font-weight: 700;
  color: var(--primary, #1b4f8a);
  margin-bottom: 12px;
}
.modal-attach-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d0ddf5;
  border-radius: 9px;
  padding: 10px 14px;
  font-size: .88rem;
}
.attach-file-icon { font-size: 1.15rem; flex-shrink: 0; }
.attach-file-name {
  flex: 1;
  color: var(--text, #1a1a2e);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attach-file-size {
  color: var(--text-3, #718096);
  font-size: .78rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.attach-dl-btn {
  background: var(--primary, #1b4f8a);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .15s;
}
.attach-dl-btn:hover { opacity: .85; }

/* Drive / 로컬 출처 뱃지 */
.attach-src-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.drive-badge  { background: #e8f5e9; color: #2e7d32; }
.local-badge  { background: #e8edf7; color: #4a5568; }

@media (max-width: 600px) {
  .modal-attachments { padding: 14px 18px 20px; }
  .wf-file-name { max-width: 140px; }
  .attach-file-name { max-width: 120px; }
  .attach-dl-btn { padding: 5px 9px; font-size: .74rem; }
}

/* ===================================================
   ADMIN LOGIN BOX
   =================================================== */
.admin-login-box { max-width: 400px; }

/* Responsive — board & sub-pages */
@media (max-width: 1024px) {
  .prog-overview { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .page-hero { padding: 110px 0 48px; }
  .board-table .col-num,
  .board-table .col-views { display: none; }
  .board-search-wrap input { width: 150px; }
  .modal-head { padding: 24px 20px 18px; }
  .modal-body { padding: 20px 20px 32px; }
}
@media (max-width: 480px) {
  .board-table .col-date { display: none; }
  .board-search-wrap { flex-direction: column; }
  .board-search-wrap input { width: 100%; }
}

/* ===================================================
   LMS — 러닝센터 스타일
   =================================================== */

/* ── LMS Hero ── */
.lms-hero {
  background: linear-gradient(135deg, #0f2848 0%, #1b4f8a 60%, #2d6ec4 100%);
  padding: 80px 24px 60px;
  text-align: center;
  color: #fff;
}
.lms-hero-inner { max-width: 720px; margin: 0 auto; }
.lms-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.lms-hero-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
.lms-hero-sub {
  font-size: 1rem;
  opacity: .85;
  margin-bottom: 32px;
}
.lms-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.lms-stat { text-align: center; padding: 0 28px; }
.lms-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}
.lms-stat-label { font-size: .82rem; opacity: .8; }
.lms-stat-div {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
}

/* ── LMS Main ── */
.lms-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* ── 잠김 배너 ── */
.lms-locked-banner {
  text-align: center;
  padding: 60px 24px;
}
.lms-locked-icon { font-size: 3rem; margin-bottom: 16px; }
.lms-locked-title { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.lms-locked-desc { color: var(--text-2); line-height: 1.7; margin-bottom: 28px; }
.lms-login-open-btn { padding: 14px 36px; font-size: 1rem; }

/* ── 카탈로그 헤더 ── */
.lms-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: .95rem;
  color: var(--text-2);
}
.lms-welcome-name { font-weight: 700; color: var(--text); }
.lms-logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 16px;
  font-size: .82rem;
  color: var(--text-3);
  cursor: pointer;
  transition: var(--transition);
}
.lms-logout-btn:hover { background: var(--bg-light); color: var(--text); }

/* ── 필터 탭 ── */
.lms-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.lms-filter-btn {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 8px 22px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
}
.lms-filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.lms-filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── 코스 그리드 ── */
.lms-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.lms-empty { color: var(--text-3); text-align: center; padding: 40px; }

/* ── 코스 카드 ── */
.lms-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.lms-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.lms-card-top {
  padding: 28px 24px 20px;
  color: #fff;
  position: relative;
}
.lms-card-level {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.lms-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.lms-card-subtitle {
  font-size: .82rem;
  opacity: .85;
  margin-bottom: 12px;
}
.lms-card-duration {
  font-size: .78rem;
  opacity: .75;
  font-weight: 500;
}

.lms-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lms-card-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
}
.lms-instr-name { font-weight: 600; color: var(--text); }
.lms-instr-role { color: var(--text-3); }
.lms-card-desc {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.lms-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lms-tag {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 3px 10px;
  font-size: .75rem;
  color: var(--text-3);
}

/* ── 진도 바 ── */
.lms-card-progress { display: flex; align-items: center; gap: 10px; }
.lms-prog-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
}
.lms-prog-fill { height: 100%; border-radius: 4px; transition: width .5s ease; }
.lms-prog-text { font-size: .78rem; color: var(--text-3); white-space: nowrap; }

.lms-card-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none;
  transition: opacity var(--transition);
  margin-top: 4px;
}
.lms-card-btn:hover { opacity: .88; }

/* ── 로그인 모달 ── */
.lms-login-box {
  max-width: 440px;
  width: 94%;
  padding: 40px 36px;
  text-align: center;
}
.lms-login-logo { font-size: 2.5rem; margin-bottom: 12px; }
.lms-login-title { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.lms-login-desc { font-size: .88rem; color: var(--text-2); margin-bottom: 24px; }

.lms-login-form { text-align: left; }
.lf-group { margin-bottom: 16px; }
.lf-label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.lf-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  transition: border-color var(--transition);
  font-family: inherit;
}
.lf-input:focus { outline: none; border-color: var(--primary); }

.lms-login-hint {
  font-size: .78rem;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.6;
}
.lms-login-hint a { color: var(--primary); text-decoration: none; }
.lms-login-err {
  color: #e53e3e;
  font-size: .82rem;
  text-align: center;
  margin-bottom: 10px;
}

/* ===================================================
   LMS Player 스타일
   =================================================== */
.player-body {
  background: #0f1724;
  color: #e2e8f0;
  min-height: 100vh;
}

/* ── 플레이어 헤더 ── */
.player-header {
  background: #1a2740;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 200;
}
.player-header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.player-back-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.player-back-btn:hover { color: #fff; }
.player-back-arrow { font-size: 1.2rem; line-height: 1; }
.player-course-title {
  flex: 1;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.player-user-name { font-size: .82rem; color: rgba(255,255,255,.6); }
.player-logout-btn {
  background: rgba(255,255,255,.1);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .78rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background var(--transition);
}
.player-logout-btn:hover { background: rgba(255,255,255,.18); }

/* ── 플레이어 레이아웃 ── */
.player-layout {
  display: flex;
  min-height: calc(100vh - 56px);
  position: relative;
}

/* ── 사이드바 ── */
.player-sidebar {
  width: 320px;
  min-width: 280px;
  background: #1a2740;
  border-right: 1px solid rgba(255,255,255,.07);
  overflow-y: auto;
  flex-shrink: 0;
  padding: 20px 0;
}
.sidebar-progress-wrap {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 16px;
}
.sidebar-prog-label {
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sidebar-prog-bar {
  height: 5px;
  background: rgba(255,255,255,.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}
.sidebar-prog-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }
.sidebar-prog-text { font-size: .78rem; color: rgba(255,255,255,.5); }

.sb-module-block { margin-bottom: 4px; }
.sb-module-title {
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.4);
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 20px 6px;
}
.sb-lesson-list { list-style: none; }
.sb-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.sb-lesson-item:hover { background: rgba(255,255,255,.05); }
.sb-lesson-item.active {
  background: rgba(255,255,255,.08);
  border-left-color: var(--accent);
}
.sb-lesson-item.done .sb-lesson-name { color: rgba(255,255,255,.5); }
.sb-lesson-icon { font-size: .9rem; flex-shrink: 0; width: 20px; text-align: center; }
.sb-lesson-name { flex: 1; font-size: .82rem; color: rgba(255,255,255,.8); line-height: 1.4; }
.sb-lesson-dur { font-size: .72rem; color: rgba(255,255,255,.35); white-space: nowrap; }

/* ── 사이드바 토글 (모바일) ── */
.sidebar-toggle-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 10px 24px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  cursor: pointer;
}

/* ── 메인 플레이어 ── */
.player-main {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── 영상 래퍼 ── */
.player-video-wrap {
  background: #000;
  flex-shrink: 0;
}
.player-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
}
.player-video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ── 준비중 화면 ── */
.video-placeholder {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #0f1724;
  color: rgba(255,255,255,.7);
  gap: 12px;
}
.video-placeholder-icon { font-size: 3.5rem; }
.video-placeholder-title { font-size: 1.2rem; font-weight: 700; color: #fff; }
.video-placeholder-sub { font-size: .85rem; text-align: center; line-height: 1.6; }

/* ── 강의 정보 바 ── */
.player-info-bar {
  padding: 20px 28px;
  background: #1a2740;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.player-lesson-meta { flex: 1; min-width: 0; }
.player-module-label {
  display: block;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.player-lesson-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-lesson-duration { font-size: .78rem; color: rgba(255,255,255,.4); }

.player-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.player-ctrl-btn {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 9px 16px;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.player-ctrl-btn:hover:not(:disabled) { background: rgba(255,255,255,.15); color: #fff; }
.player-ctrl-btn:disabled { opacity: .3; cursor: not-allowed; }

.player-complete-btn {
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.player-complete-btn:hover { background: var(--accent-dk); }
.player-complete-btn.complete-done {
  background: #38a169;
}

/* ── 퀴즈 영역 ── */
.player-quiz-wrap {
  padding: 32px 28px 40px;
  max-width: 780px;
  width: 100%;
}
.quiz-inner { display: flex; flex-direction: column; gap: 24px; }
.quiz-header { text-align: center; margin-bottom: 8px; }
.quiz-icon { font-size: 2.5rem; margin-bottom: 10px; }
.quiz-title { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.quiz-desc { font-size: .88rem; color: rgba(255,255,255,.5); }

.quiz-q-block {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 20px;
  transition: background var(--transition);
}
.quiz-q-block.quiz-correct { background: rgba(56,161,105,.12); border-color: rgba(56,161,105,.3); }
.quiz-q-block.quiz-wrong   { background: rgba(229,62,62,.1);   border-color: rgba(229,62,62,.25); }

.quiz-q-text {
  font-size: .95rem;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.6;
}
.quiz-q-num {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  padding: 1px 8px;
  font-size: .75rem;
  font-weight: 700;
  margin-right: 8px;
  vertical-align: middle;
}

.quiz-options { display: flex; flex-direction: column; gap: 8px; }
.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  transition: background var(--transition);
}
.quiz-option:hover { background: rgba(255,255,255,.06); }
.quiz-option input[type="radio"] { margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.quiz-opt-text { font-size: .88rem; color: rgba(255,255,255,.8); line-height: 1.5; }

.quiz-option.quiz-correct-opt {
  background: rgba(56,161,105,.2);
  border-color: rgba(56,161,105,.5);
}
.quiz-option.quiz-correct-opt .quiz-opt-text { color: #9ae6b4; font-weight: 600; }
.quiz-option.quiz-wrong-opt {
  background: rgba(229,62,62,.15);
  border-color: rgba(229,62,62,.4);
}
.quiz-option.quiz-wrong-opt .quiz-opt-text { color: #feb2b2; }

.quiz-submit-btn {
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  align-self: center;
  transition: background var(--transition), opacity var(--transition);
}
.quiz-submit-btn:hover:not(:disabled) { background: var(--accent-dk); }
.quiz-submit-btn:disabled { opacity: .4; cursor: not-allowed; }

.quiz-result {
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.quiz-pass { background: rgba(56,161,105,.12); border: 1px solid rgba(56,161,105,.3); }
.quiz-fail { background: rgba(229,62,62,.1);   border: 1px solid rgba(229,62,62,.25); }
.quiz-result-score { font-size: 1.2rem; font-weight: 700; color: #fff; }
.quiz-result-msg { font-size: .88rem; color: rgba(255,255,255,.7); }

.quiz-next-btn {
  background: var(--primary);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition);
}
.quiz-next-btn:hover { background: var(--primary-lt); }
.quiz-retry-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: 10px 24px;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.quiz-already-done {
  text-align: center;
  color: #9ae6b4;
  font-size: .9rem;
  padding: 12px;
}

/* ── 수료증 ── */
.player-cert-wrap {
  padding: 60px 28px;
  display: flex;
  justify-content: center;
}
.cert-box {
  background: linear-gradient(135deg, #1a2740 0%, #0f2848 100%);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.cert-icon { font-size: 3.5rem; margin-bottom: 16px; }
.cert-title { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.cert-sub { color: rgba(255,255,255,.6); margin-bottom: 24px; font-size: .95rem; }
.cert-badge { display: flex; justify-content: center; margin-bottom: 20px; }
.cert-badge-inner {
  width: 90px; height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  line-height: 1.3;
}
.cert-badge-inner small { font-size: .7rem; opacity: .85; }
.cert-note { font-size: .9rem; color: rgba(255,255,255,.5); margin-bottom: 28px; }
.cert-back-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--primary);
  transition: background var(--transition);
}
.cert-back-btn:hover { background: var(--primary-lt); }

/* ── LMS 반응형 ── */
@media (max-width: 900px) {
  .player-sidebar {
    position: fixed;
    left: 0; top: 56px; bottom: 0;
    transform: translateX(-100%);
    transition: transform var(--transition);
    z-index: 150;
    box-shadow: 4px 0 20px rgba(0,0,0,.4);
    overflow-y: auto;
  }
  .player-sidebar.open { transform: translateX(0); }
  .sidebar-toggle-btn { display: block; }
  .player-layout { flex-direction: column; }
  .player-info-bar { flex-direction: column; align-items: flex-start; }
  .player-controls { width: 100%; }
  .player-ctrl-btn, .player-complete-btn { flex: 1; text-align: center; }
}
@media (max-width: 640px) {
  .lms-hero { padding: 60px 20px 48px; }
  .lms-course-grid { grid-template-columns: 1fr; }
  .lms-login-box { padding: 32px 24px; }
  .lms-stat { padding: 0 16px; }
  .player-quiz-wrap { padding: 20px 16px 32px; }
  .cert-box { padding: 36px 24px; }
}

/* ══════════════════════════════════════════
   뉴스 팝업
══════════════════════════════════════════ */
.news-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
  animation: npFadeIn .3s ease;
}
@keyframes npFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.news-popup {
  background: #fff;
  border-radius: 20px;
  width: 92%;
  max-width: 520px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  animation: npSlideUp .35s cubic-bezier(.22,.68,0,1.2);
}
@keyframes npSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* 헤더 */
.news-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  border-bottom: 1px solid var(--border);
}
.news-popup-tag {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}
.news-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
  line-height: 1;
}
.news-popup-close:hover { background: var(--bg-light); color: var(--text-1); }

/* 슬라이드 영역 */
.news-popup-slides { position: relative; overflow: hidden; }
.news-popup-slide  { display: none; }
.news-popup-slide.active { display: block; }

.news-popup-img {
  width: 100%; height: 180px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.news-popup-body { padding: 16px 20px 12px; }
.news-popup-body .news-badge { margin-bottom: 10px; }
.news-popup-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-1);
  margin-bottom: 8px;
}
.news-popup-body p {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.7;
}
.news-popup-body time {
  display: block;
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 8px;
}

/* 네비게이션 */
.news-popup-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px 4px;
}
.news-popup-prev,
.news-popup-next {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px; height: 34px;
  cursor: pointer;
  font-size: .95rem;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.news-popup-prev:hover,
.news-popup-next:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

.news-popup-dots {
  display: flex; gap: 6px; align-items: center;
}
.news-popup-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.news-popup-dot.active { background: var(--primary); transform: scale(1.35); }

/* 하단 버튼 */
.news-popup-footer {
  display: flex;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--border);
}
.news-popup-btn-dismiss {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-size: .8rem;
  color: var(--text-3);
  font-family: 'Noto Sans KR', sans-serif;
  transition: background .15s, color .15s;
}
.news-popup-btn-dismiss:hover { background: var(--bg-light); color: var(--text-2); }
.news-popup-btn-close {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .8rem;
  font-weight: 700;
  font-family: 'Noto Sans KR', sans-serif;
  transition: background .15s;
}
.news-popup-btn-close:hover { background: #163f70; }

/* ===== LMS / Sub-page Site Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.site-header .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .logo { color: #fff; }
.site-header .main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.site-header .main-nav a {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.site-header .main-nav a:hover,
.site-header .main-nav a.nav-active { color: #fff; }
.site-header .main-nav a.nav-active { font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }

/* ===== 성찰 일지 (Journal) ===== */
.journal-section {
  margin: 0 0 0 0;
  border-top: 1px solid rgba(0,0,0,.08);
}

/* 토글 버튼 */
.journal-toggle-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5e9 100%);
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: #1b4f8a;
  transition: background .2s;
}
.journal-toggle-btn:hover { background: linear-gradient(135deg, #e3ebff 0%, #ddf0de 100%); }
.journal-toggle-left { display: flex; align-items: center; gap: 10px; }
.journal-toggle-ico { font-size: 1.1rem; }
.journal-entry-count {
  background: #1b4f8a;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}
.journal-toggle-arrow { font-size: .9rem; color: #888; }

/* 패널 */
.journal-panel {
  background: #fafbff;
  border-top: 1px solid #e2e8f7;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 메지로 이론 블록 */
.journal-theory-block {
  background: linear-gradient(135deg, #1b4f8a 0%, #2d6cb5 100%);
  border-radius: 12px;
  padding: 18px 20px;
  color: #fff;
}
.journal-theory-header { margin-bottom: 14px; }
.journal-theory-badge {
  display: inline-block;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.journal-theory-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  margin: 0;
}
.journal-prompts { display: flex; flex-direction: column; gap: 8px; }
.journal-prompt-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 10px 12px;
}
.journal-prompt-num {
  flex-shrink: 0;
  background: rgba(255,255,255,.25);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  margin-top: 1px;
}
.journal-prompt-text {
  font-size: .85rem;
  color: rgba(255,255,255,.92);
  line-height: 1.55;
}

/* 입력 영역 */
.journal-write-area {
  background: #fff;
  border: 1.5px solid #d1daf5;
  border-radius: 12px;
  overflow: hidden;
}
.journal-write-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #eef1fb;
}
.journal-write-label {
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
}
.journal-autosave-badge {
  font-size: .75rem;
  color: #9ca3af;
  transition: color .2s;
}
.journal-autosave-badge.saved { color: #16a34a; }
.journal-autosave-badge.typing { color: #f59e0b; }
.journal-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  border: none;
  outline: none;
  font-size: .9rem;
  line-height: 1.7;
  color: #1f2937;
  font-family: 'Noto Sans KR', sans-serif;
  resize: vertical;
  background: #fff;
  box-sizing: border-box;
}
.journal-textarea::placeholder { color: #b0b8cc; }
.journal-write-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #f8faff;
  border-top: 1px solid #eef1fb;
  gap: 10px;
}
.journal-write-actions { display: flex; gap: 8px; align-items: center; }

/* 버튼 */
.journal-btn-all {
  font-size: .82rem;
  color: #6b7280;
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.journal-btn-all:hover { background: #f3f4f6; color: #374151; }
.journal-btn-new {
  font-size: .82rem;
  color: #1b4f8a;
  background: none;
  border: 1px solid #1b4f8a;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all .15s;
}
.journal-btn-new:hover { background: #e8f0fc; }
.journal-btn-save {
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  background: #1b4f8a;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.journal-btn-save:hover { background: #163f70; }
.journal-btn-save:active { transform: scale(.97); }
.journal-btn-save.saved { background: #16a34a; }

/* 이전 일지 이력 */
.journal-history { display: flex; flex-direction: column; gap: 10px; }
.journal-history-title {
  font-size: .8rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0 4px;
}
.journal-history-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
}
.journal-history-meta {
  font-size: .75rem;
  color: #9ca3af;
  margin-bottom: 6px;
}
.journal-history-text {
  font-size: .85rem;
  line-height: 1.65;
  color: #374151;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 전체 일지 모달 */
.journal-modal-box {
  width: 94%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.journal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
  flex-shrink: 0;
}
.journal-modal-title { font-size: 1.15rem; font-weight: 700; color: #1b4f8a; margin: 0; }
.journal-modal-sub {
  font-size: .82rem;
  color: #6b7280;
  padding: 8px 24px 14px;
  border-bottom: 1px solid #e5e7eb;
  margin: 0;
  flex-shrink: 0;
}
.journal-modal-content {
  padding: 16px 24px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.journal-modal-empty {
  text-align: center;
  color: #9ca3af;
  padding: 32px 0;
  line-height: 1.8;
}
.journal-modal-group { display: flex; flex-direction: column; gap: 10px; }
.journal-modal-group-title {
  font-size: .8rem;
  font-weight: 700;
  color: #1b4f8a;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 0 6px;
  border-bottom: 2px solid #e8f0fc;
}
.journal-modal-entry {
  background: #f8faff;
  border: 1px solid #dde6f8;
  border-radius: 10px;
  padding: 14px 16px;
}
.journal-modal-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 10px;
}
.journal-modal-lesson {
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
}
.journal-modal-ts {
  font-size: .75rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.journal-modal-text {
  font-size: .88rem;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
  white-space: pre-line;
}

/* 반응형 */
@media (max-width: 600px) {
  .journal-panel { padding: 16px; }
  .journal-write-footer { flex-direction: column; align-items: stretch; }
  .journal-btn-all { text-align: center; }
  .journal-write-actions { justify-content: flex-end; }
}

/* ===== 마이크로 티칭 (Micro-Teaching) ===== */
.mt-wrap { }

.mt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background: linear-gradient(135deg, #1a1a2e 0%, #2d1b69 100%);
  border-bottom: 2px solid rgba(255,255,255,.08);
}
.mt-header-icon { font-size: 1.8rem; }
.mt-header-title { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 3px; }
.mt-header-sub   { font-size: .8rem; color: rgba(255,255,255,.65); margin: 0; }

/* 2열 레이아웃 */
.mt-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 560px;
}
.mt-video-col {
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
}
.mt-rubric-col {
  background: #f8faff;
  overflow-y: auto;
  max-height: 820px;
}

/* 영상 제출 */
.mt-video-submit-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: #f8faff;
  border-bottom: 1px solid #e5e7eb;
  text-align: center;
  min-height: 180px;
}
.mt-submit-icon  { font-size: 2.2rem; margin-bottom: 10px; }
.mt-submit-title { font-size: .95rem; font-weight: 700; color: #1b4f8a; margin: 0 0 6px; }
.mt-submit-desc  { font-size: .83rem; color: #6b7280; margin: 0 0 14px; line-height: 1.6; }
.mt-url-row { display: flex; gap: 8px; width: 100%; max-width: 440px; }
.mt-url-input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .85rem;
  color: #374151;
  outline: none;
}
.mt-url-input:focus { border-color: #1b4f8a; }
.mt-url-btn {
  padding: 8px 16px;
  background: #1b4f8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.mt-url-btn:hover { background: #163f70; }

/* 영상 플레이어 */
.mt-player-area { border-bottom: 1px solid #e5e7eb; }
.mt-iframe-wrap { position: relative; padding-top: 56.25%; background: #000; }
.mt-iframe-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}
.mt-video-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: #1a1a2e;
}
.mt-video-label { font-size: .78rem; color: rgba(255,255,255,.65); }
.mt-change-btn {
  font-size: .76rem;
  color: rgba(255,255,255,.6);
  background: none;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 3px 9px;
  cursor: pointer;
  transition: all .15s;
}
.mt-change-btn:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.mt-invalid-url {
  padding: 36px 20px;
  text-align: center;
  color: #ef4444;
  font-size: .88rem;
  background: #fff5f5;
}

/* 타임라인 섹션 */
.mt-timeline-section {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #fafbff;
}
.mt-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.mt-section-label { font-size: .87rem; font-weight: 700; color: #374151; }
.mt-duration-set { display: flex; align-items: center; gap: 5px; font-size: .77rem; color: #9ca3af; }
.mt-dur-input {
  width: 50px;
  padding: 2px 5px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: .78rem;
  text-align: center;
  color: #374151;
  outline: none;
}
.mt-dur-input:focus { border-color: #1b4f8a; }

/* 타임라인 바 */
.mt-timeline-bar-wrap { margin-bottom: 8px; }
.mt-timeline-bar {
  position: relative;
  height: 30px;
  background: #e9ecf5;
  border-radius: 15px;
  cursor: crosshair;
  margin-bottom: 4px;
  transition: background .15s;
}
.mt-timeline-bar:hover { background: #dde3f5; }
.mt-timeline-track {
  position: absolute;
  top: 50%;
  left: 8px; right: 8px;
  height: 4px;
  background: #c7d0ea;
  border-radius: 2px;
  transform: translateY(-50%);
  pointer-events: none;
}
.mt-timeline-markers { position: absolute; top: 0; left: 0; right: 0; height: 100%; }
.mt-timeline-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  cursor: pointer;
  transition: transform .15s;
  z-index: 2;
}
.mt-timeline-marker:hover { transform: translate(-50%, -50%) scale(1.35); }
.mt-timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: .71rem;
  color: #9ca3af;
  padding: 0 4px;
}

/* 코멘트 입력 */
.mt-comment-input-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 6px;
}
.mt-time-input {
  width: 58px;
  padding: 6px 8px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: .84rem;
  text-align: center;
  color: #1b4f8a;
  font-weight: 700;
  outline: none;
  flex-shrink: 0;
}
.mt-time-input:focus { border-color: #1b4f8a; }
.mt-comment-input {
  flex: 1;
  padding: 6px 10px;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  font-size: .84rem;
  color: #374151;
  outline: none;
  font-family: 'Noto Sans KR', sans-serif;
}
.mt-comment-input:focus { border-color: #1b4f8a; }
.mt-add-comment-btn {
  padding: 6px 13px;
  background: #1b4f8a;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.mt-add-comment-btn:hover { background: #163f70; }
.mt-timeline-hint { font-size: .74rem; color: #a0aec0; margin: 5px 0 0; }

/* 코멘트 목록 */
.mt-comments-section { padding: 14px 18px; flex: 1; }
.mt-comment-count { font-weight: 400; color: #9ca3af; }
.mt-comments-list { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.mt-empty-comments {
  font-size: .83rem;
  color: #9ca3af;
  text-align: center;
  padding: 18px;
  line-height: 1.7;
}
.mt-comment-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 9px 11px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9px;
  transition: border-color .15s;
}
.mt-comment-item:hover { border-color: #c7d7f5; }
.mt-comment-time-badge {
  flex-shrink: 0;
  color: #fff;
  font-size: .73rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
  margin-top: 1px;
}
.mt-comment-body { flex: 1; }
.mt-comment-text   { font-size: .86rem; color: #1f2937; line-height: 1.55; }
.mt-comment-author { font-size: .73rem; color: #9ca3af; margin-top: 3px; display: block; }
.mt-comment-del-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #d1d5db;
  font-size: .78rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all .15s;
  align-self: flex-start;
}
.mt-comment-del-btn:hover { color: #ef4444; background: #fee2e2; }

/* ── 루브릭 ── */
.mt-rubric-box { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.mt-rubric-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mt-rubric-title { font-size: .92rem; font-weight: 700; color: #1b4f8a; }
.mt-rubric-total-badge {
  background: #e2e8f0;
  color: #64748b;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  transition: all .3s;
}
.mt-rubric-total-badge.grade-great { background: #d1fae5; color: #065f46; }
.mt-rubric-total-badge.grade-good  { background: #dbeafe; color: #1e40af; }
.mt-rubric-total-badge.grade-mid   { background: #fef3c7; color: #92400e; }
.mt-rubric-total-badge.grade-bad   { background: #fee2e2; color: #991b1b; }
.mt-rubric-guide { font-size: .8rem; color: #6b7280; margin: 0; line-height: 1.6; }

.mt-rubric-criteria { display: flex; flex-direction: column; gap: 10px; }
.mt-rubric-item {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s;
}
.mt-rubric-item:hover { border-color: #c7d7f5; }
.mt-rubric-item-header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.mt-rubric-item-icon  { font-size: 1.05rem; flex-shrink: 0; margin-top: 1px; }
.mt-rubric-item-title { font-size: .86rem; font-weight: 700; color: #1f2937; }
.mt-rubric-item-desc  { font-size: .76rem; color: #6b7280; line-height: 1.5; margin-top: 2px; }
.mt-rubric-scores { display: flex; gap: 5px; margin-bottom: 5px; }
.mt-score-dot {
  flex: 1;
  padding: 5px 0;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  color: #9ca3af;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.mt-score-dot:hover   { background: #e0e7ff; border-color: #818cf8; color: #4338ca; }
.mt-score-dot.active  { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.mt-score-dot.selected { background: #1b4f8a !important; border-color: #1b4f8a !important; color: #fff !important; }
.mt-rubric-level-label {
  font-size: .73rem;
  color: #9ca3af;
  min-height: 15px;
  transition: color .2s;
}
.mt-rubric-level-label.level-bad   { color: #ef4444; }
.mt-rubric-level-label.level-mid   { color: #f59e0b; }
.mt-rubric-level-label.level-good  { color: #3b82f6; }
.mt-rubric-level-label.level-great { color: #10b981; }

/* 총점 */
.mt-rubric-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(135deg, #1b4f8a, #2d6cb5);
  border-radius: 10px;
  color: #fff;
}
.mt-total-label { font-size: .85rem; font-weight: 600; }
.mt-total-score { font-size: .98rem; font-weight: 800; }
.mt-total-grade {
  font-size: .84rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  transition: all .3s;
}
.mt-total-grade.grade-great { background: #d1fae5; color: #065f46; }
.mt-total-grade.grade-good  { background: #dbeafe; color: #1e40af; }
.mt-total-grade.grade-mid   { background: #fef3c7; color: #92400e; }
.mt-total-grade.grade-bad   { background: #fee2e2; color: #991b1b; }

/* 등급 설명 테이블 */
.mt-rubric-desc-table {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  font-size: .76rem;
}
.mt-desc-row {
  display: grid;
  grid-template-columns: 62px 44px 1fr;
  padding: 5px 10px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
}
.mt-desc-row:last-child { border-bottom: none; }
.mt-desc-row.header {
  background: #f8faff;
  font-weight: 700;
  color: #6b7280;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.mt-score-chip {
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .74rem;
  text-align: center;
}
.mt-score-chip.great { background: #d1fae5; color: #065f46; }
.mt-score-chip.good  { background: #dbeafe; color: #1e40af; }
.mt-score-chip.mid   { background: #fef3c7; color: #92400e; }
.mt-score-chip.bad   { background: #fee2e2; color: #991b1b; }

/* 종합 의견 */
.mt-rubric-comment-wrap { display: flex; flex-direction: column; gap: 5px; }
.mt-rubric-comment-label { font-size: .83rem; font-weight: 600; color: #374151; }
.mt-rubric-comment {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: .83rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: #374151;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.65;
}
.mt-rubric-comment:focus { border-color: #1b4f8a; }
.mt-rubric-submit-btn {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #1b4f8a, #2d6cb5);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
}
.mt-rubric-submit-btn:hover { background: linear-gradient(135deg, #163f70, #1b4f8a); }
.mt-rubric-submit-btn.saved { background: linear-gradient(135deg, #16a34a, #15803d); }
.mt-rubric-saved {
  text-align: center;
  font-size: .76rem;
  color: #16a34a;
  padding: 3px 0;
}

/* 반응형 */
@media (max-width: 860px) {
  .mt-layout { grid-template-columns: 1fr; }
  .mt-rubric-col { max-height: none; border-top: 2px solid #e5e7eb; }
  .mt-video-col  { border-right: none; }
}

/* ===== AI 스캐폴딩 봇 ===== */

/* FAB 버튼 */
.ai-bot-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #1b4f8a 0%, #2d6cb5 100%);
  color: #fff;
  border: none;
  border-radius: 28px;
  padding: 11px 18px 11px 13px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(116,114,178,.42);
  z-index: 8000;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all .2s;
  overflow: visible;
}
.ai-bot-fab:hover {
  background: linear-gradient(135deg, #163f70 0%, #1b4f8a 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(116,114,178,.52);
}
.ai-bot-fab-icon  { font-size: 1.25rem; }
.ai-bot-fab-label { font-size: .84rem; font-weight: 600; }
.ai-bot-fab-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* 펄스 링 */
.ai-bot-fab::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 33px;
  background: linear-gradient(135deg, #1b4f8a, #2d6cb5);
  opacity: 0;
  animation: aiFabPulse 3.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes aiFabPulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50%       { opacity: .12; transform: scale(1.1); }
}

/* 채팅 패널 */
.ai-bot-panel {
  position: fixed;
  bottom: 86px;
  right: 28px;
  width: 355px;
  max-height: 510px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 56px rgba(0,0,0,.2), 0 4px 16px rgba(0,0,0,.08);
  z-index: 8001;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(18px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.22,.68,0,1.15), opacity .22s ease;
}
.ai-bot-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

/* 헤더 */
.ai-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  background: linear-gradient(135deg, #1b4f8a 0%, #2d6cb5 100%);
  flex-shrink: 0;
}
.ai-bot-header-left { display: flex; align-items: center; gap: 10px; }
.ai-bot-avatar-lg   { font-size: 1.5rem; }
.ai-bot-name { font-size: .87rem; font-weight: 700; color: #fff; }
.ai-bot-ctx  { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: 1px; max-width: 175px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bot-header-actions { display: flex; gap: 5px; }
.ai-bot-icon-btn {
  background: rgba(255,255,255,.14);
  border: none;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ai-bot-icon-btn:hover { background: rgba(255,255,255,.28); color: #fff; }

/* 메시지 영역 */
.ai-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 13px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
}
.ai-welcome {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f5ec 100%);
  border-radius: 12px;
  padding: 14px 15px;
  font-size: .83rem;
  color: #374151;
  line-height: 1.7;
}
.ai-welcome p { margin: 0 0 5px; }
.ai-welcome-sub {
  font-size: .72rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 7px !important;
}
/* 빠른 제안 */
.ai-suggestions { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.ai-sugg-label {
  font-size: .72rem;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: .03em;
  padding: 2px 2px;
}
.ai-sugg-chip {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 11px;
  background: #f8faff;
  border: 1px solid #dde6f8;
  border-radius: 8px;
  font-size: .81rem;
  color: #1b4f8a;
  cursor: pointer;
  transition: all .15s;
  font-family: 'Noto Sans KR', sans-serif;
}
.ai-sugg-chip:hover { background: #e8f0fc; border-color: #b8cef5; }

/* 말풍선 */
.ai-msg { display: flex; gap: 7px; align-items: flex-end; }
.ai-msg-bot  { justify-content: flex-start; }
.ai-msg-user { justify-content: flex-end; }
.ai-msg-av   { font-size: 1.15rem; flex-shrink: 0; margin-bottom: 1px; }
.ai-msg-bub {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: .84rem;
  line-height: 1.62;
}
.ai-msg-bot .ai-msg-bub {
  background: #f0f4ff;
  color: #1f2937;
  border-bottom-left-radius: 4px;
}
.ai-msg-user .ai-msg-bub {
  background: linear-gradient(135deg, #1b4f8a, #2d6cb5);
  color: #fff;
  border-bottom-right-radius: 4px;
}
/* 타이핑 인디케이터 */
.ai-typing .ai-msg-bub {
  display: flex; gap: 5px; align-items: center;
  padding: 11px 15px;
}
.ai-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #9ca3af;
  animation: aiDotBounce 1.4s ease-in-out infinite;
}
.ai-dot:nth-child(2) { animation-delay: .2s; }
.ai-dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiDotBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30%           { transform: translateY(-6px); opacity: 1; }
}

/* 입력 영역 */
.ai-bot-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid #e5e7eb;
  background: #fafbff;
  flex-shrink: 0;
}
.ai-bot-input {
  flex: 1;
  padding: 7px 11px;
  border: 1.5px solid #d1d5db;
  border-radius: 12px;
  font-size: .84rem;
  font-family: 'Noto Sans KR', sans-serif;
  color: #1f2937;
  outline: none;
  resize: none;
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.55;
  transition: border-color .15s;
}
.ai-bot-input:focus { border-color: #1b4f8a; }
.ai-bot-send-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #1b4f8a;
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.ai-bot-send-btn:hover  { background: #163f70; }
.ai-bot-send-btn:active { transform: scale(.9); }

/* 푸터 노트 */
.ai-bot-footer-note {
  text-align: center;
  font-size: .68rem;
  color: #c4c9d4;
  padding: 4px 0 7px;
  flex-shrink: 0;
}

/* 모바일 */
@media (max-width: 480px) {
  .ai-bot-panel { width: calc(100vw - 24px); right: 12px; bottom: 78px; }
  .ai-bot-fab   { right: 12px; bottom: 12px; }
}


/* ================================================================
   PBL 워크스페이스 (lms-workspace.html)
   ================================================================ */

/* ── Hero ── */
.ws-hero {
  background: linear-gradient(135deg, #0f2848 0%, #1b4f8a 60%, #2d6ec4 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.ws-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.ws-hero-left { flex: 1; min-width: 280px; }
.ws-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.ws-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}
.ws-hero-sub {
  font-size: .95rem;
  opacity: .85;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}
.ws-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5a623;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 32px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(245,166,35,.4);
}
.ws-hero-btn:hover {
  background: #d48c0e;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,.45);
}
.ws-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  padding: 24px 36px;
  flex-shrink: 0;
}
.ws-stat { text-align: center; padding: 0 24px; }
.ws-stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.1;
}
.ws-stat-label {
  display: block;
  font-size: .78rem;
  opacity: .8;
  margin-top: 4px;
  font-weight: 500;
}
.ws-stat-div {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,.25);
}

/* ── Toolbar ── */
.ws-toolbar {
  position: sticky;
  top: 70px;
  z-index: 50;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ws-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.ws-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .9rem;
  pointer-events: none;
}
.ws-search-input {
  width: 100%;
  height: 38px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 12px 0 34px;
  font-size: .88rem;
  background: #f7f9fc;
  transition: border-color .2s, background .2s;
}
.ws-search-input:focus { border-color: #1b4f8a; background: #fff; }
.ws-filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  flex: 1;
}
.ws-chip {
  height: 34px;
  padding: 0 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 100px;
  background: #fff;
  color: #4a5568;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.ws-chip:hover { border-color: #1b4f8a; color: #1b4f8a; }
.ws-chip.active {
  background: #1b4f8a;
  border-color: #1b4f8a;
  color: #fff;
}
.ws-sort-sel {
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #f7f9fc;
  font-size: .85rem;
  color: #4a5568;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Main / Grid ── */
.ws-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 32px 80px;
}
.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── Card ── */
.ws-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.ws-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

/* Card preview zones */
.ws-card-preview {
  height: 180px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}
.ws-card-preview.thumb-preview {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.ws-card-preview.embed-badge-preview {
  flex-direction: column;
  gap: 10px;
  padding: 20px;
}
.ws-card-preview.placeholder-preview {
  flex-direction: column;
  gap: 12px;
}
.ws-embed-type-badge {
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 4px 10px;
  border-radius: 6px;
}
.ws-embed-domain {
  font-size: .8rem;
  color: #6b7280;
  font-weight: 500;
}
.ws-preview-play-btn {
  font-size: .82rem;
  color: #4a5568;
  background: rgba(255,255,255,.75);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}
.ws-placeholder-initial {
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255,255,255,.95);
  line-height: 1;
}
.ws-placeholder-icon {
  font-size: 1.8rem;
  opacity: .8;
}

/* Card body */
.ws-card-body {
  padding: 16px 18px 8px;
  flex: 1;
}
.ws-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.ws-week-chip {
  display: inline-block;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
}
.ws-extra-chip {
  display: inline-block;
  background: #f0f4f8;
  color: #4a5568;
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 100px;
  border: 1px solid #e2e8f0;
}
.ws-card-title {
  font-size: .97rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ws-card-desc {
  font-size: .82rem;
  color: #6b7280;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card foot */
.ws-card-foot {
  padding: 10px 18px 14px;
  border-top: 1px solid #f0f4f8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.ws-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  flex: 1;
}
.ws-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ws-av.sm { width: 24px; height: 24px; font-size: .72rem; }
.ws-author-name {
  font-size: .82rem;
  font-weight: 600;
  color: #2d3748;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ws-time-ago { font-size: .76rem; color: #a0aec0; flex-shrink: 0; }
.ws-card-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ws-like-btn, .ws-cmt-btn, .ws-open-btn, .ws-del-btn {
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #f7f9fc;
  color: #718096;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}
.ws-like-btn:hover { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }
.ws-like-btn.liked { background: #fff0f0; border-color: #e53e3e; color: #e53e3e; }
.ws-cmt-btn:hover  { border-color: #1b4f8a; color: #1b4f8a; background: #f0f5ff; }
.ws-open-btn:hover { border-color: #38a169; color: #38a169; background: #f0fff4; }
.ws-del-btn:hover  { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }

/* ── FAB ── */
.ws-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  background: linear-gradient(135deg, #1b4f8a, #2d6ec4);
  color: #fff;
  border: none;
  border-radius: 50px;
  height: 52px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(116,114,178,.45);
  font-size: .92rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}
.ws-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 30px rgba(116,114,178,.5);
}
.ws-fab-plus { font-size: 1.3rem; font-weight: 400; }
.ws-fab-label { letter-spacing: .03em; }

/* ── Empty state ── */
.ws-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  color: #718096;
}
.ws-empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.ws-empty h3 { font-size: 1.15rem; color: #4a5568; margin-bottom: 8px; }
.ws-empty p  { font-size: .9rem; }

/* ── Submit Modal ── */
.ws-modal-box {
  width: min(680px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 36px 28px;
}
.ws-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.ws-modal-sub {
  font-size: .85rem;
  color: #718096;
  margin-bottom: 24px;
}
.ws-form { display: flex; flex-direction: column; gap: 16px; }
.ws-form-row { display: flex; flex-direction: column; gap: 6px; }
.ws-label {
  font-size: .85rem;
  font-weight: 600;
  color: #2d3748;
}
.ws-opt { font-weight: 400; color: #a0aec0; font-size: .8rem; }
.ws-input, .ws-textarea, .ws-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: .9rem;
  color: #1a1a2e;
  background: #fafbfc;
  transition: border-color .2s;
}
.ws-input:focus, .ws-textarea:focus, .ws-select:focus {
  border-color: #1b4f8a;
  background: #fff;
}
.ws-textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
.ws-form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ws-form-hint {
  font-size: .8rem;
  color: #718096;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 10px 14px;
}
.ws-embed-detect {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.ws-detect-badge {
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.ws-detect-ok {
  font-size: .8rem;
  color: #38a169;
  font-weight: 600;
}
.ws-submit-btn {
  width: 100%;
  margin-top: 4px;
  height: 48px;
  font-size: 1rem;
  font-weight: 700;
}

/* ── Detail Modal ── */
.ws-detail-box {
  width: min(820px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 20px;
}

/* Detail – embed / thumb / placeholder */
.wsd-embed-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f2848;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.wsd-embed-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.wsd-thumb {
  width: 100%;
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: 20px 20px 0 0;
}
.wsd-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.wsd-ph-initial { font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,.95); }
.wsd-ph-icon    { font-size: 2.5rem; }

/* Detail – info section */
.wsd-info { padding: 24px 28px 16px; }
.wsd-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.wsd-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1.4;
  margin-bottom: 10px;
}
.wsd-desc {
  font-size: .9rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 14px;
}
.wsd-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  color: #718096;
  margin-bottom: 14px;
}
.wsd-open-link {
  margin-left: auto;
  font-size: .82rem;
  color: #1b4f8a;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid #1b4f8a;
  border-radius: 8px;
  transition: background .15s;
}
.wsd-open-link:hover { background: #f0f5ff; }
.wsd-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.wsd-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  background: #f7f9fc;
  color: #718096;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.wsd-like-btn:hover { border-color: #e53e3e; color: #e53e3e; background: #fff5f5; }
.wsd-like-btn.liked { background: #fff0f0; border-color: #e53e3e; color: #e53e3e; }
.wsd-embed-info {
  font-size: .8rem;
  color: #718096;
  background: #f7f9fc;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* Detail – comments section */
.wsd-comments {
  padding: 20px 28px 28px;
  border-top: 1px solid #f0f4f8;
}
.wsd-cmt-title {
  font-size: .95rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 14px;
}
.wsd-cmt-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.wsd-cmt-item { display: flex; gap: 10px; align-items: flex-start; }
.wsd-cmt-body { flex: 1; background: #f7f9fc; border-radius: 10px; padding: 10px 14px; }
.wsd-cmt-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.wsd-cmt-meta strong { font-size: .85rem; color: #2d3748; }
.wsd-cmt-meta span   { font-size: .76rem; color: #a0aec0; }
.wsd-cmt-body p { font-size: .87rem; color: #4a5568; line-height: 1.6; }
.wsd-no-cmt { font-size: .87rem; color: #a0aec0; text-align: center; padding: 16px 0; }
.wsd-cmt-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f7f9fc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 12px;
  transition: border-color .2s;
}
.wsd-cmt-input-row:focus-within { border-color: #1b4f8a; background: #fff; }
.wsd-cmt-input {
  flex: 1;
  border: none;
  background: none;
  font-size: .88rem;
  color: #1a1a2e;
  outline: none;
}
.wsd-cmt-send {
  background: #1b4f8a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 5px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.wsd-cmt-send:hover { background: #163f70; }
.wsd-login-note {
  font-size: .85rem;
  color: #718096;
  background: #f7f9fc;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
}
.wsd-login-note a { color: #1b4f8a; font-weight: 600; }

/* ── Workspace Responsive ── */
@media (max-width: 768px) {
  .ws-hero-inner   { gap: 32px; }
  .ws-hero-stats   { padding: 18px 20px; }
  .ws-stat         { padding: 0 14px; }
  .ws-stat-num     { font-size: 1.7rem; }
  .ws-toolbar      { padding: 10px 16px; top: 70px; }
  .ws-main         { padding: 24px 16px 80px; }
  .ws-grid         { grid-template-columns: 1fr; gap: 16px; }
  .ws-form-two-col { grid-template-columns: 1fr; }
  .ws-modal-box    { padding: 24px 20px 20px; }
  .ws-fab          { right: 16px; bottom: 20px; }
  .wsd-info        { padding: 18px 20px 12px; }
  .wsd-comments    { padding: 16px 20px 20px; }
}
@media (max-width: 480px) {
  .ws-hero         { padding: 60px 0 40px; }
  .ws-hero-title   { font-size: 1.5rem; }
  .ws-hero-stats   { flex-direction: column; gap: 0; padding: 16px; width: 100%; }
  .ws-stat-div     { width: 80%; height: 1px; }
  .ws-stat         { padding: 12px 0; width: 100%; }
  .ws-filter-chips { gap: 4px; }
  .ws-chip         { padding: 0 10px; font-size: .78rem; }
  .ws-fab-label    { display: none; }
  .ws-fab          { border-radius: 50%; width: 52px; padding: 0; justify-content: center; }
}


/* ================================================================
   쌍핵각성 캠프 모달
   ================================================================ */

.camp-modal-box {
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 20px;
}

/* Hero 헤더 */
.camp-modal-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 200px;
}
.camp-modal-hero-left {
  background: #1a1f3c;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px 0 0 0;
}
.camp-modal-cn {
  font-size: 2.6rem;
  font-weight: 900;
  color: #f5a623;
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Noto Sans KR', sans-serif;
}
.camp-modal-title-ko {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}
.camp-modal-en {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
  margin-bottom: 12px;
}
.camp-modal-sub {
  font-size: 1rem;
  color: #fff;
  font-weight: 600;
  border-top: 2px solid #f5a623;
  padding-top: 10px;
  margin-top: 4px;
}
.camp-modal-hero-right {
  background: #c0392b;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border-radius: 0 20px 0 0;
}
.camp-info-row {
  font-size: .88rem;
  color: #fff;
  line-height: 1.55;
  font-weight: 500;
}

/* 본문 */
.camp-modal-body { padding: 28px 32px 36px; }

.camp-section { margin-bottom: 32px; }
.camp-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f4f8;
}

/* 문제 인식 */
.camp-problem-box {
  background: #fdf6ec;
  border-left: 4px solid #f5a623;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 14px;
}
.camp-quote {
  font-size: .95rem;
  font-weight: 700;
  color: #c05621;
  font-style: italic;
  margin-bottom: 4px;
}
.camp-quote-sub {
  font-size: .88rem;
  color: #6b7280;
  font-style: italic;
}
.camp-body-text {
  font-size: .92rem;
  color: #4a5568;
  line-height: 1.75;
}

/* 6 연결 그리드 */
.camp-connections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.camp-conn-card {
  border: 2px solid var(--cc);
  border-radius: 12px;
  padding: 14px 14px 12px;
  position: relative;
}
.camp-conn-card strong {
  display: block;
  font-size: .9rem;
  color: var(--cc);
  margin-bottom: 4px;
}
.camp-conn-card p {
  font-size: .78rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}
.camp-conn-num {
  display: inline-block;
  background: var(--cc);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  margin-bottom: 6px;
}

/* 4일 일정 */
.camp-days-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.camp-day { border-radius: 10px; overflow: hidden; border: 1px solid #e2e8f0; }
.camp-day-header {
  color: #fff;
  text-align: center;
  padding: 10px 6px;
  font-size: .8rem;
  font-weight: 800;
  line-height: 1.4;
}
.camp-day-header span { font-size: .95rem; font-weight: 900; }
.camp-day-body {
  padding: 10px 12px;
  background: #fafbfc;
  font-size: .78rem;
  color: #4a5568;
  line-height: 1.6;
}
.camp-day-body p { margin-bottom: 4px; }
.camp-day-body strong { color: #2d3748; }

/* 투트랙 */
.camp-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.camp-track { border-radius: 12px; overflow: hidden; border: 1px solid #e2e8f0; }
.camp-track-head {
  color: #fff;
  font-size: .88rem;
  font-weight: 700;
  padding: 10px 16px;
}
.camp-track-body {
  padding: 14px 16px;
  font-size: .82rem;
  color: #4a5568;
  line-height: 1.65;
}
.camp-track-body p { margin-bottom: 6px; color: #6b7280; font-style: italic; }
.camp-track-body ul { padding-left: 16px; }
.camp-track-body li { margin-bottom: 4px; }
.camp-tools-note {
  font-size: .78rem;
  color: #718096;
  background: #f7f9fc;
  border-radius: 8px;
  padding: 8px 14px;
  text-align: center;
}

/* 결과물 */
.camp-outputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.camp-output {
  background: #f7f9fc;
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  border: 1px solid #e2e8f0;
}
.camp-output-num {
  font-size: 2rem;
  font-weight: 900;
  color: #1b4f8a;
  line-height: 1;
  margin-bottom: 8px;
}
.camp-output strong {
  display: block;
  font-size: .88rem;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.camp-output p { font-size: .78rem; color: #718096; line-height: 1.55; margin: 0; }

/* CTA */
.camp-cta {
  background: linear-gradient(135deg, #1a1f3c, #c0392b);
  border-radius: 14px;
  padding: 24px 28px;
  text-align: center;
  color: #fff;
}
.camp-cta p { font-size: .95rem; font-weight: 700; margin: 0; }
.camp-cta .btn-primary {
  background: #f5a623;
  border-color: #f5a623;
  color: #fff;
  margin-top: 14px;
}
.camp-cta .btn-primary:hover { background: #d48c0e; border-color: #d48c0e; }

/* 반응형 */
@media (max-width: 680px) {
  .camp-modal-hero        { grid-template-columns: 1fr; }
  .camp-modal-hero-left   { border-radius: 20px 20px 0 0; padding: 28px 22px; }
  .camp-modal-hero-right  { border-radius: 0; padding: 22px; }
  .camp-modal-cn          { font-size: 2rem; }
  .camp-connections-grid  { grid-template-columns: repeat(2, 1fr); }
  .camp-days-grid         { grid-template-columns: repeat(2, 1fr); }
  .camp-outputs           { grid-template-columns: 1fr; }
  .camp-tracks            { grid-template-columns: 1fr; }
  .camp-modal-body        { padding: 20px 18px 28px; }
}

/* ══════════════════════════════════════════════
   TFM Academy 프로그램 카드 (.tfm-*)
══════════════════════════════════════════════ */
.tfm-card { padding-top: 0; overflow: hidden; }

.tfm-photo-wrap {
  margin: 0 -28px 20px;      /* 카드 좌우 패딩 상쇄 */
  height: 200px;
  overflow: hidden;
  position: relative;
}
.tfm-photo-badge {
  position: absolute;
  top: 14px;
  left: 18px;
  background: linear-gradient(135deg, #1b4f8a, #2563c0);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: .04em;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.tfm-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform .4s ease;
}
.tfm-card:hover .tfm-photo { transform: scale(1.04); }

.tfm-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.tfm-meta-item {
  background: #eef3fb;
  color: #1b4f8a;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .tfm-photo-wrap { margin: 0 -20px 18px; height: 170px; }
}

/* ══════════════════════════════════════════════
   미래아카데미 소셜 링크 (.fa-social-*)
══════════════════════════════════════════════ */
.fa-social-links {
  display: flex;
  gap: 10px;
  margin: 8px 0 14px;
}
.fa-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #fff;
  flex-shrink: 0;
  transition: transform .2s ease, opacity .2s ease;
  text-decoration: none;
}
.fa-social-btn:hover { transform: scale(1.12); opacity: .88; }
.fa-yt  { background: #ff0000; }
.fa-ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }

/* ══════════════════════════════════════════════
   뉴스레터 — newsletter.html  (.nl-*)
══════════════════════════════════════════════ */

/* badge */
.badge-newsletter {
  background: rgba(116,114,178, .1);
  color: #1b4f8a;
}

/* news-section teaser card on index.html */
.news-newsletter-card {
  border-left: 4px solid #1b4f8a;
  position: relative;
  overflow: hidden;
}
.news-newsletter-accent {
  position: absolute;
  top: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle at top right, rgba(116,114,178,.08), transparent 70%);
  pointer-events: none;
}

/* ── Hero ── */
.nl-hero {
  background: linear-gradient(135deg, #0f2044 0%, #1b4f8a 60%, #2563c0 100%);
  padding: 100px 24px 60px;
  text-align: center;
  color: #fff;
}
.nl-hero-inner { max-width: 680px; margin: 0 auto; }
.nl-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: .82rem;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.nl-hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 16px;
}
.nl-hero-sub {
  font-size: .97rem;
  line-height: 1.75;
  opacity: .88;
  margin: 0 0 36px;
}
.nl-hero-stats { display: flex; justify-content: center; gap: 40px; }
.nl-stat { text-align: center; }
.nl-stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: #f5c842;
}
.nl-stat-label {
  font-size: .8rem;
  opacity: .8;
  margin-top: 4px;
  display: block;
}

/* ── Card Grid ── */
.nl-main { padding: 56px 24px 80px; background: #f7f9fc; min-height: 40vh; }
.nl-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.nl-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: #718096;
  font-size: 1rem;
}

/* ── Card ── */
.nl-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.nl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
}
.nl-card-accent {
  padding: 28px 24px 20px;
  color: #fff;
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.nl-issue-badge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 12px;
  padding: 3px 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.nl-card-date {
  font-size: .82rem;
  opacity: .85;
  margin-top: 28px;
}
.nl-card-body {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nl-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.45;
}
.nl-card-summary {
  font-size: .875rem;
  color: #4a5568;
  line-height: 1.65;
  margin: 0 0 16px;
  flex: 1;
}
.nl-card-foot {
  border-top: 1px solid #edf2f7;
  padding-top: 12px;
  text-align: right;
}
.nl-read-link {
  font-size: .83rem;
  font-weight: 600;
  color: #1b4f8a;
  letter-spacing: .02em;
}
.nl-card:hover .nl-read-link { text-decoration: underline; }

/* ── Modal ── */
.nl-modal-box {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0;
  border-radius: 20px;
  position: relative; /* ensure .modal-close is positioned relative to the box */
}
.nl-modal-box .modal-close {
  z-index: 20; /* above the colored header */
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  top: 20px; right: 20px;
}
.nl-modal-box .modal-close:hover {
  background: rgba(255,255,255,.9);
  color: #1a1a2e;
}
.nl-modal-header {
  padding: 28px 36px 28px;
  color: #fff;
  border-radius: 20px 20px 0 0;
}
/* badge + date on the same row, badge no longer absolute */
.nl-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.nl-modal-meta-row .nl-issue-badge {
  position: static; /* override the absolute from card context */
  font-size: .8rem;
  padding: 4px 14px;
  border-radius: 50px;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.4);
  font-weight: 700;
  letter-spacing: .04em;
  flex-shrink: 0;
}
.nl-modal-date {
  font-size: .85rem;
  opacity: .85;
  margin: 0;
  font-weight: 500;
}
.nl-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.3;
}
.nl-modal-body {
  padding: 30px 36px 40px;
  color: #2d3748;
  font-size: .96rem;
  line-height: 1.8;
}
.nl-modal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1b4f8a;
  margin: 28px 0 12px;
}
.nl-modal-body p { margin: 0 0 14px; }
.nl-modal-body ul { padding-left: 20px; margin: 0 0 14px; }
.nl-modal-body li { margin-bottom: 8px; }
.nl-modal-body strong { color: #1a1a2e; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .nl-hero        { padding: 80px 20px 48px; }
  .nl-hero-title  { font-size: 1.8rem; }
  .nl-hero-sub    { font-size: .88rem; }
  .nl-main        { padding: 36px 16px 60px; }
  .nl-grid        { grid-template-columns: 1fr; gap: 20px; }
  .nl-modal-header { padding: 28px 22px 20px; }
  .nl-modal-title  { font-size: 1.2rem; }
  .nl-modal-body   { padding: 22px 22px 32px; }
  .nl-issue-badge  { top: 14px; left: 14px; }
}

/* ====================================================
   멤버십 모달
   ==================================================== */
.membership-modal-box {
  width: min(480px, 94vw);
  padding: 36px 36px 40px;
}
.membership-desc {
  font-size: .93rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--bg-light);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.membership-privacy {
  font-size: .8rem;
  color: var(--text-3);
  margin: 12px 0 16px;
  line-height: 1.6;
}
.membership-privacy a {
  color: var(--primary);
  text-decoration: underline;
}
.membership-thank {
  text-align: center;
  padding: 20px 0 8px;
}
.membership-thank h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin: 12px 0 10px;
}
.membership-thank p {
  font-size: .95rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}
#msThankName {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

/* 러닝센터 바로가기 버튼 (research.html 헤더) */
.btn-lms-shortcut {
  background: var(--primary);
  color: white;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .85rem;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.btn-lms-shortcut:hover {
  background: var(--primary-dk);
  transform: translateY(-1px);
}
#header.scrolled .btn-lms-shortcut {
  background: var(--primary);
  color: white;
}

/* LMS 페이지 푸터 */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 32px 0;
}
.site-footer .footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
}
.site-footer .logo-t    { color: var(--accent); }
.site-footer .logo-rest { color: white; }
.site-footer .logo-kr   { color: rgba(255,255,255,.5); font-size: .75rem; margin-left: 4px; }
.site-footer .footer-copy {
  font-size: .8rem;
  line-height: 1.8;
  text-align: right;
}
@media (max-width: 640px) {
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .site-footer .footer-copy  { text-align: left; }
}

/* ====================================================
   이메일무단수집거부 모달
   ==================================================== */
.email-refusal-box {
  width: min(560px, 94vw);
  padding: 36px 36px 32px;
}
.email-refusal-body { padding: 0; }
.er-intro {
  font-size: .9rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
  padding: 14px 16px;
  background: #fff8e1;
  border-left: 3px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.er-law-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}
.er-law-sub {
  font-size: .82rem;
  color: var(--text-3);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.er-article {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.er-article:last-of-type { border-bottom: none; }
.er-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  margin-top: 2px;
}
.er-text {
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.75;
}
.er-footer-btn {
  margin-top: 24px;
  text-align: center;
}

/* ── English mode: prevent unwanted wrapping on specific section-desc ── */
html[lang="en"] #outreach .section-desc {
  white-space: nowrap;
  max-width: none;
}

/* ===================================================
   말씀교회 — 교회 전용 컴포넌트
   =================================================== */

/* ── 로고 ── */
.church-logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-text-block { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  transition: color var(--transition);
}
.logo-denom {
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .02em;
}
#header.scrolled .logo-name { color: var(--primary); }
#header.scrolled .logo-denom { color: var(--text-3); }

/* ── 예배 시간 배너 (홈 히어로 아래) ── */
.worship-band {
  background: white;
  box-shadow: 0 4px 24px rgba(0,0,0,.10);
  position: relative;
  z-index: 5;
}
.worship-times {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.worship-time-item {
  padding: 22px 16px;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}
.worship-time-item:last-child { border-right: none; }
.worship-time-item:hover { background: var(--bg-light); }
.wt-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(116,114,178,.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.wt-icon svg { width: 18px; height: 18px; }
.wt-label { font-size: .75rem; color: var(--text-3); font-weight: 500; margin-bottom: 2px; }
.wt-name  { font-size: .88rem; font-weight: 700; color: var(--text); }
.wt-time  { font-size: .82rem; color: var(--primary); font-weight: 600; }

/* ── 최신 설교 (홈) ── */
.sermon-feature {
  background: var(--bg-dark);
  color: white;
}
.sermon-feature-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.sermon-video-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  aspect-ratio: 16/9;
}
.sermon-video-wrap iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.sermon-meta-badge {
  display: inline-block;
  background: rgba(37,135,204,.3);
  border: 1px solid rgba(37,135,204,.5);
  color: #7dd3fc;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: .05em;
}
.sermon-info h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
}
.sermon-info .sermon-date { font-size: .88rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.sermon-info .sermon-verse {
  background: rgba(255,255,255,.07);
  border-left: 3px solid var(--primary-lt);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: rgba(255,255,255,.75);
  font-size: .95rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.sermon-info .sermon-verse cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 700;
  color: var(--accent);
  font-size: .85rem;
}

/* ── 설교 카드 목록 ── */
.sermon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sermon-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.sermon-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sermon-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
}
.sermon-thumb iframe {
  width: 100%; height: 100%;
  border: none;
  pointer-events: none;
}
.sermon-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.2);
  transition: background var(--transition);
}
.sermon-thumb:hover .sermon-thumb-overlay { background: rgba(0,0,0,.05); }
.play-btn {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform var(--transition);
}
.play-btn svg { width: 22px; height: 22px; color: var(--primary); margin-left: 3px; }
.sermon-thumb:hover .play-btn { transform: scale(1.1); }
.sermon-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.sermon-series-badge {
  display: inline-block;
  background: rgba(37,135,204,.1);
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.sermon-card-body h3 { font-size: .98rem; font-weight: 700; line-height: 1.45; margin-bottom: 8px; flex: 1; }
.sermon-card-body .sermon-card-meta { font-size: .8rem; color: var(--text-3); margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }

/* ── 주보 카드 ── */
.bulletin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bulletin-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.bulletin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bulletin-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37,135,204,.1);
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  width: fit-content;
}
.bulletin-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.bulletin-card p  { font-size: .88rem; color: var(--text-3); flex: 1; }
.bulletin-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-3); }

/* ── 홈 공지 섹션 ── */
.notice-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.notice-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: white;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: var(--bg-light); }
.notice-cat-badge {
  flex-shrink: 0;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  white-space: nowrap;
}
.badge-worship  { background: rgba(37,135,204,.12); color: var(--primary); }
.badge-event    { background: rgba(245,166,35,.12); color: #b7690e; }
.badge-ministry { background: rgba(72,187,120,.12); color: #276749; }
.badge-general  { background: var(--bg-light); color: var(--text-3); border: 1px solid var(--border); }
.notice-title { font-size: .95rem; font-weight: 500; color: var(--text); flex: 1; }
.notice-date  { font-size: .8rem; color: var(--text-3); flex-shrink: 0; }

/* ── 교회 소개 카드 ── */
.church-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.church-intro-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.church-intro-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.church-intro-icon { width: 52px; height: 52px; margin-bottom: 16px; color: var(--primary); }
.church-intro-icon svg { width: 100%; height: 100%; }
.church-intro-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.church-intro-card p  { font-size: .9rem; color: var(--text-2); line-height: 1.75; }

/* ── 말씀 / 성경구절 배너 ── */
.verse-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: white;
  padding: 70px 0;
  text-align: center;
}
.verse-banner blockquote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto 16px;
  font-style: italic;
  opacity: .92;
}
.verse-banner cite {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: .05em;
}

/* ── 페이지 히어로 (서브 페이지) ── */
.page-hero {
  background:
    linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 100%);
  padding: 140px 0 64px;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── 헌금 안내 ── */
.offering-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.offering-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: background var(--transition);
}
.offering-card:hover { background: rgba(255,255,255,.10); }
.offering-card h3 { font-size: 1.1rem; font-weight: 700; color: white; margin-bottom: 12px; }
.offering-bank { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.offering-bank-row { display: flex; gap: 10px; align-items: center; font-size: .9rem; color: rgba(255,255,255,.75); }
.offering-bank-row strong { color: white; min-width: 60px; font-size: .85rem; }

/* ── 반응형 ── */
@media (max-width: 1100px) {
  .worship-times { grid-template-columns: repeat(3, 1fr); }
  .worship-time-item:nth-child(3) { border-right: none; }
}
@media (max-width: 900px) {
  .sermon-feature-grid { grid-template-columns: 1fr; }
  .worship-times { grid-template-columns: repeat(3, 1fr); }
  .sermon-grid { grid-template-columns: 1fr 1fr; }
  .bulletin-grid { grid-template-columns: 1fr 1fr; }
  .church-intro-grid { grid-template-columns: 1fr; }
  .offering-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .worship-times { grid-template-columns: 1fr 1fr; }
  .worship-time-item:nth-child(3) { border-right: 1px solid var(--border); }
  .worship-time-item:nth-child(2n) { border-right: none; }
  .sermon-grid { grid-template-columns: 1fr; }
  .bulletin-grid { grid-template-columns: 1fr; }
  .worship-time-item { padding: 18px 14px; gap: 10px; }
}
