/* ==========================================================================
   연천옥산교회 프리미엄 반응형 웹 애플리케이션 디자인 시스템 (와이드 풀스크린 & 스크롤 모션)
   ========================================================================== */

:root {
  /* 색상 팔레트 */
  --primary-blue: #0066cc;
  --primary-deep-blue: #0a2540;
  --primary-light-blue: #e8f2fc;
  --accent-gold: #c59b27;
  --accent-red: #e63946;
  
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-section-alt: #f1f5f9;
  
  --text-navy: #0f172a;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #38bdf8;
  
  --blue-gradient: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa7c11 100%);
  --live-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  --hero-gradient: linear-gradient(135deg, rgba(10, 37, 64, 0.88) 0%, rgba(0, 102, 204, 0.75) 100%);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 16px 36px rgba(0, 102, 204, 0.16);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --header-height: 78px;
  --bottom-tab-height: 64px;
}

/* 기본 리셋 & 타이포그래피 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-tab-height);
  overflow-x: hidden;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* 버튼 공통 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
}

.btn-primary {
  background: var(--blue-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 102, 204, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.45);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(170, 124, 17, 0.3);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(170, 124, 17, 0.45);
}

.btn-live-pulse {
  background: var(--live-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4);
  animation: pulseLive 2s infinite;
}
@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(255, 65, 108, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 65, 108, 0); }
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
}
.btn-outline:hover {
  background: #f8fafc;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   1. 상단 글로벌 헤더 (창 전체 와이드 100% 활용)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-container {
  width: 100%;
  max-width: 1680px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 옥산교회 로고 - 자연스럽고 안정감 있는 최적 비율 */
.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 4px 10px 4px 0;
  transition: opacity 0.2s ease;
}
.brand-logo:hover {
  opacity: 0.92;
}
.logo-img-wrap {
  height: 68px;
  min-width: 220px;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.logo-img-wrap img.header-logo-image {
  height: 62px;
  width: auto;
  max-width: 580px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.2s ease;
}
.logo-img-wrap img.header-logo-image:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .logo-img-wrap {
    height: 52px;
    min-width: 180px;
    max-width: 320px;
  }
  .logo-img-wrap img.header-logo-image {
    height: 48px;
    max-width: 300px;
  }
}

.desktop-nav {
  display: none;
}
.desktop-nav ul {
  display: flex;
  align-items: center;
  gap: 12px;
}
.desktop-nav li {
  position: relative;
}

.nav-btn {
  background: transparent;
  border: none;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover, .nav-btn.active {
  color: var(--primary-blue);
  background: var(--primary-light-blue);
}
.nav-arrow {
  font-size: 11px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}
.dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  min-width: 220px;
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: fadeInDown 0.2s ease;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.dropdown:hover .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: all 0.15s ease;
}
.dropdown-menu a:hover {
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  padding-left: 18px;
}

/* 헤더 우측 */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.live-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(230, 57, 70, 0.3);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.live-badge-btn:hover {
  background: var(--accent-red);
  color: #ffffff;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.admin-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  border: 1px solid var(--border-light);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-quick-btn:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}
.admin-quick-btn.logged-in {
  background: var(--blue-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 102, 204, 0.3);
}
.admin-quick-btn.logged-in:hover {
  background: var(--navy-900);
  transform: translateY(-1px);
}
.admin-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}
.admin-logout-btn:hover {
  background: #dc2626;
  color: #ffffff;
}

/* 각 게시판 상단 관리자 직접 등록 버튼 (비로그인 시 완벽 숨김) */
.admin-board-post-btn {
  display: none !important;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.28);
  transition: all 0.22s ease;
  white-space: nowrap;
}

.admin-board-post-btn:hover {
  background: linear-gradient(135deg, #0052a3 0%, #003366 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 102, 204, 0.4);
}

.admin-board-post-btn i {
  font-size: 13px;
  color: #fbbf24;
}

/* 관리자 인증 시 각 게시판에 즉시 활성화 */
body.admin-authenticated .admin-board-post-btn {
  display: inline-flex !important;
  animation: adminBtnFadeIn 0.3s ease-out;
}

@keyframes adminBtnFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 스마트폰 앱 설치 버튼 (헤더 및 드로어) */
.app-install-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease;
}
.app-install-quick-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  transform: translateY(-1px);
}
.app-install-quick-btn i {
  color: var(--primary-blue);
}

