:root {
  --navy: #103f5c;
  --navy-deep: #082f46;
  --blue: #146b92;
  --teal: #16866f;
  --teal-dark: #0d6856;
  --mint: #dff4ed;
  --gold: #d9a12e;
  --gold-soft: #fff4d6;
  --red: #b34b3d;
  --ink: #17232c;
  --muted: #61717d;
  --line: #d9e2e6;
  --paper: #ffffff;
  --canvas: #f4f7f8;
  --shadow: 0 14px 34px rgba(18, 48, 64, 0.11);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--navy-deep);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #f2bf4b;
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-inner,
.nav-inner,
.section-inner,
.footer-inner,
.page-intro-inner,
.admin-shell {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.header-inner {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  color: var(--navy);
  font-size: 20px;
  line-height: 1.35;
}

.brand-copy span {
  margin-top: 4px;
  color: #324957;
  font-size: 17px;
  line-height: 1.45;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--navy);
  background: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.main-nav {
  color: #fff;
  background: var(--navy);
}

.nav-inner {
  min-height: 52px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.nav-inner a {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}

.nav-inner a:hover,
.nav-inner a.active {
  background: rgba(255, 255, 255, 0.1);
  border-bottom-color: #68cfb4;
}

main {
  min-height: 60vh;
}

.loading-view {
  min-height: 50vh;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 430px;
  height: min(58vh, 560px);
  display: flex;
  align-items: center;
  color: #fff;
  background-image: url("/assets/qut-campus.jpg");
  background-position: center 48%;
  background-size: cover;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(4, 37, 54, 0.62);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  padding: 46px 0 58px;
}

.hero-kicker {
  margin: 0 0 13px;
  color: #a7ead7;
  font-size: 16px;
  font-weight: 700;
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: 50px;
  line-height: 1.22;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero-description {
  max-width: 720px;
  margin: 22px 0 0;
  color: #eef8f5;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--teal);
}

.button-primary:hover {
  background: var(--teal-dark);
}

.button-light {
  color: var(--navy-deep);
  background: #fff;
}

.button-outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.button-outline {
  color: var(--navy);
  background: #fff;
  border-color: #a8bdc8;
}

.button-danger {
  color: #fff;
  background: var(--red);
}

.button-small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}

.stats-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-item {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px 30px;
  border-right: 1px solid var(--line);
}

.stat-item:first-child {
  border-left: 1px solid var(--line);
}

.stat-item strong {
  color: var(--navy);
  font-size: 30px;
  line-height: 1.2;
}

.stat-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 72px 0;
}

.section-white {
  background: #fff;
}

.section-mint {
  background: #edf8f4;
}

.section-dark {
  color: #fff;
  background: var(--navy-deep);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 30px;
  line-height: 1.3;
}

.section-heading p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
}

.section-dark .section-heading h2,
.section-dark .section-heading p {
  color: #fff;
}

.text-link {
  flex: 0 0 auto;
  color: var(--teal-dark);
  font-weight: 700;
}

.text-link:hover {
  text-decoration: underline;
}

.course-grid,
.case-grid,
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.course-card,
.case-card,
.achievement-card,
.resource-row,
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.course-card {
  min-width: 0;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(19, 57, 75, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.course-cover {
  position: relative;
  height: 156px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 20px;
  color: #fff;
  background: var(--cover-color, var(--navy));
  overflow: hidden;
}

.course-cover::before,
.course-cover::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.23);
  transform: rotate(18deg);
}

.course-cover::before {
  width: 190px;
  height: 75px;
  top: -26px;
  right: -40px;
}

.course-cover::after {
  width: 130px;
  height: 130px;
  right: 15px;
  bottom: -90px;
}

