/**
 * Expertise Tabs - Industries & Locations
 * Pixel-perfect design matching provided image
 */

.expertise-tabs-wrapper {
  width: 100%;
}

/* Tab Navigation */
.expertise-tabs-nav {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.expertise-tab-button {
  font-family: "ObviouslyNarrow" !important;
  padding: 16px 70px;
  background: #e8f4ff;
  border: 1px solid #c1e9ff;
  border-radius: 16px 16px 0 0;
  font-size: 24px;
  font-weight: 600;
  color: #174d6b;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
  position: relative;
  z-index: 2;
}

.expertise-tab-button:hover {
  background: #d4ebff;
}

.expertise-tab-button.active {
  border: 1px solid #ffffff;
  background: #ffffff;
}

/* Tab Content */
.expertise-tabs-content {
  position: relative;
  background: #ffffff;
  border-radius: 0 16px 16px 16px;
  padding: 32px 10px 32px 32px;
}

.expertise-tab-pane {
  display: none;
  animation: fadeIn 0.4s ease;
  max-height: 160px;
  overflow-y: auto;
  overflow-x: hidden;
}

.expertise-tab-pane.active {
  display: block;
}

/* Custom Scrollbar */
.expertise-tab-pane::-webkit-scrollbar {
  width: 12px;
}

.expertise-tab-pane::-webkit-scrollbar-track {
  background: #f1f1f2;
  border-radius: 8px;
}

.expertise-tab-pane::-webkit-scrollbar-thumb {
  background: #bec0c5;
  border-radius: 8px;
}

.expertise-tab-pane::-webkit-scrollbar-thumb:hover {
  background: #2aa5e6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Items Grid */
.expertise-items-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-right: 12px;
}

.expertise-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: #e8f4ff;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #3dbaff 0%, #60c8ff 100%);
  transition: width 0.4s ease;
  z-index: 0;
}

.expertise-item:hover::before {
  width: 100%;
}

.expertise-item:hover {
  /* transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(61, 186, 255, 0.25); */
}

.expertise-item:hover .expertise-item-text {
  color: #ffffff;
}

.expertise-item:hover .expertise-item-icon {
  background: #ffffff;
}

/* .expertise-item:hover .expertise-item-icon svg path {
  stroke: #3dbaff;
} */

.expertise-item-text {
  font-family: "NeueMontreal" !important;
  font-size: 20px;
  font-weight: 500;
  color: #350f6b;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.expertise-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  /* background: #3dbaff; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  overflow: hidden;
}

.expertise-item-icon svg {
  width: 20px;
  height: 20px;
}

.expertise-item-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive */
@media (max-width: 1200px) {
  .expertise-items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .expertise-tabs-nav {
    gap: 12px;
  }

  .expertise-tab-button {
    padding: 14px 28px;
    font-size: 16px;
  }

  .expertise-tabs-content {
    padding: 24px;
  }

  .expertise-tab-pane {
    max-height: 200px;
  }

  .expertise-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .expertise-item {
    padding: 16px 18px;
  }

  .expertise-item-text {
    font-size: 15px;
  }

  .expertise-item-icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .expertise-tabs-nav {
    /* flex-direction: column; */
  }

  .expertise-tab-button {
    width: 100%;
    text-align: center;
  }

  .expertise-tabs-content {
    padding: 20px;
    /* border-radius: 16px; */
  }

  .expertise-tab-pane {
    max-height: 250px;
  }

  .expertise-items-grid {
    grid-template-columns: 1fr;
  }
}
