.hdev-logo-wrap {
  position: relative;
  width: 100%;
  padding: 20px 45px;
}

.hdev-logo-swiper {
  width: 100%;
}

@media (max-width: 767px) {
  .hdev-logo-wrap {
    padding-left: 0;
    padding-right: 0;
  }
  .hdev-logo-swiper {
    /* Approximate item height + gap: 120px item height, 15px gap */
    height: calc(
      (120px * var(--mobile-rows)) + (15px * (var(--mobile-rows) - 1))
    );
  }
}

@media (min-width: 768px) {
  .hdev-logo-swiper {
    height: 90px;
  }
}

.hdev-logo-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(
    (100% - 15px * (var(--mobile-rows) - 1)) / var(--mobile-rows)
  ) !important;
}

@media (min-width: 768px) {
  .hdev-logo-slide {
    height: 100% !important;
  }
}

.hdev-logo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
}

.hdev-logo-inner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Swiper navigation tweaks */
.hdev-logo-wrap .swiper-button-next,
.hdev-logo-wrap .swiper-button-prev {
  color: #333;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: -18px; /* Center alignment */
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10;
}

.hdev-logo-wrap .swiper-button-next:after,
.hdev-logo-wrap .swiper-button-prev:after {
  font-size: 16px;
  font-weight: bold;
}

.hdev-logo-wrap .swiper-button-prev {
  left: 0;
}

.hdev-logo-wrap .swiper-button-next {
  right: 0;
}

@media (max-width: 767px) {
  .hdev-logo-wrap .swiper-button-next,
  .hdev-logo-wrap .swiper-button-prev {
    display: none !important;
  }
}
