.bg-primary{
		background-color: #134686 !important;
	}
	* Header Styles */
.search-header {
    background-color: #fff;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box .form-control {
    border: 1px solid #dfe1e5;
    box-shadow: none;
    padding: 10px 20px;
}

.search-box .form-control:focus {
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    border-color: rgba(223, 225, 229, 0);
}

.search-box .btn {
    position: absolute;
    right: 5px;
    top: 5px;
    z-index: 10;
    border: none;
    background: transparent;
}

/* Filters Navigation */
.search-filters .nav-link {
    color: #5f6368;
    padding: 8px 16px;
    font-size: 17px;
}

.search-filters .nav-link.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
}

.search-filters .nav-link:hover {
    color: #1a73e8;
}

/* Search Results */
.search-results {
    min-height: calc(100vh - 200px);
}

.results-stats {
    font-size: 17px;
}

.search-result {
    padding: 0 8px;
}

.result-url {
    font-size: 17px;
    line-height: 1.3;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.3;
}

.result-title a {
    color: #134686;
}

.result-title a:hover {
    text-decoration: underline;
}

.result-snippet {
    color: #4d5156;
    font-size: 17px;
    line-height: 1.58;
}

.result-meta {
    font-size: 0.75rem;
}

/* People Also Ask */
.people-also-ask h4 {
    font-size: 1.125rem;
    font-weight: 500;
}

.people-also-ask .accordion-button {
    color: #134686;
    font-weight: 500;
    padding: 12px 0;
    font-size: 17px;
}

.people-also-ask .accordion-button:not(.collapsed) {
    color: #134686;
    background-color: transparent;
    box-shadow: none;
}

.people-also-ask .accordion-button::after {
    background-size: 0.75rem;
}

.people-also-ask .accordion-body {
    padding: 8px 0 16px;
    font-size: 17px;
}

/* Sub Results */
.sub-result a {
    color: #134686;
    font-size: 17px;
}

.sub-result a:hover {
    text-decoration: underline;
}

/* Related Searches */
.related-searches h4 {
    font-size: 1.125rem;
    font-weight: 500;
    padding-left: 8px;
}

.related-searches a {
    color: #4d5156;
    font-size: 17px;
}

.related-searches a:hover {
    color: #134686;
    text-decoration: none;
}

/* Pagination */
.pagination-lg .page-link {
    padding: 10px 16px;
    color: #134686;
    border-radius: 4px;
    border: none;
    margin: 0 2px;
}

.pagination-lg .page-item.active .page-link {
    background-color: transparent;
    color: #134686;
    font-weight: 500;
    text-decoration: underline;
}

.pagination-lg .page-link:hover {
    background-color: #f1f3f4;
    text-decoration: none;
}

/* Knowledge Panel */
.knowledge-panel {
    border: none;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
}

.knowledge-panel .card-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #202124;
}

.knowledge-panel .card-subtitle {
    font-size: 14px;
}

