/* =====================================================================
   공개 화면 디자인 (fragments/site.html, index.html)
   - 홈: style.css 를 쓰지 않음 / 서브페이지: style.css 위에 덮어 씀
   - 클래스 접두어 st- (style.css 와 충돌 방지)
   - 수치는 참고 사이트(데스크톱 1440px, 모바일 400px) 측정값 기준
   ===================================================================== */

@font-face {
    font-family: 'GimhaeGaya';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2202-2@1.0/GimhaeGayaR.woff') format('woff');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'GimhaeGaya';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2202-2@1.0/GimhaeGayaB.woff') format('woff');
    font-weight: 700;
    font-display: swap;
}

:root {
    --st-deep: #096f78;        /* 제목 */
    --st-teal: #00828e;        /* 연락처 띠, more, 하단 교회명 */
    --st-aqua: #2bafbb;        /* 아이콘 카드 강조 */
    --st-btn: #2badb8;         /* 작은 버튼 */
    --st-soft: #3d9ba2;        /* 환영 섹션 설명 */
    --st-hover: #b0fbff;       /* 헤더 메뉴 hover */
    --st-band: #e0ecef;        /* 설교 카드 배경 띠 */
    --st-pale: #d7f2f5;
    --st-pale-2: #a0d2d7;
    --st-gray-bg: #f0f0f0;
    --st-text: #333;
    --st-date: #7f7d78;
    --st-line: #e5e5e5;
    --st-wide: 1300px;
    --st-mid: 1170px;
    --st-gutter: 20px;
    --st-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    --st-title: 'GimhaeGaya', var(--st-sans);
}

/* ---------- 기본 ---------- */
html { overflow-x: hidden; overflow-x: clip; }   /* clip 미지원(iOS 15 이하)은 hidden */
body {
    position: relative;
    font-family: var(--st-sans);
    color: var(--st-text);
    background: #fff;
    overflow-x: clip;
    word-break: keep-all;
    -webkit-font-smoothing: antialiased;
}
body.st-home { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }

.st-home *, .st-home *::before, .st-home *::after,
.st-header *, .st-footer *, .st-side *, .st-subhero *, .st-subtitle *, .st-sitemap * { box-sizing: border-box; }
.st-header a, .st-footer a, .st-home a, .st-side a, .st-subtitle a, .st-sitemap a { color: inherit; text-decoration: none; }
.st-header ul, .st-footer ul, .st-footer dl, .st-home ul, .st-side ul, .st-breadcrumb, .st-sitemap ul { list-style: none; margin: 0; padding: 0; }
.st-home h2, .st-home h3, .st-home p, .st-footer p, .st-footer dd, .st-sitemap h2, .st-sitemap h3 { margin: 0; }

.st-pre { white-space: pre-line; }
.st-inline-form { display: inline; margin: 0; }
.st-inline-form button { background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; }

/* =====================================================================
   헤더 — 고정하지 않고 상단 이미지 위에 겹친다 (스크롤하면 함께 올라감)
   ===================================================================== */
.st-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 100;
    color: #fff;
}
.st-header-inner {
    max-width: 1400px;
    height: 120px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* 폭이 모자라면 로고가 줄어든다 (교회 이름은 말줄임) — 헤더가 화면보다 넓어지지 않게 */
.st-logo { flex: 0 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; }
.st-logo-img { display: block; height: 66px; width: auto; min-width: 0; max-width: 100%; object-fit: contain; object-position: left center; }
.st-logo.is-image-only .st-logo-img { height: 76px; }
.st-logo-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; font-family: var(--st-title); }
.st-logo-text small, .st-logo-text strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-logo-text small { font-size: 14px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 4px; }
.st-logo-text strong { font-size: 34px; font-weight: 700; letter-spacing: -1px; }

.st-gnb { flex: 1; min-width: 0; display: flex; justify-content: center; }
.st-gnb-list { display: flex; }
.st-gnb-item { position: relative; }
.st-gnb-link {
    display: block;
    padding: 30px 24px;
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    transition: color .2s;
}
.st-gnb-item:hover > .st-gnb-link,
.st-gnb-item:focus-within > .st-gnb-link { color: var(--st-hover); }

