.container-1{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
body{
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    font-size: 1rem;
}

/* Page Header */
.page-header {
  position: relative;
  color: white;
  padding: 120px 0 60px;
  margin-top: 80px;
  overflow: hidden;
}

/* Background Carousel */
.header-carousel {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.header-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.header-carousel img.active {
  opacity: 1;
}

/* Dark Overlay for Readability */
.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust darkness here */
}

/* Foreground Content */
.page-header .container {
  position: relative;
  z-index: 2;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb i {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
}

/* Heading and Paragraph */
.page-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Main Layout */
.colleges-main {
  padding: 40px 0 80px;
  background: var(--background-secondary);
}

.colleges-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
}

/* Filters Sidebar */
.filters-sidebar {
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  position: sticky;
  top: 120px;
  max-height: none;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.filters-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.clear-filters-btn {
  background: none;
  border: none;
  color: var(--error-color);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.clear-filters-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

.filter-section {
  margin-bottom: 24px;
}

.filter-section h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.college-banner-ad {
  margin: 24px 0;
  text-align: center;
}

.college-banner-ad img {
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.college-banner-ad img:hover {
  transform: scale(1.02);
}
/* Search Input */
.search-input-wrapper {
  position: relative;
}

.search-input-wrapper input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-input-wrapper i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Filter Dropdown */
.filter-dropdown select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}
.filter-dropdown select {
  width: 100%;
  padding: 12px 16px;
  padding-right: 40px; /* space for dropdown arrow */
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  background: white url("data:image/svg+xml;charset=US-ASCII,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 12px 8px;
  appearance: none;        /* hide default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.filter-dropdown {
  position: relative;
}


.filter-dropdown select:focus {
  outline: none;
  border-color: var(--primary-color);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.checkbox-item input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  border-radius: 3px;
  margin-right: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Range Filter */
.range-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.range-inputs {
  display: flex;
  align-items: start;
  gap: 8px;
   flex-direction: column;
}

.range-inputs input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  width: 100%;
}

.range-inputs span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Apply Filters Button */
.apply-filters-btn {
  width: 100%;
  padding: 12px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 8px;
}

.apply-filters-btn:hover {
  background: var(--secondary-color);
}

/* Colleges Content */
.colleges-content {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  background: var(--background-secondary);
}

.results-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

#resultsCount {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.125rem;
}

.results-text {
  color: var(--text-secondary);
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-controls label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.sort-controls select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 0.875rem;
  background: white;
}

/* Loading State */
.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Colleges Grid */
.colleges-grid {
  padding: 24px;
  display: grid;
  gap: 20px;
}

.college-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.college-item:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.college-logo {
  width: 80px;
  height: 80px;
  background: var(--background-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
}

.college-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 4px;
}

.college-logo .placeholder-logo {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.college-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.college-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.college-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.college-type {
  background: var(--primary-color);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.college-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.college-course {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.875rem;
}

.college-stats {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.stat-value.salary {
  color: var(--success-color);
}

.stat-value.fees {
  color: var(--accent-color);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-secondary);
}

.no-results-icon {
  font-size: 3rem;
  color: var(--border-color);
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

/* Pagination */
.pagination-wrapper {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background: var(--background-secondary);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.pagination button {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  background: white;
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.pagination button:hover:not(:disabled) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination button.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Mobile Styles */
.mobile-filter-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
}

.mobile-filter-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

.mobile-filters-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  margin: 20px;
  border-radius: 8px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.modal-footer {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-color);
}

.modal-footer .btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .colleges-layout {
    grid-template-columns: 280px 1fr;
    gap: 24px;
  }
  
  .filters-sidebar {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 100px 0 40px;
  }
  
  .page-header h1 {
    font-size: 2rem;
  }
  
  .colleges-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .filters-sidebar {
    display: none;
  }
  
  .mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-filters-modal.active {
    display: block;
  }
  
  .results-header {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  
  .sort-controls {
    justify-content: space-between;
  }
  
  .college-item {
    flex-direction: column;
    gap: 16px;
  }
  
  .college-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .college-stats {
    gap: 12px;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .pagination button {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .colleges-main {
    padding: 20px 0 60px;
  }
  
  .colleges-grid {
    padding: 16px;
  }
  
  .college-item {
    padding: 16px;
  }
  
  .college-logo {
    width: 60px;
    height: 60px;
  }
  
  .college-logo img {
    width: 40px;
    height: 40px;
  }
  
  .college-name {
    font-size: 1.125rem;
  }
  
  .modal-content {
    margin: 10px;
    max-height: calc(100vh - 20px);
  }
}