/* Testimonials Section */
.testimonials {
  text-align: center;
  padding: 80px 10%;
  background: #fff;
}

.testimonials h2 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 40px;
  text-align: left;
}

.testimonial-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  word-wrap: break-word;
  overflow: hidden;
  box-sizing: border-box;
  height: 100%;
}
/* 
.card:hover {
  border: 2px solid #007bff;
  transform: translateY(-3px);
} */

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border: 2px solid #007bff;
    transform: translateY(-3px);
  }
}

.card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  margin-top: 10px;
  margin-bottom: 15px;
  word-break: break-word; /* ✅ Keeps long text inside card */
  overflow-wrap: break-word; /* ✅ Prevents overflow */
}

.quote {
  color: #ff4b2b;
  font-size: 2rem;
  margin-bottom: 5px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.client-info h4 {
  font-size: 1rem;
  margin: 0;
  color: #111;
}

.client-info p {
  font-size: 0.85rem;
  color: #777;
  margin: 0;
}

.swipe-hint {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 15px;
  display: none; /* hidden by default */
}

/* Make testimonial cards horizontally scrollable on small screens */
@media (max-width: 600px) {
  .testimonial-cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding-bottom: 15px;
  }

  .testimonial-cards::-webkit-scrollbar {
    display: none;
  }

  .card {
    max-width: 280px; /* Width of each card in slider */
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .swipe-hint {
    display: block;
    text-align: left;
    font-weight: 500;
    opacity: 0.8;
  }
}

/* ============================================Career Section ============================================================ */
.career-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #e6f6f8;
  padding-left: 10%;
  gap: 40px;
}

.career-content {
  flex: 1;
  min-width: 280px;
}

.career-content h2 {
  font-size: 2rem;
  color: #111;
  margin-bottom: 20px;
}

.career-content p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 30px;
}

.buttons {
  display: flex;
  gap: 15px;
}

.btn-outline {
  padding: 10px 18px;
  border: 2px solid #111;
  border-radius: 5px;
  text-decoration: none;
  color: #111;
  font-weight: 500;
  transition: 0.3s;
}

.btn-outline:hover {
  background: #111;
  color: #fff;
}

.btn-fill {
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.btn-fill:hover {
  background: #333;
}

.career-image img {
  width: 400px;
  max-width: 100%;
  object-fit: cover;
}

@media (max-width: 375px) {
  .buttons {
    flex-direction: column;
  }
}
@media (max-width: 400px) {
  .career-section {
    padding: 0 10%;
  }
}
