.brx-services-accordion .brx-sa__nav{
  display:flex;
  align-items:center;
  gap:10px;
  position: absolute;
  right: 0;
  top:-90px;
}

/* Wrapper kot referenca */
.brx-services-accordion {
    position: relative;
}

/* Osnovni gumb – isti look kot Splide */
.brx-services-accordion .brx-sa__circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 56px;
    border-radius: 44px;
    background: #25f0b4;
    border: 1px solid #1BEDB6;
    color: #000;
    cursor: pointer;
    opacity: 1;
    transition: width 0.2s ease, border-radius 0.2s ease, opacity 0.2s ease;
}

/* Hover */
.brx-services-accordion .brx-sa__circle:hover {
      background: #5afbcc;
}

/* Disabled stanje (če JS doda disabled ali aria-disabled) */
.brx-services-accordion .brx-sa__circle:disabled,
.brx-services-accordion .brx-sa__circle[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.7;

    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    color: rgba(255,255,255,.35);

    width: 56px;
    border-radius: 45px;
}

/* Ikona – shared */
.brx-services-accordion .brx-sa__circle::after {
    content: '';
    width: 16px;
    height: 16px;
    background-color: currentColor;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;

    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
}

/* PREV */
.brx-services-accordion .brx-sa__circle[data-sa-prev]::after {
    mask-image: url('../../assets/images/arrow-prev.svg');
    -webkit-mask-image: url('../../assets/images/arrow-prev.svg');
}

/* NEXT */
.brx-services-accordion .brx-sa__circle[data-sa-next]::after {
    mask-image: url('../../assets/images/arrow-next.svg');
    -webkit-mask-image: url('../../assets/images/arrow-next.svg');
}

/* Disabled ikona */
.brx-services-accordion .brx-sa__circle:disabled::after,
.brx-services-accordion .brx-sa__circle[aria-disabled="true"]::after {
    background-color: rgba(255,255,255,.35);
}

/* ===============================
   SERVICES ACCORDION – PIXEL PERFECT + SMOOTH OPEN
   =============================== */

.brx-services-accordion .brx-sa__accordion {
  --sa-h: 524px;
  --collapsed: 200px;
  display: flex;
  height: var(--sa-h);
  background: #000;
  overflow: hidden;
}

/* PANELS */
.brx-services-accordion .brx-sa__panel {
  position: relative;
  flex: 0 0 200px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  cursor: pointer;

  /* ✅ smoother open (less “laggy”) */
  transition: flex 900ms cubic-bezier(.16, 1, .3, 1);
  will-change: flex;
  contain: layout paint; /* reduces repaint jank */
}

.brx-services-accordion .brx-sa__panel.is-active {
  flex: 1 1 auto;
  cursor: default;
}

/* --------------------------------
   HOVER PUŠČICA (Drugi rdeč okvir)
   -------------------------------- */
.brx-services-accordion .brx-sa__panel:not(.is-active)::before {
  content: url('../../assets/images/accordion-arrow.svg');
  position: absolute;
  top: -15px;
  right: 0px;
  font-size: 50px;
  color: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.brx-services-accordion .brx-sa__panel:not(.is-active):hover::before {
  opacity: 1;
}

/* --------------------------------
   AKTIVNA PUŠČICA (Prvi rdeč okvir)
   -------------------------------- */
.brx-services-accordion .brx-sa__panel.is-active::after {
  content: url('../../assets/images/accordion-arrow-active.svg');
  position: absolute;
  top: -15px;
  right: 15px;
  font-size: 80px;
  color: #fff;
  line-height: 1;
  z-index: 10;

  /* ✅ smooth appearance (no pop) */
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 240ms ease 140ms,
    transform 650ms cubic-bezier(.16, 1, .3, 1) 140ms;
}
.brx-services-accordion .brx-sa__panel.is-active::after{
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------
   ŠTEVILKE IN VERTIKALNI NASLOVI
   -------------------------------- */
.brx-services-accordion .brx-sa__bignum {
  position: absolute;
  right: 0;
  bottom: 0px;
  line-height: 0.7;
  text-align: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 96px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.2);
  z-index: 5;
  font-family: "Manrope", sans-serif;

  /* ✅ smooth color */
  transition: color 350ms ease;
}

.brx-services-accordion .brx-sa__panel.is-active .brx-sa__bignum {
  color: #fff;
}

.brx-services-accordion .brx-sa__vtitle {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  color: rgba(255, 255, 255, 0.4);
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  /* ✅ smooth color */
  transition: color 350ms ease;
}

.brx-services-accordion .brx-sa__panel.is-active .brx-sa__vtitle {
  color: #fff;
}

/* Postavitev spine (zaprto) in rail (aktivno) */
.brx-services-accordion .brx-sa__spine {
  position: absolute;
  right: 0px;
  top: 0px;
  width: 100px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

/* --------------------------------
   VSEBINA (Aktivni del) – SMOOTH ENTRANCE
   -------------------------------- */
.brx-services-accordion .brx-sa__content{
  position:absolute;
  inset:0;
  right:var(--collapsed);

  display:flex;
  justify-content:flex-start;
  align-items:flex-start;
  padding: 0px 50px;

  /* ✅ not just opacity: slide + blur hides jank */
  opacity:0;
  /*transform: translateX(-18px) scale(.985); 
  transition:
    opacity 360ms ease,
    transform 820ms cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;*/
}

.brx-services-accordion .brx-sa__panel.is-active .brx-sa__content{
 opacity:1;
  transform: translateX(0) scale(1);
}

.brx-services-accordion .brx-sa__panel:first-child.is-active .brx-sa__content {
  padding-left: 0px;
}

.brx-services-accordion .brx-sa__card{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  height: 100%;
  justify-content: end;
}

/* CTA naj bo levo (kot na sliki) */
.brx-services-accordion .brx-sa__cta{
  align-self:flex-start;
  flex-shrink: 0;
}

.brx-services-accordion .brx-sa__media {
  width: 100%;
  height: 272px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

/* if you have <img> inside media */
.brx-services-accordion .brx-sa__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.brx-services-accordion .brx-sa__details {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
}

.brx-services-accordion .brx-sa__title {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.2px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-align:right;
   font-family: "Manrope", sans-serif;
}

.brx-services-accordion .brx-sa__desc {
  color: #ccc;
  text-align:right;
  max-width: 420px;
}

.brx-services-accordion .brx-sa__desc p {
  font-size: 14px;
  line-height: 1.2;
}

@media only screen and (max-width: 767px) {
  .brx-services-accordion .brx-sa__circle {
      width: 64px;
      height: 44px;
  }

  .brx-services-accordion .brx-sa__nav {
    top: -73px;
  }
}