@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap");

/* Vertical Tabs Widget - vtw.css v1.9.0 */

/* ── WIDGET ───────────────────────────────────────────────── */
.vtw-widget {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #AA96FA 0%, #50285A 100%);
  display: block;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

/* ── MAIN - never moves, padding-right = collapsed tabs width ─ */
.vtw-main {
  width: 100%;
  height: 100%;
  /* --vtw-tabs-width is set by JS: n_tabs * 42px */
  padding: 36px calc(var(--vtw-tabs-width, 240px) + 20px) 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: filter .45s cubic-bezier(.4, 0, .2, 1);
  will-change: filter;
  background: transparent;
  box-sizing: border-box;
  gap: 60px;
}

.vtw-main.vtw-blurred {
  filter: none; /* blur disabled */
}

.vtw-main-text {
  display: flex;
  flex-direction: column;
}

.vtw-solution-tag {
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 14px;
  display: block;
}

.vtw-main-headline {
  max-width: 900px;
  margin: 0;
  color: #fff;
}

.vtw-main-headline strong {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vtw-main-image {
  width: 70%;
  flex: 1;
  min-height: 0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  margin-top: 24px;
}

.vtw-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vtw-main-image--placeholder {
  background: rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vtw-main-image--placeholder svg { opacity: .4; }

/* ── RAIL - absolute, anchored to right edge ──────────────── */
.vtw-rail {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* ── TAB - expands its own width leftward ─────────────────── */
.vtw-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 80px;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
  transition: width .55s cubic-bezier(.4, 0, .2, 1);
}

/* When open: tab expands leftward, overlaying main content */
.vtw-tab.vtw-tab--open {
  width: var(--vtw-open-width, 60%);
  cursor: default;
}

.vtw-tab:nth-child(1) { background: rgba(255, 255, 255, .08); }
.vtw-tab:nth-child(2) { background: rgba(255, 255, 255, .16); }
.vtw-tab:nth-child(3) { background: rgba(255, 255, 255, .24); }

/* Label strip — collapsed state only (right side, always visible) */
.vtw-tab-label-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  padding-top: 30px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(var(--vtw-blur, 8px));
}

.vtw-tab-label,
.vtw-tab-label-open {
  color: rgba(255, 255, 255, .55);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  white-space: nowrap;
  transition: color .3s, opacity .3s;
  user-select: none;
}

.vtw-tab:not(.vtw-tab--open):hover .vtw-tab-label { color: rgba(255, 255, 255, .95); }
.vtw-tab.vtw-tab--open .vtw-tab-label-wrap {
  opacity: 0;
  pointer-events: none;
  backdrop-filter: none;
}

/* ── PANEL OVERLAY — single element, single backdrop-filter ── */
.vtw-tab-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(var(--vtw-blur, 8px));
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1) .1s;
  overflow: hidden;
}

.vtw-tab.vtw-tab--open .vtw-tab-panel {
  opacity: 1;
  pointer-events: auto;
}

/* Left label strip inside panel */
.vtw-tab-panel-label {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding-top: 30px;
}


/* Content inside panel */
.vtw-tab-content {
  flex: 1;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  transform: translateX(12px);
  transition: transform .4s cubic-bezier(.4, 0, .2, 1) .15s;
}

.vtw-tab.vtw-tab--open .vtw-tab-content {
  transform: translateX(0);
}

.vtw-tab-body {
  line-height: 1;
  font-weight: 300;
  max-width: 70%;
  margin: 0;
}


/* + icons */
.vtw-plus-icons {
  position: absolute;
  bottom: 20px;
  right: 25px;
  display: flex;
  gap: 0;
  z-index: 3;
  pointer-events: none;
}

