/* ==========================================================================
   샘과나무 선교회 (Springs & Trees Mission Society)
   Deep Royal Blue & Clean Minimalist Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nanum+Myeongjo:wght@400;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Pretendard:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Deep Royal Blue & Sapphire Palette (첨부 이미지 #172552 / #1c3374 기반) */
  --bg-dark: #0a1124;
  --bg-dark-soft: #0f1a36;
  --bg-surface: #172552;
  --bg-card: rgba(23, 37, 82, 0.65);
  --bg-card-hover: rgba(28, 51, 116, 0.85);
  
  --royal-950: #060b18;
  --royal-900: #0b132b;
  --royal-800: #111d42;
  --royal-700: #172552; /* 대표 첨부 색상 */
  --royal-600: #1c3374; /* 대표 평균 색상 */
  --royal-500: #1d367d;
  --royal-400: #2563eb;
  --royal-300: #3b82f6;
  --royal-200: #60a5fa;
  --royal-100: #93c5fd;
  --royal-50:  #eff6ff;

  /* Accent Glows & Cyan Highlights */
  --accent-cyan: #38bdf8;
  --accent-sky: #0284c7;
  --accent-glow: rgba(59, 130, 246, 0.35);
  --accent-gold: #fbbf24;
  
  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Borders & Glass */
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glass-blue: rgba(96, 165, 250, 0.3);
  --border-glass-hover: rgba(147, 197, 253, 0.5);
  
  --glass-bg: rgba(15, 26, 54, 0.75);
  --glass-blur: blur(16px);
  
  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.65);
  --shadow-blue: 0 0 30px rgba(37, 99, 235, 0.25);
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* CSS Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: 'Pretendard', 'Outfit', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(28, 51, 116, 0.5) 0px, transparent 55%),
    radial-gradient(at 100% 40%, rgba(23, 37, 82, 0.6) 0px, transparent 60%),
    radial-gradient(at 50% 100%, rgba(17, 29, 66, 0.7) 0px, transparent 65%);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Background Atmosphere Glows */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
  animation: floatAmbient 22s infinite alternate ease-in-out;
}

.ambient-1 {
  top: -10%;
  left: 10%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #1c3374, transparent 70%);
}

.ambient-2 {
  top: 45%;
  right: -5%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #172552, transparent 70%);
  animation-duration: 28s;
}

.ambient-3 {
  bottom: 5%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1d367d, transparent 75%);
  opacity: 0.25;
  animation-duration: 20s;
}

@keyframes floatAmbient {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 20px) scale(1.05); }
  100% { transform: translate(-20px, -15px) scale(0.95); }
}

/* Typography Helpers */
h1, h2, h3, h4, .font-serif {
  font-family: 'Nanum Myeongjo', 'Pretendard', serif;
  letter-spacing: -0.02em;
}

.font-sans {
  font-family: 'Pretendard', 'Outfit', sans-serif;
}

.gradient-text-gold, .gradient-text-blue {
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-emerald, .gradient-text-cyan {
  background: linear-gradient(135deg, #e0f2fe 0%, #38bdf8 50%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.section-padding {
  padding: 5.5rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-100);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.section-tag i {
  color: var(--royal-200);
}

.section-title {
  font-size: 2.3rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.65;
}

.bookshelf-desc {
  max-width: 1100px;
  white-space: nowrap;
}

.bookshelf-desc .desc-line {
  display: inline;
  white-space: nowrap;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: all var(--transition-normal);
}

.header-nav.scrolled {
  padding: 0.7rem 0;
  background: rgba(11, 19, 43, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-symbol {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(28, 51, 116, 0.95), rgba(17, 29, 66, 0.98));
  border: 1px solid var(--border-glass-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
  flex-shrink: 0;
  padding: 5px;
  overflow: hidden;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.logo-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--royal-100);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--royal-200), var(--accent-cyan));
  transition: width var(--transition-fast);
  border-radius: 2px;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--royal-400) 0%, var(--royal-600) 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-emerald, .btn-royal {
  background: linear-gradient(135deg, var(--royal-700) 0%, var(--royal-800) 100%);
  color: #fff;
  border: 1px solid var(--border-glass-blue);
  box-shadow: 0 4px 15px rgba(23, 37, 82, 0.4);
}

.btn-emerald:hover, .btn-royal:hover {
  background: linear-gradient(135deg, var(--royal-600) 0%, var(--royal-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.4);
}

.btn-outline-gold, .btn-outline-blue {
  background: rgba(37, 99, 235, 0.12);
  color: var(--royal-100);
  border: 1px solid var(--border-glass-blue);
}

.btn-outline-gold:hover, .btn-outline-blue:hover {
  background: rgba(37, 99, 235, 0.25);
  border-color: var(--royal-200);
  color: #fff;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(28, 51, 116, 0.5) 0%, rgba(10, 17, 36, 0.95) 80%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: left;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--royal-100);
  margin-bottom: 1.25rem;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--royal-200);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--royal-200);
  animation: pulseBlue 2s infinite;
}

