/* member/css/about.css - 선교회소개 (교회 안내 + 전도인 소개). home.css 다음에 불러온다 */

/* 제목 띠 - 홈의 큰 히어로를 낮게 */
.hero.hero-compact { min-height: 0; }
.hero-compact .hero-inner { padding: 80px 16px 40px; }
.about-title {
    margin: 56px 0 0;
    font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
    font-size: 34px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 16px rgba(10, 61, 115, 0.4);
}
.about-lead { margin: 12px 0 0; max-width: 640px; text-align: center; font-size: 15px; opacity: 0.95; line-height: 1.6; }
.about-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.about-jump a {
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
.about-jump a:hover { background: #fff; color: var(--brand-700); }
.main-nav a.active::after { transform: scaleX(1); }

/* 본문 */
.about-main { max-width: var(--content-width); margin: 0 auto; padding: 40px 16px 60px; display: grid; gap: 36px; }
.about-section { scroll-margin-top: 80px; }
.about-section-head { margin-bottom: 16px; }
.about-section-head h2 { margin: 0; font-size: 24px; font-weight: 900; color: var(--brand-900); }
.about-section-head p { margin: 6px 0 0; font-size: 14px; color: var(--ink-muted); }
.about-empty { padding: 30px; text-align: center; color: var(--ink-muted); }

/* 지도 + 목록 */
.about-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 14px;
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12);
}
.about-map-layout[hidden] { display: none; }
.about-map-wrap { position: relative; width: 100%; max-width: 78vh; justify-self: center; }
.about-map { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #eef3f8; z-index: 0; }
.about-map-reset {
    position: absolute; right: 10px; top: 10px; z-index: 500;
    padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    box-shadow: 0 2px 8px rgba(11, 61, 115, 0.15);
}
.about-church-list h3 { display: flex; align-items: center; gap: 6px; margin: 2px 2px 8px; font-size: 15px; color: var(--brand-900); }
.about-church-list h3 b { padding: 0 8px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: 12px; }
.about-church-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; max-height: 72vh; overflow-y: auto; position: relative; }
.about-church-list li {
    display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 10px; cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.about-church-list li:hover, .about-church-list li.is-active { background: var(--brand-50); border-color: var(--brand-200); }
.about-church-list li.no-pin { opacity: 0.6; }
.about-church-list .no {
    flex-shrink: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%;
    background: var(--brand-100); color: var(--brand-700); font-size: 11px; font-weight: 800;
}
.about-church-list li.is-active .no { background: var(--brand-gradient); color: #fff; }
.about-church-list .text { min-width: 0; display: grid; line-height: 1.35; }
.about-church-list .text b { font-size: 13.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.about-church-list .text small { font-size: 11.5px; color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 로고 핀 (신학원 교회 탭과 같은 모양) */
.church-pin-wrap { background: none; border: none; }
.church-pin {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
    background: #fff; border: 2px solid var(--brand-600); box-shadow: 0 3px 8px rgba(11, 61, 115, 0.35);
    transition: transform 0.18s, box-shadow 0.18s;
}
.church-pin img { width: 24px; height: 24px; object-fit: contain; }
.church-pin-wrap.is-active .church-pin {
    transform: scale(1.4); border-color: #f59e0b;
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.3), 0 4px 12px rgba(11, 61, 115, 0.4);
}
.church-pin-tip { font-family: inherit; font-weight: 700; font-size: 12.5px; }

/* 교회 카드 */
.about-church-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.about-church {
    padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12); scroll-margin-top: 90px;
}
.about-church h3 { margin: 0 0 4px; font-size: 17px; font-weight: 900; color: var(--brand-900); }
.about-church .addr { margin: 0 0 10px; font-size: 13px; color: var(--ink-muted); }
.about-church dl { margin: 0; display: grid; gap: 4px; font-size: 13px; }
.about-church dl div { display: flex; gap: 8px; }
.about-church dt { flex-shrink: 0; min-width: 84px; color: var(--ink-muted); }
.about-church dd { margin: 0; color: var(--ink); font-weight: 600; }
.about-church-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; }
.about-church-actions button {
    padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
    color: var(--brand-700); font: inherit; font-weight: 700; cursor: pointer;
}
.about-church-actions button:hover { background: var(--brand-50); }
.about-church-actions a { color: var(--brand-600); font-weight: 700; }
.about-church-actions .muted { color: var(--ink-muted); }

/* 전도인 소개 */
.about-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.about-person {
    padding: 18px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    text-align: center; box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12);
}
.about-person .photo {
    width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
    display: grid; place-items: center; background: var(--brand-gradient); color: #fff; font-size: 34px; font-weight: 900;
}
.about-person .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-person h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--brand-900); }
.about-person p { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-muted); }