/* 드롭다운: 마우스를 올린 메뉴만 흰색 카드로 열린다 */
.st-drop {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 175px;
    padding: 18px 20px 20px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
    color: var(--st-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.st-gnb-item:hover > .st-drop,
.st-gnb-item:focus-within > .st-drop { opacity: 1; visibility: visible; transform: none; }
.st-drop > ul > li > a {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}
.st-drop a:hover, .st-drop a:focus-visible { color: var(--st-deep); }
.st-drop3 { padding: 0 0 4px 10px !important; }
.st-drop3 a { display: block; font-size: 13px; line-height: 24px; color: #777; white-space: nowrap; }

.st-util { flex: 0 0 auto; display: flex; align-items: center; gap: 18px; }
.st-util-links { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: -1px; }
.st-util-links a:hover, .st-util-links button:hover { color: var(--st-hover); }
.st-menu-btn {
    width: 26px; height: 22px;
    padding: 2px 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.st-menu-btn span { display: block; height: 2px; background: currentColor; }

/* 상단 이미지가 없는 화면(배너 모듈 없는 홈)은 헤더를 흰 배경으로 */
body:not(:has(.st-hero)):not(:has(.st-subhero)) .st-header {
    position: relative;
    background: #fff;
    color: var(--st-text);
    border-bottom: 1px solid var(--st-line);
}
body:not(:has(.st-hero)):not(:has(.st-subhero)) .st-logo-img { filter: none; }

/* 전체 메뉴 패널 */
.st-panel {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    color: var(--st-text);
}
.st-panel.is-open { opacity: 1; visibility: visible; }
.st-panel-inner {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(400px, 100%);
    background: #fff;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s ease;
}
.st-panel.is-open .st-panel-inner { transform: none; }
.st-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    background: var(--st-deep);
    color: #fff;
}
.st-panel-title { font-family: var(--st-title); font-size: 22px; font-weight: 700; }
.st-panel-close { border: 0; background: none; color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.st-panel-util { display: flex; gap: 16px; padding: 14px 20px; font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--st-line); }
.st-panel-util span { display: flex; gap: 16px; }
.st-panel-group { border-bottom: 1px solid var(--st-line); }
.st-panel-toggle, .st-panel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 17px 20px;
    border: 0;
    background: none;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.st-panel-toggle::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .5;
    transition: transform .2s;
}
.st-panel-group.is-open .st-panel-toggle { color: var(--st-deep); }
.st-panel-group.is-open .st-panel-toggle::after { transform: rotate(-135deg); }
.st-panel-sub { display: none; padding: 4px 20px 14px !important; background: #f6fafb; }
.st-panel-group.is-open .st-panel-sub { display: block; }
.st-panel-sub > li > a { display: block; padding: 9px 4px; font-size: 15px; font-weight: 600; color: #555; }
.st-panel-sub3 { padding-left: 14px !important; }
.st-panel-sub3 a { display: block; padding: 5px 4px; font-size: 14px; color: #888; }
body.st-lock { overflow: hidden; }

/* 대메뉴가 한 줄에 다 들어가지 않으면 site.js 가 is-collapsed 를 붙인다 → 전체 메뉴(≡)로 전환 */
.st-header.is-collapsed .st-gnb { display: none; }
.st-header.is-collapsed .st-header-inner { justify-content: space-between; }
@media (max-width: 1439px) {
    .st-header-inner { gap: 20px; }
    .st-gnb-link { padding-left: 18px; padding-right: 18px; font-size: 19px; }
}
@media (max-width: 1199px) {
    .st-gnb { display: none; }
    .st-header-inner { justify-content: space-between; padding: 0 24px; }
}
@media (max-width: 768px) {
    .st-header-inner { height: 84px; padding: 0 15px; }
    .st-logo-img { height: 48px; }
    .st-logo.is-image-only .st-logo-img { height: 54px; }
    .st-logo-text small { font-size: 11px; margin-bottom: 2px; }
    .st-logo-text strong { font-size: 26px; }
    .st-util-links { display: none; }
}

/* =====================================================================
   홈 공통 레이아웃
   - main 은 6칸 그리드: 전체=6칸, 1/2=3칸, 1/3=2칸
   - st-bleed 는 화면 끝까지 넓힌다
   ===================================================================== */
.st-home-main {
    flex: 1;
    width: 100%;
    max-width: calc(var(--st-wide) + var(--st-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--st-gutter);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 57px;
}
.st-sec { grid-column: 1 / -1; padding: 115px 0; min-width: 0; }
.st-sec.st-w-half { grid-column: span 3; }
.st-sec.st-w-third { grid-column: span 2; }
.st-bleed {
    grid-column: 1 / -1;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.st-sec-head { text-align: center; margin-bottom: 60px; }
.st-sec-head h2 {
    font-family: var(--st-title);
    font-size: 38px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: -2px;
    color: var(--st-deep);
}
.st-sec-head--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    margin-bottom: 26px;
}
.st-more { font-size: 17px; font-weight: 600; color: var(--st-teal); }
.st-more:hover { color: var(--st-aqua); }
.st-empty { text-align: center; color: #999; padding: 30px 0; font-size: 15px; }

/* 작은 버튼 (환영 섹션 등 HTML 모듈에서 사용) */
.st-btn-sm, .st-html-body .st-btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    height: 36px;
    padding: 0 14px;
    border-radius: 5px;
    background: var(--st-btn);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
    transition: background-color .2s;
}
.st-btn-sm:hover { background: var(--st-deep); }

/* ---------- 메인 비주얼 ---------- */
.st-hero {
    position: relative;
    height: 850px;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    background: #0d4f55;
}
.st-hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}
.st-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .18);
}
.st-hero-slide.is-active { opacity: 1; z-index: 1; }
.st-hero-slide--plain { background: linear-gradient(135deg, #075a62, var(--st-aqua)); }
.st-hero-slide--plain::before { display: none; }
.st-hero-text { position: relative; max-width: 1000px; padding: 0 var(--st-gutter); }
.st-hero.has-overlap .st-hero-text { margin-top: -40px; }
.st-hero-text h2 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -2px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .3);
}
.st-hero-text p {
    margin-top: 18px;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}
.st-hero-btn {
    display: inline-block;
    margin-top: 26px;
    padding: 10px 28px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
}
.st-hero-btn:hover { background: #fff; color: var(--st-deep) !important; }
.st-hero-dots { position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.st-hero.has-overlap .st-hero-dots { bottom: 130px; }
.st-dot {
    width: 24px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    cursor: pointer;
    transition: background-color .3s, width .3s;
}
.st-dot.is-active { width: 40px; background: var(--st-aqua); }

/* ---------- 아이콘 카드 ---------- */
.st-quick { padding-top: 60px; padding-bottom: 0; }
.st-quick.is-overlap { position: relative; z-index: 3; margin-top: -86px; padding-top: 0; }
.st-quick-desc:empty { display: none; }
.st-quick-desc { text-align: center; margin-bottom: 30px; color: #666; }
.st-quick-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 370px);
    justify-content: center;
    gap: 30px;
}
.st-quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 269px;
    padding-top: 60px;
    border-radius: 50px;
    background: #fff;
    box-shadow: 0 0 20px #ddd;
    color: var(--st-aqua);
    text-align: center;
    transition: transform .25s;
}
.st-quick-card:hover { transform: translateY(-6px); }
.st-quick-card:nth-child(2) { background: var(--st-aqua); color: #fff; }
.st-quick-icon { width: 90px; height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 17px; }
.st-quick-icon img { max-width: 100%; max-height: 100%; object-fit: contain; }
.st-quick-icon svg { width: 70px; height: 70px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.st-quick-card strong { font-family: var(--st-title); font-size: 24px; font-weight: 700; line-height: 38px; letter-spacing: -0.5px; }
.st-quick-card em { font-family: var(--st-title); font-style: normal; font-size: 15px; font-weight: 700; line-height: 24px; }

/* ---------- HTML 콘텐츠 / 환영 섹션 ---------- */
.st-html { padding-top: 115px; }
.st-html .st-sec-head h2 { font-size: 42px; letter-spacing: -3px; }
.st-html-body { line-height: 1.7; color: #555; }
.st-html-body img { max-width: 100%; height: auto; }

.st-welcome {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 308px 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}
.st-welcome::before {   /* 왼쪽 은은한 구름 장식 */
    content: "";
    position: absolute;
    left: -520px; top: -220px;
    width: 900px; height: 620px;
    background: radial-gradient(closest-side, rgba(224, 236, 239, .85), rgba(224, 236, 239, 0));
    z-index: -1;
    pointer-events: none;
}
.st-welcome-col { display: flex; flex-direction: column; gap: 94px; }
.st-welcome-col--right { text-align: right; }
.st-welcome-item h3 {
    font-family: var(--st-title);
    font-size: 24px;
    font-weight: 700;
    line-height: 38px;
    letter-spacing: -1px;
    color: var(--st-deep);
    margin-bottom: 11px;
}
.st-welcome-item p {
    font-family: var(--st-title);
    font-size: 15px;
    font-weight: 700;
    line-height: 22.5px;
    letter-spacing: -0.5px;
    color: var(--st-soft);
    margin-bottom: 19px;
}
.st-welcome-figure { text-align: center; }
.st-welcome-figure img { width: 100%; max-width: 308px; height: auto; display: block; margin: 0 auto; }

/* ---------- 설교 영상 카드 ---------- */
.st-sermons {
    padding-top: 153px;
    padding-bottom: 150px;
    background-color: var(--st-band);
    background-image: radial-gradient(rgba(9, 111, 120, .06) 1.2px, transparent 1.3px);
    background-size: 11px 11px;
}
.st-sermons .st-sec-head { margin-bottom: 68px; }
.st-sermon-grid {
    display: grid;
    grid-template-columns: 640fr 310fr 310fr;
    gap: 20px;
    max-width: var(--st-wide);
    margin: 0 auto;
}
.st-sermon-card { display: flex; flex-direction: column; min-width: 0; }
.st-sermon-thumb {
    position: relative;
    height: 380px;
    border-radius: 50px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--st-deep), var(--st-aqua));
    box-shadow: 0 0 20px #ced8db;
}
.st-sermon-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.st-sermon-card:hover .st-sermon-thumb img { transform: scale(1.05); }
.st-sermon-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 50%);
}
.st-sermon-card:not(.is-main) .st-sermon-thumb::after { background: rgba(9, 111, 120, .55); }
.st-sermon-label {
    position: absolute;
    top: 67px; left: 79px;
    z-index: 1;
    width: 176px;
    font-family: var(--st-title);
    font-size: 32px;
    font-weight: 700;
    line-height: 38.4px;
    letter-spacing: -2px;
    color: #fff;
}
.st-sermon-card:not(.is-main) .st-sermon-label { left: 36px; }
.st-sermon-info { text-align: center; padding-top: 21px; }
.st-sermon-info strong {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 41.6px;
    color: var(--st-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-sermon-meta {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    line-height: 28.8px;
    color: var(--st-text);
    white-space: nowrap;
    overflow: hidden;
}
.st-sermon-meta span:last-child:not(:first-child) { overflow: hidden; text-overflow: ellipsis; }

/* ---------- 교회소식 (게시판 목록) ---------- */
.st-board, .st-gallery { padding-top: 153px; padding-bottom: 115px; }
.st-board .st-sec-head h2, .st-gallery .st-sec-head h2 { line-height: 61px; }
.st-board-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 54px;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--st-deep);
}
.st-board-list a:hover .st-board-title { text-decoration: underline; }
.st-board-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-board-list time { flex: 0 0 90px; text-align: right; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--st-date); }

/* ---------- 갤러리 ---------- */
.st-gallery-desc { color: #555; margin-bottom: 16px; }
.st-gallery-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 60px) / 3);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.st-gallery-track::-webkit-scrollbar { display: none; }
.st-w-full .st-gallery-track { grid-auto-columns: calc((100% - 150px) / 6); }
.st-gallery-card { scroll-snap-align: start; min-width: 0; }
.st-gallery-thumb { aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: var(--st-deep); }
.st-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.st-gallery-card:hover .st-gallery-thumb img { transform: scale(1.06); }
.st-gallery-card strong {
    display: block;
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--st-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.st-gallery-dots { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.st-gallery-dots:empty { display: none; }
.st-gallery-dots button {
    width: 8px; height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
}
.st-gallery-dots button.is-active { background: var(--st-deep); }

/* ---------- 예배 안내 (알약 모양 + 배경 슬라이드) ---------- */
.st-worship { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 0; }
.st-worship-box {
    position: relative;
    max-width: 1400px;
    min-height: 600px;          /* 내용이 많으면 늘어난다 (고정 높이면 위아래가 잘림) */
    margin: 0 auto;
    padding: 90px 0;
    border-radius: 500px;
    overflow: hidden;
    background: #dfe7e8;
    display: flex;
    align-items: center;
}
.st-worship-bg { position: absolute; inset: 0; }
.st-worship-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.st-worship-slide.is-active { opacity: 1; }
.st-worship-text { position: relative; width: 100%; padding: 0 12% 0 16.5%; }
.st-worship-text h2 {
    font-family: var(--st-title);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--st-deep);
    margin-bottom: 28px;
}
.st-worship-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px 48px; }
.st-worship-group h3 { font-size: 18px; font-weight: 700; color: var(--st-deep); margin-bottom: 8px; }
.st-worship-group dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px 28px;
    margin: 0;
    font-size: 22px;
    font-weight: 500;
    color: var(--st-deep);
}
.st-worship-group dd { margin: 0; }
.st-worship-content { margin-top: 20px; color: #444; line-height: 1.7; }

/* ---------- 지도 / 동영상 / iframe / 이미지 ---------- */
.st-map-frame iframe, .st-iframe iframe { display: block; width: 100%; height: 420px; border: 0; border-radius: 20px; }
.st-map .st-html-body { margin-top: 18px; }
.st-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; }
.st-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.st-image img { display: block; width: 100%; object-fit: cover; border-radius: 20px; }
.st-iframe-fullscreen { grid-column: 1 / -1; width: 100vw; height: 100vh; border: 0; margin-left: calc(50% - 50vw); }