@keyframes pulseBlue {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(96, 165, 250, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 1.25rem;
  color: #fff;
}

.hero-title span.highlight {
  display: block;
}

.hero-verse {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.1rem;
  color: var(--royal-50);
  line-height: 1.65;
  padding: 1rem 1.4rem;
  background: rgba(23, 37, 82, 0.6);
  border-left: 3px solid var(--royal-300);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 1.5rem;
}

.hero-verse cite {
  display: block;
  font-size: 0.85rem;
  color: var(--royal-200);
  margin-top: 0.35rem;
  font-style: normal;
  font-family: 'Pretendard', sans-serif;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--royal-100);
  margin-bottom: 0.15rem;
  font-family: 'Outfit', sans-serif;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Hero Showcase Card */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.showcase-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, rgba(23, 37, 82, 0.85), rgba(11, 19, 43, 0.95));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
  backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

.showcase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-glass);
}

.showcase-title-tag {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--royal-100);
}

.flipbook-mini-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.2rem;
  aspect-ratio: 16/10;
  background: #080d1a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.flipbook-mini-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.flipbook-mini-preview:hover img {
  transform: scale(1.06);
}

.mini-overlay-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.showcase-info h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.showcase-info p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.floating-pill {
  position: absolute;
  bottom: -10px;
  right: -10px;
  background: rgba(17, 29, 66, 0.95);
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 0.8rem;
  animation: floatMini 4s ease-in-out infinite alternate;
}

@keyframes floatMini {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* ==========================================================================
   Vision & Story Section
   ========================================================================== */
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.vision-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: var(--glass-blur);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--royal-400), var(--accent-cyan));
}

.vision-card h3 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #fff;
}

.vision-text {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: auto;
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.pillar-item:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: var(--border-glass-hover);
  transform: translateX(4px);
}

.pillar-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.2);
  color: var(--royal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.pillar-content h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.pillar-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Founder Story Box */
.story-box {
  background: linear-gradient(145deg, rgba(23, 37, 82, 0.7), rgba(11, 19, 43, 0.9));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--royal-300);
  opacity: 0.5;
  margin-bottom: 0.8rem;
}

.story-lead {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.story-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.founder-signature {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-glass);
}

.founder-verse {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 0.95rem;
  color: var(--royal-100);
  line-height: 1.7;
  word-break: keep-all;
}

.founder-verse cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--royal-200);
  white-space: nowrap;
}

.founder-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.founder-info h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}

.founder-info .divider {
  color: var(--border-glass-blue);
  font-size: 0.85rem;
}

.founder-info span {
  font-size: 0.85rem;
  color: var(--royal-200);
  white-space: nowrap;
}

/* ==========================================================================
   4 Major Ministries Section
   ========================================================================== */
.ministries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.ministry-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  backdrop-filter: var(--glass-blur);
}

.ministry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: background var(--transition-normal);
}

.ministry-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-md), var(--shadow-blue);
}

.ministry-card:hover::before {
  background: linear-gradient(90deg, var(--royal-400), var(--accent-cyan));
}

.ministry-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid var(--border-glass-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-100);
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: all var(--transition-fast);
}

