/*
Theme Name: NYCGH 선교사의집
Theme URI: https://nycgh.org
Author: LOJE
Author URI: https://www.lojecorp.com
Description: 뉴욕/뉴저지 선교사의집 (NY NJ Missionary Guest House) 전용 블록 테마. 모든 페이지 내용은 워드프레스 편집기에서 직접 고칠 수 있습니다.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: nycgh
*/

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: break-word; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: #E9860F; color: #fff; }

/* ---------- 머리글 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid #EEE7D8; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header .wp-block-site-logo img { height: 56px; width: auto; }
@media (max-width: 600px) { .site-header .wp-block-site-logo img { height: 42px; } }
.site-header .wp-block-navigation-item__content { padding: .35rem .15rem; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.site-header .wp-block-navigation-item__content:hover,
.site-header .current-menu-item > .wp-block-navigation-item__content { color: #E9860F; border-bottom-color: #E9860F; }
.site-header .header-call .wp-block-button__link { padding: .6rem 1.1rem; font-size: .95rem; }
@media (max-width: 960px) { .site-header .header-call { display: none; } }
.wp-block-navigation__responsive-container.is-menu-open { padding: 2rem 1.5rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.15rem; }

/* 위 공지 띠 */
.top-bar { font-size: .85rem; }
.top-bar a { color: inherit; text-decoration: none; }
.top-bar a:hover { color: #F6B14E; }
@media (max-width: 600px) { .top-bar .hide-mobile { display: none; } }

/* ---------- 공통 ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem !important; font-weight: 700; color: #E9860F; }
.has-navy-background-color .eyebrow, .has-navy-deep-background-color .eyebrow, .wp-block-cover .eyebrow { color: #F6B14E; }
.title-serif, .title-serif * { font-family: "Noto Serif KR", serif !important; }
.lead { font-size: 1.15rem; color: #3A4354; }
.wp-block-cover .lead, .has-navy-background-color .lead { color: rgba(255,255,255,.88); }
.rounded img, img.rounded, .rounded { border-radius: 18px; }
.shadow img, .shadow.wp-block-group { box-shadow: 0 18px 50px -18px rgba(7,29,64,.35); }

/* 버튼 모양: 흰 테두리 */
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; border: 2px solid rgba(255,255,255,.8); color: #fff; }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: #fff; color: #0B2A5B; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 2px solid currentColor; background: transparent; color: #0B2A5B; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: #0B2A5B; color: #fff; }

/* ---------- 홈 첫 화면 ---------- */
.hero.wp-block-cover { min-height: min(86vh, 760px) !important; }
.hero h1 { color: #fff; }
.wp-block-cover.hero .wp-block-cover__inner-container { width: 100% !important; max-width: calc(1200px + 2 * clamp(1rem, 4vw, 2rem)); margin-left: auto !important; margin-right: auto !important; padding-left: clamp(1rem, 4vw, 2rem) !important; padding-right: clamp(1rem, 4vw, 2rem) !important; box-sizing: border-box; }
.hero .wp-block-cover__inner-container > .wp-block-group, .hero .wp-block-cover__inner-container > .wp-block-group > * { margin-left: 0 !important; }
.hero .wp-block-cover__image-background { object-position: 70% 50%; }
.event-strip a { color: #fff; text-decoration: none; font-weight: 700; }
.event-strip a:hover { text-decoration: underline; }
.event-strip .badge { display: inline-block; background: #fff; color: #E9860F; border-radius: 999px; padding: .1rem .7rem; font-size: .8rem; font-weight: 800; margin-right: .6rem; }

/* 숫자 */
.stats .stat-num { font-family: "Noto Serif KR", serif; font-weight: 700; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.1; color: #fff; margin: 0; }
.stats .stat-label { color: rgba(255,255,255,.75); font-size: .95rem; margin-top: .4rem; }
.stats .wp-block-column { border-left: 1px solid rgba(255,255,255,.18); padding-left: 1.5rem; }
@media (max-width: 781px) { .stats .wp-block-column { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 1.25rem; } }

/* 카드 */
.card { background: #fff; border: 1px solid #EEE7D8; border-radius: 20px; overflow: hidden; transition: transform .25s, box-shadow .25s; height: 100%; }
.card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(7,29,64,.4); }
.card .wp-block-image { margin: 0; }
.card .wp-block-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-body { padding: 1.5rem 1.75rem 1.9rem; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #FFF1DE; color: #E9860F; font-size: 1.5rem; margin-bottom: .5rem; }
.wp-block-columns.equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.equal > .wp-block-column > .card { flex: 1; }

/* 정보 목록 */
.info-list { list-style: none; padding: 0 !important; margin: 0; }
.info-list li { padding: .7rem 0 .7rem 1.9rem; border-bottom: 1px dashed #E4DCCB; position: relative; }
.info-list li:last-child { border-bottom: 0; }
.info-list li::before { content: ""; position: absolute; left: .2rem; top: 1.25rem; width: 10px; height: 10px; border-radius: 3px; background: #E9860F; transform: rotate(45deg); }
.check-list { list-style: none; padding: 0 !important; }
.check-list li { padding: .45rem 0 .45rem 2rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: .45rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: #E8F3E1; color: #4E9A2B; font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* 연혁 */
.timeline { position: relative; padding-left: 2.25rem !important; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: linear-gradient(#E9860F, #0B2A5B); }
.timeline > .wp-block-group { position: relative; }
.timeline > .wp-block-group::before { content: ""; position: absolute; left: -2.05rem; top: .45rem; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #E9860F; }
.timeline .year { color: #E9860F; font-weight: 800; letter-spacing: .04em; margin-bottom: .2rem; }

/* 표 */
.wp-block-table.info-table table { border-collapse: separate; border-spacing: 0; border: 1px solid #E4DCCB; border-radius: 14px; overflow: hidden; }
.wp-block-table.info-table td, .wp-block-table.info-table th { border: 0; border-bottom: 1px solid #EEE7D8; padding: .9rem 1.1rem; vertical-align: top; }
.wp-block-table.info-table tr:last-child td { border-bottom: 0; }
.wp-block-table.info-table td:first-child { background: #FAF6EE; color: #0B2A5B; font-weight: 700; width: 30%; white-space: nowrap; }
@media (max-width: 600px) { .wp-block-table.info-table td:first-child { white-space: normal; width: 36%; } }

/* 단계 */
.steps { counter-reset: step; }
.steps > .wp-block-column > .wp-block-group { counter-increment: step; position: relative; height: 100%; }
.steps .step-num::before { content: counter(step, decimal-leading-zero); font-family: "Noto Serif KR", serif; font-size: 2rem; font-weight: 700; color: #E9860F; }

/* 성경 구절 */
.verse { font-family: "Noto Serif KR", serif; }
.verse p { font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.75; color: #0B2A5B; }
.verse cite { font-family: "Noto Sans KR", sans-serif; font-style: normal; color: #E9860F; font-weight: 700; }
.wp-block-quote.verse { border-left: 0; padding-left: 0; text-align: center; }

/* 지도 */
.map-embed iframe { width: 100%; height: 380px; border: 0; border-radius: 18px; display: block; }

/* 페이지 제목 띠 */
.page-hero { background-color: #0B2A5B; background-image: radial-gradient(circle at 85% 20%, rgba(233,134,15,.25), transparent 45%), radial-gradient(circle at 10% 110%, rgba(78,154,43,.25), transparent 40%); }
.page-hero h1 { color: #fff; }
.page-hero .wp-block-post-excerpt__excerpt, .page-hero p { color: rgba(255,255,255,.8); }

/* 뉴스 */
.news-list .wp-block-post { background: #fff; border: 1px solid #EEE7D8; border-radius: 18px; overflow: hidden; transition: box-shadow .25s, transform .25s; }
.news-list .wp-block-post:hover { box-shadow: 0 18px 44px -24px rgba(7,29,64,.45); transform: translateY(-3px); }
.news-list .wp-block-post-featured-image { margin: 0; }
.news-list .wp-block-post-featured-image img { aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.news-list .news-body { padding: 1.25rem 1.4rem 1.5rem; }
.news-list .wp-block-post-title a { text-decoration: none; color: #0B2A5B; }
.news-list .wp-block-post-title a:hover { color: #E9860F; }
.news-noimg .wp-block-post-featured-image:empty { display: none; }
.entry-content img { border-radius: 14px; }
.wp-block-query-pagination a { text-decoration: none; }

/* 바닥글 */
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #F6B14E; }
.site-footer .wp-block-site-logo img { height: 64px; width: auto; }
.site-footer .footer-small { color: rgba(255,255,255,.55); }

/* 예약 신청서 */
.booking-form-wrap { scroll-margin-top: 110px; }
.booking-form { background: #fff; border: 1px solid #EEE7D8; border-radius: 20px; padding: clamp(1.25rem, 4vw, 2.5rem); box-shadow: 0 18px 50px -30px rgba(7,29,64,.35); }
.booking-form fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.booking-form legend { font-weight: 800; color: #0B2A5B; font-size: 1.1rem; margin-bottom: .9rem; padding: 0; }
.bf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
@media (max-width: 640px) { .bf-grid { grid-template-columns: 1fr; } }
.bf-wide { grid-column: 1 / -1; }
.booking-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; font-weight: 600; color: #1F2633; }
.booking-form label em { color: #E9860F; font-style: normal; }
.booking-form input[type=text], .booking-form input[type=email], .booking-form input[type=tel], .booking-form input[type=date], .booking-form input[type=number], .booking-form select, .booking-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: .7rem .85rem; border: 1px solid #D9CFBC; border-radius: 10px; background: #FFFDF9; color: #1F2633; width: 100%; box-sizing: border-box; }
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: 2px solid #E9860F; outline-offset: 1px; border-color: #E9860F; background: #fff; }
.booking-form .bf-agree { flex-direction: row; align-items: flex-start; gap: .6rem; font-weight: 500; margin: .5rem 0 1.25rem; }
.booking-form .bf-agree input { margin-top: .35rem; width: 18px; height: 18px; accent-color: #E9860F; }
.booking-form button { border: 0; cursor: pointer; font-family: inherit; }
.bf-help { font-size: .85rem; color: #5D6676; margin: .6rem 0 0; }
.booking-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.booking-notice { border-radius: 14px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; border-left: 4px solid; }
.booking-notice.ok { background: #EEF7E8; border-color: #4E9A2B; color: #234d12; }
.booking-notice.err { background: #FDEDEC; border-color: #C0392B; color: #7a1f17; }

/* 첫 화면 이벤트 강조 */
.event-card { border-radius: 18px; padding: 1.4rem 1.6rem; color: #fff; }
.event-card h3, .event-card h4 { color: #fff; }
.event-card p { margin: .2rem 0; }
.poster img { border-radius: 16px; box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
