/* --------------------------------------------------------------------------
   Jarayan 12.7 — Split Editorial Carousel
   One authoritative slider layer. Images retain their native proportions;
   object-fit: cover may crop edges but never stretches or distorts a photo.
   -------------------------------------------------------------------------- */
body.home.jarayan-refresh .j12-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(14px, 1.6vw, 24px) 0 0;
  background: #f7f8f7;
}

body.home.jarayan-refresh .j12-slider {
  position: relative;
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
  overflow: hidden;
  direction: rtl;
  isolation: isolate;
  border: 1px solid #e4e8e7;
  border-radius: 26px;
  background: #fbfaf7;
  box-shadow: 0 18px 48px rgba(28, 57, 68, .085);
  touch-action: pan-y;
}

body.home.jarayan-refresh .j12-slides {
  display: grid;
  width: 100%;
  height: var(--j12-slider-height, 380px);
  min-height: 0;
}

body.home.jarayan-refresh .j12-slide {
  grid-area: 1 / 1;
  display: flex;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(14px, 0, 0);
  transition: opacity .48s ease, transform .58s cubic-bezier(.2, .7, .2, 1), visibility .48s;
}

body.home.jarayan-refresh .j12-slide[hidden],
body.home.jarayan-refresh .j12-controls[hidden] {
  display: none !important;
}

body.home.jarayan-refresh .j12-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

/* The copy occupies the right-hand panel; the photograph stays on the left. */
body.home.jarayan-refresh .j12-slide__inner.container {
  order: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex: 0 0 calc(100% - var(--j12-slider-image-width, 56%));
  align-items: center;
  width: calc(100% - var(--j12-slider-image-width, 56%));
  max-width: none;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 28px clamp(24px, 3.1vw, 46px) 76px;
  background: #fbfaf7;
  box-sizing: border-box;
}

body.home.jarayan-refresh .j12-slide__copy {
  width: 100%;
  max-width: 560px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.home.jarayan-refresh .j12-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #167493;
  font-size: 12px;
  font-weight: 800;
}

body.home.jarayan-refresh .j12-kicker > span { color: #a7b7b9; }

body.home.jarayan-refresh .j12-location {
  display: block;
  margin: 0 0 8px;
  color: #397083;
  font-size: 13px !important;
  font-weight: 750;
  line-height: 1.75;
}

body.home.jarayan-refresh .j12-slide__copy h2 {
  max-width: 540px;
  margin: 0 0 13px;
  color: #173f50;
  font-size: clamp(27px, 2.5vw, 38px) !important;
  font-weight: 850;
  line-height: 1.48;
  letter-spacing: -.035em;
}

body.home.jarayan-refresh .j12-slide__copy > p {
  max-width: 510px;
  margin: 0 0 17px;
  color: #536b73;
  font-size: 14.5px !important;
  line-height: 1.95;
}

body.home.jarayan-refresh .j12-slide__actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

body.home.jarayan-refresh .j12-slide__actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(8, 115, 155, .14);
}

body.home.jarayan-refresh .j12-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 2px;
  border-bottom: 1px solid #b7cbd0;
  color: #315e6d;
  font-size: 12.5px;
  font-weight: 750;
  text-decoration: none;
}

body.home.jarayan-refresh .j12-slide__note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: #74888c;
  font-size: 11px;
  line-height: 1.7;
}

body.home.jarayan-refresh .j12-slide__note svg {
  width: 15px;
  height: 15px;
  color: #1688a9;
  flex: 0 0 auto;
}

/* Fixed frame + intrinsic ratio handling: no width/height distortion. */
body.home.jarayan-refresh .j12-slide__picture {
  order: 2;
  position: relative;
  inset: auto;
  z-index: 1;
  display: block;
  flex: 0 0 var(--j12-slider-image-width, 56%);
  width: var(--j12-slider-image-width, 56%);
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8eef0;
}

