/* Trusted By Section Styles */
.trusted-by-section {
  padding: 80px 0;
  background-color: #fdfdfd;
  border-top: 1px solid #f1f1f1;
  border-bottom: 1px solid #f1f1f1;
  position: relative;
  overflow: hidden;
}

/* Section Title spacing override if needed */
.trusted-by-section .section-heading {
  margin-bottom: 50px;
}

.trusted-by-section .section-heading h2 {
  font-size: 36px;
  font-weight: 600;
  color: #1e1e1e;
}

.trusted-by-section .section-heading em {
  font-style: normal;
  color: #f58220;
}

/* Tabs Navigation Styling */
.tabs-container-outer {
  position: relative;
  margin-bottom: 45px;
  display: flex;
  align-items: center;
  width: 100%;
}

.tabs-navigation-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding: 8px 4px;
  scroll-behavior: smooth;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

.tabs-navigation-wrapper::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Scroll Indicators for Mobile / Overflow */
.tabs-scroll-indicator {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  z-index: 10;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #666;
  border: 1px solid #e0e0e0;
  transition: all 0.25s ease;
}

.tabs-scroll-indicator:hover {
  background: #f58220;
  color: #fff;
  border-color: #f58220;
}

.tabs-scroll-indicator.left {
  left: -18px;
}

.tabs-scroll-indicator.right {
  right: -18px;
}

/* Tab Pill Button */
.category-tab-btn {
  background-color: #ffffff;
  color: #666666;
  border: 1px solid #e0e0e0;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  user-select: none;
}

.category-tab-btn:hover {
  background-color: #fcfcfc;
  border-color: #a0a0a0;
  color: #222222;
}

.category-tab-btn:focus-visible {
  outline: 2px solid #f58220;
  outline-offset: 2px;
}

/* Active Tab State */
.category-tab-btn.active {
  background-color: #f58220;
  color: #ffffff;
  border-color: #f58220;
  box-shadow: 0 4px 12px rgba(245, 130, 32, 0.25);
}

/* Logos Grid Layout */
.logos-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  transition: opacity 0.25s ease, transform 0.25s ease;
  min-height: 120px;
}

/* Grid Fade Animations */
.logos-grid-wrapper.fade-out {
  opacity: 0;
  transform: translateY(15px);
}

.logos-grid-wrapper.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Logo Card Container */
.logo-card-item {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  outline: none;
}

.logo-card-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  opacity: 0.95;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateZ(0); /* Enable hardware acceleration */
}

/* Hover Effects */
.logo-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: #f58220;
}

.logo-card-item:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.logo-card-item:focus-visible {
  outline: 2px solid #f58220;
  border-color: #f58220;
  border-radius: 12px;
}

/* Responsive Rules */
/* Desktop: 5-6 logos per row */
@media (max-width: 1200px) {
  .logos-grid-wrapper {
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
  }
  .logo-card-item {
    height: 110px;
    padding: 20px;
  }
}

/* Tablet: 3-4 logos per row */
@media (max-width: 991px) {
  .logos-grid-wrapper {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .logo-card-item {
    height: 100px;
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .trusted-by-section {
    padding: 60px 0;
  }
  .logos-grid-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  /* Show horizontal scrolling indicators if navigation overflows */
  .tabs-scroll-indicator {
    display: flex;
  }
}

/* Mobile: 2 logos per row, horizontal scrollable tabs */
@media (max-width: 480px) {
  .logos-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .logo-card-item {
    height: 90px;
    padding: 12px;
  }
  .category-tab-btn {
    padding: 8px 18px;
    font-size: 13px;
  }
  .trusted-by-section .section-heading {
    margin-bottom: 35px;
  }
}
