/* 
  ========================================================================
  [CHURCH WEBSITE DESIGN SYSTEM - WARM BEIGE THEME]
  ========================================================================
  * 톤 앤 매너: 따뜻함, 단정함, 아늑함, 프리미엄 미니멀리즘
  * 컬러 팔레트: Warm Beige, Cozy White, Earthy Brown
  ========================================================================
*/

/* Google Fonts 가져오기 (영문: Outfit / 한글: Noto Sans KR) */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* 주요 테마 색상 */
  --bg-cozy-white: #FCFAF7;      /* 전체 배경용 아주 부드러운 화이트 */
  --bg-beige-light: #F6F2EA;     /* 섹션 구분용 부드러운 연베이지 */
  --bg-beige-warm: #EFEAE0;      /* 카드 및 강조용 미디엄 베이지 */
  
  --primary-brown: #8D7A68;      /* 메인 브라운 포인트 색상 */
  --primary-brown-dark: #6C5C4E; /* 어두운 브라운 (호버 및 텍스트 강조) */
  --primary-brown-light: #B4A79A;/* 아주 부드러운 브라운 보더/플레이스홀더 */
  
  --text-primary: #38312B;       /* 메인 가독성 텍스트 (짙은 에스프레소 브라운) */
  --text-secondary: #6B6056;     /* 부가 설명 텍스트 (밀크초콜릿 브라운) */
  --text-muted: #958B80;         /* 옅은 회갈색 텍스트 */
  --white: #FFFFFF;
  --error-color: #C05C5C;        /* 경고/에러 색상 (너무 튀지 않는 톤다운 레드) */
  --success-color: #5C8C6B;      /* 성공 색상 (단정한 Sage Green) */
  
  /* 디자인 구성요소 */
  --font-family: 'Outfit', 'Noto Sans KR', sans-serif;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  
  /* 부드러운 그림자 효과 */
  --shadow-sm: 0 2px 8px rgba(141, 122, 104, 0.05);
  --shadow-md: 0 8px 24px rgba(141, 122, 104, 0.08);
  --shadow-lg: 0 16px 40px rgba(141, 122, 104, 0.12);
  
  /* 트랜지션 (Micro-animations) */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-quick: all 0.15s ease;
}

/* 1. 기본 스타일 리셋 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-cozy-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-quick);
}

button, input, textarea, select {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 2. 레이아웃 구조 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 80px 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 60px 0;
  }
}

/* 3. 헤더 (Header) */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(252, 250, 247, 0.85); /* 반투명 효과 */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
  transition: var(--transition-smooth);
}

.main-header.scrolled {
  background-color: rgba(252, 250, 247, 0.95);
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

/* 교회 로고 및 타이틀 */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: var(--transition-smooth);
}

.logo:hover .logo-img {
  opacity: 0.85;
  transform: scale(1.02);
}

/* 기존 텍스트 로고 숨김 (SVG 이미지 사용) */
.logo-icon, .logo-text {
  display: none;
}

/* 네비게이션 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > a, .main-nav > .nav-dropdown-wrapper {
  padding: 0 24px;
  border-right: 1px solid rgba(141, 122, 104, 0.2);
}

.main-nav > a:last-child, .main-nav > .nav-dropdown-wrapper:last-child {
  border-right: none;
}

.main-nav > .admin-badge-btn, .main-nav > .btn {
  border-right: none;
  margin-left: 24px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-brown);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-brown);
  transition: var(--transition-smooth);
}

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

/* 드롭다운 네비게이션 스타일 추가 */
.nav-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: var(--white);
  min-width: 180px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(141, 122, 104, 0.1);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  z-index: 1001;
}

/* 호버 시 부드럽게 나타나는 효과 */
.nav-dropdown-wrapper:hover .nav-dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-content a {
  display: block;
  padding: 10px 24px;
  font-size: 0.95rem;
  font-weight: 600; /* 조금 더 굵게 */
  color: var(--text-primary); /* 제일 진한 글씨색으로 확 다르게 */
  text-align: center;
  transition: var(--transition-quick);
  border-bottom: 1px solid rgba(141, 122, 104, 0.05);
}

