:root {
  --ink: #2d3436;
  --blue: #2e86c1;
  --deep: #1a5276;
  --muted: #636e72
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px
}

body {
  margin: 0;
  color: var(--ink);
  background: #f8f9fa;
  font-family: 'Segoe UI', system-ui, sans-serif
}

.container {
  max-width: 1100px;
  padding-inline: 20px;
  margin-inline: auto
}

a {
  color: inherit
}

header {
  position: relative;
  isolation: isolate;
  color: white;
  background: linear-gradient(100deg, var(--deep), var(--blue));
  overflow: hidden
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18
}

.backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.utility {
  background: #00000026;
  font-size: 13px;
  padding-block: 8px
}

.utility .container {
  display: flex;
  justify-content: space-between;
  gap: 12px
}

.utility a {
  text-decoration: none;
  margin-left: 18px;
  color: #ffffffe0
}

.hero {
  text-align: center;
  padding: 60px 20px 64px
}

.badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #ffffffb3
}

.badge i {
  display: block;
  background: white;
  border-radius: 12px;
  width: 48px;
  height: 48px
}

.hero h1 {
  font-size: 2.4rem;
  letter-spacing: -.5px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px #0005;
  line-height: 1.25
}

.hero p {
  font-size: 1.1rem;
  max-width: 600px;
  margin: auto;
  line-height: 1.3;
  opacity: .9
}

nav {
  position: sticky;
  top: 0;
  z-index: 3;
  background: white;
  border-bottom: 1px solid #e0e0e0
}

nav .container {
  display: flex;
  overflow: auto
}

nav a {
  padding: 14px 20px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  color: #555
}

nav a:hover,
nav a[aria-current] {
  border-color: var(--blue);
  color: var(--deep)
}

main {
  padding-block: 40px 60px
}

section {
  margin-bottom: 40px
}

h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 20px
}

h2 em {
  font-style: normal;
  color: var(--blue)
}

p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px
}

.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center
}

.welcome p {
  margin: 8px 0 12px
}

.welcome img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 16px #0002
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0
}

.stat {
  padding: 24px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 12px;
  background: white
}

.stat strong {
  font-size: 32px;
  color: var(--blue);
  display: block
}

.stat small {
  display: block;
  margin-top: 4px;
  font-size: 13.6px;
  color: #888
}

.programs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.program {
  border: 1px solid #eee;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  box-shadow: 0 1px 3px #0000000f;
  transition: transform .2s
}

.program:hover {
  transform: translateY(-2px)
}

.program>img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block
}

.program-body {
  padding: 20px 24px 24px
}

.program h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--deep);
  font-size: 17.6px;
  margin: 0 0 8px
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: #ebf5fb;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 16px
}

.program p {
  font-size: 14.4px;
  line-height: 1.6;
  margin: 0
}

.campus {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 40px
}

.campus>img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block
}

.campus>div {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
  background: linear-gradient(transparent 40%, #1a5276d9);
  color: white
}

.campus h3 {
  font-size: 21px;
  margin: 0;
  font-weight: 600
}

.campus p {
  font-size: 14px;
  color: #ffffffcc;
  margin: 4px 0 0
}

.announcement {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  margin: 12px 0
}

.date {
  background: #ebf5fb;
  border-radius: 8px;
  min-width: 70px;
  padding: 8px 12px;
  text-align: center;
  color: var(--deep);
  align-self: flex-start
}

.date span {
  font-size: 10px;
  display: block
}

.date b {
  display: block;
  font-size: 18px
}

.announcement h3 {
  font-size: 15px;
  margin: 0 0 4px
}

.announcement p {
  font-size: 13.6px;
  line-height: 1.5;
  margin: 0
}

.calendar,
.departments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px
}

.event {
  background: white;
  border: 1px solid #eee;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px
}

.event small {
  color: var(--blue);
  font-weight: 600
}

.event p {
  margin: 4px 0 0;
  font-size: 14px
}

.departments {
  grid-template-columns: repeat(4, 1fr)
}

.department {
  background: white;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 10px;
  text-align: center
}

.department i {
  font-size: 28px;
  font-style: normal
}

.department h3 {
  font-size: 15px;
  color: var(--deep);
  margin: 8px 0 4px
}

.department p {
  font-size: 13px;
  color: #888;
  margin: 0
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px
}

details {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  margin: 10px 0;
  padding: 16px 20px
}

summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600
}

details p {
  font-size: 14px;
  margin-bottom: 0
}

.contact {
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.contact-grid>div {
  display: flex;
  gap: 12px
}

.contact-grid small {
  color: #888
}

.contact-grid p {
  margin: 3px 0;
  font-size: 14px
}

footer {
  text-align: center;
  background: var(--deep);
  padding: 32px 20px;
  color: #ffffffb3;
  font-size: 13px;
  line-height: 1.7
}

footer a {
  color: white
}

dialog {
  border: 1px solid #ddd;
  border-radius: 12px;
  max-width: 420px;
  width: calc(100% - 40px);
  padding: 25px
}

dialog::backdrop {
  background: #0007
}

dialog button {
  padding: 10px 20px;
  background: var(--deep);
  color: white;
  border: 0;
  border-radius: 7px;
  cursor: pointer
}

:focus-visible {
  outline: 3px solid #da8c1c;
  outline-offset: 3px
}

@media(max-width:700px) {
  .hero h1 {
    font-size: 25.6px
  }

  .welcome,
  .programs {
    grid-template-columns: 1fr
  }

  .stats,
  .gallery,
  .departments,
  .calendar {
    grid-template-columns: repeat(2, 1fr)
  }

  .utility .container {
    flex-wrap: wrap
  }

  .utility a {
    margin: 0 15px 0 0
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:450px) {

  .stats,
  .gallery,
  .calendar {
    grid-template-columns: 1fr
  }

  .departments {
    grid-template-columns: 1fr 1fr
  }

  .hero {
    padding-inline: 20px
  }

  h2 {
    font-size: 22px
  }

  .announcement {
    padding: 18px
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  .program {
    transition: none
  }
}

[hidden] {
  display: none !important
}

.mock-banner {
  background: #eaf4fa;
  color: #24516e;
  padding: 10px 20px;
  text-align: center;
  font-size: 13px
}

.page-heading:focus {
  outline: none
}

.action {
  display: inline-block;
  background: #1a5276;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 10px 16px;
  font: 600 14px 'Segoe UI', sans-serif;
  cursor: pointer;
  text-decoration: none;
  margin-top: 12px
}

.action:hover {
  background: #246f9c
}

.mock-form {
  max-width: 640px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 28px;
  margin: 25px 0
}

.mock-form label,
.filter-label {
  display: block;
  font-size: 14px;
  margin: 14px 0;
  font-weight: 600
}

.mock-form input,
.mock-form select,
.mock-form textarea,
.filter-label input {
  display: block;
  width: 100%;
  margin-top: 7px;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #bbcbd5;
  border-radius: 6px;
  background: white;
  font: 15px 'Segoe UI', sans-serif
}

.mock-form textarea {
  min-height: 110px;
  resize: vertical
}

.filter-label {
  max-width: 500px;
  margin-bottom: 24px
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ebf5fb;
  color: #1a5276;
  margin-bottom: 15px;
  font-weight: 700
}

.table-scroll {
  overflow: auto
}

table {
  border-collapse: collapse;
  background: white;
  width: 100%;
  min-width: 550px
}

th,
td {
  text-align: left;
  padding: 15px;
  border: 1px solid #e4e9ed;
  font-size: 14px
}

th {
  color: #1a5276;
  background: #ebf5fb
}

.task {
  display: block;
  background: white;
  border: 1px solid #eee;
  border-radius: 7px;
  padding: 17px;
  margin: 10px 0
}

.task input {
  accent-color: #1a5276
}

.task:has(input:checked) {
  color: #63736a;
  text-decoration: line-through
}

.mock-form [role=status] {
  color: #176139
}

#page-view {
  min-height: 60vh
}

footer .action {
  background: white;
  color: #1a5276
}

.book-kicker {
  font-size: 12px;
  letter-spacing: 2px;
  color: #85632d;
  font-weight: 700
}

.book-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between
}

.book-heading p {
  max-width: 730px
}

.book-summary {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0 25px
}

.book-summary span {
  padding: 9px 15px;
  background: #e8eef1;
  color: #244c64;
  border-radius: 20px;
  font-size: 13px
}

.book-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 30px;
  margin-top: 28px
}

.book-sidebar {
  align-self: start;
  position: sticky;
  top: 75px
}

