  /* Add these new styles to your existing CSS */
.details-section {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.btn-details {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(79, 172, 254, 0.3);
  color: #4facfe;
  background: transparent;
  position: relative;
}

.btn-details .toggle-icon {
  margin-right: 8px; /* Space between icon and text */
  display: flex;
  align-items: center;
}

.btn-details svg {
  width: 16px;
  height: 16px;
}

.details-section.expanded {
  max-height: 1000px; /* Adjust based on your content */
  transition: max-height 0.5s ease-in;
}

.details-content {
  padding: 20px;
}

.toggle-btn {
  transition: all 0.3s ease;
}

.toggle-btn .plus-icon {
  display: inline-block;
}

.toggle-btn .minus-icon {
  display: none;
}

.toggle-btn.expanded .plus-icon {
  display: none;
}

.toggle-btn.expanded .minus-icon {
  display: inline-block;
}

/* Modify existing button styles */
.btn-details {
  position: relative;
  padding-left: 40px;
}

.btn-details .toggle-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}
 .list-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  overflow: hidden;
  position: relative;
}

/* ... (keep all previous CSS styles from earlier solution) ... */

/* Animation for filtered items */
.list-item {
  transition: all 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
}

.list-item.hidden {
  opacity: 0;
  transform: translateY(20px);
  height: 0;
  margin-bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
/* Base Styles */
.application-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.list-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  overflow: hidden;
  position: relative;
}

.list-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #4facfe 0%, #00f2fe 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.list-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.list-item:hover::before {
  transform: scaleY(1);
}

.list-item-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  transition: all 0.3s ease;
}

/* Institution Info Styles */
.institution-info {
  display: flex;
  align-items: center;
  flex-grow: 1;
}

.institution-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 172, 254, 0.1);
  border-radius: 10px;
  margin-right: 20px;
  color: #4facfe;
  transition: all 0.3s ease;
}

.list-item:hover .institution-icon {
  background: #4facfe;
  color: white;
  transform: rotate(-5deg) scale(1.1);
}

.institution-details {
  flex-grow: 1;
}

.institution-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.counter {
  color: #4facfe;
  margin-right: 8px;
  font-weight: 700;
}

.institution-meta {
  display: flex;
  gap: 10px;
}

.badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

.type-badge {
  background: #f0f4f8;
  color: #486581;
}

.status-badge {
  background: #e3f9ee;
  color: #0a6e3f;
  position: relative;
  padding-left: 28px;
}

.status-pulse {
  position: absolute;
  left: 12px;
  width: 8px;
  height: 8px;
  background: #00c853;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 200, 83, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-details, .btn-qualifications {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.btn-details {
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.3);
}

.btn-qualifications {
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.btn-details:hover, .btn-qualifications:hover {
  transform: translateY(-2px);
}

.btn-details:hover {
  background: rgba(79, 172, 254, 0.1);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.btn-qualifications:hover {
  background: rgba(255, 170, 0, 0.1);
  box-shadow: 0 4px 12px rgba(255, 170, 0, 0.2);
}

.btn-details svg, .btn-qualifications svg {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.btn-details:hover svg {
  transform: translateX(3px);
}

.btn-qualifications:hover svg {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  .list-item-content {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .institution-info {
    width: 100%;
    margin-bottom: 16px;
  }
  
  .action-buttons {
    width: 100%;
    justify-content: flex-end;
  }
}
.search-result .card {
border-radius: 8px;
border: 1px solid #e0e0e0;
transition: all 0.2s ease;
}

.search-result .card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-sm {
min-width: 90px;  /* Ensures consistent button width */
white-space: nowrap;
}

@media (max-width: 768px) {
.card-body {
    padding: 1.25rem !important;
}
.justify-content-md-start {
    justify-content: flex-start !important;
}
}
.results-title1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #002777; /* navy */
}

.results-subtitle1 {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 12px;
  font-style: italic;
}

.no-data-message1 {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8d7da;
  color: #842029;
  border-radius: 6px;
  font-size: 0.9rem;
}