.course-mark {
  position: relative;
  z-index: 1;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.course-mark-text {
  font-size: 26px;
  letter-spacing: 3px;
}

.course-count {
  position: relative;
  z-index: 1;
  font-size: 13px;
}

.course-body {
  padding: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.tag-gold {
  color: #73520d;
  background: var(--gold-soft);
}

.course-body h3,
.case-card h3,
.achievement-card h3 {
  margin: 13px 0 8px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
}

.course-body p,
.case-card p,
.achievement-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.course-meta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid #edf1f3;
  color: #536774;
  font-size: 13px;
}

.course-meta .button {
  flex: 0 0 auto;
}

.case-card,
.achievement-card {
  padding: 24px;
}

.case-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.case-card-link:hover,
.case-card-link:focus-visible {
  color: inherit;
  border-color: var(--teal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.case-card-link:focus-visible {
  outline: 3px solid rgba(19, 108, 143, 0.24);
  outline-offset: 3px;
}

.case-top,
.achievement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-number {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
}

.case-result {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-weight: 700;
}

.achievement-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.achievement-row-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.achievement-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.achievement-row:hover,
.achievement-row:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
  color: inherit;
}

.achievement-row .tag {
  flex: 0 0 auto;
}

.achievement-row-title {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.achievement-row-date {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 14px;
}

.achievement-row-arrow {
  flex: 0 0 auto;
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
}

.achievement-detail {
  max-width: 860px;
  margin: 0 auto;
}

.achievement-detail-images {
  display: grid;
  gap: 24px;
  margin: 28px 0;
}

.achievement-detail-image {
  display: block;
  text-align: center;
}

.achievement-detail-image img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}

.achievement-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.achievement-detail-actions .button {
  text-decoration: none;
}

.feature-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 54px;
  align-items: center;
}

.feature-photo {
  position: relative;
  min-height: 390px;
  background-image: url("/assets/qut-campus.jpg");
  background-position: center;
  background-size: cover;
}

.feature-photo::after {
  content: "";
  position: absolute;
  width: 38%;
  height: 42%;
  right: -16px;
  bottom: -16px;
  border-right: 16px solid var(--teal);
  border-bottom: 16px solid var(--teal);
}

.feature-copy h2 {
  margin: 0 0 18px;
  font-size: 34px;
  line-height: 1.35;
}

.feature-copy p {
  margin: 0 0 22px;
  color: #d7e8ee;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #eef7f9;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #77d7bd;
  font-weight: 800;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  min-height: 96px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
}

.news-date {
  text-align: center;
  color: var(--navy);
  border-right: 1px solid var(--line);
}

.news-date strong,
.news-date span {
  display: block;
}

.news-date strong {
  font-size: 24px;
  line-height: 1.2;
}

.news-date span {
  color: var(--muted);
  font-size: 12px;
}

.news-copy h3 {
  margin: 0;
  font-size: 17px;
}

.news-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.news-arrow {
  color: var(--teal);
  font-size: 24px;
}

.page-intro {
  color: #fff;
  background: var(--navy-deep);
  border-top: 5px solid var(--teal);
}

.page-intro-inner {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0;
}

.page-intro .breadcrumb {
  margin: 0 0 15px;
  color: #a6d9ca;
  font-size: 14px;
}

.page-intro h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1.3;
}

.page-intro p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #d7e6eb;
  font-size: 16px;
}

.content-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.segment-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.segment-control button {
  min-height: 36px;
  padding: 6px 13px;
  border: 0;
  border-radius: 4px;
  color: #4f626f;
  background: transparent;
  cursor: pointer;
}

.segment-control button:hover,
.segment-control button.active {
  color: #fff;
  background: var(--navy);
}

.search-field {
  min-width: min(100%, 300px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #b8c8d0;
  border-radius: 5px;
  background: #fff;
}

.search-field span {
  color: var(--navy);
  font-size: 20px;
}

.search-field input {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.empty-state {
  padding: 52px 20px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #b8c8d0;
  background: #fff;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 58px;
  align-items: start;
}

.prose h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 30px;
}

.prose p {
  margin: 0 0 18px;
  color: #4f626e;
  font-size: 16px;
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.mission-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.mission-list strong {
  color: var(--teal);
  font-size: 24px;
}

.mission-list h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.mission-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.about-photo {
  min-height: 410px;
  background-image: url("/assets/qut-campus.jpg");
  background-position: center;
  background-size: cover;
  border-left: 12px solid var(--gold);
}

.achievement-card {
  border-top: 4px solid var(--teal);
}

.achievement-card:nth-child(2n) {
  border-top-color: var(--gold);
}

.achievement-year {
  color: var(--muted);
  font-size: 13px;
}

.resource-list {
  display: grid;
  gap: 12px;
}

.resource-row {
  min-height: 98px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}

.file-mark {
  width: 50px;
  height: 58px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--navy);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
}

.resource-copy h3 {
  margin: 0;
  font-size: 17px;
}

.resource-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  color: #d8e7ec;
  background: #092c41;
}

.footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 30px 0;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

