/* Our Model → Entrepreneurship Development (approved design, v1.3) */

/* Shared: things marked [data-anim] animate in when scrolled into view (.is-in) */
.js [data-anim] [style*="--d"] { transition-delay: var(--d, 0s); }

/* Photo slideshow (cross-fade) */
[data-fade-slider] { position: relative; overflow: hidden; }
[data-fade-slider] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
[data-fade-slider] > img.is-active { opacity: 1; animation: pfKen 9s ease-out both; }
@keyframes pfKen { from { transform: scale(1.06); } to { transform: scale(1); } }
.fade-dots { position: absolute; right: 22px; bottom: 18px; display: flex; gap: 8px; z-index: 3; }
.fade-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); padding: 0; cursor: pointer; transition: width .3s, background .3s; }
.fade-dots button.is-active { width: 26px; border-radius: 6px; background: #fff; }

/* =================================================================
   DESIGN 3
   ================================================================= */
.ent3-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.ent3-stats > div { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px 28px; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; }
.ent3-stats.is-in > div { opacity: 1; transform: none; }
.ent3-stats strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 4px; }
.ent3-stats span { font-size: 15px; line-height: 1.5; opacity: .85; }

.ent3-build { margin-top: 96px; }
.ent3-head { max-width: 760px; margin: 0 0 54px; }
.ent3-head h2 { font-family: var(--serif); font-size: 38px; font-weight: 500; color: #111; margin-bottom: 12px; }
.ent3-head p { font-size: 17px; line-height: 1.6; color: #555; margin: 0; }
.ent3-flow { position: relative; }
.ent3-rail { position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 40px; height: 2px; background: #E6E6E6; }
.ent3-rail i { position: absolute; inset: 0; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); transition: transform 2s cubic-bezier(.65,0,.35,1) .1s; }
.ent3-flow.is-in .ent3-rail i { transform: scaleX(1); }
.ent3-flow ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 18px; }
.ent3-step { opacity: 0; transform: translateY(18px); transition: opacity .55s, transform .55s; transition-delay: var(--d); }
.ent3-flow.is-in .ent3-step { opacity: 1; transform: none; }
.ent3-step__icon { position: relative; display: grid; place-items: center; width: 80px; height: 80px; margin: 0 auto 22px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); z-index: 1; box-shadow: 0 0 0 8px #fff; }
.ent3-step__icon svg, .ent3-step__icon img { width: 38px; height: 38px; object-fit: contain; }
.ent3-step__icon b { position: absolute; top: -6px; right: -8px; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: var(--red); color: #fff; font: 600 12px/30px var(--sans); }
.ent3-step__card { background: var(--pink); border-top: 3px solid var(--red); border-radius: 12px; padding: 22px 20px 20px; height: calc(100% - 102px); transition: transform .3s, box-shadow .3s; }
.ent3-step:hover .ent3-step__card { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(190,30,36,.14); }
.ent3-step h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--navy); margin: 0 0 6px; text-align: center; }
.ent3-step__headline { font-size: 14.5px; line-height: 1.45; color: var(--red); text-align: center; margin: 0 0 16px; min-height: 42px; }
.ent3-step ul { list-style: none; margin: 0; padding: 0; }
.ent3-step li { position: relative; padding: 9px 0 9px 18px; font-size: 14.5px; line-height: 1.45; color: #222; border-top: 1px dashed rgba(190,30,36,.25); }
.ent3-step li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }

