.block-hero {
  --hero-min-height: 705px;
  --hero-red-width: 30%;
  overflow: hidden;
  position: relative;
  min-height: var(--hero-min-height);
  color: var(--color-text, #fff);
  padding-bottom: 150px;
}

.block-hero__inner {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: var(--hero-min-height);
  min-height: 400px;
}

[dir="ltr"] .block-hero__inner {
  flex-direction: row-reverse;
}

.block-hero__red {
  width: var(--hero-red-width);
  flex-shrink: 0;
  background-color: var(--color-primary, #C8232B);
  padding: 80px 32px;
  box-sizing: border-box;
  height: 633px;
  z-index: 5;
}

.block-hero__red_logo {
  width: 100%;
  height: 68px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Contact us link in red bar (same as header: theme option header_contact_url) */
.block-hero__contact-link {
  display: none;
  align-items: center;
	flex-direction: column;
  gap: 8px;
  color: var(--color-bg);
  text-decoration: none;
  font-family: var(--font-ibm, inherit);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.3;
  transition: opacity 0.2s ease;
  margin-bottom: 24px;
}

.block-hero__contact-link:hover {
  opacity: 0.9;
  color: var(--color-bg);
}

.block-hero__contact-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
.block-hero__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: var(--color-bg);
  gap: 40px;
  position: absolute;
  top: 0;
  left: 0;
  right: var(--hero-red-width);
  padding: 20px 24px;
  box-sizing: border-box;
  z-index: 10;
}
.block-hero__header .block-hero__menu a {
  transition: color 0.3s ease;
}

.block-hero__logo a,
.block-hero__logo img {
  display: block;
  color: inherit;
  text-decoration: none;
}

.block-hero__logo img {
  max-height: 48px;
  width: auto;
}

.block-hero__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.block-hero__menu a {
  color: var(--color-text);
  text-decoration: none;
  font-family: var(--font-ibm);
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 0;
}

/* Slider container – fills left side of row */
.block-hero__slider .slick-list{
    overflow: visible !important;
}
.block-hero__slider {
  flex: 1;
  min-width: 0;
  position: relative;
  height: 100%;
  z-index: 5;
}

.block-hero__slider .slick-list,
.block-hero__slider .slick-track {
  height: 100%;
}

.block-hero__inner::after {
    position: absolute;
    height: 237px;
    width: 539px;
    bottom: 23px;
    right: 0;
    margin-right: 89px;
    content: '';
    z-index: 1;
    background-color: var(--color-secondary);
}
.block-hero__slider .slick-slide {
  height: 100%;
  cursor: pointer;
  align-items: end;
  opacity: 0;
}
.block-hero__slide.slick-slide.slick-current.slick-active{
  opacity: 1;
}

/* Slider navigation: counter + prev/next */
.block-hero__slider-nav {
  position: absolute;
  bottom: -15px;
  left: 120px;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
  width: fit-content; 
  background-color: var(--color-text, #051333);
  flex-direction: row-reverse;
}

.block-hero__slider-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0px;
  border: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  transition: opacity 0.2s;
}

.block-hero__slider-nav-btn:hover {
  opacity: 0.8;
}

.block-hero__slider-nav-btn img {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.block-hero__slider-nav-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row-reverse;
  color: var(--color-bg, #fff);
  font-family: var(--font-heebo);
  font-weight: 700;
  font-size: 16px;
  line-height: 130%;
  letter-spacing: 3px;
  box-sizing: border-box;
}

.block-hero__slider-nav-current,
.block-hero__slider-nav-total {
  font-variant-numeric: tabular-nums;
}

/* Single slide */
.block-hero__slide {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--color-text, #051333);
  display: flex;
  align-items: center;
  padding: 6rem var(--container-padding) 4rem;
  box-sizing: border-box;
}
.block-hero__slide-link {
	position: relative;
	background-image: url('/wp-content/uploads/2026/02/left-arrow.svg');
	background-size: 0px;
	background-repeat: no-repeat;
	background-position: 12px center;

	padding: 12px 32px;

	transition: 
		background-size 0.3s ease,
		padding 0.3s ease,
		background-color 0.3s ease,
		color 0.3s ease;
}

.block-hero__slide-link:hover {
	background-color: var(--color-text, #fff);
	color: var(--color-bg);
	background-size: 20px;
	padding: 12px 24px 12px 40px;
}

.block-hero__slide-inner {
  position: absolute;
  bottom: 98px;
  right: -249px;
  z-index: 2;
  max-width: 508px;
  padding: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg);
  height: auto;
  gap: 20px;
}
.block-hero__slide-inner-top{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.block-hero__slide-meta,
.block-hero__slide-excerpt,
.block-hero__slide-title{
    margin: 0;
}

/* Slick RTL overrides */
.block-hero__slider--rtl .slick-prev {
  right: auto;
  left: 10px;
}

.block-hero__slider--rtl .slick-next {
  left: auto;
  right: 10px;
}

.block-hero__slider--rtl .slick-dots {
  direction: ltr;
}

/* SEO / utility */
.visually-hidden {
  display: none;
}

/* Hamburger: hidden on desktop, shown at 1024px and below */
.block-hero__hamburger {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.block-hero__hamburger img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* Full-screen menu overlay – hidden by default, shown with .block-hero--menu-open */
.block-hero__fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-primary, #C8232B);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.block-hero--menu-open .block-hero__fullscreen-menu {
  opacity: 1;
  visibility: visible;
}

.block-hero__fullscreen-menu-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 2rem;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.block-hero--menu-open .block-hero__fullscreen-menu-inner {
  opacity: 1;
  transform: translateY(0);
}

.block-hero__close-menu {
  display: none;
}

.block-hero__close-menu:hover {
  opacity: 1;
}

.block-hero__close-menu img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.block-hero__fullscreen-menu-logo {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.block-hero__fullscreen-nav {
  width: 100%;
}

.block-hero__fullscreen-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.block-hero__fullscreen-menu-list a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-ibm-plex-hebrew, var(--font-heebo));
  font-weight: 400;
  font-size: 18px;
  line-height: 1.3;
  display: block;
  padding: 0.25rem 0;
  transition: opacity 0.2s;
}

.block-hero__fullscreen-menu-list a:hover {
  opacity: 0.85;
}

/* ==========================================================================
   Tablet: 1024px – hide header, column layout, red bar with hamburger + logo
   ========================================================================== */
@media (max-width: 1024px) {
	.block-hero__contact-link {
		display: flex !important;
	}
  .block-hero {
    --hero-min-height: 600px;
  }

  .block-hero__fullscreen-menu-inner{
    width: 100%;
  }

  .block-hero__header {
    display: none;
  }

  .block-hero__inner {
    flex-direction: column;
    min-height: 360px;
  }

  [dir="ltr"] .block-hero__inner {
    flex-direction: column;
  }

  .block-hero__red {
    width: 100%;
    padding: 16px 20px;
    height: auto;
    min-height: auto;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    order: 1;
  }

  .block-hero__hamburger {
    display: block;
    flex-shrink: 0;
  }

  .block-hero__contact-link {
    margin-bottom: 0;
  }

  .block-hero__red_logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    margin: 0;
  }

  .block-hero__slider {
    width: 100%;
    order: 2;
    flex: 1;
    min-height: 400px;
  }

  .block-hero__inner::after {
    width: 380px;
    height: 160px;
    bottom: 16px;
    margin-right: 40px;
  }

  .block-hero__slide {
    padding: 5rem 20px 3rem;
  }

  .block-hero__slide-inner {
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 16px;
    gap: 12px;
  }

  .block-hero__slide-inner-top {
    gap: 10px;
  }
}

/* ==========================================================================
   Mobile: 768px – iOS-safe height and overflow so hero doesn't overlap next block
   ========================================================================== */
@media (max-width: 768px) {
	.block-hero__slide-link{
		width: auto;
		text-align: center;
		justify-content: center;
	}
  .block-hero {
    --hero-min-height: auto;
    min-height: auto;
    padding-bottom: 48px;
    /* Contain layout so nothing overlaps the next section (iOS Safari) */
    overflow: hidden;
  }

  .block-hero__inner {
    flex-direction: column;
    height: auto;
    min-height: auto;
  }

  [dir="ltr"] .block-hero__inner {
    flex-direction: column;
  }

  .block-hero__header {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    padding: 14px 16px;
  }

  .block-hero__red {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 16px 16px;
    order: 0;
  }

  .block-hero__red_logo {
    height: 40px;
    max-width: 180px;
  }

  /* Slider grows with slide content so hero reserves space; no overlap on iOS */
  .block-hero__slider {
    order: 1;
    width: 100%;
    min-height: 320px;
    height: auto;
    -webkit-min-height: 320px;
  }

  /* Mobile: override global height:100% so slide content defines height */
  .block-hero__slider .slick-list {
    height: auto !important;
    min-height: 320px;
    -webkit-min-height: 320px;
    overflow: hidden !important;
  }

  .block-hero__slider .slick-track {
    height: auto !important;
  }

  .block-hero__slider .slick-slide,
  .block-hero__slider .block-hero__slide.slick-slide {
    height: auto !important;
    min-height: 320px;
    -webkit-min-height: 320px;
  }

  .block-hero__inner::after {
    display: none;
  }

  .block-hero__slide {
    padding: 14rem 16px 100px;
    box-sizing: border-box;
  }

  .block-hero__slide-inner {
    position: relative;
    bottom: 0;
    right: 0;
    left: 0;
    max-width: none;
    width: calc(100% - 48px);
    margin: 0 auto;
    padding: 16px;
    gap: 12px;
  }

  .block-hero__slider-nav {
    top: 260px;
    bottom: unset;
    right: 24px;
    left: unset;
  }

  .block-hero__slide-inner-top {
    gap: 8px;
  }
}