.pkae-accordion-slider { color: #c5c7ce; }

/* ── Head ──────────────────────────────────────────────────────────────── */
.pkae-accordion-slider .head {
  max-width: 1400px; margin: auto; padding: 30px 0 20px;
  display: flex; align-items: center; gap: .5rem;
}

/* ── Navigation buttons ─────────────────────────────────────────────────── */
.pkae-accordion-slider .nav-btn {
  width: 2.5rem; height: 2.5rem; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.3s; flex-shrink: 0;
}
.pkae-accordion-slider .nav-btn:hover  { background: var(--pkae-accent); }
.pkae-accordion-slider .nav-btn:disabled { opacity: .35; cursor: default; }

/* ── Controls wrapper ───────────────────────────────────────────────────── */
.pkae-accordion-slider .controls {
  display: flex; flex-direction: row; gap: .5rem;
  background: transparent;
}

/* ── Slider ─────────────────────────────────────────────────────────────── */
.pkae-accordion-slider .slider { max-width: 1400px; margin: auto; overflow: hidden; padding-top: 10px; }

/* ── Track (desktop) ────────────────────────────────────────────────────── */
.pkae-accordion-slider .track {
  display: flex; flex-direction: row; flex-wrap: nowrap;
  gap: var(--pkae-gap);
  align-items: flex-start;
  padding-bottom: 40px;
}

/* ── Card (desktop) ─────────────────────────────────────────────────────── */
.pkae-accordion-slider .project-card {
  position: relative; flex: 0 0 var(--pkae-closed);
  height: 26rem; border-radius: 1rem;
  overflow: hidden; cursor: pointer;
  transition: flex-basis 0.55s cubic-bezier(0.25,0.46,0.45,0.94),
              transform  0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pkae-accordion-slider .project-card[active] {
  flex-basis: var(--pkae-open);
  transform: translateY(-6px);
}
.pkae-accordion-slider .project-card__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.75) saturate(75%);
  transition: filter 0.3s, transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.pkae-accordion-slider .project-card:hover .project-card__bg {
  filter: brightness(.9) saturate(100%); transform: scale(1.06);
}

/* ── Card content ───────────────────────────────────────────────────────── */
.pkae-accordion-slider .project-card__content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: .7rem; padding: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,.85) 100%); z-index: 2;
}
.pkae-accordion-slider .project-card__title {
  color: #fff; font-weight: 700; font-size: 1.35rem;
  writing-mode: vertical-rl; transform: rotate(180deg);
}
.pkae-accordion-slider .project-card__thumb,
.pkae-accordion-slider .project-card__desc,
.pkae-accordion-slider .project-card__btn { display: none; }

.pkae-accordion-slider .project-card[active] .project-card__content {
  flex-direction: row; align-items: center; padding: 1.2rem 2rem; gap: 1.1rem;
}
.pkae-accordion-slider .project-card[active] .project-card__title {
  writing-mode: horizontal-tb; transform: none; font-size: 2.4rem;
}
.pkae-accordion-slider .project-card[active] .project-card__thumb,
.pkae-accordion-slider .project-card[active] .project-card__desc,
.pkae-accordion-slider .project-card[active] .project-card__btn { display: block; }

.pkae-accordion-slider .project-card__thumb {
  width: 133px; height: 269px; border-radius: .45rem; object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,.4);
}
.pkae-accordion-slider .project-card__desc {
  color: #ddd; font-size: 1rem; line-height: 1.4; max-width: 16rem;
}
.pkae-accordion-slider .project-card__btn {
  padding: .55rem 1.3rem; border: none; border-radius: 9999px;
  background: var(--pkae-accent);
  color: #fff; font-size: .9rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.pkae-accordion-slider .project-card__btn:hover { filter: brightness(1.15); }

/* ── Dots ───────────────────────────────────────────────────────────────── */
.pkae-accordion-slider .dots {
  display: flex; gap: .5rem; justify-content: center; padding: 16px 0;
}
.pkae-accordion-slider .dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: rgba(171,52,240,0.5);
  cursor: pointer; transition: background .3s, transform .3s, width .3s;
}
.pkae-accordion-slider .dot.active { background: var(--pkae-accent); transform: scale(1.2); }

/* ── Dots position ──────────────────────────────────────────────────────── */
.pkae-accordion-slider.pkae-dots-bottom-left  .dots { justify-content: flex-start; padding-left: 1rem; }
.pkae-accordion-slider.pkae-dots-bottom-right .dots { justify-content: flex-end;   padding-right: 1rem; }

/* ── Dots styles ────────────────────────────────────────────────────────── */
.pkae-accordion-slider .dots.pkae-dots-line .dot {
  border-radius: 2px; height: 4px; width: 20px;
}
.pkae-accordion-slider .dots.pkae-dots-line .dot.active { width: 36px; transform: none; }
.pkae-accordion-slider .dots.pkae-dots-square .dot { border-radius: 3px; }
.pkae-accordion-slider .dots.pkae-dots-stretch .dot.active {
  width: 32px; border-radius: 6px; transform: none;
}

/* ── Arrows position ────────────────────────────────────────────────────── */
.pkae-accordion-slider.pkae-arrows-top-right  .head { justify-content: flex-end; }
.pkae-accordion-slider.pkae-arrows-top-left   .head { justify-content: flex-start; }
.pkae-accordion-slider.pkae-arrows-top-center .head { justify-content: center; }

/* ── MOBILE ─────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  /* head: respect the position setting on mobile too */
  .pkae-accordion-slider .head {
    padding: 16px 12px 12px;
    max-width: 100%;
  }

  /* slider: clips the track */
  .pkae-accordion-slider .slider {
    overflow: hidden;
    padding: 0;
    width: 100%;
  }

  /* track: explicit 100% width so cards calculate correctly */
  .pkae-accordion-slider .track {
    width: 100%;
    flex-wrap: nowrap;
    gap: 0;
    padding-bottom: 0;
    align-items: stretch;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }

  /* each card = exactly the slider width */
  .pkae-accordion-slider .project-card {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    height: 400px;
    min-height: unset;
    border-radius: .75rem;
    transform: none !important;
    transition: none;
    cursor: default;
  }

  /* active card: content stacked at bottom */
  .pkae-accordion-slider .project-card[active] .project-card__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.5rem;
    gap: .6rem;
  }
  .pkae-accordion-slider .project-card[active] .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.8rem;
  }
  .pkae-accordion-slider .project-card[active] .project-card__thumb { display: none; }
  .pkae-accordion-slider .project-card[active] .project-card__desc,
  .pkae-accordion-slider .project-card[active] .project-card__btn  { display: block; }

  /* all cards: title always horizontal */
  .pkae-accordion-slider .project-card__title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 1.4rem;
  }

  /* dots always visible on mobile */
  .pkae-accordion-slider .dots { display: flex; padding: 12px 0; }
}