/* 탭 (전체 / 소개 / 교회 / 전도인) - 내려가도 위에 붙어 있다 */
.about-tabs {
    position: sticky; top: 64px; z-index: 20;
    display: flex; justify-content: center; gap: 6px; flex-wrap: wrap;
    margin: -12px auto 0; padding: 6px; width: fit-content; max-width: 100%;
    border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 18px -10px rgba(11, 61, 115, 0.35);
}
.about-tabs button {
    padding: 9px 20px; border: none; border-radius: 999px; background: none;
    font: inherit; font-size: 15px; font-weight: 800; color: var(--ink-muted); cursor: pointer;
}
.about-tabs button:hover { color: var(--brand-700); background: var(--brand-50); }
.about-tabs button.is-active { background: var(--brand-gradient); color: #fff; }
.about-main [hidden] { display: none !important; }
@media (max-width: 600px) {
    .about-tabs { top: 58px; gap: 2px; padding: 4px; }
    .about-tabs button { padding: 8px 12px; font-size: 14px; }
}

/* 선교회 소개 글 + 영상 + 사명 3가지 (about-intro.js) */
.about-intro { display: grid; gap: 36px; }
.intro-section {
    padding: 34px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12);
}
.intro-head { max-width: 760px; margin: 0 auto 24px; text-align: center; }
.intro-kicker { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--brand-400); }
.intro-head h2 { margin: 6px 0 14px; font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 30px; color: var(--brand-900); }
.intro-lead { margin: 0; font-size: 17px; line-height: 1.8; font-weight: 700; font-style: italic; color: var(--ink); }
.intro-video { position: relative; max-width: 860px; margin: 0 auto 28px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 30px -12px rgba(11, 61, 115, 0.45); }
.intro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.intro-missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.intro-mission { padding: 20px; border-radius: var(--radius-md); background: var(--brand-50); border: 1px solid var(--line); }
.intro-no { display: inline-block; font-size: 26px; font-weight: 900; color: var(--brand-400); line-height: 1; }
.intro-mission h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 900; color: var(--brand-900); }
.intro-mission p { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink); }

/* 우리의 믿음 - 눌러서 펼치기 */
.faith-list { display: grid; gap: 10px; }
.faith-item { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.faith-item summary {
    display: flex; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none;
    font-size: 16.5px; font-weight: 800; color: var(--brand-900);
}
.faith-item summary::-webkit-details-marker { display: none; }
.faith-item summary::after { content: '+'; margin-left: auto; font-size: 22px; font-weight: 400; color: var(--brand-600); }
.faith-item[open] summary::after { content: '−'; }
.faith-item[open] summary { background: var(--brand-50); }
.faith-no {
    flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--brand-gradient); color: #fff; font-size: 13px; font-weight: 800;
}
.faith-body { padding: 4px 22px 20px 58px; }
.faith-body > p { margin: 12px 0; font-size: 15.5px; line-height: 1.8; color: var(--ink); }
.faith-verse { margin: 12px 0; padding: 12px 16px; border-left: 4px solid var(--brand-400); border-radius: 0 10px 10px 0; background: var(--brand-50); }
.faith-verse cite { display: block; margin-bottom: 4px; font-style: normal; font-size: 13px; font-weight: 800; color: var(--brand-700); }
.faith-verse p { margin: 0; font-family: 'Gowun Batang', 'Nanum Myeongjo', serif; font-size: 15px; line-height: 1.8; color: var(--ink); }
.faith-more { font-size: 13.5px !important; color: var(--ink-muted) !important; }
.faith-more b { margin-right: 6px; color: var(--brand-700); }

@media (max-width: 860px) {
    .intro-missions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
    .intro-section { padding: 22px 16px; border-radius: var(--radius-md); }
    .intro-head h2 { font-size: 24px; }
    .intro-lead { font-size: 15.5px; }
    .faith-item summary { padding: 13px 14px; font-size: 15.5px; }
    .faith-body { padding: 2px 14px 16px; }
}

@media (max-width: 860px) {
    .about-map-layout { grid-template-columns: minmax(0, 1fr); padding: 10px; }
    .about-map-wrap { max-width: none; }
    .about-church-list ol { max-height: 240px; }
    .hero-compact .main-nav { display: none; }
}
@media (max-width: 600px) {
    .about-title { font-size: 26px; margin-top: 40px; }
    .about-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .about-person .photo { width: 72px; height: 72px; font-size: 26px; }
}