.drawer-app-install-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.drawer-app-install-box:active {
  transform: scale(0.98);
}
.drawer-app-install-icon img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.2);
}
.drawer-app-install-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.drawer-app-install-info strong {
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 800;
}
.drawer-app-install-info span {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.drawer-app-install-box i {
  color: var(--primary-blue);
  font-size: 16px;
}

/* 하단 플로팅 PWA 설치 배너 */
.pwa-install-banner {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  animation: pwaBannerSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 992px) {
  .pwa-install-banner {
    bottom: 24px;
    right: 24px;
    left: auto;
    margin: 0;
  }
}

@keyframes pwaBannerSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pwa-banner-text {
  flex: 1;
}
.pwa-banner-text strong {
  display: block;
  font-size: 14.5px;
  color: #0f172a;
  font-weight: 800;
}
.pwa-banner-text span {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.pwa-banner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.btn-pwa-dismiss {
  background: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
}
.btn-pwa-install {
  background: var(--blue-gradient);
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
}

.mobile-menu-trigger {
  background: transparent;
  border: none;
  font-size: 22px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
}

@media (min-width: 992px) {
  .desktop-nav { display: block; }
  .mobile-menu-trigger { display: none; }
}

.admin-photo-preview-item {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid #cbd5e1;
}

/* ==========================================================================
   2. 모바일 사이드바 드로어
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.open,
.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-drawer.open,
.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.drawer-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.drawer-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.drawer-group a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
}
.drawer-group a:hover {
  background: var(--primary-light-blue);
  color: var(--primary-blue);
}

/* ==========================================================================
   3. 메인 콘텐츠 뷰 영역 (창 전체 와이드 레이아웃)
   ========================================================================== */
.main-container.wide-viewport {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 24px 32px 60px;
}

@media (max-width: 768px) {
  .main-container.wide-viewport {
    padding: 16px 16px 50px;
  }
}

.tab-content {
  display: none;
  animation: fadeIn 0.35s ease;
}
.tab-content.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 카드 박스 공통 */
.card-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card-box:hover {
  box-shadow: var(--shadow-hover);
}

/* 섹션 타이틀 공통 */
.section-title-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
}
.section-main-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-sub-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 12px;
}
.more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.more-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   4. 홈 화면 - 스크롤 인터랙션 & 4대 핵심 섹션 레이아웃
   ========================================================================== */
.home-scroll-section {
  margin-bottom: 50px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.home-scroll-section.appear,
.home-scroll-section.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 1. 주제 (히어로 풀 배너) - 연천옥산교회 전경 드로잉 배경 */
.hero-full-section {
  position: relative;
  background: url('images/church_drawing_bg.jpg') center 35%/cover no-repeat;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 480px;
  display: flex;
  align-items: center;
  opacity: 1 !important;
  transform: none !important;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 58, 138, 0.72) 50%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(0.5px);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 48px;
  color: #ffffff;
  max-width: 900px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.hero-verse {
  font-size: 40px;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 14px;
  font-family: 'Noto Serif KR', serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.hero-ref {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 30px;
  line-height: 1.6;
}
.hero-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 768px) {
  .hero-content { padding: 40px 24px; }
  .hero-verse { font-size: 28px; }
  .hero-ref { font-size: 15px; }
}

/* 2. 주일예배설교 (대형) + 우측 숏츠 2개 */
.sermon-shorts-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
}
@media (max-width: 1080px) {
  .sermon-shorts-container {
    grid-template-columns: 1fr;
  }
}

/* 좌측 주일 설교 대형 카드 */
.featured-sermon-card-wide {
  display: flex;
  flex-direction: column;
}
.featured-media-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: #000000;
}
.featured-sermon-info {
  padding: 24px 28px;
}
.sermon-badge {
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
}
.featured-sermon-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

/* 우측 숏츠 2개 나란히 */
.shorts-duo-container {
  display: flex;
  flex-direction: column;
}
.shorts-duo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.shorts-duo-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-navy);
}

