/* =============================================
   화현교회 홈페이지 — Toss 디자인 시스템 기반
   ============================================= */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

:root {
  --green:       #2D7A2D;
  --green-dark:  #1A5C1A;
  --green-light: #F0F7F0;
  --green-mid:   #4CAF50;
  --red:         #E22C2C;
  --white:       #FFFFFF;
  --bg:          #F9FAFB;
  --card-bg:     #F2F4F6;
  --text:        #191F28;
  --text-sub:    #4E5968;
  --text-light:  #8B95A1;
  --border:      #E5E8EB;
  --shadow:      none;
  --radius:      16px;
  --radius-sm:   10px;
  --header-h:    92px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── HEADER ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}

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

.logo a { display: flex; align-items: center; }
.logo img { height: 64px; width: auto; object-fit: contain; }

nav ul { display: flex; gap: 6px; }

nav ul li a {
  display: block;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 22px;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

nav ul li a:hover { color: var(--text); background: var(--card-bg); }
nav ul li a.active { color: var(--green); background: var(--green-light); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--text);
  padding: 6px 10px;
}

/* ─── PAGE BODY OFFSET ─── */
body > section:first-of-type:not(.hero),
.page-hero { margin-top: var(--header-h); }

/* ─── HERO (메인) ─── */
.hero {
  background: #fff;
  color: var(--green-dark);
  margin-top: 0;
  padding-top: calc(var(--header-h) + 140px);
  padding-bottom: 180px;
  padding-left: 24px;
  padding-right: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

/* ─── HERO ORBS ─── */
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
}

.orb-1 {
  width: 360px; height: 360px;
  background: rgba(255, 210, 100, 0.22);
  top: -100px; left: 5%;
  animation: orbMove1 3s ease-in-out infinite;
}

.orb-2 {
  width: 260px; height: 260px;
  background: rgba(180, 220, 160, 0.2);
  top: 10%; right: 8%;
  animation: orbMove2 2.5s ease-in-out infinite;
  animation-delay: -1s;
}

.orb-3 {
  width: 220px; height: 220px;
  background: rgba(255, 185, 100, 0.18);
  bottom: -60px; left: 38%;
  animation: orbMove3 2s ease-in-out infinite;
  animation-delay: -0.6s;
}

.orb-4 {
  width: 180px; height: 180px;
  background: rgba(255, 230, 150, 0.22);
  top: 35%; left: 15%;
  animation: orbMove4 1.8s ease-in-out infinite;
  animation-delay: -1.3s;
}

.orb-5 {
  width: 200px; height: 200px;
  background: rgba(160, 210, 140, 0.18);
  bottom: 10px; right: 18%;
  animation: orbMove5 2.2s ease-in-out infinite;
  animation-delay: -0.4s;
}

@keyframes orbMove1 {
  0%   { transform: translate(0px, 0px) scale(1);       opacity: 0.75; }
  25%  { transform: translate(30px, -40px) scale(1.06); opacity: 1;    }
  50%  { transform: translate(60px, -20px) scale(1.02); opacity: 0.85; }
  75%  { transform: translate(20px, -55px) scale(1.08); opacity: 1;    }
  100% { transform: translate(0px, 0px) scale(1);       opacity: 0.75; }
}

@keyframes orbMove2 {
  0%   { transform: translate(0px, 0px) scale(1);        opacity: 0.7;  }
  30%  { transform: translate(-40px, 35px) scale(1.05);  opacity: 0.95; }
  60%  { transform: translate(-20px, 60px) scale(0.95);  opacity: 0.8;  }
  100% { transform: translate(0px, 0px) scale(1);        opacity: 0.7;  }
}

@keyframes orbMove3 {
  0%   { transform: translate(0px, 0px) scale(1);         opacity: 0.8;  }
  40%  { transform: translate(-50px, -30px) scale(1.07);  opacity: 1;    }
  70%  { transform: translate(30px, -50px) scale(0.93);   opacity: 0.75; }
  100% { transform: translate(0px, 0px) scale(1);         opacity: 0.8;  }
}

@keyframes orbMove4 {
  0%   { transform: translate(0px, 0px) scale(1);        opacity: 0.75; }
  35%  { transform: translate(45px, 40px) scale(1.1);    opacity: 1;    }
  65%  { transform: translate(-30px, 55px) scale(0.92);  opacity: 0.8;  }
  100% { transform: translate(0px, 0px) scale(1);        opacity: 0.75; }
}

@keyframes orbMove5 {
  0%   { transform: translate(0px, 0px) scale(1);         opacity: 0.7;  }
  45%  { transform: translate(-35px, -45px) scale(1.06);  opacity: 0.95; }
  80%  { transform: translate(40px, -25px) scale(0.96);   opacity: 0.8;  }
  100% { transform: translate(0px, 0px) scale(1);         opacity: 0.7;  }
}

.hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
  color: var(--green-dark);
}

.hero-verse-block {
  background: var(--green-light);
  border-radius: 12px;
  padding: 20px 28px;
  margin-bottom: 24px;
  display: inline-block;
  text-align: left;
}

.hero-verse-block p {
  font-size: 15px;
  font-style: italic;
  line-height: 1.8;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.hero-verse-block span {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.5px;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 28px;
}

.hero-community {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.hero-community span {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 10px 20px;
  border-radius: 100px;
  letter-spacing: 0.2px;
}

/* ─── SECTION COMMONS ─── */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 40px;
  letter-spacing: -0.3px;
}

.section-title::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ─── WEEKLY SERMON ─── */
.weekly-sermon {
  background: var(--white);
}

.sermon-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.sermon-thumbnail { position: relative; }

.sermon-thumbnail img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.youtube-btn {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(196,0,0,0.9);
  color: var(--white);
  text-align: center;
  padding: 14px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.youtube-btn:hover { background: #c40000; }

.sermon-info { padding: 32px 40px 32px 0; }

.sermon-date {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.sermon-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 10px 0 12px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.sermon-verse {
  font-size: 15px;
  color: var(--green);
  font-weight: 600;
  margin-bottom: 6px;
}

.sermon-pastor { font-size: 14px; color: var(--text-light); }

.no-youtube-msg {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 16px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}

/* ─── WORSHIP SCHEDULE ─── */
.schedule {
  background: var(--green-dark);
  color: var(--white);
}

.schedule .section-title { color: var(--white); }
.schedule .section-title::after { background: rgba(255,255,255,0.5); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.schedule-item {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: background 0.15s;
}

.schedule-item:hover { background: rgba(255,255,255,0.12); }

.schedule-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 10px;
  opacity: 0.7;
  letter-spacing: 1px;
}

.schedule-item .time {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* 흰색 배경 + 초록 포인트 버전 (서브 페이지용) */
.schedule.schedule-light {
  background: var(--white);
  color: var(--text);
}
.schedule.schedule-light .section-title { color: var(--text); }
.schedule.schedule-light .section-title::after { background: var(--green); }
.schedule.schedule-light .schedule-item {
  background: var(--green-light);
  border: 1px solid rgba(45, 122, 45, 0.25);
}
.schedule.schedule-light .schedule-item:hover {
  background: rgba(45, 122, 45, 0.14);
  border-color: var(--green);
}
.schedule.schedule-light .schedule-item h3 {
  color: var(--green-dark);
  opacity: 0.85;
  font-weight: 600;
}
.schedule.schedule-light .schedule-item .time {
  color: var(--green-dark);
}

/* ─── INTRO TEASER ─── */
.intro-teaser { background: var(--bg); }

.intro-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.intro-box p {
  font-size: 17px;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 28px;
}

.community-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.community-tags span {
  background: var(--green-light);
  color: var(--green-dark);
  padding: 8px 18px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-sub);
}
.btn-outline:hover { background: var(--card-bg); color: var(--text); border-color: var(--text-sub); }

.btn-secondary { background: var(--card-bg); color: var(--text); }
.btn-secondary:hover { background: var(--border); }

.btn-danger {
  background: #FFF0F0;
  color: var(--red);
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}
.btn-danger:hover { background: #FFE0E0; }

/* ─── FOOTER ─── */
footer {
  background: var(--card-bg);
  color: var(--text-sub);
  padding: 96px 0 36px;
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 80px;
  width: auto;
  opacity: 1;
}

.footer-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-info p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-light);
}

.footer-sns {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.footer-sns a {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, border-color 0.15s;
  font-size: 13px;
  color: var(--text-sub);
}

.footer-sns a:hover {
  background: var(--white);
  border-color: var(--green);
  color: var(--green-dark);
}
.footer-sns img { height: 20px; width: auto; }

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
}

/* ─── PAGE HERO (서브 페이지) ─── */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, #1A5C1A 0%, #2D7A2D 55%, #4CAF50 100%);
  color: var(--white);
  padding: 110px 24px 90px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  animation: heroFadeIn 0.6s ease-out;
}

.page-hero .hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.page-hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
  margin: 0 0 18px 0;
  color: var(--white);
  line-height: 1.2;
}

.page-hero p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.2px;
  opacity: 0.94;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto;
}

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

@media (max-width: 768px) {
  .page-hero {
    padding: 80px 20px 64px;
  }
  .page-hero h1 {
    font-size: 32px;
  }
  .page-hero p {
    font-size: 15px;
  }
  .page-hero .hero-tag {
    font-size: 11px;
    letter-spacing: 2px;
    margin-bottom: 18px;
  }
}

