/**
 * EasyPathUni — Animations & Motion (v5.1.0)
 * Global animation helpers and enhanced component animations.
 */

/* ── Scroll Reveal ────────────────────────────────────────────── */
.epu-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,1,.36,1), transform .55s cubic-bezier(.22,1,.36,1);
}
.epu-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.epu-reveal[data-delay="1"] { transition-delay: .1s; }
.epu-reveal[data-delay="2"] { transition-delay: .2s; }
.epu-reveal[data-delay="3"] { transition-delay: .3s; }
.epu-reveal[data-delay="4"] { transition-delay: .4s; }
.epu-reveal[data-delay="5"] { transition-delay: .5s; }

/* ── Animated Gradient Hero ───────────────────────────────────── */
@keyframes epu-grad-shift {
  0%   { background-position: 0% 50%;   }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%;   }
}
.epu-hero__section {
  background: linear-gradient(135deg, #0a1628 0%, #0f1f3d 40%, #1a3a5c 70%, #0f1f3d 100%);
  background-size: 300% 300%;
  animation: epu-grad-shift 12s ease infinite;
}

/* ── Floating Accreditation Badge ─────────────────────────────── */
@keyframes epu-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}
.epu-hero__accred-float,
.epu-hero__badge {
  animation: epu-float 4s ease-in-out infinite;
}
.epu-hero__stats-bar .epu-hero__stat:nth-child(2) .epu-hero__stat-icon { animation-delay: .8s; }
.epu-hero__stats-bar .epu-hero__stat:nth-child(3) .epu-hero__stat-icon { animation-delay: 1.6s; }

/* ── Card Hover Glow ──────────────────────────────────────────── */
.epu-course-card:hover,
.epu-cp__card:hover,
.epu-why__card:hover,
.epu-accred__card:hover {
  box-shadow: 0 8px 32px rgba(201,146,42,.25), 0 2px 8px rgba(0,0,0,.12);
  transform: translateY(-3px);
  transition: box-shadow .3s ease, transform .3s ease;
}

/* ── Pulse Badge ──────────────────────────────────────────────── */
@keyframes epu-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,146,42,.4); }
  70%      { box-shadow: 0 0 0 8px rgba(201,146,42,0); }
}
.epu-hero__accred-badge,
.epu-instr__cred-badge {
  animation: epu-pulse 2.2s ease-out infinite;
}