.main-shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}
.short-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.short-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.short-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 150%; /* 세로형 비율 */
  background: #0f172a;
  overflow: hidden;
}
.short-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.short-card:hover .short-thumb-wrap img {
  transform: scale(1.06);
}
.shorts-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(230, 57, 70, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.short-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.short-card:hover .short-play-btn {
  opacity: 1;
}
.short-card-info {
  padding: 12px 14px;
  flex: 1;
}
.short-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.short-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* 3. 교회소식 리스트 */
.home-news-card {
  padding: 20px 28px;
}
.main-news-list {
  display: flex;
  flex-direction: column;
}
.news-item {
  display: flex;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 16px;
}
.news-item:last-child {
  border-bottom: none;
}
.news-item:hover {
  background: var(--primary-light-blue);
  padding-left: 12px;
  border-radius: var(--radius-sm);
}
.news-category-badge {
  background: #f1f5f9;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.news-title-text {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-date-text {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* 4. 옥산포토존 갤러리 그리드 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 540px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 15px; }
}

.gallery-card, .gallery-item {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light, #e2e8f0);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.gallery-card:hover, .gallery-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.gallery-thumb-wrap, .gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0f172a;
  overflow: hidden;
}
.gallery-thumb-wrap img.gallery-img, .gallery-img-wrap img.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.gallery-card:hover .gallery-thumb-wrap img.gallery-img,
.gallery-item:hover .gallery-img-wrap img.gallery-img {
  transform: scale(1.08);
}

.photo-count-badge, .photo-slide-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.gallery-info, .gallery-overlay {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
}
.gallery-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-navy, #0f172a);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.gallery-date {
  font-size: 12.5px;
  color: var(--text-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 4-1. 서식 자료실 미리보기 카드 그리드 */
.form-preview-card {
  background: #ffffff;
  border-radius: var(--radius-md, 12px);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light, #e2e8f0);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.form-preview-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  border-color: #cbd5e1;
}

.form-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.form-preview-card:hover .form-thumb-img {
  transform: scale(1.06);
}

/* 문서 서식 전용 그래픽 썸네일 */
.form-doc-thumb-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
}
.form-doc-thumb-wrap .doc-icon-box {
  font-size: 42px;
  color: #60a5fa;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}
.form-preview-card:hover .form-doc-thumb-wrap .doc-icon-box {
  transform: scale(1.15) translateY(-2px);
}
.form-doc-thumb-wrap .doc-type-text {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}

.form-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-blue, #1e40af);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.form-badge.photo-badge {
  background: #0284c7;
}
.form-badge.doc-badge {
  background: #475569;
}

.form-file-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px 0;
}
.form-file-tag {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-info-wrap {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.form-date {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  margin-bottom: 4px;
}
.form-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy-900, #0f172a);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.form-desc-snip {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}
.form-card-action {
  margin-top: auto;
}

/* ==========================================================================
   5. 서브페이지 스타일 & 네비게이션
   ========================================================================== */
.subpage-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0066cc 100%);
  color: #ffffff;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}
.subpage-hero h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
}
.subpage-hero p {
  font-size: 15px;
  opacity: 0.9;
}

.subpage-nav-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}
.sub-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sub-nav-btn:hover {
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.sub-nav-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 원로목사 전용 아담하고 세련된 사역 갤러리 카드 */
.elder-photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.25s ease;
}
.elder-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}
.elder-photo-card .photo-thumb-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background: #0f172a;
}
.elder-photo-card .photo-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.elder-photo-card:hover .photo-thumb-wrap img {
  transform: scale(1.04);
}

.sub-section {
  display: none;
}
.sub-section.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.content-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 카드 및 박스들 */
.about-card, .worship-table-card, .news-board-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.vision-banner {
  background: var(--primary-light-blue);
  border-left: 5px solid var(--primary-blue);
  padding: 24px;
  border-radius: var(--radius-sm);
}
.vision-banner h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .grid-3col { grid-template-columns: 1fr; }
}
.info-box {
  background: #f8fafc;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  text-align: center;
}
.icon-circle {
  width: 56px;
  height: 56px;
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.info-box h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.info-box p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 목사님 소개 레이아웃 */
.pastor-detail-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
}
@media (max-width: 900px) {
  .pastor-detail-card { grid-template-columns: 1fr; }
}
.pastor-portrait {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}
.pastor-sub-photos {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pastor-sub-photos .thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
}
.pastor-sub-photos .thumb.active {
  border-color: var(--primary-blue);
  opacity: 1;
}