/* ─── BREADCRUMB (admin 등 일부 페이지에서만 사용) ─── */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--green); font-weight: 500; }
.breadcrumb span { margin: 0 6px; }

/* ─── ABOUT PAGE ─── */
.about-section { background: var(--white); padding: 72px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 64px;
  align-items: start;
}

.about-text p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.values {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
}

.value-icon { font-size: 18px; }
.value-item p { margin: 0; font-weight: 500; font-size: 15px; color: var(--green-dark); }

.pastor-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.pastor-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.pastor-info { padding: 20px; }

.pastor-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.pastor-info .title { font-size: 13px; color: var(--green); font-weight: 600; }
.pastor-info .church { font-size: 12px; color: var(--text-light); margin-top: 3px; }

/* ─── BOARD (게시판) ─── */
.board-section {
  background: var(--white);
  padding: 72px 0;
  min-height: 400px;
}

.board-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.board-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.15s, transform 0.15s;
  cursor: pointer;
}

.board-card:hover { background: #EAECEF; transform: translateY(-2px); }

.sermon-board-card { display: grid; grid-template-columns: 200px 1fr; }

.sermon-board-thumb { position: relative; }

.sermon-board-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.yt-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: #c40000;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.sermon-board-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.board-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 5px;
  font-weight: 500;
}

.board-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 5px;
  letter-spacing: -0.2px;
}

.board-verse { font-size: 13px; color: var(--green); font-weight: 600; }

.text-board-card { padding: 20px 24px; }
.text-board-card .board-title { font-size: 16px; }

.text-board-card .board-content {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.empty-board {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 15px;
}

/* ─── LOCATION PAGE ─── */
.location-section { background: var(--white); padding: 72px 0; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

.location-info {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 28px;
}

.location-info h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.info-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.info-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }

.info-content h4 {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 3px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.info-content p { font-size: 14px; color: var(--text); line-height: 1.6; }

.map-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.map-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: opacity 0.15s;
  cursor: pointer;
}

.map-btn:hover { opacity: 0.85; }
.map-btn-naver { background: #03C75A; color: white; }
.map-btn-google { background: #4285F4; color: white; }

/* ─── MEDITATION CARD ─── */
.meditation-card { cursor: pointer; padding: 22px 24px; }

.meditation-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.meditation-card-body { flex: 1; min-width: 0; }
.meditation-card .board-title { font-size: 17px; margin: 5px 0 7px; }

.meditation-card .board-content {
  font-size: 14px;
  color: var(--text-light);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.6;
}

.read-more-badge {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  transform: translateX(-4px);
}

.meditation-card:hover .read-more-badge { opacity: 1; transform: translateX(0); }

/* ─── BOARD TABLE ─── */
.board-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 2px solid var(--text);
}

.board-table thead th {
  background: var(--card-bg);
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sub);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.board-table thead th.col-title { text-align: left; }

.board-row {
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.board-row:hover { background: var(--bg); }
.board-row td { padding: 16px; font-size: 15px; }
.board-table .col-num { text-align: center; width: 64px; color: var(--text-light); font-size: 13px; }
.board-table .col-title { color: var(--text); font-weight: 500; }
.board-row:hover .col-title { color: var(--green); }
.board-table .col-date { text-align: center; width: 110px; color: var(--text-light); font-size: 13px; white-space: nowrap; }

/* ─── POST DETAIL ─── */
.post-detail { max-width: 720px; margin: 0 auto; }
.post-header { padding: 0 0 24px; }
.post-date { font-size: 13px; color: var(--text-light); margin-bottom: 10px; font-weight: 500; }

.post-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.post-divider { border: none; border-top: 1px solid var(--border); margin: 0 0 32px; }

.post-content {
  font-size: 16px;
  line-height: 2;
  color: var(--text-sub);
  white-space: pre-wrap;
  margin-bottom: 40px;
}

.post-footer { padding-top: 8px; }

.post-content b, .post-content strong { font-weight: 700; color: var(--text); }
.post-content i, .post-content em     { font-style: italic; }
.post-content u                        { text-decoration: underline; }
.post-content ul { list-style: disc;    padding-left: 24px; margin: 8px 0; }
.post-content ol { list-style: decimal; padding-left: 24px; margin: 8px 0; }
.post-content li { margin-bottom: 4px; }
.post-content a  { color: var(--green); text-decoration: underline; }
.post-content hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.post-content p  { margin-bottom: 8px; }

/* ─── ADMIN PAGE ─── */
.admin-page {
  padding: 64px 0;
  min-height: calc(100vh - var(--header-h) - 200px);
  background: var(--white);
}

.firebase-warning {
  max-width: 680px;
  margin: 0 auto 32px;
  background: #FFFBEA;
  border: 1.5px solid #F5CC00;
  border-radius: var(--radius);
  padding: 24px 28px;
}

.firebase-warning h3 { font-size: 16px; font-weight: 700; color: #9A6700; margin-bottom: 8px; }
.firebase-warning p  { font-size: 14px; color: var(--text-sub); line-height: 1.8; }
.firebase-warning a  { color: var(--green); font-weight: 700; }

.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px;
  border: 1px solid var(--border);
  text-align: center;
}

.login-icon { font-size: 44px; margin-bottom: 16px; }

.login-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}

.login-desc { font-size: 14px; color: var(--text-light); margin-bottom: 28px; }
.login-error { color: var(--red); text-align: center; margin-top: 12px; font-size: 13px; min-height: 18px; }

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: var(--white);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }

.form-group textarea { resize: vertical; min-height: 180px; line-height: 1.7; }

.admin-dashboard { max-width: 820px; margin: 0 auto; }

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  gap: 16px;
}

