/* 하위 페이지 공용 스타일 */
.page-hero {
  padding: 100px 0 60px;
  text-align: center;
}
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::before { display: none; }
.page-hero h1 { margin: 18px 0 16px; }
.babhalmeoni-title-logo {
  height: 1em;
  width: auto;
  display: inline-block;
  vertical-align: baseline;
  transform: translateY(0.08em);
}
/* 제목 내 '밥할머니' 인라인 로고 */
.bh-inline-logo {
  height: 0.72em;
  width: auto;
  display: inline-block;
  vertical-align: -0.06em;
  margin-right: 0.06em;
}
/* 섹션 제목 위에 배치하는 큰 밥할머니 로고 */
.bh-section-logo {
  display: block;
  height: 56px;
  width: auto;
  margin: 0 0 18px;
}
.page-hero .lead { margin: 0 auto; }

/* ===== 암베드카르 히어로 — 원형 그라데이션 배경 + 좌상우하/우상좌하 틸트 =====
   적홍·갈색·톤다운 녹색·청색의 4색 그라데이션 이미지(중앙에 일러스트 원판)를 깔고
   CSS 키프레임으로 ±15도 대각선 틸트를 아주 천천히 왕복시킨다(JS 불개입). */
.page-hero-ambedkar {
  position: relative;
  overflow: hidden;
  background-color: #2a1c16;
  color: #f7f0e2;
}
.page-hero-ambedkar > .container {
  position: relative;
  z-index: 2;
}
.page-hero-ambedkar .page-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 대각선(긴 변)으로 ±15도 기울인 뒤에도 모서리가 비지 않도록 넉넉히 크게 */
  width: 175vmax;
  height: 175vmax;
  margin: -87.5vmax 0 0 -87.5vmax;
  background: url("../images/dharma-bg-1600.jpg") center / cover no-repeat;
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: ambedkar-bg-tilt 90s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
/* 아주 천천히: 좌상↔우하 / 우상↔좌하 대각선 틸트 왕복 (±15도) */
@keyframes ambedkar-bg-tilt {
  0%   { transform: rotate(15deg) translate(0, 0); }
  25%  { transform: rotate(0deg) translate(0, 0); }
  50%  { transform: rotate(-15deg) translate(0, 0); }
  75%  { transform: rotate(0deg) translate(0, 0); }
  100% { transform: rotate(15deg) translate(0, 0); }
}
/* 텍스트 가독성을 위한 어두운 비넷 + 하단 경계 정리 */
.page-hero-ambedkar::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 14, 12, 0.10) 0%, rgba(20, 14, 12, 0.50) 70%, rgba(20, 14, 12, 0.66) 100%),
    linear-gradient(180deg, rgba(246, 239, 226, 0) 86%, rgba(246, 239, 226, 1) 100%);
  pointer-events: none;
  z-index: 1;
}
/* 히어로 내부 텍스트를 어두운 배경에 맞춰 밝게 */
.page-hero-ambedkar .eyebrow { color: #e0b45c; }
.page-hero-ambedkar h1.display { color: #f7f0e2; }
.page-hero-ambedkar .lead { color: #e9dfc9; }
/* 텍스트 드롭 섀도 */
.page-hero-ambedkar h1.display,
.page-hero-ambedkar .eyebrow,
.page-hero-ambedkar .lead {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45);
}
.page-hero-ambedkar .lead .lead-em {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.65));
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-ambedkar .page-hero-bg { animation: none; }
}
/* ===== 밥할머니 히어로 — 원형 그라데이션 배경 + 대각선 틸트 =====
   dharma.html(page-hero-ambedkar)과 동일 사양. 배경 이미지 경로만 다르다. */
.page-hero-babhalmeoni {
  position: relative;
  overflow: hidden;
  background-color: #2a1c16;
  color: #f7f0e2;
}
.page-hero-babhalmeoni > .container {
  position: relative;
  z-index: 2;
}
.page-hero-babhalmeoni .page-hero-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 대각선(긴 변)으로 ±15도 기울인 뒤에도 모서리가 비지 않도록 넉넉히 크게 */
  width: 175vmax;
  height: 175vmax;
  margin: -87.5vmax 0 0 -87.5vmax;
  background: url("../images/babhalmeoni-bg-1600.jpg") center / cover no-repeat;
  border-radius: 50%;
  transform-origin: 50% 50%;
  animation: ambedkar-bg-tilt 90s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
