/* ===================== 공통 버튼 ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  padding: 16px 26px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: #fff;
  transition: transform 0.2s ease, filter 0.15s, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.05);
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--orange { background: var(--orange); }
.btn--green { background: var(--green); }
.btn--sm { padding: 12px 20px; font-size: 18px; border-radius: 12px; }
.btn__arrow {
  display: inline-flex;
  width: 20px;
  height: auto;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--sm .btn__arrow { width: 16px; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn__arrow { transition: none; }
}

/* ===================== 히어로 ===================== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeLeft {
  from { opacity: 0; transform: translateX(-36px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes heroPop {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes heroBubbleSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes heroHeartBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  15% { transform: translateY(-8px) scale(1.18); }
  30% { transform: translateY(0) scale(0.96); }
  45% { transform: translateY(-5px) scale(1.1); }
  60% { transform: translateY(0) scale(1); }
  100% { transform: translateY(0) scale(1); }
}

.hero {
  position: relative;
  padding: 156px 20px 60px;
  overflow-x: hidden;
}

/* 헤더 아래 콘텐츠 영역의 둥근 상단 (Figma "bg box") */
.rud-box-top {
  position: relative;
  z-index: 10;
}
.rud-box-top__cap {
  position: absolute;
  left: 0;
  right: 0;
  top: -115px;
  width: 100%;
  height: 200px;
  z-index: 1;
  pointer-events: none;
}
.hero__bgtxt {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-weight: 900;
  color: #fff;
  opacity: 0.55;
  letter-spacing: -6px;
  line-height: 1;
}
.hero__bgtxt span { position: absolute; white-space: nowrap; font-size: clamp(70px, 8vw, 150px); }
.hero__bgtxt-1 { top: 30px; left: 6%; }
.hero__bgtxt-2 { top: 190px; left: 26%; }
.hero__bgtxt-3 { top: 190px; right: 8%; }

.hero__piggy {
  position: absolute;
  top: 109px;
  right: 3%;
  width: clamp(120px, 12vw, 220px);
  z-index: 2;
  will-change: transform;
  animation:
    heroPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.45s both,
    heroFloat 3.4s ease-in-out 1.2s infinite;
}
.hero__hearts {
  position: absolute;
  top: 150px;
  left: 10%;
  width: 60px;
  opacity: 0.8;
  z-index: 2;
  animation: heroFadeUp 0.6s ease 0.3s both, heroFloat 3.5s ease-in-out 1.1s infinite;
}

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 20px;
}
.hero__left {
  display: flex;
  justify-content: center;
  overflow: hidden;
  height: 600px;
}
.hero__couple {
  width: 100%;
  max-width: 620px;
  height: 100%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto;
  animation: heroFadeLeft 0.8s ease 0.15s both;
}

.hero__right { padding-left: 20px; }
.hero__bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 12px 30px 20px 40px;
  margin-bottom: 26px;
  will-change: transform;
  animation: heroBubbleSoft 3.2s ease-in-out infinite;
}
.hero__bubble-bg {
  position: absolute;
  top: -6px;
  left: -10px;
  right: -10px;
  bottom: -14px;
  z-index: 0;
  pointer-events: none;
}
.hero__bubble-text {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.2px;
  white-space: nowrap;
  padding-right: 10px;
}
.hero__bubble-heart {
  width: 26px;
  height: 26px;
  display: inline-block;
  transform-origin: center bottom;
  animation: heroHeartBounce 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.7s infinite;
}
.hero__headline {
  font-size: clamp(38px, 4.2vw, 62px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.28;
  margin-bottom: 22px;
  animation: heroFadeUp 0.7s ease 0.1s both;
}
.hero__sub {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1.4px;
  margin-bottom: 34px;
  animation: heroFadeUp 0.7s ease 0.22s both;
}
.hero__sub b { color: var(--green); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; animation: heroFadeUp 0.7s ease 0.34s both; }

@media (prefers-reduced-motion: reduce) {
  .hero__bubble, .hero__headline, .hero__sub, .hero__cta,
  .hero__couple, .hero__piggy, .hero__hearts,
  .hero__bubble-heart {
    animation: none;
  }
}

/* ===================== 지원사업 소개 + 은행 ===================== */
.intro {
  background: #fff;
  padding: 30px 20px 20px;
}
.intro__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  z-index: 99;
  position: relative;
}
.intro__head { display: flex; align-items: center; gap: 18px; }
.intro__bulb { width: 76px; height: 76px; }
.intro__title { display: flex; flex-direction: column; letter-spacing: -3px; line-height: 1.15; }
.intro__title-sm { font-size: 38px; font-weight: 700; color: var(--gray); }
.intro__title-lg { font-size: 58px; font-weight: 800; color: var(--ink); }