.pastor-role-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pastor-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 6px;
}
.pastor-title-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.greeting-lead {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-blue);
  font-family: 'Noto Serif KR', serif;
  margin-bottom: 16px;
  line-height: 1.6;
}
.pastor-bio-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 12px;
}
.pastor-career-box {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.pastor-career-box h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-navy);
}
.pastor-career-box li {
  font-size: 14px;
  padding: 4px 0;
  color: #475569;
}

/* 연혁 타임라인 */
.timeline-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}
.timeline-year {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light-blue);
  display: flex;
  align-items: center;
  gap: 8px;
}
.history-row {
  display: flex;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
  align-items: baseline;
}
.history-row:last-child {
  border-bottom: none;
}
.history-row .h-date {
  font-weight: 800;
  color: var(--primary-blue);
  font-size: 14px;
  min-width: 140px;
  flex-shrink: 0;
}
.history-row .h-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
}
@media (max-width: 640px) {
  .history-row {
    flex-direction: column;
    gap: 4px;
  }
  .history-row .h-date { min-width: unset; }
}

/* 섬기는 사람들 그리드 */
.workers-grid, .dept-grid, .steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .workers-grid, .dept-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .workers-grid, .dept-grid, .steps-grid { grid-template-columns: 1fr; }
}
.worker-card, .dept-card, .step-card {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}
.worker-card:hover, .dept-card:hover, .step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.worker-card.highlight {
  border-color: var(--primary-blue);
  background: #f0f7ff;
}
.role-badge, .dept-badge, .step-num {
  display: inline-block;
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.worker-name, .dept-card h3, .step-card h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 6px;
}
.worker-desc, .dept-desc, .step-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* 테이블 공통 */
.styled-table {
  width: 100%;
  border-collapse: collapse;
}
.styled-table th {
  background: #f8fafc;
  padding: 14px 16px;
  font-weight: 800;
  color: var(--text-navy);
  border-bottom: 2px solid var(--border-light);
  text-align: left;
}
.styled-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}
.styled-table tr:hover td {
  background: #f8fafc;
}

/* 설교 그리드 */
.sermon-grid, .shorts-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .sermon-grid, .shorts-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sermon-grid, .shorts-gallery-grid { grid-template-columns: 1fr; }
}

.sermon-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.25s ease;
}
.sermon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.sermon-thumb-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #0f172a;
}
.sermon-thumb-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}
.play-overlay:hover {
  background: rgba(0, 0, 0, 0.5);
}
.play-icon {
  font-size: 32px;
  color: #ffffff;
}
.sermon-info {
  padding: 16px;
}
.sermon-date {
  font-size: 12px;
  color: var(--text-muted);
}
.sermon-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-navy);
  margin: 6px 0;
  cursor: pointer;
}
.sermon-title:hover {
  color: var(--primary-blue);
}
.sermon-preacher {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-blue);
}

/* 주보 뷰어 풀 카드 */
.bulletin-full-viewer-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}
.bulletin-select-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}
.styled-select {
  padding: 10px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  background: #ffffff;
  cursor: pointer;
}
.bulletin-header-center {
  text-align: center;
  margin: 24px 0 16px;
}
.bulletin-page-tabs.big-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.page-tab-btn {
  padding: 12px 28px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid var(--border-light);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-tab-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}
.bulletin-main-img-wrap {
  text-align: center;
  background: #f8fafc;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}
.bulletin-full-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  border-radius: 4px;
}
.zoom-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.bulletin-download-footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ==========================================================================
   6. 옥산포토존 전용 모달 (슬라이더, 설명글, 배경 클릭 닫기)
   ========================================================================== */
.photo-zone-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 15px;
}
.photo-zone-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.photo-zone-modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 1060px;
  max-height: 95vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.photo-zone-modal-header {
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.photo-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-navy);
  margin-bottom: 4px;
}
.photo-modal-date {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}
.modal-close-icon-btn {
  background: #f1f5f9;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close-icon-btn:hover {
  background: #e2e8f0;
  color: var(--accent-red);
  transform: rotate(90deg);
}

.photo-viewer-stage {
  position: relative;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  max-height: 62vh;
  overflow: hidden;
}
.stage-img-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 12px;
}
.stage-img-container img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.slide-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-navy);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.slide-nav-btn:hover {
  background: #ffffff;
  transform: translateY(-50%) scale(1.12);
  color: var(--primary-blue);
}
.slide-nav-btn.prev-btn { left: 16px; }
.slide-nav-btn.next-btn { right: 16px; }