.vtw-plus-icon { width: 30px; height: 30px; opacity: .35; position: relative; }
.vtw-plus-icon::before,
.vtw-plus-icon::after { content: ""; position: absolute; background: #fff; border-radius: 1px; }
.vtw-plus-icon::before { width: 2px; height: 30px; left: 50%; top: 0; transform: translateX(-50%); }
.vtw-plus-icon::after  { width: 30px; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }

.vtw-tab-icon { display: none; }

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

  .vtw-widget {
    border-radius: 10px;
    height: 80vh !important;
    position: relative;
  }

  /* Main: normal flow, sets the widget height */
  .vtw-main {
    padding: 28px 24px 24px !important;
    gap: 24px;
    height: auto !important;
  }

  .vtw-main-text { display: flex; flex-direction: column; }
  .vtw-main-headline { font-size: 19px; max-width: 100%; }
  .vtw-main-image { width: 100%; height: 200px; margin-top: 0; flex: none; border-radius: 8px; }
  .vtw-main.vtw-blurred { filter: none; }

  /* Rail overlays the FULL widget — tabs stack on top of main */
  .vtw-rail {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    height: auto;
    flex-direction: column;
    justify-content: flex-end;
    border-top: none;
  }

  /* Spacer pushes tabs to bottom when all collapsed */
  .vtw-rail::before {
    content: '';
    flex: 1;
  }

  /* Tab: 52px collapsed, flex:1 when open (fills all space above other tabs) */
  .vtw-tab {
    position: relative;
    width: 100% !important;
    height: 52px;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-start;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
    background: rgba(80, 40, 120, .55) !important;
    overflow: hidden;
    cursor: pointer;
    transition: flex .5s cubic-bezier(.4, 0, .2, 1), height .5s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(var(--vtw-blur, 8px));
  }

  .vtw-tab:first-child { border-top: none; }

  .vtw-tab.vtw-tab--open {
    flex: 1;
    height: auto;
    width: 100% !important;
  }

  /* Label row: always 52px at top of each tab */
  .vtw-tab-label-wrap {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    padding: 0 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: none;
    z-index: 2;
  }

  .vtw-tab-label,
  .vtw-tab-label-open {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    transform: none;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: .01em;
    text-transform: none;
    color: rgba(255, 255, 255, .88);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    opacity: 1 !important;
  }

  .vtw-tab.vtw-tab--open .vtw-tab-label { color: #fff; font-weight: 500; opacity: 1 !important; }

  /* + icon */
  .vtw-tab-icon {
    display: flex;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    margin-right: 0;
    align-items: center;
    justify-content: center;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), border-color .2s;
    position: relative;
  }

  .vtw-tab-icon::before,
  .vtw-tab-icon::after {
    content: "";
    position: absolute;
    background: rgba(255, 255, 255, .85);
    transition: transform .3s;
  }

  .vtw-tab-icon::before { width: 2px; height: 12px; }
  .vtw-tab-icon::after  { width: 12px; height: 2px; }
  .vtw-tab.vtw-tab--open .vtw-tab-icon { transform: rotate(45deg); border-color: rgba(255, 255, 255, .55); }

  /* Content: fills tab below label row */
  .vtw-tab-content {
    position: absolute;
    top: 52px; left: 0; right: 0; bottom: 0;
    padding: 24px 24px;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity .35s cubic-bezier(.4, 0, .2, 1) .15s,
      transform .35s cubic-bezier(.4, 0, .2, 1) .15s;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    backdrop-filter: none;
    max-height: none;
  }

  .vtw-tab.vtw-tab--open .vtw-tab-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    max-height: none;
  }

  .vtw-tab-panel {
    flex-direction: column;
  }

  .vtw-tab-label-open {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: rgba(255, 255, 255, .88);
  }

  .vtw-tab-panel-label {
    width: 100%;
    height: 52px;
    flex-shrink: 0;
    padding: 0 20px;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
  }

  .vtw-tab-body { max-width: 100%; color: rgba(255, 255, 255, .92); line-height: 1.55; }
  .vtw-close, .vtw-plus-icons { display: none !important; }
}