/*
Theme Name:   화정동 성당 (Hwajeong Child)
Theme URI:    http://wp.withnet.com
Description:  천주교 의정부교구 화정동 성당 공식 웹사이트 테마
Author:       Hwajeong Parish
Template:     astra
Version:      1.0.0
*/

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  --color-primary:    #1A2744;   /* deep navy */
  --color-gold:       #C9A84C;   /* gold accent */
  --color-gold-light: #E8D5A3;
  --color-cream:      #F8F5EE;   /* warm background */
  --color-white:      #FFFFFF;
  --color-text:       #2D2D2D;
  --color-text-muted: #6B7280;
  --color-border:     #E5E0D5;
  --color-red:        #8B2635;   /* liturgical red */

  --font-sans:    'Pretendard', 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-display: 'Cormorant Garamond', 'Nanum Myeongjo', serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;

  --shadow-sm:  0 2px 8px rgba(26,39,68,.08);
  --shadow-md:  0 8px 32px rgba(26,39,68,.12);
  --shadow-lg:  0 20px 60px rgba(26,39,68,.16);

  --max-width: 1200px;
  --section-pad: 80px 0;
}

/* =============================================
   FONTS
   ============================================= */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600&display=swap');

/* =============================================
   GLOBAL RESET / BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

/* ── 가로 스크롤 방지 ──
   overflow-x: clip : 스크롤바 없이 잘라냄, position:fixed(메뉴 잠금)와 충돌 없음
   body에는 설정하지 않음 → JS 스크롤 잠금 방식(position:fixed)이 정상 동작
─────────────────────────────── */
html { overflow-x: clip; }
*, *::before, *::after { box-sizing: border-box; }

/* 모든 섹션/컨테이너 너비 제한 */
.hw-container,
.hw-quickbar-inner {
  width: 100%;
  max-width: var(--max-width);
}

/* 그리드 아이템 기본 min-width 해제
   (grid item은 기본 min-width:auto → 콘텐츠 크기만큼 늘어나 overflow 유발) */
.hw-main-grid > *,
.hw-twin-grid > *,
.hw-about-grid > *,
.hw-photo-grid > *,
.hw-page-layout > *,
.hw-mass-page-grid > *,
.hw-footer-grid > *,
.hw-about-cards > * {
  min-width: 0;
  max-width: 100%;
}

/* prose 내 요소가 부모를 넘지 않도록 */
.hw-prose,
.hw-page-content {
  overflow: hidden;     /* 내부 절대값 요소 클리핑 */
  min-width: 0;
  max-width: 100%;
}

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

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-gold); }

/* =============================================
   ASTRA OVERRIDES
   ============================================= */
.ast-container { max-width: var(--max-width) !important; min-width: 0 !important; }
.ast-page-builder-template,
.ast-page-builder-template .ast-container { min-width: 0 !important; }
.entry-content table { width: 100%; max-width: 100%; }

/* Header */
#masthead,
.site-header {
  background: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-gold) !important;
}

.ast-site-identity .site-title a,
.ast-site-identity .site-title {
  color: var(--color-white) !important;
  font-family: var(--font-display) !important;
  font-size: 1.3rem !important;
  letter-spacing: 0.05em;
}

/* Primary nav */
.main-header-menu .menu-item > a,
.ast-header-custom-item a {
  color: rgba(255,255,255,.85) !important;
  font-size: .9rem !important;
  font-weight: 500 !important;
  transition: color .2s;
}
.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
  color: var(--color-gold) !important;
}

/* Submenu */
.main-header-menu .sub-menu {
  background: var(--color-primary) !important;
  border-top: 2px solid var(--color-gold) !important;
}
.main-header-menu .sub-menu a {
  color: rgba(255,255,255,.8) !important;
  font-size: .85rem !important;
}
.main-header-menu .sub-menu a:hover {
  color: var(--color-gold) !important;
  background: rgba(255,255,255,.05) !important;
}

/* Footer */
.site-footer,
#colophon {
  background: var(--color-primary) !important;
  color: rgba(255,255,255,.7) !important;
  border-top: 3px solid var(--color-gold) !important;
}
.site-footer a { color: var(--color-gold-light) !important; }

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hw-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hw-section { padding: var(--section-pad); }

.hw-section-label {
  font-family: var(--font-display);
  font-size: .85rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: 10px;
}

.hw-section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.3;
}

.hw-section-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  max-width: 540px;
}

.hw-divider {
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  margin: 20px 0 40px;
  border: none;
}

