#loan-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
}

#loan-section .bank,
#loan-section .loan {
  flex: 1;
  min-width: 280px;
}

#loan-section h2,
#loan-section h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  margin-top: 5px;
}

#loan-section div {
  font-size: 1rem;
  margin-bottom: 12px;
}

#loan-section button {
  margin: 6px 4px 6px 0;
  padding: 6px 12px;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #3a76d2;
  color: white;
  transition: background-color 0.2s;
}

#loan-section button:hover {
  background-color: #2e5dad;
}

#loan-section input[type="number"] {
  padding: 6px;
  font-size: 1rem;
  width: 100px;
  margin-top: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

@media (max-width:500px){
  html.sidebar-expanded #loan-section {
    display: none;
  }
}

@media (max-width:360px){
  html.sidebar-collapsed #loan-section{
    display: none;
  }
}