/* ── Partners Carousel Section ──────────────────────────────────────────────── */

.partners-section {
  background-color: #f8f9fa;
  padding: 60px 0;
  position: relative;
}

.partners-section h2 {
  color: #1A3A5C;
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 2rem;
  letter-spacing: -0.5px;
}

/* ── Partner Items ─────────────────────────────────────────────────────────── */

.partner-item {
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: all 0.3s ease;
}

.partner-item img {
  max-height: 80px;
  max-width: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.75;
  filter: grayscale(10%);
}

.partner-item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.partner-item a:hover img {
  opacity: 1;
  transform: scale(1.05);
  filter: grayscale(0%);
}

.partner-item p {
  font-size: 0.85rem;
  color: #666;
  margin-top: 10px;
  text-align: center;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ── Owl Carousel Customization ────────────────────────────────────────────── */

.partners-carousel.owl-carousel {
  margin: 0;
}

.partners-carousel .owl-stage {
  padding: 20px 0;
}

.partners-carousel .owl-item {
  padding: 0 10px;
}

.partners-carousel .owl-controls {
  margin-top: 20px;
}

.partners-carousel .owl-dots {
  text-align: center;
  margin-top: 20px;
}

.partners-carousel .owl-dots .owl-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: background 0.3s ease;
}

.partners-carousel .owl-dots .owl-dot.active {
  background: #1A3A5C;
}

.partners-carousel .owl-dots .owl-dot:hover {
  background: #888;
}

.partners-carousel .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.partners-carousel .owl-nav button {
  pointer-events: all;
  background: rgba(26, 58, 92, 0.7) !important;
  color: #fff !important;
  border: none !important;
  outline: none !important;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.3s ease;
  cursor: pointer;
}

.partners-carousel .owl-nav button:hover {
  background: rgba(0, 168, 150, 0.9) !important;
}

.partners-carousel .owl-nav button.owl-prev {
  margin-right: auto;
}

.partners-carousel .owl-nav button.owl-next {
  margin-left: auto;
}

/* ── Responsive Adjustments ────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .partners-section {
    padding: 40px 0;
  }

  .partners-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
  }

  .partner-item {
    padding: 12px 8px;
    min-height: 110px;
  }

  .partner-item img {
    max-height: 60px;
  }

  .partners-carousel .owl-nav button {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .partners-section {
    padding: 25px 0;
  }

  .partners-section h2 {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  .partner-item {
    padding: 10px 8px;
    min-height: 100px;
  }

  .partner-item img {
    max-height: 50px;
  }

  .partner-item p {
    font-size: 0.75rem;
    margin-top: 6px;
  }

  .partners-carousel .owl-nav button {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
}

/* ── Dark mode support (if needed) ──────────────────────────────────────────── */

@media (prefers-color-scheme: dark) {
  .partners-section {
    background-color: #1a1a1a;
  }

  .partners-section h2 {
    color: #ffffff;
  }

  .partner-item p {
    color: #aaa;
  }

  .partners-carousel .owl-dots .owl-dot {
    background: #444;
  }

  .partners-carousel .owl-dots .owl-dot.active {
    background: #fff;
  }
}
