.our_clients_section {
  width: 100%;
  padding: 100px 0;
  /* background: #ffffff; */
  overflow: hidden;
}

/* =========================
   CLIENT GRID
========================= */

.our_clients_section .our_clients_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* =========================
   CLIENT CARD
========================= */

.our_clients_section .client_logo_card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 220px;
  padding: 35px;

  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 18px;

  text-decoration: none;
  overflow: hidden;

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.our_clients_section .client_logo_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 4px;

  background: linear-gradient(90deg, #3ca9e4);

  transform: scaleX(0);
  transform-origin: left;

  transition: transform 0.4s ease;
}

.our_clients_section .client_logo_card:hover {
  transform: translateY(-8px);
  border-color: #dddddd;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.our_clients_section .client_logo_card:hover::before {
  transform: scaleX(1);
}

/* =========================
   LOGO
========================= */

.our_clients_section .client_logo_wrapper {
  width: 65%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.our_clients_section .client_logo {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: contain;

  filter: grayscale(100%);
  opacity: 0.75;

  transition:
    filter 0.4s ease,
    opacity 0.4s ease,
    transform 0.4s ease;
}

.our_clients_section .client_logo_card:hover .client_logo {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}

/* =========================
   OVERLAY
========================= */

.our_clients_section .client_card_overlay {
  position: absolute;

  left: 18px;
  right: 18px;
  bottom: 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 10px 14px;

  border-radius: 10px;

  background: rgba(255, 255, 255, 0.95);

  transform: translateY(70px);
  opacity: 0;

  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.our_clients_section .client_logo_card:hover .client_card_overlay {
  transform: translateY(0);
  opacity: 1;
}

.our_clients_section .client_card_overlay span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: #111111;
}

.our_clients_section .client_visit_icon {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: #3ca9e4;
  color: #ffffff;

  font-size: 16px;

  transition: transform 0.3s ease;
}

.our_clients_section .client_logo_card:hover .client_visit_icon {
  transform: rotate(45deg);
}

/* =========================
   TABLET
========================= */

@media (max-width: 1199.98px) {
  .our_clients_section .our_clients_grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .our_clients_section .client_logo_card {
    min-height: 200px;
  }
}

/* =========================
   TABLET / MOBILE
========================= */

@media (min-width: 0px) and (max-width: 768.98px) {
  .our_clients_section {
    padding: 70px 0;
  }

  .our_clients_heading {
    margin-bottom: 40px;
  }

  .our_clients_section .our_clients_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .our_clients_section .client_logo_card {
    min-height: 170px;
    padding: 20px;
    border-radius: 14px;
  }

  .our_clients_section .client_logo_wrapper {
    height: 100px;
  }

  .our_clients_section .client_logo {
    filter: grayscale(0%);
  }

  /* Keep client information visible on mobile */
  .our_clients_section .client_card_overlay {
    left: 10px;
    right: 10px;
    bottom: 10px;

    padding: 7px 10px;

    transform: translateY(0);
    opacity: 1;
  }

  .our_clients_section .client_card_overlay span:first-child {
    font-size: 11px;
  }

  .our_clients_section .client_visit_icon {
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .our_clients_section .client_logo_card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(90deg, #3ca9e4);

    transform: scaleX(100%);
    transform-origin: left;

    transition: transform 0.4s ease;
  }
}

/* =========================
   SMALL MOBILE
========================= */

@media (min-width: 0px) and (max-width: 575.98px) {
  .our_clients_section {
    padding: 55px 0;
  }

  .our_clients_section .client_visit_icon {
    transform: rotate(45deg);
  }

  .our_clients_section .our_clients_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .our_clients_section .client_logo_card {
    min-height: 145px;
    padding: 15px;
  }

  .our_clients_section .client_logo_wrapper {
    height: 80px;
  }

  .our_clients_section .client_logo {
    filter: grayscale(0%);
  }

  .our_clients_heading h2 {
    font-size: 34px;
  }

  .our_clients_heading p {
    font-size: 14px;
  }
}