/* Button */
.hw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .25s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.hw-btn-primary {
  background: var(--color-primary);
  color: var(--color-white) !important;
}
.hw-btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-primary) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hw-btn-outline {
  background: transparent;
  color: var(--color-primary) !important;
  border: 2px solid var(--color-primary);
}
.hw-btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white) !important;
}

.hw-btn-gold {
  background: var(--color-gold);
  color: var(--color-primary) !important;
}
.hw-btn-gold:hover {
  background: #b8953d;
  transform: translateY(-2px);
}

/* Card */
.hw-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.hw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   HOMEPAGE: HERO
   ============================================= */
.hw-hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-primary);
  overflow: hidden;
}

.hw-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: opacity .5s;
}

.hw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26,39,68,.85) 0%,
    rgba(26,39,68,.5) 60%,
    rgba(201,168,76,.15) 100%
  );
}

.hw-hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hw-hero-eyebrow {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hw-hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--color-gold);
}

.hw-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 16px;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.hw-hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.75);
  margin-bottom: 40px;
  max-width: 480px;
}

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

/* Cross decoration */
.hw-hero-cross {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  opacity: .06;
  font-size: 24rem;
  color: var(--color-white);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
}

/* =============================================
   HOMEPAGE: QUICK ACCESS BAR
   ============================================= */
.hw-quickbar {
  background: var(--color-primary);
  border-bottom: 3px solid var(--color-gold);
  position: sticky;
  top: 0;
  z-index: 100;
}

.hw-quickbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hw-quickbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 28px;
  color: rgba(255,255,255,.8) !important;
  font-size: .88rem;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,.1);
  transition: all .2s;
  text-decoration: none !important;
}
.hw-quickbar-item:last-child { border-right: none; }
.hw-quickbar-item:hover {
  background: rgba(201,168,76,.15);
  color: var(--color-gold) !important;
}

.hw-quickbar-icon {
  width: 20px;
  height: 20px;
  opacity: .7;
}

/* =============================================
   HOMEPAGE: MASS TIMES
   ============================================= */
.hw-mass {
  background: var(--color-cream);
  padding: var(--section-pad);
}

.hw-mass-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.hw-mass-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.hw-mass-card-head {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hw-mass-card-head h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
}

.hw-mass-card-body { padding: 8px 0; }

.hw-mass-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--color-border);
  font-size: .95rem;
}
.hw-mass-row:last-child { border-bottom: none; }

.hw-mass-row-day { color: var(--color-text-muted); }
.hw-mass-row-time {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  font-feature-settings: "tnum";
}

/* =============================================
   HOMEPAGE: NEWS
   ============================================= */
.hw-news { padding: var(--section-pad); }

.hw-news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

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

.hw-news-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all .25s;
  background: var(--color-white);
}
.hw-news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.hw-news-card-img {
  height: 180px;
  background: var(--color-cream);
  overflow: hidden;
  position: relative;
}
.hw-news-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.hw-news-card:hover .hw-news-card-img img { transform: scale(1.05); }

.hw-news-card-body { padding: 24px; }

.hw-news-card-cat {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 8px;
}

.hw-news-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-news-card-date {
  font-size: .82rem;
  color: var(--color-text-muted);
}

/* =============================================
   HOMEPAGE: ABOUT STRIP
   ============================================= */
.hw-about-strip {
  background: var(--color-primary);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hw-about-strip::before {
  content: '✝';
  position: absolute;
  left: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15rem;
  color: rgba(255,255,255,.03);
  font-family: serif;
  line-height: 1;
}

.hw-about-strip-inner { position: relative; z-index: 1; }

.hw-about-strip blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--color-white);
  font-weight: 400;
  margin: 0 auto 16px;
  max-width: 700px;
  font-style: italic;
  line-height: 1.5;
}

.hw-about-strip cite {
  font-size: .9rem;
  color: var(--color-gold);
  letter-spacing: .1em;
  font-style: normal;
}

/* =============================================
   HOMEPAGE: GALLERY PREVIEW
   ============================================= */
.hw-gallery { padding: var(--section-pad); background: var(--color-cream); }

.hw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
  margin-top: 40px;
}

.hw-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  background: var(--color-border);
}
.hw-gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
.hw-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.hw-gallery-item:hover img { transform: scale(1.08); }

.hw-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,39,68,.6), transparent);
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.hw-gallery-item:hover .hw-gallery-overlay { opacity: 1; }
.hw-gallery-overlay span {
  color: var(--color-white);
  font-size: .85rem;
  font-weight: 500;
}

/* =============================================
   HOMEPAGE: FOOTER INFO
   ============================================= */
.hw-footer-info {
  background: var(--color-primary);
  padding: 60px 24px 40px;
  color: rgba(255,255,255,.75);
}

