/* ============================================================
   성산교회 홈페이지 스타일시트
   컬러 톤: 브라운 + 베이지 (따뜻하고 클래식한 분위기)
   ============================================================ */

/* ---------- 1. 컬러 & 기본 변수 ---------- */
:root {
  --brown-900: #2e2119;   /* 가장 짙은 브라운 (푸터, 강조 배경) */
  --brown-700: #4a372a;   /* 짙은 브라운 (제목, 헤더) */
  --brown-500: #7a5c44;   /* 중간 브라운 (버튼, 포인트) */
  --brown-300: #a98d70;   /* 밝은 브라운 (보조 텍스트) */
  --gold:      #c9a36a;   /* 골드 포인트 */
  --beige-100: #faf6ef;   /* 가장 밝은 베이지 (섹션 배경) */
  --beige-200: #f1e8da;   /* 베이지 (카드, 배경 변화) */
  --beige-300: #e3d5c0;   /* 진한 베이지 (테두리) */
  --white:     #ffffff;
  --text:      #3d3226;   /* 본문 텍스트 */
  --text-light:#8a7a66;   /* 옅은 텍스트 */

  --font-serif: 'Nanum Myeongjo', serif;      /* 제목용 */
  --font-sans:  'Noto Sans KR', sans-serif;   /* 본문용 */

  --container: 1160px;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(74, 55, 42, 0.10);
}

/* ---------- 2. 리셋 & 공통 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 섹션 공통 타이틀 */
.section-eyebrow {
  text-align: center;
  letter-spacing: 4px;
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--brown-700);
  text-align: center;
  margin-bottom: 16px;
}

.section-title--left { text-align: left; margin-bottom: 0; }

.section-desc {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 50px;
}

