/* =========================================================
지원자격 RE_CA0000V
========================================================= */

.main-title--CA {
  background-image: url('/resources/front/images/contents/hero_title_CA_pc.svg');

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% auto;

  max-width: 102.9rem;
  width: 100%;
  height: 13.1rem;
}

/* hero 오브젝트 */
/* ===========================================================
main.css랑 공통, 위치 다르면 부모클래스 추가 modifier
============================================================== */
.bg-objects--sub01 .hero__obj--hash {
  background-image: url('/resources/front/images/common/hero__object-CA-01.png');
}
.bg-objects--sub01 .hero__obj--chain {
  background-image: url('/resources/front/images/common/hero__object-CA-02.png');
}
.bg-objects--sub01 .hero__obj--skew {
  background-image: url('/resources/front/images/common/hero__object-CA-03.png');
}
.bg-objects--sub01 .hero__obj--hashblur {
  background-image: url('/resources/front/images/common/hero__object-CA-04.png');
}

/* 
  모바일
  */
@media screen and (max-width: 767px) {
  .main-title--CA {
    background-image: url('/resources/front/images/contents/hero_title_CA_mo.svg');

    width: 22.6rem;
    height: 10.8rem;
    margin: 0 auto;
  }

  .bg-objects--sub01 .hero__obj--hash {
    top: -3.2rem;
  }
  .bg-objects--sub01 .hero__obj--chain {
    top: 50%;
  }
  .bg-objects--sub01 .hero__obj--hashblur {
    left: -3rem;
  }
}

/* =========================================================
.section 01 .section--jobstyle
========================================================= */
.character {
  overflow: hidden;
}
.character__cards {
  position: relative;
  max-width: 44rem;
  height: 55.6rem;
  margin: 0 auto;
  overflow: visible;
}

/* 카드 영역 */
.card-back {
  position: absolute;
  top: 50%;
  width: 100%;
}
.card-back img {
  max-width: 33rem;
  height: 43rem;
  width: 100%;
}
.card-back--left {
  left: -43%;
  transform: translateY(-50%);
  z-index: 0;
}
.card-back--right {
  right: -66%;
  transform: translateY(-50%);
  z-index: 0;
}

/* 메인 카드 */
.card-front {
  position: absolute;
  inset: 0;
  z-index: 1;
  animation: shakeCard 0.7s ease-in forwards;
  animation-iteration-count: 1;
  animation-delay: 1s;
}
@keyframes shakeCard {
  0% {
    transform: rotateY(0);
  }
  100% {
    transform: rotateY(360deg);
  }
}
.card-front img {
  width: 100%;
  height: auto;
}

/* 오브젝트 공통 */
.obj {
  position: absolute;
  z-index: 3;
}
.obj img {
  width: 100%;
  height: auto;
}

/* 로켓 — 우측 상단 */
.obj--rocket {
  width: 20rem;
  top: 6rem;
  right: -7rem;
  animation: float-a 3.2s ease-in-out infinite;
}

