/**
 * Enjoy Holiday Hub - Custom Travel Partners Stylesheet
 * Brand colors: Navy #14213D, Red #E72E2E, Text #172033, BG #F8FAFC, Border #E2E8F0
 */

.partners-section-custom {
  position: relative;
  background-color: #f8fafc;
  padding: 85px 0 80px;
  overflow: hidden;
  border-top: 1px solid #eef2f6;
  border-bottom: 1px solid #eef2f6;
}

/* Subtle background network grid or radial accents */
.partners-section-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 350px;
  background: radial-gradient(circle, rgba(231, 46, 46, 0.035) 0%, rgba(20, 33, 61, 0.02) 60%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Section Header */
.partners-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 35px;
}

.partners-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(231, 46, 46, 0.08);
  color: #e72e2e;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 12px;
  border: 1px solid rgba(231, 46, 46, 0.18);
}

.partners-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  color: #14213d;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.partners-header h2 .highlight-partners {
  color: #e72e2e;
  position: relative;
  display: inline-block;
}

.partners-header p.sub-title {
  color: #64748b;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Category Navigation Tabs */
.partners-nav-wrapper {
  position: relative;
  z-index: 1;
  margin-bottom: 35px;
  display: flex;
  justify-content: center;
}

.partners-nav-pills {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 60px;
  box-shadow: 0 4px 18px rgba(20, 33, 61, 0.06);
  border: 1px solid #e2e8f0;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}

.partners-nav-pills::-webkit-scrollbar {
  display: none;
}

.partners-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  background: transparent;
  border: 1px solid transparent;
  color: #14213d;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.partners-tab-btn i {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.partners-tab-btn:hover {
  background: rgba(20, 33, 61, 0.04);
  color: #e72e2e;
}

.partners-tab-btn:hover i {
  transform: scale(1.15);
}

.partners-tab-btn.active {
  background: #e72e2e !important;
  color: #ffffff !important;
  border-color: #e72e2e !important;
  box-shadow: 0 6px 18px rgba(231, 46, 46, 0.32);
}

.partners-tab-btn.active i {
  color: #ffffff !important;
}

/* ========================================= */
/* LOGO SHOWCASE & MARQUEE CAROUSEL          */
/* ========================================= */
.partners-carousel-wrapper {
  position: relative;
  z-index: 1;
  padding: 10px 0;
}

/* Navigation Arrow Controls */
.partners-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(20, 33, 61, 0.12);
  color: #14213d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.partners-nav-arrow:hover {
  background: #e72e2e;
  color: #ffffff;
  border-color: #e72e2e;
  box-shadow: 0 8px 24px rgba(231, 46, 46, 0.35);
  transform: translateY(-50%) scale(1.08);
}

.partners-nav-prev {
  left: -20px;
}

.partners-nav-next {
  right: -20px;
}

/* Marquee / Slider Track Container */
.partners-track-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px;
}

.partners-track-container::-webkit-scrollbar {
  display: none;
}

.partners-logos-grid {
  display: flex;
  align-items: center;
  gap: 18px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Partner Logo Card */
.partner-logo-card {
  flex: 0 0 calc((100% - 108px) / 7); /* Approx 7 items per view on 1200px+ */
  min-width: 155px;
  height: 82px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.04);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  position: relative;
  user-select: none;
}

.partner-logo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(20, 33, 61, 0.1);
  border-color: #cbd5e1;
}

.partner-logo-img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease;
  filter: grayscale(15%);
  opacity: 0.95;
}

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

.partner-verified-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 0.65rem;
  color: #10b981;
  display: none; /* Subtly indicated */
}

/* Partner Subtitle / Type Tooltip on hover */
.partner-logo-tooltip {
  position: absolute;
  bottom: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #14213d;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 20;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.partner-logo-card:hover .partner-logo-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Trust Statement Bottom Strip */
.partners-trust-strip {
  margin-top: 36px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.partners-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 14px rgba(20, 33, 61, 0.04);
  font-size: 0.85rem;
  color: #475569;
  font-weight: 600;
}

.partners-trust-badge i {
  color: #10b981;
  font-size: 1rem;
}

.partners-trust-badge span.dot-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .partner-logo-card {
    flex: 0 0 calc((100% - 72px) / 5); /* 5 items per view */
  }
}

@media (max-width: 991px) {
  .partners-section-custom {
    padding: 65px 0 60px;
  }
  .partners-header h2 {
    font-size: 2rem;
  }
  .partner-logo-card {
    flex: 0 0 calc((100% - 54px) / 4); /* 4 items per view */
    min-width: 140px;
    height: 76px;
  }
}

@media (max-width: 768px) {
  .partners-section-custom {
    padding: 50px 0 45px;
  }
  .partners-header h2 {
    font-size: 1.65rem;
  }
  .partners-nav-arrow {
    display: none; /* Swipe on mobile */
  }
  .partner-logo-card {
    flex: 0 0 calc((100% - 24px) / 2.5); /* 2.5 items per view */
    min-width: 125px;
    height: 70px;
    padding: 8px 12px;
  }
  .partner-logo-img {
    max-height: 32px;
  }
  .partners-trust-badge {
    flex-direction: column;
    gap: 4px;
    padding: 10px 18px;
    border-radius: 16px;
  }
  .partners-trust-badge span.dot-sep {
    display: none;
  }
}