.hw-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 40px;
}

.hw-footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-white);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.hw-footer-brand .diocese {
  font-size: .82rem;
  color: var(--color-gold);
  letter-spacing: .05em;
  display: block;
  margin-bottom: 20px;
}
.hw-footer-brand p {
  font-size: .88rem;
  line-height: 1.8;
  margin: 0;
}

.hw-footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
}
.hw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.hw-footer-col li {
  margin-bottom: 8px;
  font-size: .88rem;
}
.hw-footer-col a {
  color: rgba(255,255,255,.65) !important;
  transition: color .2s;
}
.hw-footer-col a:hover { color: var(--color-gold) !important; }

.hw-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: .82rem;
}

/* =============================================
   INNER PAGE: BANNER
   ============================================= */
.hw-page-banner {
  background: var(--color-primary);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hw-page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent);
}

.hw-page-banner-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hw-page-banner h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--color-white);
  margin: 0 0 8px;
}

.hw-breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.hw-breadcrumb a { color: var(--color-gold) !important; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hw-news-grid { grid-template-columns: repeat(2, 1fr); }
  .hw-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hw-gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .hw-gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px 0; }

  .hw-hero { min-height: 70vh; }
  .hw-hero-cross { display: none; }

  .hw-quickbar { position: static; }
  .hw-quickbar-inner { flex-wrap: wrap; }
  .hw-quickbar-item {
    flex: 1 1 45%;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 14px 16px;
  }

  .hw-mass-grid { grid-template-columns: 1fr; }
  .hw-news-grid { grid-template-columns: 1fr; }
  .hw-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .hw-gallery-item:first-child { grid-column: span 2; grid-row: span 1; }

  .hw-footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hw-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .hw-section-title { font-size: 1.75rem; }
  .hw-news-header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 480px) {
  .hw-hero h1 { font-size: 2.2rem; }
  .hw-gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================
   HERO ENHANCEMENTS
   ============================================= */
.hw-hero {
  background: linear-gradient(135deg, #0d1b38 0%, #1A2744 60%, #0d1b38 100%);
  min-height: 90vh;
}

/* 배경 없을 때 기하학 패턴 */
.hw-hero-deco {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* 히어로 스크롤 인디케이터 */
.hw-hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hw-hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 버튼 ghost */
.hw-btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.hw-btn-ghost:hover {
  background: rgba(255,255,255,.2);
  color: #fff !important;
}

/* =============================================
   TWIN: NOTICES + MASS
   ============================================= */
.hw-twin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.hw-twin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4px;
}

.hw-more-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  text-decoration: none;
  white-space: nowrap;
  margin-bottom: 44px; /* align with h2 bottom */
  transition: color .2s;
}
.hw-more-link:hover { color: var(--color-gold) !important; }

/* 공지 리스트 */
.hw-notice-list { display: flex; flex-direction: column; }

.hw-notice-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: padding-left .2s;
}
.hw-notice-item:hover { padding-left: 6px; }
.hw-notice-item:last-child { border-bottom: none; }

.hw-notice-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--color-white);
  background: var(--color-primary);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}

.hw-notice-title {
  flex: 1;
  font-size: .92rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.hw-notice-item:hover .hw-notice-title { color: var(--color-primary); }

.hw-new-badge {
  display: inline-block;
  font-size: .6rem;
  font-weight: 800;
  font-style: normal;
  background: var(--color-gold);
  color: var(--color-primary);
  padding: 1px 5px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 4px;
  letter-spacing: 0;
}

.hw-notice-date {
  font-size: .78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-feature-settings: "tnum";
}

.hw-empty {
  padding: 24px 0;
  color: var(--color-text-muted);
  font-size: .9rem;
}

/* 미사 시간 (twin 내부) */
.hw-mass-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 8px;
}

.hw-mass-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.hw-mass-row:last-child { border-bottom: none; }

.hw-mass-label { color: var(--color-text-muted); }
.hw-mass-time {
  font-weight: 700;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

.hw-mass-note {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--color-cream);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--color-text-muted);
  border-left: 3px solid var(--color-gold);
}

/* =============================================
   STATS STRIP
   ============================================= */
.hw-stats-strip {
  background: var(--color-primary);
  padding: 48px 24px;
}

.hw-stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.hw-stat {
  text-align: center;
  flex: 1;
  padding: 0 32px;
}

.hw-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
}
.hw-stat-num small {
  font-size: 1.4rem;
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-weight: 500;
}

