/* AgroNegev 2.7.27 — approved September refinement.
   Copy, card colors and the two decorative graphics are stored natively in
   Elementor by the explicit Tools migration. This layer owns only geometry. */

/* --------------------------------------------------------------------------
   Home story cards — compact graphics, centered copy, restrained geometry.
   The ecosystem video below is intentionally left exactly as approved.
   -------------------------------------------------------------------------- */
body:is(.home,.agro-home-route) .elementor .elementor-element-a723a001>
:is(.elementor-element-a723a002,.elementor-element-a723a003).ag2727-story-card-approved{
  --padding-top:32px;
  --padding-bottom:32px;
  min-height:430px!important;
  padding:32px clamp(28px,3.2vw,46px)!important;
  padding-block:32px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:10px!important;
  text-align:center!important;
  border:1px solid rgba(56,104,0,.24)!important;
  border-radius:22px!important;
  box-shadow:0 12px 32px rgba(19,51,17,.09)!important;
}
body:is(.home,.agro-home-route) .elementor .elementor-element-a723a001>
:is(.elementor-element-a723a002,.elementor-element-a723a003).ag2727-story-card-approved:before{
  inset-inline-start:auto!important;
  left:50%!important;
  width:62px!important;
  height:3px!important;
  transform:translateX(-50%)!important;
  opacity:.72!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved>
:is(.elementor-widget-heading,.elementor-widget-text-editor,.ag2727-story-graphic){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  text-align:center!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .elementor-heading-title,
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .elementor-widget-text-editor,
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .elementor-widget-text-editor *{
  text-align:center!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .ag2723-story-title .elementor-heading-title{
  font-size:clamp(31px,2.7vw,42px)!important;
  line-height:1.12!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .ag2723-story-copy,
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .ag2723-story-copy *{
  font-size:clamp(18px,1.25vw,20px)!important;
  line-height:1.55!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved .ag2723-story-address .elementor-heading-title{
  text-align:center!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-graphic{
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:76px!important;
  margin:2px 0 0!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-story-graphic>.elementor-widget-container{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-western-graphic img{
  width:min(128px,30%)!important;
  max-width:128px!important;
  height:auto!important;
  object-fit:contain!important;
}
body:is(.home,.agro-home-route) .elementor .ag2727-ecosystem-graphic img{
  width:88px!important;
  max-width:88px!important;
  height:88px!important;
  object-fit:contain!important;
}

/* --------------------------------------------------------------------------
   Home map — reduce the desktop visual by another ~10%, keeping labels and
   hit targets untouched. The information card stretches to the same height.
   -------------------------------------------------------------------------- */
@media(min-width:761px){
  body.agro-home-route .elementor #home-vision-impact .ag260-map-stage{
    aspect-ratio:11 / 9!important;
  }
  body.agro-home-route .elementor #home-vision-impact .ag260-map-info{
    height:auto!important;
    min-height:0!important;
    align-self:stretch!important;
  }
}

/* --------------------------------------------------------------------------
   Growth Engines — use every pixel of the film box. The approved bottom focal
   point remains, while cover removes the narrow side gutters left by contain.
   -------------------------------------------------------------------------- */
body.home .elementor .engine-film,
body.agro-home-route .elementor .engine-film{
  padding:0!important;
}
body.home .elementor .engine-film .ag-engine-video video,
body.agro-home-route .elementor .engine-film .ag-engine-video video{
  width:100%!important;
  height:100%!important;
  min-width:100%!important;
  min-height:100%!important;
  object-fit:cover!important;
  object-position:center bottom!important;
}

/* Home counters — halve only the number-to-title distance. */
body.home .elementor .stats-strip .stat-counter .elementor-counter,
body.agro-home-route .elementor .stats-strip .stat-counter .elementor-counter,
body.home .elementor .ag2722-stats-aligned .ag2722-counter .elementor-counter,
body.agro-home-route .elementor .ag2722-stats-aligned .ag2722-counter .elementor-counter{
  row-gap:14px!important;
}

/* --------------------------------------------------------------------------
   Internal sections — removing an eyebrow must also release its grid column.
   The visible title/copy now sit against the actual right edge of the content.
   -------------------------------------------------------------------------- */
body .elementor :is(#implementation-areas,#data-successes,#innovation-projects) .agro-success-head{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:none!important;
  gap:0!important;
  direction:rtl!important;
  text-align:right!important;
}
body .elementor :is(#implementation-areas,#data-successes,#innovation-projects) .agro-success-head>
:is(.agro-success-title,.elementor-widget-text-editor){
  width:min(100%,720px)!important;
  max-width:720px!important;
  margin-left:auto!important;
  margin-right:0!important;
  grid-area:auto!important;
  grid-column:auto!important;
  align-self:auto!important;
  text-align:right!important;
}
body .elementor :is(#implementation-areas,#data-successes,#innovation-projects,#community-center)
.agro-success-head :is(.elementor-heading-title,.elementor-widget-text-editor,.elementor-widget-text-editor *,p){
  text-align:right!important;
}
@media(min-width:1025px){
  body .elementor #community-center.agro2714-seed-editable .agro-shell>.e-con-inner,
  body .elementor #community-center.agro-community-center-upgraded .agro-shell>.e-con-inner{
    direction:rtl!important;
  }
  body .elementor #community-center .agro-success-head{
    direction:rtl!important;
    text-align:right!important;
  }
}

@media(max-width:760px){
  body:is(.home,.agro-home-route) .elementor .elementor-element-a723a001>
  :is(.elementor-element-a723a002,.elementor-element-a723a003).ag2727-story-card-approved{
    --padding-top:28px;
    --padding-bottom:28px;
    min-height:0!important;
    padding:28px 22px!important;
    padding-block:28px!important;
    gap:9px!important;
  }
  body:is(.home,.agro-home-route) .elementor .ag2727-western-graphic img{
    width:112px!important;
    max-width:112px!important;
  }
  body:is(.home,.agro-home-route) .elementor .ag2727-ecosystem-graphic img{
    width:78px!important;
    max-width:78px!important;
    height:78px!important;
  }
  body.home .elementor .stats-strip .stat-counter .elementor-counter,
  body.agro-home-route .elementor .stats-strip .stat-counter .elementor-counter,
  body.home .elementor .ag2722-stats-aligned .ag2722-counter .elementor-counter,
  body.agro-home-route .elementor .ag2722-stats-aligned .ag2722-counter .elementor-counter{
    row-gap:8px!important;
  }
  body .elementor :is(#implementation-areas,#data-successes,#innovation-projects) .agro-success-head>
  :is(.agro-success-title,.elementor-widget-text-editor){
    width:100%!important;
    max-width:none!important;
  }
}

@media(prefers-reduced-motion:reduce){
  body:is(.home,.agro-home-route) .elementor .ag2727-story-card-approved{
    transition:none!important;
  }
}
