:root {
  --imco-blue: #230871;
  --imco-blue-2: #321092;
  --imco-gold: #cb9700;
  --imco-gold-light: #f6e3a3;
  --ink: #1e1e2f;
  --muted: #6c6c7d;
  --line: #e8e8ef;
  --bg: #f5f6fb;
  --card: #ffffff;
  --shadow: 0 18px 45px rgba(35, 8, 113, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(203,151,0,.15), transparent 32rem), var(--bg);
  line-height: 1.5;
}

.hero {
  background: linear-gradient(135deg, var(--imco-blue), var(--imco-blue-2));
  color: white;
  padding: 44px 20px 56px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 55px solid rgba(203,151,0,.22);
  border-radius: 50%;
  right: -130px;
  top: -145px;
}
.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-size: 0.92rem;
  margin-bottom: 26px;
}
.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--imco-gold);
  box-shadow: 0 0 0 5px rgba(203,151,0,.22);
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.subtitle {
  max-width: 780px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.stat {
  min-width: 130px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}
.stat strong { display:block; font-size:1.45rem; color:#fff; }
.stat span { color:rgba(255,255,255,.78); font-size:.9rem; }
.navbar {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}
.nav-inner {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-inner a {
  text-decoration: none;
  color: var(--imco-blue);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: .92rem;
  background: #fff;
}
.nav-inner a:hover,
.nav-inner a:focus {
  border-color: var(--imco-gold);
  background: var(--imco-gold-light);
}
main { padding: 34px 0 52px; }
.semester-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  margin: 0 0 24px;
  box-shadow: 0 12px 30px rgba(35, 8, 113, 0.08);
  overflow: hidden;
}
.semester-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  background: linear-gradient(90deg, rgba(35,8,113,.08), rgba(203,151,0,.14));
  border-bottom: 1px solid var(--line);
}
.semester-header h2 {
  margin: 0;
  color: var(--imco-blue);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}
.badge {
  white-space: nowrap;
  border-radius: 999px;
  background: var(--imco-blue);
  color: #fff;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .88rem;
}
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}
th, td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--imco-blue);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: #fbfbff;
}
td.code { font-weight: 800; color: var(--imco-blue); white-space: nowrap; }
td.credit, td.sem { font-weight: 700; text-align: center; white-space: nowrap; }
td.prereq { color: var(--muted); }
tr:last-child td { border-bottom: none; }
.empty { color: #9a9aaa; }
.footer {
  text-align: center;
  color: var(--muted);
  padding: 26px 16px 42px;
  font-size: .92rem;
}
@media (max-width: 760px) {
  .hero { padding: 34px 18px 46px; }
  .nav-inner { border-radius: 18px; }
  .semester-header { align-items: flex-start; flex-direction: column; }
  .badge { white-space: normal; }
  table, thead, tbody, th, td, tr { display: block; min-width: 0; }
  thead { display: none; }
  tr {
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  tr:last-child { border-bottom: none; }
  td {
    display: grid;
    grid-template-columns: 136px 1fr;
    gap: 12px;
    border-bottom: none;
    padding: 8px 0;
  }
  td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--imco-blue);
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .76rem;
  }
  td.credit, td.sem { text-align: left; }
}
@media (max-width: 440px) {
  .container { width: min(100% - 20px, 1120px); }
  td { grid-template-columns: 1fr; gap: 2px; }
}