.hw-stat-label {
  display: block;
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hw-stat-div {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}

/* =============================================
   ABOUT (2-col)
   ============================================= */
.hw-about { background: var(--color-cream); }

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

.hw-about-text p { color: var(--color-text-muted); line-height: 1.8; }

.hw-about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hw-about-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  border: 1px solid var(--color-border);
  transition: transform .25s, box-shadow .25s;
}
.hw-about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hw-about-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hw-about-card strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.hw-about-card p {
  font-size: .82rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* =============================================
   DIRECTIONS STRIP
   ============================================= */
.hw-dir-strip {
  background: var(--color-primary);
  padding: 48px 24px;
}

.hw-dir-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hw-dir-text { flex: 1; min-width: 0; }

.hw-dir-text h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-white);
  margin: 0 0 16px;
  font-weight: 600;
}

.hw-dir-text p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin: 0 0 6px;
}

.hw-dir-text a { color: var(--color-gold-light) !important; }

.hw-dir-buses { flex: 1; min-width: 0; }

.hw-dir-bus-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 10px;
}

.hw-bus-row { display: flex; flex-wrap: wrap; gap: 6px; }

.hw-bus {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.hw-bus.g { background: rgba(34,197,94,.2);  color: #4ade80; border: 1px solid rgba(34,197,94,.3); }
.hw-bus.b { background: rgba(59,130,246,.2); color: #60a5fa; border: 1px solid rgba(59,130,246,.3); }
.hw-bus.r { background: rgba(239,68,68,.2);  color: #f87171; border: 1px solid rgba(239,68,68,.3); }

/* =============================================
   GALLERY (revamped)
   ============================================= */
.hw-gallery { background: var(--color-white); }

.hw-gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4px;
}

.hw-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
  margin-top: 8px;
}

.hw-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-cream);
}
.hw-gallery-item:nth-child(1) { grid-column: span 2; }

.hw-gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.hw-gallery-item:hover img { transform: scale(1.06); }

.hw-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,39,68,.8), transparent);
  color: #fff;
  font-size: .82rem;
  padding: 20px 14px 12px;
  transform: translateY(100%);
  transition: transform .3s;
}
.hw-gallery-item:hover .hw-gallery-caption { transform: translateY(0); }

/* Placeholder cards */
.hw-gallery-ph {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hw-gallery-ph-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.4);
}
.hw-gallery-ph-inner span { font-size: 2.5rem; }
.hw-gallery-ph-inner small { font-size: .78rem; letter-spacing: .08em; }

/* =============================================
   RESPONSIVE (new sections)
   ============================================= */
@media (max-width: 1024px) {
  .hw-twin-grid   { grid-template-columns: 1fr; gap: 48px; }
  .hw-about-grid  { grid-template-columns: 1fr; gap: 40px; }
  .hw-stats-grid  { flex-wrap: wrap; }
  .hw-stat        { flex: 1 1 40%; }
}

@media (max-width: 768px) {
  .hw-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .hw-gallery-item:nth-child(1) { grid-column: span 2; }
  .hw-about-cards { grid-template-columns: 1fr 1fr; }
  .hw-dir-inner   { flex-direction: column; gap: 28px; align-items: flex-start; }
  .hw-stats-grid  { gap: 0; }
  .hw-stat        { padding: 16px; }
  .hw-stat-num    { font-size: 2.2rem; }
}

@media (max-width: 480px) {
  .hw-gallery-grid { grid-template-columns: 1fr; }
  .hw-gallery-item:nth-child(1) { grid-column: 1; }
  .hw-about-cards  { grid-template-columns: 1fr; }
  .hw-stats-grid   { flex-direction: column; }
  .hw-stat-div     { width: 60px; height: 1px; }
  .hw-hero-scroll  { display: none; }
}

/* ==============================================
   REDESIGN 2.0 — 새 섹션 전용 스타일
   ============================================== */

/* --- HERO 재정의 --- */
.hw-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: #0d1b38;
  overflow: hidden;
}
.hw-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  filter: brightness(.55) saturate(.85);
}
.hw-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,20,50,.3) 0%,
    rgba(10,20,50,.55) 50%,
    rgba(10,20,50,.85) 100%
  );
}
.hw-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding: 80px 24px 120px;
}
.hw-hero-diocese {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hw-hero-diocese::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--color-gold);
}
.hw-hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 7rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.hw-hero-cross-line {
  width: 48px;
  height: 2px;
  background: var(--color-gold);
  margin: 0 0 24px;
}
.hw-hero-sub {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.75);
  margin: 0 0 40px;
  font-weight: 400;
  letter-spacing: .05em;
}
.hw-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hw-hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hw-hero-scroll-line {
  width: 1.5px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-gold), transparent);
  margin: 0 auto;
  animation: scrolldown 2s ease-in-out infinite;
}
@keyframes scrolldown {
  0%  { transform: scaleY(0); transform-origin: top; opacity:1; }
  45% { transform: scaleY(1); transform-origin: top; opacity:1; }
  55% { transform: scaleY(1); transform-origin: bottom; opacity:1; }
  100%{ transform: scaleY(0); transform-origin: bottom; opacity:0; }
}