.ministry-card:hover .ministry-icon {
  background: linear-gradient(135deg, var(--royal-400), var(--royal-600));
  color: #fff;
  transform: scale(1.06);
}

.ministry-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.ministry-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  flex-grow: 1;
}

.ministry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
}

.ministry-tag-item {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  color: var(--royal-100);
}

/* ==========================================================================
   Digital Bookshelf (플립북 라이브러리)
   ========================================================================== */
.bookshelf-section {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d1730 50%, var(--bg-dark) 100%);
}

/* Live Iframe Bookshelf Container */
.bookshelf-iframe-wrapper {
  position: relative;
  width: 100%;
  background: #080e1e;
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
  backdrop-filter: var(--glass-blur);
  margin-bottom: 2rem;
  transition: all var(--transition-normal);
}

.iframe-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.3rem;
  background: linear-gradient(135deg, rgba(23, 37, 82, 0.95), rgba(11, 19, 43, 0.98));
  border-bottom: 1px solid var(--border-glass);
}

.iframe-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.iframe-status-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.iframe-status-sub {
  font-size: 0.75rem;
  color: var(--royal-100);
  background: rgba(37, 99, 235, 0.2);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  margin-left: 0.3rem;
}

.iframe-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.iframe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.iframe-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.iframe-btn-gold, .iframe-btn-blue {
  background: linear-gradient(135deg, var(--royal-400), var(--royal-600));
  color: #ffffff;
  border: none;
}

.iframe-btn-gold:hover, .iframe-btn-blue:hover {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning {
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

.bookshelf-iframe {
  width: 100%;
  height: 720px;
  border: none;
  display: block;
  background: #0b132b;
}

/* Catalog Accordion Toggle Button & Panel */
.catalog-accordion-toggle {
  width: 100%;
  background: linear-gradient(135deg, rgba(23, 37, 82, 0.85), rgba(15, 26, 54, 0.95));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: #fff;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
  user-select: none;
}

.catalog-accordion-toggle:hover {
  background: linear-gradient(135deg, rgba(28, 51, 116, 0.95), rgba(23, 37, 82, 0.98));
  border-color: var(--royal-300);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.catalog-accordion-toggle.active {
  border-color: var(--royal-300);
  background: linear-gradient(135deg, rgba(28, 51, 116, 0.95), rgba(23, 37, 82, 0.98));
  box-shadow: var(--shadow-md), var(--shadow-blue);
}

.toggle-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.toggle-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid var(--border-glass-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-100);
  font-size: 1rem;
}

.toggle-title-group h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.1rem;
  letter-spacing: -0.01em;
}

.toggle-title-group p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.toggle-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.toggle-badge {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--royal-100);
  background: rgba(37, 99, 235, 0.18);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass-blue);
}

.toggle-chevron {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-100);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.catalog-accordion-toggle.active .toggle-chevron {
  transform: rotate(180deg);
  background: var(--royal-400);
  color: #ffffff;
}

/* Accordion Collapsible Content */
.catalog-collapsible-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.45s ease, margin-bottom 0.4s ease;
  margin-bottom: 0;
}

.catalog-collapsible-content.open {
  max-height: 4000px;
  opacity: 1;
  margin-bottom: 3rem;
}

.bookshelf-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  background: var(--royal-600);
  border-color: var(--royal-300);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.search-box {
  position: relative;
  min-width: 220px;
}

.search-box input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.1rem 0.5rem 2.2rem;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--royal-300);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

.search-box i {
  position: absolute;
  left: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* 3D Shelf Grid */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem 1.5rem;
}

/* Book Card & 3D Simulation */
.book-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  perspective: 1000px;
}

.book-card-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1.42;
  border-radius: 4px 10px 10px 4px;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(3deg);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  box-shadow: 5px 8px 20px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.85rem;
}

.book-card:hover .book-card-3d {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px) scale(1.02);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(37, 99, 235, 0.35);
}

.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px 10px 10px 4px;
  border-left: 4px solid rgba(0, 0, 0, 0.4);
}