/* 버튼 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s ease;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.btn--light {
  background: var(--white);
  color: var(--brown-700);
}
.btn--light:hover { background: var(--gold); color: var(--white); }

.btn--outline {
  border: 1px solid var(--brown-500);
  color: var(--brown-500);
  padding: 8px 24px;
  font-size: 14px;
}
.btn--outline:hover { background: var(--brown-500); color: var(--white); }

/* 스크롤 리빌 효과 (js/main.js 와 연동) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 퀵링크 카드는 스크롤에 따라 반복적으로 나타났다 사라지므로 더 느리고 부드럽게 */
.quicklinks .reveal {
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 3. 헤더 ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(46, 33, 25, 0.55); /* 반투명 브라운 */
  backdrop-filter: blur(8px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* 스크롤 시 진해지는 헤더 (js 로 .scrolled 클래스 추가) */
.header.scrolled {
  background: rgba(46, 33, 25, 0.95);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--white);
}

.logo__image {
  height: 48px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 42px;
}

.nav__list a {
  color: var(--white);
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  position: relative;
}

.nav__list a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav__list a:hover::after { width: 100%; }

.nav__list a.active { color: var(--gold); }
.nav__list a.active::after { width: 100%; }

/* 드롭다운 서브메뉴 (교회소개 / 예배안내 / 말씀과 찬양 / 교회소식) */
.nav__item {
  position: relative;
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 190px;
  background: var(--brown-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 50;
}

/* 호버로 펼치는 드롭다운은 데스크톱 전용 동작.
   768px 이하에서는 .nav__dropdown이 항상 펼쳐진 상태(static)라
   이 규칙이 적용되면 안 되므로 데스크톱 너비에서만 켠다. */
@media (min-width: 769px) {
  .nav__item:hover .nav__dropdown,
  .nav__item:focus-within .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.nav__dropdown a {
  display: block;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  color: var(--beige-200);
  white-space: nowrap;
}
.nav__dropdown a::after { display: none; }
.nav__dropdown a:hover { background: rgba(255, 255, 255, 0.08); color: var(--gold); }

.header__util {
  display: flex;
  align-items: center;
  gap: 18px;
}

.util-link {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
}
.util-link:hover { color: var(--gold); }

/* 햄버거 버튼 (모바일 전용) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 4. 히어로 (메인 배너) ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 68%, rgba(226, 186, 120, 0.35), transparent 55%),
    radial-gradient(circle at 15% 20%, rgba(255, 233, 196, 0.12), transparent 45%),
    url('../images/main-image.jpg');
  background-size: cover;
  background-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(46,33,25,0.5), rgba(46,33,25,0.2) 55%, rgba(46,33,25,0.6));
}

.hero__content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding-top: 78px;
}

.hero__year {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 4px;
  margin-bottom: 14px;
}

.hero__title {
  line-height: 1.25;
  margin-bottom: 28px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.hero__title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 16px;
}

.hero__title-plain {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  opacity: 0.85;
}

.hero__title-accent {
  font-family: 'Nanum Pen Script', cursive;
  font-weight: 400;
  font-size: clamp(46px, 7.5vw, 80px);
  color: var(--gold);
}

.hero__title-accent--big {
  font-size: clamp(58px, 10vw, 108px);
  color: var(--white);
}

.hero__verse {
  font-size: clamp(14px, 2vw, 17px);
  opacity: 0.9;
  margin-bottom: 40px;
}
.hero__verse span { opacity: 0.7; font-size: 0.9em; }

/* ---------- 5. 퀵링크 카드 ---------- */
.quicklinks {
  margin-top: -70px;         /* 히어로에 겹치게 배치 */
  position: relative;
  z-index: 2;
  padding-bottom: 40px;
}

.quicklinks__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.quick-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 40px 20px 34px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quick-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(74, 55, 42, 0.18);
}

.quick-card__icon { font-size: 38px; margin-bottom: 14px; }

.quick-card h3 {
  font-size: 19px;
  color: var(--brown-700);
  margin-bottom: 4px;
}

.quick-card p {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* 가운데 강조 카드 */
.quick-card--accent {
  background: var(--brown-500);
}
.quick-card--accent h3 { color: var(--white); }
.quick-card--accent p  { color: rgba(255,255,255,0.75); }

/* ---------- 6. 환영 섹션 ---------- */
.welcome {
  padding: 90px 0;
  background: var(--white);
}

.welcome__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 60px;
}

/* 칸 제목이 화면 폭과 상관없이 항상 한 줄로 보이도록,
   고정 3칸 대신 카드 하나에 필요한 최소 폭만큼만 확보하고
   자리가 부족하면 자동으로 줄 수를 줄인다 (예: 함께하는 선교지) */
.welcome__grid--fit {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.welcome__grid--fit .welcome-item h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-item {
  background: var(--beige-100);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  padding: 36px 32px;
}

.welcome-item h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--brown-700);
  margin-bottom: 12px;
}

.welcome-item p {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 20px;
  min-height: 50px;
}

/* 회원가입 · 로그인 · 회원 글쓰기 공용 폼 */
.form-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
}
.form-card--wide { max-width: 640px; }
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--beige-300);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--brown-500); }
.form-row { display: flex; gap: 12px; }
.form-row .form-field { flex: 1; }
.form-error {
  color: #b3423d;
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 1em;
}
.form-notice {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  text-align: center;
}
.form-notice a { color: var(--brown-500); text-decoration: underline; }
.form-submit {
  width: 100%;
  background: var(--brown-700);
  color: var(--white);
  border: none;
  padding: 13px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.form-submit:hover { background: var(--brown-900); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.status-banner {
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14px;
  margin-bottom: 20px;
}
.status-banner--pending { background: #fbf1d9; color: #7a5c1e; border: 1px solid #ecd9a3; }
.status-banner--info { background: var(--beige-200); color: var(--text); }

/* 오늘의 기도: 누구나 남기는 기도문 게시판 */
.prayer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.prayer-card {
  background: var(--beige-100);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.prayer-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.prayer-card__name {
  font-weight: 700;
  color: var(--brown-700);
  font-size: 14px;
}
.prayer-card__date {
  color: var(--text-light);
  font-size: 12px;
}
.prayer-card__content {
  color: var(--text);
  font-size: 15px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.prayer-card__delete {
  border: 1px solid var(--beige-300);
  background: var(--white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--text-light);
  cursor: pointer;
}
.prayer-card__delete:hover { background: #fbecec; color: #b3423d; border-color: #e8bcbc; }

/* 오시는길: 지도 (구글맵 + 지도 이미지, 같은 사이즈로 통일) */
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-frame iframe,
.map-frame img {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}
.map-frame + .map-frame { margin-top: 24px; }

/* 유튜브 영상 임베드 (16:9 반응형) */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 섬기는 사람들: 교역자 · 시무장로 인물 사진 카드 */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 24px;
  margin: 24px 0 44px;
}
.staff-card { text-align: center; }
.staff-card__photo {
  width: 120px;
  aspect-ratio: 3 / 4;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--beige-200);
  border: 1px dashed var(--brown-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
}
.staff-card__photo span { padding: 0 8px; }
/* 사진이 준비되면 위 .staff-card__photo 안의 <span> 대신
   <img src="images/staff/파일명.jpg" alt="이름" /> 을 넣으세요 */
.staff-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.staff-card h3 {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--brown-700);
  margin-bottom: 4px;
}
.staff-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---------- 7. 예배 안내 ---------- */
.worship {
  padding: 90px 0;
  background: var(--beige-100);
}

.worship__table-wrap {
  max-width: 760px;
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.worship__table {
  width: 100%;
  border-collapse: collapse;
}

.worship__table th {
  background: var(--brown-700);
  color: var(--white);
  font-weight: 500;
  padding: 16px;
  font-size: 15px;
}

.worship__table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid var(--beige-200);
  font-size: 15px;
}

.worship__table tr:last-child td { border-bottom: none; }
.worship__table tbody tr:hover { background: var(--beige-100); }

/* ---------- 8. 금주의 말씀과 찬양 ---------- */
.sermon {
  padding: 90px 0;
  background: var(--white);
}

.sermon__grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 24px;
  margin-top: 50px;
  align-items: stretch;
}

.sermon-card--side {
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(160deg, var(--beige-200), var(--beige-300));
  transition: transform 0.3s ease;
}
.sermon-card--side:hover { transform: translateY(-6px); }

.sermon-card--side h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--brown-700);
  margin-bottom: 6px;
}

.sermon-card--side p {
  color: var(--brown-300);
  font-size: 13px;
  letter-spacing: 1px;
}

.sermon-card--dark {
  background: linear-gradient(160deg, var(--brown-500), var(--brown-700));
}
.sermon-card--dark h3 { color: var(--white); }
.sermon-card--dark p  { color: rgba(255,255,255,0.7); }

/* 유튜브 반응형 래퍼 (16:9 비율 유지) */
.video-wrap {
  position: relative;
  padding-top: 56.25%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 9. 교회 소식 + 앨범 ---------- */
.news {
  padding: 90px 0;
  background: var(--beige-100);
}

.news__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
}

.news__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
}

