/* Tabs (O nama / Naša misija / Naša vizija): smooth switch animation */
.elementor-element-0dd9532 .elementor-widget-container {
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

.ht-tab .ht-tab-content {
  position: relative;
  min-height: 300px;
}
.ht-tab .ht-tab-pane {
  /* override themes that use display:none (can't animate); we animate opacity/transform instead */
  display: block !important;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 400ms cubic-bezier(0.4, 0, 0.2, 1), 
              transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.ht-tab .ht-tab-pane.tab-active {
  position: relative;
  inset: auto;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tab buttons: enhanced hover + active highlight */
.ht-tab .tab-menu {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  width: fit-content;
  margin-left: 0;
  margin-right: auto;
}

.ht-tab .tab-menu .tab-a {
  position: relative;
  padding: 12px 24px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  overflow: hidden;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  display: inline-block;
}

.ht-tab .tab-menu .tab-a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(79, 175, 230, 0.2), transparent);
  transition: left 500ms ease;
}

.ht-tab .tab-menu .tab-a:hover::before {
  left: 100%;
}

.ht-tab .tab-menu .tab-a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(53, 114, 194, 0.15);
}

.ht-tab .tab-menu .tab-a.active-a {
  box-shadow: 0 8px 24px rgba(53, 114, 194, 0.25);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--futura-primary), var(--futura-accent));
  color: #ffffff !important;
}

/* Tab content animations */
.ht-tab .ht-tab-pane p {
  animation: fadeInUp 0.3s ease-out;
  animation-fill-mode: both;
  margin-bottom: 30px;
  color: #666;
  line-height: 1.7;
  font-size: 16px;
}

.ht-tab .ht-tab-pane.tab-active p {
  animation-delay: 0.05s;
}

.ht-tab .ht-tab-pane .tab-list {
  animation: fadeInUp 0.3s ease-out;
  animation-fill-mode: both;
}

.ht-tab .ht-tab-pane.tab-active .tab-list {
  animation-delay: 0.1s;
}

.ht-tab .ht-tab-pane .tab-list li {
  animation: fadeInLeft 0.25s ease-out;
  animation-fill-mode: both;
  opacity: 0;
}

.ht-tab .ht-tab-pane.tab-active .tab-list li {
  opacity: 1;
}

.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(1) { animation-delay: 0.15s; }
.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(2) { animation-delay: 0.18s; }
.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(3) { animation-delay: 0.2s; }
.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(4) { animation-delay: 0.23s; }
.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(5) { animation-delay: 0.25s; }
.ht-tab .ht-tab-pane.tab-active .tab-list li:nth-child(6) { animation-delay: 0.28s; }

/* Tab list - two columns layout */
.ht-tab .tab-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.ht-tab .tab-list ul li {
  margin: 0;
  padding: 0;
  padding-left: 0 !important;
  position: relative;
}

.ht-tab .tab-list ul li::before {
  content: '' !important;
  display: none !important;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .ht-tab .tab-list ul {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

