:root {
  --color-primary: #F06BA8;       /* 핫핑크 (배지, 버튼, 포인트) */
  --color-primary-dark: #5B2A63;  /* 짙은 자주색 (제목, 강조 텍스트) */
  --color-bg: #FDF3F6;            /* 은은한 블러쉬 화이트 배경 */
  --color-text: #3A2A38;          /* 다크 플럼 그레이 텍스트 */
  --color-text-sub: #A98B98;      /* 연한 로즈 그레이 */
  --color-border: #F5D9E3;        /* 연핑크 구분선 */
  --gradient-hero: linear-gradient(180deg, #AFD8EC 0%, #E3B8D9 50%, #F4A8C4 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}
a { text-decoration: none; color: inherit; }

/* ---- 상단 유틸바 ---- */
.utility-bar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 12px;
  text-align: right;
  padding: 4px 24px;
}
.utility-bar a { color: #fff; margin-left: 12px; }

/* ---- 헤더 / GNB ---- */
.header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}
.gnb {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 12px 0;
  background: #E8A9B0;   /* 참고 이미지 하단 내비 톤: 더스티 로즈 */
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

/* ---- 히어로 (참고 이미지처럼 하늘색→핑크 그라데이션) ---- */
.hero {
  width: 100%;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-image: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}
.hero-title {
  color: var(--color-primary-dark);
  font-size: 42px;
  font-weight: 900;
  margin: 0 0 14px;
  letter-spacing: -1px;
}
.hero-sub {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* ---- 공통 섹션 타이틀 ---- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--color-primary-dark);
  padding-bottom: 8px;
}
.section-title .more { color: var(--color-primary); font-size: 14px; }

/* ---- 주일설교 ---- */
.sermon-box {
  display: flex;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
}
.sermon-thumb {
  position: relative;
  width: 45%;
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #F0D6E0;
}
.sermon-thumb .play-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.sermon-info {
  flex: 1;
  padding: 24px;
}
.sermon-info h3 { margin: 0 0 12px; font-size: 22px; color: var(--color-primary-dark); }
.sermon-info p { margin: 4px 0; color: var(--color-text-sub); font-size: 14px; }

/* ---- 3단 리스트 (교회소식/교우소식/주보) ---- */
.list-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.list-column ul { list-style: none; padding: 0; margin: 0; }
.list-column li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- 하단 배너 그리드 ---- */
.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.banner-card {
  position: relative;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  color: #fff;
  font-weight: 700;
}
.banner-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.30), rgba(0,0,0,0));
  z-index: 0;
}
.banner-card span { position: relative; z-index: 1; }

@media (max-width: 768px) {
  .sermon-box { flex-direction: column; }
  .sermon-thumb { width: 100%; height: 200px; }
  .list-columns { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 30px; }
}

/* =====================================================================
   아래부터는 실제 홈페이지에 맞춰 추가한 부분입니다.
   (위쪽은 미리보기 디자인의 원본 스타일 그대로)
   ===================================================================== */

html { scroll-behavior: smooth; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; }
section[id], .hero { scroll-margin-top: 12px; }

/* 헤더 로고 */
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 800; color: var(--color-primary-dark); letter-spacing: -0.5px;
}
.brand-icon { font-size: 26px; }