.more-link {
  color: var(--brown-500);
  font-size: 14px;
  border-bottom: 1px solid var(--brown-500);
}

.news__list ul li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--beige-300);
}

.news__list ul li a {
  color: var(--text);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news__list ul li a:hover { color: var(--brown-500); }

.news__tag {
  color: var(--brown-500);
  font-weight: 700;
}

.news__author {
  color: var(--text-light);
  font-size: 12px;
  font-weight: 400;
}

.news__list time {
  color: var(--text-light);
  font-size: 13px;
  flex-shrink: 0;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.album-grid img {
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.3s ease;
}
.album-grid img:hover { transform: scale(1.03); }

/* ---------- 10. 온라인 헌금 안내 ---------- */
.offering {
  padding: 70px 0;
  background: var(--brown-700);
  color: var(--white);
}

.offering__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.offering__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 10px;
}

.offering__text p {
  opacity: 0.75;
  font-size: 15px;
}

.offering__bank {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.offering__account {
  background: var(--gold);
  color: var(--brown-900);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: 2px;
  padding: 10px 28px;
  border-radius: 8px;
  display: inline-block;
}

/* ---------- 11. 푸터 ---------- */
.footer {
  background: var(--brown-900);
  color: rgba(255,255,255,0.85);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 70px 20px;
  text-align: center;
}

.contact-item__icon { font-size: 30px; display: block; margin-bottom: 12px; }

.contact-item h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--gold);
}

.contact-item p {
  font-size: 14px;
  opacity: 0.8;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer__name {
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 3px;
}

.footer__copy {
  font-size: 12px;
  opacity: 0.6;
}

.footer__admin-link {
  font-size: 12px;
  opacity: 0.45;
}
.footer__admin-link:hover { opacity: 0.8; color: var(--gold); }

/* ---------- 12. 서브페이지 공통 (교회소개/예배안내/말씀과찬양/교회소식/오시는길 하위 페이지) ---------- */
.page-hero {
  padding: 150px 0 56px;
  background: linear-gradient(135deg, #5a4433 0%, #7a5c44 45%, #a98d70 100%);
  color: var(--white);
  text-align: center;
}

.page-hero__eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
}

.breadcrumb {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; opacity: 0.5; }

.page-content { padding: 80px 0; }
.page-content--tight { padding: 60px 0; }
.page-content--narrow .container { max-width: 760px; }
.page-content--medium .container { max-width: 920px; }
.page-content + .page-content { padding-top: 0; }

/* 담임목사 인사말: 텍스트 + 사진 2단 배치 */
.greeting-layout {
  display: flex;
  align-items: flex-start;
  gap: 50px;
}
.greeting-layout__text { flex: 1.3; }
.greeting-layout__photo { flex: 1; max-width: 300px; }
.greeting-layout__photo img,
.greeting-layout__photo .placeholder-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  margin-bottom: 0;
}
.greeting-layout__photo figcaption {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.prose p { color: var(--text); margin-bottom: 18px; }
.prose h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--brown-700);
  margin: 32px 0 12px;
}
.prose strong { color: var(--brown-700); }

