/* ==== Clients Section ==== */

/* ==== TEXT SELECTION COLOR ==== */
::selection {
    background-color: #ff8c00; /* نارنجی */
    color: white;
}

::-moz-selection {
    background-color: #ff8c00; /* نارنجی برای فایرفاکس */
    color: white;
}

/* ==== end TEXT SELECTION COLOR ==== */
.clients-section {
  padding: 80px 0;
  position: relative;
}

.clients-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.clients-header {
  text-align: center;
  margin-bottom: 60px;
}

.clients-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.clients-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 31.5%;
  transform: translateX(-50%);
  width: 92px;
  height: 4px;
  background: linear-gradient(90deg, #ffca28, #ffc107);
  border-radius: 2px;
}

.clients-header p {
  font-size: 18px;
  color: #546e7a;
  margin-top: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  justify-items: center;
}

.client-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.4s ease;
  max-width: 450px;
  width: 100%;
  position: relative;
}

.client-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0d47a1, #1976d2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.client-card:hover::before {
  transform: scaleX(1);
}

.client-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.client-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-image img {
  width: 53%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.client-card:hover .client-image img {
  transform: scale(1.05);
}

.client-info {
  padding-top: 30px;
  padding-bottom: 15px;
  text-align: center;
}

.client-info h3 {
  font-size: 24px;
  font-weight: 600;
  color: #0d47a1;
  margin-bottom: 12px;
}

.client-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #546e7a;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 991px) {
  .clients-section {
    padding: 60px 0;
  }

  .clients-header h2 {
    font-size: 32px;
  }

  .clients-header p {
    font-size: 16px;
  }

  .clients-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
  }

  .client-image {
    height: 220px;
  }

  .client-info {
    padding: 25px;
  }

  .client-info h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .clients-section {
    padding: 40px 0;
  }

  .clients-header {
    margin-bottom: 40px;
  }

  .clients-header h2 {
    font-size: 28px;
  }

  .clients-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .client-card {
    max-width: 100%;
  }

  .client-image {
    height: 200px;
  }

  .client-info {
    padding: 20px;
  }

  .client-info h3 {
    font-size: 20px;
  }

  .client-info p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .clients-container {
    padding: 0 16px;
  }

  .clients-header h2 {
    font-size: 24px;
  }

  .clients-header p {
    font-size: 15px;
  }

  .client-image {
    height: 180px;
  }

  .client-info {
    padding: 18px;
  }

  .client-info h3 {
    font-size: 18px;
  }

  .client-info p {
    font-size: 14px;
  }

  .clients-header h2::after {
        left: 32%;
        width: 76px;
  }
}