/* EMARCOM LOGO SHOWCASE — white editorial carousel; scoped to the shortcode only. */
.emarc-ls-section,
.emarc-ls-section * { box-sizing: border-box; }

.emarc-ls-section {
  --emarc-ls-brand: #1d4428;
  --emarc-ls-sage: #94b09a;
  --emarc-ls-dark: #102719;
  --emarc-ls-item-width: 210px;
  --emarc-ls-side-pad: 10px;
  --emarc-ls-side-pad-tablet: 8px;
  --emarc-ls-side-pad-mobile: 4px;
  --emarc-ls-tile-height: 132px;
  --emarc-ls-tile-height-tablet: 112px;
  --emarc-ls-tile-height-mobile: 94px;
  --emarc-ls-logo-height: 78px;
  --emarc-ls-logo-height-tablet: 66px;
  --emarc-ls-logo-height-mobile: 54px;
  --emarc-ls-background: #fff;
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: clamp(22px, 3.6vw, 43px) var(--emarc-ls-side-pad) clamp(14px, 2.1vw, 25px);
  direction: ltr !important;
  background: var(--emarc-ls-background) !important;
  background-image: none !important;
  color: var(--emarc-ls-dark);
  overflow: hidden;
  isolation: isolate;
}
/* Full-bleed layout for centered Elementor containers (LTR + RTL).
   Arabic must anchor using right:50% / translateX(50%), NOT the
   English left:50% rule: otherwise Elementor RTL pages shift off-screen. */
