:root {
  --primary-color: #4f46e5;
  --secondary-color: #818cf8;
  --text-color: #1f2937;
  --light-bg: #f9fafb;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --accent-color: #f59e0b;
  --success-color: #10b981;
  --error-color: #ef4444;
  --gr-font: "Work Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--light-bg);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Enhanced Header with Animated Background */
header {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  box-shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.animated-bg::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(79, 70, 229, 0.8) 0%,
    rgba(129, 140, 248, 0.8) 50%,
    rgba(79, 70, 229, 0.8) 100%
  );
  animation: gradientBG 15s ease infinite;
  z-index: -1;
}

.animated-bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
  background: linear-gradient(45deg, #fff, #e0e7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: 1px;
  position: relative;
  font-family: var(--gr-font);
}

.logo::after {
  content: "NETWORK";
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  font-size: 0.8rem;
  letter-spacing: 2px;
  background: linear-gradient(45deg, #f59e0b, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: var(--gr-font);
  font-weight: 600;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease-out;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 1px;
  font-family: var(--gr-font);
  font-weight: 700;
}

header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease-out;
  opacity: 0.9;
}

.header-cta {
  margin-top: 2rem;
  animation: fadeIn 1.5s ease-out;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.15);
}

.cta-button:active {
  transform: translateY(-1px);
}

.cta-button::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
  z-index: -1;
}

.cta-button:hover::after {
  left: 100%;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  animation: fadeIn 1s ease-out;
  position: relative;
}

/* Enhanced Search Container with Floating Effect */
.search-container {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  transform: translateY(-30px);
  animation: floatIn 1s ease-out forwards;
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(-60px);
  }
  to {
    opacity: 1;
    transform: translateY(-30px);
  }
}

.search-box {
  display: flex;
  flex: 1;
  max-width: 500px;
  position: relative;
}

.search-box input {
  flex: 1;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-box::before {
  content: "🔍";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.5;
  pointer-events: none;
}

.search-box input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
  padding-left: 3.2rem;
}

.search-box button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  margin-left: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-box button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-box button:active {
  transform: translateY(0);
}

.filter-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.filter-container label {
  font-weight: 500;
  color: var(--text-color);
}

.filter-container select {
  padding: 0.75rem 2rem 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 50px;
  background-color: white;
  transition: all 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%234f46e5' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  cursor: pointer;
}

.filter-container select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

.view-toggle button {
  background-color: white;
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.view-toggle button::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
}

.view-toggle button#grid-view-btn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M1 2.5A1.5 1.5 0 0 1 2.5 1h3A1.5 1.5 0 0 1 7 2.5v3A1.5 1.5 0 0 1 5.5 7h-3A1.5 1.5 0 0 1 1 5.5v-3zm8 0A1.5 1.5 0 0 1 10.5 1h3A1.5 1.5 0 0 1 15 2.5v3A1.5 1.5 0 0 1 13.5 7h-3A1.5 1.5 0 0 1 9 5.5v-3zm-8 8A1.5 1.5 0 0 1 2.5 9h3A1.5 1.5 0 0 1 7 10.5v3A1.5 1.5 0 0 1 5.5 15h-3A1.5 1.5 0 0 1 1 13.5v-3zm8 0A1.5 1.5 0 0 1 10.5 9h3a1.5 1.5 0 0 1 1.5 1.5v3a1.5 1.5 0 0 1-1.5 1.5h-3A1.5 1.5 0 0 1 9 13.5v-3z'/%3E%3C/svg%3E");
}

.view-toggle button#table-view-btn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2h-4v3h4V4zm0 4h-4v3h4V8zm0 4h-4v3h3a1 1 0 0 0 1-1v-2zm-5 3v-3H6v3h4zm-5 0v-3H1v2a1 1 0 0 0 1 1h3zm-4-4h4V8H1v3zm0-4h4V4H1v3zm5-3v3h4V4H6zm4 4H6v3h4V8z'/%3E%3C/svg%3E");
}

.view-toggle button.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.view-toggle button:hover:not(.active) {
  background-color: var(--light-bg);
  transform: translateY(-2px);
}

/* Enhanced College Grid with Improved Cards */
.colleges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.college-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
  position: relative;
  z-index: 1;
  transform: translateY(0) scale(1);
  opacity: 0;
}

.college-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

.college-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.college-card:hover .college-image {
  height: 220px;
}

.college-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.college-card:hover .college-image::before {
  opacity: 0.9;
}

.college-code {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.college-card:hover .college-code {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background-color: var(--secondary-color);
}

.gr-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-weight: bold;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-size: 0.8rem;
  font-family: var(--gr-font);
}

.college-card:hover .gr-badge {
  transform: translateY(-3px) rotate(5deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.college-info {
  padding: 1.5rem;
  position: relative;
}

.college-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
  line-height: 1.3;
}

.college-card:hover .college-info h2 {
  color: var(--secondary-color);
}

.college-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #6b7280;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.college-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.college-meta span:first-child::before {
  content: "📍";
}

