/* Kayra Patent Stabil_V4 — desktop CTAs + CSS-only mobile reference carousel. */

/*
 * The desktop slider dots span the full hero width and sit above the CTA row.
 * Keep the dots themselves clickable without letting their transparent wrapper
 * intercept the two CTA links.
 */
@media (min-width: 901px) {
  html[lang="tr-TR"] .hero .slide-dots {
    pointer-events: none !important;
  }

  html[lang="tr-TR"] .hero .slide-dots > button {
    pointer-events: auto !important;
  }

  html[lang="tr-TR"] .hero .localized-home-actions {
    pointer-events: none !important;
  }

  html[lang="tr-TR"] .hero .localized-home-actions > .button {
    cursor: pointer !important;
    pointer-events: auto !important;
  }
}

/* The enhanced carousel is generated only on the Turkish mobile home page. */
.kayra-reference-slider {
  display: none;
}

/*
 * Four 4x4 pages plus a clone of page one. Each page rests for 2.6 seconds,
 * moves left for 0.65 seconds, then rests again. The final clone makes the
 * jump back to 0 visually seamless. No timer or touch JavaScript is involved.
 */
@keyframes kayra-reference-v4-left {
  0%, 20% {
    transform: translate3d(0, 0, 0);
  }

  25%, 45% {
    transform: translate3d(-100%, 0, 0);
  }

  50%, 70% {
    transform: translate3d(-200%, 0, 0);
  }

  75%, 95% {
    transform: translate3d(-300%, 0, 0);
  }

  100% {
    transform: translate3d(-400%, 0, 0);
  }
}

@media (max-width: 800px) {
  html[lang="tr-TR"] .references .reference-grid.kayra-reference-source {
    display: none !important;
  }

  html[lang="tr-TR"] .references .reference-grid.kayra-reference-slider {
    background: #f4f5f6;
    border: 1px solid #dde1e4;
    border-radius: 3px;
    box-shadow: 0 10px 25px rgba(9, 12, 15, 0.06);
    display: block !important;
    overflow: visible;
    padding: 10px 10px 9px !important;
    position: relative;
    touch-action: pan-y;
  }

  html[lang="tr-TR"] .kayra-reference-window {
    direction: ltr;
    overflow: hidden;
    position: relative;
    width: 100%;
  }

  html[lang="tr-TR"] .kayra-reference-track {
    align-items: stretch;
    animation: kayra-reference-v4-left 13s linear infinite;
    direction: ltr;
    display: flex;
    flex-direction: row;
    transform: translate3d(0, 0, 0);
    transition: none;
    will-change: transform;
  }

  html[lang="tr-TR"] .kayra-reference-page {
    display: grid;
    flex: 0 0 100%;
    gap: 7px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(4, 64px);
    min-width: 100%;
    width: 100%;
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo {
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 2px;
    box-shadow: 0 2px 7px rgba(12, 15, 18, 0.035);
    -webkit-filter: grayscale(1);
    filter: grayscale(1);
    height: 64px !important;
    min-width: 0;
    opacity: 0.62;
    overflow: hidden;
    position: relative;
    transition: none;
    transform: none !important;
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo img {
    height: calc(100% - 4px) !important;
    inset: 2px !important;
    max-height: calc(100% - 4px) !important;
    max-width: calc(100% - 4px) !important;
    object-fit: contain !important;
    transform: scale(var(--kayra-mobile-logo-scale, 1.35)) !important;
    transform-origin: 50% 50% !important;
    width: calc(100% - 4px) !important;
  }

}

@media (max-width: 390px) {
  html[lang="tr-TR"] .kayra-reference-page {
    gap: 6px;
    grid-template-rows: repeat(4, 58px);
  }

  html[lang="tr-TR"] .kayra-reference-page .reference-logo {
    height: 58px !important;
  }
}
