:root{
  --accent:#25408f;
  --accent2:#eeb111;
  --text:#1d2a44;
  --muted:#5b6984;
  --bg:#f6f8fc;
  --panel:#ffffff;
  --line:rgba(37,64,143,.14);
  --radius:16px;
  --shadow:0 12px 28px rgba(21,38,80,.08);
}

html{
  scroll-behavior:smooth;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:linear-gradient(180deg,#f8faff 0%, #eef3fb 100%);
  color:var(--text);
  line-height:1.6;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:min(1120px, calc(100% - 40px));
  margin:0 auto;
}

.skip-link{
  position:absolute;
  left:-9999px;
  top:auto;
}

.skip-link:focus{
  left:12px;
  top:12px;
  z-index:9999;
  background:#fff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 12px;
}

.topbar{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(10px);
  background:rgba(255,255,255,.95);
  border-bottom:1px solid var(--line);
}

.topbar__inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand__mark{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  background:var(--accent);
  color:#fff;
  border-radius:12px;
  box-shadow:var(--shadow);
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
}

.brand__title{
  font-weight:800;
  color:var(--accent);
}

.brand__sub{
  font-size:12px;
  color:var(--muted);
}

.navbtn{
  display:none;
  border:1px solid var(--line);
  background:#fff;
  color:var(--accent);
  border-radius:10px;
  padding:9px 12px;
  font-weight:600;
  cursor:pointer;
}

.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav a,
.dropdown-toggle{
  color:var(--muted);
  font-size:13px;
  padding:8px 10px;
  border-radius:10px;
  transition:all .2s ease;
}

.nav a:hover,
.dropdown-toggle:hover{
  color:var(--accent);
  background:rgba(37,64,143,.06);
}

.dropdown{
  position:relative;
}

.dropdown-toggle{
  border:none;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.dropdown-caret{
  display:inline-block;
  font-size:11px;
  transition:transform .2s ease;
}

.dropdown.open .dropdown-caret{
  transform:rotate(180deg);
}

.dropdown-menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:240px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:var(--shadow);
  padding:8px;
  display:flex;
  flex-direction:column;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index:1200;
}

.dropdown.open .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}

.dropdown-label{
  padding:8px 12px 4px;
  font-size:11px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--accent);
  font-weight:700;
}

.dropdown-menu a{
  display:block;
  padding:10px 12px;
  border-radius:10px;
  color:var(--muted);
  font-size:13px;
}

.dropdown-menu a:hover{
  color:var(--accent);
  background:rgba(37,64,143,.06);
}

.hero,
.page-hero{
  padding:60px 0 30px;
}

.hero__grid{
  display:grid;
  grid-template-columns:1.25fr .75fr;
  gap:24px;
  align-items:start;
}

.kicker{
  color:var(--accent);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

h1{
  margin:12px 0;
  font-size:clamp(32px, 4vw, 50px);
  line-height:1.08;
  color:var(--accent);
}

h2,
h3{
  color:var(--accent);
}

.lead{
  color:var(--muted);
  max-width:740px;
}

.button-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border-radius:12px;
  border:1px solid var(--accent);
  background:#fff;
  color:var(--accent);
  font-weight:600;
}

.btn:hover{
  background:#f0f5ff;
}

.btn--primary{
  background:var(--accent);
  color:#fff;
}

.btn--primary:hover{
  background:#1d3578;
}

.tag-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:18px;
}

.tag{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(37,64,143,.16);
  background:#fff;
  color:var(--accent);
  font-size:12px;
  font-weight:500;
}

.section{
  padding:50px 0;
}

.section--alt{
  background:#eef3fb;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section__head{
  margin-bottom:20px;
}

.section__head p{
  color:var(--muted);
  max-width:850px;
}

.grid{
  display:grid;
  gap:16px;
}

.grid--2{
  grid-template-columns:repeat(2,1fr);
}

.grid--3{
  grid-template-columns:repeat(3,1fr);
}

.grid--4{
  grid-template-columns:repeat(4,1fr);
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px;
  box-shadow:var(--shadow);
}

.card p,
.card li{
  color:var(--muted);
}

.info-list{
  display:grid;
  gap:10px;
}

.info-list__row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  border-top:1px solid var(--line);
}

.info-list__row:first-child{
  border-top:0;
}

.content-list{
  margin:0;
  padding-left:18px;
}

.content-list li{
  margin:8px 0;
}

.semester-card h2{
  margin-top:0;
}

.course-block{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--line);
}

.course-block:first-of-type{
  margin-top:10px;
}

.course-block h3{
  margin:0 0 8px;
  font-size:16px;
}

.course-block p{
  margin:0 0 8px;
}

.total-card{
  margin-top:18px;
  background:rgba(37,64,143,.04);
}

.resource-card h2{
  margin-top:0;
}

.resource-card .button-row{
  margin-top:14px;
}

.section-back{
  margin-top:18px;
  display:flex;
  justify-content:flex-end;
}

.section-back a{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 13px;
  border-radius:999px;
  border:1px solid rgba(37,64,143,.18);
  background:#fff;
  color:var(--accent);
  font-size:13px;
  font-weight:600;
}

.section-back a:hover{
  background:var(--accent);
  color:#fff;
}

.footer{
  background:#fff;
  border-top:1px solid var(--line);
  padding:20px 0;
}

.footer__inner{
  display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:13px;
}

@media (max-width:1000px){
  .hero__grid{
    grid-template-columns:1fr;
  }

  .grid--4{
    grid-template-columns:repeat(2,1fr);
  }

  .grid--3{
    grid-template-columns:1fr;
  }

  .grid--2{
    grid-template-columns:1fr;
  }
}

@media (max-width:860px){
  .navbtn{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    right:20px;
    top:72px;
    width:min(270px, calc(100vw - 40px));
    flex-direction:column;
    align-items:stretch;
    padding:10px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:14px;
    box-shadow:var(--shadow);
    z-index:1300;
  }

  .nav.open{
    display:flex;
  }

  .nav a,
  .dropdown-toggle{
    width:100%;
    text-align:left;
  }

  .dropdown{
    width:100%;
  }

  .dropdown-menu{
    position:static;
    min-width:100%;
    margin-top:6px;
    box-shadow:none;
    max-height:0;
    overflow:hidden;
    padding:0 8px;
    opacity:1;
    visibility:visible;
    transform:none;
    transition:max-height .22s ease, padding .22s ease;
  }

  .dropdown.open .dropdown-menu{
    max-height:320px;
    padding:8px;
  }
}

@media (max-width:620px){
  .grid--4{
    grid-template-columns:1fr;
  }
}