.nav-dropdown-content a:last-child {
  border-bottom: none;
}

.nav-dropdown-content a:hover {
  color: var(--primary-brown-dark);
  background-color: var(--bg-beige-warm); /* 호버 시 배경도 조금 더 진하게 */
}

.admin-badge-btn {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid var(--primary-brown-light);
  color: var(--primary-brown);
  font-weight: 500;
  background-color: transparent;
}

.admin-badge-btn:hover {
  background-color: var(--primary-brown);
  color: var(--white);
  border-color: var(--primary-brown);
}

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  margin-bottom: 6px;
  transition: var(--transition-smooth);
}

.mobile-menu-toggle span:last-child {
  margin-bottom: 0;
}

/* 모바일 메뉴 열렸을 때 X 형태 */
.mobile-menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 모바일 사이드 드로어 */
.mobile-nav-drawer {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100vh - 80px);
  background-color: var(--bg-cozy-white);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  gap: 24px;
  transform: translateX(100%);
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-lg);
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.mobile-nav-drawer .nav-link {
  font-size: 1.25rem;
  padding: 12px 0;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
}

/* 4. 버튼 및 요소 공통 스타일 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn-primary {
  background-color: var(--primary-brown);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-brown-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--bg-beige-warm);
  color: var(--text-primary);
  border: 1px solid rgba(141, 122, 104, 0.2);
}

.btn-secondary:hover {
  background-color: var(--bg-beige-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

/* 5. 메인 홈 페이지 (Home Component) */

/* 메인 영웅 배너 */
.hero-section {
  position: relative;
  padding: 120px 0;
  background-color: var(--bg-beige-light);
  overflow: hidden;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
}

/* 배경에 세련된 물방울/감성 셰이프 추가 */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,234,224,0.6) 0%, rgba(252,250,247,0) 70%);
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -1px;
  word-break: keep-all;
}

.hero-content h1 span {
  color: var(--primary-brown);
}

.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  word-break: keep-all;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-img-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}

