* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

.ourExpertEmployees-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #ffffff;
  min-height: auto;
  margin-top: 40px;
  margin-bottom: 20px;
}

.ourExpertEmployees-container {
  width: 100%;
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}

.ourExpertEmployees-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1F2937;
}

.ourExpertEmployees-highlight {
  color: #FFC107;
}

.ourExpertEmployees-description {
  color: #6B7280;
  margin-bottom: 24px;
  font-size: 0.875rem;
}

/* .ourExpertEmployees-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 8px;
  row-gap: 8px;
} */

.ourExpertEmployees-card {
  position: relative;
  background-color: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.3s;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.ourExpertEmployees-card:hover {
  transform: scale(1.05);
}

.ourExpertEmployees-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ourExpertEmployees-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.ourExpertEmployees-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(234, 179, 8, 0.7);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.ourExpertEmployees-card:hover .ourExpertEmployees-overlay {
  transform: translateX(0);
}

.ourExpertEmployees-social-links {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateX(-40px) rotate(-45deg);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.ourExpertEmployees-card:hover .ourExpertEmployees-social-links {
  opacity: 1;
  transform: translateX(0) rotate(0);
}

.ourExpertEmployees-social-link {
  background-color: #E5E7EB;
  padding: 5px;
  border-radius: 50%;
  display: inline-flex;
  transition: background-color 0.3s;
}

.ourExpertEmployees-social-link:hover {
  background-color: #D1D5DB;
}

.ourExpertEmployees-social-link svg {
  width: 14px;
  height: 14px;
  fill: #000000 !important;
}

.ourExpertEmployees-social-link:nth-child(1) { transition-delay: 0ms; }
.ourExpertEmployees-social-link:nth-child(2) { transition-delay: 100ms; }
.ourExpertEmployees-social-link:nth-child(3) { transition-delay: 200ms; }
.ourExpertEmployees-social-link:nth-child(4) { transition-delay: 300ms; }

.ourExpertEmployees-info {
  padding: 12px; /* Match allEmployees-employee-info padding */
  background-color: #E5E7EB;
  position: relative;
  transition: background-color 0.3s;
  min-height: 60px; /* Keep for consistency */
}

.ourExpertEmployees-name {
  font-size: 0.725rem; /* Match allEmployees-employee-name */
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 4px;
  text-align: center; /* Center the text */
  margin-left: -10px; /* Shift 10px to the left */
}

.ourExpertEmployees-role {
  color: #4B5563;
  font-size: 0.6rem; /* Match allEmployees-employee-role */
  text-align: center; /* Center the text */
  white-space: nowrap; /* Prevent text wrapping */
}

/* Extra small screens (<320px) */
@media (max-width: 319px) {
  .ourExpertEmployees-section {
    padding: 8px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .ourExpertEmployees-heading {
    font-size: 1.25rem;
  }

  .ourExpertEmployees-description {
    font-size: 0.75rem;
    margin-bottom: 16px;
  }

  .ourExpertEmployees-grid {
    column-gap: 6px;
    row-gap: 20px;
  }

  .ourExpertEmployees-card {
    max-width: 160px;
  }

  .ourExpertEmployees-image-container {
    aspect-ratio: 3 / 4;
  }

  .ourExpertEmployees-info {
    padding: 12px;
    min-height: 50px;
  }

  .ourExpertEmployees-name {
    font-size: 0.725rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.6rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 4px;
  }

  .ourExpertEmployees-social-link svg {
    width: 10px;
    height: 10px;
  }
}

/* Mobile (320px to 639px) */
@media (min-width: 320px) and (max-width: 639px) {
  .ourExpertEmployees-section {
    /* padding: 12px; */
    /* margin-top: 40px; */
    margin-bottom: 20px;
    margin-top: 5px;
  }

  .ourExpertEmployees-heading {
    font-size: 1.375rem;
  }

  .ourExpertEmployees-description {
    font-size: 0.8125rem;
  }

  .ourExpertEmployees-grid {
    column-gap: 6px;
    row-gap: 20px;
  }

  .ourExpertEmployees-card {
    max-width: 180px;
  }

  .ourExpertEmployees-info {
    padding: 14px;
    min-height: 50px;
  }

  .ourExpertEmployees-name {
    font-size: 0.8rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.66rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 4px;
  }

  .ourExpertEmployees-social-link svg {
    width: 12px;
    height: 12px;
  }
}

/* Small screens (640px to 767px) */
@media (min-width: 640px) {
  .ourExpertEmployees-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
  }

  .ourExpertEmployees-section {
    padding: 16px;
    /* margin-top: 50px; */
    margin-bottom: 25px;
  }

  .ourExpertEmployees-heading {
    font-size: 1.5rem;
  }

  .ourExpertEmployees-description {
    font-size: 0.875rem;
  }

  .ourExpertEmployees-info {
    padding: 14px;
    min-height: 60px;
  }

  .ourExpertEmployees-name {
    font-size: 0.85rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.7rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 5px;
  }

  .ourExpertEmployees-social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* Tablet (768px to 1023px) */
@media (min-width: 768px) {
  .ourExpertEmployees-section {
    /* padding: 20px; */
    margin-top: 5px;
    margin-bottom: 30px;
  }

  .ourExpertEmployees-heading {
    font-size: 1.75rem;
  }

  .ourExpertEmployees-description {
    font-size: 0.9375rem;
  }

  .ourExpertEmployees-grid {
    column-gap: 8px;
    row-gap: 8px;
  }

  .ourExpertEmployees-card {
    max-width: 200px;
  }

  .ourExpertEmployees-info {
    padding: 16px;
    min-height: 60px;
  }

  .ourExpertEmployees-name {
    font-size: 0.85rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.725rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 5px;
  }

  .ourExpertEmployees-social-link svg {
    width: 14px;
    height: 14px;
  }
}

/* Desktop (1024px to 1199px) */
@media (min-width: 1024px) {
  .ourExpertEmployees-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 8px;
  }

  .ourExpertEmployees-section {
    padding: 24px;
  }

  .ourExpertEmployees-heading {
    font-size: 2rem;
  }

  .ourExpertEmployees-description {
     font-size: 15px;
    text-align: center; 
  }

  .ourExpertEmployees-card {
    max-width: 220px;
  }

  .ourExpertEmployees-info {
    padding: 16px;
    min-height: 60px;
  }

  .ourExpertEmployees-name {
    font-size: 0.9125rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.7875rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 5px;
  }

  .ourExpertEmployees-social-link svg {
    width: 16px;
    height: 14px;
  }
}

/* Large screens (≥1200px) */
@media (min-width: 1140px) {
  .ourExpertEmployees-section {
    /* padding: 32px; */
    margin-top: 5px;
    margin-bottom: 40px;
  }

  .ourExpertEmployees-heading {
    font-size: 2.25rem;
  }

  .ourExpertEmployees-description {
    font-size: 15px;
    text-align: center;
  }

  .ourExpertEmployees-grid {
    column-gap: 8px;
    row-gap: 8px;
  }

  .ourExpertEmployees-card {
    max-width: 300px;
  }

  .ourExpertEmployees-info {
    padding: 16px;
    min-height: 60px;
  }

  .ourExpertEmployees-name {
    font-size: 0.975rem;
    text-align: center;
    margin-left: -10px;
  }

  .ourExpertEmployees-role {
    font-size: 0.85rem;
    text-align: center;
    white-space: nowrap;
  }

  .ourExpertEmployees-social-link {
    padding: 6px;
  }

  .ourExpertEmployees-social-link svg {
    width: 18px;
    height: 18px;
  }
}

/* Disable hover scale on touch devices */
@media (hover: none) {
  .ourExpertEmployees-card:hover {
    transform: none;
  }
}