.photo-modal-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  gap: 15px;
}
.photo-counter-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-blue);
  white-space: nowrap;
}
.photo-thumb-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px;
  scroll-behavior: smooth;
  max-width: 100%;
}
.photo-thumb-strip::-webkit-scrollbar { height: 5px; }
.photo-thumb-strip::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 4px; }
.photo-thumb-strip::-webkit-scrollbar-thumb { background: #475569; border-radius: 4px; }
.photo-thumb-strip::-webkit-scrollbar-thumb:hover { background: #64748b; }

.photo-modal-thumb,
.photo-thumb-item {
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  object-fit: cover !important;
  border-radius: 8px;
  border: 2.5px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
}
.photo-modal-thumb:hover,
.photo-thumb-item:hover {
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}
.photo-modal-thumb.active,
.photo-thumb-item.active {
  border-color: #3b82f6 !important;
  opacity: 1 !important;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.6), 0 2px 8px rgba(0,0,0,0.4);
}

.photo-modal-desc-box {
  padding: 16px 24px;
  background: #ffffff;
  overflow-y: auto;
  max-height: 140px;
}
.photo-modal-desc-box .desc-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.photo-modal-desc-box .desc-text-content {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  white-space: pre-line;
}

/* ==========================================================================
   7. 공통 모달 (공지사항, 비디오, 이미지 확대)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 35, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 15px;
}
.modal-overlay.open,
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.photo-zone-modal-overlay.open,
.photo-zone-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-viewer-modal.open,
.image-viewer-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-navy);
}
.modal-close {
  background: none;
  border: none;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
}
.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f8fafc;
}

.modal-video-box {
  max-width: 900px;
  background: #000000;
}
.modal-video-box .modal-header {
  background: #1e293b;
  color: #ffffff;
  border-color: #334155;
}
.modal-video-box .modal-header h3 { color: #ffffff; }
.modal-video-box .modal-close { color: #ffffff; }
.modal-video-body {
  padding: 0;
  background: #000000;
}
.video-responsive-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
}
.video-responsive-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-viewer-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.image-viewer-modal.open,
.image-viewer-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.image-viewer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.image-viewer-content {
  position: relative;
  z-index: 10;
  max-width: 88vw;
  max-height: 86vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.image-viewer-content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
  background: #000000;
}
.image-viewer-info-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.viewer-img-title {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}
.viewer-counter-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
}

/* 닫기 버튼 (우측 상단 큼직한 원형 버튼) */
.image-viewer-close-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}
.image-viewer-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

/* 좌우 이전/다음 화살표 버튼 */
.image-viewer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: all 0.2s ease;
}
.image-viewer-nav-btn:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-50%) scale(1.12);
}
.image-viewer-nav-btn.prev-btn {
  left: 28px;
}
.image-viewer-nav-btn.next-btn {
  right: 28px;
}

@media (max-width: 768px) {
  .image-viewer-close-btn {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .image-viewer-nav-btn {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
  .image-viewer-nav-btn.prev-btn {
    left: 12px;
  }
  .image-viewer-nav-btn.next-btn {
    right: 12px;
  }
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.styled-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* ==========================================================================
   8. 푸터 & 모바일 탭바
   ========================================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 32px;
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
}
.footer-container.wide-container {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .footer-container.wide-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.footer-title {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 8px;
}
.copyright {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}
.footer-links {
  display: flex;
  gap: 12px;
}

.mobile-bottom-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-tab-height);
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 99;
}
@media (min-width: 992px) {
  .mobile-bottom-tabbar { display: none; }
}
.bottom-tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.bottom-tab-item i { font-size: 18px; }
.bottom-tab-item.active { color: var(--primary-blue); }
.bottom-tab-item.live-pulse-icon.active { color: var(--accent-red); }

/* ==========================================================================
   9. 섬기는 사람들 계층형 카드 & 직분자 명단 스타일
   ========================================================================== */
.workers-hierarchy-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.worker-featured-card {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.worker-featured-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.worker-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}
.worker-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.3s ease;
}
.worker-avatar-wrap:hover .worker-avatar {
  transform: scale(1.08);
}
.view-zoom-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 102, 204, 0.85);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  backdrop-filter: blur(2px);
}

