/* member/css/section.css - 선교회 메뉴 페이지 (section.html). home.css · about.css 다음에 불러온다 */

.section-subs a.is-active { background: #fff; color: var(--brand-700); }
.section-subs[hidden] { display: none; }

.section-main { max-width: var(--content-width); margin: 0 auto; padding: 32px 16px 60px; }
.section-toolbar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.section-toolbar[hidden], .section-grid[hidden], .section-view[hidden] { display: none; }

/* 버튼 */
.sc-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 18px; border: 1px solid var(--brand-200); border-radius: 999px;
    background: #fff; color: var(--brand-700); font: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; white-space: nowrap; text-decoration: none;
}
.sc-btn:hover { background: var(--brand-50); }
.sc-btn:disabled { opacity: 0.6; cursor: wait; }
.sc-btn-primary { border-color: transparent; background: var(--brand-gradient); color: #fff; }
.sc-btn-primary:hover { background: var(--brand-gradient); filter: brightness(1.05); }
.sc-btn-danger { color: #d64545; border-color: #f3c4c4; }
.sc-link {
    border: none; background: none; padding: 8px 12px; border-radius: 8px;
    font: inherit; font-size: 15px; font-weight: 700; color: var(--brand-700); cursor: pointer;
}
.sc-link:hover { background: var(--brand-100); }
.sc-link.sc-danger { color: #d64545; }
.sc-link.sc-danger:hover { background: #fdecec; }

/* 카드 목록 */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.section-grid .about-empty { grid-column: 1 / -1; }
.sc-card {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.12);
    transition: transform 0.15s, box-shadow 0.15s;
}
.sc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -10px rgba(11, 61, 115, 0.25); }
.sc-thumb {
    position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9;
    background: var(--brand-gradient-soft) center / cover no-repeat;
}
.sc-thumb b { font-size: 22px; font-weight: 900; color: var(--brand-600); letter-spacing: 1px; }
.sc-thumb-audio { background: linear-gradient(135deg, #e8f4fd, #cfe6fb); }
.sc-thumb-file b { color: #d64545; }
.sc-play {
    width: 54px; height: 54px; border-radius: 50%; background: rgba(10, 61, 115, 0.72);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.sc-play::after {
    content: ''; display: block; margin: 17px 0 0 21px;
    border-left: 17px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
.sc-card-text { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.sc-card-text b { font-size: 15.5px; line-height: 1.4; color: var(--ink); overflow-wrap: anywhere; }
.sc-card-text time { font-size: 12.5px; color: var(--ink-muted); }
.sc-tag {
    align-self: flex-start; padding: 1px 9px; border-radius: 999px;
    background: var(--brand-100); color: var(--brand-700); font-size: 11.5px; font-weight: 700;
}

/* 글 보기 */
.section-view {
    border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff;
    box-shadow: 0 4px 16px -8px rgba(11, 61, 115, 0.14); overflow: hidden;
}
.section-view-bar {
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
    padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--brand-50);
}
.section-view-actions { display: flex; gap: 4px; }
.section-view-body { padding: 28px 34px 34px; max-width: 900px; margin: 0 auto; }
.section-view-sub { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--brand-600); }
.section-view-sub[hidden] { display: none; }
.section-view-title { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.35; color: var(--brand-900); overflow-wrap: anywhere; }
.section-view-date { margin: 8px 0 20px; font-size: 13px; color: var(--ink-muted); }
.section-tr-note {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
    margin-bottom: 18px; padding: 9px 14px; border-radius: var(--radius-sm);
    background: var(--brand-50); border: 1px dashed var(--brand-200); font-size: 13.5px; color: var(--brand-700);
}
.section-tr-note[hidden] { display: none; }
.section-tr-note button {
    padding: 4px 12px; border: 1px solid var(--brand-200); border-radius: 999px; background: #fff;
    font: inherit; font-size: 13px; font-weight: 700; color: var(--brand-700); cursor: pointer;
}
.section-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 22px; border-radius: 12px; overflow: hidden; background: #000; }
.section-video[hidden] { display: none; }
.section-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.section-view-text { font-size: 16px; line-height: 1.85; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.section-view-text[hidden] { display: none; }
.section-view-file { margin-top: 24px; display: grid; gap: 10px; }
.section-view-file[hidden] { display: none; }
.section-view-file audio { width: 100%; }
.sc-file-card {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--brand-50);
}
.sc-file-icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: #fff; border: 1px solid var(--brand-200); color: #d64545; font-size: 11px; font-weight: 900;
}
.sc-file-title { flex: 1; min-width: 140px; font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }

/* 글 올리기 창 (크게) */
.sc-modal {
    position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
    background: rgba(10, 30, 60, 0.5);
}
.sc-modal[hidden] { display: none; }
.sc-modal-box {
    width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column;
    border-radius: var(--radius-md); background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden;
}
.sc-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.sc-modal-head h2 { margin: 0; font-size: 19px; color: var(--brand-900); }
.sc-x { border: none; background: none; font-size: 28px; line-height: 1; color: var(--ink-muted); cursor: pointer; }
.sc-modal-body { padding: 18px 22px; overflow-y: auto; display: grid; gap: 14px; }
.sc-modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
.sc-field { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-field[hidden] { display: none; }
.sc-field input, .sc-field select, .sc-field textarea, .sc-tr-fields input, .sc-tr-fields textarea {
    width: 100%; box-sizing: border-box; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
    font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: #fff;
}
.sc-field textarea, .sc-tr-fields textarea { resize: vertical; line-height: 1.6; }
.sc-field input:focus, .sc-field select:focus, .sc-field textarea:focus, .sc-tr-fields input:focus, .sc-tr-fields textarea:focus {
    outline: none; border-color: var(--brand-600); box-shadow: var(--brand-ring);
}
.sc-file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-file-name { flex: 1; min-width: 120px; font-weight: 400; color: var(--ink-muted); }
.sc-tr { padding: 14px; border-radius: 12px; background: var(--brand-50); border: 1px solid var(--line); }
.sc-tr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-tr-head small { color: var(--ink-muted); }
.sc-tr-head .sc-btn { margin-left: auto; padding: 7px 14px; font-size: 13.5px; }
.sc-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-muted); line-height: 1.5; }
.sc-tr-fields { display: grid; gap: 8px; margin-top: 10px; }
.sc-tr-fields[hidden] { display: none; }

@media (max-width: 600px) {
    .section-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sc-card-text { padding: 9px 10px 11px; }
    .sc-card-text b { font-size: 14px; }
    .sc-play { width: 40px; height: 40px; }
    .sc-play::after { margin: 12px 0 0 15px; border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
    .section-view-body { padding: 20px 16px 26px; }
    .section-view-title { font-size: 21px; }
    .sc-modal { padding: 0; }
    .sc-modal-box { max-height: 100vh; height: 100%; border-radius: 0; }
}

/* ══════════════════════════════════════════════
   성경강연회 - 소개(고정 글) / 성인 탭 위 나라별 강사 (seminar-intro.js)
   ══════════════════════════════════════════════ */
.section-grid.is-static { display: block; }
.section-static-head { grid-column: 1 / -1; }
.sem-intro { display: grid; gap: 28px; max-width: 900px; margin: 0 auto; }
.sem-hero {
    padding: 34px 24px; border-radius: 18px; text-align: center; color: #fff;
    background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.22), transparent 60%), var(--brand-gradient-deep, var(--brand-gradient));
}
.sem-hero p { margin: 0; font-family: 'Gowun Batang', serif; font-size: 22px; line-height: 1.6; }
.sem-hero b { font-size: 26px; }
.sem-what, .sem-themes, .sem-speakers { padding: 26px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sem-what h2, .sem-themes h2, .sem-speakers h2 { margin: 0 0 12px; font-size: 22px; color: var(--brand-900); }
.sem-what h3 { margin: 18px 0 8px; font-size: 16px; color: var(--brand-700); }
.sem-what p, .sem-speakers p { margin: 0 0 10px; font-size: 16px; line-height: 1.85; color: var(--ink); }
.sem-topics { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 16px; line-height: 1.7; }
.sem-closing { margin-top: 16px !important; padding: 14px 16px; border-radius: 12px; background: var(--brand-50); font-weight: 700; }
.sem-themes ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sem-theme { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px; border-radius: 14px; background: #fafcff; border: 1px solid var(--line); }
.sem-no {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brand-gradient); color: #fff; font-size: 19px; font-weight: 900;
}
.sem-theme h3 { margin: 6px 0 8px; font-size: 18px; color: var(--brand-900); }
.sem-theme blockquote {
    margin: 0 0 8px; padding: 10px 14px; border-left: 4px solid var(--brand-200, #b9d6f2); border-radius: 0 10px 10px 0;
    background: #fff; font-family: 'Gowun Batang', serif; font-size: 15.5px; line-height: 1.75; color: var(--ink);
}
.sem-theme cite { display: block; margin-top: 4px; font-style: normal; font-family: 'Noto Sans KR', sans-serif; font-size: 13px; font-weight: 700; color: var(--brand-700); }
.sem-theme p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--ink); }
.sem-more { margin: 0; text-align: center; color: var(--ink-muted); font-size: 14.5px; }
/* 영상 (소개 영상 / 성인 탭 강연) */
.sem-video { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; box-shadow: 0 10px 26px -14px rgba(11, 61, 115, 0.45); }
.sem-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* 주제 사진 - 카드 위에 넓게 */
.sem-photo { grid-column: 1 / -1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; display: block; background: var(--brand-50); }

/* 성인 탭: 강사 + 영상 7개 */
.sem-speakers { margin-bottom: 18px; display: grid; gap: 14px; }
.sem-speaker { display: flex; align-items: center; gap: 12px; }
.sem-flag { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
.sem-speaker b { display: block; font-size: 19px; color: var(--brand-900); }
.sem-speaker small { font-size: 13.5px; color: var(--ink-muted); }
.sem-video-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sem-video-list button {
    width: 100%; display: grid; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 12px;
    background: #fafcff; font: inherit; text-align: left; cursor: pointer;
}
.sem-video-list button:hover { background: var(--brand-50); }
.sem-video-list button.is-on { border-color: var(--brand-600); background: var(--brand-50); }
.sem-video-list img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; display: block; }
.sem-video-list span { font-size: 14px; font-weight: 800; color: var(--brand-900); }
/* 세계선교 > 선교현황 (mission-status.js) */
.ms { display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.ms-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ms-totals > div { display: grid; justify-items: center; gap: 2px; padding: 22px 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ms-totals b { font-size: 44px; font-weight: 900; line-height: 1.1; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ms-totals small { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.ms-totals p { grid-column: 1 / -1; margin: 0; text-align: right; font-size: 13px; color: var(--ink-muted); }
.ms-continents { padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; gap: 10px; }
.ms-continents h2 { margin: 0 0 4px; font-size: 22px; color: var(--brand-900); }
.ms-continent { border: 1px solid var(--line); border-radius: 14px; background: #fafcff; }
.ms-continent summary {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center;
    padding: 14px 16px; cursor: pointer; list-style: none;
}
.ms-continent summary::-webkit-details-marker { display: none; }
.ms-continent summary b { font-size: 17px; color: var(--brand-900); }
.ms-continent summary span { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.ms-bar { grid-column: 1 / -1; display: block; height: 6px; border-radius: 999px; background: #e5edf6; position: relative; overflow: hidden; }
.ms-bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--brand-gradient); border-radius: 999px; }
.ms-continent ul { list-style: none; margin: 0; padding: 0 16px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.ms-continent li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 14.5px; }
.ms-continent li b { color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ms-continent li.is-home { border-color: var(--brand-600); background: var(--brand-50); font-weight: 800; }
.ms-continent li > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ms-flag { flex-shrink: 0; width: 24px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
.ms-note { margin: -4px 16px 14px; font-size: 13px; color: var(--ink-muted); }

@media (max-width: 600px) {
    .ms-totals b { font-size: 34px; }
    .ms-continents { padding: 16px 12px; }
    .sem-what, .sem-themes, .sem-speakers { padding: 18px 16px; }
    .sem-hero p { font-size: 18px; }
    .sem-hero b { font-size: 21px; }
    .sem-theme { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 12px; }
    .sem-no { width: 36px; height: 36px; font-size: 16px; }
}
