:root {
  --bg: #0f172a;
  --card: #0b1224;
  --surface: #101a33;
  --text: #e6e7eb;
  --muted: #97a0b5;
  --brand: #5b8cff;
  --brand-2: #7dd3fc;
  --ring: rgba(91, 140, 255, 0.45);
  --radius: 14px;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 10px rgba(0, 0, 0, 0.25);
}
* {
  box-sizing: border-box;
}
html,
body {
  min-height: 100%;
}
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: radial-gradient(
      1200px 600px at 10% -10%,
      rgba(93, 84, 241, 0.28),
      transparent 60%
    ),
    radial-gradient(
      1200px 600px at 100% 0%,
      rgba(125, 211, 252, 0.22),
      transparent 55%
    ),
    linear-gradient(180deg, #0a0f1f, #0f172a 40%, #0f172a 100%);
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(16px, 3vw, 28px) 40px clamp(16px, 3vw, 28px);
}
.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.navBar ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navBar li {
  position: relative;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.18s ease;
}
.navBar li:hover {
  color: var(--text);
}
.navBar li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  border-radius: 2px;
}
.navBar li:hover::after {
  transform: scaleX(1);
}

.hero-card {
  margin: 1.5rem auto 0 auto;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--shadow-1);
  max-width: 900px;
  backdrop-filter: blur(6px);
}
.head {
  text-align: center;
  margin: clamp(24px, 4vw, 40px) auto;
  padding: clamp(12px, 2vw, 20px);
}
.head h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: 0.2px;
  background: linear-gradient(90deg, #fff, #bcd3ff 55%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.head p {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: clamp(14px, 2.2vw, 18px);
}

.search-wrap {
  display: flex;
  justify-content: center;
}
.search {
  display: flex;
  align-items: center;
  width: min(760px, 100%);
  background: linear-gradient(180deg, var(--surface), #0b1530);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 6px 8px 6px 6px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}
.search:focus-within {
  border-color: var(--ring);
  box-shadow: 0 0 0 4px var(--ring), var(--shadow-1);
}
.search .icon {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.search .icon img {
  width: 25px;
  height: 25px;
}
#userInput {
  height: 44px;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  padding: 0 12px;
}
#userInput::placeholder {
  color: #9aa6c1;
}

#dropDown {
  appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  height: 100%;
  cursor: pointer;
}
#dropDown > option {
  color: var(--text);
  background-color: #0b1224;
  cursor: pointer !important;
}

.results-section {
  margin-top: 22px;
}
.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 2px;
}
.results-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.uni-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  row-gap: 7px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.02)
  );
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: calc(var(--radius) - 2px);
  padding: 14px 14px 12px;
  box-shadow: var(--shadow-2);
  transition: transform 0.12s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.uni-card:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.45);
}
.uni-name {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #eaf0ff;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 160, 255, 0.12);
  border: 1px solid rgba(124, 160, 255, 0.28);
  color: #cfe0ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.badges.meta-row {
  justify-content: center;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.links a {
  color: #96c4ff;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px dashed rgba(150, 196, 255, 0.35);
}
.links a:hover {
  color: #bfe0ff;
  border-bottom-style: solid;
}

.empty {
  margin-top: 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: calc(var(--radius) - 4px);
  padding: 16px;
  text-align: center;
  display: block;
}
.is-hidden {
  display: none !important;
}

@media (max-width: 560px) {
  .search {
    grid-template-columns: 40px 1fr auto;
    padding: 6px;
  }
  .search .icon {
    width: 40px;
    height: 40px;
  }
  #userInput {
    height: 40px;
  }
  .navBar ul {
    gap: 12px;
    font-size: 14px;
  }
  .uni-name {
    font-size: 17px;
  }
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
