/* ===================================
   Testimonials 2026 Block
   =================================== */

.testimonials-2026-section {
    width: 100%;
    background-color: #ffffff;
}

.testimonials-2026-container {
    max-width: 118rem;
    margin: 0 auto;
    padding: 4rem 2.4rem 5.6rem;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

/* Title */
.testimonials-2026-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 3.6rem;
    line-height: 1.2;
    letter-spacing: -0.108rem;
    color: #031B23;
    margin: 0;
    text-align: center;
}

/* Splide Slider */
.testimonials-2026-slider {
    width: 100%;
    position: relative;
}

.testimonials-2026-slider .splide__track {
    overflow: hidden;
}

.testimonials-2026-slider .splide__list {
    display: flex;
    align-items: flex-end;
}

/* Item */
.testimonials-2026-item {
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
    height: 100%;
}

/* Quote wrapper */
.testimonials-2026-quote-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    color: #031B23;
    flex-grow: 1;
}

.testimonials-2026-quote {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1.8rem;
    line-height: 1.5;
    font-style: italic;
    color: #031B23;
    margin: 0;
}

/* Author */
.testimonials-2026-author {
    display: flex;
    flex-direction: column;
    gap: 0;
    text-align: right;
}

.testimonials-2026-author-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    line-height: 1;
    color: #031B23;
    margin: 0;
    margin-bottom: .5rem;
}

.testimonials-2026-author-title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.4rem;
    line-height: 1;
    font-style: italic;
    color: #031B23;
    margin: 0;
}

/* Video */
.testimonials-2026-video {
    position: relative;
    height: 24.1rem;
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 0.4rem 25rem rgba(233, 249, 255, 1);
}

.testimonials-2026-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonials-2026-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.testimonials-2026-video-play{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* reset, żeby globalne style buttona nie centrowały zawartości */
  display: block;
  text-align: left;

  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.testimonials-2026-video-play:hover {
  transform: none;
}

/* nie skalujemy całego klikalnego obszaru */
.testimonials-2026-video-play:hover {
  transform: none;
}

/* skalujemy tylko ikonę — rośnie względem własnego środka */
.testimonials-2026-video-play:hover .testimonials-2026-play-icon {
  transform: scale(1.1);
  transform-origin: center;
  transition: transform 0.3s ease;
}

/* żeby transition działał też przy zejściu z hover */
.testimonials-2026-play-icon {
  transition: transform 0.3s ease;
  transform-origin: center;
}


.testimonials-2026-play-icon{
  position: absolute;
  left: 2rem;
  bottom: 2rem;
  pointer-events: none; /* klik idzie w button */
}

/* Splide Navigation - Override default styles */
.testimonials-2026-slider .splide__arrow {
    background: none;
    border: none;
    width: auto;
    height: auto;
    opacity: 1;
    position: static;
    transform: none;
    top: auto;
    width: 3.6rem;
}

.testimonials-2026-slider .splide__arrow svg {
    fill: none;
    width: 3.6rem !important;
    height: 3.6rem !important;
}

button.splide__arrow--prev svg{
    transform:rotate(180deg) !important;
}



/* Navigation */
.testimonials-2026-navigation {
    display: flex;
    gap: 3.1rem;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}

.testimonials-2026-nav-button {
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.testimonials-2026-nav-button:hover:not(:disabled) {
    transform: scale(1.1);
}

.testimonials-2026-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.testimonials-2026-nav-button svg {
    width: 100%;
    height: 100%;
}




/* Ukryj strzałki tylko gdy wszystkie elementy są widoczne naraz */

/* Desktop (≥1025px): perPage=3, ukryj gdy ≤3 */
@media (min-width: 1025px) {
    .testimonials-2026-navigation[data-item-count="1"],
    .testimonials-2026-navigation[data-item-count="2"],
    .testimonials-2026-navigation[data-item-count="3"] {
        display: none;
    }
}

/* Tablet (769-1024px): perPage=2, ukryj gdy ≤2 */
@media (min-width: 769px) and (max-width: 1024px) {
    .testimonials-2026-navigation[data-item-count="1"],
    .testimonials-2026-navigation[data-item-count="2"] {
        display: none;
    }
}

/* Mobile (≤768px): perPage=1, ukryj gdy =1 */
@media (max-width: 768px) {
    .testimonials-2026-navigation[data-item-count="1"] {
        display: none;
    }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
    .testimonials-2026-container {
        padding: 4rem 2.4rem 5.6rem;
    }

    .testimonials-2026-title {
        font-size: 2.8rem;
        letter-spacing: -0.084rem;
        text-align: left;
    }

    .testimonials-2026-item {
        gap: 2.4rem;
    }

    .testimonials-2026-video {
        height: 20rem;
    }
}

@media (max-width: 480px) {
    .testimonials-2026-container {
        padding: 4rem 2.4rem 5.6rem;
    }
}

/* ===================================
   Video Lightbox
   =================================== */

.testimonials-2026-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5.5rem 2rem 2rem;
    box-sizing: border-box;
}

.testimonials-2026-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.testimonials-2026-lightbox-content {
    position: relative;
    width: 90%;
    max-width: min(120rem, calc(90vh * 16 / 9));
    z-index: 2;
}

/* Shorts format (vertical video) */
.testimonials-2026-lightbox-shorts {
    max-width: min(50rem, calc(90vh * 9 / 16));
}

.testimonials-2026-lightbox-close {
    position: absolute;
    top: -5rem;
    right: 0;
    width: 4rem;
    height: 4rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: opacity 0.2s ease;
}

.testimonials-2026-lightbox-close:hover {
    opacity: 0.7;
}

.testimonials-2026-lightbox-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 0.8rem;
    overflow: hidden;
}

/* Shorts format - vertical aspect ratio (9:16) */
.testimonials-2026-lightbox-shorts .testimonials-2026-lightbox-video-wrapper {
    aspect-ratio: 9 / 16;
}

.testimonials-2026-lightbox-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .testimonials-2026-lightbox-content {
        width: 95%;
    }

    .testimonials-2026-lightbox-close {
        top: -4rem;
        width: 3.2rem;
        height: 3.2rem;
    }
}
