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

html,
body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fafafa;
  color: #333;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

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

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e1e5e9;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 20px;
  height: 70px;
}



.logo img {
  height: 2.5rem;
  width: auto;
}
.logo a:hover {
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  color: #4a5568;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  background-color: #f7fafc;
  color: #667eea;
}

main {
  flex: 1;
  padding-top: 70px;
}


.search-section {
  background: white;
  padding: 3rem 0;
  margin-top: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 10;
  margin-top: -50px;
}

.search-form {
  background: #ffffff;
  padding: 2.5rem;
  margin-top: 5rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.search-input-container {
  margin-bottom: 2rem;
}

.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
  background: #fafafa;
}

.search-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #4a5568;
  font-size: 0.9rem;
}

.filter-select {
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-select:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button-container {
  text-align: center;
}

.search-button {
  background: linear-gradient(139deg, #6e93bd 0%, #2d3f5b 100%);  color: white;
  padding: 1rem 3rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.search-button:active {
  transform: translateY(0);
}

.results-section {
  padding: 2rem 0;
}

.loading {
  text-align: center;
  padding: 3rem;
  font-size: 1.2rem;
  color: #718096;
}

.results-info {
  margin-bottom: 1.5rem;
  color: #718096;
  font-weight: 500;
}

.results-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 1px solid #e2e8f0;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table th {
  background: #f8fafc;
  padding: 1.25rem 1rem;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e2e8f0;
  color: #4a5568;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-table td {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: top;
}

.results-table tr:hover {
  background-color: #f8fafc;
}

.college-name {
  font-weight: 600;
  color: #2d3748;
}

.course-badge {
  background: #ebf8ff;
  color: #2b6cb0;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pagination-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #4a5568;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f8fafc;
  border-color: #cbd5e0;
}

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

.page-info {
  padding: 0.75rem 1.5rem;
  background: #f8fafc;
  border-radius: 8px;
  color: #718096;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.hidden {
  display: none;
}

.footer {
  background-color: #2d3748;
  color: #e2e8f0;
  padding: 2rem 1rem;
  text-align: center;
  margin-top: auto;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem 15px;
    flex-wrap: wrap;
    height: auto;
    min-height: 70px;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    padding-top: 0.5rem;
    gap: 0.25rem;
  }

  .logo {
    order: 1;
  }

  main {
    padding-top: 90px;
  }

  .banner {
    height: 150px;
  }

  .search-section {
    margin-top: -30px;
    padding: 2rem 0;
  }

  .search-form {
    padding: 1.5rem;
  }

  .filters-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .search-button {
    padding: 0.875rem 2rem;
    width: 100%;
  }

  .results-table {
    font-size: 0.85rem;
  }

  .results-table th,
  .results-table td {
    padding: 0.75rem 0.5rem;
  }

  .results-table th {
    font-size: 0.8rem;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination-btn,
  .page-info {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .logo a {
    font-size: 1rem;
  }

  .logo img {
    height: 2rem;
  }

  .search-input,
  .filter-select {
    padding: 0.75rem;
  }

  .results-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .results-table thead,
  .results-table tbody,
  .results-table th,
  .results-table td,
  .results-table tr {
    display: block;
  }

  .results-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .results-table tr {
    border: 1px solid #e2e8f0;
    margin-bottom: 1rem;
    border-radius: 8px;
    padding: 1rem;
    background: white;
  }

  .results-table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    padding-left: 30%;
    white-space: normal;
  }

  .results-table td:before {
    content: attr(data-label) ": ";
    position: absolute;
    left: 6px;
    width: 25%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: 600;
    color: #4a5568;
  }

  .no-results {
    padding: 2rem 1rem;
  }
}

html {
  scroll-behavior: smooth;
}

*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

button:focus,
input:focus,
select:focus {
  outline: none;
}


/* Modal CSS */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 60%;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.close-modal {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close-modal:hover {
  color: black;
}
.college-code-link {
  color: #007bff;
  text-decoration: underline;
  cursor: pointer;
}
