:root {
  --navy: #071c35;
  --navy-soft: #123b61;
  --red: #c92035;
  --red-dark: #a31629;
  --paper: #f5f3ee;
  --white: #fff;
  --ink: #111827;
  --muted: #667386;
  --line: #dfe3e7;
  --shadow: 0 22px 55px rgba(7, 28, 53, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
.site-header {
  display: flex;
  height: 84px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-top: 7px solid var(--red);
  background: var(--white);
}
.brand img { display: block; width: 210px; height: 62px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.site-header nav a { color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.site-header nav .header-apply {
  padding: 10px 17px;
  border-radius: 5px;
  color: var(--white);
  background: var(--red);
}
.top-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4000 / 1375;
  background: #081238;
}
.carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 200%;
  animation: carousel-scroll 10s infinite;
}
.carousel-slide {
  position: relative;
  flex: 0 0 50%;
  margin: 0;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-status {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.carousel-status span {
  width: 44px;
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, .38);
}
.carousel-status span::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  animation: carousel-progress 10s infinite;
}
.carousel-status span:nth-child(2)::after { animation-delay: 5s; }
@keyframes carousel-scroll {
  0%, 45% { transform: translateX(0); }
  50%, 95% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
@keyframes carousel-progress {
  0% { transform: scaleX(0); }
  45% { transform: scaleX(1); }
  50%, 100% { transform: scaleX(0); }
}
.eyebrow {
  margin: 0 0 13px;
  color: #ef7182;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .17em;
}
.eyebrow.red { color: var(--red); }
h1, h2, h3, h4, p { overflow-wrap: break-word; }
h1, h2 {
  margin: 0;
  font-family: Georgia, "Noto Serif SC", serif;
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.12;
}
h2 { color: var(--navy); font-size: clamp(34px, 4.5vw, 50px); }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 25px;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.intro-strip {
  position: relative;
  display: grid;
  width: min(1040px, calc(100% - 48px));
  grid-template-columns: repeat(4, 1fr);
  margin: 32px auto 0;
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.intro-strip div { padding: 24px; border-right: 1px solid var(--line); text-align: center; }
.intro-strip div:last-child { border: 0; }
.intro-strip strong, .intro-strip span { display: block; }
.intro-strip strong { color: var(--red); font: 600 25px Georgia, serif; }
.intro-strip span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.directory, .programme-section {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 105px 0 0;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
}
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 15px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.guide-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 13px 35px rgba(7,28,53,.055);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.guide-card:hover, .programme-card:hover { transform: translateY(-4px); border-color: #e3a6af; box-shadow: var(--shadow); }
.guide-card.featured { color: var(--white); border-color: var(--red); background: var(--red); }
.card-index { align-self: flex-end; color: #c1cad4; font: 600 23px Georgia, serif; }
.featured .card-index { color: #f6b5be; }
.guide-card small, .programme-card small { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.featured small { color: #ffd0d6; }
.guide-card h3 { margin: 10px 0 8px; color: var(--navy); font: 600 28px Georgia, "Noto Serif SC", serif; }
.featured h3 { color: var(--white); }
.guide-card p { margin: 0; color: var(--muted); font-size: 14px; }
.featured p { color: #ffe4e8; }
.guide-card b { font-size: 13px; }
.guide-card i { margin-left: 5px; font-style: normal; }
.programme-section { padding-bottom: 105px; }
.programme-group {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 40px;
  padding: 42px 0;
  border-top: 1px solid #d5d9de;
}
.group-label span { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.group-label h3 { margin: 8px 0 0; color: var(--navy); font: 600 25px/1.3 Georgia, "Noto Serif SC", serif; }
.programme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.programme-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.programme-card > span {
  position: absolute;
  top: 26px;
  right: 27px;
  color: #bbc4ce;
  font: 600 20px Georgia, serif;
}
.programme-card h4 { margin: 23px 0 7px; color: var(--navy); font: 600 24px/1.25 Georgia, "Noto Serif SC", serif; }
.programme-card p { margin: 0; color: var(--muted); font-size: 13px; }
.programme-card b { display: block; margin-top: 27px; color: var(--red); font-size: 12px; }
.programme-card.wide { grid-column: 1 / -1; min-height: 195px; }
.programme-card.external { color: var(--white); border-color: var(--navy); background: var(--navy); }
.programme-card.external h4 { color: var(--white); }
.programme-card.external p { color: #becbd8; }
.programme-card.external > span { color: #61778e; }
.university-news {
  padding: 105px max(24px, calc((100% - 1180px) / 2));
  background: #ece9e2;
}
.news-heading { margin-bottom: 35px; }
.news-rank-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: stretch;
  gap: 24px;
}
.rank-visual {
  margin: 0;
  overflow: hidden;
  border: 7px solid var(--white);
  border-radius: 16px;
  background: #081238;
  box-shadow: 0 18px 45px rgba(7, 28, 53, .14);
}
.rank-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-visual-poster {
  width: 100%;
}
.rank-visual-poster img {
  object-fit: contain;
  object-position: center top;
}
.latest-news {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 30px 32px;
  border-radius: 16px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 18px 45px rgba(7, 28, 53, .15);
}
.latest-news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.latest-news-header small {
  display: block;
  color: #8ea5bb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .15em;
}
.latest-news-header h3 {
  margin: 5px 0 0;
  font: 600 28px Georgia, "Noto Serif SC", serif;
}
.latest-news-header > a {
  flex: 0 0 auto;
  color: #f3c850;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}
.news-title-list {
  display: grid;
  flex: 1;
  margin: 0;
  padding: 0;
  counter-reset: news-item;
  list-style: none;
}
.news-title-list li {
  display: flex;
  min-width: 0;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .11);
  counter-increment: news-item;
}
.news-title-list li:last-child { border-bottom: 0; }
.news-title-list li::before {
  width: 31px;
  flex: 0 0 auto;
  color: #70879d;
  content: counter(news-item, decimal-leading-zero);
  font: 600 13px Georgia, serif;
}
.news-title-list a {
  display: block;
  padding: 13px 0;
  color: #edf3f8;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.news-title-list a:hover {
  color: #f3c850;
  transform: translateX(3px);
}
.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 72px max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--red);
}
.cta .eyebrow { color: #ffd1d7; }
.cta h2 { color: var(--white); font-size: clamp(34px, 4vw, 48px); }
.cta p:last-child { margin: 13px 0 0; color: #ffe1e5; }
.button.light { flex: 0 0 auto; color: var(--red); background: var(--white); }
footer {
  display: flex;
  min-height: 105px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 20px max(24px, calc((100% - 1180px) / 2));
  color: #738196;
  background: #041426;
  font-size: 13px;
}
footer img { width: 180px; height: 58px; object-fit: contain; filter: brightness(0) invert(1); }
footer a { color: var(--white); font-weight: 800; text-decoration: none; }

@media (max-width: 900px) {
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p { max-width: 650px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 230px; }
  .programme-group { grid-template-columns: 1fr; gap: 23px; }
  .news-rank-grid { grid-template-columns: 1fr; }
  .rank-visual-poster { max-width: 620px; margin: 0 auto; }
}

@media (max-width: 680px) {
  .site-header { height: 74px; }
  .brand img { width: 155px; height: 50px; }
  .site-header nav a:not(.header-apply) { display: none; }
  .top-carousel { aspect-ratio: 4000 / 1375; }
  .carousel-status { bottom: 8px; gap: 5px; }
  .carousel-status span { width: 28px; height: 3px; }
  .intro-strip { grid-template-columns: repeat(2, 1fr); }
  .intro-strip div:nth-child(2) { border-right: 0; }
  .intro-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .directory, .programme-section { width: min(100% - 32px, 1180px); padding-top: 80px; }
  .programme-section { padding-bottom: 80px; }
  .programme-grid { grid-template-columns: 1fr; }
  .programme-card.wide { grid-column: auto; }
  .university-news { padding: 80px 16px; }
  .rank-visual { border-width: 4px; border-radius: 11px; }
  .latest-news { padding: 25px 22px; }
  .latest-news-header { align-items: flex-start; }
  .latest-news-header h3 { font-size: 24px; }
  .news-title-list a { font-size: 13px; }
  .cta { align-items: flex-start; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; padding-top: 30px; padding-bottom: 30px; }
  footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track,
  .carousel-status span::after { animation: none; }
  .button, .guide-card, .programme-card, .news-title-list a { transition: none; }
}


.blog-welcome {
  width: min(1040px, calc(100% - 48px));
  margin: 26px auto 6px;
  text-align: center;
}
.blog-welcome h2 {
  display: inline-block;
  margin: 0;
  padding: 14px 26px;
  border-radius: 8px;
  background: #c92035;
  color: #fff;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  box-shadow: 0 18px 36px rgba(201, 32, 53, .24);
}