.bankcard {
  position: relative;
  z-index: 2;
  flex: 1 1 720px;
  max-width: 760px;
  margin-top: -180px;
  padding: 30px 40px 46px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.bankcard__bg {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  z-index: 0;
  pointer-events: none;
}
.bankcard__left { position: relative; z-index: 1; max-width: 430px; }
.badge {
  display: inline-block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.9px;
  padding: 6px 20px;
  border-radius: 40px;
}
.badge--outline-blue { color: var(--blue); border: 2px solid var(--blue); background: #fff; }
.bankcard__nhlogo { height: 42px; width: auto; margin: 18px 0 12px; }
.bankcard__title { font-size: 30px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 12px; }
.bankcard__desc { font-size: 16px; color: var(--gray); letter-spacing: -0.8px; line-height: 1.6; }
.bankcard__chars {
  position: relative;
  z-index: 1;
  width: 300px;
  max-width: 42%;
  align-self: flex-start;
  margin-top: 6px;
  object-fit: contain;
}
.bankcard__cta {
  position: absolute;
  z-index: 1;
  right: 80px;
  bottom: 42px;
  width: 210px;
  height: 55px;
  padding: 0;
  gap: 14px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
  border-radius: 13px;
  padding-left: 20px;
}
.bankcard__cta .btn__arrow { width: 20px; }

/* ===================== 4개 정보 카드 ===================== */
.infocards { background: #fff; padding: 40px 20px; }
.infocards__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.icard {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.09);
  padding: 34px 24px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.icard__pill {
  display: inline-block;
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1.3px;
  padding: 10px 30px;
  border-radius: 50px;
  margin-bottom: 26px;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.icard__pill--green { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.icard__pill--blue { background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.icard__pill--darkgreen { background: var(--green-dark); box-shadow: 0 0 0 2px var(--green-dark); }
.icard__pill--orange { background: var(--orange); box-shadow: 0 0 0 2px var(--orange); }
.icard__main {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.4;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
}
.icard__main:has(+ .icard__hl) { margin-bottom: 8px; }
.icard__main--big { font-size: 30px; }
.icard__main--sm { font-size: 20px; font-weight: 400; }
.icard__hl {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--orange);
  margin: 0 0 auto;
  text-align: center;
}
.icard__foot {
  margin-top: 26px;
  width: 100%;
  border-radius: 10px;
  padding: 16px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  letter-spacing: -0.8px;
  line-height: 1.35;
  text-align: center;
}
.icard__foot--green { background: var(--tint-green); }
.icard__foot--blue { background: var(--tint-blue); }
.icard__foot--orange { background: var(--tint-orange); }
.icard__ficon { width: 30px; height: 30px; object-fit: contain; flex-shrink: 0; }

/* ===================== 섹션 헤더 (공통) ===================== */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
}
.section-head__title { display: flex; align-items: center; gap: 16px; }
.section-head__icon { width: 74px; height: 74px; object-fit: contain; }
.section-head__icon--sm { width: 60px; height: 60px; }
.section-head__title h3 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2.8px;
}
.morebtn {
  border: 1px solid var(--line);
  color: var(--gray2);
  background: #fff;
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -1px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.morebtn:hover {
  background: #f6f8fa;
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ===================== 꼭 확인하세요 ===================== */
.check {
  background: #f7f9fb;
  padding: 70px 20px;
}
.check__inner { max-width: var(--maxw); margin: 0 auto; }
.check__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.ccard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.05);
  padding: 30px 34px;
}
.ccard--orange { background: #fefcf7; border-color: var(--orange-border); }
.ccard--blue { background: #f8fbfe; border-color: var(--blue); }
.ccard--green { background: #f8fbf8; border-color: var(--green); }
.ccard__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ccard__icon { width: 54px; height: 54px; object-fit: contain; }
.ccard__head h4 { font-size: 28px; font-weight: 900; letter-spacing: -1.4px;  word-break: keep-all; }
.ccard ul { display: flex; flex-direction: column; gap: 6px; }
.ccard li {
  position: relative;
  padding-left: 18px;
  font-size: 17px;
  letter-spacing: -0.85px;
  line-height: 1.55;
  color: var(--ink);
  word-break: keep-all;
}
.ccard li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555;
}

/* ===================== 모집 안내문 + FAQ ===================== */
.notice { background: #fff; padding: 70px 20px 90px; }
.notice__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.notice__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ncard {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.14);
  padding: 54px 26px 30px;
  min-height: 390px;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease, color 0.3s ease;
}
.ncard:hover {
  background: linear-gradient(155deg, #50df84 0%, #0cb14b 26%, #0cb14b 80%, #44c974 100%);
  color: #fff;
}
.ncard__tags {
  position: absolute;
  top: 0;
  left: 22px;
  display: flex;
  gap: 6px;
}
.tag {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.9px;
  padding: 6px 14px;
  border-radius: 0 0 10px 10px;
}
.tag--orange { background: var(--orange); }
.tag--darkgreen { background: var(--green-dark); }
.ncard h4 { font-size: 20px; font-weight: 800; letter-spacing: -1px; line-height: 1.6; margin-bottom: 14px; }
.ncard__q { min-height: 64px; }
.ncard hr { border: none; border-top: 1px solid rgba(0, 0, 0, 0.12); margin-bottom: 16px; transition: border-color 0.3s ease; }
.ncard:hover hr { border-top-color: rgba(255, 255, 255, 0.4); }
.ncard p {
  font-size: 16px;
  letter-spacing: -0.8px;
  line-height: 1.65;
  color: var(--ink);
  transition: color 0.3s ease;
}
.ncard:hover p { color: #fff; }
.ncard__date { margin-top: auto; padding-top: 14px; font-size: 16px; color: var(--gray); transition: color 0.3s ease; }
.ncard:hover .ncard__date { color: rgba(255, 255, 255, 0.85); }

/* ===================== 반응형 (메인 콘텐츠) ===================== */
@media (max-width: 1280px) {
  .hero { padding-top: 230px; }
  .hero__couple { width: 98%; }
  .rud-box-top__cap { top: -90px; height: 160px; }
  .infocards__inner { grid-template-columns: repeat(2, 1fr); }
  .check__grid { grid-template-columns: 1fr; }
  .notice__inner { grid-template-columns: 1fr; gap: 50px; }
  .intro__inner { justify-content: center; }
  .intro__head { gap: 16px; }
  .intro__bulb { width: 68px; height: 68px; }
  .intro__title-sm { font-size: 34px; }
  .intro__title-lg { font-size: 50px; }
  .bankcard__nhlogo { height: 36px; }
  .icard__pill { font-size: 24px; padding: 9px 26px; }
  .bankcard { margin-top: 0; }
  .section-head__title h3 { font-size: 42px; }
}

@media (max-width: 1024px) {
  .rud-box-top { margin-top: -138px; }
  .hero__inner { grid-template-columns: 1fr; gap: 12px; min-height: 0; }
  .hero__left { order: 2; height: auto; }
  .hero__couple { height: auto; }
  .hero__right { padding-left: 0; text-align: center; }
  .hero__cta { justify-content: center; }
  .hero__cta .btn { flex: 1 1 200px; justify-content: center; }
  .hero__bubble-text { font-size: clamp(16px, 3.2vw, 24px); }
  .hero__bubble { padding: 10px 22px 16px 30px; }
  .bankcard { padding: 26px 26px 36px; }
  .bankcard__chars { max-width: 34%; }
  .bankcard__cta { right: 50px; bottom: 34px; }
}

@media (max-width: 768px) {
  .hero__piggy { width: 110px; top: 100px;}
  .rud-box-top__cap { top: -70px; height: 130px; }
  .intro__head { gap: 14px; }
  .intro__bulb { width: 60px; height: 60px; }
  .intro__title-lg { font-size: 46px; margin-top: 10px;}
  .intro__title-sm { font-size: 32px; }
  .bankcard__bg { display: none; }
  .bankcard {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
  }
  .bankcard__left { max-width: none; display: flex; flex-direction: column; align-items: center; }
  .bankcard__nhlogo { height: 32px; }
  .bankcard__chars { max-width: 220px; align-self: center; }
  .bankcard__cta { position: static; display: inline-flex; margin: 16px auto 0; }
  .infocards__inner { grid-template-columns: 1fr; }
  .icard__pill { font-size: 22px; padding: 8px 22px; }
  .notice__cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-head__title h3 { font-size: 34px; }
}

@media (max-width: 480px) {
  .hero { padding-top: 190px; }
  .hero__headline { font-size: 32px; }
  .hero__sub { font-size: 22px; }
  .btn { font-size: 18px; padding: 13px 20px; }
  .rud-box-top__cap { top: -50px; height: 100px; }
  .hero__bubble-bg { display: none; }
  .hero__bubble {
    max-width: 100%;
    background: #fff;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
    padding: 10px 18px;
  }
  .hero__bubble-text { white-space: normal; text-align: left; font-size: 14px; }
  .hero__bubble-heart { width: 16px; height: 16px; }
  .intro__head { flex-direction: column; align-items: center; gap: 10px; }
  .intro__title { align-items: center; text-align: center; }
  .intro__bulb { width: 50px; height: 50px; }
  .intro__title-sm { font-size: 26px; }
  .intro__title-lg { font-size: 38px; margin-top: 4px; }
  .bankcard__nhlogo { height: 28px; margin: 14px 0 10px; }
  .icard { padding: 26px 18px 20px; }
  .icard__pill { font-size: 20px; padding: 8px 20px; }
}

@media (max-width: 360px) {
  .hero { padding: 170px 14px 40px; }
  .hero__headline { font-size: 26px; }
  .hero__bubble-text { font-size: 13px; }
  .btn { font-size: 16px; padding: 12px 16px; }
  .rud-box-top__cap { top: -40px; height: 80px; }
  .intro__bulb { width: 44px; height: 44px; }
  .intro__title-sm { font-size: 23px; }
  .intro__title-lg { font-size: 32px; }
  .bankcard__nhlogo { height: 24px; }
  .icard__pill { font-size: 18px; padding: 7px 18px; }
  .section-head__title h3 { font-size: 26px; }
}

/* ===================== 메인 팝업 모달 ===================== */
.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.popup[hidden] { display: none; }
.popup__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.popup__box {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  animation: popupIn 0.3s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.popup__bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 12px;
}
.popup__today {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.8px;
  cursor: pointer;
  user-select: none;
}
.popup__today input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}
.popup__close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
.popup__close:hover { background: rgba(255, 255, 255, 0.3); }

.popup__swiper { width: 100%; overflow: hidden; }
/* 데스크톱: 두 이미지를 나란히 표시 (Swiper 비활성) */
.popup__swiper .swiper-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}
.popup__swiper .swiper-slide {
  display: flex;
  justify-content: center;
  width: auto;
  flex: 0 1 auto;
}
.popup__link { display: block; }
.popup__link img {
  display: block;
  width: auto;
  max-height: 80vh;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.popup__pagination { display: none; }

body.popup-open { overflow: hidden; }

/* 반응형: Swiper 슬라이더로 한 장씩 스와이프 */
@media (max-width: 768px) {
  .popup { padding: 16px; }
  .popup__box {
    width: calc(100vw - 32px);
    max-width: 400px;
    min-width: 0;
    margin: 0 auto;
  }
  .popup__swiper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .popup__swiper .swiper-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
  }
  .popup__swiper .swiper-slide {
    width: 100%;
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .popup__link { display: block; width: 100%; }
  .popup__link img {
    width: 100%;
    height: auto;
    max-height: 74vh;
    object-fit: contain;
  }
  .popup__pagination {
    display: block;
    position: static;
    margin-top: 14px;
    text-align: center;
  }
  .popup__pagination .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 9px;
    height: 9px;
  }
  .popup__pagination .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--green);
  }
}
