/* Vendor Tiles Compact Design */
.vendor-partners-section {
   background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
   padding: 50px 0 30px 0 !important;
}

/* Add spacing between vendor section and contact section */
.contact-section {
   padding-top: 120px !important;
}

/* Social Media Icons Hover Effects */
.contact-social-link {
   color: #ffffff !important;
   transition: color 0.3s ease;
}

.contact-social-link:hover {
   color: #f4762a !important;
}

/* Policy Links Hover Effects */
.contact-policy-link {
   color: #ffffff !important;
   text-decoration: none;
   transition: color 0.3s ease;
}

.contact-policy-link:hover {
   color: #f4762a !important;
   text-decoration: none;
}

.section-header {
   margin-bottom: 35px;
}

.section-header h2 {
   font-size: 2rem;
   margin-bottom: 10px;
   color: #1a1a1a;
   font-weight: 700;
   letter-spacing: -0.5px;
}

.section-header p {
   font-size: 1rem;
   color: #5a5a5a;
   max-width: 700px;
   margin: 0 auto;
   line-height: 1.4;
}

.vendor-tile-wrapper {
   margin-bottom: 30px;
   height: 100%;
}

.vendor-tile {
   background: white;
   border-radius: 15px;
   padding: 30px;
   box-shadow: 0 10px 30px rgba(0,0,0,0.1);
   transition: transform 0.3s ease;
   height: 100%;
   display: flex;
   flex-direction: column;
   position: relative;
   overflow: hidden;
}

.vendor-tile::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, rgba(244, 118, 42, 0.03) 0%, rgba(244, 118, 42, 0) 100%);
   pointer-events: none;
}

.vendor-tile:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.vendor-tile-header {
   margin-bottom: 20px;
   padding-bottom: 0;
   border-bottom: none;
   position: relative;
   z-index: 1;
   display: flex;
   align-items: center;
}

.vendor-tile-title {
   font-size: 22px;
   font-weight: 600;
   color: #333;
   margin: 0;
   display: flex;
   align-items: center;
   gap: 15px;
   flex-wrap: wrap;
}

.vendor-tile-icon {
   font-size: 24px;
   width: 60px;
   height: 60px;
   display: flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(135deg, #F4762A, #ff8c42);
   border-radius: 50%;
   flex-shrink: 0;
   color: white;
}

.vendor-badges-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
   gap: 8px;
   position: relative;
   z-index: 1;
}

.vendor-badge {
   padding: 5px 12px;
   border-radius: 20px;
   font-size: 12px;
   text-decoration: none;
   transition: all 0.3s ease;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 600;
   line-height: 1;
   white-space: nowrap;
   background: #f0f0f0;
   color: #333;
   text-align: center;
   min-height: 32px;
}

.vendor-badge:hover {
   transform: translateY(-2px) scale(1.05);
   box-shadow: 0 4px 12px rgba(0,0,0,0.15);
   text-decoration: none;
}

.vendor-count {
   font-size: 0.75rem;
   color: #888;
   font-weight: 500;
   background: #f0f2f5;
   padding: 4px 10px;
   border-radius: 15px;
   margin-left: auto;
}

/* Remove category-specific styling for consistency with home page */
.vendor-tile.it-solutions .vendor-tile-title,
.vendor-tile.network .vendor-tile-title,
.vendor-tile.voice .vendor-tile-title,
.vendor-tile.internet .vendor-tile-title,
.vendor-tile.security .vendor-tile-title,
.vendor-tile.cabling .vendor-tile-title {
   color: #333;
}

.vendor-tile.it-solutions .vendor-tile-icon,
.vendor-tile.network .vendor-tile-icon,
.vendor-tile.voice .vendor-tile-icon,
.vendor-tile.internet .vendor-tile-icon,
.vendor-tile.security .vendor-tile-icon,
.vendor-tile.cabling .vendor-tile-icon {
   background: linear-gradient(135deg, #F4762A, #ff8c42);
   color: white;
}

.vendor-tile.it-solutions .vendor-badge,
.vendor-tile.network .vendor-badge,
.vendor-tile.voice .vendor-badge,
.vendor-tile.internet .vendor-badge,
.vendor-tile.security .vendor-badge,
.vendor-tile.cabling .vendor-badge {
   background: #f0f0f0;
   color: #333;
}

.vendor-tile.it-solutions .vendor-badge:hover,
.vendor-tile.network .vendor-badge:hover,
.vendor-tile.voice .vendor-badge:hover,
.vendor-tile.internet .vendor-badge:hover,
.vendor-tile.security .vendor-badge:hover,
.vendor-tile.cabling .vendor-badge:hover {
   background: #e0e0e0;
   color: #333;
   text-decoration: none;
}

/* Desktop layout for even 2-row distribution */
@media (min-width: 770px) {
   /* For 5 vendors: 3 in first row, 2 in second row */
   .vendor-count-5 {
      grid-template-columns: repeat(3, 1fr);
   }
   
   /* For 6 vendors: 3 in each row */
   .vendor-count-6 {
      grid-template-columns: repeat(3, 1fr);
   }
   
   /* For 10 vendors: 5 in each row */
   .vendor-count-10 {
      grid-template-columns: repeat(5, 1fr);
   }
   
   /* For 13 vendors: 7 in first row, 6 in second row */
   .vendor-count-13 {
      grid-template-columns: repeat(7, 1fr);
   }
}
@media (max-width: 991px) {
   .vendor-partners-section {
      padding: 40px 0 25px 0 !important;
   }
   .contact-section {
      padding-top: 100px !important;
   }
   .section-header h2 {
      font-size: 1.8rem;
   }
   .section-header p {
      font-size: 0.95rem;
   }
   .vendor-tile {
      padding: 18px;
   }
   .vendor-tile-wrapper {
      margin-bottom: 18px;
   }
   .vendor-tile-title {
      font-size: 1.05rem;
   }
}

@media (max-width: 767px) {
   .vendor-partners-section {
      padding: 35px 0 20px 0 !important;
   }
   .contact-section {
      padding-top: 80px !important;
   }
   .section-header {
      margin-bottom: 25px;
   }
   .section-header h2 {
      font-size: 1.6rem;
      margin-bottom: 8px;
   }
   .section-header p {
      font-size: 0.9rem;
   }
   .vendor-tile {
      padding: 16px;
   }
   .vendor-tile-wrapper {
      margin-bottom: 15px;
   }
   .vendor-tile-header {
      margin-bottom: 12px;
      padding-bottom: 10px;
   }
   .vendor-tile-title {
      font-size: 1rem;
      gap: 6px;
   }
   .vendor-tile-icon {
      width: 28px;
      height: 28px;
      font-size: 1.1rem;
   }
   .vendor-count {
      font-size: 0.7rem;
      padding: 3px 8px;
   }
   .vendor-badges-container {
      gap: 6px;
   }
   .vendor-badge {
      padding: 5px 10px;
      font-size: 0.75rem;
   }
}

@media (max-width: 576px) {
   .section-header h2 {
      font-size: 1.4rem;
   }
   .vendor-tile {
      padding: 14px;
   }
   .vendor-tile-title {
      font-size: 0.95rem;
   }
   .vendor-tile-icon {
      width: 26px;
      height: 26px;
      font-size: 1rem;
   }
   .vendor-badge {
      padding: 5px 10px;
      font-size: 0.72rem;
   }
}

