/* =========================================================
   Agripoli v0.42 — Programs & ecosystem page
   Premium trust hierarchy, responsive constellation and cards.
   ========================================================= */

.page-programs{
  background:
    radial-gradient(circle at 10% 8%,rgba(92,216,164,.09),transparent 24%),
    linear-gradient(180deg,#f9fcfa 0%,#fff 32%,#f6fbf8 100%);
}
.programs-hero{
  position:relative;
  overflow:hidden;
  padding:clamp(142px,13vw,178px) 0 clamp(72px,8vw,104px);
  background:
    radial-gradient(circle at 13% 12%,rgba(92,216,164,.19),transparent 29%),
    radial-gradient(circle at 88% 16%,rgba(255,231,158,.28),transparent 22%),
    linear-gradient(180deg,#fbfdfc 0%,#f0faf5 100%);
}
.programs-hero::before,
.programs-hero::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.programs-hero::before{width:360px;height:360px;right:-110px;top:36px;border:1px dashed rgba(47,185,128,.16);animation:programOrbit 24s linear infinite}
.programs-hero::after{width:230px;height:230px;left:-80px;bottom:-78px;background:radial-gradient(circle,rgba(47,185,128,.13),rgba(47,185,128,0) 70%)}
.programs-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(460px,.9fr);gap:54px;align-items:center;position:relative;z-index:2}
.programs-hero-copy{min-width:0}
.programs-hero-copy h1{max-width:12.5ch}
.programs-hero-copy h1 em{color:var(--brand-dark);font-style:normal}
.programs-hero-copy>p{max-width:65ch;margin:26px 0 0;color:var(--muted);font-size:17px;line-height:1.75}
.programs-proof{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:28px}
.programs-proof article{min-width:0;padding:17px 16px;border-radius:18px;border:1px solid rgba(47,185,128,.12);background:rgba(255,255,255,.82);box-shadow:0 12px 28px rgba(23,52,43,.055);backdrop-filter:blur(10px)}
.programs-proof strong{display:block;font-family:var(--display);font-size:24px;line-height:1;color:#17342b;margin-bottom:6px}
.programs-proof span{display:block;color:#6a7d75;font-size:12px;line-height:1.45}
.programs-hero-cta{margin-top:24px}

.programs-stage{position:relative;min-height:520px;display:grid;place-items:center}
.programs-stage::before{content:"";position:absolute;width:370px;height:370px;border-radius:50%;background:radial-gradient(circle,rgba(47,185,128,.16),rgba(47,185,128,.02) 48%,rgba(47,185,128,0) 72%);filter:blur(4px)}
.program-center{position:relative;z-index:3;width:176px;height:176px;border-radius:50%;display:grid;place-items:center;text-align:center;padding:18px;background:linear-gradient(145deg,#fff,#ebf9f2);border:1px solid rgba(47,185,128,.18);box-shadow:0 28px 64px rgba(23,52,43,.14),inset 0 1px 0 #fff}
.program-center::before{content:"";position:absolute;inset:11px;border-radius:50%;border:1px solid rgba(47,185,128,.10)}
.program-center strong{position:relative;z-index:1;display:block;font-family:var(--display);font-size:48px;line-height:.9;color:#17342b}
.program-center span{position:relative;z-index:1;display:block;margin-top:8px;color:#2a7657;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;line-height:1.35}
.program-float{position:absolute;z-index:2;width:174px;height:108px;display:grid;place-items:center;padding:17px;border-radius:22px;background:rgba(255,255,255,.94);border:1px solid rgba(47,185,128,.13);box-shadow:0 18px 40px rgba(23,52,43,.09);animation:programFloat 6.5s ease-in-out infinite}
.program-float img{width:100%;height:100%;object-fit:contain}
.program-float.f1{left:1%;top:3%;animation-delay:-.3s}.program-float.f2{right:1%;top:4%;animation-delay:-1.2s}.program-float.f3{left:-2%;top:39%;animation-delay:-2.1s}.program-float.f4{right:-2%;top:41%;animation-delay:-3s}.program-float.f5{left:9%;bottom:1%;animation-delay:-3.9s}.program-float.f6{right:8%;bottom:0;animation-delay:-4.8s}

.programs-main{padding:clamp(76px,8vw,108px) 0 92px}
.programs-section-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(260px,.7fr);gap:36px;align-items:end;margin-bottom:34px}
.programs-section-head h2{max-width:13ch}
.programs-section-head h2 em{color:var(--brand-dark);font-style:normal}
.programs-section-head p{margin:0;color:var(--muted);line-height:1.72}
.programs-feature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.program-card{
  --card-accent:#2fb980;
  position:relative;
  min-width:0;
  min-height:370px;
  display:flex;
  flex-direction:column;
  padding:16px;
  border-radius:28px;
  border:1px solid rgba(23,52,43,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,252,250,.98));
  color:var(--ink);
  text-decoration:none;
  box-shadow:0 16px 42px rgba(23,52,43,.065);
  overflow:hidden;
  transition:transform .35s cubic-bezier(.22,1,.36,1),box-shadow .35s ease,border-color .35s ease;
}
.program-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,var(--card-accent),rgba(143,228,192,.55));opacity:.75}
.program-card::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(112deg,transparent 30%,rgba(255,255,255,.84) 48%,transparent 64%);transform:translateX(-120%);transition:transform .8s ease}
.program-card:hover,.program-card:focus-visible{transform:translateY(-7px);border-color:rgba(47,185,128,.25);box-shadow:0 28px 62px rgba(23,52,43,.12),0 0 0 1px rgba(47,185,128,.06)}
.program-card:hover::after,.program-card:focus-visible::after{transform:translateX(120%)}
.program-card-logo{position:relative;z-index:1;height:142px;display:grid;place-items:center;padding:22px;border-radius:21px;background:#fff;border:1px solid rgba(23,52,43,.065);box-shadow:inset 0 1px 0 #fff,0 10px 24px rgba(23,52,43,.045)}
.program-card-logo img{width:100%;height:100%;object-fit:contain;filter:saturate(.96)}
.program-card-meta{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:17px 2px 0}
.program-card-number{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;padding:0 9px;border-radius:999px;background:rgba(47,185,128,.09);color:#268f64;font-size:10px;font-weight:800;letter-spacing:.08em}
.program-card-tag{min-width:0;color:#6d7f78;font-size:10px;font-weight:750;letter-spacing:.08em;text-transform:uppercase;text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.program-card h3{position:relative;z-index:1;margin:14px 2px 8px;font-size:21px;line-height:1.14;letter-spacing:-.025em}
.program-card p{position:relative;z-index:1;margin:0 2px;color:#60736b;font-size:13.5px;line-height:1.62}
.program-card-cta{position:relative;z-index:1;margin-top:auto;padding:18px 2px 2px;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#237e59;font-size:12px;font-weight:800}
.program-card-arrow{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:rgba(47,185,128,.09);border:1px solid rgba(47,185,128,.11);transition:transform .25s ease,background .25s ease}
.program-card:hover .program-card-arrow{transform:translate(2px,-2px);background:rgba(47,185,128,.16)}

.programs-secondary{padding:12px 0 96px}
.programs-secondary .programs-section-head{margin-bottom:28px}
.programs-all-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.program-card.compact{min-height:330px;border-radius:24px;padding:14px}
.program-card.compact .program-card-logo{height:120px;border-radius:18px;padding:19px}
.program-card.compact h3{font-size:19px}
.program-card.compact p{font-size:13px}

.programs-trust-band{padding:0 0 92px}
.programs-trust-box{display:grid;grid-template-columns:1fr auto;gap:28px;align-items:center;padding:34px;border-radius:30px;background:linear-gradient(135deg,#17342b,#22533f 62%,#2f8d65 150%);color:#fff;box-shadow:0 26px 58px rgba(23,52,43,.18)}
.programs-trust-box .eyebrow{color:#7be3b6}.programs-trust-box h2{margin-top:16px;max-width:18ch;color:#fff}.programs-trust-box h2 em{color:#7be3b6;font-style:normal}.programs-trust-box p{max-width:62ch;margin:16px 0 0;color:rgba(255,255,255,.78);line-height:1.7}
.programs-trust-action{display:flex;align-items:center;gap:12px;padding:16px 18px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);color:#fff;text-decoration:none;white-space:nowrap}
.programs-trust-action strong{font-size:14px}.programs-trust-action span{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:rgba(255,255,255,.12)}

@keyframes programFloat{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-8px) rotate(.4deg)}}
@keyframes programOrbit{from{transform:rotate(0)}to{transform:rotate(360deg)}}

@media (max-width:1180px) and (min-width:901px){
  .primary-nav{gap:14px!important}
  .primary-nav>a,.product-nav-trigger{font-size:12px!important}
  .header-inner{gap:18px!important}
  .header-cta{padding-inline:16px!important;font-size:12px!important}
  .programs-hero-grid{grid-template-columns:minmax(0,1fr) minmax(410px,.84fr);gap:38px}
}
@media (max-width:1040px){
  .programs-hero-grid{grid-template-columns:1fr;gap:38px}
  .programs-stage{min-height:470px;width:min(100%,680px);margin-inline:auto}
  .programs-feature-grid,.programs-all-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .programs-section-head{grid-template-columns:1fr;gap:14px}
  .programs-trust-box{grid-template-columns:1fr}.programs-trust-action{width:fit-content}
}
@media (max-width:760px){
  .programs-hero{padding:112px 0 66px}
  .programs-hero-copy h1{max-width:12ch;font-size:clamp(36px,10.8vw,50px);line-height:1.04}
  .programs-hero-copy>p{font-size:15px;line-height:1.68}
  .programs-proof{grid-template-columns:1fr 1fr}.programs-proof article:last-child{grid-column:1/-1}
  .programs-stage{min-height:unset;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-top:10px}
  .programs-stage::before{width:260px;height:260px;top:20px}
  .program-center{grid-column:1/-1;position:relative;width:150px;height:150px;margin:0 auto 4px}
  .program-center strong{font-size:42px}
  .program-float{position:relative!important;inset:auto!important;width:100%;height:92px;padding:14px;border-radius:18px;animation:none}
  .program-float.f5,.program-float.f6{display:none}
  .programs-main{padding:70px 0 74px}
  .programs-feature-grid,.programs-all-grid{grid-template-columns:1fr}
  .program-card,.program-card.compact{min-height:0;border-radius:23px;padding:13px}
  .program-card-logo,.program-card.compact .program-card-logo{height:118px;padding:18px;border-radius:18px}
  .program-card h3,.program-card.compact h3{font-size:19px}
  .program-card p,.program-card.compact p{font-size:13px;line-height:1.58}
  .programs-trust-box{padding:26px 20px;border-radius:24px}
  .programs-trust-action{width:100%;justify-content:space-between;white-space:normal}
}
@media (max-width:420px){
  .programs-hero-copy h1{font-size:clamp(31px,10.3vw,40px)}
  .programs-proof{grid-template-columns:1fr}.programs-proof article:last-child{grid-column:auto}
  .program-center{width:138px;height:138px}.program-center strong{font-size:38px}
  .program-float{height:82px;padding:12px}
  .programs-stage{gap:8px}
  .program-card-logo,.program-card.compact .program-card-logo{height:108px;padding:16px}
  .program-card-meta{margin-top:14px}
  .program-card h3,.program-card.compact h3{font-size:18px}
  .program-card p,.program-card.compact p{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){.programs-hero::before,.program-float{animation:none!important}.program-card{transition:none!important}}


/* =========================================================
   Agripoli v0.43 — Program logo containment & visual balance
   Prevents all logo spill while preserving original proportions.
   ========================================================= */
.program-card-logo,
.program-float{
  overflow:hidden !important;
  contain:paint;
  box-sizing:border-box;
  line-height:0;
}
.program-card-logo img,
.program-float img{
  display:block !important;
  width:auto !important;
  height:auto !important;
  max-width:84% !important;
  max-height:72% !important;
  margin:auto !important;
  object-fit:contain !important;
  object-position:center !important;
  flex:none !important;
  transform:none !important;
  filter:saturate(.96) !important;
}

/* Wide wordmarks receive a little more horizontal room, but remain clipped. */
.program-card-logo img[src*="futurelab"],
.program-card-logo img[src*="foodback"],
.program-card-logo img[src*="zero-waste-foundation"],
.program-card-logo img[src*="tusiad-donusumu-hizlandir"],
.program-card-logo img[src*="atlas-hub"],
.program-float img[src*="tusiad-donusumu-hizlandir"]{
  max-width:88% !important;
  max-height:60% !important;
}

/* Taller / stacked identities are kept optically centered. */
.program-card-logo img[src*="sustainable-growth"],
.program-card-logo img[src*="gcip"],
.program-card-logo img[src*="smartnet"],
.program-card-logo img[src*="btm"],
.program-card-logo img[src*="kadin-girisimci-mentorluk"],
.program-float img[src*="sustainable-growth"],
.program-float img[src*="gcip"],
.program-float img[src*="btm"]{
  max-width:76% !important;
  max-height:78% !important;
}

/* Hero constellation cards use a safer optical inset. */
.program-float img{
  max-width:80% !important;
  max-height:68% !important;
}
.program-float img[src*="sucool"],
.program-float img[src*="climaccelerator"]{
  max-width:82% !important;
  max-height:70% !important;
}

@media (max-width:760px){
  .program-card-logo,
  .program-card.compact .program-card-logo{
    padding:16px !important;
  }
  .program-card-logo img{
    max-width:80% !important;
    max-height:68% !important;
  }
  .program-card-logo img[src*="futurelab"],
  .program-card-logo img[src*="foodback"],
  .program-card-logo img[src*="zero-waste-foundation"],
  .program-card-logo img[src*="tusiad-donusumu-hizlandir"],
  .program-card-logo img[src*="atlas-hub"]{
    max-width:84% !important;
    max-height:56% !important;
  }
  .program-float{
    overflow:hidden !important;
    padding:12px !important;
  }
  .program-float img{
    max-width:76% !important;
    max-height:64% !important;
  }
}

@media (max-width:420px){
  .program-card-logo,
  .program-card.compact .program-card-logo{
    height:104px !important;
    padding:14px !important;
  }
  .program-card-logo img{
    max-width:78% !important;
    max-height:66% !important;
  }
  .program-float img{
    max-width:74% !important;
    max-height:62% !important;
  }
}
