:root {
  --primary-color: #E6B33D;
  --secondary-color: #4a9fa6;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --background: #ffffff;
  --background-secondary: #f8fafc;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-secondary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-1{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-2{
        max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}
/* Header */
.header {
  background: white;
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--border-color);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-list {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--primary-color);
}
/* Submenu: Base Style */
.has-submenu {
  position: relative;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 210px;
  display: none;
  flex-direction: column;
  padding: 0.5rem 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  list-style: none;
}

/* Submenu Items */
.submenu li {
  position: relative;
  list-style: none;
}

.submenu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  white-space: nowrap;
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
  position: relative;
}

.submenu a:hover {
  background-color: var(--primary-color);
  color: #fff;
}

/* Show submenu on hover */
.has-submenu:hover > .submenu {
  display: flex;
}

/* Nested submenu (flyout) */
.submenu .submenu {
  top: 0;
  left: 100%;
  margin-left: 0px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  padding: 0.5rem 0;
  list-style: none;
}

/* Optional: Only show arrows for items that have further submenus */
.has-submenu > a::after {
  content: '';
  margin-left: 6px;
  font-size: 0.6rem;
  color: var(--text-primary);
}

.has-submenu > a + .submenu {
  /* This selector applies only if there is a submenu */
}

.has-submenu > .submenu .has-submenu > a::after {
  content: '▶';
  font-size: 0.65rem;
  color: var(--text-primary);
  margin-left: 6px;
}

/* Remove unnecessary arrows from items that do not have submenu */
.submenu li:not(.has-submenu) > a::after {
  content: none;
}

/* Show only when .open is active */
.has-submenu.open > .submenu {
  display: flex;
  flex-direction: column;
}
/* Mobile Styles */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    padding: 1rem;
    height: 100vh;
  }

  .nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .submenu {
    position: static;
    display: none;
    flex-direction: column;
    padding-left: 1rem;
    box-shadow: none;
  }

  .has-submenu.open > .submenu {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Hero Section */
.hero {
  background: 
    linear-gradient(135deg, rgba(230, 179, 61, 0.75) 0%, rgba(74, 159, 166, 0.75) 100%),
    url('https://getmycollege.co.in/wp-content/uploads/2025/08/iit_bhu-bg.jpg'); /* Replace with your actual image path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  margin-top: 85px;
}

/* Optional: keep your text and search styles as they are */
.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Search bar styles remain unchanged */
.search-bar {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0.5rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 2.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  box-shadow: var(--shadow-md);
}

.search-btn {
  padding: 0.875rem 2rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.search-btn:hover {
  background-color: #d97706;
  transform: translateY(-1px);
}


/* Main Content Layout */
.main-content {
  padding: 2rem 0;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Sidebar Styles */
.sidebar {
  background-color: var(--background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.sidebar .filter-groups-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  grid-column: 1 / -1;
}

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

.clear-filters {
  background: none;
  border: none;
  color: var(--secondary-color);
  cursor: pointer;
  font-weight: 500;
  text-decoration: underline;
  transition: var(--transition);
}

.clear-filters:hover {
  color: var(--primary-color);
}

.filter-group {
  margin-bottom: 2rem;
}

.filter-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.filter-title i {
  color: var(--secondary-color);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.25rem 0;
}

.filter-option:hover {
  color: var(--primary-color);
}

.filter-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.filter-option span {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-option:hover span {
  color: var(--text-primary);
}

/* Main Content */
.main {
  background-color: var(--background);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  width: 100%;
}

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

.results-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.results-info h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-filter-btn {
  display: none;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  gap: 0.5rem;
  align-items: center;
  transition: var(--transition);
}

.mobile-filter-btn:hover {
  background-color: #d4a73a;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-options label {
  font-weight: 500;
  color: var(--text-secondary);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

/* College Cards Grid */
.colleges-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.college-card {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition);
  cursor: pointer;
  width: 100%;
}

.college-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.college-header {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.college-logo {
  width: 80px;
  height: 80px;
  background-color: var(--background-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
  overflow: hidden; /* Ensures images don't spill out */
}

.college-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Keeps aspect ratio */
  display: block;
}

.college-logo i {
  font-size: 2rem;
  color: var(--secondary-color);
}


.college-basic-info {
  flex: 1;
}

.college-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.college-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.college-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rating-stars {
  display: flex;
  gap: 0.125rem;
}

.rating-stars i {
  color: var(--accent-color);
  font-size: 0.875rem;
}

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

.college-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: var(--background-secondary);
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.detail-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

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

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

.ranking-value {
  color: var(--secondary-color);
}

.college-highlights {
  margin-bottom: 1rem;
}

.highlights-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.highlights-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.highlight-tag {
  background-color: var(--background-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.college-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #d4a73a;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

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

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  background-color: white;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--transition);
}

.pagination-btn:hover:not(.active):not(:disabled) {
  background-color: var(--background-secondary);
  border-color: var(--primary-color);
}

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

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

/* Loading Spinner */
.loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

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

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

/* Mobile Filter Overlay */
.mobile-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  justify-content: flex-start;
  align-items: stretch;
}

.mobile-filter-content {
  background-color: white;
  width: 100%;
  max-width: 320px;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.close-mobile-filter {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .sidebar .filter-groups-container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .search-bar {
    flex-direction: column;
    gap: 1rem;
  }
  
  .search-btn {
    align-self: stretch;
  }
  
  .sidebar .filter-groups-container {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: block;
  }
  
  .mobile-filter-btn {
    display: none;
  }
  
  .mobile-filter-overlay.active {
    display: flex;
  }
  
  .results-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .sort-options {
    align-self: stretch;
    justify-content: space-between;
  }
  
  .college-header {
    flex-direction: column;
    text-align: center;
  }
  
  .college-logo {
    align-self: center;
  }
  
  .college-details {
    grid-template-columns: 1fr;
  }
  
  .college-actions {
    flex-direction: column;
  }
  
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
  }
  
  .hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .main {
    padding: 1rem;
  }
  
  .college-card {
    padding: 1rem;
  }
  
  .pagination-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
  }

  .sidebar .filter-groups-container {
    grid-template-columns: 1fr;
  }
}

/* Focus states for accessibility */
.search-input:focus,
.sort-select:focus,
.filter-option input:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.action-btn:focus,
.search-btn:focus,
.pagination-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}
.college-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.college-card-link:hover {
    transform: scale(1.02);
    transition: 0.3s ease;
}
/* Footer */
.footer {
  background: #1f2937;
  color: white;
  padding: 2.5rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: 1.75rem;
}

.footer-section {
  flex: 1 1 15%; /* Each section takes up ~15% */
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.0625rem;
  line-height: 1.3;
  color: white;
}

.footer-section h3 {
  color: #E6B33D !important;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.875rem;
  line-height: 1.4;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.75rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 0.8125rem;
}
@media(max-width:480px){
     .footer-section {
    flex: 1 1 100%;
    max-width: 100%;
  }.container-2{
    text-align: center;
  }
}