/* ============================================================================================================================= */
/* ============================================ PARTNERS & CLIENTS SECTION - CLEAN DESIGN ===================================== */
/* ============================================================================================================================= */

#partners-clients {
  display: block !important;
  visibility: visible !important;
  padding: 2rem 0;
  background-color: #E0E8F0;
  position: relative;
  overflow: hidden;
  height: auto !important;
  margin: 0 !important;
}

.pc-container {
  display: block !important;
  visibility: visible !important;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  height: auto !important;
}

/* Section Styling */
.pc-section {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 1.5rem;
  height: auto !important;
}

.pc-section:last-child {
  margin-bottom: 0;
}

/* Header */
.pc-header {
  text-align: center;
  margin-bottom: 1rem;
}

.pc-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #020035;
  margin: 0 0 1rem 0;
  position: relative;
  display: inline-block;
}

.pc-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00aeef, transparent);
  border-radius: 2px;
}

.pc-description {
  font-size: 1.1rem;
  color: #666;
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-weight: 300;
}

/* Logos Container */
.pc-logos-container {
  position: relative;
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  overflow: hidden;
  padding: 0.8rem 0;
}

.pc-logos-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.pc-logos-row {
  display: flex;
  gap: 2rem;
  animation: slideLeft 30s linear infinite;
  will-change: transform;
}

.pc-slider-right .pc-logos-row {
  animation: slideRight 30s linear infinite;
}

/* Logo Wrapper */
.pc-logo-wrapper {
  flex-shrink: 0;
  width: 180px;
  height: auto;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 12px;
  padding: 0.8rem 0.8rem 0.6rem 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  margin: 10px 0;
  gap: 0.5rem;
}

.pc-logo-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 174, 239, 0.2);
  border: 2px solid #00aeef;
}

.pc-logo {
  max-width: 100%;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.pc-logo-wrapper:hover .pc-logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Company Name */
.pc-company-name {
  display: block;
  color: #020035;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color 0.3s ease;
}

.pc-logo-wrapper:hover .pc-company-name {
  color: #00aeef;
}

/* Fallback Text */
.pc-logo-wrapper.has-text::after {
  content: attr(data-company);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #020035;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
}

/* Animations */
@keyframes slideLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-180px * 6 - 2rem * 5));
  }
}

@keyframes slideRight {
  0% {
    transform: translateX(calc(-180px * 6 - 2rem * 5));
  }
  100% {
    transform: translateX(0);
  }
}

/* Pause on hover */
.pc-logos-container:hover .pc-logos-row {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .pc-logo-wrapper {
    width: 160px;
    min-height: 130px;
    padding: 0.7rem 0.7rem 0.5rem 0.7rem;
    gap: 0.4rem;
  }
  
  .pc-logo {
    max-height: 70px;
  }
  
  .pc-company-name {
    font-size: 0.8rem;
  }
  
  .pc-logos-row {
    gap: 1.8rem;
  }
  
  @keyframes slideLeft {
    100% {
      transform: translateX(calc(-160px * 6 - 1.8rem * 5));
    }
  }
  
  @keyframes slideRight {
    0% {
      transform: translateX(calc(-160px * 6 - 1.8rem * 5));
    }
  }
}

@media (max-width: 768px) {
  #partners-clients {
    padding: 1.5rem 0;
  }
  
  .pc-container {
    padding: 0 1.5rem;
  }
  
  .pc-logos-container {
    width: calc(100% + 3rem);
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }
  
  .pc-title {
    font-size: 2rem;
  }
  
  .pc-description {
    font-size: 1rem;
  }
  
  .pc-logo-wrapper {
    width: 140px;
    min-height: 120px;
    padding: 0.6rem 0.6rem 0.5rem 0.6rem;
    gap: 0.4rem;
  }
  
  .pc-logo {
    max-height: 60px;
  }
  
  .pc-company-name {
    font-size: 0.75rem;
  }
  
  .pc-logos-row {
    gap: 1.5rem;
  }
  
  @keyframes slideLeft {
    100% {
      transform: translateX(calc(-140px * 6 - 1.5rem * 5));
    }
  }
  
  @keyframes slideRight {
    0% {
      transform: translateX(calc(-140px * 6 - 1.5rem * 5));
    }
  }
}

@media (max-width: 480px) {
  .pc-title {
    font-size: 1.75rem;
  }
  
  .pc-logo-wrapper {
    width: 120px;
    min-height: 110px;
    padding: 0.5rem 0.5rem 0.4rem 0.5rem;
    gap: 0.3rem;
  }
  
  .pc-logo {
    max-height: 50px;
  }
  
  .pc-company-name {
    font-size: 0.7rem;
  }
  
  .pc-logos-row {
    gap: 1.2rem;
  }
  
  @keyframes slideLeft {
    100% {
      transform: translateX(calc(-120px * 6 - 1.2rem * 5));
    }
  }
  
  @keyframes slideRight {
    0% {
      transform: translateX(calc(-120px * 6 - 1.2rem * 5));
    }
  }
}