/* --- QUICKBAR 재정의 --- */
.hw-quickbar {
  background: #fff;
  border-bottom: 2px solid var(--color-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  position: sticky;
  top: 70px;
  z-index: 90;
}
.hw-quickbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hw-qi {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  color: var(--color-primary) !important;
  font-size: .87rem;
  font-weight: 600;
  border-right: 1px solid var(--color-border);
  transition: all .2s;
  text-decoration: none !important;
}
.hw-qi:last-child { border-right: none; }
.hw-qi svg { width: 18px; height: 18px; color: var(--color-gold); flex-shrink: 0; }
.hw-qi:hover {
  background: var(--color-cream);
  color: var(--color-primary) !important;
}
.hw-qi-phone { color: var(--color-text-muted) !important; font-size: .82rem; }
.hw-qi-phone:hover { color: var(--color-primary) !important; }

/* --- MAIN SECTION (2-col) --- */
.hw-main-section {
  padding: 72px 0;
  background: var(--color-white);
}
.hw-main-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: start;
}

.hw-col-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-primary);
}
.hw-col-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0;
}
.hw-col-more {
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
  transition: color .2s;
  white-space: nowrap;
}
.hw-col-more:hover { color: var(--color-primary) !important; }

/* 공지 리스트 */
.hw-notice-list { display: flex; flex-direction: column; }
.hw-notice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--color-border);
  text-decoration: none !important;
  transition: padding-left .18s;
}
.hw-notice-row:last-child { border-bottom: none; }
.hw-notice-row:hover { padding-left: 8px; }

.hw-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: .03em;
}
.hw-badge-default { background: var(--color-primary); color: #fff; }
.hw-badge-blue    { background: #1d4ed8; color: #fff; }
.hw-badge-gold    { background: var(--color-gold); color: var(--color-primary); }

.hw-notice-text {
  flex: 1;
  font-size: .9rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-notice-row:hover .hw-notice-text { color: var(--color-primary); }

.hw-new {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  font-style: normal;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
  letter-spacing: 0;
}
.hw-notice-date {
  font-size: .78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.hw-empty-msg { color: var(--color-text-muted); font-size: .9rem; padding: 16px 0; }

.hw-notice-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.hw-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-primary) !important;
  background: var(--color-cream);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: all .2s;
}
.hw-action-link:hover {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

/* 미사 시간 패널 */
.hw-mass-panel { display: flex; flex-direction: column; gap: 16px; }
.hw-mass-tab {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hw-mass-tab-head {
  background: var(--color-primary);
  color: var(--color-gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.hw-mass-tab-head svg { stroke: var(--color-gold); }
.hw-mass-r {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.hw-mass-r:last-child { border-bottom: none; }
.hw-mass-r span { color: var(--color-text-muted); }
.hw-mass-r strong {
  color: var(--color-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
}
.hw-mass-tip {
  margin-top: 12px;
  font-size: .79rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-cream);
  border-radius: 6px;
  border-left: 3px solid var(--color-gold);
}
.hw-mass-tip svg { flex-shrink: 0; stroke: var(--color-gold); }

/* --- 30주년 배너 --- */
.hw-anniversary {
  background: linear-gradient(135deg, #1A2744 0%, #2C3E6B 50%, #1A2744 100%);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}
.hw-anniversary::before {
  content: '✝';
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18rem;
  color: rgba(255,255,255,.03);
  font-family: serif;
  line-height: 1;
  pointer-events: none;
}
.hw-anniversary-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hw-anniversary-emblem {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-gold);
  color: var(--color-primary);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 6px rgba(201,168,76,.2);
}
.hw-ann-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
}
.hw-ann-text {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.hw-anniversary-text { flex: 1; min-width: 220px; }
.hw-ann-label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 8px;
}
.hw-ann-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: #fff;
  font-weight: 600;
  margin: 0 0 12px;
}
.hw-ann-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  margin: 0;
  line-height: 1.7;
}

/* --- 갤러리 (실제 사진) --- */
.hw-gallery-section {
  padding: 72px 0;
  background: var(--color-cream);
}
.hw-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}
.hw-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px;
  gap: 10px;
}
.hw-photo-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-border);
  cursor: pointer;
}
.hw-photo-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.hw-photo-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.hw-photo-item:hover img { transform: scale(1.07); }
.hw-photo-cap {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(10,20,50,.75));
  color: #fff;
  font-size: .78rem;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity .3s;
}
.hw-photo-item:hover .hw-photo-cap { opacity: 1; }
.hw-photo-error { background: #1A2744; display: flex; align-items: center; justify-content: center; }
.hw-photo-error::after { content: '✝'; color: rgba(255,255,255,.15); font-size: 3rem; }
.hw-photo-error img { display: none; }

/* --- 오시는 길 스트립 --- */
.hw-map-strip {
  background: var(--color-primary);
  padding: 60px 24px;
  border-top: 3px solid var(--color-gold);
}
.hw-map-inner {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  flex-wrap: wrap;
}
.hw-map-info { flex: 1.2; min-width: 0; }
.hw-map-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 24px;
}
.hw-map-address { display: flex; flex-direction: column; gap: 14px; }
.hw-map-row { display: flex; gap: 14px; }
.hw-map-icon { font-size: 1.1rem; margin-top: 2px; flex-shrink: 0; }
.hw-map-row strong {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 3px;
}
.hw-map-row p {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin: 0;
}
.hw-map-row a { color: rgba(255,255,255,.85) !important; }

