/* =====================================================================
   공개 화면 디자인 (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: clip; }
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 0 auto; display: flex; align-items: center; gap: 10px; }
.st-logo-img { display: block; height: 66px; width: auto; }
.st-logo.is-image-only .st-logo-img { height: 76px; }
.st-logo-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--st-title); }
.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; display: flex; justify-content: center; }
.st-gnb-list { display: flex; }
.st-gnb-item { position: relative; }
.st-gnb-link {
    display: block;
    padding: 30px 30px;
    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; }

@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;
    height: 600px;
    margin: 0 auto;
    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; padding-left: 16.5%; max-width: 760px; }
.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-fit, 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 44px;
    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); }

/* ---------- 홈 반응형 ---------- */
@media (max-width: 1199px) {
    .st-hero { height: 700px; }
    .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; height: 520px; }
}
@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 { height: 330px; padding-top: 0; padding-bottom: 0; }
    .st-hero-text { padding-top: 40px; }
    .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: 60px; }
    .st-hero-dots { bottom: 20px; }

    .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 { height: auto; min-height: 260px; 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; }