body.home.jarayan-refresh .j12-slide__picture img,
body.home.jarayan-refresh .j12-slide__picture .j12-slide__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  aspect-ratio: auto;
  object-fit: var(--j12-slider-image-fit, cover);
  object-position: var(--j12-image-position, center center);
  transform: none;
  transition: transform .75s cubic-bezier(.2, .7, .2, 1);
}

body.home.jarayan-refresh .j12-slide.is-active .j12-slide__picture img {
  transform: scale(1.012);
}

/* Controls sit in the text panel, not over the photo. */
body.home.jarayan-refresh .j12-controls.container {
  position: absolute;
  z-index: 4;
  inset-block-end: 13px;
  inset-inline-start: 22px;
  inset-inline-end: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: calc(100% - var(--j12-slider-image-width, 56%) - 44px);
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-sizing: border-box;
}

body.home.jarayan-refresh .j12-controls__group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

body.home.jarayan-refresh .j12-dots,
body.home.jarayan-refresh .j12-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

body.home.jarayan-refresh .j12-dots button {
  display: block;
  width: 6px;
  height: 6px;
  min-width: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #b6c5c8;
  box-shadow: none;
  transition: width .2s ease, background .2s ease;
}

body.home.jarayan-refresh .j12-dots button[aria-current="true"] {
  width: 20px;
  background: #08739b;
}

body.home.jarayan-refresh .j12-counter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8b9da0;
  font-size: 11px;
  font-weight: 800;
  direction: ltr;
  white-space: nowrap;
}

body.home.jarayan-refresh .j12-counter [data-j12-current] {
  color: #175c75;
  font-size: 14px;
}

body.home.jarayan-refresh .j12-progress {
  width: clamp(42px, 5vw, 72px);
  height: 3px;
  overflow: hidden;
  border-radius: 99px;
  background: #e0e9e9;
}

body.home.jarayan-refresh .j12-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #08739b;
  transform: scaleX(0);
  transform-origin: right center;
}

body.home.jarayan-refresh .j12-slider.is-running .j12-progress span {
  animation: j12-progress var(--j12-duration, 7000ms) linear forwards;
}

body.home.jarayan-refresh .j12-arrows button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid #d8e4e5;
  border-radius: 50%;
  background: #fff;
  color: #245a6e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

body.home.jarayan-refresh .j12-arrows button:hover {
  border-color: #a9cbd3;
  background: #edf6f7;
  transform: translateY(-1px);
}

body.home.jarayan-refresh .j12-arrows [data-j12-pause] { font-size: 12px; }

body.home.jarayan-refresh .j12-slider:focus-visible {
  outline: 3px solid rgba(8, 115, 155, .35);
  outline-offset: 4px;
}

@media (max-width: 1024px) and (min-width: 761px) {
  body.home.jarayan-refresh .j12-slide__inner.container {
    padding: 22px 25px 70px;
  }
  body.home.jarayan-refresh .j12-slide__copy h2 { font-size: 29px !important; }
  body.home.jarayan-refresh .j12-slide__copy > p { font-size: 13.5px !important; }
  body.home.jarayan-refresh .j12-slide__note { display: none; }
  body.home.jarayan-refresh .j12-controls.container {
    inset-inline-start: 18px;
    width: calc(100% - var(--j12-slider-image-width, 56%) - 36px);
  }
}