.college-meta span:last-child::before {
  content: "🏆";
}

.college-info p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}

.college-card:hover .college-info p {
  -webkit-line-clamp: 4;
}

.college-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.college-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.college-link:active {
  transform: translateY(-1px);
}

.college-link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
  z-index: -1;
}

.college-link:hover::after {
  left: 100%;
}

/* Enhanced Table View */
.table-responsive {
  overflow-x: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  background: white;
}

.colleges-table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 1rem;
  overflow: hidden;
  animation: fadeIn 0.5s ease-out;
  display: none;
}

.colleges-table th,
.colleges-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.colleges-table th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
  padding: 1.25rem 1rem;
}

.colleges-table th:hover {
  background-color: var(--secondary-color);
}

.colleges-table th::after {
  content: "↕";
  position: absolute;
  right: 0.75rem;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.colleges-table th.sort-asc::after {
  content: "↑";
  opacity: 1;
}

.colleges-table th.sort-desc::after {
  content: "↓";
  opacity: 1;
}

.colleges-table tr {
  transition: all 0.3s ease;
}

.colleges-table tr:hover {
  background-color: var(--light-bg);
  transform: scale(1.01);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 1;
  position: relative;
}

.colleges-table td:last-child {
  text-align: center;
}

.table-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.table-link:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.table-code {
  font-weight: bold;
  color: var(--primary-color);
  background-color: rgba(79, 70, 229, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.gr-recommended-text {
  font-family: var(--gr-font);
  font-weight: 600;
  color: var(--accent-color);
}

/* No Results Message */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  font-size: 1.2rem;
  color: #6b7280;
  animation: fadeIn 0.5s ease-out;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.no-results::before {
  content: "🔍";
  display: block;
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

/* Enhanced Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 3rem 1rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(79, 70, 229, 0.8) 0%,
    rgba(129, 140, 248, 0.8) 50%,
    rgba(79, 70, 229, 0.8) 100%
  );
  animation: gradientBG 15s ease infinite;
  z-index: -1;
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  text-align: left;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-family: var(--gr-font);
  font-weight: 600;
}


.footer-section p {
  font-family: 'Work Sans';
}

.gowthamraj-text {
  font-family: 'Work Sans';
  font-weight: 600;
}

.footer-section h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: white;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.social-link:hover {
  background-color: white;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  width: 100%;
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.gr-footer-brand {
  font-family: var(--gr-font);
  font-weight: 700;
}

/* Loading Animation */
.loading {
  display: none;
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  display: inline-block;
  width: 60px;
  height: 60px;
  border: 5px solid rgba(79, 70, 229, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 1rem;
}

.loading p {
  color: var(--text-color);
  font-size: 1.1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  animation: slideInRight 0.3s ease-out forwards;
  max-width: 350px;
}

.toast.success {
  background-color: var(--success-color);
  color: white;
}

.toast.error {
  background-color: var(--error-color);
  color: white;
}

.toast-message {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.toast-close:hover {
  opacity: 1;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .colleges-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  .search-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
  }

  .search-box {
    max-width: 100%;
  }

  .search-box input {
    width: 100%;
    flex: 1;
  }

  .search-box button {
    white-space: nowrap;
  }

  .filter-container {
    justify-content: space-between;
    width: 100%;
  }

  .filter-container label {
    margin-right: 0.5rem;
    white-space: nowrap;
  }

  .filter-container select {
    flex: 1;
    min-width: 150px;
  }

  .view-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .view-toggle button {
    flex: 1;
    justify-content: center;
    margin: 0 0.25rem;
  }

  .colleges-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
  }

  .colleges-table th,
  .colleges-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .view-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .view-toggle button {
    flex: 1;
    justify-content: center;
  }

  .footer-section {
    flex: 100%;
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .colleges-grid {
    grid-template-columns: 1fr;
  }

  .college-card {
    max-width: 100%;
  }

  .college-info h2 {
    font-size: 1.3rem;
  }

  .table-code {
    font-size: 0.8rem;
  }

  .table-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

/* Update the search container for better mobile responsiveness */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 1rem;
  }

  .search-box {
    max-width: 100%;
    width: 100%;
  }

  .search-box input {
    width: 100%;
    flex: 1;
  }

  .search-box button {
    white-space: nowrap;
  }

  .filter-container {
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
  }

  .filter-container label {
    margin-right: 0.5rem;
    white-space: nowrap;
  }

  .filter-container select {
    flex: 1;
    min-width: 150px;
  }

  .view-toggle {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .view-toggle button {
    flex: 1;
    justify-content: center;
    margin: 0 0.25rem;
  }
}

/* Additional fixes for extra small screens */