.admin-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.admin-write-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.admin-write-form h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 24px; }

.form-row { display: flex; gap: 16px; }

.admin-post-list {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.admin-post-list > h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.admin-post-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}

.admin-post-item:last-child { border-bottom: none; }
.admin-post-item .item-info { flex: 1; min-width: 0; }

/* ─── YOUTUBE FEATURED ─── */
.yt-featured {
  display: grid;
  grid-template-columns: 1fr 280px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
}

.yt-embed-wrap { position: relative; padding-top: 56.25%; background: #000; }

.yt-embed-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.yt-featured-info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.yt-badge-latest {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  width: fit-content;
}

.yt-thumbnail-cover { position: absolute; inset: 0; cursor: pointer; }
.yt-thumbnail-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

.yt-cover-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.15s;
}

.yt-thumbnail-cover:hover .yt-cover-play { background: rgba(0,0,0,0.4); }

.yt-featured-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-top: 10px;
}

/* ─── YOUTUBE GRID ─── */
.yt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.yt-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  display: block;
  transition: background 0.15s, transform 0.15s;
}

.yt-card:hover { background: #EAECEF; transform: translateY(-2px); }

.yt-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.yt-card:hover .yt-thumb img { transform: scale(1.04); }

.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.15s;
}

.yt-card:hover .yt-play { opacity: 1; }

.yt-card-info { padding: 14px 16px 18px; }

.yt-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  margin-top: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── INSTAGRAM SECTION ─── */
.instagram-section { background: var(--white); padding: 72px 0 56px; }

.instagram-widget-wrap { width: 100%; min-height: 200px; }
.instagram-widget-wrap iframe { width: 100% !important; }

.instagram-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border-radius: var(--radius);
  text-align: center;
  gap: 16px;
  color: var(--text-light);
  font-size: 15px;
}

.instagram-link-row { display: flex; justify-content: center; margin-top: 28px; }

.instagram-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: opacity 0.15s, transform 0.15s;
}

.instagram-follow-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.instagram-follow-btn img { height: 20px; width: auto; filter: brightness(0) invert(1); }

/* ─── POST DETAIL ─── */
.post-footer { padding-top: 8px; }

/* 에디터 서식 */
.post-content b, .post-content strong { font-weight: 700; }
.post-content i, .post-content em     { font-style: italic; }
.post-content u                        { text-decoration: underline; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .sermon-card  { grid-template-columns: 1fr; }
  .sermon-info  { padding: 24px; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid   { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  footer        { padding: 72px 0 32px; margin-top: 56px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-logo  { margin: 0 auto; }
  .footer-sns   { flex-direction: row; justify-content: center; }
  .yt-featured  { grid-template-columns: 1fr; }
  .yt-featured-info { padding: 20px; }
  .yt-grid      { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  nav ul {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  nav ul.open { display: flex; }
  nav ul li a  { padding: 16px 18px; font-size: 20px; }
  .menu-toggle { display: block; }
  .logo img    { height: 52px; }
  .hero        { padding: 72px 20px; }
  .schedule-grid { grid-template-columns: repeat(2, 1fr); }
  .sermon-board-card { grid-template-columns: 1fr; }
  .sermon-board-thumb img { height: 200px; }
  .location-grid { grid-template-columns: 1fr; }
  .yt-grid     { grid-template-columns: 1fr; }
  .yt-featured { grid-template-columns: 1fr; }
  .board-table .col-num  { display: none; }
  .board-table .col-date { width: 90px; font-size: 12px; }
  .board-row td          { padding: 14px 10px; }
  .post-title            { font-size: 22px; }
  .form-row              { flex-direction: column; }
  .admin-write-form      { padding: 20px; }
  .login-card            { padding: 36px 24px; }
  .admin-header          { flex-direction: column; align-items: flex-start; }
  .hero {
    margin-top: var(--header-h);
    padding-top: 80px;
    padding-bottom: 100px;
    min-height: 60vh;
  }
}