/* 교회연혁 타임라인 */
.timeline {
  border-left: 2px solid var(--beige-300);
  margin-left: 12px;
  padding-left: 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.timeline-item { position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item time {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--brown-500);
  margin-bottom: 4px;
}
.timeline-item p { color: var(--text); }

/* 새가족 안내 등 절차 안내 */
.step-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.step-item {
  background: var(--beige-100);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-item__num {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
}
.step-item h3 { font-size: 17px; margin-bottom: 8px; color: var(--brown-700); }
.step-item p { font-size: 14px; color: var(--text-light); }

/* 준비 중 안내 박스 (지도, 영상 등 추후 연동 예정인 자리) */
.placeholder-box {
  height: 320px;
  border-radius: var(--radius);
  background: var(--beige-200);
  border: 1px dashed var(--brown-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 50px;
  text-align: center;
  padding: 20px;
}
.placeholder-box span { font-size: 30px; }
.placeholder-box strong { color: var(--brown-500); font-size: 15px; }

.album-grid--wide { grid-template-columns: repeat(4, 1fr); }

/* 교회소식 목록 빈 상태 / 상세 페이지 (Firebase 연동) */
.news__empty {
  padding: 30px 4px;
  color: var(--text-light);
  font-size: 14px;
  text-align: center;
}

.news-detail__meta {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 10px;
}

.news-detail__title {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 28px);
  color: var(--brown-700);
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige-300);
}

.news-detail__body {
  color: var(--text);
  line-height: 1.9;
  min-height: 120px;
  margin-bottom: 36px;
}

.news-detail__empty {
  color: var(--text-light);
  padding: 40px 0;
  text-align: center;
}

.news-detail__attachment {
  display: inline-block;
  margin-bottom: 20px;
  margin-right: 10px;
}

/* ============================================================
   13. 반응형 (태블릿 & 모바일)
   ============================================================ */

/* 태블릿 이하 */
@media (max-width: 900px) {
  .welcome__grid  { grid-template-columns: 1fr; gap: 24px; }
  .staff-grid     { grid-template-columns: repeat(2, 1fr); }
  .sermon__grid   { grid-template-columns: 1fr; }
  .sermon-card--side { padding: 40px 20px; }
  .news__grid     { grid-template-columns: 1fr; gap: 50px; }
  .footer__contact { grid-template-columns: 1fr; gap: 34px; padding: 50px 20px; }
}

/* 모바일 */
@media (max-width: 768px) {
  /* 모바일 내비게이션 */
  .menu-toggle { display: flex; }

  .util-link { display: none; }

  .nav {
    position: fixed;
    top: 78px; left: 0; right: 0;
    background: rgba(46, 33, 25, 0.97);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }

  .nav.open { max-height: calc(100vh - 78px); overflow-y: auto; }

  .nav__list {
    flex-direction: column;
    gap: 0;
    padding: 10px 0 20px;
  }

  .nav__list a {
    display: block;
    padding: 14px 28px;
    font-size: 17px;
  }
  .nav__list a::after { display: none; }

  /* 모바일에서는 호버 대신, 하위 메뉴를 항목 아래 항상 펼쳐서 보여줌 */
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    min-width: 0;
    background: rgba(0, 0, 0, 0.15);
    border: none;
    box-shadow: none;
    border-radius: 0;
    margin: 0 20px 6px;
    padding: 4px;
  }

  .nav__dropdown a {
    padding: 10px 22px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
  }

  .hero { min-height: 80vh; }

  .quicklinks { margin-top: -50px; }
  .quicklinks__grid { grid-template-columns: 1fr; gap: 16px; }
  .quick-card { padding: 28px 20px; }

  .welcome, .worship, .sermon, .news { padding: 60px 0; }

  .worship__table th,
  .worship__table td { padding: 12px 8px; font-size: 14px; }

  .offering__inner { flex-direction: column; text-align: center; }

  .page-hero { padding: 120px 0 40px; }
  .page-content { padding: 50px 0; }
  .album-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .timeline { margin-left: 4px; padding-left: 24px; }
  .timeline-item::before { left: -31px; }

  .greeting-layout { flex-direction: column-reverse; gap: 30px; }
  .greeting-layout__photo { max-width: 220px; margin: 0 auto; }
}