.emarc-ls-section.emarc-ls-wide {
  position: relative !important;
  width: var(--emarc-ls-viewport-width, 100vw) !important;
  max-width: var(--emarc-ls-viewport-width, 100vw) !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
}
.emarc-ls-section.emarc-ls-wide.emarc-ls-rtl {
  left: auto !important;
  right: 50% !important;
  transform: translateX(50%) !important;
}
.emarc-ls-section::before {
  content:"";
  position: absolute;
  inset: 0 auto auto 8%;
  width: 84%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(29,68,40,.10), transparent);
}
.emarc-ls-section .emarc-ls-inner {
  max-width: none;
  width: 100%;
  margin-inline: auto;
  min-width: 0;
}
.emarc-ls-section .emarc-ls-title {
  margin: 0 0 21px !important;
  color: var(--emarc-ls-brand) !important;
  font-family: inherit !important;
  font-size: clamp(18px, 2vw, 26px) !important;
  line-height: 1.45 !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-align: center;
}
.emarc-ls-section .emarc-ls-layout {
  display: grid;
  grid-template-columns: 50px minmax(0,1fr) 50px;
  align-items: center;
  gap: clamp(3px, .45vw, 9px);
  direction: ltr !important;
  width: 100%;
  min-width: 0;
}
.emarc-ls-section.emarc-ls-no-arrows .emarc-ls-layout { grid-template-columns: minmax(0,1fr); }
.emarc-ls-section .emarc-ls-viewport {
  min-width: 0;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  border-radius: 18px;
  /* Gentle editorial fade, not an obvious gray overlay */
  -webkit-mask-image: linear-gradient(90deg,transparent,black 1.5%,black 98.5%,transparent);
  mask-image: linear-gradient(90deg,transparent,black 1.5%,black 98.5%,transparent);
}
.emarc-ls-section .emarc-ls-viewport:active { cursor: grabbing; }
.emarc-ls-section .emarc-ls-viewport:focus-visible {
  outline: 2px solid var(--emarc-ls-sage);
  outline-offset: -3px;
}
.emarc-ls-section .emarc-ls-track {
  direction: ltr !important;
  display: flex;
  align-items: stretch;
  width: max-content;
  min-width: 100%;
  will-change: transform;
  transform: translate3d(0,0,0);
}
.emarc-ls-section .emarc-ls-sequence {
  direction: ltr !important;
  display: flex;
  flex: 0 0 auto;
  width: max-content;
  align-items: stretch;
}
.emarc-ls-section .emarc-ls-item {
  flex: 0 0 var(--emarc-ls-item-width);
  width: var(--emarc-ls-item-width);
  padding: 8px 7px 10px;
  min-width: 0;
}
.emarc-ls-section .emarc-ls-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--emarc-ls-tile-height);
  width: 100%;
  padding: 15px 18px;
  background: rgba(255,255,255,.99);
  border: 1px solid rgba(29,68,40,.095);
  border-radius: 15px;
  box-shadow: 0 7px 24px rgba(16,39,25,.036);
  text-align: center;
  text-decoration: none !important;
  outline-offset: 2px;
  transition: border-color .38s ease, box-shadow .38s ease, background-color .38s ease, transform .38s cubic-bezier(.22,1,.36,1);
}
.emarc-ls-section .emarc-ls-tile::after {
  content:"";
  position:absolute;
  inset:-20%;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 31%,rgba(148,176,154,.015) 40%,rgba(148,176,154,.11) 49%,rgba(255,255,255,.4) 53%,transparent 67%);
  transform:translateX(-160%);
  transition: transform .8s cubic-bezier(.22,1,.36,1);
}
.emarc-ls-section .emarc-ls-tile:hover,
.emarc-ls-section .emarc-ls-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(148,176,154,.54);
  background-color: #fff;
  box-shadow: 0 14px 30px rgba(29,68,40,.085);
}
.emarc-ls-section .emarc-ls-tile:hover::after,
.emarc-ls-section .emarc-ls-tile:focus-visible::after { transform: translateX(160%); }
.emarc-ls-section .emarc-ls-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: var(--emarc-ls-logo-height) !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: none;
  transition: filter .4s ease, transform .4s ease, opacity .4s ease;
}
.emarc-ls-section .emarc-ls-tile:hover .emarc-ls-logo { transform: scale(1.035); }
.emarc-ls-section.emarc-ls-muted .emarc-ls-logo { filter: grayscale(1); opacity: .76; }
.emarc-ls-section.emarc-ls-muted .emarc-ls-tile:hover .emarc-ls-logo { filter: grayscale(0); opacity: 1; }
.emarc-ls-section .emarc-ls-arrow {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  display: inline-grid !important;
  place-items: center;
  position: relative;
  width: 50px !important;
  height: 50px !important;
  min-width: 50px;
  padding: 0 !important;
  margin: 0 !important;
  background: #fff !important;
  color: var(--emarc-ls-brand) !important;
  border: 1px solid rgba(29,68,40,.20) !important;
  border-radius: 50% !important;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(29,68,40,.055);
  transition: background-color .32s ease, color .32s ease, border-color .32s ease, transform .32s ease, box-shadow .32s ease;
  z-index: 2;
}
.emarc-ls-section .emarc-ls-arrow svg {
  width: 19px !important;
  height: 19px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .32s ease;
}
.emarc-ls-section .emarc-ls-arrow:hover,
.emarc-ls-section .emarc-ls-arrow:focus-visible {
  background: var(--emarc-ls-brand) !important;
  color: #fff !important;
  border-color: var(--emarc-ls-brand) !important;
  transform: translateY(-2px);
  box-shadow: 0 11px 22px rgba(29,68,40,.15);
}
.emarc-ls-section .emarc-ls-arrow-left:hover svg { transform: translateX(-2px); }
.emarc-ls-section .emarc-ls-arrow-right:hover svg { transform: translateX(2px); }
.emarc-ls-section .emarc-ls-fine-line {
  display: flex;
  direction: ltr;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  height: 10px;
}
.emarc-ls-section .emarc-ls-fine-line span { width: 26px; height: 1px; background: rgba(148,176,154,.36); }
.emarc-ls-section .emarc-ls-fine-line i { width: 3px; height: 3px; background: var(--emarc-ls-sage); border-radius: 50%; opacity: .64; }
.emarc-ls-section .emarc-ls-fine-line i:nth-of-type(2) { width: 5px; height: 5px; background: var(--emarc-ls-brand); opacity: .88; }
.emarc-ls-owner-note { padding: 16px; background: #f4f8f4; color: #1d4428; border: 1px dashed #94b09a; border-radius: 8px; }
@media (min-width: 768px) and (max-width: 1024px) {
  .emarc-ls-section { padding-left: var(--emarc-ls-side-pad-tablet); padding-right: var(--emarc-ls-side-pad-tablet); }
  .emarc-ls-section .emarc-ls-tile { height: var(--emarc-ls-tile-height-tablet); }
  .emarc-ls-section .emarc-ls-logo { max-height: var(--emarc-ls-logo-height-tablet) !important; }
  .emarc-ls-section .emarc-ls-layout { grid-template-columns: 42px minmax(0,1fr) 42px; }
  .emarc-ls-section .emarc-ls-arrow { width: 42px !important; height: 42px !important; min-width: 42px; }
}
@media (max-width: 767px) {
  .emarc-ls-section { padding: 23px var(--emarc-ls-side-pad-mobile) 15px; }
  .emarc-ls-section .emarc-ls-layout { grid-template-columns: 36px minmax(0,1fr) 36px; gap: 3px; }
  .emarc-ls-section .emarc-ls-arrow { width: 36px !important; height: 36px !important; min-width: 36px; }
  .emarc-ls-section .emarc-ls-arrow svg { width: 16px !important; height: 16px !important; }
  .emarc-ls-section .emarc-ls-item { padding: 5px 4px 8px; }
  .emarc-ls-section .emarc-ls-tile { height: var(--emarc-ls-tile-height-mobile); padding: 11px; border-radius: 11px; }
  .emarc-ls-section .emarc-ls-logo { max-height: var(--emarc-ls-logo-height-mobile) !important; }
  .emarc-ls-section .emarc-ls-fine-line { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .emarc-ls-section .emarc-ls-tile,
  .emarc-ls-section .emarc-ls-arrow,
  .emarc-ls-section .emarc-ls-logo { transition: none !important; }
  .emarc-ls-section .emarc-ls-tile::after { display: none; }
}