/* 텍스트 가독성을 위한 어두운 비넷 + 하단 경계 정리 */
.page-hero-babhalmeoni::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(20, 14, 12, 0.10) 0%, rgba(20, 14, 12, 0.50) 70%, rgba(20, 14, 12, 0.66) 100%),
    linear-gradient(180deg, rgba(246, 239, 226, 0) 86%, rgba(246, 239, 226, 1) 100%);
  pointer-events: none;
  z-index: 1;
}
/* 히어로 내부 텍스트를 어두운 배경에 맞춰 밝게 */
.page-hero-babhalmeoni .eyebrow { color: #e0b45c; }
.page-hero-babhalmeoni h1.display { color: #f7f0e2; }
.page-hero-babhalmeoni .lead { color: #e9dfc9; }
/* 텍스트 드롭 섀도 */
.page-hero-babhalmeoni h1.display,
.page-hero-babhalmeoni .eyebrow,
.page-hero-babhalmeoni .lead {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55), 0 10px 30px rgba(0, 0, 0, 0.45);
}
/* 제목의 밥할머니 붓글씨 로고는 밝은 배경용이라 그대로 두면 묻힌다 → 밝게 반전 */
.page-hero-babhalmeoni .babhalmeoni-title-logo {
  filter: brightness(1.55) contrast(1.05) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}
.page-hero-babhalmeoni .grad-text {
  background: linear-gradient(135deg, #f3d183, #e0b45c, #c8942d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.6));
}
@media (prefers-reduced-motion: reduce) {
  .page-hero-babhalmeoni .page-hero-bg { animation: none; }
}

/* lead 내 강조 문구 확대 연출 */
.page-hero .lead .lead-em {
  display: inline-block;
  font-size: 1.35em;
  font-weight: 800;
  color: var(--gold, #b8860b);
  background: linear-gradient(135deg, #f3d183 0%, #e0b45c 45%, #c8942d 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding: 0 2px;
  animation: lead-em-shine 3s linear infinite;
}
/* 그라디언트가 좌→우로 계속 흐르는 애니메이션 */
@keyframes lead-em-shine {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h3 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  font-weight: 700;
}
.prose p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1.05rem;
}
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 16px 22px;
  margin: 24px 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.08rem;
  color: var(--ink);
}

/* 인포 카드 */
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.info-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.info-item .ic {
  font-size: 1.5rem;
  flex: none;
}
.info-item .k {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.info-item .v {
  font-weight: 600;
  font-size: 1.02rem;
}

/* 기념사업 강조 박스 */
.highlight {
  border-radius: 22px;
  padding: 36px;
  background: linear-gradient(135deg, rgba(200,148,45,0.12), rgba(140,47,57,0.1));
  border: 1px solid rgba(200,148,45,0.3);
}

/* 후원 섹션 */
.donate-box {
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  text-align: center;
}
.acct {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
  white-space: nowrap;
  background: var(--surface-2);
  border: 1px dashed rgba(200,148,45,0.5);
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 18px 0;
}
.acct code {
  font-family: "SF Mono", "Pretendard", monospace;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 아티클 카드 (모달 진입용 요약 카드) */
.article-card {
  background: var(--surface);
  border: 1px solid rgba(200, 148, 45, 0.18);
  border-radius: 22px;
  padding: 48px 40px;
  box-shadow: 0 18px 50px rgba(140, 47, 57, 0.06);
  text-align: center;
  transform-style: preserve-3d;
}
.section[style*="bg-2"] .article-card,
.section-babhalmeoni .article-card {
  background: #fff;
}

/* 준비중 페이지 */
.coming-soon {
  text-align: center;
  padding: 120px 0;
}
.coming-soon .orbit {
  margin: 0 auto 40px;
  width: 220px;
  height: 220px;
}
.coming-soon .orbit-core {
  width: 96px;
  height: 96px;
  font-size: 2.4rem;
}
.badge-soon {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #3a2f28;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* ============ 인터뷰 Q&A ============ */
.interview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.interview .q {
  padding: 12px 20px;
  background: var(--surface-2);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.02rem;
  color: var(--ink);
}
.interview .a {
  padding: 4px 6px 4px 22px;
  color: var(--muted);
  font-size: 1.0rem;
  line-height: 1.8;
}

/* 법문 (한국어 + 영어 병기) */
.dharma-talk {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dharma-talk-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.dharma-talk-buttons .btn {
  text-align: left;
  white-space: normal;
  line-height: 1.5;
}
.dharma-talk h3 {
  margin: 14px 0 2px;
  font-size: 1.1rem;
  color: var(--gold);
}
.dharma-talk p {
  margin: 4px 0;
  line-height: 1.8;
}
.dharma-talk .dharma-talk-en {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 14px;
  border-left: 2px solid var(--border);
  margin: 4px 0 12px;
}

/* 22가지 서약문 목록 */
.vow-list {
  list-style: none;
  counter-reset: vow;
  margin: 0;
  padding: 0;
}
.vow-list li {
  counter-increment: vow;
  position: relative;
  padding: 9px 0 9px 44px;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.7;
  border-bottom: 1px solid var(--border);
}
.vow-list li:last-child { border-bottom: none; }
.vow-list li::before {
  content: counter(vow);
  position: absolute;
  left: 0;
  top: 9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

/* 암베드카르 박사 소개 프로필 카드 */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(200, 148, 45, 0.18);
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 18px 50px rgba(140, 47, 57, 0.06);
  transform-style: preserve-3d;
}
.profile-card-top {
  display: flex;
  gap: 32px;
  align-items: center;
  perspective: 1000px;
}
.profile-card-img {
  flex: 0 0 340px;
  width: 340px;
  height: 484px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, box-shadow 0.3s ease;
  box-shadow: 0 14px 40px rgba(58, 47, 40, 0.16);
  will-change: transform;
}
.profile-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.06);
}
.profile-card-body {
  flex: 1;
  min-width: 0;
}
.profile-card-body .eyebrow { justify-content: flex-start; }
.profile-card-body h3 {
  margin: 6px 0 4px;
  font-size: 3rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.profile-card-en {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0;
}
.profile-card-date {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.profile-card-desc {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.0rem;
  line-height: 1.7;
}
.profile-card-book {
  margin: 0 0 16px;
  font-size: 0.98rem;
  color: var(--ink);
}
.profile-card-book a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}
.profile-card-book a:hover {
  text-decoration: underline;
}
.profile-card-more {
  margin: 0 0 16px;
  display: inline-block;
  width: auto;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.profile-card-quote {
  margin: 0;
  padding: 12px 16px;
  border-left: 3px solid var(--gold);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #8c2f39;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 서약문 (카드 하단 영역) */
.profile-card-vows {
  border-top: 1px solid var(--border);
  padding-top: 26px;
}
.profile-card-vows h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
}
.profile-card-vows-desc {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .profile-card {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .profile-card-top {
    flex-direction: column;
  }
  .profile-card-img {
    flex: none;
    width: 260px;
    height: 370px;
  }
  .profile-card-body .eyebrow { justify-content: center; }
  .profile-card-quote { text-align: left; }
  .profile-card-vows { text-align: left; }
}

/* 1인 시위 갤러리 */
.protest-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.protest-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.protest-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.protest-item figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}
@media (max-width: 640px) {
  .protest-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .protest-item img { height: 150px; }
}

/* 비구계 수지 이미지 갤러리 (어두운 섹션용) */
.bhikkhu-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.bhikkhu-item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}
.bhikkhu-item.bhikkhu-wide {
  grid-column: 1 / -1;
}
.bhikkhu-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.bhikkhu-item.bhikkhu-wide img {
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.bhikkhu-item figcaption {
  padding: 9px 12px;
  font-size: 0.82rem;
  color: #d8c9b4;
  text-align: center;
}
.bhikkhu-caption {
  text-align: center;
  color: #e8d9c2;
  font-size: 0.95rem;
  line-height: 1.7;
  font-style: italic;
}
@media (max-width: 640px) {
  .bhikkhu-gallery {
    grid-template-columns: 1fr;
  }
  .bhikkhu-item img { height: 200px; }
}

/* 신승불교 상세 섹션 — 어두운 배경으로 구분 */
.section-navayana {
  background: linear-gradient(160deg, #3a2f28 0%, #4a352c 55%, #5a3a2c 100%);
  color: #f6efe2;
}

/* 암베드카르 소개 섹션 (약간 짙은 아이보리 배경) */
.section-ambedkar-intro {
  background: var(--bg-2);
}

.section-navayana .heading {
  color: #f6efe2;
}
.section-navayana .prose p {
  color: #d8c9b4;
}
.section-navayana .prose strong {
  color: #f6efe2;
}
.section-navayana .prose blockquote {
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.06);
}
.section-navayana .prose blockquote p {
  color: #e8d9c2;
}

/* ============ 주간불교소식 ============ */
.page-hero-compact {
  padding: 70px 0 30px;
}
.container-wide {
  max-width: 1100px;
}
.news-section {
  padding: 10px 0 60px;
}
.news-issue {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 40px;
  margin-bottom: 32px;
}
.news-issue-head {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
.news-date {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}
.news-issue-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin: 0 0 12px;
}
.news-summary {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.news-block {
  margin-bottom: 28px;
}
.news-block:last-child {
  margin-bottom: 0;
}
.news-cat {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.news-item {
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
}
.news-item:last-child {
  border-bottom: none;
}
.news-item h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
}
.news-item p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  font-size: 0.95rem;
}
.news-item a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.news-item a:hover { text-decoration: underline; }
.news-archive {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
}
.news-archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-archive-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.news-archive-list li:last-child {
  border-bottom: none;
}
.news-archive-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.news-archive-list a:hover {
  color: var(--accent);
}
@media (max-width: 640px) {
  .news-issue { padding: 24px 20px; }
}

/* ============ 이미지 ============ */
.img-frame {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.img-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.img-caption {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.figure-row {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: center;
  margin: 28px 0;
}
@media (max-width: 720px) {
  .figure-row { grid-template-columns: 1fr; }
}
/* 후원 카드 모바일 레이아웃 (아이폰 좁은 화면 대응) */
@media (max-width: 640px) {
  .figure-row { gap: 20px; }
  .donate-box { padding: 24px 16px; }
  .acct {
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
    gap: 8px;
  }
  .acct code { word-break: break-all; }
  .donate-box .heading { font-size: 1.5rem; }
}
