/* ============================================================
   VARITO VERTICAL TABS v2.4.0
   ============================================================ */

.vvt-app-section {
  padding: 80px 0;
  background: #f6f7fa;
}

.vvt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.vvt-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  color: #0d2b55;
  margin: 0 0 52px;
}

/* ===== LAYOUT ===== */
.vvt-row {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ===== LEFT PANEL ===== */
.vvt-left-panel {
  flex: 0 0 320px;
  max-width: 320px;
}

.vvt-panel-inner { padding: 4px 0; }

.vvt-panel-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d4893;
  margin: 0 0 18px;
  line-height: 1.3;
  transition: opacity .2s ease;
}

.vvt-panel-desc {
  color: #4a5568;
  font-size: .95rem;
  line-height: 1.8;
  margin: 0 0 28px;
  min-height: 72px;
  transition: opacity .2s ease;
}

.vvt-panel-cta {
  display: inline-flex;
  align-items: center;
  background: #0d4893;
  color: #fff !important;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  max-width: 100%;
  transition: background .25s ease, transform .2s ease;
}

.vvt-panel-cta:hover {
  background: #0a3570;
  transform: translateX(3px);
}

/* ===== RIGHT PANEL ===== */
.vvt-right-panel { flex: 1; min-width: 0; }

/* ===== TABS WRAP ===== */
.vvt-tabs-wrap {
  display: flex;
  gap: 12px;
  align-items: stretch;
  height: 420px;
}

/* ===== SINGLE TAB ===== */
.vvt-tab-item {
  flex: 0 0 72px;
  height: 100%;
  position: relative;
  cursor: pointer;
  border-radius: 22px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #1a4fa0;
  transition:
    flex-basis .5s cubic-bezier(.4, 0, .2, 1),
    box-shadow  .5s cubic-bezier(.4, 0, .2, 1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 8px 24px rgba(0,0,0,.18);
}

/* Dark overlay — default */
.vvt-tab-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 50, 120, .80);
  transition: background .4s ease;
  z-index: 1;
  pointer-events: none;
}

/* ===== ACTIVE — EXPAND ===== */
.vvt-tab-item.vvt-tab--active {
  flex-basis: 100%;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.2),
    0 16px 48px rgba(0,0,0,.3);
}

/* Remove overlay so bg image shows */
.vvt-tab-item.vvt-tab--active::before {
  background: rgba(0,0,0,.06);
}

/* ===== ROTATED LABEL — COLLAPSED ===== */
.vvt-tab-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(90deg);
  white-space: nowrap;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .5px;
  z-index: 2;
  pointer-events: none;
  transition: all .45s cubic-bezier(.4, 0, .2, 1);
}

/* ===== LABEL PILL — EXPANDED ===== */
.vvt-tab-item.vvt-tab--active .vvt-tab-label {
  top: auto;
  bottom: 20px;
  left: 0;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 54px;
  font-size: 1rem;
  font-weight: 600;
  background: rgba(13, 72, 147, .65);
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0 16px;
  text-align: center;
  white-space: normal;
  word-break: break-word;
}

/* ===== PLAY BUTTON ===== */
.vvt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.55);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  z-index: 4;
  transition:
    opacity .35s cubic-bezier(.4, 0, .2, 1),
    transform .35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.vvt-play-btn svg {
  width: 80px;
  height: 56px;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.55));
}

.vvt-tab-item.vvt-tab--active .vvt-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.vvt-play-btn:hover svg path:first-child { fill: #cc0000; }

/* ===== LIGHTBOX ===== */
.vvt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s ease, visibility .3s ease;
}

.vvt-lightbox.vvt-lb--open {
  visibility: visible;
  opacity: 1;
}

.vvt-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.84);
  cursor: pointer;
}

.vvt-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 95vw);
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.65);
}

.vvt-lb-close {
  position: absolute;
  top: 10px; right: 12px;
  z-index: 2;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background .2s;
}

.vvt-lb-close:hover { background: rgba(255,255,255,.3); }

.vvt-lb-video {
  position: relative;
  padding-top: 56.25%;
}

.vvt-lb-video iframe {
  position: absolute;
  inset: 0; width: 100%; height: 100%; border: none;
}

/* ===== EMPTY ===== */
.vvt-empty { text-align: center; color: #888; padding: 40px 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
  .vvt-row { flex-direction: column; gap: 32px; }
  .vvt-left-panel { flex: 0 0 auto; max-width: 100%; width: 100%; }
  .vvt-tabs-wrap { height: 360px; }
}

@media (max-width: 600px) {
  .vvt-app-section { padding: 56px 0; }
  .vvt-tabs-wrap { height: 280px; gap: 8px; }
  .vvt-tab-item { flex-basis: 52px; border-radius: 14px; }
  .vvt-tab-item.vvt-tab--active .vvt-tab-label {
    width: 160px; height: 46px; font-size: .82rem;
  }
  .vvt-play-btn svg { width: 60px; height: 42px; }
}
