/* ==========================================================================
   a2_plani_cta_image-banner (원본 그대로 — 이미지 경로만 테마 경로로 치환)
   풀블리드 이미지 배너 + 좌측 텍스트, 우측 CTA 버튼 2개
   ========================================================================== */

.wd-cta {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 203px 0;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-sans, 'Pretendard', sans-serif);
}

.wd-cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #191919;
  overflow: hidden;
}

/* 3장 crossfade 슬라이드 — 총 12s 사이클, 각 슬라이드 4s 주기로 전환, 1s crossfade */
.wd-cta__slide {
  position: absolute;
  inset: 0;
  background-position: 60% center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  animation: wd-cta-slide 12s infinite;
  will-change: opacity;
}

.wd-cta__slide--1 {
  background-image: url("../images/cta/cta-banner-bg-1.webp");
  animation-delay: 0s;
}
.wd-cta__slide--2 {
  background-image: url("../images/cta/cta-banner-bg-2.webp");
  animation-delay: 4s;
}
.wd-cta__slide--3 {
  background-image: url("../images/cta/cta-banner-bg-3.webp");
  animation-delay: 8s;
}

@keyframes wd-cta-slide {
  0%,   100% { opacity: 0; }   /* 대기 */
  8.33%      { opacity: 1; }   /* 1s 에 fade-in 완료 */
  33.33%     { opacity: 1; }   /* 4s 까지 표시 유지 */
  41.67%     { opacity: 0; }   /* 5s 에 fade-out 완료 */
}

@media (prefers-reduced-motion: reduce) {
  .wd-cta__slide { animation: none; }
  .wd-cta__slide--1 { opacity: 1; }
}

.wd-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 24, 0.55) 0%, rgba(10, 14, 24, 0.2) 60%, rgba(10, 14, 24, 0) 100%);
}

.wd-cta__inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.wd-cta__text {
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wd-cta__title {
  font-size: 44px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.88px;
}

.wd-cta__desc {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.18px;
}

.wd-cta__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.wd-cta__btn {
  min-width: 200px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.16px;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  text-decoration: none;
}

.wd-cta__btn--primary {
  background: #2459E5;
  color: #ffffff;
}

.wd-cta__btn--primary:hover,
.wd-cta__btn--primary:focus-visible {
  background: #1A45C0;
}

.wd-cta__btn--white {
  background: #ffffff;
  color: #1D2530;
}

.wd-cta__btn--white:hover,
.wd-cta__btn--white:focus-visible {
  background: #f6f6f6;
}

.wd-cta__btn-arrow {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.wd-cta__btn--white:hover .wd-cta__btn-arrow {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .wd-cta {
    padding: 120px 0;
  }

  .wd-cta__inner {
    flex-wrap: wrap;
    gap: 32px;
  }

  .wd-cta__text,
  .wd-cta__actions {
    width: 100%;
  }

  .wd-cta__title {
    font-size: 35px;
  }

  .wd-cta__title br {
    display: none;
  }

  .wd-cta__btn {
    min-width: auto;
    flex: 1;
  }
}

@media (max-width: 480px) {
  .wd-cta {
    padding: 80px 0;
  }

  .wd-cta__slide {
    background-position: 72% center;
  }

  .wd-cta__title {
    font-size: 24px;
  }

  .wd-cta__desc {
    font-size: 15px;
  }

  .wd-cta__desc br {
    display: none;
  }

  .wd-cta__btn {
    height: 56px;
    font-size: 15px;
  }
}
