/* 자격강사 공개 화면 — 2026-12-06
   목록 카드는 theme/iaied/skin/board/iaied_people/people.css(.iaied-tl) 를 그대로 쓴다.
   여기는 상세(.ci-dt)와 머리·빈 화면만. 색: 남색 #1f2d3d · 파랑 #366ACD · 민트 #50bcb6 (파트너 강사 상세 .pf-card 와 같음) */

.ci-page { box-sizing: border-box; width: 100%; max-width: 1040px; margin: 0 auto; padding: 8px 16px 24px; color: #1f2d3d; }
.ci-page * { box-sizing: border-box; }
.ci-head { margin: 6px 0 22px; text-align: center; }
.ci-title { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: #1f2d3d; word-break: keep-all; }
.ci-empty, .ci-notfound { margin: 40px 0; text-align: center; color: #5b6577; font-size: 16px; line-height: 1.7; }
.ci-notfound p { margin: 0 0 14px; }

/* 상세 카드: 사진(왼쪽) + 이름·소개(오른쪽). 좁으면 한 줄로 */
.ci-dt { margin: 0 auto; }
.ci-card { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 28px; border-radius: 22px; background: linear-gradient(135deg, #ffffff 0%, #f5f8fe 100%); border: 1px solid #e3e9f4; box-shadow: 0 14px 40px rgba(15, 29, 61, .08); }
.ci-card.no-photo { grid-template-columns: minmax(0, 1fr); }
.ci-photo { margin: 0; min-width: 0; }
.ci-photo img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: 16px; box-shadow: 0 10px 26px rgba(15, 29, 61, .14); }
.ci-info { min-width: 0; }
.ci-badge { display: inline-block; margin: 0 0 10px; padding: 5px 14px; border-radius: 999px; background: rgba(80, 188, 182, .14); color: #2a8f89; font-size: 14px; font-weight: 700; line-height: 1.4; }
.ci-name { margin: 0 0 10px; padding: 0; font-size: 36px; font-weight: 800; line-height: 1.2; letter-spacing: -.02em; color: #1f2d3d; word-break: keep-all; overflow-wrap: anywhere; }
.ci-intro { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.7; color: #4a5568; word-break: keep-all; overflow-wrap: anywhere; }

/* 본문: 편집기에서 들어온 글꼴·크기 통일(파트너 강사 상세와 같은 톤) */
.ci-content { margin: 34px auto 0; max-width: 760px; font-size: 17px; line-height: 1.85; color: #2b3445; word-break: keep-all; overflow-wrap: anywhere; }
.ci-content span, .ci-content font, .ci-content p { font-family: inherit !important; font-size: inherit !important; }
.ci-content span[style*="16pt"], .ci-content span[style*="18pt"], .ci-content span[style*="20pt"], .ci-content span[style*="24pt"] { font-size: 1.18em !important; }
.ci-content b, .ci-content strong { color: #1f2d3d; }
.ci-content h2, .ci-content h3 { margin: 1.6em 0 .6em; line-height: 1.35; color: #1f2d3d; }
.ci-content img { display: block; max-width: 100%; height: auto; margin: 0 auto 18px; border-radius: 14px; box-shadow: 0 10px 28px rgba(15, 29, 61, .12); }
.ci-content table { display: block; max-width: 100%; overflow-x: auto; }
.ci-content iframe, .ci-content video { max-width: 100%; }

.ci-back { margin: 36px 0 0; padding-top: 24px; border-top: 1px solid #e5e9f0; text-align: center; }
.ci-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 26px; border-radius: 999px; background: #366ACD; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.ci-btn:hover, .ci-btn:focus { background: #2a56ad; color: #fff; }

@media (max-width: 767px) {
    .ci-page { padding: 4px 6px 18px; }
    .ci-title { font-size: 22px; }
    .ci-card { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 18px; text-align: center; }
    .ci-photo { max-width: 300px; width: 100%; margin: 0 auto; }
    .ci-name { font-size: 28px; }
    .ci-intro { font-size: 16px; }
    .ci-content { margin-top: 26px; font-size: 15.5px; line-height: 1.8; }
    .ci-content img { margin-bottom: 14px; border-radius: 10px; }
}
@media (min-width: 1024px) {
    .ci-name { font-size: 38px; }
}

/* 12-06 목록: 인원수에 맞춘 배치(lib/view.php ci-cnt-1~4). people.css 카드 대신 전용 카드 */
.ci-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin: 0 auto; }
.ci-cnt-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 920px; }
.ci-cnt-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; }
.ci-cnt-1 { grid-template-columns: minmax(0, 1fr); max-width: 1010px; }   /* 12-06 2차: 처음 모양처럼 넓고 낮게 */
.ci-item { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #e3e9f4; border-radius: 18px; box-shadow: 0 8px 24px rgba(15, 29, 61, .06); color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.ci-item:hover, .ci-item:focus { transform: translateY(-3px); border-color: #e3cb8f; box-shadow: 0 16px 34px rgba(15, 29, 61, .12); color: inherit; text-decoration: none; }
.ci-item-img { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(180deg, #f6f8fc 0%, #e9eef7 100%); }
.ci-item-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.ci-item:hover .ci-item-img img { transform: scale(1.03); }
.ci-item-initial { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 56px; font-weight: 800; color: #b7c3d8; }
.ci-item-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px 20px 20px; min-width: 0; }
.ci-item-role { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #f7f1e3; color: #8a6a22; font-size: 12px; font-weight: 700; line-height: 1.5; }
.ci-item-name { display: block; font-size: 20px; font-weight: 800; line-height: 1.35; color: #14264a; word-break: keep-all; }
.ci-item-sum { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14.5px; line-height: 1.65; color: #5b6577; word-break: keep-all; overflow-wrap: anywhere; }
.ci-item-more { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: #b8892f; }
/* 1~2명: 사진 왼쪽 · 글 오른쪽 가로 카드 */
.ci-cnt-1 .ci-item, .ci-cnt-2 .ci-item { flex-direction: row; align-items: stretch; }
.ci-cnt-1 .ci-item-img { flex: 0 0 260px; aspect-ratio: 1 / 1; }
.ci-cnt-2 .ci-item-img { flex: 0 0 44%; }
.ci-cnt-1 .ci-item-body, .ci-cnt-2 .ci-item-body { justify-content: center; padding: 28px 30px; }
.ci-cnt-1 .ci-item-body { padding: 24px 36px; }
.ci-cnt-1 .ci-item-name { font-size: 26px; }
.ci-cnt-1 .ci-item-sum { font-size: 16px; -webkit-line-clamp: 5; }
.ci-cnt-2 .ci-item-name { font-size: 22px; }
.ci-cnt-2 .ci-item-sum { -webkit-line-clamp: 4; }
@media (max-width: 1023px) {
    .ci-cnt-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .ci-cnt-2 .ci-item { flex-direction: column; }
    .ci-cnt-2 .ci-item-img { flex: none; }
    .ci-cnt-2 .ci-item-body { padding: 18px 20px 20px; }
}
@media (max-width: 767px) {
    .ci-list, .ci-cnt-2, .ci-cnt-3, .ci-cnt-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .ci-cnt-1 { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
    .ci-cnt-1 .ci-item { flex-direction: column; }
    .ci-cnt-1 .ci-item-img { flex: none; aspect-ratio: 4 / 5; }
    .ci-cnt-1 .ci-item-body { padding: 18px 20px 22px; }
    .ci-cnt-1 .ci-item-name { font-size: 24px; }
    .ci-item { border-radius: 14px; }
    .ci-item-body { padding: 12px 12px 14px; gap: 4px; }
    .ci-item-name, .ci-cnt-2 .ci-item-name { font-size: 16.5px; }
    .ci-item-sum { font-size: 13px; -webkit-line-clamp: 3; }
    .ci-item-role { font-size: 11px; padding: 2px 8px; }
    .ci-item-more { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .ci-item, .ci-item-img img { transition: none; } }

/* 12-06 등록된 자격강사가 없을 때 안내 상자(lib/view.php ci-empty-box) */
.ci-empty-box { max-width: 760px; margin: 10px auto 20px; padding: 40px 36px 36px; text-align: center; background: linear-gradient(135deg, #ffffff 0%, #f7f9fd 100%); border: 1px solid #e3e9f4; border-top: 4px solid #c9a45c; border-radius: 18px; box-shadow: 0 10px 30px rgba(15, 29, 61, .07); }
.ci-empty-ico { display: inline-flex; width: 64px; height: 64px; margin: 0 0 16px; border-radius: 50%; background: #f7f1e3; position: relative; }
.ci-empty-ico::before { content: ''; position: absolute; inset: 16px; background: #b8892f; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center / contain no-repeat; }
.ci-empty-title { margin: 0 0 12px; font-size: 21px; font-weight: 800; line-height: 1.45; color: #14264a; word-break: keep-all; }
.ci-empty-text { margin: 0 auto 10px; max-width: 600px; font-size: 16px; line-height: 1.8; color: #4a5568; word-break: keep-all; }
.ci-empty-text b { color: #14264a; white-space: nowrap; }
.ci-empty-sub { margin: 0; font-size: 14.5px; line-height: 1.7; color: #8a6a22; font-weight: 600; word-break: keep-all; }
@media (max-width: 767px) {
    .ci-empty-box { padding: 30px 20px 26px; border-radius: 14px; }
    .ci-empty-ico { width: 54px; height: 54px; margin-bottom: 12px; }
    .ci-empty-ico::before { inset: 13px; }
    .ci-empty-title { font-size: 18px; }
    .ci-empty-text { font-size: 15px; }
    .ci-empty-sub { font-size: 13.5px; }
}

/* 12-06 강사가 있을 때 목록 위 작은 안내 상자(lib/view.php ci-guide) */
.ci-guide { display: flex; align-items: center; gap: 14px; max-width: 1010px; margin: 0 auto 22px; padding: 14px 20px; background: #fbf8f1; border: 1px solid #eadfc4; border-left: 4px solid #c9a45c; border-radius: 12px; }
.ci-guide-ico { flex: 0 0 auto; position: relative; width: 38px; height: 38px; border-radius: 50%; background: #f3e9d2; }
.ci-guide-ico::before { content: ''; position: absolute; inset: 9px; background: #b8892f; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89 17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E") center / contain no-repeat; }
.ci-guide-text { margin: 0; font-size: 14.5px; line-height: 1.7; color: #4a5568; word-break: keep-all; }
.ci-guide-text b { color: #14264a; white-space: nowrap; }
.ci-cnt-2 ~ .ci-guide, .ci-guide + .ci-cnt-2, .ci-guide + .ci-cnt-3 { margin-top: 0; }
@media (max-width: 767px) {
    .ci-guide { align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 12px 14px; border-radius: 10px; }
    .ci-guide-ico { width: 32px; height: 32px; }
    .ci-guide-ico::before { inset: 7px; }
    .ci-guide-text { font-size: 13.5px; }
    .ci-guide-text br { display: none; }
}

/* 12-06 상세 디자인 개선 — lib/shape.php 가 만든 강의 분야 배지·소제목·주제 카드 */
.ci-fields { margin: 20px 0 0; }
.ci-sub { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: #366ACD; }
.ci-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ci-chips li { margin: 0; padding: 6px 14px; border-radius: 999px; background: #eef3fc; border: 1px solid #d9e4f7; color: #2c4f9e; font-size: 14px; font-weight: 600; line-height: 1.35; list-style: none; word-break: keep-all; }
.ci-chips li::before { display: none; }
.ci-dt .ci-content { max-width: none; margin-top: 40px; padding: 0 6px; }
.ci-content > h3:first-child { display: flex; align-items: center; gap: 10px; margin-top: 0; font-size: 23px; font-weight: 800; }
.ci-content > h3:first-child::before, .ci-content p.ci-sec-h::before { content: ""; flex: 0 0 auto; width: 5px; height: 24px; border-radius: 3px; background: linear-gradient(180deg, #c9a24a, #e6c877); }
.ci-content p.ci-sec-h { display: flex; align-items: center; gap: 10px; margin: 40px 0 18px; font-size: 23px !important; font-weight: 800; line-height: 1.35; color: #1f2d3d; }
.ci-content p.ci-sec-h b, .ci-content p.ci-sec-h strong, .ci-content p.ci-sec-h span { color: inherit !important; background: none !important; }
.ci-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 8px; counter-reset: ci-topic; }
.ci-topic { position: relative; padding: 22px 24px 22px 76px; border-radius: 18px; background: #fff; border: 1px solid #e3e9f4; box-shadow: 0 6px 18px rgba(15, 29, 61, .05); counter-increment: ci-topic; transition: border-color .2s, box-shadow .2s; }
.ci-topic:hover { border-color: #c9d7f0; box-shadow: 0 10px 26px rgba(15, 29, 61, .09); }
.ci-topic::before { content: counter(ci-topic, decimal-leading-zero); position: absolute; left: 22px; top: 22px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #366ACD, #2a56ad); color: #fff; font-size: 14px; font-weight: 800; box-shadow: 0 6px 14px rgba(54, 106, 205, .25); }
.ci-topic p { margin: 0 0 6px; font-size: 15.5px; line-height: 1.7; color: #3a4558; }
.ci-topic p:last-child { margin-bottom: 0; }
.ci-topic p.ci-topic-t { margin: 6px 0 8px; font-size: 17.5px; font-weight: 800; line-height: 1.4; color: #1f2d3d; }
.ci-topic p.ci-topic-t b, .ci-topic p.ci-topic-t strong, .ci-topic p.ci-topic-t span { color: inherit !important; background: none !important; }
@media (max-width: 767px) {
    .ci-fields { text-align: left; }
    .ci-chips { justify-content: center; }
    .ci-chips li { font-size: 13px; padding: 5px 12px; }
    .ci-content > h3:first-child, .ci-content p.ci-sec-h { font-size: 19px !important; }
    .ci-content p.ci-sec-h { margin-top: 30px; }
    .ci-topics { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ci-topic { padding: 18px 18px 18px 64px; border-radius: 14px; }
    .ci-topic::before { left: 16px; top: 18px; width: 34px; height: 34px; font-size: 13px; }
    .ci-topic p.ci-topic-t { font-size: 16.5px; margin-top: 4px; }
    .ci-topic p { font-size: 15px; }
}
/* 12-06 휴대폰에서 낱말 중간 끊김 막기(테마 p 의 break-all 덮음)·강의 분야 제목 가운데 */
.ci-content p, .ci-content h3, .ci-topic p { word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 767px) { .ci-fields { text-align: center; } }

/* 12-06 목록 2차: 회원강사 목록과 같은 갤러리 카드(people.css .iaied-tl .is-gallery). 짧은 소개만 두 줄로 */
.ci-tl .iaied-tl-grid { margin-top: 4px; }
.ci-tl .is-gallery .iaied-tl-sum { -webkit-line-clamp: 2; font-size: 14px; line-height: 1.6; }