/* Footer */
.search-footer {
    font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .search-header {
        padding: 10px 0;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-filters {
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .search-filters .nav {
        flex-wrap: nowrap;
    }
    
    .search-result {
        padding: 0;
    }
    
    .pagination-lg .page-link {
        padding: 8px 12px;
        font-size: 17px;
    }
}
.steps-list {
    padding: 0;
    margin: 0;
    max-width: 700px; /* Ensures the list doesn't stretch too wide */
    position: relative;
    list-style-type: none; /* Remove default numbering (since we use {{ forloop.counter }}) */
}

.steps-list::before {
    content: '';
    width: 0.5rem;
    height: 100%;
    position: absolute;
    top: 0;
    left: 8%;
    background: #fbf5ea;
    z-index: -1;
}

.steps-list li {
    padding: 0.5rem 1.5rem 1rem;
    border-radius: 1.5rem;
    background: #fbf5ea;
    display: flex;
    justify-content: space-between; /* Ensures content and badge are pushed apart */
    align-items: center;
    width: 100%; /* Ensures flex takes full width */
}
.steps-list li:hover {
    padding: 0.5rem 1.5rem 1rem;
    border-radius: 1.5rem;
    background: #c3dff1;
    display: flex;
    justify-content: space-between; /* Ensures content and badge are pushed apart */
    align-items: center;
    width: 100%; /* Ensures flex takes full width */
}


.steps-list li + li {
    margin-top: 1rem;
}

/* If you want to style the badge separately */
.steps-list .badge {
    margin-left: auto; /* Pushes badge to the far right */
}
.details-btn, .qualifications-btn {
        transition: all 0.3s ease;
        min-width: 120px;
    }
    .details-btn:hover {
        background-color: #134686;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    .qualifications-btn:hover {
        background-color: #CA9428;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
     /* Base Styles */
     .application-list {
                                max-width: 1200px;
                                margin: 0 auto;
                                padding: 20px;
                              }
                              
                              .search-container {
                                position: relative;
                                max-width: 100%;
                                margin: 0 auto 30px;
                              }
                              
                              .search-input {
                                width: 100%;
                                padding: 12px 20px 12px 45px;
                                border: 2px solid #e0e0e0;
                                border-radius: 30px;
                                font-size: 1rem;
                                transition: all 0.3s ease;
                                box-shadow: 0 2px 10px rgba(0,0,0,0.05);
                              }
                              
                              .search-input:focus {
                                outline: none;
                                border-color: #4facfe;
                                box-shadow: 0 4px 15px rgba(79, 172, 254, 0.2);
                              }
                              
                              .search-icon {
                                position: absolute;
                                left: 15px;
                                top: 50%;
                                transform: translateY(-50%);
                                color: #7f8c8d;
                              }
                              
                              .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;
                                    }
                                }

    /* Sidebar Container */
    .sidebar-container {
                padding-left: 25px;
            }
            
            .steps-list {
                background: white;
                border-radius: 12px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.05);
                overflow: hidden;
                transition: all 0.3s ease;
            }
            
            /* Header Styles */
            .sidebar-header {
                background: linear-gradient(135deg, #002777 0%, #002777 100%);
                padding: 18px 20px;
                display: flex;
                align-items: center;
                color: white;
            }
            
            .sidebar-header h5 {
                margin: 0;
                font-size: 1.1rem;
                font-weight: 600;
            }
            
            .sidebar-icon {
                margin-right: 12px;
                stroke-width: 2.5;
            }
            
            /* Menu Items */
            .sidebar-menu {
                padding: 8px 0;
            }
            
            .menu-item {
                display: block;
                text-decoration: none;
                transition: all 0.2s ease;
                border-left: 3px solid transparent;
            }
            
            .menu-item:hover {
                background: rgba(79, 172, 254, 0.05);
                border-left: 3px solid #002777;
                transform: translateX(3px);
            }
            
            .menu-content {
                display: flex;
                align-items: center;
                padding: 12px 20px;
                position: relative;
            }
            
            .item-counter {
                color: #7f8c8d;
                font-size: 0.9rem;
                min-width: 24px;
                font-weight: 500;
            }
            
            .item-name {
                flex-grow: 1;
                color: #2c3e50;
                font-size: 0.95rem;
                font-weight: 500;
                transition: all 0.2s ease;
            }
            
            .menu-item:hover .item-name {
                color: #002777;
            }
            
            .item-badge {
                background: rgba(79, 172, 254, 0.1);
                color: #002777;
                padding: 3px 10px;
                border-radius: 20px;
                font-size: 0.75rem;
                font-weight: 600;
                margin: 0 15px;
                transition: all 0.2s ease;
            }
            
            .menu-item:hover .item-badge {
                background: #002777;
                color: white;
            }
            
            .item-arrow {
                opacity: 0;
                transform: translateX(-5px);
                transition: all 0.3s ease;
                color: #7f8c8d;
            }
            
            .menu-item:hover .item-arrow {
                opacity: 1;
                transform: translateX(0);
            }
            
            /* Active State (optional) */
            .menu-item.active {
                background: rgba(79, 172, 254, 0.1);
                border-left: 3px solid #002777;
            }
            
            .menu-item.active .item-name {
                color: #002777;
                font-weight: 600;
            }
            
            .menu-item.active .item-badge {
                background: #002777;
                color: white;
            }
            
            /* Responsive Adjustments */
            @media (max-width: 992px) {
                .sidebar-container {
                    padding-left: 0;
                    margin-top: 30px;
                }
                
                .steps-list {
                    border-radius: 8px;
                }
            }
            .search-section {
                                    margin: 0 auto 30px;
                                    max-width: 1200px;
                                    position: relative;
                                  }
                                  
                                  .search-container {
                                    position: relative;
                                    border-radius: 12px;
                                    overflow: hidden;
                                    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
                                  }
                                  
                                  .search-background {
                                    position: relative;
                                    height: 140px; /* Increased height for title */
                                    background: #002777; /* Navy blue */
                                  }
                                  
                                  .search-pattern {
                                    position: absolute;
                                    inset: 0;
                                    background-image: radial-gradient(rgba(211, 153, 63, 0.15) 1px, transparent 1px);
                                    background-size: 15px 15px;
                                    opacity: 0.8;
                                  }
                                  
                                  .search-overlay {
                                    position: absolute;
                                    inset: 0;
                                    background: linear-gradient(to right, rgba(0, 39, 119, 0.9), rgba(0, 39, 119, 0.7));
                                    display: flex;
                                    flex-direction: column;
                                    justify-content: flex-end;
                                    padding: 0 25px 30px;
                                  }
                                  
                                  .section-title {
                                    color: white;
                                    font-size: 1.5rem;
                                    font-weight: 600;
                                    margin: 0 0 10px 0;
                                    position: relative;
                                    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
                                  }
                                  
                                  .title-decoration {
                                    height: 3px;
                                    width: 60px;
                                    background: #D3993F; /* Gold */
                                    border-radius: 3px;
                                    margin-bottom: 15px;
                                  }
                                  
                                  .search-content {
                                    position: relative;
                                    padding: 0 25px;
                                    margin-top: -40px;
                                  }
                                  
                                  .search-input {
                                    width: 100%;
                                    padding: 16px 20px 16px 50px;
                                    border: none;
                                    border-radius: 8px;
                                    font-size: 1rem;
                                    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
                                    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
                                    background: white;
                                    position: relative;
                                    z-index: 2;
                                    border-bottom: 3px solid transparent;
                                  }
                                  
                                  .search-input:focus {
                                    outline: none;
                                    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
                                    transform: translateY(-2px);
                                    border-bottom-color: #D3993F; /* Gold accent */
                                  }
                                  
                                  .search-icon {
                                    position: absolute;
                                    left: 40px;
                                    top: 50%;
                                    transform: translateY(-50%);
                                    z-index: 3;
                                    color: #7f8c8d;
                                    transition: all 0.3s ease;
                                  }
                                  
                                  .search-input:focus + .search-icon {
                                    color: #002777; /* Navy blue */
                                    stroke-width: 2.5;
                                  }
                                  
                                  .search-decoration {
                                    position: absolute;
                                    bottom: -8px;
                                    left: 25px;
                                    right: 25px;
                                    height: 4px;
                                    display: flex;
                                    z-index: 1;
                                  }
                                  
                                  .decoration-bar {
                                    height: 100%;
                                    transition: all 0.4s ease;
                                  }
                                  
                                  .gold-bar {
                                    background: #D3993F; /* Gold */
                                    flex: 0 0 30%;
                                  }
                                  
                                  .navy-bar {
                                    background: #002777; /* Navy blue */
                                    flex: 1;
                                  }
                                  
                                  .search-input:focus ~ .search-decoration .gold-bar {
                                    flex: 0 0 40%;
                                  }
                                  
                                  /* Responsive adjustments */
                                  @media (max-width: 768px) {
                                    .search-background {
                                      height: 120px;
                                    }
                                    
                                    .search-overlay {
                                      padding: 0 15px 25px;
                                    }
                                    
                                    .section-title {
                                      font-size: 1.5rem;
                                    }
                                    
                                    .search-content {
                                      padding: 0 15px;
                                    }
                                    
                                    .search-input {
                                      padding: 14px 15px 14px 45px;
                                    }
                                    
                                    .search-icon {
                                      left: 30px;
                                    }
                                    
                                    .search-decoration {
                                      left: 15px;
                                      right: 15px;
                                    }
                                  }
                                  .search-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .search-input-group {
    position: relative;
    width: 100%;
  }
  
  .search-filters {
    display: flex;
    gap: 10px;
    width: 100%;
  }
  
  .select-wrapper {
    position: relative;
    flex: 1;
  }
  
  .search-select {
    width: 100%;
    padding: 15px 20px 15px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    appearance: none;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  .search-select:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    border-bottom: 3px solid #D3993F;
  }
  
  .select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    pointer-events: none;
  }
  
  .search-button {
    padding: 0 25px;
    background-color: #D3993F;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(211, 153, 63, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .search-button:hover {
    background-color: #c28e37;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(211, 153, 63, 0.4);
  }
  
  /* Responsive adjustments */
  @media (min-width: 768px) {
    .search-controls {
      flex-direction: row;
      align-items: center;
    }
    
    .search-input-group {
      flex: 3;
    }
    
    .search-filters {
      flex: 2;
    }
    
    .search-button {
      min-width: 120px;
    }
  }
  
  @media (max-width: 767px) {
    .search-filters {
      flex-direction: column;
    }
    
    .search-select, .search-button {
      width: 100%;
    }
    
    .search-button {
      padding: 15px;
    }
  }
  .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 39, 119, 0.2);
    /* background: linear-gradient(to bottom, #fbf5ea, #fff9f1); */
    border: 1px solid rgba(211, 153, 63, 0.3);
  }
  .search-controls {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Select field styling */
    .select-wrapper {
        position: relative;
        flex: 1 1 auto;
        max-width: 100%;
    }

    /* Button styling - fixed standard appearance */
    .search-button {
        min-width: 100px; /* Ensures consistent width */
        height: calc(2.5em + 0.75rem + 2px); /* Matches Bootstrap form-control height */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    /* Mobile responsiveness */
    @media (max-width: 768px) {
        .search-controls {
            flex-direction: column;
            align-items: stretch;
        }
        .select-wrapper {
            margin-bottom: 0.75rem;
        }
        .search-button {
            width: 100%;
        }
    }
  