/* Micro-equity — text / photo split */
.me3 { margin-top: 100px; }
.me3-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: stretch; }
.me3-text h2 { font-family: var(--serif); font-size: 40px; line-height: 1.15; font-weight: 500; margin: 6px 0 10px; }
.me3-tagline { font-family: var(--serif); font-size: 20px; color: var(--red); margin: 0 0 26px; }
.me3-callout { border-radius: 12px; padding: 20px 24px; color: #fff; margin-bottom: 14px; opacity: 0; transform: translateX(-16px); transition: opacity .6s, transform .6s; }
.me3-text.is-in .me3-callout { opacity: 1; transform: none; }
.me3-text.is-in .me3-callout--answer { transition-delay: .2s; }
.me3-callout--problem { background: #E8604C; }
.me3-callout--answer { background: var(--navy); }
.me3-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .85; margin: 0 0 6px; }
.me3-callout p:not(.me3-label) { font-size: 16.5px; line-height: 1.55; margin: 0; }
.me3-media { min-height: 520px; border-radius: 18px; background: var(--navy); }
.me3-badge { position: absolute; left: 22px; bottom: 22px; z-index: 2; background: #fff; border-radius: 14px; padding: 14px 20px; display: flex; align-items: center; gap: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.me3-badge strong { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--red); font-weight: 500; }
.me3-badge span { font-size: 13px; line-height: 1.35; color: #333; }
.me3-copy { max-width: 900px; margin: 46px 0 0; }
.me3-copy p { font-size: 17px; line-height: 1.7; }

/* How it works — vertical red timeline, steps alternate sides */
.me3-how { margin-top: 70px; }
.me3-how h3 { font-family: var(--serif); font-size: 32px; font-weight: 500; text-align: center; margin: 0 0 40px; }
.me3-timeline { position: relative; max-width: 960px; margin: 0 auto; }
.me3-rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #E6E6E6; }
.me3-rail i { position: absolute; inset: 0; background: var(--red); transform-origin: 50% 0; transform: scaleY(0); transition: transform 2.4s cubic-bezier(.65,0,.35,1) .1s; }
.me3-how.is-in .me3-rail i { transform: scaleY(1); }
.me3-timeline ol { list-style: none; margin: 0; padding: 0; }
.me3-timeline li { position: relative; width: 50%; padding: 0 56px 34px 0; opacity: 0; transform: translateX(-18px); transition: opacity .55s, transform .55s; transition-delay: var(--d); }
.me3-timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 34px 56px; transform: translateX(18px); }
.me3-how.is-in .me3-timeline li { opacity: 1; transform: none; }
.me3-dot { position: absolute; right: -9px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(190,30,36,.3); }
.me3-timeline li:nth-child(even) .me3-dot { right: auto; left: -9px; }
.me3-step { background: #fff; border: 1px solid #EEDAD5; border-radius: 14px; padding: 22px 26px; box-shadow: 0 6px 20px rgba(0,0,0,.05); text-align: right; }
.me3-timeline li:nth-child(even) .me3-step { text-align: left; }
.me3-n { display: block; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--red); margin-bottom: 6px; }
.me3-step strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.me3-step p { font-size: 15px; line-height: 1.55; color: #444; margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1200px) {
  .ent3-flow ol { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .ent3-rail { display: none; }
}
@media (max-width: 760px) {
  .ent3-flow ol { grid-template-columns: 1fr; }
  .ent3-step__card { height: auto; }
  .ent3-step__headline { min-height: 0; }
  .me3-grid { grid-template-columns: 1fr; gap: 30px; }
  .me3-text h2 { font-size: 30px; }
  .me3-media { min-height: 300px; }
  .me3-rail { left: 9px; }
  .me3-timeline li, .me3-timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 26px 40px; transform: translateY(14px); }
  .me3-dot, .me3-timeline li:nth-child(even) .me3-dot { left: 0; right: auto; }
  .me3-step, .me3-timeline li:nth-child(even) .me3-step { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  [data-anim] *, [data-fade-slider] > img { transition: none !important; animation: none !important; }
}

/* v1.3: icon-system icons for the five steps */
.ent3-rail { top: 56px; }
.ent3-step__icon { width: 120px; height: 120px; margin-bottom: 18px; border: 1px solid #F2A792; background: #FCE7DD; box-shadow: 0 0 0 8px #fff; }
.ent3-step:nth-child(3n+2) .ent3-step__icon { background: #EAF4FA; border-color: #8FD0E4; }
.ent3-step:nth-child(3n+3) .ent3-step__icon { background: #EBF1EA; border-color: #C3DDCB; }
.ent3-step__icon img, .ent3-step__icon svg { width: 76px; height: 76px; object-fit: contain; }
.ent3-step__icon b { top: 2px; right: -2px; }
.ent3-rail { top: 60px; }
.ent3-step__card { height: calc(100% - 138px); }
.ent3-step__card { height: calc(100% - 130px); }
.impact-stories--tab { margin-top: 90px; padding-top: 70px; border-top: 1px solid #E4E4E4; }
.impact-stories--tab .events__head { margin-bottom: 30px; }
@media (max-width: 760px) { .ent3-step__card { height: auto; } .impact-stories--tab { margin-top: 56px; padding-top: 44px; } }