.footer-inner p {
  margin: 5px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a:hover {
  color: #82dec5;
}

.footer-bottom {
  padding: 13px 20px;
  color: #b6cbd4;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 16px;
  color: #fff;
  background: var(--navy-deep);
  border-left: 4px solid #66d5b5;
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.admin-page {
  min-height: 70vh;
  padding: 48px 0 72px;
  background: #eef3f5;
}

.admin-login {
  width: min(calc(100% - 40px), 460px);
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-top: 5px solid var(--teal);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.admin-login h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 28px;
}

.admin-login > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 17px;
}

.form-field label {
  color: #354955;
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #acbec7;
  border-radius: 4px;
}

.form-field textarea {
  min-height: 116px;
  resize: vertical;
}

.form-error {
  min-height: 24px;
  margin: 4px 0 10px;
  color: #a43c31;
  font-size: 14px;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.admin-header h1 {
  margin: 0;
  color: var(--navy);
  font-size: 30px;
}

.admin-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-list {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-row {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px 180px;
  align-items: center;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row h3 {
  margin: 0;
  font-size: 16px;
}

.admin-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-category {
  color: var(--teal-dark);
  font-size: 14px;
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid #afc1ca;
  border-radius: 4px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-size: 17px;
}

.icon-button:hover {
  background: #edf5f7;
}

.icon-button.danger {
  color: var(--red);
  border-color: #dfb2ac;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 27, 38, 0.66);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
}

.modal-header {
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
}

.modal-body {
  padding: 22px;
}

.modal-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-bottom: 17px;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
}

.error-view {
  width: min(calc(100% - 40px), 700px);
  margin: 70px auto;
  padding: 34px;
  color: #7c3028;
  background: #fff;
  border-left: 5px solid var(--red);
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 88px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy span {
    font-size: 14px;
  }

  .menu-button {
    display: block;
    flex: 0 0 auto;
  }

  .main-nav {
    display: none;
  }

  .main-nav.open {
    display: block;
  }

  .nav-inner {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 8px 14px 14px;
  }

  .nav-inner a {
    justify-content: flex-start;
    padding: 0 16px;
    border-bottom-width: 1px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 440px;
    height: auto;
  }

  .hero h1 {
    font-size: 42px;
  }

  .course-grid,
  .case-grid,
  .achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-split,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .feature-photo {
    min-height: 330px;
  }

  .about-photo {
    min-height: 340px;
  }

  .admin-row {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .footer-inner,
  .page-intro-inner,
  .admin-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .header-inner {
    min-height: 78px;
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand img {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy span {
    max-width: 218px;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.35;
  }

  .menu-button {
    width: 40px;
    height: 40px;
  }

  .nav-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    width: min(calc(100% - 28px), var(--content));
    padding: 48px 0;
  }

  .hero {
    min-height: 485px;
    background-position: 58% center;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .button-small,
  .admin-actions .button,
  .modal-footer .button {
    width: auto;
  }

  .stats-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item,
  .stat-item:first-child {
    min-height: 92px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-width: 0 1px 1px 0;
  }

  .stat-item strong {
    font-size: 26px;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .course-grid,
  .case-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .course-cover {
    height: 142px;
  }

  .feature-split {
    gap: 38px;
  }

  .feature-photo,
  .about-photo {
    min-height: 250px;
  }

  .feature-copy h2 {
    font-size: 28px;
  }

  .news-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    padding: 14px;
  }

  .news-date {
    border-right: 0;
  }

  .news-arrow {
    display: none;
  }

  .page-intro-inner {
    min-height: 200px;
    padding: 38px 0;
  }

  .page-intro h1 {
    font-size: 32px;
  }

  .content-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .segment-control {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    width: 100%;
  }

  .about-layout {
    gap: 38px;
  }

  .resource-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .file-mark {
    width: 44px;
    height: 52px;
  }

  .resource-meta {
    grid-column: 2;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }

  .admin-login {
    width: min(calc(100% - 28px), 460px);
    padding: 24px 20px;
  }

  .admin-header,
  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-row {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    grid-column: auto;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-full {
    grid-column: auto;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.en-text {
  display: block;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.en-inline {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.75;
  margin-left: 4px;
}

.brand-copy .en-text {
  margin-top: 1px;
}

.hero .en-text,
.page-intro .en-text {
  color: rgba(255, 255, 255, 0.72);
}

.hero h1 .en-text {
  margin-top: 8px;
}

.site-footer .en-text {
  color: #9fb8c4;
}

@media (max-width: 640px) {
  .en-text {
    font-size: 11px;
  }
}