.book-sidebar input {
  width: 100%;
  padding: 11px;
  border: 1px solid #ccd6dd;
  border-radius: 7px;
  margin: 8px 0 12px;
  font: inherit
}

.book-sidebar label {
  font-size: 13px;
  font-weight: 600
}

#book-toc {
  position: static;
  display: grid;
  gap: 6px;
  background: transparent;
  border: 0;
  max-height: 440px;
  overflow: auto
}

#book-toc button {
  text-align: left;
  background: white;
  border: 1px solid #e3e7eb;
  border-radius: 8px;
  padding: 13px;
  color: #274b63;
  font: 600 14px 'Segoe UI', sans-serif;
  cursor: pointer
}

#book-toc button[aria-current] {
  background: #1a5276;
  color: white
}

#book-toc small {
  display: block;
  opacity: .75;
  font-weight: 400;
  margin-top: 4px
}

.book-local {
  font-size: 12px
}

#book-lesson {
  background: #fffdf8;
  border: 1px solid #e8e0d2;
  border-radius: 12px;
  padding: 30px;
  min-width: 0
}

#book-lesson h3 {
  font: 600 23px Georgia, serif;
  line-height: 1.4;
  color: #2d4051;
  margin: 26px 0 12px
}

#book-lesson h2 {
  font: 600 32px Georgia, serif;
  line-height: 1.25;
  margin: 10px 0 15px
}

#book-lesson p,
#book-lesson li {
  font-size: 16px;
  line-height: 1.8;
  color: #4b535b
}

#book-lesson figure {
  margin: 25px 0
}

#book-lesson figure img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #eae8e1;
  border-radius: 8px
}

#book-lesson figcaption {
  font-size: 12px;
  line-height: 1.7;
  color: #62666b;
  margin-top: 10px
}

#book-lesson a {
  color: #185e85;
  overflow-wrap: anywhere
}

.book-question {
  padding: 18px;
  background: #eaf1f3;
  border-left: 3px solid #327a99;
  font: italic 20px Georgia, serif;
  line-height: 1.5
}

.book-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.book-terms div {
  padding: 15px;
  border: 1px solid #e6dfd1;
  border-radius: 8px
}

.book-terms dt {
  font-weight: 700
}

.book-terms dd {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6
}

.book-check {
  padding: 20px;
  background: #f1eee5;
  border: 0;
  border-radius: 10px
}

.book-check legend {
  font-weight: 700;
  padding-top: 20px
}

.book-choice {
  display: block;
  padding: 10px;
  border-radius: 7px;
  margin: 8px 0;
  background: white;
  font-size: 14px
}

.book-choice input {
  margin-right: 8px
}

#book-feedback {
  font-weight: 600;
  font-size: 14px
}

#book-notes {
  width: 100%;
  min-height: 140px;
  border: 1px solid #cbbfa7;
  border-radius: 8px;
  background: white;
  padding: 14px;
  font: 16px/1.6 'Segoe UI', sans-serif;
  resize: vertical
}

.book-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px
}

.book-controls button:disabled {
  opacity: .45;
  cursor: default
}

.book-timeline {
  padding: 18px;
  border-left: 3px solid #c29b59;
  background: #f6f0e5;
  font-size: 14px
}

.book-timeline strong {
  display: block;
  margin-bottom: 8px
}

.book-status {
  font-size: 12px !important
}

.course-guide {
  background: #fffdf8
}

@media(max-width:760px) {
  .book-layout {
    grid-template-columns: 1fr
  }

  .book-sidebar {
    position: static
  }

  #book-toc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 215px
  }

  .book-heading {
    display: block
  }

  #book-lesson {
    padding: 21px
  }

  #book-lesson h2 {
    font-size: 28px
  }

  #book-lesson figure img {
    height: 230px
  }

  .book-terms {
    grid-template-columns: 1fr
  }
}

@media print {
  body>*:not(#page-view) {
    display: none !important
  }

  #page-view>*:not(.book-layout),
  .book-sidebar,
  .book-controls,
  #book-export,
  #book-print {
    display: none !important
  }

  .book-layout {
    display: block
  }

  #book-lesson {
    border: 0;
    padding: 0
  }

  details {
    display: block
  }

  #book-lesson figure img {
    max-height: 240px
  }

  #book-lesson a {
    color: inherit
  }

  #book-lesson {
    break-inside: auto
  }
}

.hero p {
  color: white
}
