
.top-category-header {
  display: flex;
  justify-content: space-between;
  margin-top: 110px;
  align-items: center;
  font-family: var(--pk_up_font-family, 'Inter', sans-serif);
}

.top-category-header h3 {
  margin-left: 25px;
  color: var(--pk_up_gray-900, #111827);
  font-weight: 700;
}

.top-category-header h5 {
  margin-right: 25px;
}

.top-category-header h5 a {
  color: var(--pk_up_primary, navy);
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-category-header h5 a:hover {
  opacity: 0.8;
}


.logo-container {
  display: grid;
  justify-items: center;
  grid-template-columns: repeat(8, 1fr); 
  padding: 10px 25px;
  gap: 15px;
  font-family: var(--pk_up_font-family, 'Inter', sans-serif);
}

.logo-box {
  background: var(--pk_up_white, #fff);
  border-radius: 8px;
  padding: 15px 10px; 
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(106, 17, 203, 0.1);
  transition: all 0.3s ease;
  height: auto;
  width: 120px; 
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
}

.logo-box img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 8px; 
}

.logo-box span {
  display: block;
  font-size: 13px;
  color: #301158;
  font-weight: 700; 
  line-height: 1.2;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.logo-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.2);
}

/* ==========================================
   📱 Responsive Media Queries
   ========================================== */

/* 🛑 The Fix: 1023px এর বদলে 1200px করা হয়েছে যাতে 1100px এ না ভাঙে */
@media (max-width: 1200px) {
  .logo-container {
    display: grid;
    grid-template-rows: repeat(2, 1fr); 
    grid-auto-flow: column; 
    overflow-x: auto; 
    justify-content: start;
    gap: 15px;
    padding: 15px 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .logo-container::-webkit-scrollbar {
    display: none; 
  }

  .logo-box {
    width: 105px; 
    height: 110px; 
    padding: 12px 8px;
    justify-content: flex-start;
    flex-shrink: 0;
  }

  .logo-box img {
    height: 50px;
    width: 50px;
    margin-bottom: 8px;
  }

  .logo-box span {
    font-size: 11px;
  }
}

@media (max-width: 767px) {
  .top-category-header { 
    margin-top: 80px; 
  }
}

@media (max-width: 514px) {
  .top-category-header h3 { margin-left: 15px; font-size: 18px; }
  .top-category-header h5 { margin-right: 15px; font-size: 14px; }
  
  .logo-container {
    padding: 10px 15px;
    gap: 10px;
  }

  .logo-box {
    height: 85px; 
    width: 85px;
    padding: 10px 5px; 
    justify-content: flex-start; 
  }
  
  .logo-box img {
    height: 40px; 
    width: 40px;
    margin-bottom: 5px;
  }
  
  .logo-box span {
    font-size: 10px;
    margin-top: 0;
  }
}