/* ── Skeleton Loading ─────────────────────────────────────────── */
@keyframes epu-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0;  }
}
.epu-skeleton {
  background: linear-gradient(90deg, #e8edf2 25%, #f5f7fa 50%, #e8edf2 75%);
  background-size: 800px 100%;
  animation: epu-shimmer 1.4s linear infinite;
  border-radius: 6px;
}

/* ── Stagger Reveal Helpers ───────────────────────────────────── */
.epu-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: epu-stagger-in .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes epu-stagger-in {
  to { opacity: 1; transform: translateY(0); }
}
.epu-stagger > *:nth-child(1) { animation-delay: .05s; }
.epu-stagger > *:nth-child(2) { animation-delay: .15s; }
.epu-stagger > *:nth-child(3) { animation-delay: .25s; }
.epu-stagger > *:nth-child(4) { animation-delay: .35s; }
.epu-stagger > *:nth-child(5) { animation-delay: .45s; }
.epu-stagger > *:nth-child(6) { animation-delay: .55s; }

/* ── Counter Animation ────────────────────────────────────────── */
.epu-counter {
  display: inline-block;
  transition: all .3s ease;
}

/* ── Career Paths Cards ───────────────────────────────────────── */
.epu-career-paths {
  padding: 72px 20px;
}
.epu-cp__head {
  text-align: center;
  margin-bottom: 48px;
}
.epu-cp__label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #c9922a;
  margin-bottom: 8px;
}
.epu-cp__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: #0f1f3d;
  margin-bottom: 12px;
}
.epu-cp__subtitle {
  font-size: 1rem;
  color: #4a5568;
  max-width: 620px;
  margin: 0 auto;
}
.epu-cp__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.epu-cp__card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease;
}
.epu-cp__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(var(--cp-color-rgb,26,58,92),.2);
}
.epu-cp__card-head {
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}
.epu-cp__icon { font-size: 2rem; flex-shrink: 0; }
.epu-cp__card-title { font-size: 1.1rem; font-weight: 700; margin: 0; color: #fff; }
.epu-cp__card-sub   { font-size: .8rem; opacity: .85; margin: 4px 0 0; color: #fff; }
.epu-cp__card-body  { padding: 18px 20px 22px; flex: 1; display: flex; flex-direction: column; gap: 14px; }
.epu-cp__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.epu-cp__duration { font-size: .8rem; color: #4a5568; }
.epu-cp__level {
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; padding: 2px 8px; border-radius: 20px;
}
.epu-cp__steps { padding-left: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.epu-cp__step { display: flex; align-items: flex-start; gap: 10px; }
.epu-cp__step-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .72rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.epu-cp__step-text { font-size: .85rem; color: #374151; line-height: 1.4; }
.epu-cp__cta {
  display: block; text-align: center; padding: 11px 20px; border-radius: 8px;
  color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none;
  margin-top: auto;
  transition: opacity .2s;
}
.epu-cp__cta:hover { opacity: .88; color: #fff; }

/* ── Countdown Banner ─────────────────────────────────────────── */
.epu-countdown {
  padding: 20px 24px;
  border-radius: 12px;
}
.epu-cd__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.epu-cd__text { display: flex; align-items: center; gap: 14px; }
.epu-cd__icon { font-size: 2rem; }
.epu-cd__heading { display: block; font-size: 1rem; font-weight: 700; }
.epu-cd__sub     { display: block; font-size: .8rem; opacity: .8; }
.epu-cd__timer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.epu-cd__unit { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.epu-cd__num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  min-width: 2.2ch;
  text-align: center;
}
.epu-cd__lbl  { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.epu-cd__sep  { font-size: 1.8rem; font-weight: 900; opacity: .6; margin-bottom: 14px; }
.epu-cd__cta {
  padding: 12px 28px; border-radius: 8px;
  color: #fff; font-size: .95rem; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.epu-cd__cta:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.epu-cd__expired {
  text-align: center;
  font-size: .9rem;
  opacity: .8;
  padding: 8px 0 0;
}
@media (max-width: 640px) {
  .epu-cd__inner { flex-direction: column; text-align: center; }
  .epu-cd__text  { flex-direction: column; }
}

/* ── Enhanced Instructor (v5.1) ───────────────────────────────── */
.epu-instr__cred-badge {
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}
.epu-instr__video-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.15);
  color: #fff;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 10px;
  transition: background .2s;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.epu-instr__video-btn:hover { background: rgba(255,255,255,.25); color: #fff; }
.epu-instr__play-ico {
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: #c9922a;
  border-radius: 50%;
}
.epu-instr__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.epu-instr__tag {
  font-size: .78rem;
  color: #1a3a5c;
  background: #eef2f8;
  border: 1px solid #d0d9e8;
  border-radius: 20px;
  padding: 3px 11px;
}
.epu-instr__btn--cv {
  background: transparent;
  border: 2px solid #c9922a;
  color: #c9922a;
  border-radius: 8px;
  padding: 9px 18px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.epu-instr__btn--cv:hover {
  background: #c9922a;
  color: #fff;
}
.epu-instr__socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.epu-instr__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #eef2f8;
  color: #1a3a5c;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.epu-instr__social:hover { background: #1a3a5c; color: #fff; }

/* ── Scroll observer JS init ──────────────────────────────────── */
/* IntersectionObserver is wired in home.js — .epu-reveal will animate on scroll */
