/* D안 카핑 베이직컷 페이지 (/d/basiccut/) 전용 — b-detail.css 다음에 읽는다.
   공통 상세 페이지 틀(d-*)은 그대로 쓰고, 강사 한마디·기본 형태 갤러리·4회 과정처럼 이 페이지에만 있는 것만 둔다 */

/* ---------- 첫 화면 카드: 기본 형태 네 장 ---------- */
.cb-hero-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 16px;
}

.cb-hero-photos li {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #e9ecf3;
}

.cb-hero-photos img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cb-hero-photos span {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 4px 2px;
  border-radius: 8px;
  background: rgba(15, 20, 36, 0.62);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

/* ---------- 문장 강조 ---------- */
.cb-mark {
  box-shadow: inset 0 -0.42em 0 rgba(140, 156, 214, 0.38);
}

.cb-subhead {
  margin-top: clamp(2rem, 1.6rem + 1.4vw, 3rem);
  color: var(--ink);
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ---------- 01 강사 한마디 ---------- */
.cb-teacher {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px clamp(18px, 1rem + 1.6vw, 36px);
  max-width: 860px;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
  border-radius: clamp(24px, 1rem + 1.2vw, 34px);
  background: linear-gradient(160deg, #f3f5f9 0%, #fbfbfd 100%);
  box-shadow: inset 0 0 0 1px #e6e9f1;
}

.cb-teacher img {
  grid-row: span 2;
  width: clamp(84px, 64px + 4vw, 124px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--white), 0 0 0 5px #c7cee6, 0 14px 30px rgba(28, 40, 96, 0.18);
}

.cb-teacher blockquote {
  color: var(--ink);
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.65;
  letter-spacing: -0.02em;
}

.cb-teacher blockquote::before {
  content: '“';
  display: block;
  height: 0.6em;
  color: #8c9cd6;
  font-size: 2.6em;
  font-weight: 800;
  line-height: 1;
}

.cb-teacher blockquote b {
  color: var(--brand-deep);
  box-shadow: inset 0 -0.38em 0 rgba(140, 156, 214, 0.32);
}

.cb-teacher figcaption {
  display: grid;
  justify-items: start;
  gap: 12px;
  color: var(--ink-3);
  font-size: var(--text-small);
}

.cb-teacher-name b {
  margin-right: 8px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 800;
}

/* 강사 이력 — 작은 칩 */
.cb-career {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cb-career li {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1px #dfe3ee;
  color: var(--ink-2);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.4;
}

.cb-insta {
  color: var(--brand-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cb-teacher {
  max-width: 920px;
}

@media (max-width: 560px) {
  .cb-teacher {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .cb-teacher img {
    grid-row: auto;
  }
}

/* 라인·무게·각도·균형 — 흔들리는 네 칸 */
.cb-unstable {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.cb-unstable li {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px #c7cee6;
  color: var(--brand-deep);
  font-size: var(--text-lead);
  font-weight: 800;
}

.reveal.is-in .cb-unstable li,
.cb-unstable.reveal.is-in li {
  animation: cb-wobble 900ms var(--ease-out-expo) both;
}

.cb-unstable li:nth-child(2) {
  animation-delay: 90ms;
}

.cb-unstable li:nth-child(3) {
  animation-delay: 180ms;
}

.cb-unstable li:nth-child(4) {
  animation-delay: 270ms;
}

@keyframes cb-wobble {
  0% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-4deg) translateY(-2px);
  }
  60% {
    transform: rotate(3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

/* ---------- 02 다시 설계하는 다섯 가지 ---------- */
.cb-redesign {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.cb-redesign li {
  display: grid;
  gap: 18px;
  padding: 20px 18px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cb-redesign span {
  color: #8c9cd6;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.12em;
}

.cb-redesign b {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.03em;
}

@media (max-width: 900px) {
  .cb-redesign {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-redesign li:last-child {
    grid-column: span 2;
  }
}

/* 기본 형태 네 가지 × 길이 세 가지 */
.cb-forms {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem);
  border-radius: clamp(28px, 1.2rem + 1.6vw, 40px);
  background: #1b1d22;
  color: var(--white);
}

.cb-forms-title {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-small);
  font-weight: 700;
}

.cb-forms ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(6px, 0.3rem + 0.6vw, 12px);
  margin-top: 16px;
}

.cb-forms li {
  display: grid;
  gap: clamp(6px, 0.3rem + 0.4vw, 10px);
  align-content: start;
}

.cb-forms li p {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: var(--text-xs);
  font-weight: 600;
}

.cb-forms li p b {
  color: #f1d48b;
  font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 1.125rem);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.cb-forms img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: clamp(8px, 0.4rem + 0.4vw, 14px);
  object-fit: cover;
  background: #2a2d34;
}

@media (max-width: 560px) {
  .cb-forms ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 18px;
  }
}

/* ---------- 03 추천 대상 (두 줄) ---------- */
.cb-for {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cb-for li {
  padding: 18px 20px 18px 52px;
  border-radius: 18px;
  background: #f3f5f9;
}

.cb-for li::before {
  left: 18px;
  top: calc(18px + 0.15em);
}

.cb-for li::after {
  left: 25px;
  top: calc(18px + 0.15em + 5px);
}

@media (max-width: 720px) {
  .cb-for {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 04 4회 과정: 숫자가 이어지는 가로 단계 ---------- */
.cb-rounds {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.cb-rounds::before {
  content: '';
  position: absolute;
  left: 32px;
  right: 32px;
  top: 44px;
  height: 2px;
  background: linear-gradient(90deg, #c7cee6, #2a49b8);
}

.cb-rounds li {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: 26px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(28, 40, 96, 0.05);
}

.cb-round-no {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-pill);
  background: linear-gradient(150deg, #3a5bc7 0%, #2a49b8 45%, #162257 100%);
  box-shadow: var(--shadow-blue);
  color: var(--white);
  font-size: var(--text-small);
  font-weight: 700;
}

.cb-round-no b {
  min-width: 1.4em;
  font-size: 1.25rem;
  font-weight: 800;
  text-align: center;
}

.cb-rounds h3 {
  margin-top: 18px;
  color: var(--ink);
  font-size: var(--text-h3);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cb-rounds p:not(.cb-round-no) {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: var(--text-small);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .cb-rounds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-rounds::before {
    display: none;
  }
}

@media (max-width: 520px) {
  .cb-rounds {
    grid-template-columns: minmax(0, 1fr);
  }

  .cb-rounds li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 14px;
    padding: 18px;
  }

  .cb-round-no {
    grid-row: span 2;
    align-self: start;
  }

  .cb-rounds h3 {
    margin-top: 2px;
  }

  .cb-rounds p:not(.cb-round-no) {
    margin-top: 0;
  }
}

/* ---------- 05 얻는 변화 ---------- */
.cb-dark {
  margin-top: 28px;
  padding: clamp(2rem, 1.4rem + 3vw, 3.5rem);
  border-radius: clamp(28px, 1.2rem + 1.6vw, 40px);
  background:
    radial-gradient(circle at 100% 0%, rgba(241, 212, 139, 0.22) 0%, rgba(241, 212, 139, 0) 36%),
    linear-gradient(140deg, #22357f 0%, #162257 55%, #0b1233 100%);
  color: var(--white);
  text-align: center;
}

.cb-dark .label-en {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

.cb-dark-q {
  margin-top: 12px;
  font-size: clamp(1.625rem, 1.15rem + 2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.cb-dark-q em {
  font-style: normal;
  color: #f1d48b;
}

.cb-dark > p:last-child {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

.cb-next {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.cb-next .cb-subhead {
  margin-top: 0;
}

.cb-next .edu-path {
  margin-top: 16px;
}

.cb-next .edu-path li:first-child a {
  background: var(--e-tint);
  box-shadow: inset 0 0 0 1.5px var(--e-brand);
}

/* ---------- 06 교육 안내 표 ---------- */
.cb-info {
  max-width: 900px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-card);
}

.cb-info > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 16px;
  padding: 20px 26px;
}

.cb-info > div + div {
  border-top: 1px solid var(--line);
}

.cb-info dt {
  color: var(--ink-3);
  font-weight: 700;
}

.cb-info dd {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.6;
}

.cb-info dd b {
  color: var(--brand-deep);
  font-weight: 800;
}

.cb-info dd small {
  display: block;
  margin-top: 4px;
  color: var(--ink-3);
  font-size: var(--text-small);
  font-weight: 500;
}

.cb-sched-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--brand-tint);
  color: var(--brand-deep);
  font-weight: 800;
}

.cb-sched-link:hover {
  background: #e0e5f4;
}

@media (max-width: 560px) {
  .cb-info > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding: 16px 18px;
  }

  .cb-info dt {
    font-size: var(--text-small);
  }
}

/* ---------- 07 신청: 전화 상담 ---------- */
.cb-call {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 20px;
  border-radius: 18px;
  background: var(--brand-tint);
  color: var(--brand-deep);
  transition: background var(--duration-fast) ease;
}

.cb-call:hover {
  background: #e0e5f4;
}

.cb-call span {
  font-size: var(--text-small);
  font-weight: 700;
}

.cb-call b {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (prefers-reduced-motion: reduce) {
  .reveal.is-in .cb-unstable li,
  .cb-unstable.reveal.is-in li {
    animation: none;
  }
}

/* 성함·연락처가 한 줄에 있을 때 위 끝을 맞춘다 */
.d-apply-form .field-row .field {
  margin-top: 0;
}

/* ---------- 04 교육 과정 (자세히): 회차마다 이론·실습·포인트 ---------- */
.cb-rounds.is-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cb-rounds.is-detail::before {
  display: none;
}

.cb-rounds.is-detail > li {
  display: block;
  padding: 24px 22px;
}

.cb-round-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.cb-rounds.is-detail h3 {
  margin-top: 0;
}

.cb-round-body {
  display: grid;
  gap: 2px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--line);
}

.cb-round-body > div {
  display: grid;
  grid-template-columns: 4em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  background: #f7f8fb;
}

.cb-round-body > div.is-point {
  background: var(--brand-tint);
}

.cb-round-body dt {
  color: var(--brand);
  font-size: var(--text-small);
  font-weight: 800;
}

/* 바깥 회차 카드(.cb-rounds li) 모양이 안쪽 목록에 번지지 않게 되돌린다 */
.cb-rounds .cb-round-body li {
  display: block;
  position: relative;
  padding: 0 0 0 12px;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.6;
}

.cb-rounds .cb-round-body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8c9cd6;
}

.cb-rounds .cb-round-body .is-point li {
  color: var(--brand-deep);
  font-weight: 700;
}

@media (max-width: 860px) {
  .cb-rounds.is-detail {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .cb-rounds.is-detail > li {
    padding: 18px 16px;
  }

  .cb-rounds.is-detail .cb-round-no {
    grid-row: auto;
  }

  .cb-round-body > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

