/* 03 · Khám phá từ mục tiêu — 1680 × 850 (Figma 4019:3130) */
.goals { background: #fff; padding: 80px 0; height: 850px; }
.goals .container { display: flex; flex-direction: column; gap: 40px; }

.goals__list { display: flex; gap: 16px; align-items: flex-start; height: 616px; padding-top: 16px; }

.goal-card {
  position: relative; flex: 0 0 348px; height: 480px; overflow: hidden; border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column; gap: 24px; cursor: pointer;
  background: linear-gradient(to top, rgba(250, 249, 241, 0) 10%, #fff8d1 99.945%);
  /* padding/gap cũng transition để chữ không nhảy khi đổi thẻ */
  transition: height .8s var(--ease-out-expo), padding .8s var(--ease-out-expo), gap .8s var(--ease-out-expo), box-shadow .6s var(--ease-out-expo);
}
.goal-card::before { /* lớp nền vàng khi mở — fade bằng opacity để mượt */
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: linear-gradient(to bottom, #fef5a4, #fef9d3);
  transition: opacity .6s var(--ease-out-expo);
}
.goal-card.is-active { height: 600px; padding: 32px 24px; gap: 32px; box-shadow: 0 30px 60px -36px rgba(160, 130, 0, .45); }
.goal-card.is-active::before { opacity: 1; }
.goal-card > * { position: relative; z-index: 1; }

.goal-card__head { display: flex; flex-direction: column; gap: 24px; }
.goal-card h3 { font-size: 24px; line-height: 1.17; font-weight: 700; color: var(--c-primary); }
.goal-card p { font-size: 16px; line-height: 1.5; letter-spacing: -0.32px; color: var(--c-text-muted); }

/* Nền ảnh đồi chè + điện thoại — hiện ở thẻ đang mở */
.goal-card__bg { position: absolute !important; left: -488px; top: 160px; width: 2424px; height: 1028px; z-index: 0 !important; opacity: 0; transition: opacity .6s; }
.goal-card__bg img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.goal-card__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(-4.075deg, rgba(254, 245, 166, 0) 70.831%, #fef5a6 83.168%); }
.goal-card.is-active .goal-card__bg { opacity: 1; }

/* Chips dịch vụ nhanh */
.goal-card__chips { display: flex; flex-wrap: wrap; gap: 4px; opacity: 0; translate: 0 10px; transition: opacity .5s, translate .6s var(--ease-out-expo); }
.goal-card.is-active .goal-card__chips { opacity: 1; translate: 0 0; transition-delay: .2s; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 8px 16px 8px 8px;
  background: #fff; border-radius: 999px; font-weight: 500; font-size: 14px; color: #666; white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
/* Hover theo Figma (biến thể Variant2): nền #ffde26, chữ + icon xanh #004ec5 */
.chip:hover, .chip:focus-visible { background: #ffde26; color: var(--c-primary); }
.chip__icon img { transition: opacity .25s ease; }
.chip__icon .is-hover { opacity: 0; }
.chip:hover .chip__icon .is-hover, .chip:focus-visible .chip__icon .is-hover { opacity: 1; }
.chip:hover .chip__icon img:not(.is-hover), .chip:focus-visible .chip__icon img:not(.is-hover) { opacity: 0; }
.chip__icon { position: relative; width: 24px; height: 24px; }
.chip__icon img { position: absolute; max-width: none; }
.ic-transfer { left: 3.25px; top: 2.25px; width: 16.5px; height: 19.5px; }
.ic-account { left: 2.25px; top: 2.77px; width: 19.5px; height: 18.75px; }
.ic-intl { left: 1.11px; top: 0; width: 21.89px; height: 23.89px; }

/* Nhân vật: cắt từ 1 ảnh sprite 4 người, neo đáy để theo thẻ khi mở rộng */
.goal-card__person {
  position: absolute !important; overflow: hidden; transform-origin: 50% 100%;
  transition: transform .8s var(--ease-out-expo), scale .8s var(--ease-out-expo),
    left .8s var(--ease-out-expo), bottom .8s var(--ease-out-expo), width .8s var(--ease-out-expo), height .8s var(--ease-out-expo);
}
/* Thẻ 1 khi đóng: thu nhỏ nhân vật để không đè lên tiêu đề */
.goal-card--1:not(.is-active) .goal-card__person { scale: .84; }
.goal-card__person img { position: absolute; top: 0; height: 100%; max-width: none; }
.goal-card__person--1 { left: 34px; bottom: -28px; width: 248px; height: 448px; }
.goal-card__person--1 img { left: -0.12%; width: 426.05%; }
.goal-card__person--2 { left: 44px; bottom: -11px; width: 281px; height: 418px; }
.goal-card__person--2 img { left: -82.49%; width: 351.03%; }
.goal-card__person--3 { left: 74px; bottom: 0; width: 221px; height: 392px; }
.goal-card__person--3 img { left: -217.98%; width: 419.29%; }
.goal-card__person--4 { left: 67px; bottom: -13px; width: 233px; height: 401px; }
.goal-card__person--4 img { left: -308.19%; width: 406.39%; }
/* Vị trí nhân vật khi thẻ mở (Figma 4134:18052) */
.goal-card--2.is-active .goal-card__person--2 { left: 34px; bottom: 2px; width: 281px; height: 418px; }
.goal-card--3.is-active .goal-card__person--3 { left: 67px; bottom: 0; width: 230px; height: 408px; }
.goal-card--4.is-active .goal-card__person--4 { left: 54px; bottom: 0; width: 241px; height: 415px; }
.goal-card:hover .goal-card__person { transform: scale(1.03); }
