/* Additions on top of the original Elementor CSS: Hello theme basics + replacements for plugin/JS widgets. */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
.screen-reader-text, .elementor-screen-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed !important; width: auto; height: auto; clip: auto; left: 8px; top: 8px; z-index: 100000; background: #fff; padding: 10px 14px; }
/* Hello theme defaults Elementor relies on */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.5; color: #333; }
a { color: #c36; } a:hover { color: #336; }
h1, h2, h3, h4, h5, h6 { margin-top: .5rem; margin-bottom: 1rem; font-weight: 500; line-height: 1.2; color: inherit; }
p { margin-top: 0; margin-bottom: .9rem; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }
/* lazy videos */
.mw-video-lazy { width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; position: relative; background: #000 center / cover no-repeat; display: block; }
.mw-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: rgba(0, 0, 0, .55); transition: background .2s; }
.mw-play::after { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.mw-video-lazy:hover .mw-play { background: #ff8e00; }
.elementor-wrapper iframe.elementor-video, .elementor-wrapper .elementor-video { width: 100%; height: 100%; border: 0; display: block; }
/* menus: show dropdown when toggled */
.elementor-nav-menu--dropdown[aria-hidden="false"] { display: block; }
/* sliders (CSS scroll-snap instead of Swiper) */
.mw-slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--per-view, 3) - 1) * var(--gap, 20px)) / var(--per-view, 3)); gap: var(--gap, 20px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
.mw-slider > * { scroll-snap-align: start; }
.mw-slider--images img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 1016px) { .mw-slider { grid-auto-columns: 82%; } .mw-slider--images { grid-auto-columns: 40%; } }
.mw-slider .elementor-testimonial { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
/* galleries */
.mw-gallery { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); gap: 10px; }
.mw-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
@media (max-width: 1016px) { .mw-gallery { grid-template-columns: repeat(2, 1fr); } }
/* Unlimited Elements accordion replacement */
.mw-accordion details { border-radius: 8px; overflow: hidden; margin-bottom: 10px; background: #f1f3ff; }
.mw-accordion summary { cursor: pointer; list-style: none; padding: 16px 22px; font: 700 22px/1.3 "DM Sans", sans-serif; color: #fff; background: linear-gradient(90deg, #186fae, #222898); display: flex; gap: 12px; align-items: center; }
.mw-accordion summary::-webkit-details-marker { display: none; }
.mw-accordion summary::after { content: "+"; margin-inline-start: auto; font-weight: 400; }
.mw-accordion details[open] summary::after { content: "–"; }
.mw-accordion-body { padding: 16px 22px; }
.mw-badge { display: inline-flex; gap: 8px; align-items: center; background: #ff8e00; color: #fff; font: 600 16px "DM Sans", sans-serif; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; }
.e-n-accordion-item > summary { list-style: none; cursor: pointer; } .e-n-accordion-item > summary::-webkit-details-marker { display: none; }
.mw-form-note { font-size: 13px; opacity: .7; margin-top: 6px; }
/* background video fills its container */
.elementor-background-video-container { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.elementor-background-video-hosted, .elementor-background-video-embed { width: 100%; height: 100%; object-fit: cover; border: 0; }
.elementor-background-video-embed { position: absolute; top: 50%; left: 50%; width: 177.78vh; min-width: 100%; height: 56.25vw; min-height: 100%; transform: translate(-50%, -50%); }
.elementor-shape img { width: 100%; height: 100%; display: block; }
/* non-Elementor blog posts */
.post-wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px 80px; font-family: "DM Sans", sans-serif; }
.lang-he .post-wrap { font-family: "Rubik", sans-serif; }
.post-wrap h1 { font-size: clamp(30px, 4vw, 46px); color: #214ba5; font-weight: 700; }
.post-meta { color: #777; }
.post-hero { border-radius: 16px; margin-bottom: 28px; width: 100%; }
.post-wrap .content { font-size: 18px; line-height: 1.7; }
.post-wrap a.e-btn { display: inline-block; background: #ff8e00; color: #fff; padding: 12px 24px; border-radius: 30px; text-decoration: none; font-weight: 600; }

/* ---------- forms ---------- */
.mw-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.mw-form-note:empty { display: none; }

/* ---------- blog grid ---------- */
.mw-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.mw-filters button { font: 600 15px "DM Sans", "Rubik", sans-serif; padding: 9px 18px; border-radius: 999px; border: 2px solid #214ba5; background: #fff; color: #214ba5; cursor: pointer; transition: all .2s; }
.mw-filters button:hover, .mw-filters button.is-active { background: #214ba5; color: #fff; }
.mw-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.mw-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(28, 47, 76, .08); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.mw-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(28, 47, 76, .14); }
.mw-card[hidden] { display: none; }
.mw-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #186fae, #222898); }
.mw-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mw-card:hover .mw-card-img img { transform: scale(1.04); }
.mw-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; font-family: "DM Sans", "Rubik", sans-serif; }
.mw-card-body h3 { font-size: 20px; line-height: 1.3; margin: 0; font-weight: 700; }
.mw-card-body h3 a { color: #1c2f4c; text-decoration: none; }
.mw-card-body p { color: #54595f; margin: 0; font-size: 15px; }
.mw-card-meta { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #777; }
.mw-chip { background: #fff2e0; color: #c86a00; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.mw-card-more { margin-top: auto; color: #ff8e00; font-weight: 700; text-decoration: none; }

/* ---------- team ---------- */
.mw-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 26px; }
.mw-team-card { background: none; border: 0; padding: 0; cursor: pointer; text-align: center; font-family: "DM Sans", "Rubik", sans-serif; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mw-team-photo { width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; display: block; background: #f1f3ff; }
.mw-team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.mw-team-card:hover .mw-team-photo img, .mw-team-card:focus-visible .mw-team-photo img { transform: scale(1.05); }
.mw-team-name { font-weight: 700; font-size: 18px; color: #1c2f4c; margin-top: 6px; }
.mw-team-role { color: #ff8e00; font-weight: 600; font-size: 14px; }
.mw-dialog { max-width: min(880px, 94vw); width: 100%; border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.mw-dialog::backdrop { background: rgba(28, 47, 76, .6); backdrop-filter: blur(3px); }
.mw-dialog-close { position: absolute; inset-inline-end: 12px; top: 8px; z-index: 2; background: #fff; border: 0; font-size: 30px; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.mw-bio { padding: 32px; }

/* ---------- single post extras ---------- */
.mw-share { display: flex; gap: 10px; flex-wrap: wrap; }
.mw-share a { width: 40px; height: 40px; border-radius: 50%; background: #214ba5; color: #fff; display: inline-flex; align-items: center; justify-content: center; transition: transform .2s, background .2s; }
.mw-share a:hover { background: #ff8e00; transform: translateY(-2px); }
.mw-postnav { display: flex; justify-content: space-between; gap: 20px; font-family: "DM Sans", "Rubik", sans-serif; }
.mw-postnav a { display: flex; flex-direction: column; text-decoration: none; color: #1c2f4c; font-weight: 700; max-width: 48%; }
.mw-postnav a small { color: #ff8e00; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.mw-postnav .next { text-align: end; margin-inline-start: auto; }
.mw-postlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.mw-postlist a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: #1c2f4c; font-weight: 600; }
.mw-postlist img { width: 72px; height: 56px; object-fit: cover; border-radius: 10px; flex: none; }

/* ---------- modern polish (light touch) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.elementor-location-header { position: relative; z-index: 50; transition: box-shadow .3s ease; }
.elementor-location-header.mw-scrolled { box-shadow: 0 6px 24px rgba(28, 47, 76, .18); }
.elementor-button, .mw-card-more, .elementor-flip-box__button { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease !important; }
.elementor-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(255, 142, 0, .28); }
.elementor-widget-image-box .elementor-image-box-wrapper, .elementor-flip-box { transition: transform .3s ease, box-shadow .3s ease; }
.elementor-widget-image-box:hover .elementor-image-box-wrapper { transform: translateY(-4px); }
.elementor-widget-image-box > .elementor-widget-container { transition: background-size .6s ease, transform .3s ease, box-shadow .3s ease; }
.elementor-widget-image-box.background-blue-overlay:hover > .elementor-widget-container { box-shadow: 0 16px 36px rgba(33, 75, 165, .35); transform: translateY(-4px); }
:focus-visible { outline: 3px solid #ff8e00; outline-offset: 2px; }
/* entrance animations */
.mw-animate { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.mw-animate.mw-anim-fadeIn, .mw-animate.mw-anim-zoomIn { transform: none; }
.mw-animate.mw-anim-fadeInLeft { transform: translateX(-28px); }
.mw-animate.mw-anim-fadeInRight { transform: translateX(28px); }
.mw-animate.mw-anim-zoomIn { transform: scale(.94); }
.mw-animate.mw-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mw-animate { opacity: 1 !important; transform: none !important; transition: none; } }

/* team bio pop-up: keep the photo a sensible size */
.mw-dialog .elementor-widget-theme-post-featured-image img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; }
.mw-dialog > .elementor { padding: 24px; }

/* mobile dropdown menu (pinned under the header by mw.js) */
.elementor-nav-menu--dropdown[aria-hidden="false"] { box-shadow: 0 18px 30px rgba(0,0,0,.18); }
.elementor-nav-menu--dropdown[aria-hidden="false"] .elementor-nav-menu { display: block; }

/* preview label (only on non-production addresses) */
.mw-preview-tag { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 100000; background: #1c2f4c; color: #fff; font: 600 13px/1 "DM Sans", "Rubik", sans-serif; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; transition: background .2s; }
.mw-preview-tag--pulse { background: #ff8e00; }
