/* 2.0.3 — scoped Elementor presentation repair. No content or URL changes. */
/* Elementor's inline-block image link otherwise shrink-wraps square source images. */
.middle-east-home .middle-east-industry-photo,
.middle-east-home .middle-east-detail-photo,
.middle-east-home .middle-east-about-photo { min-width:0; }
.middle-east-home .middle-east-industry-photo .elementor-widget-container,
.middle-east-home .middle-east-industry-photo a,
.middle-east-home .middle-east-detail-photo .elementor-widget-container,
.middle-east-home .middle-east-detail-photo a,
.middle-east-home .middle-east-about-photo .elementor-widget-container,
.middle-east-home .middle-east-about-photo a {
 display:block; width:100%; max-width:none; line-height:0;
}
.middle-east-home .middle-east-industry-photo img,
.middle-east-home .middle-east-detail-photo img,
.middle-east-home .middle-east-about-photo img {
 display:block; width:100%; max-width:100%; object-fit:cover; object-position:center;
}
/* Homepage: the approved preview uses landscape photographs and overlaid titles. */
.middle-east-home .middle-east-industries { gap:22px; align-items:stretch; }
.middle-east-home .middle-east-industry {
 position:relative; display:block; width:100%; min-width:0; padding:0;
 overflow:hidden; background:#142433; isolation:isolate;
}
.middle-east-home .middle-east-industries .middle-east-industry-photo { width:100%; margin:0; }
.middle-east-home .middle-east-industries .middle-east-industry-photo img {
 width:100%; height:270px; transition:transform .35s ease;
}
.middle-east-home .middle-east-industry::after {
 content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
 background:linear-gradient(0deg,rgba(13,28,44,.92),transparent 80%);
}
.middle-east-home .middle-east-industry > .elementor-widget-heading {
 position:absolute; inset-inline:25px; bottom:24px; z-index:2;
 width:auto; margin:0; pointer-events:none;
}
.middle-east-home .middle-east-industry > .elementor-widget-heading .elementor-heading-title {
 color:#fff; font-size:22px; line-height:1.25; padding-inline-end:25px;
}
.middle-east-home .middle-east-industry > .elementor-widget-heading::after {
 content:"↗"; position:absolute; inset-inline-end:0; top:0; color:white; font-size:22px;
}
.middle-east-home .middle-east-industry:hover .middle-east-industry-photo img { transform:scale(1.035); }
.middle-east-home .middle-east-industry:focus-within { outline:3px solid #c92030; outline-offset:3px; }
/* Industry directory: edge-to-edge landscape images inside existing editable cards. */
.middle-east-home .middle-east-application-card { padding:0; gap:0; overflow:hidden; }
.middle-east-home .middle-east-application-card > .middle-east-industry-photo {
 width:100%; margin:0; align-self:stretch;
}
.middle-east-home .middle-east-application-card .middle-east-industry-photo img { height:230px; width:100%; }
.middle-east-home .middle-east-application-card > .elementor-widget:not(.elementor-widget-image) {
 width:auto; margin-inline:24px; margin-top:18px;
}
.middle-east-home .middle-east-application-card > .elementor-widget:last-child { margin-bottom:24px; }
.middle-east-home .middle-east-application-card .elementor-heading-title { line-height:1.3; }
/* Detail pages retain the approved wide hero crop rather than stretching the source. */
.middle-east-home .middle-east-detail-photo { width:100%; }
.middle-east-home .middle-east-detail-photo img { height:360px; border-radius:8px; }
.middle-east-home .middle-east-about-photo img { height:420px; }
.middle-east-home .middle-east-section > .e-con,
.middle-east-home .middle-east-detail-hero > .e-con { min-width:0; }
/* Stable dropdown geometry: remove SmartMenus offsets and keep hover/focus within panel. */
@media(min-width:1025px) {
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-brands > .sub-menu,
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-products > .sub-menu {
  margin:0!important; top:100%!important; inset-inline-start:50%!important;
  inset-inline-end:auto!important; transform:translateX(-50%); box-sizing:border-box;
 }
 .middle-east-home-ar .elementor-nav-menu--main .middle-east-mega-brands > .sub-menu,
 .middle-east-home-ar .elementor-nav-menu--main .middle-east-mega-products > .sub-menu {
  transform:translateX(50%);
 }
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-brands:hover > .sub-menu,
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-brands:focus-within > .sub-menu {
  display:grid!important; grid-template-columns:repeat(8,minmax(0,1fr));
 }
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-products:hover > .sub-menu,
 .middle-east-home .elementor-nav-menu--main .middle-east-mega-products:focus-within > .sub-menu {
  display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr));
 }
 .middle-east-home .middle-east-navigation .sub-menu li { min-width:0; }
}
.middle-east-home .middle-east-menu-image { display:block; flex:none; }
.middle-east-home .middle-east-brand-menu-card a,
.middle-east-home .middle-east-product-menu-card a { white-space:normal!important; }
/* A compact, structured footer using the existing editable content. */
.middle-east-home .middle-east-footer {
 display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr);
 align-items:start; column-gap:45px; row-gap:15px; border-top:1px solid #dde2e6;
 padding-block:50px; background:#f7f9fa;
}
.middle-east-home .middle-east-footer > .elementor-widget-heading { grid-column:1; grid-row:1; }
.middle-east-home .middle-east-footer > .elementor-widget-heading .elementor-heading-title {
 font-size:19px; line-height:1.55; max-width:390px;
}
.middle-east-home .middle-east-footer > .elementor-widget-text-editor { grid-column:1; grid-row:2; }
.middle-east-home .middle-east-footer-links { grid-column:2; grid-row:1 / span 2; display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.middle-east-home .middle-east-footer-contact { grid-column:3; grid-row:1 / span 2; display:flex; flex-direction:column; align-items:flex-start; gap:12px; }
.middle-east-home .middle-east-footer-links .elementor-button,
.middle-east-home .middle-east-footer-contact .elementor-button { padding:0; text-align:start; font-size:13px; line-height:1.6; }
.middle-east-home .middle-east-footer .elementor-button-text { overflow-wrap:anywhere; }
@media(max-width:1024px) {
 .middle-east-home .middle-east-industries { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .middle-east-home .middle-east-application-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .middle-east-home .middle-east-footer { column-gap:25px; }
 .middle-east-home .middle-east-navigation .elementor-nav-menu--dropdown .sub-menu {
  width:100%!important; min-width:0!important; max-width:100%!important; margin:0!important;
 }
}
@media(max-width:767px) {
 .middle-east-home .middle-east-industries { gap:16px; }
 .middle-east-home .middle-east-industries .middle-east-industry-photo img { height:210px; }
 .middle-east-home .middle-east-industry > .elementor-widget-heading { inset-inline:16px; bottom:18px; }
 .middle-east-home .middle-east-industry > .elementor-widget-heading .elementor-heading-title { font-size:18px; }
 .middle-east-home .middle-east-application-card .middle-east-industry-photo img { height:190px; }
 .middle-east-home .middle-east-application-card > .elementor-widget:not(.elementor-widget-image) { margin-inline:18px; }
 .middle-east-home .middle-east-detail-hero,
 .middle-east-home .middle-east-detail-editorial,
 .middle-east-home .middle-east-company-editorial { flex-direction:column; }
 .middle-east-home .middle-east-detail-photo img { height:280px; }
 .middle-east-home .middle-east-footer { grid-template-columns:1fr 1fr; padding:35px 22px; gap:22px; }
 .middle-east-home .middle-east-footer > .elementor-widget-heading { grid-column:1/-1; grid-row:auto; }
 .middle-east-home .middle-east-footer > .elementor-widget-text-editor { grid-column:1/-1; grid-row:auto; }
 .middle-east-home .middle-east-footer-links { grid-column:1; grid-row:auto; grid-template-columns:1fr; }
 .middle-east-home .middle-east-footer-contact { grid-column:2; grid-row:auto; }
}
@media(max-width:480px) {
 .middle-east-home .middle-east-industries,
 .middle-east-home .middle-east-application-grid { grid-template-columns:1fr; }
 .middle-east-home .middle-east-industries .middle-east-industry-photo img { height:240px; }
 .middle-east-home .middle-east-application-card .middle-east-industry-photo img { height:220px; }
 .middle-east-home .middle-east-footer { grid-template-columns:1fr; }
 .middle-east-home .middle-east-footer-links,
 .middle-east-home .middle-east-footer-contact { grid-column:1; }
 .middle-east-home .middle-east-footer-links { grid-template-columns:1fr 1fr; }
}
@media(prefers-reduced-motion:reduce) {
 .middle-east-home .middle-east-industry-photo img { transition:none; }
 .middle-east-home .middle-east-industry:hover .middle-east-industry-photo img { transform:none; }
}
/* 2.0.4: compact touch navigation, independent of Elementor toggle output. */
.meico-mobile-toggle,.meico-submenu-toggle{display:none}
@media(max-width:1024px){
.middle-east-home .middle-east-header{display:grid!important;grid-template-columns:minmax(0,1fr) 48px!important;gap:12px!important;padding:16px!important;position:relative!important;overflow:visible!important}
.middle-east-home .middle-east-identity{grid-column:1/-1;grid-row:1;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important}
.middle-east-home .middle-east-logo{width:44px!important;min-width:44px;flex:0 0 44px!important}
.middle-east-home .middle-east-wordmark{width:auto!important;flex:1!important;min-width:0}
.middle-east-home .middle-east-wordmark .elementor-heading-title{font-size:14px!important;line-height:1.25!important}
.middle-east-home .middle-east-header-actions{grid-column:1;grid-row:2;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;width:auto!important;gap:8px!important}
.middle-east-home .middle-east-header-actions .elementor-button{padding:12px!important;font-size:12px!important}
.middle-east-home .middle-east-navigation{grid-column:2!important;grid-row:2!important;width:48px!important;position:static!important}
.middle-east-home .meico-mobile-ready .elementor-nav-menu--main,.middle-east-home .meico-mobile-ready .elementor-menu-toggle{display:none!important}
.middle-east-home .meico-mobile-toggle{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid #dde2e6;border-radius:6px;background:#fff;color:#142433;font-size:28px;line-height:1;cursor:pointer}
.middle-east-home .meico-mobile-toggle:focus-visible,.middle-east-home .meico-submenu-toggle:focus-visible{outline:3px solid #c92030;outline-offset:2px}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown{display:none!important;position:absolute!important;inset-inline:0!important;top:100%!important;width:100%!important;margin:0!important;transform:none!important;max-height:70vh!important;overflow-y:auto!important;background:#fff;z-index:1000;border-top:1px solid #dde2e6;box-shadow:0 18px 30px #14243324}
.middle-east-home .meico-mobile-open nav.elementor-nav-menu--dropdown{display:block!important}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown>ul{display:block!important}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown li{position:relative!important;width:100%!important}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown a{padding:14px 18px!important;min-height:48px;white-space:normal}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown .menu-item-has-children>a{padding-inline-end:60px!important}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown .sub-arrow{display:none!important}
.middle-east-home .meico-submenu-toggle{display:flex;align-items:center;justify-content:center;position:absolute;inset-inline-end:6px;top:3px;width:44px;height:44px;padding:0;background:#f4f6f8;color:#142433;border:0;border-radius:4px;font-size:24px;cursor:pointer}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown .sub-menu{display:none!important;position:static!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;transform:none!important}
.middle-east-home .meico-mobile-ready nav.elementor-nav-menu--dropdown .meico-submenu-open>.sub-menu{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;padding:10px!important}
.middle-east-home .meico-mobile-ready .middle-east-menu-all{grid-column:1/-1}
}