.hw-map-buses { flex: 1; min-width: 200px; }
.hw-map-bus-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 14px;
}
.hw-bus-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.hw-bus-type {
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.hw-bus-type.g { background: rgba(34,197,94,.15); color: #86efac; border: 1px solid rgba(34,197,94,.25); }
.hw-bus-type.b { background: rgba(59,130,246,.15); color: #93c5fd; border: 1px solid rgba(59,130,246,.25); }
.hw-bus-type.r { background: rgba(239,68,68,.15);  color: #fca5a5; border: 1px solid rgba(239,68,68,.25); }
.hw-bus {
  font-size: .78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  font-variant-numeric: tabular-nums;
}
.hw-bus.g { background: rgba(34,197,94,.2);  color: #86efac; }
.hw-bus.b { background: rgba(59,130,246,.2); color: #93c5fd; }
.hw-bus.r { background: rgba(239,68,68,.2);  color: #fca5a5; }

.hw-map-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--color-gold);
  color: var(--color-primary) !important;
  padding: 20px 28px;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  font-weight: 700;
  font-size: .88rem;
  transition: all .25s;
  flex-shrink: 0;
  align-self: center;
}
.hw-map-btn:hover {
  background: #b8953d;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}
.hw-map-btn svg { width: 32px; height: 32px; }

/* ==============================================
   RESPONSIVE — REDESIGN 2.0
   ============================================== */

/* Tablet (1024px 이하) */
@media (max-width: 1024px) {
  .hw-main-grid  { grid-template-columns: 1fr; gap: 48px; }
  .hw-photo-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 200px 160px;
  }
  .hw-photo-featured { grid-column: span 2; grid-row: span 1; }
  .hw-anniversary-inner { gap: 36px; }
}

/* Mobile landscape / large phone (768px 이하) */
@media (max-width: 768px) {

  /* 히어로 */
  .hw-hero { min-height: 70vh; }
  .hw-hero-content { padding: 60px 20px 90px; }
  .hw-hero-title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
  .hw-hero-sub { font-size: .95rem; }
  .hw-hero-scroll { display: none; }

  /* 퀵바: 흰 배경, 2열 그리드 */
  .hw-quickbar { position: static; box-shadow: none; border-bottom: 1px solid var(--color-border); }
  .hw-quickbar-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 100%;
    padding: 0;
  }
  .hw-qi {
    flex-direction: column;
    gap: 4px;
    padding: 14px 8px;
    font-size: .78rem;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    justify-content: center;
    align-items: center;
    text-align: center;
  }
  .hw-qi:nth-child(2n) { border-right: none; }
  .hw-qi:nth-child(3), .hw-qi:nth-child(4) { border-bottom: none; }
  /* 5번째 아이템 전화번호 - 하단 전체 폭 */
  .hw-qi-phone {
    grid-column: span 2;
    flex-direction: row;
    border-right: none;
    border-bottom: none;
    border-top: 1px solid var(--color-border);
    font-size: .82rem;
    padding: 11px 16px;
    background: var(--color-cream);
    justify-content: center;
  }
  .hw-qi svg { width: 20px; height: 20px; }

  /* 본당소식 + 미사 */
  .hw-main-section { padding: 48px 0; }

  /* 갤러리 */
  .hw-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 160px);
  }
  .hw-photo-featured { grid-column: span 2; height: 220px; }
  .hw-photo-item { height: 160px; }

  /* 30주년 배너 */
  .hw-anniversary { padding: 44px 20px; }
  .hw-anniversary-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hw-anniversary-inner .hw-btn { width: 100%; justify-content: center; }

  /* 오시는 길 */
  .hw-map-strip { padding: 44px 20px; }
  .hw-map-inner {
    flex-direction: column;
    gap: 28px;
  }
  .hw-map-btn {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    padding: 14px 24px;
  }
  .hw-map-btn svg { width: 20px; height: 20px; }
  .hw-map-info h3 { font-size: 1.4rem; margin-bottom: 16px; }
}

/* Small phone (480px 이하) */
@media (max-width: 480px) {

  /* 히어로 */
  .hw-hero { min-height: 60vh; }
  .hw-hero-content { padding: 48px 16px 80px; }
  .hw-hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hw-hero-diocese { font-size: .7rem; }
  .hw-hero-actions { flex-direction: column; gap: 10px; }
  .hw-hero-actions .hw-btn { width: 100%; justify-content: center; }

  /* 퀵바: 2×2 + 전화 */
  .hw-qi { font-size: .72rem; padding: 12px 4px; }

  /* 본당소식 제목 줄임 */
  .hw-col-title { font-size: 1.25rem; }

  /* 갤러리 */
  .hw-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 140px);
  }
  .hw-photo-featured { grid-column: span 2; height: 180px; }
  .hw-photo-item { height: 140px; }

  /* 30주년 */
  .hw-anniversary-emblem { width: 80px; height: 80px; }
  .hw-ann-num { font-size: 2.2rem; }
  .hw-ann-title { font-size: 1.5rem; }

  /* 섹션 패딩 축소 */
  .hw-main-section,
  .hw-gallery-section { padding: 40px 0; }
}