/* ---------- 홈 반응형 ---------- */
/* 1199px 이하 메인 비주얼: 이미지를 잘라내지 않고 배너 비율대로 전부 보여준다
   - 높이 = 헤더 높이 + 화면 폭 ÷ 이미지 비율 + 아이콘 카드가 겹치는 높이
   - 이미지는 헤더 아래부터, 카드가 겹치는 띠 위까지만 깐다 (헤더·카드가 이미지 글자를 가리지 않게)
   - --st-hero-ratio 는 site.js 가 첫 배너 이미지 크기로 넣는다 (기본 16:9) */
@media (max-width: 1199px) {
    .st-hero { --st-hero-top: 120px; --st-hero-bottom: 0px; height: calc(var(--st-hero-top) + 100vw / var(--st-hero-ratio, 1.7778) + var(--st-hero-bottom)); }
    .st-hero.has-overlap { --st-hero-bottom: 86px; }
    .st-hero-slide { top: var(--st-hero-top); bottom: var(--st-hero-bottom); }
    .st-hero.has-overlap .st-hero-dots { bottom: calc(var(--st-hero-bottom) + 14px); }
    .st-hero.has-overlap .st-hero-text { margin-top: 0; }
    /* 이미지 위 헤더 자리는 흰 띠 — 로고 원래 색이 그대로 보이게 */
    .st-hero { background: #fff; }
    body:has(.st-hero) .st-header { color: var(--st-text); }
    .st-hero-text h2 { font-size: 52px; }
    .st-quick-grid { grid-auto-columns: minmax(0, 1fr); }
    .st-sermon-label { left: 40px; top: 44px; }
    .st-worship-box { border-radius: 300px; min-height: 520px; padding: 70px 0; }
    .st-worship-text { padding: 0 10% 0 14%; }
}
@media (max-width: 1024px) {
    .st-sec.st-w-third { grid-column: span 3; }
    .st-sermon-grid { grid-template-columns: 1fr 1fr; }
    .st-sermon-card.is-main { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
    :root { --st-gutter: 20px; }
    .st-home-main { column-gap: 0; }
    .st-sec, .st-sec.st-w-half, .st-sec.st-w-third { grid-column: 1 / -1; padding-top: 55px; padding-bottom: 55px; }
    .st-sec-head { margin-bottom: 30px; }
    .st-sec-head h2 { font-size: 22px; letter-spacing: -1px; }

    .st-hero { --st-hero-top: 84px; padding-top: 0; padding-bottom: 0; }
    .st-hero.has-overlap { --st-hero-bottom: 44px; }
    .st-hero.has-overlap .st-hero-text { margin-top: 0; }
    .st-hero-text h2 { font-size: 28px; letter-spacing: -1px; }
    .st-hero-text p { margin-top: 10px; font-size: 12px; }
    .st-hero.has-overlap .st-hero-dots { bottom: calc(var(--st-hero-bottom) + 8px); }
    .st-hero-dots { bottom: 12px; }

    .st-quick { padding-top: 30px; }
    .st-quick.is-overlap { margin-top: -44px; padding-top: 0; }
    .st-quick-grid { gap: 4px; grid-auto-columns: minmax(0, 110px); }
    .st-quick-card { height: 110px; padding-top: 16px; border-radius: 25px; box-shadow: 0 0 12px #e2e2e2; }
    .st-quick-icon { width: 40px; height: 34px; margin-bottom: 6px; }
    .st-quick-icon svg { width: 34px; height: 34px; }
    .st-quick-card strong { font-size: 15px; line-height: 24px; }
    .st-quick-card em { font-size: 11px; line-height: 17.6px; }

    .st-html { padding-top: 55px; }
    .st-html .st-sec-head h2 { font-size: 20px; letter-spacing: -1px; color: var(--st-teal); }
    .st-welcome { grid-template-columns: 1fr 125px 1fr; gap: 8px; }
    .st-welcome::before { display: none; }
    .st-welcome-col { gap: 34px; }
    .st-welcome-item h3 { font-size: 15px; line-height: 19.5px; letter-spacing: -0.5px; margin-bottom: 9px; }
    .st-welcome-item p { display: none; }
    .st-btn-sm, .st-html-body .st-btn-sm { min-width: 0; width: 105px; max-width: 100%; height: 36px; font-size: 14px; padding: 0 8px; }
    .st-welcome-figure img { max-width: 125px; }

    .st-sermons { padding-top: 40px; padding-bottom: 60px; }
    .st-sermons .st-sec-head { margin-bottom: 30px; }
    .st-sermon-grid { grid-template-columns: 1fr 1fr; gap: 30px 10px; }
    .st-sermon-thumb { height: 214px; border-radius: 30px; }
    .st-sermon-label { top: 24px; left: 22px !important; width: 110px; font-size: 22px; font-weight: 400; line-height: 26.4px; letter-spacing: -1px; }
    .st-sermon-info { padding-top: 12px; }
    .st-sermon-info strong { font-size: 20px; line-height: 32px; }
    .st-sermon-meta { font-size: 14px; font-weight: 600; line-height: 22.4px; color: #292929; }
    .st-sermon-card.is-main .st-sermon-meta { font-size: 15px; }

    .st-board, .st-gallery { padding: 30px 25px; }
    .st-board .st-sec-head h2, .st-gallery .st-sec-head h2 { font-size: 22px; line-height: 35px; }
    .st-sec-head--row { margin-bottom: 12px; }
    .st-more { font-size: 13px; }
    .st-board-list a { height: 32px; font-size: 16px; letter-spacing: -0.5px; }
    .st-board-list time { flex-basis: 70px; font-size: 15px; font-weight: 400; }
    .st-gallery-track, .st-w-full .st-gallery-track { grid-auto-columns: 97px; gap: 10px; }
    .st-gallery-thumb { aspect-ratio: 97 / 100; }
    .st-gallery-card strong { margin-top: 10px; font-size: 15px; font-weight: 700; }
    .st-gallery-dots { margin-top: 16px; }

    .st-worship { padding-top: 40px; padding-bottom: 0; }
    .st-worship-box { min-height: 260px; padding: 0; border-radius: 60px; }
    .st-worship-text { padding: 44px 32px; }
    .st-worship-text h2 { font-size: 22px; margin-bottom: 16px; }
    .st-worship-group dl { gap: 8px 20px; font-size: 15px; }

    .st-map-frame iframe, .st-iframe iframe { height: 300px; }
}

/* =====================================================================
   푸터
   ===================================================================== */
.st-footer { margin-top: auto; }

/* 홈 — 배경 이미지 위 사이트맵 */
.st-foot-map {
    background-color: #2b8a91;
    background-image: linear-gradient(160deg, #4ba3a8 0%, #1f7a81 60%, #0f6870 100%);
    background-size: cover;
    background-position: center top;
    color: #fff;
}
.st-foot-map[style*="background-image"] { background-color: #2b8a91; }
.st-foot-map-inner {
    max-width: 1288px;
    margin: 0 auto;
    padding: 371px 20px 190px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 208px));
    justify-content: start;
}
.st-foot-map dt { margin-bottom: 30px; font-size: 20px; font-weight: 700; }
.st-foot-map dd { margin: 0; font-size: 15px; font-weight: 700; line-height: 28px; }
.st-foot-map a:hover { color: var(--st-hover); }
/* 예배 안내가 홈 맨 끝이면 알약 아래쪽이 푸터 배경에 걸치도록 */
body:has(.st-home-main > .st-worship:last-child) .st-footer--home { margin-top: -200px; }
body:not(:has(.st-home-main > .st-worship:last-child)) .st-foot-map-inner { padding-top: 80px; }
.st-footer--home:not(:has(.st-contact)) .st-foot-map-inner { padding-bottom: 70px; }

/* 홈 — 연락처 띠: 위쪽 133px 가 사이트맵 배경에 걸친다 */
.st-contact {
    position: relative;
    margin-top: -133px;
    padding: 0 14px;
    background: linear-gradient(to bottom, transparent 0, transparent 133px, var(--st-gray-bg) 133px);
}
.st-footer--home:not(:has(.st-foot-map-inner)) .st-foot-map { min-height: 300px; }
.st-contact-inner {
    max-width: 1400px;
    min-height: 261px;
    margin: 0 auto;
    padding: 50px 60px;
    border-radius: 130px;
    background: var(--st-teal);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
    gap: 30px;
    text-align: center;
}
.st-contact-item svg {
    width: 38px; height: 38px;
    fill: none;
    stroke: var(--st-pale);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 6px;
}
.st-contact-item strong {
    display: block;
    font-family: var(--st-title);
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -1px;
    color: var(--st-pale);
}
.st-contact-item p { margin-top: 4px; font-size: 17px; font-weight: 600; line-height: 22.1px; letter-spacing: -1px; color: var(--st-pale-2); }

/* 회색 하단 (홈·서브페이지 공통) */
.st-foot { background: var(--st-gray-bg); }
.st-foot-inner {
    max-width: calc(var(--st-mid) + 40px);
    margin: 0 auto;
    padding: 73px 20px 80px;
    display: grid;
    grid-template-columns: 1fr 221px 130px;
    gap: 20px;
}
.st-foot-name { font-family: var(--st-title); font-size: 30px; font-weight: 700; line-height: 48px; letter-spacing: -1.5px; color: var(--st-teal); margin-bottom: 7px !important; }
.st-foot-addr { display: flex; flex-direction: column; font-size: 18px; font-weight: 500; line-height: 28.8px; letter-spacing: -1px; }
.st-foot-copy { margin-top: 12px !important; font-size: 14px; font-weight: 600; line-height: 22.4px; letter-spacing: -0.5px; color: #666; }
.st-foot-links, .st-foot-sns { padding-top: 56px !important; }
.st-foot-links li, .st-foot-sns li { font-size: 16px; font-weight: 600; line-height: 25.6px; letter-spacing: -0.5px; margin-bottom: 9px; }
.st-foot-links a:hover, .st-foot-sns a:hover { color: var(--st-teal); }
.st-foot-sns a { display: inline-flex; align-items: center; gap: 6px; }
.st-foot-sns svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.st-foot-sns svg .st-fill { fill: currentColor; stroke: none; }

@media (max-width: 1024px) {
    .st-contact-inner { border-radius: 60px; }
    .st-foot-inner { grid-template-columns: 1fr 1fr; }
    .st-foot-info { grid-column: 1 / -1; }
    .st-foot-links, .st-foot-sns { padding-top: 0 !important; }
}
@media (max-width: 768px) {
    .st-foot-map { min-height: 231px; }
    .st-foot-map-inner { display: none; }
    body:has(.st-home-main > .st-worship:last-child) .st-footer--home { margin-top: -80px; }
    body:has(.st-home-main > .st-worship:last-child) .st-foot-map { min-height: 300px; }
    .st-contact { background: transparent; padding: 0 20px; margin-top: -124px; position: relative; }
    .st-contact-inner {
        min-height: 212px;
        padding: 30px 26px;
        border-radius: 60px;
        grid-template-columns: 1fr 1fr;
        gap: 16px 10px;
        text-align: center;
    }
    .st-contact-item--offer { grid-column: 1 / -1; order: -1; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 12px; text-align: left; }
    .st-contact-item--offer svg { display: none; }
    .st-contact-item svg { width: 26px; height: 26px; margin-bottom: 2px; }
    .st-contact-item strong { font-size: 15px; line-height: 20px; color: var(--st-pale-2); }
    .st-contact-item p { font-size: 13px; font-weight: 700; line-height: 19.5px; letter-spacing: -0.5px; }
    .st-footer--home .st-foot { padding-top: 30px; margin-top: -1px; }
    .st-footer--home { background: var(--st-gray-bg); }

    .st-foot-inner { grid-template-columns: 1fr; padding: 30px 20px 40px; text-align: center; gap: 0; }
    .st-foot-sns { order: -1; display: flex; justify-content: center; gap: 30px; padding: 0 0 26px !important; }
    .st-foot-sns li { font-size: 14px; margin: 0; }
    .st-foot-name { font-size: 24px; line-height: 38px; margin-bottom: 2px !important; }
    .st-foot-addr { font-size: 15px; line-height: 21px; letter-spacing: -0.5px; }
    .st-foot-links { display: flex; justify-content: center; gap: 18px; padding: 18px 0 8px !important; order: 2; }
    .st-foot-links li { font-size: 14px; margin: 0; }
    .st-foot-info { display: contents; }
    .st-foot-copy { order: 3; font-size: 12px; line-height: 19px; margin-top: 4px !important; }
}

/* =====================================================================
   서브페이지 — 상단 이미지 + 좌측 사이드 메뉴 + 본문 (body 그리드)
   ===================================================================== */
.st-subhero {
    position: relative;
    height: 448px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
    text-align: center;
    color: #fff;
    background-color: #2f5f63;
    background-image: linear-gradient(135deg, #075a62, #6aa9ad);
    background-size: cover;
    background-position: center;
}
.st-subhero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.st-subhero-text { position: relative; padding: 0 var(--st-gutter); }
.st-subhero h1 { margin: 0; font-size: 52px; font-weight: 700; letter-spacing: -2px; line-height: 1.3; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.st-subhero p { margin: 14px 0 0; font-size: 15px; font-weight: 500; line-height: 1.6; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }

.st-side { align-self: start; margin-top: 30px; }
.st-side-title {
    margin: 0 0 10px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-deep);
    color: #fff;
    font-family: var(--st-title);
    font-size: 20px;
    font-weight: 700;
}
.st-side-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 7px;
    border-bottom: 1px solid var(--st-line);
    font-size: 16px;
    font-weight: 600;
    color: var(--st-text);
    transition: color .15s;
}
.st-side-list a:hover, .st-side-list a.is-active { color: var(--st-deep); }
.st-side-list a.is-active::after { content: "›"; font-size: 20px; line-height: 1; color: #666; }

.st-subtitle { margin-top: 30px; padding-bottom: 14px; border-bottom: 1px solid #ddd; }
.st-breadcrumb { display: flex; flex-wrap: wrap; gap: 5px; font-size: 12px; font-weight: 600; letter-spacing: -1px; color: #959595; }
.st-breadcrumb li:first-child { font-weight: 400; }
.st-breadcrumb li + li::before { content: ">"; margin-right: 5px; }
.st-breadcrumb a:hover { color: var(--st-deep); }
.st-subtitle-text { margin: 4px 0 0; font-size: 25px; font-weight: 700; letter-spacing: -1px; color: #000; }

body:has(> .st-side) {
    display: grid;
    grid-template-columns: minmax(var(--st-gutter), 1fr) minmax(0, 285px) 78px minmax(0, 800px) minmax(var(--st-gutter), 1fr);
    grid-template-rows: auto auto auto 1fr auto;
    align-items: start;
}
body:has(> .st-side) > .st-header { grid-column: 1 / -1; }
body:has(> .st-side) > .st-subhero { grid-column: 1 / -1; grid-row: 1; }
body:has(> .st-side) > .st-side { grid-column: 2; grid-row: 2 / 5; }
body:has(> .st-side) > .st-subtitle { grid-column: 4; grid-row: 2; }
body:has(> .st-side) > .main-content { grid-column: 4; grid-row: 3 / 5; max-width: none; padding: 30px 0 120px; }
body:has(> .st-side) > .st-footer { grid-column: 1 / -1; grid-row: 5; }

@media (max-width: 1023px) {
    .st-subhero { height: 320px; }
    .st-subhero h1 { font-size: 38px; }
    body:has(> .st-side) {
        grid-template-columns: var(--st-gutter) minmax(0, 1fr) var(--st-gutter);
        grid-template-rows: auto auto auto 1fr auto;
    }
    body:has(> .st-side) > .st-side { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    body:has(> .st-side) > .st-subtitle { grid-column: 2; grid-row: 3; margin-top: 24px; }
    body:has(> .st-side) > .main-content { grid-column: 2; grid-row: 4; padding: 24px 0 70px; }
    body:has(> .st-side) > .st-footer { grid-row: 5; }
    .st-side-title { display: none; }
    .st-side-list {
        display: flex;
        overflow-x: auto;
        padding: 0 var(--st-gutter) !important;
        border-bottom: 1px solid var(--st-line);
        scrollbar-width: none;
    }
    .st-side-list::-webkit-scrollbar { display: none; }
    .st-side-list a { white-space: nowrap; height: 50px; padding: 0 12px; border-bottom: 2px solid transparent; }
    .st-side-list a.is-active { border-bottom-color: var(--st-deep); }
    .st-side-list a.is-active::after { display: none; }
}
@media (max-width: 768px) {
    .st-subhero { height: 240px; padding-top: 70px; }
    .st-subhero h1 { font-size: 26px; letter-spacing: -1px; }
    .st-subhero p { font-size: 12px; margin-top: 8px; }
}

/* ---------- 서브페이지 본문: style.css 덮어쓰기 ---------- */
body:has(.st-header) .page-container,
body:has(.st-header) .board-container { background: transparent; padding: 0; border-radius: 0; box-shadow: none; }
body:has(.st-header) .page-container h2 { color: var(--st-deep); border-bottom-color: var(--st-deep); }
body:has(.st-header) .page-content,
body:has(.st-header) .post-content { color: var(--st-text); font-size: 17px; font-weight: 500; line-height: 27.2px; letter-spacing: -1px; }
body:has(.st-header) .btn-primary { background-color: var(--st-btn); }
body:has(.st-header) .btn { border-radius: 5px; }
body:has(.st-header) .data-table { border-top: 2px solid var(--st-deep); }
body:has(.st-header) .data-table th { background: #f6fafb; color: var(--st-text); text-align: center; }
body:has(.st-header) .board-title-link:hover { color: var(--st-deep); }
body:has(.st-header) .page-link:hover,
body:has(.st-header) .page-link.active { background-color: var(--st-deep); border-color: var(--st-deep); }
body:has(.st-header) .form-container { margin: 60px auto 100px; border: 1px solid var(--st-line); box-shadow: none; border-radius: 20px; }
body:has(.st-header) .form-container h2 { color: var(--st-deep); }
body:has(.st-header) .main-content { flex: 1; }

/* 사이트맵 화면 */
.st-sitemap { max-width: var(--st-mid); margin: 0 auto; padding: 50px 0 100px; }
.st-sitemap-title { font-family: var(--st-title); font-size: 34px; font-weight: 700; color: var(--st-deep); text-align: center; margin-bottom: 40px !important; }
.st-sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; }
.st-sitemap-group { border-top: 2px solid var(--st-deep); padding-top: 16px; }
.st-sitemap-group h3 { font-size: 19px; font-weight: 700; color: var(--st-deep); margin-bottom: 12px !important; }
.st-sitemap-group li a { display: block; font-size: 15px; line-height: 2; color: #555; }
.st-sitemap-group li a:hover { color: var(--st-deep); }
.st-sitemap-group li ul { padding-left: 12px !important; }
.st-sitemap-group li ul a { font-size: 14px; color: #888; }

/* =====================================================================
   인사말 페이지 본문 (menu.content 의 HTML 이 이 클래스를 쓴다)
   - 위쪽 상자: 왼쪽 사진 + 오른쪽 환영 문구 / 아래: 강조 문장 + 본문
   - 수치는 참고 사이트 인사말(본문 800px, 상자 320px) 측정값 기준
   ===================================================================== */
.st-greeting { max-width: 800px; margin: 0 0 60px; word-break: keep-all; }   /* 단어 중간에서 줄이 바뀌지 않게 */
.st-greeting * { box-sizing: border-box; }
.st-greeting-hero {
    display: grid;
    grid-template-columns: 38% 1fr;
    min-height: 320px;
    background: #82a4a5;
    color: #fff;
    overflow: hidden;
}
.st-greeting-photo { position: relative; min-height: 100%; }
.page-content .st-greeting-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
}
.st-greeting-intro { align-self: center; padding: 40px 40px 40px 44px; }
.page-content .st-greeting-intro p { margin: 0; }
.page-content .st-greeting-intro .st-greeting-welcome { font-size: 30px; font-weight: 700; line-height: 45px; letter-spacing: -1.5px; }
.page-content .st-greeting-intro .st-greeting-pastor { margin-top: 16px; font-size: 16px; font-weight: 600; letter-spacing: -0.5px; }
.st-greeting-pastor strong { margin-left: 8px; font-family: var(--st-title); font-size: 28px; font-weight: 400; letter-spacing: 2px; vertical-align: -3px; }
.page-content .st-greeting-intro .st-greeting-place { margin-top: 22px; font-size: 14px; font-weight: 500; opacity: .85; }
.st-greeting-body { padding: 57px 34px 0; }
.page-content .st-greeting-body p { margin: 0 0 27.2px; }
.page-content .st-greeting-body .st-greeting-lead { margin-bottom: 45px; font-size: 20px; font-weight: 700; line-height: 32px; letter-spacing: -1px; color: #357f85; }
.page-content .st-greeting-body .st-greeting-sign { margin: 45px 0 0; text-align: right; line-height: 1.7; }
.st-greeting-sign strong { font-size: 20px; }

@media (max-width: 768px) {
    .st-greeting { margin-bottom: 40px; }
    .st-greeting-hero { grid-template-columns: 36% 1fr; min-height: 190px; }
    .st-greeting-intro { padding: 20px 14px 20px 18px; }
    .page-content .st-greeting-intro .st-greeting-welcome { font-size: 16px; line-height: 24px; letter-spacing: -0.5px; }
    .page-content .st-greeting-intro .st-greeting-pastor { margin-top: 10px; font-size: 13px; }
    .st-greeting-pastor strong { margin-left: 5px; font-size: 19px; letter-spacing: 1px; vertical-align: -2px; }
    .page-content .st-greeting-intro .st-greeting-place { margin-top: 12px; font-size: 11px; }
    .st-greeting-body { padding: 35px 0 0; }
    .page-content .st-greeting-body p { margin-bottom: 24px; }
    .page-content .st-greeting-body .st-greeting-lead { margin-bottom: 30px; font-size: 17px; line-height: 27px; }
    .page-content .st-greeting-body .st-greeting-sign { margin-top: 32px; }
}

/* =====================================================================
   다음세대 부서 페이지 본문 (유치부·유초등부·중고등부·청년부 — menu.content 의 HTML 이 이 클래스를 쓴다)
   - 큰 사진 → 사진 아래에 겹친 부서 색 상자 + 소개 → 예배시간·장소 → 섬기는 분들 표
   - 수치는 참고 사이트 부서 페이지(본문 800px, 사진 800×533, 상자 268×332) 측정값 기준
   - 부서 색은 st-dept--green / teal / blue / pink
   ===================================================================== */
.st-dept { --st-dept: #51aa40; max-width: 800px; margin: 0 0 80px; word-break: keep-all; color: var(--st-text); }
.st-dept--green { --st-dept: #51aa40; }
.st-dept--teal { --st-dept: #32bdbe; }
.st-dept--blue { --st-dept: #4488d8; }
.st-dept--pink { --st-dept: #f971ac; }
.st-dept * { box-sizing: border-box; }
.page-content .st-dept p { margin: 0; }
.page-content .st-dept-photo img { display: block; width: 100%; max-width: none; height: auto; aspect-ratio: 800 / 533; object-fit: cover; }

.st-dept-head { position: relative; display: flex; margin-top: -67px; padding-left: 22px; }
.st-dept-badge {
    flex: 0 0 268px;
    height: 332px;
    padding-top: 68px;
    background: var(--st-dept);
    color: #fff;
    text-align: center;
}
.page-content .st-dept-badge img { display: block; width: 54px; height: 73px; margin: 0 auto 29px; }
.page-content .st-dept-badge .st-dept-sub { font-size: 20px; font-weight: 600; line-height: 28px; letter-spacing: -0.5px; }
.page-content .st-dept-badge .st-dept-name { font-size: 40px; font-weight: 700; line-height: 56px; letter-spacing: -1px; }
.st-dept-intro { padding: 96px 0 0 55px; font-size: 15px; line-height: 27px; letter-spacing: -0.5px; }
.page-content .st-dept-intro .st-dept-intro-title { font-size: 20px; font-weight: 700; line-height: 28px; color: #000; }

/* 예배시간·장소 — 위아래 빗금 구분선 */
.st-dept-info {
    position: relative;
    display: grid;
    grid-template-columns: 389px 1fr;
    align-items: center;
    max-width: 755px;
    margin: 62px 0 0 22px;
    padding: 54px 12px 50px;
}
.st-dept-info::before,
.st-dept-info::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 5px;
    background: repeating-linear-gradient(-45deg, #c9c9c9 0 1px, transparent 1px 3px);
}
.st-dept-info::before { top: 0; }
.st-dept-info::after { bottom: 0; }
.st-dept-info-item { display: flex; align-items: center; gap: 27px; font-size: 17px; line-height: 27.2px; }
.st-dept-icon { flex: 0 0 100px; height: 100px; border-radius: 50%; background: #eee; display: flex; align-items: center; justify-content: center; }
.page-content .st-dept-icon img { width: 57px; height: 56px; }
.st-dept-info-item b { font-weight: 700; }

/* 섬기는 분들 */
.page-content .st-dept .st-dept-staff-title { margin: 60px 0 2px 24px; font-size: 20px; font-weight: 700; line-height: 28px; color: #000; }
.page-content table.st-dept-staff {
    display: table;
    width: calc(100% - 45px);
    max-width: 755px;
    margin-left: 24px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 22.5px;
    letter-spacing: -0.5px;
}
.st-dept-staff th, .st-dept-staff td { height: 50px; padding: 12px 14px; border: 1px solid #cbcbcb; color: var(--st-text); }
.st-dept-staff th { width: 35%; background: #f8f8f8; font-weight: 700; text-align: center; }
.st-dept-staff td { background: #fff; font-weight: 400; text-align: left; }
.st-dept-staff tr:first-child th { border-top: 3px solid var(--st-dept); }
.st-dept-staff tr:first-child td { border-top: 3px solid #111; }

@media (max-width: 768px) {
    .st-dept { margin-bottom: 50px; }
    .st-dept-head { flex-wrap: wrap; margin-top: -40px; padding-left: 12px; }
    .st-dept-badge { flex-basis: 140px; height: 172px; padding-top: 30px; }
    .page-content .st-dept-badge img { width: 30px; height: 40px; margin-bottom: 14px; }
    .page-content .st-dept-badge .st-dept-sub { font-size: 14px; line-height: 20px; }
    .page-content .st-dept-badge .st-dept-name { font-size: 26px; line-height: 36px; }
    .st-dept-intro { flex-basis: 100%; padding: 26px 0 0; font-size: 15px; }
    .page-content .st-dept-intro .st-dept-intro-title { font-size: 18px; margin-bottom: 4px; }
    .st-dept-intro br { display: none; }   /* 좁은 화면에서는 줄을 이어서 흘림 */
    .st-dept-info { grid-template-columns: 1fr; gap: 16px; margin: 40px 0 0; padding: 30px 4px; }
    .st-dept-info-item { gap: 16px; font-size: 15px; line-height: 23px; }
    .st-dept-icon { flex-basis: 64px; height: 64px; }
    .page-content .st-dept-icon img { width: 36px; height: 36px; }
    .page-content .st-dept .st-dept-staff-title { margin: 40px 0 4px; font-size: 18px; }
    .page-content table.st-dept-staff { width: 100%; margin-left: 0; font-size: 14px; }
    .st-dept-staff th, .st-dept-staff td { height: 44px; padding: 10px; }
    .st-dept-staff th { width: 34%; }
}

/* =====================================================================
   사역 위원회·구역 모임·해외·국내선교·새가족 안내 페이지 본문 (menu.content 의 HTML 이 이 클래스를 쓴다)
   - 수치는 참고 사이트 같은 이름 페이지(본문 800px) 측정값 기준
   ===================================================================== */
.st-mpage { max-width: 800px; margin: 0 0 80px; word-break: keep-all; color: var(--st-text); }
.st-mpage * { box-sizing: border-box; }
.page-content .st-mpage p { margin: 0; }
.page-content .st-mpage img { max-width: 100%; }

/* 공통: 청록 동그라미 제목 + 표 */
.page-content .st-mpage .st-mtitle { display: flex; align-items: center; gap: 4px; margin: 55px 0 3px; font-size: 22px; font-weight: 700; line-height: 30.8px; letter-spacing: -1px; color: #000; }
.st-mtitle::before { content: ""; flex: 0 0 12px; height: 12px; border: 3px solid var(--st-btn); border-radius: 50%; }
.st-mtitle small { margin-left: 6px; font-size: 17px; font-weight: 700; letter-spacing: -0.5px; }
.page-content table.st-mtable { display: table; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22.5px; letter-spacing: -0.5px; }
.st-mtable th, .st-mtable td { height: 46px; padding: 11px 14px; border: 1px solid #cbcbcb; color: var(--st-text); }
.st-mtable th { width: 25%; background: #f8f8f8; font-weight: 700; text-align: center; }
.st-mtable td { background: #fff; font-weight: 400; text-align: left; }
.st-mtable tr:first-child th { border-top: 3px solid #0f7b84; }
.st-mtable tr:first-child td { border-top: 3px solid #111; }

/* 사역 위원회 — 위쪽이 둥근 사진 배너 */
.st-mbanner { position: relative; height: 330px; padding: 121px 61px 0; border-radius: 30px 30px 0 0; overflow: hidden; background: #6f8db3; color: #fff; }
.page-content .st-mbanner .st-mbanner-sub { font-size: 15px; font-weight: 500; line-height: 24px; letter-spacing: 1px; }
.page-content .st-mbanner .st-mbanner-title { font-size: 32px; font-weight: 600; line-height: 51.2px; letter-spacing: -1px; }

/* 구역 모임 — 왼쪽 어두운 글 상자 + 오른쪽 사진 배너, 3칸 표 */
.st-cell-banner { display: grid; grid-template-columns: 1fr 1fr; height: 380px; }
.st-cell-banner-text { position: relative; padding: 80px 30px 0 50px; background: #333 url(/images/site/cell-cross-temp.svg) right -20px top -10px / 160px auto no-repeat; color: #fff; }
.st-cell-banner-text::before { content: ""; display: block; width: 100px; height: 1px; margin-bottom: 11px; background: #ddd; }
.page-content .st-cell-banner .st-cell-banner-title { font-size: 56px; font-weight: 600; line-height: 72.8px; letter-spacing: -2px; }
.page-content .st-cell-banner .st-cell-banner-ref { margin-top: 48px; font-size: 14px; line-height: 21px; color: #cff; }
.page-content .st-cell-banner .st-cell-banner-verse { font-size: 14px; font-weight: 600; line-height: 21px; letter-spacing: -0.5px; }
.page-content .st-cell-banner-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.page-content table.st-celltable { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 22.5px; letter-spacing: -0.5px; text-align: center; }
.st-celltable th, .st-celltable td { height: 42px; padding: 9px 10px; border: 1px solid #cbcbcb; color: var(--st-text); }
.st-celltable thead th { background: #eee; font-weight: 700; border-top: 2px solid #336600; }
.st-celltable tbody th { background: #f8f8f8; font-weight: 700; }
.st-celltable tbody td { background: #fff; font-weight: 400; }

/* 해외·국내선교 — 파란 배너, 소개, 알약 제목 + 3열 칸 */
.st-mission-banner { position: relative; overflow: hidden; height: 390px; padding: 102px 30px 0; background: #4f7aa6; color: #fff; }
.page-content .st-mission-banner .st-mission-en { font-size: 18px; line-height: 25.2px; color: #d5dce2; }
.page-content .st-mission-banner .st-mission-title { font-size: 50px; font-weight: 600; line-height: 80px; letter-spacing: -1px; }
.page-content .st-mission-banner .st-mission-verse { margin-top: 20px; font-size: 15px; font-weight: 500; line-height: 22px; color: #e4eaf0; }
.page-content .st-mission-banner .st-mission-ref { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 19.6px; color: #d5dce2; }
.page-content .st-mpage .st-mission-intro { margin: 50px 0 0; font-size: 15px; font-weight: 500; line-height: 25px; text-align: center; }
.page-content .st-mpage .st-mission-head {
    width: 200px; height: 55px; margin: 60px auto 20px;
    border: 2px solid #33506e; border-radius: 28px;
    font-size: 22px; font-weight: 700; line-height: 51px; text-align: center; color: #000;
}
.page-content table.st-mission-grid { display: table; width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 19.5px; letter-spacing: -0.5px; text-align: center; }
.st-mission-grid td { height: 62px; padding: 10px; border: 1px solid #cbcbcb; background: #fff; color: var(--st-text); }

/* 새가족 안내 — 잎사귀 배너 + 01~04 단계 */
.st-newcomer-banner { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; height: 460px; padding: 0 40px; background: #e4eff2; text-align: center; }

/* 배너 배경 사진 — HTML 의 <img class="st-banner-img"> 를 배너 전체에 깔아 관리자 편집기에서 바꿀 수 있게 한다 */
.page-content .st-mpage img.st-banner-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.st-mbanner > p, .st-mission-banner > p, .st-newcomer-banner > p { position: relative; }
.page-content .st-newcomer-banner .st-newcomer-title { font-size: 40px; font-weight: 400; line-height: 50px; letter-spacing: -1px; color: #044a4f; }
.st-newcomer-title b { font-size: 42px; font-weight: 700; }
.page-content .st-newcomer-banner .st-newcomer-text { margin-top: 24px; font-size: 15px; font-weight: 500; line-height: 25px; letter-spacing: -0.5px; color: #333; }
.st-steps { margin-top: 60px; }
.st-step { position: relative; display: grid; grid-template-columns: 86px 1fr; padding: 0 24px 46px; }
.st-step + .st-step { padding-top: 46px; }
.st-step + .st-step::before {     /* 단계 사이 그림자 구분선 */
    content: "";
    position: absolute;
    top: 0; left: 6%; right: 6%;
    height: 24px;
    border-top: 1px solid #e3e3e3;
    background: radial-gradient(ellipse at top, rgba(0, 0, 0, .07), rgba(0, 0, 0, 0) 70%);
}
.page-content .st-step .st-step-num { font-size: 60px; font-weight: 900; line-height: 78px; letter-spacing: -2px; color: #ddd; }
.st-step-body { position: relative; padding: 14px 0 0 17px; }
.st-step-body::before { content: ""; position: absolute; left: 0; top: 18px; width: 1px; height: 48px; background: #b2b2b2; }
.page-content .st-step .st-step-title { font-size: 22px; font-weight: 700; line-height: 28.6px; letter-spacing: -1px; color: #1d767d; }
.page-content .st-step .st-step-text { margin-top: 6px; font-size: 16px; font-weight: 500; line-height: 25.6px; letter-spacing: -0.5px; }
.page-content .st-step ul { margin: 8px 0 0; padding-left: 18px; font-size: 16px; font-weight: 500; line-height: 25.6px; letter-spacing: -0.5px; }
.st-step li { list-style: square; }
.st-step li b { font-weight: 700; }

@media (max-width: 768px) {
    .st-mpage { margin-bottom: 50px; }
    .page-content .st-mpage .st-mtitle { margin-top: 40px; font-size: 19px; }
    .st-mtitle small { font-size: 14px; }
    .page-content table.st-mtable, .page-content table.st-celltable, .page-content table.st-mission-grid { font-size: 14px; }
    .st-mtable th { width: 30%; }
    .st-mtable th, .st-mtable td { padding: 9px 10px; height: 42px; }

    .st-mbanner { height: auto; aspect-ratio: 800 / 330; padding: 11% 7% 0; border-radius: 20px 20px 0 0; }
    .page-content .st-mbanner .st-mbanner-sub { font-size: 12px; line-height: 18px; }
    .page-content .st-mbanner .st-mbanner-title { font-size: 22px; line-height: 32px; }

    .st-cell-banner { grid-template-columns: 1fr; height: auto; }
    .st-cell-banner-text { padding: 36px 24px 32px; background-size: 110px auto; }
    .page-content .st-cell-banner .st-cell-banner-title { font-size: 36px; line-height: 48px; }
    .page-content .st-cell-banner .st-cell-banner-ref { margin-top: 20px; }
    .st-cell-banner-verse br { display: none; }
    .st-cell-banner-photo { aspect-ratio: 400 / 380; }
    .st-celltable th, .st-celltable td { padding: 8px 4px; height: 40px; }

    .st-mission-banner { height: auto; padding: 34px 22px 36px; }
    .page-content .st-mission-banner img.st-banner-img { object-position: 70% center; }
    .page-content .st-mission-banner .st-mission-en { font-size: 14px; }
    .page-content .st-mission-banner .st-mission-title { font-size: 32px; line-height: 46px; }
    .page-content .st-mission-banner .st-mission-verse { font-size: 13px; line-height: 20px; }
    .page-content .st-mpage .st-mission-intro { margin-top: 32px; font-size: 14px; line-height: 23px; }
    .st-mission-intro br { display: none; }
    .page-content .st-mpage .st-mission-head { width: 160px; height: 46px; margin-top: 40px; font-size: 18px; line-height: 42px; }
    .st-mission-grid td { height: 56px; padding: 8px 4px; }

    .st-newcomer-banner { height: auto; padding: 50px 20px; }
    .page-content .st-newcomer-banner .st-newcomer-title { font-size: 26px; line-height: 36px; }
    .st-newcomer-title b { font-size: 27px; }
    .page-content .st-newcomer-banner .st-newcomer-text { font-size: 14px; line-height: 23px; }
    .st-newcomer-text br { display: none; }
    .st-steps { margin-top: 36px; }
    .st-step { grid-template-columns: 54px 1fr; padding: 0 0 32px; }
    .st-step + .st-step { padding-top: 32px; }
    .page-content .st-step .st-step-num { font-size: 38px; line-height: 50px; }
    .st-step-body { padding: 8px 0 0 12px; }
    .st-step-body::before { top: 10px; height: 34px; }
    .page-content .st-step .st-step-title { font-size: 19px; }
    .page-content .st-step .st-step-text, .page-content .st-step ul { font-size: 15px; line-height: 24px; }
}

/* ---------- 섬기는 사람들 모아 보기 (page/staff-groups.html) ---------- */
.st-people * { box-sizing: border-box; }
.st-people-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 8px;
    margin-bottom: 10px;
    padding: 14px 0;
    border-top: 3px solid var(--st-deep);
    border-bottom: 1px solid #d2d2d2;
}
.st-people-tabs a { padding: 0 12px; font-size: 15px; font-weight: 600; line-height: 1.3; color: #666; text-decoration: none; }
.st-people-tabs a + a { border-left: 1px solid #ccc; }
.st-people-tabs a:hover { color: var(--st-deep); }
.st-people-group { scroll-margin-top: 20px; }
.st-people-title {
    position: relative;
    margin: 34px 0 16px !important;
    padding-left: 14px;
    font-size: 19px;
    font-weight: 700;
    color: var(--st-deep);
}
.st-people-title::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 18px; margin-top: -9px; background: var(--st-deep); }
.st-people-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 16px; }
.st-people-card { display: block; text-align: center; color: inherit; text-decoration: none; }
.st-people-photo {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 4px;
    background: #f3f5f6;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, .3);
}
.st-people-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 20%; }
.st-people-name { display: block; padding: 10px 4px 8px; border-bottom: 1px solid #d2d2d2; font-size: 16px; font-weight: 700; line-height: 1.3; }
.st-people-desc { display: block; padding: 8px 4px 0; font-size: 14px; line-height: 1.5; color: #666; white-space: pre-line; }
a.st-people-card:hover .st-people-name { color: var(--st-deep); }

@media (max-width: 768px) {
    .st-people-tabs { padding: 12px 0; }
    .st-people-tabs a { padding: 0 9px; font-size: 14px; }
    .st-people-title { margin: 28px 0 12px !important; font-size: 17px; }
    .st-people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
    .st-people-name { font-size: 15px; }
    .st-people-desc { font-size: 13px; }
}

/* ── 예배 생방송 페이지 (page/live.html) ── */
.st-live { max-width: 960px; margin: 0 0 60px; word-break: keep-all; }
.st-live-status { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--st-teal); }
.st-live-status.is-live { color: #d93025; }
.st-live-title { margin: 0 0 18px; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: #222; }
.st-live-links { display: flex; gap: 20px; justify-content: flex-end; margin: 14px 0 0; font-size: 15px; }
.st-live-links a { color: var(--st-deep); text-decoration: none; }
.st-live-links a:hover { text-decoration: underline; }
@media (max-width: 768px) {
    .st-live-title { font-size: 19px; margin-bottom: 12px; }
    .st-live-links { font-size: 14px; }
}

/* =====================================================================
   앱(안드로이드·iOS 웹뷰) 화면 — html.is-app (fragments/site :: assets)
   앱이 상단 제목줄·하단 탭·전체 메뉴를 직접 그리므로 웹 헤더·하단·경로를 숨기고,
   헤더 자리로 비워 두던 위쪽 여백을 없앤다. 나머지는 휴대폰 웹 화면 그대로
   ===================================================================== */
html.is-app .st-header,
html.is-app .st-footer,
html.is-app .st-breadcrumb { display: none; }
html.is-app .st-subhero { height: 200px; padding-top: 0; }
html.is-app .st-subtitle { margin-top: 20px; }
@media (max-width: 1199px) {
    html.is-app .st-hero { --st-hero-top: 0px; }
}
@media (max-width: 768px) {
    html.is-app .st-subhero { height: 150px; padding-top: 0; }
}

/* ===== 개인정보처리방침 (/privacy) ===== */
.st-privacy { max-width: var(--st-mid); margin: 0 auto; padding: 50px 20px 100px; color: #333; font-size: 16px; line-height: 1.8; word-break: keep-all; overflow-wrap: break-word; }
.st-privacy * { box-sizing: border-box; }
.st-privacy-title { font-family: var(--st-title); font-size: 34px; font-weight: 700; color: var(--st-deep); text-align: center; margin: 0 0 30px; border: 0; }
.st-privacy-lead { background: #f5f7f7; border-radius: 8px; padding: 20px 24px; margin: 0 0 30px; }
.st-privacy section { margin-bottom: 34px; }
.st-privacy h3 { font-size: 19px; font-weight: 700; color: var(--st-deep); margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid #e3e3e3; }
.st-privacy p { margin: 8px 0; }
.st-privacy ul { margin: 8px 0; padding-left: 20px; }
.st-privacy-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; border-top: 2px solid var(--st-deep); }
.st-privacy-table th, .st-privacy-table td { border-bottom: 1px solid #e3e3e3; padding: 10px 12px; text-align: left; vertical-align: top; }
.st-privacy-table th { background: #f5f7f7; font-weight: 700; }
.st-privacy-contact { display: grid; grid-template-columns: 60px 1fr; gap: 6px 12px; margin: 10px 0; }
.st-privacy-contact dt { font-weight: 700; }
.st-privacy-contact dd { margin: 0; }
.st-privacy-contact a { color: var(--st-deep); }
@media (max-width: 768px) {
    .st-privacy { padding: 30px 16px 70px; font-size: 15px; }
    .st-privacy-title { font-size: 26px; }
    .st-privacy-table { font-size: 14px; }
    .st-privacy-table th, .st-privacy-table td { padding: 8px 6px; }
}