.book-badge-overlay {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 19, 43, 0.88);
  backdrop-filter: blur(6px);
  color: var(--royal-100);
  border: 1px solid var(--border-glass-blue);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.book-hover-action {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--royal-400);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.book-card:hover .book-hover-action {
  opacity: 1;
  transform: scale(1);
}

.book-meta {
  padding: 0 0.15rem;
}

.book-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.82rem;
  color: var(--royal-200);
  margin-bottom: 0.35rem;
  display: block;
}

.book-desc-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

/* ==========================================================================
   Co-Workers Recruitment Section (동역자 모집)
   ========================================================================== */
.coworkers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.coworker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  backdrop-filter: var(--glass-blur);
  position: relative;
}

.coworker-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-blue);
  box-shadow: var(--shadow-md), var(--shadow-blue);
}

.coworker-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid var(--border-glass-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-100);
  font-size: 1.45rem;
  margin-bottom: 1.2rem;
}

.coworker-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #fff;
}

.coworker-card p.subtitle {
  font-size: 0.88rem;
  color: var(--royal-200);
  margin-bottom: 1rem;
  font-weight: 500;
}

.coworker-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.coworker-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.coworker-list li i {
  color: var(--royal-300);
  font-size: 0.82rem;
}

/* Callout Banner */
.recruit-banner {
  background: linear-gradient(135deg, rgba(23, 37, 82, 0.85), rgba(11, 19, 43, 0.95));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  padding: 2.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}

.recruit-banner-text h4 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #fff;
}

.recruit-banner-text p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Quiet Time & Scripture Widget (말씀 묵상 위젯)
   ========================================================================== */
.scripture-section {
  position: relative;
  padding: 4.5rem 0;
}

.scripture-container {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(145deg, rgba(23, 37, 82, 0.85), rgba(11, 19, 43, 0.98));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
  backdrop-filter: var(--glass-blur);
}

.scripture-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal-200);
  margin-bottom: 1.2rem;
}

.scripture-quote {
  font-family: 'Nanum Myeongjo', serif;
  font-size: 1.5rem;
  line-height: 1.75;
  color: #fff;
  margin-bottom: 1.2rem;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.35s ease;
}

.scripture-reference {
  font-size: 0.95rem;
  color: var(--royal-100);
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.scripture-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.scripture-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scripture-nav-btn:hover {
  background: var(--royal-400);
  color: #ffffff;
  border-color: var(--royal-400);
  transform: scale(1.08);
}

/* ==========================================================================
   Sponsorship & Contact Section (후원 및 오시는 길)
   ========================================================================== */
.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
}

.sponsor-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  backdrop-filter: var(--glass-blur);
  display: flex;
  flex-direction: column;
}

.sponsor-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.sponsor-box p.lead {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

.bank-account-card {
  background: linear-gradient(135deg, rgba(23, 37, 82, 0.95), rgba(11, 19, 43, 0.98));
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
}

.bank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.bank-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--royal-100);
}

.bank-number {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.bank-holder {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--royal-100);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.15rem;
}

.contact-text p, .contact-text a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
}

.contact-text a:hover {
  color: var(--royal-100);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060b18;
  border-top: 1px solid var(--border-glass);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  position: relative;
  z-index: 10;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--royal-100);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--border-glass-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-btn svg {
  display: block;
  transition: transform var(--transition-fast);
}

.social-btn:hover {
  background: var(--royal-400);
  border-color: var(--royal-300);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.45);
}

.social-btn:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal-dialog {
  background: #0f1a36;
  border: 1px solid var(--border-glass-blue);
  border-radius: var(--radius-xl);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-blue);
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fff;
  color: #000;
}

.book-modal-content {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.2rem;
  padding: 2.2rem;
}

.book-modal-cover-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.book-modal-cover {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1/1.42;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.book-modal-details h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.3rem;
}

.book-modal-author {
  font-size: 0.95rem;
  color: var(--royal-100);
  margin-bottom: 1rem;
  font-weight: 600;
}

.book-modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}

.book-modal-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Form Styling in Modal */
.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--royal-100);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--royal-300);
}

/* Toast Notification */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--royal-400);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  font-size: 0.88rem;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   KakaoTalk Buttons & Floating Quick Action
   ========================================================================== */