/* 메뉴 */
.gnb a { color: #fff; padding: 2px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.gnb a:hover { border-color: #fff; }

/* 히어로 */
.hero { padding: 70px 20px; }
.hero-inner { max-width: 900px; }
.hero-title { white-space: pre-line; line-height: 1.3; }
.hero-verse { margin: 18px auto 0; max-width: 620px; color: var(--color-primary-dark); opacity: .75; font-size: 14px; }

/* 섹션 제목 옆 링크 */
.section-title .more:hover { text-decoration: underline; }
.section-title small { font-size: 13px; font-weight: 500; color: var(--color-text-sub); }

/* 주일설교 썸네일 */
.sermon-thumb { background-image: linear-gradient(135deg, #E3B8D9, #AFD8EC); display: block; }
.play-circle {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary-dark); font-size: 20px; padding-left: 4px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); transition: transform .2s;
}
a.sermon-thumb:hover .play-circle { transform: translate(-50%, -50%) scale(1.08); }
.sermon-info .watch {
  display: inline-block; margin-top: 16px; background: var(--color-primary); color: #fff;
  padding: 8px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.empty { color: var(--color-text-sub); font-size: 14px; padding: 16px 0; }

/* 교회소식 / 교우소식 / 주보 */
.list-column h4 {
  margin: 0 0 6px; font-size: 16px; color: var(--color-primary-dark);
  padding-bottom: 8px; border-bottom: 2px solid var(--color-primary);
}
.list-column li { display: flex; gap: 10px; justify-content: space-between; }
.list-column li .t { overflow: hidden; text-overflow: ellipsis; }
.list-column li .d { flex: none; color: var(--color-text-sub); font-size: 12px; }
.pill {
  display: inline-block; flex: none; background: #FCE3EE; color: var(--color-primary);
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-right: 6px;
}

/* 오늘의 QT */
.qt-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px;
  padding: 28px 32px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
}
.qt-ref { font-size: 17px; font-weight: 700; color: var(--color-primary-dark); margin-bottom: 10px; }
.qt-date { font-size: 13px; color: var(--color-primary); font-weight: 700; margin-bottom: 6px; }
.qt-text { white-space: pre-line; font-size: 16px; line-height: 1.8; margin: 0; }
.qt-reflect-label { font-size: 13px; font-weight: 700; color: var(--color-text-sub); margin-bottom: 6px; }
.qt-reflect { margin: 0; font-size: 15px; }

/* 교육 · 행사 */
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.program-card {
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.program-when { font-size: 13px; color: var(--color-primary); font-weight: 700; }
.program-name { font-size: 18px; font-weight: 800; color: var(--color-primary-dark); }
.program-desc { font-size: 14px; color: var(--color-text); margin: 0; }

/* 기도요청 */
.prayer-wrap {
  background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 28px 32px;
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px;
}
.prayer-note { font-size: 14px; color: var(--color-text); margin: 0; }
.form-status { margin-top: 14px; background: #FCE3EE; color: var(--color-primary-dark); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--color-primary-dark); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--color-border); border-radius: 10px; padding: 11px 13px;
  font: inherit; font-size: 14px; background: var(--color-bg); color: var(--color-text);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--color-primary); border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }
.btn-pink {
  background: var(--color-primary); color: #fff; border: none; border-radius: 999px;
  padding: 11px 26px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-pink:hover { filter: brightness(0.95); }

/* 예배안내 / 찾아오는 길 */
.worship-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.time-table { background: #fff; border: 1px solid var(--color-border); border-radius: 14px; padding: 6px 22px; }
.time-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--color-border); }
.time-row:last-child { border-bottom: none; }
.time-name { font-weight: 700; }
.time-detail { font-size: 13px; color: var(--color-text-sub); }
.time-hour { font-weight: 800; color: var(--color-primary-dark); }
.map-box {
  border-radius: 14px; min-height: 240px; background: var(--gradient-hero);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px;
}
.map-addr { background: #fff; color: var(--color-primary-dark); font-weight: 700; padding: 8px 16px; border-radius: 999px; }
.map-link { color: var(--color-primary-dark); font-size: 14px; font-weight: 600; text-decoration: underline; }

/* 배너: 사진이 없을 때 색으로 채우기 */
.banner-card { transition: transform .2s; }
a.banner-card:hover { transform: translateY(-3px); }

/* 푸터 */
.footer { background: var(--color-primary-dark); color: rgba(255,255,255,.85); padding: 40px 20px 24px; font-size: 14px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 6px; }
.footer h5 { margin: 0 0 8px; font-size: 13px; color: #F4A8C4; }
.footer-bottom { max-width: 1100px; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); font-size: 12px; color: rgba(255,255,255,.55); }
.footer-bottom a { color: rgba(255,255,255,.55); }

@media (max-width: 768px) {
  .gnb { justify-content: flex-start; overflow-x: auto; gap: 22px; padding: 12px 20px; white-space: nowrap; }
  .hero { padding: 54px 20px; }
  .qt-card, .prayer-wrap, .worship-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; gap: 0; }
}

/* ---------- 사진 기능 ---------- */
.hero.has-photo { background-size: cover; background-position: center; min-height: 380px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery-item {
  position: relative; padding: 0; border: none; cursor: zoom-in; background: #F0D6E0;
  border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 8px; text-align: left;
  color: #fff; font-size: 12px; font-weight: 600; background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
}
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(40, 20, 38, .88);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 10px; }
.lightbox p { color: #fff; margin: 12px 0 0; font-size: 14px; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none; color: #fff;
  font-size: 36px; line-height: 1; cursor: pointer;
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
