/**
 * =====================================================
 * Partners Slider Section Styles
 * Path: assets/css/partners.css
 * =====================================================
 */

/* Section Layout */
.partners-section {
  padding: 100px 0;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Header Typography */
.partners-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.partners-header h2 {
  font-size: 42px;
  color: #004B2D;
  font-weight: 800;
  margin: 15px 0 20px;
}

.partners-header h2 span {
  color: #F7941D;
}

/* Swiper Outer Container */
.bhn-partners-slider {
  padding: 20px 15px 60px 15px !important;
  position: relative;
  overflow: hidden;
}

.bhn-partners-slider .swiper-wrapper {
  display: flex;
  align-items: center;
}

.bhn-partners-slider .swiper-slide {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Fixed Partner Card Box */
.partner-card {
  background: #ffffff;
  border: 1px solid #e9eff3;
  border-radius: 14px;
  padding: 15px;
  width: 100%;
  height: 120px !important; /* Locks container height */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.4s ease-in-out;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  box-sizing: border-box !important;
  overflow: hidden !important; /* Prevents image escape */
}

.partner-card a {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none;
}

/* Strict Image Containment */
.partner-card img {
  max-width: 90% !important;
  max-height: 75px !important; /* Forces vertical logos inside card */
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.4s ease-in-out;
}

/* Fallback Text Styling (If Image File Missing) */
.partner-fallback-text {
  font-size: 14px;
  font-weight: 600;
  color: #004B2D;
  text-align: center;
  line-height: 1.3;
}

/* Hover Effects */
.partner-card:hover {
  transform: translateY(-6px);
  border-color: #F7941D;
  box-shadow: 0 12px 28px rgba(247, 148, 29, 0.15);
}

.partner-card:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Navigation Arrows */
.bhn-partners-slider .swiper-button-next,
.bhn-partners-slider .swiper-button-prev {
  color: #00843D;
  background: #ffffff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.bhn-partners-slider .swiper-button-prev {
  left: 0;
}

.bhn-partners-slider .swiper-button-next {
  right: 0;
}

.bhn-partners-slider .swiper-button-next::after,
.bhn-partners-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}

.bhn-partners-slider .swiper-button-next:hover,
.bhn-partners-slider .swiper-button-prev:hover {
  background: #00843D;
  color: #ffffff;
  transform: scale(1.05);
}

/* Pagination Dots */
.bhn-partners-slider .swiper-pagination-bullet {
  background: #cbd5e1;
  opacity: 1;
  width: 10px;
  height: 10px;
  margin: 0 6px !important;
  transition: all 0.3s ease;
}

.bhn-partners-slider .swiper-pagination-bullet-active {
  background: #F7941D;
  width: 26px;
  border-radius: 12px;
}

/* Responsive Rules */
@media (max-width: 991px) {
  .partners-section {
    padding: 80px 0;
  }

  .partners-header h2 {
    font-size: 34px;
  }

  .partner-card {
    height: 100px !important;
  }

  .partner-card img {
    max-height: 60px !important;
  }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 60px 0;
  }

  .partners-header h2 {
    font-size: 28px;
  }

  .bhn-partners-slider .swiper-button-next,
  .bhn-partners-slider .swiper-button-prev {
    display: none;
  }

  .partner-card img {
    filter: grayscale(0%);
    opacity: 1;
    max-height: 50px !important;
  }
}