/* ==========================================================================
   Theta HVAC - Partner & Client Logo Slider Widget CSS
   (Full Logo Display with Clean Full Hover Overlay)
   ========================================================================== */

.th-partner-widget {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  padding: 10px 0 20px;
}

/* Swiper Container */
.th-partner-slider-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 14px 4px 22px;
}

.th-partner-widget .swiper-wrapper {
  display: flex;
  align-items: center;
  transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
}

.th-partner-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

/* Partner Logo Card (Full Logo Container) */
.th-partner-card {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  min-height: 135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  color: inherit !important;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.35s ease,
              background-color 0.35s ease;
  cursor: pointer;
  overflow: hidden; /* Ensures the overlay covers the card cleanly */
}

/* Card Hover State */
.th-partner-card:hover {
  transform: translateY(-6px);
  border-color: #005b9f;
  box-shadow: 0 16px 36px rgba(0, 91, 159, 0.16);
}

/* Logo Area (Full Display) */
.th-partner-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 85px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.th-partner-card:hover .th-partner-logo-wrap {
  transform: scale(1.08);
}

/* Logo Image (Full Sizing) */
.th-partner-logo-img {
  max-width: 95%;
  max-height: 75px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Grayscale Mode */
.th-partner-grayscale .th-partner-logo-img {
  filter: grayscale(100%);
  opacity: 0.75;
}

.th-partner-grayscale .th-partner-card:hover .th-partner-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback Monogram Badge when no image uploaded */
.th-partner-monogram {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f0fe 100%);
  border: 1px solid #bae6fd;
  color: #005b9f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: background 0.35s ease, color 0.35s ease, transform 0.35s ease;
}

.th-partner-card:hover .th-partner-monogram {
  background: linear-gradient(135deg, #005b9f 0%, #00a8e8 100%);
  color: #ffffff;
  border-color: transparent;
}

/* ==========================================================================
   Full Hover Overlay (Menggantikan Tooltip - Menutupi Kartu Penuh)
   ========================================================================== */
.th-partner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 91, 159, 0.93) 0%, rgba(11, 31, 58, 0.96) 100%);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.35s ease;
  z-index: 10;
  text-align: center;
}

.th-partner-card:hover .th-partner-overlay {
  opacity: 1;
  visibility: visible;
}

/* Overlay Content with Smooth Slide/Scale In */
.th-partner-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(10px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
}

.th-partner-card:hover .th-partner-overlay-content {
  transform: translateY(0) scale(1);
}

/* Nama Logo / Partner */
.th-partner-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0;
  max-width: 100%;
  word-break: break-word;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Underline Accent inside Overlay */
.th-partner-name-line {
  display: block;
  width: 28px;
  height: 2.5px;
  background: #38bdf8;
  border-radius: 2px;
  margin-top: 8px;
  transition: width 0.3s ease;
}

.th-partner-card:hover .th-partner-name-line {
  width: 40px;
}

/* Optional External Link Icon */
.th-partner-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: #38bdf8;
}

/* ==========================================================================
   Swiper Pagination & Navigation Controls
   ========================================================================== */
.th-partner-widget .swiper-pagination {
  position: relative !important;
  bottom: auto !important;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.th-partner-widget .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: #cbd5e1;
  opacity: 1;
  border-radius: 50%;
  transition: all 0.3s ease;
  margin: 0 !important;
}

.th-partner-widget .swiper-pagination-bullet-active {
  width: 26px;
  border-radius: 5px;
  background: linear-gradient(90deg, #005b9f, #00a8e8) !important;
}

/* Arrows */
.th-partner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #005b9f;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
}

.th-partner-arrow:hover {
  background: #005b9f;
  color: #ffffff;
  border-color: #005b9f;
  box-shadow: 0 6px 20px rgba(0, 91, 159, 0.3);
}

.th-partner-arrow-prev {
  left: -10px;
}

.th-partner-arrow-next {
  right: -10px;
}

/* Responsive Breakpoints */
@media (max-width: 767px) {
  .th-partner-card {
    padding: 18px 14px;
    min-height: 115px;
  }

  .th-partner-logo-wrap {
    height: 70px;
  }

  .th-partner-logo-img {
    max-height: 58px;
  }

  .th-partner-name {
    font-size: 13px;
  }
}
