/* ===================================================================
   천주교 전주교구 서학동성당 공식 디자인 시스템 (Seohak Catholic Church)
   주보성인: 성가정 (예수, 마리아, 요셉)
   설립: 1968년 1월 1일
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Noto+Sans+KR:wght@300;400;500;600;700&family=Noto+Serif+KR:wght@400;600;700&display=swap');

/* ===================================================================
   다중 테마 시스템 (Dynamic Theme System)
   - navy: 클래식 딥 네이비 (기본)
   - brick: 서학골 따뜻한 붉은 벽돌
   - olive: 평화의 세이지 올리브
   - burgundy: 성체·전례 로열 버건디
   =================================================================== */

:root {
  /* Layout & Global Sizing */
  --max-width: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Default Navy Theme */
  --primary: #15253e;
  --primary-light: #223b61;
  --primary-dark: #0c1626;
  --gold: #c59b27;
  --gold-light: #e6c86e;
  --gold-dark: #9e7818;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e29f 50%, #b8860b 100%);
  --gold-subtle: rgba(197, 155, 39, 0.12);
  --bg: #faf9f6;
  --bg-subtle: #f3f1ec;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text: #1f2937;
  --text-muted: #596780;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --border: rgba(21, 37, 62, 0.1);
  --border-gold: rgba(197, 155, 39, 0.35);
  --shadow-sm: 0 2px 8px rgba(21, 37, 62, 0.05);
  --shadow-md: 0 8px 24px rgba(21, 37, 62, 0.08);
  --shadow-lg: 0 16px 40px rgba(21, 37, 62, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 155, 39, 0.25);
  --theme-accent-gradient: linear-gradient(135deg, #15253e 0%, #223b61 100%);
}

[data-theme="navy"] {
  --primary: #15253e;
  --primary-light: #223b61;
  --primary-dark: #0c1626;
  --gold: #c59b27;
  --gold-light: #e6c86e;
  --gold-dark: #9e7818;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f6e29f 50%, #b8860b 100%);
  --gold-subtle: rgba(197, 155, 39, 0.12);
  --bg: #faf9f6;
  --bg-subtle: #f3f1ec;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.85);
  --text: #1f2937;
  --text-muted: #596780;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  --border: rgba(21, 37, 62, 0.1);
  --border-gold: rgba(197, 155, 39, 0.35);
  --shadow-sm: 0 2px 8px rgba(21, 37, 62, 0.05);
  --shadow-md: 0 8px 24px rgba(21, 37, 62, 0.08);
  --shadow-lg: 0 16px 40px rgba(21, 37, 62, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 155, 39, 0.25);
  --theme-accent-gradient: linear-gradient(135deg, #15253e 0%, #223b61 100%);
}

[data-theme="brick"] {
  --primary: #782d21;
  --primary-light: #9c3f30;
  --primary-dark: #4f1b13;
  --gold: #d97736;
  --gold-light: #f5b078;
  --gold-dark: #a8521d;
  --gold-gradient: linear-gradient(135deg, #d97736 0%, #f6c28b 50%, #b85418 100%);
  --gold-subtle: rgba(217, 119, 54, 0.12);
  --bg: #fcf9f5;
  --bg-subtle: #f5ede4;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.88);
  --text: #2c221e;
  --text-muted: #6e5c54;
  --text-light: #a39188;
  --text-inverse: #ffffff;
  --border: rgba(120, 45, 33, 0.12);
  --border-gold: rgba(217, 119, 54, 0.35);
  --shadow-sm: 0 2px 8px rgba(120, 45, 33, 0.06);
  --shadow-md: 0 8px 24px rgba(120, 45, 33, 0.09);
  --shadow-lg: 0 16px 40px rgba(120, 45, 33, 0.14);
  --shadow-gold: 0 8px 25px rgba(217, 119, 54, 0.28);
  --theme-accent-gradient: linear-gradient(135deg, #782d21 0%, #9c3f30 100%);
}

[data-theme="olive"] {
  --primary: #234338;
  --primary-light: #355f50;
  --primary-dark: #142821;
  --gold: #5b8a72;
  --gold-light: #8fb9a2;
  --gold-dark: #1b382d;
  --gold-gradient: linear-gradient(135deg, #44745d 0%, #76a890 50%, #29533f 100%);
  --gold-subtle: rgba(91, 138, 114, 0.12);
  --bg: #f7faf8;
  --bg-subtle: #edf3ef;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --text: #1d2b24;
  --text-muted: #56695f;
  --text-light: #8a9c92;
  --text-inverse: #ffffff;
  --border: rgba(35, 67, 56, 0.1);
  --border-gold: rgba(91, 138, 114, 0.35);
  --shadow-sm: 0 2px 8px rgba(35, 67, 56, 0.05);
  --shadow-md: 0 8px 24px rgba(35, 67, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(35, 67, 56, 0.12);
  --shadow-gold: 0 8px 25px rgba(91, 138, 114, 0.25);
  --theme-accent-gradient: linear-gradient(135deg, #234338 0%, #355f50 100%);
}

[data-theme="burgundy"] {
  --primary: #4a101d;
  --primary-light: #6a1a2c;
  --primary-dark: #2c0810;
  --gold: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #aa8210;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fae69e 50%, #99730e 100%);
  --gold-subtle: rgba(212, 175, 55, 0.14);
  --bg: #fcf8f6;
  --bg-subtle: #f6ebe7;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --text: #26171a;
  --text-muted: #695257;
  --text-light: #9e858a;
  --text-inverse: #ffffff;
  --border: rgba(74, 16, 29, 0.12);
  --border-gold: rgba(212, 175, 55, 0.4);
  --shadow-sm: 0 2px 8px rgba(74, 16, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(74, 16, 29, 0.1);
  --shadow-lg: 0 16px 40px rgba(74, 16, 29, 0.15);
  --shadow-gold: 0 8px 25px rgba(212, 175, 55, 0.3);
  --theme-accent-gradient: linear-gradient(135deg, #4a101d 0%, #6a1a2c 100%);
}

/* 부드러운 테마 전환 트랜지션 */
body, .header, .btn, .notice-card, .saint-card, .pastor-section, .footer, .hero-quick-card, .supjeongi-card, .quick-menu-item {
  transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===================================================================
   헤더 테마 스위처 바 (Header Theme Switcher Bar)
   =================================================================== */
.theme-switcher-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-subtle);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

.theme-switcher-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 0.2rem;
  user-select: none;
}

.theme-chips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.theme-chip-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.theme-chip-btn:hover {
  transform: scale(1.18);
}

.theme-chip-btn.active {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--gold), 0 2px 8px rgba(0, 0, 0, 0.25);
  transform: scale(1.12);
}

/* 테마별 칩 색상 */
.chip-navy { background: #15253e; }
.chip-brick { background: #782d21; }
.chip-olive { background: #234338; }
.chip-burgundy { background: #4a101d; }

/* 칩 툴팁 */
.theme-chip-btn::after {
  content: attr(data-theme-name);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #1e293b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1000;
}

.theme-chip-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 992px) {
  .theme-switcher-label {
    display: none;
  }
  .theme-switcher-wrap {
    padding: 0.25rem 0.45rem;
  }
  .theme-chip-btn {
    width: 20px;
    height: 20px;
  }
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-serif {
  font-family: 'Noto Serif KR', serif;
}

.font-cinzel {
  font-family: 'Cinzel', serif;
}

/* Theme Switcher Bar */
.theme-switcher-bar {
  background: #0f1b2b;
  color: #fff;
  padding: 0.6rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  z-index: 2000;
  position: relative;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.theme-pill {
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  transition: var(--transition);
}

.theme-pill.active {
  background: var(--gold-gradient);
  color: #0c1626;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.theme-pill:not(.active) {
  background: rgba(255,255,255,0.12);
  color: #cbd5e1;
}

.theme-pill:hover:not(.active) {
  background: rgba(255,255,255,0.25);
  color: #fff;
}

/* Top Announcement Banner */
.top-notice-bar {
  background: var(--primary-dark);
  color: var(--gold-light);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.top-notice-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-notice-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.top-notice-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.top-notice-links a:hover {
  color: var(--gold-light);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.brand-cross {
  width: 38px;
  height: 38px;
  background: var(--gold-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-diocese {
  font-size: 0.75rem;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif KR', serif;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.3rem 0;
  position: relative;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-dark);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--primary-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-gold:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-gold);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* Mobile Nav Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  padding: 0.4rem;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 27, 46, 0.88) 0%, rgba(26, 44, 76, 0.72) 100%),
              url('../assets/images/seohak_church_real.jpg') center/cover no-repeat;
  padding: 5rem 1.5rem;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-title span {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Quick Card */
.hero-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-card-title {
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
}

.today-mass-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  background: rgba(212, 175, 55, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
}

.today-mass-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

.quick-mass-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.quick-mass-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.quick-mass-item.highlight {
  background: rgba(197, 155, 39, 0.3);
  border-left: 3px solid var(--gold-light);
}

.quick-mass-day {
  color: #e2e8f0;
  font-weight: 500;
}

.quick-mass-time {
  color: var(--gold-light);
  font-weight: 700;
}

/* Main Content Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  color: var(--primary);
  font-weight: 700;
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Mass Schedule Section */
.mass-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  margin-bottom: 4rem;
}

.mass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.mass-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.mass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.mass-card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  color: var(--primary);
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(21, 37, 62, 0.08);
}

.mass-card-title .icon {
  color: var(--gold);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.schedule-table tr {
  border-bottom: 1px solid rgba(21, 37, 62, 0.06);
}

.schedule-table tr:last-child {
  border-bottom: none;
}

.schedule-table td {
  padding: 1rem 0.5rem;
  font-size: 1rem;
}

.schedule-day {
  font-weight: 600;
  color: var(--primary);
  width: 35%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.day-badge.sun {
  background: #dc2626;
}

.day-badge.sat {
  background: #2563eb;
}

.schedule-time {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.05rem;
}

.schedule-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.mass-info-alert {
  margin-top: 2rem;
  background: var(--gold-subtle);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.mass-info-alert .icon {
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.mass-info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.mass-info-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Real Church Exterior Showcase */
.church-exterior-card {
  margin-bottom: 3.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.church-exterior-img-wrap {
  height: 380px;
  overflow: hidden;
  position: relative;
}

.church-exterior-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.church-exterior-img-wrap:hover img {
  transform: scale(1.03);
}

.church-exterior-content {
  padding: 2.5rem 3rem;
}

/* About & Patron Saint Section */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.saint-card {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-md);
  position: relative;
}

.saint-img-wrap {
  width: 260px;
  height: 260px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--gold-light);
  box-shadow: var(--shadow-gold);
}

.saint-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saint-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 0.5rem;
}

.saint-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-text h3 {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.fact-item {
  background: var(--surface);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
}

.fact-number {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-dark);
  font-family: 'Cinzel', serif;
  margin-bottom: 0.25rem;
}

.fact-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Pastor Greeting Box */
.pastor-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pastor-section::before {
  content: '“';
  position: absolute;
  right: 2rem;
  bottom: -2rem;
  font-size: 14rem;
  color: rgba(255, 255, 255, 0.04);
  font-family: 'Noto Serif KR', serif;
  pointer-events: none;
}

.pastor-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pastor-avatar-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.pastor-title-wrap h3 {
  font-size: 1.5rem;
  font-family: 'Noto Serif KR', serif;
  color: var(--gold-light);
}

.pastor-title-wrap p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.pastor-content {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #f1f5f9;
  font-weight: 300;
}

.pastor-sign {
  text-align: right;
  margin-top: 2rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
  font-family: 'Noto Serif KR', serif;
}

/* Bulletin & Notices Section */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.notice-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.notice-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--gold-subtle);
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.notice-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.notice-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid rgba(21, 37, 62, 0.06);
}

/* Location & Map Section */
.location-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.location-info {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.location-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.location-detail h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.location-detail p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.map-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.map-interactive-view {
  background: #e2e8f0;
  min-height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #fff;
}

.map-pin-pulse {
  width: 60px;
  height: 60px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* Official Certification Footer (Crucial for Google Nonprofits Verification) */
.footer {
  background: var(--primary-dark);
  color: #cbd5e1;
  padding: 4.5rem 1.5rem 2.5rem;
  border-top: 4px solid var(--gold);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 0.5rem;
}

.footer-brand-sub {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #94a3b8;
  max-width: 400px;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
}

/* Non-profit Legal Info Box */
.legal-certificate-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  font-size: 0.88rem;
}

.legal-item {
  display: flex;
  flex-direction: column;
}

.legal-label {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.legal-value {
  color: #f1f5f9;
  font-weight: 500;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* Toast Notification for Copy */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--gold);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Supjeongi (전주교구 주보 『숲정이』) Section & Viewer
   ========================================================================== */
.supjeongi-showcase {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  overflow: hidden;
}

.supjeongi-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
}

.supjeongi-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.supjeongi-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.supjeongi-title-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 155, 60, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.supjeongi-main-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 1.45rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.supjeongi-sub-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0;
}

.supjeongi-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.supjeongi-more-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* 숲정이 카드 그리드 (3권 나열) */
.supjeongi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.supjeongi-card {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.supjeongi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.supjeongi-card.is-latest {
  border-color: rgba(200, 155, 60, 0.45);
  box-shadow: 0 8px 24px rgba(200, 155, 60, 0.12);
}

/* 리본 뱃지 */
.ribbon-badge {
  position: absolute;
  top: 14px;
  left: -28px;
  transform: rotate(-45deg);
  background: #dc2626;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 2rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 5;
  letter-spacing: 1px;
}

/* 표지 이미지 래퍼 */
.supjeongi-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.38;
  background: #eaeff5;
  overflow: hidden;
  cursor: pointer;
}

.supjeongi-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.supjeongi-card:hover .supjeongi-cover-img {
  transform: scale(1.03);
}

.supjeongi-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(21, 37, 62, 0.65);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #ffffff;
  opacity: 0;
  transition: var(--transition);
}

.supjeongi-card:hover .supjeongi-cover-overlay {
  opacity: 1;
}

.overlay-btn {
  background: var(--gold);
  color: #1a202c;
  padding: 0.55rem 1.1rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 주보 정보 */
.supjeongi-details {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.supjeongi-issue-no {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(21, 37, 62, 0.08);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.4rem;
  width: fit-content;
}

.supjeongi-card.is-latest .supjeongi-issue-no {
  background: rgba(200, 155, 60, 0.15);
  color: #925f0a;
}

.supjeongi-date {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.supjeongi-season {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

.supjeongi-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.btn-ebook {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.6rem;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-ebook:hover {
  background: var(--gold);
  color: #1a202c !important;
}

.supjeongi-bottom-guide {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: rgba(200, 155, 60, 0.08);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--gold);
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ==========================================================================
   Supjeongi E-Book Modal Viewer
   ========================================================================== */
.ebook-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ebook-modal.active {
  display: flex;
}

.ebook-modal-box {
  background: #1e293b;
  border-radius: 12px;
  width: 100%;
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.ebook-modal-header {
  background: #0f172a;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ebook-modal-title {
  color: #f8fafc;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.ebook-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ebook-modal-ext-link {
  color: #94a3b8;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

.ebook-modal-ext-link:hover {
  color: #ffffff;
}

.ebook-modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.ebook-modal-close:hover {
  background: #ef4444;
}

.ebook-modal-iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #ffffff;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-grid, .location-box, .church-exterior-card {
    grid-template-columns: 1fr;
  }
  
  .church-exterior-img-wrap {
    height: 280px;
  }
  
  .church-exterior-content {
    padding: 2rem 1.5rem;
  }
  
  .mass-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }
  
  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .pastor-section {
    padding: 2rem;
  }
  
  .facts-grid {
    grid-template-columns: 1fr;
  }
}