/* ==============================================
   INNER PAGES — 서브페이지 공통 스타일
   ============================================== */

/* 페이지 배너 */
.hw-page-hero {
  background: linear-gradient(135deg, #0f1e40 0%, var(--color-primary) 100%);
  padding: 52px 0 40px;
  position: relative;
  border-bottom: 3px solid var(--color-gold);
  overflow: hidden;
}
.hw-page-hero::before {
  content: '✝';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10rem;
  color: rgba(255,255,255,.03);
  pointer-events: none;
  line-height: 1;
}
.hw-page-hero-parent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 10px;
}
.hw-page-hero-parent a { color: var(--color-gold) !important; text-decoration: none; }
.hw-page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
}
.hw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
}
.hw-breadcrumb a { color: rgba(255,255,255,.6) !important; transition: color .2s; }
.hw-breadcrumb a:hover { color: var(--color-gold) !important; }
.hw-breadcrumb span[aria-current] { color: rgba(255,255,255,.85); }

/* 페이지 본문 영역 */
.hw-page-wrap {
  background: var(--color-white);
  padding: 56px 0 80px;
}
.hw-page-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
  align-items: start;
}

/* 사이드 내비 */
.hw-page-sidebar { position: sticky; top: 90px; }
.hw-sidenav {
  background: var(--color-cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.hw-sidenav-title {
  background: var(--color-primary);
  color: var(--color-gold);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 14px 18px;
  margin: 0;
}
.hw-sidenav ul {
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.hw-sidenav li { margin: 0; }
.hw-sidenav li a {
  display: block;
  padding: 10px 18px;
  font-size: .88rem;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
  transition: all .18s;
  border-left: 3px solid transparent;
}
.hw-sidenav li a:hover {
  color: var(--color-primary) !important;
  background: rgba(26,39,68,.05);
  border-left-color: var(--color-gold);
  padding-left: 22px;
}
.hw-sidenav-active a {
  color: var(--color-primary) !important;
  font-weight: 700;
  border-left-color: var(--color-gold) !important;
  background: rgba(26,39,68,.06) !important;
  padding-left: 22px !important;
}

/* 본문 타이포 */
.hw-prose {
  line-height: 1.8;
  color: var(--color-text);
  max-width: 100%;
  overflow: hidden;
}
.hw-prose h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-border);
}
.hw-prose h2:first-child { margin-top: 0; }
.hw-prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 32px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hw-prose h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: var(--color-gold);
  border-radius: 2px;
  flex-shrink: 0;
}
.hw-prose p { margin: 0 0 16px; color: var(--color-text-muted); }
.hw-prose strong { color: var(--color-text); }
.hw-prose ul, .hw-prose ol { padding-left: 1.4em; margin: 0 0 16px; color: var(--color-text-muted); }
.hw-prose li { margin-bottom: 6px; }
.hw-prose a { color: var(--color-primary); border-bottom: 1px solid var(--color-gold-light); }
.hw-prose a:hover { color: var(--color-gold); }