.btn-kakao {
  background: #fee500;
  color: #191919;
  font-weight: 700;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 15px rgba(254, 229, 0, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-kakao:hover {
  background: #ffeb3b;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(254, 229, 0, 0.5);
}

.floating-kakao-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1500;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #fee500;
  color: #191919;
  padding: 0.65rem 1.15rem 0.65rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(254, 229, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: all var(--transition-bounce);
  cursor: pointer;
}

.floating-kakao-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 28px rgba(254, 229, 0, 0.55);
  background: #ffeb3b;
  color: #000;
}

.kakao-btn-bubble {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  flex-shrink: 0;
}

.kakao-icon-svg {
  display: block;
}

.kakao-bg-icon {
  background: #fee500 !important;
  color: #191919 !important;
  border-color: #fdd835 !important;
}

.kakao-link-text {
  color: var(--royal-100);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.kakao-link-text:hover {
  color: #fee500;
  text-decoration: underline;
}

.social-btn-kakao:hover {
  background: #fee500 !important;
  border-color: #fdd835 !important;
  color: #191919 !important;
  box-shadow: 0 4px 15px rgba(254, 229, 0, 0.45) !important;
}

/* ==========================================================================
   RESPONSIVE DESIGN (모바일 최적화 & 깔끔하고 단순한 균형 레이아웃)
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    max-width: 500px;
    margin: 0 auto;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .coworkers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile & Small Screen (max-width: 768px) */
@media (max-width: 768px) {
  .section-padding {
    padding: 3.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
    line-height: 1.3;
  }

  .section-desc {
    font-size: 0.92rem;
  }

  .bookshelf-desc {
    white-space: normal;
    max-width: 100%;
    padding: 0 0.5rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }

  .bookshelf-desc .desc-line {
    display: block;
    white-space: nowrap;
    line-height: 1.45;
    font-size: clamp(0.78rem, 3.8vw, 0.92rem);
    text-align: center;
  }

  /* Nav */
  .header-nav {
    padding: 0.65rem 0;
    width: 100%;
    left: 0;
    right: 0;
  }

  .nav-wrapper {
    padding: 0 0.85rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .brand-logo {
    gap: 0.5rem;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .logo-symbol {
    width: 36px;
    height: 36px;
    padding: 4px;
    flex-shrink: 0;
  }

  .logo-text {
    min-width: 0;
    overflow: hidden;
  }

  .logo-text h1 {
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .logo-text span {
    font-size: 0.58rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-cta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .nav-cta .btn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.8rem !important;
    gap: 0.35rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 300px;
    height: 100vh;
    background: #0c152d;
    border-left: 1px solid var(--border-glass-blue);
    flex-direction: column;
    padding: 5.5rem 1.8rem 2rem;
    gap: 1.25rem;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }

  .nav-links.mobile-open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0.35rem;
  }

  /* Hero Section Mobile */
  .hero-section {
    min-height: auto;
    padding: 5.5rem 0 2.2rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.25;
    margin-bottom: 1rem;
  }

  .hero-verse {
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1.2rem;
    text-align: left;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    width: 100%;
    max-width: 360px;
    margin: 0 auto 1.5rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .stat-item h3 {
    font-size: 1.25rem;
  }

  .stat-item p {
    font-size: 0.72rem;
  }

  /* Showcase Card Mobile */
  .showcase-card {
    padding: 1.25rem;
    max-width: 100%;
  }

  .showcase-info h4 {
    font-size: 1.05rem;
  }

  .showcase-info p {
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
  }

  .floating-pill {
    display: none; /* 모바일에서 화면 밖으로 넘치거나 불균형 방지 */
  }

  /* Vision & Story Mobile */
  .vision-card, .story-box {
    padding: 1.5rem 1.25rem;
  }

  .vision-card h3, .story-box h3 {
    font-size: 1.3rem;
  }

  .vision-text, .story-body {
    font-size: 0.88rem;
  }

  .founder-signature {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Ministries Mobile */
  .ministries-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .ministry-card {
    padding: 1.5rem 1.25rem;
  }

  .ministry-icon {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
  }

  .ministry-card h3 {
    font-size: 1.15rem;
  }

  .ministry-card p {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
  }

  /* Bookshelf & Iframe Mobile */
  .bookshelf-iframe {
    height: 420px; /* 모바일에서 스크롤 갇힘 방지 및 완벽한 비율 */
  }

  .iframe-header-bar {
    padding: 0.65rem 0.75rem;
    gap: 0.4rem;
  }

  .iframe-status {
    min-width: 0;
    flex: 1 1 auto;
  }

  .iframe-status-title {
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .iframe-status-sub {
    display: none;
  }

  .iframe-actions {
    display: flex;
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .iframe-actions .iframe-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .catalog-accordion-toggle {
    padding: 0.85rem 1rem;
    gap: 0.5rem;
  }

  .toggle-left {
    min-width: 0;
    gap: 0.6rem;
  }

  .toggle-title-group {
    min-width: 0;
  }

  .toggle-title-group h4 {
    font-size: 0.92rem;
    line-height: 1.35;
    word-break: keep-all;
  }

  .toggle-title-group p {
    font-size: 0.72rem;
  }

  .toggle-right {
    flex-shrink: 0;
    gap: 0.4rem;
  }

  .toggle-badge {
    font-size: 0.72rem;
    padding: 0.2rem 0.5rem;
  }

  .bookshelf-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.75rem;
  }

  .category-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.35rem 0.75rem;
  }

  .search-box {
    width: 100%;
  }

  /* 3D Books Grid on Mobile: 깔끔한 2열 서가 */
  .books-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 0.85rem;
  }

  .book-card-3d {
    transform: none;
    margin-bottom: 0.5rem;
  }

  .book-card:hover .book-card-3d {
    transform: none;
  }

  .book-title {
    font-size: 0.85rem;
  }

  .book-author {
    font-size: 0.75rem;
  }

  .book-desc-snippet {
    display: none;
  }

  .bookshelf-direct-link-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.5rem;
    text-align: center;
  }

  .btn-bookshelf-direct {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    font-size: 0.92rem;
    text-align: center;
  }

  /* Co-Workers Mobile */
  .coworkers-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .coworker-card {
    padding: 1.5rem 1.25rem;
  }

  .coworker-icon-wrap {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
  }

  .coworker-card h3 {
    font-size: 1.15rem;
  }

  .recruit-banner {
    padding: 1.5rem 1.25rem;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
  }

  .recruit-banner .btn {
    width: 100%;
  }

  /* Scripture Mobile */
  .scripture-section {
    padding: 3rem 0;
  }

  .scripture-container {
    padding: 2rem 1.25rem;
  }

  .scripture-quote {
    font-size: 1.15rem;
    min-height: 65px;
    line-height: 1.6;
  }

  .scripture-reference {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
  }

  /* Sponsor & Contact Mobile */
  .sponsor-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .sponsor-box {
    padding: 1.5rem 1.25rem;
  }

  .sponsor-box h3 {
    font-size: 1.25rem;
  }

  .bank-account-card {
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.2rem;
  }

  .bank-number {
    font-size: 1.2rem;
  }

  .contact-info-item {
    padding: 0.85rem 1rem;
    gap: 0.85rem;
  }

  .contact-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  /* Footer Mobile */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    justify-content: center;
  }

  .footer-copyright-text {
    text-align: center;
    line-height: 1.6;
  }

  /* Modal Mobile */
  .book-modal-content {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem;
    gap: 1.2rem;
  }

  .book-modal-cover {
    max-width: 160px;
  }

  .book-modal-details h3 {
    font-size: 1.3rem;
  }

  /* Floating Kakao Mobile */
  .floating-kakao-btn {
    bottom: 1.25rem;
    right: 1rem;
    padding: 0.5rem 0.9rem 0.5rem 0.65rem;
    font-size: 0.82rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(254, 229, 0, 0.4);
  }

  .kakao-btn-bubble {
    width: 24px;
    height: 24px;
  }

  .kakao-btn-bubble svg {
    width: 18px;
    height: 18px;
  }
}
