/* 86차 - 자격증반 전용 5가지 절제된 인터랙션.
   85차 스타일은 수정하지 않으며, 이 파일은 .cert84 범위에서만 동작합니다.
   모션 감소 설정(prefers-reduced-motion)과 키보드 조작을 존중합니다. */

/* 01. 선택 버튼의 강조 영역이 그리드 안을 부드럽게 이동 */
.cert84 .cert84-tabs.cert86-motion-ready {
  position: relative;
  isolation: isolate;
}
.cert84 .cert86-tab-indicator {
  display: none;
}
.cert84 .cert84-tabs.cert86-motion-ready .cert86-tab-indicator {
  display: block;
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 7px;
  background: #48684f;
  box-shadow: 0 5px 14px rgba(46, 78, 55, .19);
  pointer-events: none;
  will-change: transform;
  transition: transform 360ms cubic-bezier(.22,1,.36,1),
              width 360ms cubic-bezier(.22,1,.36,1),
              height 360ms cubic-bezier(.22,1,.36,1);
}
/* 최초 측정 중 폰트 및 그리드 높이가 달라져도 표시가 튀지 않도록 고정 */
.cert84 .cert84-tabs.cert86-motion-ready.cert86-initializing .cert86-tab-indicator {
  transition: none !important;
}
.cert84 .cert84-tabs.cert86-motion-ready .cert84-tab {
  position: relative;
  z-index: 1;
}
.cert84 .cert84-tabs.cert86-motion-ready .cert84-tab[aria-selected="true"] {
  background: transparent;
  box-shadow: none;
}
.cert84 .cert84-tabs.cert86-motion-ready .cert84-tab:not([aria-selected="true"]):hover {
  background: rgba(135, 164, 140, .14);
}
.cert84 .cert84-tabs.cert86-motion-ready .cert84-tab:active {
  transform: scale(.985);
}

/* 01-b. 탭을 바꿀 때 내용이 짧게 교차 등장 (레이아웃 높이 변화 없음) */
.cert84.cert86-motion-active .cert84-panel:not([hidden]) {
  animation: cert86-panel-in 390ms cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cert86-panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 02. 관찰 영역에 들어올 때 한 번만 애니메이션.
   진입 전 콘텐츠를 숨기지 않으므로 빠른 스크롤/전체 화면 캡처도 정상 보임. */
.cert84.cert86-motion-active .cert86-reveal.is-revealed:not(.cert86-entrance-complete) {
  animation: cert86-rise-in 690ms cubic-bezier(.2,.8,.2,1) both;
  animation-delay: var(--cert86-delay, 0ms);
}
@keyframes cert86-rise-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 03. PC에서 실기교육 카드와 정보박스가 미세하게 떠오르는 반응 */
.cert84 .cert84-benefit,
.cert84 .cert84-info-box {
  transition: transform 260ms cubic-bezier(.2,.8,.2,1),
              box-shadow 260ms ease,
              background-color 260ms ease,
              border-color 260ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .cert84 .cert84-benefit:hover,
  .cert84 .cert84-benefit.cert86-reveal.is-revealed:hover {
    transform: translateY(-4px);
    background-color: #f4f8f2;
    box-shadow: 0 12px 22px rgba(45, 76, 55, .09);
    position: relative;
    z-index: 2;
  }
  .cert84 .cert84-info-box:hover,
  .cert84 .cert84-info-box.cert86-reveal.is-revealed:hover {
    transform: translateY(-4px);
    border-color: #ccdccb;
    box-shadow: 0 16px 30px rgba(45, 76, 55, .11);
  }
}

/* 04. 배너 텍스트와 작품 사진을 약간의 시간차로 등장 */
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy .cert84-eyebrow {
  animation: cert86-hero-text 490ms 70ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy h2 {
  animation: cert86-hero-text 550ms 140ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy .cert84-lead {
  animation: cert86-hero-text 550ms 200ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy .cert84-description {
  animation: cert86-hero-text 550ms 250ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy .cert84-featured-tags,
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-copy .cert84-quick-nav {
  animation: cert86-hero-text 520ms 300ms both cubic-bezier(.2,.8,.2,1);
}
.cert84.cert86-motion-active #cert84-panel-calligraphy:not([hidden]) .cert84-featured-visual img {
  animation: cert86-hero-image 1050ms both cubic-bezier(.2,.8,.2,1);
}
@keyframes cert86-hero-text {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cert86-hero-image {
  from { opacity: .74; transform: scale(1.075); }
  to { opacity: 1; transform: scale(1); }
}

/* 05. 문의 버튼과 바로가기의 화살표가 짧게 이동 */
.cert84 .cert84-quick-nav a span,
.cert84 .cert85-verify a span,
.cert84 .cert84-cta a strong span,
.cert84 .cert84-pending a span,
.cert84 .cert85-mobile-return span {
  display: inline-block;
  transition: transform 240ms cubic-bezier(.2,.8,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .cert84 .cert84-quick-nav a:hover span,
  .cert84 .cert85-verify a:hover span,
  .cert84 .cert84-cta a:hover strong span,
  .cert84 .cert84-pending a:hover span {
    transform: translate(3px,-3px);
  }
  .cert84 .cert85-mobile-return:hover span { transform: translateY(-3px); }
}
.cert84 .cert84-quick-nav a:focus-visible span,
.cert84 .cert85-verify a:focus-visible span,
.cert84 .cert84-cta a:focus-visible strong span,
.cert84 .cert84-pending a:focus-visible span {
  transform: translate(3px,-3px);
}

/* 모션을 줄이도록 설정한 사용자는 기존의 즉각적인 화면 변경만 표시 */
@media (prefers-reduced-motion: reduce) {
  .cert84 .cert84-tabs.cert86-motion-ready .cert86-tab-indicator { display: none; }
  .cert84 .cert84-tabs.cert86-motion-ready .cert84-tab[aria-selected="true"] {
    background: #48684f;
    box-shadow: 0 4px 12px rgba(46,78,55,.16);
  }
  .cert84 .cert84-tab,
  .cert84 .cert84-benefit,
  .cert84 .cert84-info-box,
  .cert84 .cert84-quick-nav a span,
  .cert84 .cert85-verify a span,
  .cert84 .cert84-cta a strong span,
  .cert84 .cert84-pending a span,
  .cert84 .cert85-mobile-return span {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .cert84.cert86-motion-active .cert84-panel:not([hidden]),
  .cert84.cert86-motion-active .cert84-featured-copy *,
  .cert84.cert86-motion-active .cert84-featured-visual img {
    animation: none !important;
  }
  .cert84.cert86-motion-active .cert86-reveal,
  .cert84.cert86-motion-active .cert86-reveal.is-revealed {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