/* 본문 테이블 */
.hw-prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  margin: 20px 0 32px;
  font-size: .92rem;
  overflow-x: auto;
  display: block;
}
.hw-prose table th {
  background: var(--color-primary);
  color: #fff;
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  font-size: .82rem;
}
.hw-prose table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.hw-prose table tr:last-child td { border-bottom: none; }
.hw-prose table tr:nth-child(even) td { background: var(--color-cream); }
.hw-prose table td strong {
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}

/* 정보 박스 */
.hw-info-box {
  background: var(--color-cream);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px;
  margin: 24px 0;
  font-size: .9rem;
  color: var(--color-text-muted);
}
.hw-info-box strong { color: var(--color-primary); }

/* 미사 시간 — 페이지 전용 카드 */
.hw-mass-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0 32px;
}
.hw-mass-page-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.hw-mass-page-head {
  background: var(--color-primary);
  color: var(--color-gold);
  padding: 14px 20px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hw-mass-page-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: .9rem;
}
.hw-mass-page-row:last-child { border-bottom: none; }
.hw-mass-page-row span { color: var(--color-text-muted); }
.hw-mass-page-row strong {
  color: var(--color-primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: .95rem;
}

/* 오시는 길 전용 */
.hw-directions-wrap { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.hw-dir-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  align-items: flex-start;
}
.hw-dir-card-icon {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hw-dir-card-body strong {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.hw-dir-card-body p { margin: 0; font-size: .9rem; color: var(--color-text-muted); line-height: 1.6; }

/* 지도 placeholder */
.hw-map-placeholder {
  background: linear-gradient(135deg, #1A2744, #2C3E6B);
  border-radius: var(--radius-md);
  height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  gap: 12px;
  margin-top: 24px;
  font-size: .9rem;
}

/* 게시판 목록 */
.hw-board-list { display: flex; flex-direction: column; }
.hw-board-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none !important;
  transition: padding-left .18s;
}
.hw-board-item:last-child { border-bottom: none; }
.hw-board-item:hover { padding-left: 8px; }
.hw-board-num {
  width: 32px;
  text-align: center;
  font-size: .78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.hw-board-cat {
  font-size: .68rem;
  font-weight: 700;
  background: var(--color-primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hw-board-title {
  flex: 1;
  font-size: .9rem;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hw-board-item:hover .hw-board-title { color: var(--color-primary); }
.hw-board-date {
  font-size: .78rem;
  color: var(--color-text-muted);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* 섹션 추가 안내 */
.hw-page-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.hw-page-empty .hw-page-empty-icon { font-size: 3rem; margin-bottom: 16px; }
.hw-page-empty p { font-size: .95rem; }

/* ==============================================
   INNER PAGE RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
  /* 사이드바 → 상단 탭으로 전환 */
  .hw-page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hw-page-sidebar {
    position: static;
    order: -1;
  }
  .hw-sidenav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
  }
  .hw-sidenav li { flex: 1 1 auto; min-width: 0; }
  .hw-sidenav li a {
    padding: 8px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
    text-align: center;
    font-size: .8rem;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hw-sidenav li a:hover {
    padding-left: 12px;
    border-left: none;
    border-bottom-color: var(--color-gold);
  }
  .hw-sidenav-active a {
    border-left: none !important;
    border-bottom: 2px solid var(--color-gold) !important;
    padding-left: 12px !important;
    background: rgba(26,39,68,.08) !important;
  }
  /* 미사 시간 2단 → 1단 */
  .hw-mass-page-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hw-page-hero { padding: 36px 0 28px; }
  .hw-page-hero-title { font-size: 1.5rem; }
  .hw-page-wrap { padding: 28px 0 48px; }
  /* 테이블 모바일 스크롤 */
  .hw-prose table {
    font-size: .82rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .hw-prose table th, .hw-prose table td { padding: 10px 12px; }
  .hw-prose h2 { font-size: 1.35rem; }
  /* 미사 카드 내 행 */
  .hw-mass-page-row { padding: 11px 14px; font-size: .85rem; }
  /* 오시는길 카드 */
  .hw-dir-card { flex-direction: column; gap: 10px; }
  .hw-dir-card-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* 사이드바 없는 페이지 (갤러리, 30주년 등) */
.hw-page-no-sidebar { grid-template-columns: 1fr; max-width: 860px; }
