/* Scoped to the existing AgroNegev design. No content mutations or hidden overflow on body. */
@media (max-width:1024px) {
  /* Include .e-con specificity: the original desktop .card.e-con wins over its mobile .card rule. */
  body.agro-aio-active.agmr-active .elementor .ag271-footer-card.e-con,
  body.agro-aio-active.agmr-active .elementor .ag271-footer-card > .e-con-inner {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:28px!important;
    width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
    box-sizing:border-box!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-card > .e-con-inner {
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.ag271-footer-copy,.ag271-footer-form-wrap).e-con {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-bottom.e-con {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
    justify-items:center!important;
    text-align:center!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-nav.e-con {
    width:100%!important;
    grid-column:1!important;
    grid-row:auto!important;
    flex-wrap:wrap!important;
    justify-content:center!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-copyline,
  body.agro-aio-active.agmr-active .elementor .ag271-footer-copyline p {
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    text-align:center!important;
    justify-self:center!important;
  }
}

@media (max-width:767px) {
  /* Let flex/grid children shrink to their container; retain slider tracks and decorative artwork. */
  body.agro-aio-active.agmr-active .elementor :is(.e-con,.e-con-inner,.elementor-widget-heading,.elementor-widget-text-editor) {
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.hero,.vision,.agx-page,.agro-data-v5,.ag2723-home-story-motion,.tsv-home-faq,.ag-human-section,.ag2731-services-section,.ag271-footer) :is(.elementor-widget-heading,.elementor-widget-text-editor) {
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.hero,.vision,.agx-page,.agro-data-v5,.ag2723-home-story-motion,.tsv-home-faq,.ag-human-section,.ag2731-services-section,.ag271-footer) .elementor-heading-title {
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    hyphens:none!important;
    letter-spacing:normal!important;
    text-wrap:balance;
  }
  body.agro-aio-active.agmr-active .elementor .hero h1.elementor-heading-title,
  body.agro-aio-active.agmr-active .elementor .hero-main-title .elementor-heading-title {
    font-size:clamp(38px,10.8vw,56px)!important;
    line-height:1.12!important;
    max-width:100%!important;
    margin-inline:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .hero h1.elementor-heading-title span {
    font-size:inherit!important;
    line-height:inherit!important;
    margin-inline:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .hero-copy {
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    max-height:none!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.vision-grid,.agro-section-heading,.agro-success-head,.agx-map-panel,.agro-quote-inner),
  body.agro-aio-active.agmr-active .elementor :is(.vision-grid,.agro-section-heading,.agro-success-head,.agx-map-panel,.agro-quote-inner) > .e-con-inner {
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    max-width:100%!important;
    gap:24px!important;
  }
  body.agro-aio-active.agmr-active .elementor .agro-section-heading.e-con,
  body.agro-aio-active.agmr-active .elementor .agro-success-head.e-con {
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.agro-heading-copy,.agro-section-title,.agro-section-copy,.agro-success-title,.agro-success-copy,.agro-quote-copy,.vision-copy) {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:auto!important;
    max-height:none!important;
  }
  body.agro-aio-active.agmr-active .elementor .vision-grid h2.elementor-heading-title,
  body.agro-aio-active.agmr-active .elementor :is(.agx-section-title,.agro-section-title,.agro-success-title,.tsv-faq-strip-title,.ag2731-home-story-heading,.ag-human-title) .elementor-heading-title {
    font-size:clamp(30px,8.7vw,42px)!important;
    line-height:1.18!important;
    max-width:100%!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.agro-hero-title,.agx-about-title) .elementor-heading-title {
    font-size:clamp(40px,11vw,60px)!important;
    line-height:1.12!important;
    max-width:100%!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(.hero-intro,.vision-copy,.agro-section-copy,.agro-hero-copy,.agro-quote-text,.agro-success-copy,.agx-about-lead,.agx-map-copy-text,.engine-chapter-copy,.ag271-footer-lead),
  body.agro-aio-active.agmr-active .elementor :is(.hero-intro,.vision-copy,.agro-section-copy,.agro-hero-copy,.agro-quote-text,.agro-success-copy,.agx-about-lead,.agx-map-copy-text,.engine-chapter-copy,.ag271-footer-lead) :is(p,span) {
    font-size:17px!important;
    line-height:1.65!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }
  /* Story cards grow with their text instead of clipping it. */
  body.agro-aio-active.agmr-active:is(.home,.agro-home-route) .elementor .elementor-element-a723a001 > :is(.elementor-element-a723a002,.elementor-element-a723a003).ag2727-story-card-approved {
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:26px 20px!important;
    gap:14px!important;
    aspect-ratio:auto!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2723-story-grid,
  body.agro-aio-active.agmr-active .elementor .ag2723-story-grid > .e-con-inner {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2727-story-card-approved .ag2723-story-title .elementor-heading-title {
    font-size:clamp(25px,7vw,32px)!important;
    line-height:1.22!important;
    height:auto!important;
    min-height:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2727-story-card-approved .ag2723-story-copy,
  body.agro-aio-active.agmr-active .elementor .ag2727-story-card-approved .ag2723-story-copy * {
    font-size:17px!important;
    line-height:1.65!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(#innovation-projects,#community-center,.agro-community-courses,.agro-success,.ag2735-implementation-grid) .agro-case-grid,
  body.agro-aio-active.agmr-active .elementor .ag2735-implementation-grid,
  body.agro-aio-active.agmr-active .elementor .ag2735-implementation-grid > .e-con-inner {
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2735-implementation-grid .ag2735-implementation-card {
    height:auto!important;
    min-height:360px!important;
    max-height:none!important;
    padding:26px 20px!important;
    aspect-ratio:auto!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(#innovation-projects,#community-center,.agro-community-courses,.agro-success) .agro-case {
    height:auto!important;
    max-height:none!important;
    aspect-ratio:auto!important;
  }
  body.agro-aio-active.agmr-active .elementor #community-center .agro-case {
    min-height:300px!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(#innovation-projects,#community-center,.agro-community-courses,.agro-success,.ag2735-implementation-grid) :is(.agro-case-title,.agro-case-copy) {
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
  }
  body.agro-aio-active.agmr-active .elementor :is(#innovation-projects,#community-center,.agro-community-courses,.agro-success,.ag2735-implementation-grid) .agro-case-title .elementor-heading-title {
    font-size:clamp(24px,6.8vw,30px)!important;
    line-height:1.24!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2731-services-section .ecosystem-intro .elementor-heading-title {
    font-size:clamp(36px,10vw,48px)!important;
    line-height:1.15!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2731-services-section .engine-chapter :is(h2,h3).elementor-heading-title {
    font-size:clamp(28px,8vw,38px)!important;
    line-height:1.2!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag2731-services-section .engine-chapter {
    height:auto!important;
    max-height:none!important;
    padding:28px 18px!important;
  }
  /* Keep form controls and all contact copy in a single readable column. */
  body.agro-aio-active.agmr-active .elementor .ag271-footer.e-con {
    padding:24px 16px 18px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-card.e-con {
    padding:26px 20px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-title .elementor-heading-title {
    font-size:clamp(30px,8.8vw,40px)!important;
    line-height:1.2!important;
    max-width:100%!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form-title .elementor-heading-title {
    font-size:24px!important;
    line-height:1.3!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form .elementor-form-fields-wrapper {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    margin:0!important;
    gap:14px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form .elementor-field-group {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    grid-column:1 / -1!important;
    padding:0!important;
    margin:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form :is(input:not([type=checkbox]):not([type=radio]),textarea,select) {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    font-size:17px!important;
    box-sizing:border-box!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form .elementor-field-option {
    display:flex!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form .elementor-acceptance-field {
    flex:0 0 auto!important;
    min-height:0!important;
    width:18px!important;
    height:18px!important;
    margin:4px 0 0!important;
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-form .elementor-field-option label {
    flex:1 1 auto!important;
    min-width:0!important;
    white-space:normal!important;
    line-height:1.5!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-contact-row.e-con {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:12px!important;
    width:100%!important;
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-contact-row .ag271-footer-action,
  body.agro-aio-active.agmr-active .elementor .ag271-footer-contact-row .elementor-button {
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-contact-row .elementor-button-text {
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-social-row.e-con {
    display:flex!important;
    flex-direction:row!important;
    flex-wrap:wrap!important;
    justify-content:flex-start!important;
    gap:12px!important;
    width:100%!important;
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .ag271-footer-nav .ag271-footer-link {
    width:auto!important;
    max-width:100%!important;
    flex:0 1 auto!important;
  }
  body.agro-aio-active.agmr-active .elementor .aghn-logo-widget,
  body.agro-aio-active.agmr-active .elementor .aghn-logo-widget > .elementor-widget-container {
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
  }
  body.agro-aio-active.agmr-active .elementor .aghn-logo-widget img {
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
  }
}
