/* Han An Hua v81 — visual additions only.
   Existing layout, forms, navigation, CMS, and application logic are untouched. */

/* ============================================================
   HERO — participant illustration supplied by the site owner
   ============================================================ */
.hero-students-visual{
  position:absolute;
  left:27%;
  bottom:-2px;
  z-index:7;
  width:clamp(340px,35vw,670px);
  margin:0;
  pointer-events:none;
  user-select:none;
  opacity:0;
  animation:hanHeroStudentsEnter .9s .72s cubic-bezier(.18,.82,.22,1) forwards;
  filter:drop-shadow(0 18px 18px rgba(17,17,17,.08));
}
.hero-students-visual img{
  display:block;
  width:100%;
  height:auto;
  transform-origin:50% 100%;
  animation:hanHeroStudentsFloat 5.8s 1.8s ease-in-out infinite;
}

@keyframes hanHeroStudentsEnter{
  from{opacity:0;transform:translateY(34px) scale(.96)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes hanHeroStudentsFloat{
  0%,100%{transform:translate3d(0,0,0) rotate(-.15deg)}
  50%{transform:translate3d(0,-7px,0) rotate(.15deg)}
}

/* Keep the supplied illustration balanced when the existing hero stacks. */
@media(max-width:980px){
  .hero-students-visual{
    position:relative;
    left:auto;
    bottom:auto;
    width:min(78vw,640px);
    margin:-92px auto -36px;
    z-index:8;
  }
}
@media(max-width:620px){
  .hero-students-visual{
    width:min(96%,560px);
    margin:-48px auto -24px;
  }
}

/* ============================================================
   JOURNEY — Indonesia preparation illustration + country labels
   ============================================================ */
.journey-location-title{
  width:min(100%,1660px);
  margin:clamp(10px,1.5vw,22px) auto 10px;
  font-family:"DM Sans",system-ui,sans-serif;
  font-size:clamp(20px,1.8vw,30px);
  line-height:1.15;
  font-weight:700;
  color:var(--ink,#111);
}
.journey-location-taiwan{
  margin-top:clamp(4px,.8vw,12px);
  margin-bottom:clamp(14px,1.8vw,24px);
}

.journey-prep-visual{
  position:relative;
  width:min(100%,1660px);
  margin:0 auto clamp(14px,1.8vw,24px);
  isolation:isolate;
}
.journey-prep-stage{
  position:relative;
  width:100%;
}
.journey-prep-stage::before,
.journey-prep-stage::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:999px;
  pointer-events:none;
  filter:blur(1px);
  opacity:.34;
}
.journey-prep-stage::before{
  width:24%;
  aspect-ratio:1;
  left:4%;
  top:24%;
  background:rgba(255,205,30,.34);
  animation:hanJourneyGlow 6.4s ease-in-out infinite;
}
.journey-prep-stage::after{
  width:19%;
  aspect-ratio:1;
  right:7%;
  top:18%;
  background:rgba(37,196,214,.16);
  animation:hanJourneyGlow 6.4s 1.1s ease-in-out infinite reverse;
}
.journey-prep-art{
  position:relative;
  z-index:1;
  display:block;
  width:100%;
  height:auto;
  filter:drop-shadow(0 14px 16px rgba(17,17,17,.08));
  transform-origin:50% 100%;
}
.journey-prep-visual.is-visible .journey-prep-art{
  animation:hanJourneyArtIn .82s cubic-bezier(.18,.84,.25,1) both,
            hanJourneyArtFloat 6.8s 1.1s ease-in-out infinite;
}

/* Localized overlays cover the English captions baked into the illustration.
   The icons, numbers and artwork remain unchanged. */
.journey-prep-caption{
  position:absolute;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:center;
  height:12.8%;
  min-height:0;
  padding:.34em .55em;
  box-sizing:border-box;
  border-radius:10px;
  background:#fff;
  color:#0d275f;
  font-family:"DM Sans",system-ui,sans-serif;
  font-size:clamp(10px,1.02vw,18px);
  line-height:1.12;
  font-weight:900;
  text-align:center;
  letter-spacing:-.025em;
  opacity:0;
  transform:translateY(8px) scale(.97);
  box-shadow:0 1px 0 rgba(13,39,95,.05);
}
.journey-prep-caption-1{left:7.0%;top:72.0%;width:16.9%;}
.journey-prep-caption-2{left:31.4%;top:73.0%;width:14.7%;}
.journey-prep-caption-3{left:54.8%;top:73.0%;width:15.0%;}
.journey-prep-caption-4{left:79.5%;top:72.7%;width:17.1%;}

.journey-prep-visual.is-visible .journey-prep-caption{
  animation:hanJourneyCaptionIn .48s cubic-bezier(.2,.9,.25,1.18) both;
}
.journey-prep-visual.is-visible .journey-prep-caption-1{animation-delay:.32s}
.journey-prep-visual.is-visible .journey-prep-caption-2{animation-delay:.41s}
.journey-prep-visual.is-visible .journey-prep-caption-3{animation-delay:.50s}
.journey-prep-visual.is-visible .journey-prep-caption-4{animation-delay:.59s}

@keyframes hanJourneyArtIn{
  from{opacity:0;transform:translateY(28px) scale(.985)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes hanJourneyArtFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-4px)}
}
@keyframes hanJourneyCaptionIn{
  from{opacity:0;transform:translateY(8px) scale(.97)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes hanJourneyGlow{
  0%,100%{transform:scale(.96);opacity:.24}
  50%{transform:scale(1.06);opacity:.42}
}

/* Long translated labels need slightly more room on medium screens. */
@media(max-width:1100px){
  .journey-prep-visual{width:100%;}
  .journey-prep-caption{
    font-size:clamp(8px,1.15vw,13px);
    border-radius:8px;
    padding:.2em .32em;
  }
}

@media(max-width:700px){
  .journey-location-title{
    font-size:20px;
    margin-top:18px;
  }
  .journey-prep-visual{
    margin-top:4px;
  }
  .journey-prep-caption{
    font-size:clamp(6.5px,1.78vw,9.5px);
    line-height:1.06;
    border-radius:5px;
    padding:.08em .16em;
  }
}

/* Arabic labels benefit from a touch more line height. */
html[lang="ar"] .journey-prep-caption{
  line-height:1.18;
  letter-spacing:0;
}

@media(prefers-reduced-motion:reduce){
  .hero-students-visual,
  .hero-students-visual img,
  .journey-prep-stage::before,
  .journey-prep-stage::after,
  .journey-prep-art,
  .journey-prep-caption{
    animation:none!important;
    transition:none!important;
  }
  .hero-students-visual,
  .journey-prep-caption{
    opacity:1!important;
    transform:none!important;
  }
}

/* V82: tighten only the Journey heading-to-illustration rhythm. */
.journey > .section-heading{margin-bottom:clamp(28px,4vw,54px);}
@media(max-width:820px){
  .journey > .section-heading{margin-bottom:30px;}
  .journey-location-title{margin-bottom:4px;}
}

/* ============================================================
   V84 — Journey artwork cleanup and true responsive sizing
   The supplied artwork already contains its own labels, so no
   extra translated text is placed over the image.
   ============================================================ */
.journey-prep-visual{
  width:100% !important;
  max-width:none !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.journey-prep-stage{
  width:100% !important;
  max-width:none !important;
}
.journey-prep-art{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:auto !important;
  object-fit:contain !important;
  object-position:center !important;
}
/* Defensive: if an older cached HTML still contains the V81 caption spans,
   hide them so the text can never overlap the artwork. */
.journey-prep-caption{
  display:none !important;
}

/* Keep the artwork visually aligned with the photo row below on every width. */
@media (min-width:1181px){
  .journey-prep-visual{
    width:100% !important;
  }
}
@media (max-width:1180px){
  .journey-prep-visual{
    width:100% !important;
  }
}
@media (max-width:820px){
  .journey-prep-visual{
    width:100% !important;
    margin-bottom:18px !important;
  }
  .journey-prep-art{
    width:100% !important;
  }
}
