/* Brand helpers */
:root { --teal:#118c6b; --ink:#2b3b67; }
body { font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; }
.text-teal{ color:var(--teal); }
.text-ems{ color:var(--ink); }

/* Page sections */
.profile-block + .profile-block { margin-top: 2rem; }

/* ===== Carousel core ===== */
.profile-carousel { position: relative; }
.slide-viewport {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(23,27,55,.12);
  background: #fff;
}
.carousel-track{
  display:flex;
  width:100%;
  transform: translate3d(calc(-100% * var(--idx, 0)), 0, 0);
  transition: transform .45s ease;
  will-change: transform;
}
.carousel-slide{ flex:0 0 100%; max-width:100%; }
.slide-inner{
  position: relative;
  padding: clamp(12px, 2vw, 20px);
  background: #fff;
  min-height: clamp(300px, 48vw, 640px);
  display:flex; align-items:center; justify-content:center;
}
.slide-inner img{
  width:100%; height:100%;
  object-fit: contain;               /* image stays INSIDE the frame */
  display:block;
}

/* Controls */
.carousel-btn{
  position:absolute; top:50%; transform:translateY(-50%);
  width:40px; height:40px; border-radius:999px; border:0;
  display:grid; place-items:center;
  color:#fff; background:var(--teal);
  box-shadow:0 8px 24px rgba(17,140,107,.25);
  cursor:pointer;
}
.carousel-btn.prev{ left:10px; }
.carousel-btn.next{ right:10px; }
.carousel-btn:hover{ background:#0f7459; }

/* Back to Home pill */
.back-home-btn{
  background:linear-gradient(180deg, #3f67ff 0%, #0b2fcf 100%);
  color:#fff !important;
  border:0;
  border-radius:999px;
  padding:.55rem 1.2rem;
  box-shadow:0 12px 26px rgba(0,30,140,.28);
  transition:transform .35s cubic-bezier(.23,1,.32,1), box-shadow .35s cubic-bezier(.23,1,.32,1), filter .35s cubic-bezier(.23,1,.32,1);
  font-weight:600;
}
.back-home-btn:hover,
.back-home-btn:focus-visible{
  color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 16px 32px rgba(0,30,140,.38);
  filter:brightness(1.05);
}

/* Dots */
.carousel-dots{
  display:flex; justify-content:center; gap:8px;
  padding:12px 0 6px;
}
.carousel-dots .dot{
  width:9px; height:9px; border-radius:999px; border:0;
  background:#d6e7e2; cursor:pointer;
}
.carousel-dots .dot.active{ background:var(--teal); }

/* Download CTA */
.btn-gradient{
  color:#fff; border:0; border-radius:999px;
  background:linear-gradient(180deg,#6fb1ff,#7dd3a7);
  box-shadow:0 10px 20px rgba(109,164,255,.25), inset 0 3px 8px rgba(255,255,255,.35);
}
.btn-gradient:hover{ color:#fff; opacity:.95; }