.worker-info {
  flex: 1;
}
.worker-info .role-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.worker-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 4px;
}
.worker-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.workers-roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .workers-roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.officer-group-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.officer-group-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.officer-header {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy-900);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light-blue);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.officer-name-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.officer-name-list li {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  padding: 8px 12px;
  background: #f8fafc;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-blue);
}

/* ==========================================================================
   10. 대문 오시는 길 (지도) 섹션
   ========================================================================== */
.home-map-section-wrap {
  margin-top: 50px;
}
.home-directions-card {
  padding: 24px;
}

/* ==========================================================================
   11. 페이지네이션 바 스타일
   ========================================================================== */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.page-btn:hover:not(:disabled) {
  background: var(--primary-light-blue);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}
.page-btn.active {
  background: var(--blue-gradient);
  color: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   12. 서식 자료실 상세 모달 다중 첨부파일 & 미리보기 썸네일 스트립 스타일
   ========================================================================== */
.form-file-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}
.form-file-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}
.form-file-item-card:hover {
  background: #ffffff;
  border-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
  transform: translateY(-1px);
}
.form-file-item-card.active {
  background: #eff6ff;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(0, 102, 204, 0.2);
}
.form-file-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.form-file-thumb-mini {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e2e8f0;
  flex-shrink: 0;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-file-thumb-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.form-file-thumb-mini .doc-icon {
  font-size: 24px;
  color: var(--primary-blue);
}
.form-file-meta {
  flex: 1;
  min-width: 0;
}
.form-file-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary-blue);
  background: rgba(0, 102, 204, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 4px;
}
.form-file-name-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.form-file-hint {
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
}
.form-file-hint:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}
.form-file-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--blue-gradient);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25);
}
.form-file-download-btn:hover {
  background: var(--navy-900);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
@media (max-width: 640px) {
  .form-file-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .form-file-download-btn {
    width: 100%;
    justify-content: center;
  }
}


/* ==========================================================================
   서식자료실 전용 고품격 게시판 및 상세 뷰어 스타일
   ========================================================================== */
.board-container {
  background: var(--bg-card, #ffffff);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color, #e2e8f0);
  overflow: hidden;
  margin-top: 20px;
}

.board-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: var(--bg-card-alt, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  flex-wrap: wrap;
  gap: 12px;
}

.board-count-info {
  font-size: 14px;
  color: var(--text-muted, #64748b);
  font-weight: 500;
}

.board-count-info strong {
  color: var(--primary, #1e3a8a);
  font-weight: 700;
}

.board-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 320px;
}

.board-search-input-wrap i {
  position: absolute;
  left: 14px;
  color: var(--text-muted, #94a3b8);
  font-size: 14px;
}

.board-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #cbd5e1);
  font-size: 14px;
  outline: none;
  background: #ffffff;
  transition: all 0.2s ease;
}

.board-search-input:focus {
  border-color: var(--primary, #1e3a8a);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.board-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.board-table th {
  background: var(--bg-card-alt, #f8fafc);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark, #1e293b);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  white-space: nowrap;
}

.board-table td {
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-dark, #334155);
  border-bottom: 1px solid var(--border-color, #f1f5f9);
  vertical-align: middle;
  transition: background 0.15s ease;
}

.board-table tr:hover td {
  background: #f1f5f9;
  cursor: pointer;
}

.board-table .col-num {
  width: 70px;
  text-align: center;
  color: var(--text-muted, #94a3b8);
  font-weight: 500;
}

.board-table .col-title {
  font-weight: 600;
  color: var(--text-dark, #0f172a);
}

.board-table tr:hover .col-title {
  color: var(--primary, #1e3a8a);
  text-decoration: underline;
}

.board-table .col-attach {
  width: 90px;
  text-align: center;
  white-space: nowrap;
}

.board-table .col-writer {
  width: 100px;
  text-align: center;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.board-table .col-date {
  width: 110px;
  text-align: center;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.attach-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  gap: 6px;
  background: var(--bg-card, #ffffff);
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
  background: #ffffff;
  color: var(--text-dark, #334155);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.page-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.page-btn.active {
  background: var(--primary, #1e3a8a);
  color: #ffffff;
  border-color: var(--primary, #1e3a8a);
  font-weight: 700;
}

/* 서식 상세 모달 */
.form-modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  background: var(--bg-card-alt, #f8fafc);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.form-modal-meta {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
  flex-wrap: wrap;
}

.form-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.form-modal-body {
  padding: 24px;
  max-height: 75vh;
  overflow-y: auto;
}

.form-content-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  margin-bottom: 24px;
  white-space: pre-line;
}

.form-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.form-preview-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #0f172a;
  text-align: center;
}

.form-preview-card img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.form-preview-card img:hover {
  transform: scale(1.02);
}

.form-attachment-list {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 18px 20px;
}

.form-attachment-title {
  font-size: 15px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-attachment-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 12px;
}

.form-attachment-item:last-child {
  margin-bottom: 0;
}

.form-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.form-file-info i {
  font-size: 18px;
  color: #16a34a;
}

.form-file-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.form-file-size {
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 768px) {
  .board-table th:nth-child(1), .board-table td:nth-child(1),
  .board-table th:nth-child(4), .board-table td:nth-child(4) {
    display: none;
  }
  .board-search-input-wrap {
    max-width: 100%;
  }
}

/* ==========================================================================
   서식 자료실 상세 모달 (A4 / 현수막 / 디자인 시안 완벽 뷰어 프레임)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.modal-container {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-width: 900px;
  width: 92%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.form-modal-header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.form-modal-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  margin-top: 6px;
  flex-wrap: wrap;
}

.form-modal-meta strong {
  color: #1e293b;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.form-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.form-content-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 14.5px;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 20px;
  white-space: pre-line;
}

.form-preview-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.form-preview-card {
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: 1px solid #1e293b;
  transition: transform 0.2s;
}

.form-preview-card:hover {
  transform: translateY(-2px);
}

.form-preview-card img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  display: block;
  background: #0f172a;
}

.form-attachment-list {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 18px 20px;
}

.form-attachment-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   주간 주보 달력 / 주차별 프레임 네비게이터 스타일
   ========================================== */
.bulletin-calendar-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
  width: 100%;
}

/* 1. 달력 연도/월 네비게이터 */
.bulletin-calendar-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.bulletin-nav-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulletin-nav-arrow:hover {
  background: var(--primary-blue, #0284c7);
  color: #ffffff;
  border-color: var(--primary-blue, #0284c7);
  transform: scale(1.06);
}

.bulletin-nav-center {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  padding: 6px 18px;
  border-radius: 30px;
  border: 1px solid #e2e8f0;
}

.bulletin-select-year, .bulletin-select-month {
  border: none;
  background: transparent;
  font-size: 1.18rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  padding: 4px 2px;
  outline: none;
}

.bulletin-select-sep {
  color: #94a3b8;
  font-weight: 800;
}

/* 2. 주차별 선택 탭 바 */
.bulletin-week-bar {
  display: flex;
  width: 100%;
  max-width: 780px;
  margin: 0 auto 24px auto;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  gap: 4px;
  overflow-x: auto;
}

.bulletin-week-tab {
  flex: 1;
  min-width: 85px;
  padding: 10px 6px;
  text-align: center;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all 0.2s ease;
  color: #64748b;
}

.bulletin-week-tab .week-title {
  font-size: 0.95rem;
  font-weight: 800;
}

.bulletin-week-tab .week-day {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.85;
}

.bulletin-week-tab:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.bulletin-week-tab.active {
  background: #334155;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bulletin-week-tab.has-bulletin:not(.active) .week-title {
  color: #1e293b;
}

/* 3. 툴바 (크게보기 & 1/2면 필 탭) */
.bulletin-sub-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.bulletin-zoom-btn {
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
}

.bulletin-page-pill-tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  gap: 4px;
}

.bulletin-page-pill-tabs .page-pill {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulletin-page-pill-tabs .page-pill.active {
  background: var(--primary-blue, #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
}

/* 4. 이미지 뷰어 레이아웃 & 좌우 네비 화살표 */
.bulletin-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  border-radius: 14px;
  padding: 20px 10px;
  min-height: 520px;
}

.bulletin-img-wrapper {
  text-align: center;
  cursor: zoom-in;
  max-width: 90%;
}

.bulletin-main-img {
  max-width: 100%;
  max-height: 850px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.bulletin-main-img:hover {
  transform: scale(1.008);
}

.bulletin-zoom-hint {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
}

.bulletin-page-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
  z-index: 5;
}

.bulletin-page-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  transform: translateY(-50%) scale(1.1);
}

.bulletin-page-nav-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}

.bulletin-page-nav-btn.prev {
  left: 16px;
}

.bulletin-page-nav-btn.next {
  right: 16px;
}

/* 5. 주보 미등록 안내 상태 */
.bulletin-empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f8fafc;
  border-radius: 14px;
  border: 2px dashed #cbd5e1;
  margin-top: 10px;
}

.bulletin-empty-state .empty-icon {
  font-size: 44px;
  color: #94a3b8;
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .bulletin-calendar-card {
    padding: 16px 12px;
  }
  .bulletin-page-nav-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .bulletin-page-nav-btn.prev { left: 6px; }
  .bulletin-page-nav-btn.next { right: 6px; }
}

/* ==========================================================================
   ✨ 16. 사역별 맞춤 관리자 전용 작업실 (Custom Admin Workspaces) UI
   ========================================================================== */

/* 1. 작업실 대형 모달 박스 컨테이너 */
.modal-box.admin-workspace-modal-box {
  max-width: 760px;
  width: 95%;
  border-radius: 18px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* 2. 상단 4대 사역 작업실 네비게이션 탭 */
.admin-workspace-nav {
  display: flex;
  background: #f1f5f9;
  border-bottom: 2px solid #e2e8f0;
  padding: 6px 8px 0;
  gap: 6px;
  overflow-x: auto;
}

.workspace-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 700;
  color: #64748b;
  background: transparent;
  border: none;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.workspace-nav-tab:hover {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.workspace-nav-tab.active {
  color: #0284c7;
  background: #ffffff;
  border-top: 3px solid #0284c7;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.04);
}

.workspace-nav-tab i {
  font-size: 16px;
}

/* 3. 작업실 개별 본문 패널 */
.admin-workspace-pane {
  display: none;
  animation: adminPaneFade 0.25s ease-out forwards;
}

.admin-workspace-pane.active {
  display: block;
}

@keyframes adminPaneFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.workspace-header-banner {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-left: 4px solid #0284c7;
}

.workspace-header-banner h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.workspace-header-banner p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: #64748b;
}

/* 4. [설교·영상 전용] 실시간 유튜브 썸네일 프리뷰 카드 */
.admin-yt-preview-card {
  display: none;
  background: #0f172a;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  color: #ffffff;
}

.admin-yt-preview-card.show {
  display: flex;
  gap: 14px;
  align-items: center;
}

.admin-yt-thumb-box {
  width: 140px;
  height: 80px;
  background: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.admin-yt-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-yt-info-box {
  flex: 1;
}

.admin-yt-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 4px;
}

.admin-yt-detected-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.4;
  margin: 0;
}

/* 5. [주간 주보 전용] 4면 슬롯 그리드 */
.bulletin-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.bulletin-slot-card {
  background: #f8fafc;
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
  transition: all 0.2s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bulletin-slot-card.has-file {
  border-style: solid;
  border-color: #0284c7;
  background: #f0f9ff;
}

.bulletin-slot-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.bulletin-slot-preview {
  width: 100%;
  height: 100px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}

.bulletin-slot-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bulletin-slot-preview .empty-slot-text {
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.bulletin-slot-btn {
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  width: 100%;
}

.bulletin-slot-card.has-file .bulletin-slot-btn {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* 6. [옥산포토존 전용] 드래그앤드롭 영역 & 사진 그리드 */
.photo-dropzone-box {
  border: 2px dashed #0284c7;
  background: #f0f9ff;
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-dropzone-box:hover {
  background: #e0f2fe;
}

.photo-dropzone-icon {
  font-size: 32px;
  color: #0284c7;
  margin-bottom: 6px;
}

.photo-grid-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 8px;
  margin-top: 12px;
  max-height: 240px;
  overflow-y: auto;
  padding: 4px;
}

.photo-preview-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
}

.photo-preview-item img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.photo-cover-tag {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(2, 132, 199, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
}

/* 7. 모바일 반응형 대응 */
@media (max-width: 640px) {
  .bulletin-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-nav-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
  .admin-yt-preview-card.show {
    flex-direction: column;
    align-items: flex-start;
  }
  .admin-yt-thumb-box {
    width: 100%;
    height: 120px;
  }
}