.hero-img-fallback {
  width: 100%;
  height: 100%;
  background-color: var(--bg-beige-warm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.hero-img-fallback svg {
  width: 64px;
  height: 64px;
  color: var(--primary-brown);
  margin-bottom: 16px;
  opacity: 0.8;
}

/* 최근 주보 및 설교 링크 영역 */
.quick-board-section {
  background-color: var(--white);
  padding: 60px 0;
  border-bottom: 1px solid rgba(141, 122, 104, 0.05);
}

.quick-board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.quick-card {
  background-color: var(--bg-cozy-white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  border: 1px solid rgba(141, 122, 104, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  transition: var(--transition-smooth);
}

.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(141, 122, 104, 0.3);
}

.quick-card-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-brown);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.quick-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.quick-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* 최신 공지사항 섹션 */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .sub-title {
  color: var(--primary-brown);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.notice-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(141, 122, 104, 0.05);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.notice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.notice-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.notice-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.notice-badge {
  background-color: var(--bg-beige-warm);
  color: var(--primary-brown);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.notice-badge.important {
  background-color: rgba(192, 92, 92, 0.1);
  color: var(--error-color);
}

.notice-card h4 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.notice-preview {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.notice-more-btn {
  font-size: 0.9rem;
  color: var(--primary-brown);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.notice-more-btn:hover {
  color: var(--primary-brown-dark);
}

/* 6. 교회 소개 페이지 (About Component) */
.about-hero {
  background-color: var(--bg-beige-light);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.about-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.about-content-section {
  background-color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

.about-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-brown);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 60px;
}

.philosophy-card {
  background-color: var(--bg-cozy-white);
  padding: 32px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(141, 122, 104, 0.08);
}

.philosophy-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-brown-light);
  margin-bottom: 16px;
  display: block;
}

.philosophy-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}


/* 7. 말씀/찬양 게시판 (Sermons Component) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.video-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(141, 122, 104, 0.05);
  transition: var(--transition-smooth);
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  cursor: pointer;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.video-card:hover .video-thumbnail {
  opacity: 0.85;
}

.play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn-circle {
  width: 60px;
  height: 60px;
  background-color: rgba(252, 250, 247, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  color: var(--primary-brown);
}

.play-btn-circle svg {
  width: 24px;
  height: 24px;
  transform: translateX(2px);
}

.video-card:hover .play-btn-circle {
  background-color: var(--primary-brown);
  color: var(--white);
  transform: scale(1.1);
}

.iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 24px;
}

.video-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}

.video-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.video-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* 8. 교회 소식 및 주보 게시판 (Bulletins Component) */
.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.bulletin-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(141, 122, 104, 0.08);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bulletin-item:hover {
  border-color: rgba(141, 122, 104, 0.3);
  box-shadow: var(--shadow-md);
}

.bulletin-header-summary {
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.bulletin-title-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bulletin-item-tag {
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 600;
  background-color: var(--bg-beige-light);
  color: var(--text-secondary);
}

.bulletin-item-tag.notice {
  background-color: rgba(192, 92, 92, 0.08);
  color: var(--error-color);
}

.bulletin-item-tag.file-attached {
  background-color: rgba(92, 140, 107, 0.08);
  color: var(--success-color);
}

.bulletin-header-summary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.bulletin-date-toggle {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bulletin-item-date {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toggle-arrow {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
  color: var(--primary-brown);
}

.bulletin-item.expanded .toggle-arrow {
  transform: rotate(180deg);
}

.bulletin-body-detail {
  padding: 0 32px 32px 32px;
  border-top: 1px solid rgba(141, 122, 104, 0.05);
  display: none;
}

.bulletin-item.expanded .bulletin-body-detail {
  display: block;
  animation: slideDown 0.3s ease-out;
}

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

.bulletin-detail-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
  white-space: pre-wrap; /* 줄바꿈 반영 */
}

.bulletin-attachment-card {
  background-color: var(--bg-beige-light);
  border-radius: var(--border-radius-sm);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px dashed rgba(141, 122, 104, 0.2);
}

.attachment-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
}

.attachment-info svg {
  width: 20px;
  height: 20px;
  color: var(--primary-brown);
}


/* 9. 예배시간 및 오시는 길 (Footer) */
.church-footer {
  background-color: var(--bg-beige-light);
  border-top: 1px solid rgba(141, 122, 104, 0.1);
  padding: 80px 0 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-info-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-info-column h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-brown);
}

.time-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
}

.time-table th, .time-table td {
  padding: 10px 0;
  text-align: left;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
}

.time-table th {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding-right: 24px;
}

.time-table td {
  color: var(--text-primary);
  font-weight: 500;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-brown);
}

/* 오시는 길 지도 맵박스 */
.footer-map-column h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-map-column h3::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--primary-brown);
}

.map-container {
  width: 100%;
  height: 280px;
  background-color: var(--bg-beige-warm);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(141, 122, 104, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-secondary);
  height: 100%;
  width: 100%;
}

.map-placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--primary-brown);
  margin-bottom: 12px;
}

.map-details {
  background-color: var(--white);
  padding: 12px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
  border: 1px solid rgba(141, 122, 104, 0.05);
}

.footer-bottom {
  border-top: 1px solid rgba(141, 122, 104, 0.1);
  padding-top: 32px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}


/* 10. 관리자 화면 (Admin Dashboard Component) */
.admin-wrapper {
  max-width: 1000px;
  margin: 60px auto;
  padding: 0 24px;
}

.admin-login-card {
  max-width: 420px;
  margin: 100px auto;
  background-color: var(--white);
  padding: 48px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(141, 122, 104, 0.08);
  text-align: center;
}

.admin-login-card h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.admin-login-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(141, 122, 104, 0.2);
  background-color: var(--bg-cozy-white);
  font-size: 1rem;
  transition: var(--transition-quick);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-brown);
  background-color: var(--white);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-brown);
}