/* 달력/손 — 좌측 하단 */
.obj--hand {
  width: 20rem;
  bottom: 8rem;
  left: -4.5rem;
  animation: float-b 3.8s ease-in-out infinite;
}
@keyframes float-a {
  0%,
  100% {
    transform: translateY(0) rotate(8deg);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}
@keyframes float-b {
  0%,
  100% {
    transform: translateY(0) rotate(-10deg);
  }
  50% {
    transform: translateY(-8px) rotate(-10deg);
  }
}

/* 테스트시작하기 버튼 */
.character-cta {
  text-align: center;
}
.character__btn {
  width: 35.6rem;
  height: 9.6rem;
  padding: 2rem 4rem 2rem 5.6rem;
  border-radius: 10rem;
  background-color: #1f2732;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  margin: 0 auto;
}
.character__btn:focus-visible {
  outline: 2px dotted #fff;
  border-radius: 10rem;
  outline-offset: -0.4rem;
}
.character-cta__text {
  font-family: var(--font-family-point);
  color: var(--color-text-white, #fff);
  font-size: var(--font-size-h4-pc, 2.6rem);
  line-height: 136%;
  letter-spacing: -0.26px;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}
.character-cta__icon {
  max-width: 4rem;
  width: 100%;
  height: 4rem;
  background: url('/resources/front/images/common/icon_arrow_floating_black.svg')
    no-repeat center / contain;
}

@media screen and (max-width: 767px) {
  .section--jobstyle {
    padding: 0 !important;
  }
  .character__cards {
    width: 29.9rem;
    height: 36.5rem;
  }
  .card-back img {
    max-width: 21rem;
    height: 26.7rem;
    width: 100%;
  }
  .card-back--left {
    left: -37%;
  }
  .character__btn {
    max-width: 24rem;
    width: 24rem;
    height: 5.6rem;
    padding: 1.6rem 3.15rem 1.6rem 3.85rem;
    gap: 1.6rem;
  }
  .character-cta__text {
    font-size: var(--font-size-h4-mo, 2.6rem);
  }
  .character-cta__icon {
    max-width: 2.4rem;
    height: 2.4rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .character__cards {
    width: 35rem;
    height: 44rem;
  }
  .card-back img {
    max-width: 25rem;
    height: 31.7rem;
    width: 100%;
  }
}

/* =========================================================
.section 02 .section--experience
========================================================= */
.section--experience {
  position: relative;
  padding: 0 4rem;
}
.section--experience__inner {
  background: url('/resources/front/images/common/bg_gradient-pc.jpg');
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
  padding-top: 14rem;
  text-align: center;
  color: var(--color-text-white, #fff);
  height: 80rem;
  overflow: hidden;
  border-radius: 8rem;
}

/* 헤더 영역 */
.section-head__title .underline {
  display: inline-block;
  position: relative;
}
.section-head__title .underline::after {
  content: '';
  background: url('/resources/front/images/common/text_underline.png') no-repeat center
    bottom / 100% auto;
  position: absolute;
  bottom: -0.4rem;
  left: 0;
  width: 100%;
  height: 3.3rem;
}
.section-head__desc .line {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: 6%;
  text-underline-offset: 0.4rem;
}

.experience-card {
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90rem;
  width: 100%;

  padding: 0 7rem;
}
/* 카드 리스트 레이아웃 (PC) */
.experience-list {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  list-style: none;
  margin: 0 auto;
}

.experience-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background: #fff;
  border-radius: 8rem;
  padding: 8rem 3.2rem 5.6rem 3.2rem;
  color: #333;
  box-shadow: 0 2rem 4rem 0 rgba(0, 0, 0, 0.1);
  flex: 1;
  opacity: 0;
}

.experience-item__img img {
  width: 20.4rem;
  height: 20.4rem;
  margin-bottom: 4.8rem;
}

.experience-item__info .empty {
  display: none;
}
.experience-item__info .title {
  display: block;
  font-family: var(--font-family-point);
  font-size: var(--font-size-h3-pc, 3rem);
  color: #150f96;
  margin-bottom: 1.2rem;
}

.experience-item__info .desc {
  color: var(--color-text-caption, #45556c);
  font-size: 2rem;
  letter-spacing: -0.3px;
}

/* 태블렛 */
@media (min-width: 768px) and (max-width: 1199px) {
  .section--experience__inner {
    height: 66rem;
  }

  .experience-card {
    padding: 0;
  }
  .experience-list {
    gap: 1.5rem;
    padding: 0 4rem; /* 양옆 여백 조절 */
  }

  .experience-item {
    padding: 3rem 1.5rem;
    height: 31.6rem;
  }

  .experience-item__img img {
    width: 13rem;
    height: 13rem;
    margin-bottom: 2rem;
  }
  .experience-item__info .title {
    font-size: 2.5rem;
  }

  .experience-item__info .empty {
    display: block;
  }
}

/* 모바일 */
@media screen and (max-width: 767px) {
  /* 로켓 — 우측 상단 */
  .obj--rocket {
    width: 15rem;
    top: 3rem;
    right: -7rem;
    animation: float-a 3.2s ease-in-out infinite;
  }

  /* 달력/손 — 좌측 하단 */
  .obj--hand {
    width: 12rem;
    bottom: 4rem;
    left: -4.5rem;
    animation: float-b 3.8s ease-in-out infinite 0.5s;
  }

  .section--experience {
    min-height: 55rem;
    height: auto;
    padding: 0 0.8rem;
  }
  .section--experience__inner {
    background-image: url('/resources/front/images/common/bg_gradient-mo.jpg');
    border-radius: 4rem;
    padding-top: 8rem;
    height: 52rem;
  }

  .section--experience .section-head {
    margin-bottom: 4rem;
  }
  .experience-card {
    padding: 0;
  }
  .experience-list {
    flex-direction: column; /* 세로 정렬 */
    padding: 0;
    align-items: center;
    padding-bottom: 0;
    width: 100%;
    gap: 0.8rem;
  }

  .experience-item {
    flex-direction: row;
    justify-content: flex-start;
    padding: 2rem;
    border-radius: 10rem;
    gap: 1.6rem;
    text-align: left;
    width: 89%;
  }

  .experience-item__img {
    flex: 0 0 8rem;
  }
  .experience-item__img img {
    width: 8rem;
    height: 8rem;
    margin-bottom: 0;
  }

  .experience-item__info .title {
    font-size: var(--font-size-h3-mo, 2rem);
    margin-bottom: 5px;
  }

  .experience-item__info .desc {
    font-size: 1.7rem;
    letter-spacing: -0.34px;
  }
}

/* =========================================================
.section 03 .section--process
========================================================= */
.section--process {
  padding-top: 8rem;
}
.process--timeline {
  position: relative;
  max-width: 122rem;
  margin: 0 auto;
}

/* 중앙 점선 */
.process--timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: 8px;
  background-image: radial-gradient(circle, #cad5e2 2px, transparent 2px);
  background-size: 8px 16px;
  background-repeat: repeat-y;
}

/* ── 각 행 ── */
.tl-row {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

/* ── 단계 버튼 (중앙) ── */
.tl-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2.5rem 13.1rem;
}
.tl-step:first-child {
  padding-top: 0;
}
.tl-step:last-child {
  padding-bottom: 0;
}
.tl-step__btn {
  font-family: var(--font-family-point);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
  border-radius: 10rem;
  font-size: var(--font-size-h3-pc, 3rem);
  white-space: nowrap;
  height: 8.8rem;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.4px;
  max-width: 40rem;
  width: 100%;
}
.tl-step__btn > span {
  position: relative;
  text-box-edge: cap alphabetic;
  text-box-trim: trim-both;
}
.tl-step__btn--navy {
  background: #150f96;
  color: #fff;
}
.tl-step__btn--teal {
  background: #19c5d8;
}
.tl-step__btn--navy-lg {
  background: #150f96;
  font-size: var(--font-size-h2-pc, 4rem);
  padding: 4.2rem 9.1rem;
  min-width: 52rem;
  height: 13.4rem;
}

/* ── 합격 뱃지 ── */
.tl-badge {
  text-align: center;
  padding: 1rem 0;
  z-index: 2;
  margin-bottom: 1.6rem;
}
.tl-badge__inner {
  display: inline-block;
  background: #fff;
  border-radius: 10rem;
  padding: 1.6rem 2.4rem;
  font-family: var(--font-family-point);
  font-size: var(--font-size-h4-pc, 2.6rem);
  color: var(--color-text-caption, #45556c);
  white-space: nowrap;
  margin-left: 4rem;
}

/* ── 도트 ── */
.tl-dot {
  text-align: center;
  padding: 0.8rem 0;
  z-index: 2;
}
.tl-dot__circle {
  display: inline-block;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: #150f96;
  outline: 6px solid #d4d1ff;
}

/* ── 카드 ── */
.tl-card {
  border-radius: 2.4rem;
  padding: 3.2rem;
  max-width: 50rem;
  width: 100%;
  background-color: #f0f5ff;
}

.tl-card__title {
  font-family: var(--font-family-point);
  font-size: 2rem;
  color: var(--color-text-state-selected, #150f96);
  margin-bottom: 0.8rem;
}
.tl-card__desc {
  font-size: var(--body-medium-pc, 1.8rem);
  color: var(--color-text-body, #1f2732);
  letter-spacing: -0.32px;
}

/* ── 카드 행 (PC: 좌우 배치) ── */
.tl-row--card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.6rem 0;
}
.tl-row--card .tl-side {
  flex: 1;
  display: flex;
}
.tl-row--card .tl-side--left {
  justify-content: flex-end;
  padding-right: 2.4rem;
  position: relative;
}
.tl-row--card .tl-side--left::after {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24' fill='none'%3E%3Cpath d='M-9.53674e-07 0V24L12 12L-9.53674e-07 0Z' fill='%23F0F5FF'/%3E%3C/svg%3E");
  width: 1.2rem;
  height: 2.4rem;
  background-repeat: no-repeat;
  aspect-ratio: 1/2;
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translate(-50%, -50%);
}
.tl-row--card .tl-side--right {
  justify-content: flex-start;
  position: relative;
  padding-left: 2.4rem;
}
.tl-row--card .tl-side--right::before {
  content: '';
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='24' viewBox='0 0 12 24' fill='none'%3E%3Cpath d='M12 0V24L0 12L12 0Z' fill='%23F0F5FF'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  width: 1.2rem;
  height: 2.4rem;
  aspect-ratio: 1/2;
  position: absolute;
  left: 1.8rem;
  top: 50%;
  transform: translate(-50%, -50%);
}
.tl-row--card .tl-side--empty {
  flex: 1;
  padding-left: 2.5rem;
}
.tl-dot-center {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
}

/* ── 캐릭터 이미지 영역 ── */
.tl-step.final-step {
  position: relative;
  padding-top: 5.6rem;
}
.tl-step.final-step::before {
  content: '';
  background: url('/resources/front/images/common/icon_celebrate.png') no-repeat 50%
    100% / contain;
  width: 15.1rem;
  height: 16.4rem;
  position: absolute;
  top: -2.5rem;
  left: 50%;
  transform: translateY(-50%);
}
.tl-step.final-step::after {
  content: '';
  background: url('/resources/front/images/common/icon_party.png') no-repeat 50% 100% /
    contain;
  width: 11rem;
  height: 11rem;
  position: absolute;
  top: -2.5rem;
  right: 25%;
  animation: float-c 3.2s ease-in-out infinite;
}

@keyframes float-c {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ────────────────────────────
   모바일 (768px 이하)
──────────────────────────── */
@media screen and (max-width: 767px) {
  .section--process {
    padding-top: 0;
  }
  /* 중앙 점선 */
  .process--timeline::before {
    width: 4px;
    background-image: radial-gradient(circle, #cad5e2 2px, transparent 2px);
    background-size: 4px 10px;
    background-repeat: repeat-y;
  }

  .tl-step {
    padding: 2.4rem 3rem;
  }
  /* 단계 버튼 */
  .tl-step__btn {
    width: 100%;
    max-width: 26rem;
    height: 6.4rem;
    padding: 0 6.1rem;
    font-size: var(--title-h3-mo, 2rem);
  }
  .tl-step__btn--navy-lg {
    font-size: 2.4rem;
    padding: 0 5.8rem 0 5.9rem;
    min-width: 32rem;
    width: 100%;
    height: 8rem;
  }

  /* 뱃지 */
  .tl-badge {
    margin-bottom: 0;
  }
  .tl-badge__inner {
    padding: 0.8rem 2rem;
    font-size: var(--font-size-h4-mo, 1.8rem);
    margin-left: 2rem;
  }

  /* 카드 행 → 세로 정렬 */
  .tl-row--card {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
  }
  .tl-row--card + .tl-row--card {
    margin-top: 2.4rem;
  }
  .tl-row--card .tl-side--left,
  .tl-row--card .tl-side--right {
    padding: 0;
    justify-content: center;
    width: 100%;
    margin-top: 2rem;
  }
  .tl-row--card .tl-side--right::before {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(90deg);
  }
  .tl-row--card .tl-side--left::after {
    top: -5px;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(-90deg);
  }

  .tl-row--card .tl-side--empty {
    display: none;
  }
  .tl-dot-center {
    width: 100%;
    justify-content: center;
    margin: 0.8rem 0;
  }

  .tl-card__title,
  .tl-card__desc {
    font-size: 1.6rem;
  }
  .tl-card__title {
    margin-bottom: 0.8rem;
  }

  /* 카드 순서: dot → card */
  .tl-row--card--left {
    flex-direction: column-reverse;
  }
  .tl-row--card--right {
    flex-direction: column;
  }

  .tl-card {
    padding: 2.4rem 2rem;
  }

  /* ── 도트 ── */
  .tl-dot__circle {
    width: 1rem;
    height: 1rem;
    outline: 4px solid #d4d1ff;
  }

  /* ── 캐릭터 이미지 영역 ── */
  .tl-step.final-step {
    position: relative;
    padding-top: 16rem;
  }
  .tl-step.final-step::before {
    width: 11.8rem;
    height: 12.8rem;
    left: 46%;
    top: 41%;
    z-index: -1;
    transform: translate(-50%, -50%);
  }
  .tl-step.final-step::after {
    width: 8.77rem;
    height: 8.77rem;
    top: 38%;
    right: 13%;
  }
}

/* ────────────────────────────
   태블릿
──────────────────────────── */
@media (min-width: 768px) and (max-width: 1199px) {
  .section--experience {
    padding: 0 2rem !important;
  }
}