@media (max-width: 760px) {
  body.home.jarayan-refresh .j12-intro { padding: 12px 0 0; }
  body.home.jarayan-refresh .j12-slider {
    width: calc(100% - 24px);
    border-radius: 19px;
  }
  body.home.jarayan-refresh .j12-slides { height: var(--j12-slider-mobile-height, 465px); }
  body.home.jarayan-refresh .j12-slide { flex-direction: column; }
  body.home.jarayan-refresh .j12-slide__picture {
    order: 1;
    flex: 0 0 var(--j12-slider-mobile-image-height, 190px);
    width: 100%;
    height: var(--j12-slider-mobile-image-height, 190px);
  }
  body.home.jarayan-refresh .j12-slide__picture img { object-position: var(--j12-image-position, center 44%); }
  body.home.jarayan-refresh .j12-slide__inner.container {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    align-items: flex-start;
    padding: 17px 19px 67px;
  }
  body.home.jarayan-refresh .j12-slide__copy { max-width: none; }
  body.home.jarayan-refresh .j12-kicker { margin-bottom: 7px; font-size: 11px; }
  body.home.jarayan-refresh .j12-location { margin-bottom: 5px; font-size: 11.5px !important; }
  body.home.jarayan-refresh .j12-slide__copy h2 {
    margin-bottom: 8px;
    font-size: clamp(23px, 6.2vw, 29px) !important;
    line-height: 1.45;
  }
  body.home.jarayan-refresh .j12-slide__copy > p {
    margin-bottom: 10px;
    font-size: 13px !important;
    line-height: 1.75;
  }
  body.home.jarayan-refresh .j12-slide__actions { gap: 11px; }
  body.home.jarayan-refresh .j12-slide__actions .button {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 12.5px;
  }
  body.home.jarayan-refresh .j12-secondary { min-height: 36px; font-size: 11.5px; }
  body.home.jarayan-refresh .j12-slide__note { display: none; }
  body.home.jarayan-refresh .j12-controls.container {
    inset-inline-start: 15px;
    inset-inline-end: 15px;
    inset-block-end: 9px;
    width: auto;
    gap: 8px;
  }
  body.home.jarayan-refresh .j12-controls__group { gap: 8px; }
  body.home.jarayan-refresh .j12-dots { gap: 5px; }
  body.home.jarayan-refresh .j12-dots button { width: 5px; height: 5px; min-width: 5px; }
  body.home.jarayan-refresh .j12-dots button[aria-current="true"] { width: 16px; }
  body.home.jarayan-refresh .j12-progress { display: none; }
  body.home.jarayan-refresh .j12-arrows { gap: 4px; }
  body.home.jarayan-refresh .j12-arrows button { width: 29px; height: 29px; min-width: 29px; }
}

@media (max-width: 420px) {
  body.home.jarayan-refresh .j12-slides { height: var(--j12-slider-mobile-height, 465px); }
  body.home.jarayan-refresh .j12-slide__picture { flex-basis: var(--j12-slider-mobile-image-height, 190px); height: var(--j12-slider-mobile-image-height, 190px); }
  body.home.jarayan-refresh .j12-slide__inner.container { padding-inline: 16px; }
  body.home.jarayan-refresh .j12-slide__copy h2 { font-size: 23px !important; }
  body.home.jarayan-refresh .j12-slide__copy > p { font-size: 12.5px !important; }
  body.home.jarayan-refresh .j12-secondary { display: none; }
}

/* Settings-driven controls and transition variants. */
body.home.jarayan-refresh .j12-slider[data-show-arrows="0"] .j12-arrows { display: none !important; }
body.home.jarayan-refresh .j12-slider[data-show-dots="0"] .j12-dots { display: none !important; }
body.home.jarayan-refresh .j12-slider[data-show-secondary="0"] .j12-secondary { display: none !important; }
body.home.jarayan-refresh .j12-slider[data-show-note="0"] .j12-slide__note { display: none !important; }
body.home.jarayan-refresh .j12-slider[data-transition="fade"] .j12-slide { transform: none; }
body.home.jarayan-refresh .j12-slider[data-image-fit="contain"] .j12-slide__picture { background: #e9eef0; }

@media (prefers-reduced-motion: reduce) {
  body.home.jarayan-refresh .j12-slide,
  body.home.jarayan-refresh .j12-slide__picture img,
  body.home.jarayan-refresh .j12-arrows button {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  body.home.jarayan-refresh .j12-slider.is-running .j12-progress span { animation: none !important; }
}