/* 관리자 대시보드 헤더 */
.admin-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
  padding-bottom: 20px;
}

.admin-dashboard-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.admin-dashboard-header span {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 플래시 메세지(알람) */
.flash-messages {
  margin-bottom: 24px;
}

.alert {
  padding: 16px 20px;
  border-radius: var(--border-radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background-color: rgba(92, 140, 107, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(92, 140, 107, 0.2);
}

.alert-error, .alert-danger {
  background-color: rgba(192, 92, 92, 0.1);
  color: var(--error-color);
  border: 1px solid rgba(192, 92, 92, 0.2);
}

.alert-info {
  background-color: var(--bg-beige-light);
  color: var(--text-secondary);
  border: 1px solid rgba(141, 122, 104, 0.15);
}

/* 대시보드 탭 레이아웃 및 폼 그리드 */
.admin-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--bg-beige-warm);
}

.tab-btn {
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  position: relative;
  bottom: -2px;
}

.tab-btn.active {
  color: var(--primary-brown);
  border-bottom: 2px solid var(--primary-brown);
}

.admin-pane {
  display: none;
}

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

.admin-grid-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

@media (max-width: 900px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
  }
}

.admin-form-card {
  background-color: var(--white);
  padding: 36px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(141, 122, 104, 0.08);
  box-shadow: var(--shadow-sm);
}

.admin-form-card h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  font-weight: 700;
  border-left: 4px solid var(--primary-brown);
  padding-left: 12px;
}

/* 관리 목록 테이블 및 리스트 */
.admin-list-card {
  background-color: var(--white);
  padding: 36px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(141, 122, 104, 0.08);
  box-shadow: var(--shadow-sm);
  max-height: 700px;
  overflow-y: auto;
}

.admin-list-card h3 {
  font-size: 1.35rem;
  margin-bottom: 24px;
  font-weight: 700;
}

.admin-table-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(141, 122, 104, 0.1);
}

.admin-table-item:last-child {
  border-bottom: none;
}

.admin-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 75%;
}

.admin-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  word-break: break-all;
}

.admin-item-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-delete-btn {
  background-color: transparent;
  color: var(--error-color);
  border: 1px solid rgba(192, 92, 92, 0.2);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-quick);
}

.admin-delete-btn:hover {
  background-color: var(--error-color);
  color: var(--white);
  border-color: var(--error-color);
}


/* 11. 반응형 네비게이션 미디어 쿼리 */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  
  .hero-content h1 {
    font-size: 2.3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .quick-board-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .bulletin-home-grid,
  .gallery-home-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-section-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center;
  }
}

/* ========================================================================
   [ADDITIONAL DESIGN STYLES - BULLETIN & GALLERY SECTIONS]
   ======================================================================== */

/* 주보 뷰어 섹션 */
.bulletin-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.bulletin-home-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(141, 122, 104, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.bulletin-home-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(141, 122, 104, 0.2);
}

.bulletin-home-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid rgba(141, 122, 104, 0.05);
  background-color: #fdfdfd;
}

.bulletin-home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.bulletin-home-card:hover .bulletin-home-img img {
  transform: scale(1.03);
}

.bulletin-home-info {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bulletin-home-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.bulletin-home-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.bulletin-home-info .btn {
  width: 100%;
  margin-top: 8px;
}


/* 갤러리 섹션 */
.gallery-home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.gallery-home-card {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(141, 122, 104, 0.05);
  transition: var(--transition-smooth);
}

.gallery-home-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.gallery-home-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #000;
}

.gallery-home-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.gallery-home-card:hover .gallery-home-img img {
  transform: scale(1.05);
  opacity: 0.85;
}

.gallery-home-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(56, 49, 43, 0.6) 0%, rgba(56, 49, 43, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-home-card:hover .gallery-home-overlay {
  opacity: 1;
}

.gallery-home-overlay span {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gallery-home-info {
  padding: 24px;
}

.gallery-home-info h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.gallery-home-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
