:root {
  color-scheme: light;
  --ink: #181715;
  --muted: #6c665b;
  --paper: #f6f1e7;
  --surface: #fffdfa;
  --line: #d9cdb8;
  --teal: #0a4f45;
  --teal-dark: #063a33;
  --red: #8e3327;
  --gold: #b89145;
  --sky: #e7f0ef;
  --soft: #eee4d3;
  --shadow: 0 24px 60px rgba(35, 28, 18, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbf7ed 0%, var(--paper) 42%, #f2eadc 100%);
  font-family:
    Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui,
    sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(255, 253, 250, 0.9);
  border-bottom: 1px solid rgba(184, 145, 69, 0.28);
  box-shadow: 0 10px 28px rgba(35, 28, 18, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--ink), var(--teal));
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #3b4547;
}

.site-nav a,
.nav-trigger,
.nav-menu summary {
  font: inherit;
  text-decoration: none;
}

.nav-direct,
.nav-menu summary {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  color: #3b4547;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.nav-direct:hover,
.nav-direct:focus-visible,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: var(--red);
  background: #fff6e5;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-menu summary::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 12px;
}

.nav-menu[open] summary::after {
  content: "⌃";
}

.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
  width: min(880px, calc(100vw - 32px));
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 37, 40, 0.14);
}

.mega-column {
  display: grid;
  align-content: start;
  gap: 8px;
}

.mega-column strong {
  padding: 0 4px 6px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.mega-column a {
  display: grid;
  gap: 2px;
  padding: 10px;
  color: #31404a;
  border-radius: 6px;
  text-decoration: none;
}

.mega-column a:hover,
.mega-column a:focus-visible {
  color: var(--teal);
  background: #eaf2fb;
}

.mega-column span {
  font-size: 14px;
  font-weight: 900;
}

.mega-column em {
  color: #65737c;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.nav-group {
  position: relative;
}

.nav-trigger {
  min-height: 38px;
  padding: 8px 12px;
  color: #3b4547;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.nav-trigger::after {
  content: "⌄";
  margin-left: 6px;
  font-size: 12px;
}

.submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  display: grid;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(31, 37, 40, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.submenu a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #3b4547;
  font-weight: 800;
  white-space: nowrap;
}

.nav-group:hover .submenu,
.nav-group:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav a:hover,
.nav-trigger:hover,
.nav-trigger:focus-visible,
.submenu a:hover {
  color: var(--red);
}

.submenu a:hover {
  background: #fff6e5;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(20px, 3vw, 44px);
  min-height: auto;
  align-items: center;
  padding: clamp(26px, 4vw, 48px) clamp(20px, 5vw, 72px) 24px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 22px;
  color: #415052;
  font-size: clamp(17px, 1.7vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.button,
.contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.contact-form button {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 12px 24px rgba(10, 79, 69, 0.18);
}

.button.primary:hover,
.contact-form button:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 253, 250, 0.66);
  border-color: rgba(184, 145, 69, 0.45);
}

.hero-stats {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-stats div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(31, 37, 40, 0.09);
  border-radius: 8px;
}

.hero-stats dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.hero-stats dd {
  margin: 0;
  font-weight: 800;
}

.hero-media {
  position: relative;
  align-self: stretch;
  min-height: 320px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.detail-section[hidden] {
  display: none !important;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-heading p:last-child {
  color: var(--muted);
}

.intro-band {
  background: #f8f1e5;
  border-block: 1px solid rgba(31, 37, 40, 0.08);
  padding-block: clamp(34px, 5vw, 58px);
}

.question-grid,
.path-grid,
.source-grid,
.feature-list,
.scholarship-row,
.life-grid {
  display: grid;
  gap: 18px;
}

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

.portal-card,
.question-grid article,
.path-card,
.feature-list article,
.scholarship-row article,
.life-grid article {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(35, 28, 18, 0.05);
}

.portal-card {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.portal-card:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 42px rgba(31, 37, 40, 0.08);
  transform: translateY(-2px);
}

.portal-card p {
  margin-bottom: 0;
  color: #526062;
}

.home-eju-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
}

.home-eju-strip div,
.home-eju-strip a {
  padding: 16px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.06);
}

.home-eju-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.home-eju-strip strong {
  display: block;
  line-height: 1.35;
}

.home-eju-strip a {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.number {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-weight: 900;
}

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

.path-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.tag,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.tag {
  color: #fff;
  background: var(--teal);
}

.pill {
  color: #69420f;
  background: #f7e8bf;
}

.path-card p,
.question-grid p,
.feature-list p,
.scholarship-row p,
.life-grid p {
  color: #526062;
}

.path-card ul {
  padding-left: 20px;
  margin: auto 0 0;
  color: #405052;
}

.compare-section,
.costs-section,
.score-section {
  background: #f3eee3;
}

.score-tool {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  gap: 22px;
}

.score-form,
.score-output,
.university-toolbar,
.university-card,
.data-note,
.exam-flow article {
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.06);
}

.score-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  padding: 22px;
}

.score-form label,
.university-toolbar label {
  display: grid;
  gap: 8px;
  color: #435052;
  font-weight: 800;
}

.score-form input,
.score-form select,
.university-toolbar input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.score-form input[type="range"] {
  padding: 0;
  accent-color: var(--red);
}

.wide-field {
  grid-column: 1 / -1;
}

.score-form button {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--teal);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.score-output {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 16px;
}

.score-summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: auto;
  padding: 12px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-summary span {
  color: #526062;
  font-size: 12px;
  font-weight: 800;
}

.score-summary strong {
  margin: 0;
  font-size: 24px;
  line-height: 1;
}

.score-summary p {
  margin: 0;
  color: #526062;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.match-results {
  display: grid;
  gap: 12px;
}

.match-priority-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.priority-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(35, 28, 18, 0.1);
}

.priority-card span {
  font-size: 15px;
  font-weight: 900;
}

.priority-card strong {
  font-size: 32px;
  line-height: 1;
}

.priority-card em {
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  opacity: 0.9;
}

.priority-safety {
  background: #0f766e;
}

.priority-recommended {
  background: #0b5cad;
}

.priority-reach {
  background: #b45309;
}

.match-band {
  display: grid;
  gap: 10px;
  scroll-margin-top: 96px;
}

.match-band + .match-band {
  margin-top: 4px;
}

.match-band-head {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.match-band-head div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.match-band-head span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.match-band-head strong {
  color: #526062;
  font-size: 13px;
}

.match-band-head p {
  margin: 0;
  color: #526062;
  font-size: 13px;
  font-weight: 800;
}

.match-band-grid {
  display: grid;
  gap: 12px;
}

.compact-match-grid {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 10px;
}

.match-stage {
  position: relative;
  min-height: 360px;
}

.result-video {
  display: none;
  gap: 14px;
  align-content: center;
  min-height: 100%;
  padding: 18px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-output.is-loading .result-video {
  display: grid;
}

.score-output.is-loading .match-results {
  display: none;
}

.video-screen {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15, 111, 105, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(15, 111, 105, 0.08) 1px, transparent 1px),
    #fffaf1;
  background-size: 34px 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.result-video p {
  margin: 0;
  color: #405052;
  font-weight: 900;
  text-align: center;
}

.route-map {
  position: absolute;
  inset: 46px 34px;
}

.route-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 5px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--teal));
  border-radius: 999px;
  transform: translateY(-50%);
}

.route-map span {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: var(--teal);
  border: 4px solid #fff;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(31, 37, 40, 0.16);
  transform: translate(-50%, -50%);
}

.route-map span:nth-child(1) {
  left: 9%;
}

.route-map span:nth-child(2) {
  left: 38%;
  background: var(--gold);
}

.route-map span:nth-child(3) {
  left: 64%;
  background: var(--red);
}

.route-map span:nth-child(4) {
  left: 91%;
}

.scan-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px;
  height: 62px;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(31, 37, 40, 0.18);
  animation: floatCard 1.28s ease-in-out infinite;
}

.card-a {
  left: 10%;
  top: 42px;
}

.card-b {
  right: 12%;
  top: 54px;
  background: var(--teal);
  animation-delay: 0.12s;
}

.card-c {
  left: 18%;
  bottom: 50px;
  background: var(--red);
  animation-delay: 0.24s;
}

.card-d {
  right: 10%;
  bottom: 42px;
  background: #4b5960;
  animation-delay: 0.36s;
}

.video-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  background: var(--gold);
  border: 6px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(212, 162, 58, 0.34);
  transform: translate(-50%, -50%);
  animation: pulseRoute 1.28s ease-out infinite;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulseRoute {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 162, 58, 0.34);
  }

  100% {
    box-shadow: 0 0 0 42px rgba(212, 162, 58, 0);
  }
}

.match-card {
  padding: 16px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.06);
}

.match-row {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.match-row-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 14px;
}

.match-school {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.match-school h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.match-card h3,
.university-card h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.match-row .match-school h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.match-level {
  min-width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--teal);
  font-size: 12px;
  font-weight: 900;
}

.match-level.band-safety {
  background: #0f766e;
}

.match-level.band-recommended {
  background: #0b5cad;
}

.match-level.band-reach {
  background: #b45309;
}

.recommendation-reason {
  padding: 9px 10px;
  color: #405052;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.match-row-reason {
  grid-column: 1 / -1;
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #405052;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.match-row-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  align-self: end;
  min-width: 0;
}

.match-row-actions a {
  display: inline-grid;
  min-height: 34px;
  padding: 7px 10px;
  place-items: center;
  color: var(--teal);
  background: #fff;
  border: 1px solid #9bb9d6;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 900;
}

.match-row-detail {
  border-top: 1px solid var(--line);
  background: #fffdf9;
}

.match-row-detail summary {
  display: block;
  padding: 10px 14px;
  color: #526062;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.match-row-detail summary::-webkit-details-marker {
  display: none;
}

.match-row-detail summary::after {
  content: "＋";
  float: right;
  color: var(--teal);
}

.match-row-detail[open] summary::after {
  content: "－";
}

.match-row-detail > p,
.match-row-detail .line-box,
.match-row-detail .admission-data-box,
.match-row-detail .risk-list {
  margin-right: 14px;
  margin-left: 14px;
}

.match-row-detail > p {
  margin-top: 10px;
}

.match-empty {
  background: #fbfcfd;
  box-shadow: none;
}

.match-empty p {
  margin: 0;
}

.accuracy-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.compact-tags {
  flex-wrap: nowrap;
  overflow: hidden;
  margin: 0;
}

.accuracy-tags span {
  padding: 4px 7px;
  color: #405052;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.compact-tags span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card p,
.university-card p,
.data-note {
  color: #526062;
}

.risk-list {
  display: grid;
  gap: 6px;
  padding: 10px 12px 10px 28px;
  margin: 10px 0;
  color: #7a2e23;
  background: #fff5f3;
  border: 1px solid #f0c7c1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
}

.risk-list li + li {
  margin-top: 2px;
}

.risk-list.ok {
  color: #064e3b;
  background: #effaf5;
  border-color: #b7e7ce;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.card-links a {
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

.match-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.match-more p {
  margin: 0;
  color: #526062;
  font-size: 14px;
  font-weight: 800;
}

.match-more button {
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.university-section {
  background: linear-gradient(180deg, #fbf6e9, #f3ead9);
}

.university-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
}

.accuracy-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.accuracy-panel div {
  padding: 14px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.05);
}

.accuracy-panel span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.accuracy-panel .wide-accuracy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 140px 1fr;
  gap: 10px;
  align-items: center;
}

.accuracy-panel .wide-accuracy span {
  margin-bottom: 0;
  background: var(--red);
}

.accuracy-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.accuracy-panel p {
  margin: 0;
  color: #526062;
  font-size: 13px;
  line-height: 1.6;
}

.university-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.university-grid.is-searching {
  opacity: 0.42;
  transform: translateY(4px);
}

.university-card {
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: 20px;
  animation: resultFade 0.24s ease both;
}

.university-card h3 {
  font-size: 20px;
  line-height: 1.28;
}

.empty-result {
  grid-column: 1 / -1;
  min-height: 0;
  background: #fff;
  border: 1px dashed #9fb3c8;
}

.university-search-status {
  display: none;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 12px 0;
  padding: 9px 12px;
  color: #17466f;
  background: #eaf2fb;
  border: 1px solid #c7d9ec;
  border-radius: 999px;
  font-size: 13px;
}

.university-search-status.is-active {
  display: inline-flex;
}

.university-search-status span {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(11, 92, 173, 0.25);
  border-top-color: var(--teal);
  border-radius: 999px;
  animation: spin 0.75s linear infinite;
}

.search-result-banner {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 14px;
  color: #17466f;
  background: #eaf2fb;
  border: 1px solid #c7d9ec;
  border-left: 5px solid var(--teal);
  border-radius: 4px;
}

.search-result-banner strong {
  color: #0f2438;
}

.search-result-banner span {
  color: #526062;
  font-size: 13px;
}

.university-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d7e0ea;
  border-radius: 4px;
}

.university-more p {
  margin: 0;
  color: #526062;
  font-size: 13px;
}

.university-more button {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--teal);
  border: 0;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.meta-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f2e8d2;
  color: #654a1f;
  font-size: 12px;
  font-weight: 900;
}

.line-box {
  padding: 14px;
  margin-top: 8px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.line-box strong {
  display: block;
  margin-bottom: 4px;
}

.admission-data-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admission-data-box div {
  display: grid;
  gap: 3px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf1f2;
}

.admission-data-box div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admission-data-box strong {
  color: #0f6f69;
  font-size: 12px;
  font-weight: 900;
}

.admission-data-box span {
  color: #465557;
  font-size: 13px;
  line-height: 1.55;
}

.admission-data-box a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.data-note {
  margin: 18px 0 0;
  padding: 16px 18px;
}

.admission-report-panel {
  display: grid;
  gap: 14px;
  margin: 24px 0 18px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: 6px;
}

.announcement-section {
  padding-top: 34px;
}

.compact-heading {
  margin-bottom: 18px;
}

.announcement-shell {
  display: block;
  min-width: 0;
}

.announcement-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.announcement-card {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.05);
}

.announcement-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.announcement-card span,
.announcement-card time {
  padding: 3px 8px;
  background: #eaf2fb;
  color: #17466f;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.announcement-card time {
  background: #f4f6f8;
  color: #526062;
}

.announcement-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.announcement-card p {
  margin: 0;
  color: #526062;
  overflow-wrap: anywhere;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes resultFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admission-report-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admission-report-form label {
  display: grid;
  gap: 6px;
  color: #4c585a;
  font-size: 13px;
  font-weight: 900;
}

.admission-report-form input,
.admission-report-form select {
  min-height: 42px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--line);
  font: inherit;
}

.admission-report-form button {
  align-self: end;
  min-height: 42px;
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.import-report-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  color: var(--teal);
  background: #fff;
  border: 1px solid #9bb9d6;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.import-report-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.report-summary {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.report-summary p {
  margin: 0;
  color: #526062;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.report-list article {
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.report-list span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.compare-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
}

.tab-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.tab {
  min-height: 48px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.tab.is-active {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.tab-panel {
  min-height: 278px;
  padding: clamp(22px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tab-panel p {
  max-width: 800px;
  color: #526062;
}

.tab-panel dl {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.tab-panel dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tab-panel dt {
  color: var(--red);
  font-weight: 900;
}

.tab-panel dd {
  margin: 0;
}

.eju-planner-section {
  background: #fffaf1;
}

.eju-dashboard,
.eju-plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.eju-plan-grid {
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr) minmax(260px, 0.8fr);
  margin-top: 18px;
}

.eju-official,
.eju-plan-form,
.eju-flow,
.eju-personal-plan,
.eju-alerts,
.eju-targets,
.study-resource-panel {
  padding: 18px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.06);
}

.eju-official {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(10, 79, 69, 0.96), rgba(24, 23, 21, 0.95)),
    #0a4f45;
  border-color: rgba(184, 145, 69, 0.7);
  box-shadow: 0 22px 54px rgba(10, 79, 69, 0.24);
}

.official-kicker {
  margin-bottom: 8px;
  color: #f0d393;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eju-official h3 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.official-lede {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
}

.official-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.official-link-card {
  display: grid;
  gap: 7px;
  min-height: 110px;
  padding: 18px;
  color: #181715;
  text-decoration: none;
  background: rgba(255, 253, 250, 0.96);
  border: 1px solid rgba(240, 211, 147, 0.48);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.official-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.2);
}

.official-link-card span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.official-link-card strong {
  font-size: 22px;
  line-height: 1.18;
}

.primary-official {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #5f1f18);
  border-color: rgba(255, 255, 255, 0.34);
}

.primary-official span {
  color: #ffe6b0;
}

.primary-official strong {
  font-size: clamp(28px, 3.2vw, 42px);
}

.eju-date-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.eju-date-list div {
  padding: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.eju-date-list dt {
  color: #f0d393;
  font-weight: 900;
}

.eju-date-list dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.84);
}

.eju-plan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.eju-plan-form label {
  display: grid;
  gap: 7px;
  color: #4c585a;
  font-weight: 800;
}

.eju-plan-form select,
.eju-plan-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.eju-flow ol,
.eju-alerts ul,
.eju-personal-plan ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 12px 0 0;
}

.eju-plan-card {
  padding: 12px;
  margin-top: 10px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.eju-plan-card strong {
  display: block;
  margin-bottom: 4px;
}

.eju-plan-card span,
.eju-alerts li {
  color: #526062;
}

.eju-targets {
  grid-column: 1 / -1;
}

#eju-target-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.eju-plan-card a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 900;
}

.study-resource-panel {
  margin-top: 18px;
}

.study-resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.study-resource-grid article {
  padding: 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.study-resource-grid span {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 26px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.study-resource-grid strong,
.study-resource-grid a {
  display: block;
  font-weight: 900;
}

.study-resource-grid p {
  color: #526062;
  font-size: 14px;
}

.study-resource-grid a {
  margin-top: 8px;
  color: var(--teal);
}

.resource-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.study-resource-grid .resource-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 9px;
  margin-top: 0;
  color: var(--teal);
  background: #fff;
  border: 1px solid #9bb9d6;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

.study-resource-grid .resource-link-list a:hover {
  background: #eef5fc;
}

.life-tool {
  display: grid;
  gap: 16px;
}

.life-choice,
.life-steps,
.life-result,
.life-admin-flow,
.life-resource-grid {
  display: grid;
  gap: 14px;
}

.life-choice {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.life-choice label {
  display: grid;
  gap: 7px;
  color: #4c585a;
  font-weight: 800;
}

.life-choice select {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

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

.life-steps div,
.life-result article,
.life-admin-flow article,
.life-resource-grid article {
  padding: 16px;
  background: rgba(255, 253, 250, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(35, 28, 18, 0.06);
}

.life-steps div {
  position: relative;
}

.life-steps div:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -10px;
  width: 20px;
  height: 2px;
  background: var(--teal);
}

.life-steps span,
.life-result span,
.life-admin-flow span {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  margin-bottom: 8px;
  color: #fff;
  background: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.life-admin-flow {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

.life-admin-flow article {
  background: #fff;
}

.life-admin-flow h3 {
  margin-top: 0;
}

.life-result,
.life-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.life-result strong {
  display: block;
  margin-bottom: 6px;
}

.life-result p,
.life-steps p,
.life-admin-flow p,
.life-resource-grid li {
  color: #526062;
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.resource-links a {
  padding: 7px 9px;
  color: var(--teal);
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.life-resource-grid ol {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 12px 0 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}

.timeline article {
  position: relative;
  min-height: 240px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline article::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 18px;
  top: 12px;
  color: rgba(15, 111, 105, 0.12);
  font-size: 64px;
  font-weight: 900;
  line-height: 1;
}

.timeline span {
  position: relative;
  display: inline-block;
  margin-bottom: 28px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.timeline p {
  color: #526062;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 20px;
}

.notice-panel,
.checklist,
.contact-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.notice-panel {
  padding: clamp(24px, 4vw, 42px);
}

.notice-panel p {
  color: #526062;
}

.text-link {
  color: var(--teal);
  font-weight: 900;
}

.checklist {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.checklist label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  background: #f8fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checklist input {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.visa-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.compact-links {
  margin-top: 18px;
}

.visa-flow-grid,
.form-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.visa-flow-grid article,
.visa-table-card,
.visa-form-guide,
.form-guide-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.visa-flow-grid article,
.form-guide-grid article {
  padding: 18px;
}

.visa-flow-grid span,
.form-guide-grid span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.visa-flow-grid p,
.form-guide-grid p,
.data-disclaimer {
  color: #526062;
}

.visa-table-card,
.visa-form-guide {
  margin-top: 20px;
  padding: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.info-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 14px;
}

.info-table th,
.info-table td {
  padding: 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.info-table th {
  color: #0f2438;
  background: #eef5f4;
  font-weight: 900;
}

.info-table td:first-child {
  color: var(--teal);
  font-weight: 900;
  white-space: nowrap;
}

.info-table a {
  color: var(--teal);
  font-weight: 900;
}

.compact-heading {
  margin-bottom: 0;
}

.compact-heading h3 {
  font-size: 26px;
}

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

.data-disclaimer {
  margin: 16px 0 0;
  padding: 14px 16px;
  background: #fff8e8;
  border: 1px solid #ead9ad;
  border-radius: 8px;
  font-size: 14px;
}

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

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

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

.exam-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.exam-flow article {
  padding: 24px;
}

.exam-flow span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.exam-flow p,
.exam-flow li {
  color: #526062;
}

.exam-flow .text-link {
  display: block;
  margin-top: 10px;
}

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

.source-grid a {
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.source-grid a:hover {
  border-color: var(--teal);
  box-shadow: 0 16px 42px rgba(31, 37, 40, 0.08);
}

.source-grid span {
  display: block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 1fr);
  gap: 28px;
  margin: 0 clamp(20px, 5vw, 72px) clamp(58px, 8vw, 104px);
  padding: clamp(24px, 5vw, 46px);
}

.contact-copy p:last-child {
  color: #526062;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #4c585a;
  font-weight: 800;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form button {
  align-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: #eef4f1;
  background: #1f2528;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-media {
    min-height: 360px;
  }

  .path-grid,
  .timeline,
  .source-grid,
  .university-grid,
  .accuracy-panel,
  .life-grid,
  .toolbox-grid,
  .visa-flow-grid,
  .form-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .question-grid,
  .feature-list,
  .scholarship-row,
  .exam-flow,
  .score-tool,
  .score-output,
  .eju-dashboard,
  .eju-plan-grid,
  #eju-target-output,
  .study-resource-grid,
  .university-toolbar,
  .accuracy-panel,
  .visa-overview,
  .toolbox-controls,
  .toolbox-add-form,
  .announcement-shell {
    grid-template-columns: 1fr;
  }

  .official-links,
  .eju-date-list {
    grid-template-columns: 1fr;
  }

  .accuracy-panel .wide-accuracy {
    grid-template-columns: auto 1fr;
  }

  .accuracy-panel .wide-accuracy p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: sticky;
    padding: 12px 16px;
  }

  .visa-flow-grid,
  .form-guide-grid,
  .toolbox-grid {
    grid-template-columns: 1fr;
  }

  .toolbox-head {
    display: grid;
  }

  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-group {
    position: static;
  }

  .nav-trigger {
    min-height: 36px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
  }

  .submenu {
    position: fixed;
    top: 96px;
    right: 16px;
    left: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
  }

  .submenu a {
    white-space: normal;
    text-align: center;
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .compare-shell,
  .split-layout,
  .contact-section,
  .contact-form,
  .eju-plan-form,
  .admission-report-form,
  .report-list,
  .life-choice,
  .life-steps,
  .life-result,
  .life-admin-flow,
  .life-resource-grid,
  .score-form {
    grid-template-columns: 1fr;
  }

  .hero-media,
  .hero-media img {
    min-height: 180px;
  }

  .question-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-eju-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-eju-strip a {
    grid-column: 1 / -1;
  }

  .portal-card {
    padding: 16px;
  }

  .portal-card .number {
    margin-bottom: 8px;
  }

  .portal-card h3 {
    margin-bottom: 0;
    font-size: 17px;
  }

  .portal-card p {
    display: none;
  }

  .path-grid,
  .timeline,
  .source-grid,
  .university-grid,
  .life-grid {
    grid-template-columns: 1fr;
  }

  .path-card {
    min-height: auto;
  }

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

  .tab {
    text-align: center;
  }

  .tab-panel dl div {
    grid-template-columns: 1fr;
  }

  .match-stage {
    min-height: 360px;
  }

  .score-summary {
    display: grid;
    text-align: left;
  }

  .score-summary p {
    text-align: left;
  }

  .match-priority-nav {
    grid-template-columns: 1fr;
  }

  .compact-match-grid {
    grid-template-columns: 1fr;
  }

  .match-row {
    aspect-ratio: auto;
  }

  .match-row-main {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .match-row-reason,
  .match-row-actions {
    grid-column: 1 / -1;
  }

  .match-row-actions {
    justify-content: space-between;
  }

  .compact-tags {
    flex-wrap: wrap;
  }

  .video-screen {
    min-height: 240px;
  }

  .scan-card {
    width: 96px;
    height: 54px;
    font-size: 13px;
  }

  .contact-section {
    margin-inline: 20px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scan-card,
  .video-pulse,
  .university-card,
  .university-search-status span {
    animation: none;
  }
}

/* Credible portal redesign: flatter, denser, and closer to official study-abroad sites. */
:root {
  --ink: #17202a;
  --muted: #596878;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --line: #d8e0e8;
  --teal: #0b5cad;
  --teal-dark: #063f7a;
  --red: #b42318;
  --gold: #a66f12;
  --sky: #eaf2fb;
  --soft: #eef3f7;
  --shadow: 0 10px 28px rgba(23, 32, 42, 0.08);
}

body {
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 0 clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.brand {
  flex: 0 0 auto;
  min-height: 66px;
  color: #0f2438;
  font-size: 16px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  color: #fff;
  background: #0b5cad;
  border-radius: 4px;
  box-shadow: none;
  font-size: 12px;
  letter-spacing: 0;
}

.site-nav {
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  color: #26394d;
}

.nav-group {
  display: flex;
  align-items: stretch;
}

.nav-trigger {
  min-height: 66px;
  padding: 0 12px;
  color: #26394d;
  background: transparent;
  border-radius: 0;
  font-weight: 700;
}

.nav-trigger:hover,
.nav-trigger:focus-visible {
  color: var(--teal);
  background: #f5f8fb;
}

.submenu {
  top: 100%;
  min-width: 220px;
  padding: 6px;
  border-color: var(--line);
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.12);
}

.submenu a {
  padding: 10px 12px;
  border-radius: 3px;
  color: #26394d;
  font-weight: 700;
}

.submenu a:hover {
  color: var(--teal);
  background: #eef5fc;
}

.nav-group:nth-last-child(-n + 2) .submenu {
  right: 0;
  left: auto;
}

.nav-direct,
.nav-menu summary {
  display: inline-flex;
  min-height: 66px;
  align-items: center;
  padding: 0 12px;
  color: #26394d;
  border-radius: 0;
  font-weight: 700;
  white-space: nowrap;
}

.nav-direct:hover,
.nav-direct:focus-visible,
.nav-menu summary:hover,
.nav-menu[open] summary {
  color: var(--teal);
  background: #f5f8fb;
}

.nav-menu {
  position: relative;
}

.mega-menu {
  right: 0;
  left: auto;
  border-radius: 0;
  box-shadow: 0 14px 30px rgba(23, 32, 42, 0.12);
}

.mega-column strong {
  color: #0f2438;
}

.mega-column a {
  border-radius: 3px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(22px, 4vw, 56px);
  padding: clamp(34px, 5vw, 72px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: #172326;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(18, 31, 35, 0.6) 0%, rgba(18, 31, 35, 0.36) 42%, rgba(18, 31, 35, 0.08) 100%),
    linear-gradient(0deg, rgba(18, 31, 35, 0.24), rgba(18, 31, 35, 0.04) 54%),
    url("assets/hero-japan-photo.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 244, 213, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-copy {
  max-width: 680px;
}

.hero .eyebrow {
  color: #f2d38a;
}

.eyebrow,
.official-kicker {
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: none;
}

h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
}

h2 {
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.14;
}

h3 {
  font-size: 19px;
}

.hero-lede {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.5vw, 18px);
}

.hero-actions {
  margin-bottom: 0;
}

.site-search {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: 18px;
}

.site-search label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 900;
}

.site-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.site-search-box input {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
}

.site-search-box button,
.ghost-button,
.favorite-button,
#clear-favorites {
  min-height: 40px;
  padding: 9px 12px;
  color: var(--teal);
  background: #fff;
  border: 1px solid #9bb9d6;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.ghost-button.light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.site-search-results {
  display: grid;
  gap: 8px;
}

.site-search-results a,
.site-search-results p {
  display: grid;
  gap: 3px;
  padding: 12px;
  margin: 0;
  color: inherit;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-left: 4px solid var(--teal);
  text-decoration: none;
}

.site-search-results span {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
}

.hero .site-search-results a,
.hero .site-search-results p {
  color: var(--ink);
}

.site-search-results small {
  color: var(--muted);
}

.button,
.contact-form button {
  min-height: 44px;
  border-radius: 4px;
  font-weight: 800;
}

.button.primary,
.contact-form button,
.home-eju-strip a {
  background: var(--teal);
  box-shadow: none;
}

.button.primary:hover,
.contact-form button:hover,
.home-eju-strip a:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(10px);
}

.hero-media {
  min-height: auto;
}

.hero-media img {
  display: none;
}

.hero-panel {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.97) 0%, rgba(255, 255, 255, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-top: 5px solid var(--teal);
  box-shadow: 0 28px 70px rgba(7, 18, 22, 0.24);
  backdrop-filter: blur(16px);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-head span,
.hero-panel a span,
.home-eju-strip span {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.panel-head strong {
  color: #0f2438;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.route-strip span {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: #0f2438;
  background: #eef5fc;
  border: 1px solid #d8e0e8;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.hero-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-panel a {
  display: grid;
  gap: 6px;
  min-height: 152px;
  align-content: center;
  padding: 18px;
  color: inherit;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #9bb9d6;
  text-decoration: none;
}

.hero-panel a strong {
  color: #122532;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.25;
}

.hero-panel a em {
  color: #526062;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.hero-panel a:hover {
  border-left-color: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
}

.hero-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 0;
}

.hero-panel dl div {
  padding: 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
}

.hero-panel dt {
  color: var(--muted);
  font-size: 12px;
}

.hero-panel dd {
  margin: 4px 0 0;
  color: #122532;
  font-weight: 900;
}

.section {
  padding: clamp(44px, 6vw, 78px) clamp(20px, 5vw, 72px);
}

.intro-band {
  background: #f4f6f8;
  border-block: 0;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 22px;
}

.question-grid {
  gap: 14px;
}

.favorite-panel {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 4px;
}

.favorite-panel > div:first-child {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.favorite-panel p {
  margin: 0;
  color: var(--muted);
}

.favorite-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.favorite-list a {
  display: inline-grid;
  gap: 2px;
  padding: 9px 10px;
  color: inherit;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 800;
}

.personal-toolbox {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toolbox-head {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
}

.toolbox-head h3 {
  margin: 0;
  font-size: 28px;
}

.toolbox-head p:last-child {
  max-width: 760px;
  margin: 6px 0 0;
  color: #526062;
}

.toolbox-head button,
.toolbox-add-form button,
.tool-card-actions a,
.tool-card-actions button {
  min-height: 40px;
  padding: 9px 13px;
  border-radius: 4px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.toolbox-head button,
.toolbox-add-form button,
.tool-card-actions a {
  color: #fff;
  background: var(--teal);
  border: 1px solid var(--teal);
}

.toolbox-controls,
.toolbox-add-form {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 12px;
}

.toolbox-add-form {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  padding: 16px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.toolbox-add-form.is-collapsed {
  display: none;
}

.toolbox-add-form strong {
  grid-column: 1 / -1;
}

.toolbox-controls label,
.toolbox-add-form label {
  display: grid;
  gap: 7px;
  color: #4c585a;
  font-size: 13px;
  font-weight: 900;
}

.toolbox-controls input,
.toolbox-controls select,
.toolbox-add-form input,
.toolbox-add-form select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
}

.toolbox-status {
  margin: 0;
  color: #526062;
  font-size: 13px;
  font-weight: 800;
}

.toolbox-defaults {
  display: grid;
  gap: 12px;
  padding: 14px 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.toolbox-defaults summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #0f2438;
  font-weight: 900;
  cursor: pointer;
}

.toolbox-defaults summary::-webkit-details-marker {
  display: none;
}

.toolbox-defaults summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
}

.toolbox-defaults[open] summary::after {
  content: "-";
}

.toolbox-defaults summary small {
  color: #526062;
  font-size: 12px;
  font-weight: 800;
}

.toolbox-defaults[open] .toolbox-status {
  margin-top: 4px;
}

.favorite-tool-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(248, 251, 250, 0.92), rgba(255, 253, 250, 0.96)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.favorite-tool-panel strong {
  display: block;
  color: #0f2438;
  font-size: 18px;
}

.favorite-tool-panel p {
  margin: 4px 0 0;
  color: #526062;
  font-size: 13px;
  font-weight: 800;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 14px;
}

.shortcut-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 126px;
  padding: 10px 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: center;
}

.shortcut-card:hover,
.shortcut-card:focus-within {
  background: #f4f7f8;
}

.shortcut-link,
.shortcut-add {
  display: grid;
  gap: 7px;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.shortcut-add {
  width: 100%;
  cursor: pointer;
  font: inherit;
}

.shortcut-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, var(--teal), #0b5cad);
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(15, 36, 56, 0.12);
  font-size: 18px;
  font-weight: 900;
}

.shortcut-card:nth-child(3n + 2) .shortcut-avatar {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(135deg, #b45309, #d4a23a);
}

.shortcut-card:nth-child(3n) .shortcut-avatar {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.3), transparent 34%),
    linear-gradient(135deg, #0b5cad, #64748b);
}

.shortcut-card strong {
  display: -webkit-box;
  overflow: hidden;
  max-width: 100%;
  color: #0f2438;
  font-size: 13px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shortcut-card em {
  overflow: hidden;
  max-width: 100%;
  color: #526062;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  display: none;
  width: 24px;
  height: 24px;
  padding: 0;
  color: #7a2e23;
  background: #fff;
  border: 1px solid #e3b4af;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.shortcut-card:hover .shortcut-delete,
.shortcut-card:focus-within .shortcut-delete {
  display: grid;
  place-items: center;
}

.shortcut-add .shortcut-avatar {
  color: var(--teal);
  background: #fff;
  border: 1px dashed #9bb9d6;
  box-shadow: none;
}

.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card,
.toolbox-empty {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid #9bb9d6;
  border-radius: 6px;
}

.tool-card div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-card span,
.tool-card em {
  padding: 3px 8px;
  background: #eaf2fb;
  color: #17466f;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.tool-card em {
  background: #f4f6f8;
  color: #526062;
}

.tool-card h4 {
  margin: 0;
  font-size: 18px;
}

.tool-card.is-custom {
  border-top-color: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.06);
}

.favorite-empty {
  border-top-color: var(--teal);
  background: #fff;
}

.tool-card p,
.toolbox-empty p {
  margin: 0;
  color: #526062;
  overflow-wrap: anywhere;
}

.tool-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.tool-card-actions button {
  color: var(--red);
  background: #fff;
  border: 1px solid #e3b4af;
}

.tool-card-actions button[data-add-life-tool] {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.favorite-list span {
  color: var(--muted);
  font-size: 12px;
}

.favorite-button {
  min-height: 34px;
}

.favorite-button.is-favorite {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.portal-card,
.question-grid article,
.path-card,
.feature-list article,
.scholarship-row article,
.life-grid article,
.source-grid a,
.score-form,
.score-summary,
.match-list,
.notice-panel,
.checklist,
.contact-section,
.accuracy-panel div,
.eju-plan-form,
.eju-flow,
.eju-personal-plan,
.eju-alerts,
.eju-targets,
.study-resource-panel,
.life-tool,
.life-admin-flow article,
.life-resource-grid article,
.university-card,
.tab-panel,
.timeline article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: none;
}

.portal-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-top: 4px solid #9bb9d6;
}

.portal-card::after {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #eef5fc;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.portal-card:nth-child(1)::after {
  content: "E";
}

.portal-card:nth-child(2)::after {
  content: "U";
}

.portal-card:nth-child(3)::after {
  content: "J";
}

.portal-card:nth-child(4)::after {
  content: "L";
}

.portal-card:hover,
.source-grid a:hover {
  border-color: #9bb9d6;
  border-top-color: var(--teal);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
  transform: none;
}

.number {
  margin-bottom: 12px;
  color: var(--teal);
}

.portal-card p,
.section-heading p:last-child,
.path-card p,
.question-grid p,
.feature-list p,
.scholarship-row p,
.life-grid p,
.exam-flow p,
.exam-flow li,
.contact-copy p:last-child {
  color: var(--muted);
}

.home-eju-strip {
  gap: 10px;
  margin-top: 14px;
}

.home-exam-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 14px;
}

.countdown-panel {
  background:
    linear-gradient(90deg, rgba(255, 244, 214, 0.62), rgba(255, 255, 255, 0) 56%),
    #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  box-shadow: none;
}

.countdown-panel {
  padding: 20px;
}

.tool-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.tool-heading h3,
.tool-heading h3 {
  margin-bottom: 0;
}

.tool-heading p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.countdown-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px;
  color: inherit;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  text-decoration: none;
}

.countdown-item:hover {
  background: #eef5fc;
}

.countdown-item .exam-type {
  padding: 3px 7px;
  color: #fff;
  background: var(--teal);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 900;
}

.countdown-item strong {
  min-width: 0;
}

.countdown-item time {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 13px;
}

.countdown-item b {
  grid-row: 1 / span 2;
  grid-column: 3;
  color: var(--red);
  font-size: 20px;
  white-space: nowrap;
}

.countdown-item em {
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.countdown-item em.official {
  color: #064e3b;
  background: #dff7ec;
}

.countdown-item em.check {
  color: #6a420c;
  background: #fff4d6;
}

.home-eju-strip div,
.home-eju-strip a {
  border-radius: 4px;
  box-shadow: none;
}

.tag,
.exam-flow span {
  background: var(--teal);
}

.pill {
  color: #6a420c;
  background: #fff4d6;
}

.exam-flow span {
  border-radius: 4px;
}

.site-footer {
  background: #0f2438;
}

.eju-planner-section {
  background: #f4f6f8;
}

.eju-official {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  box-shadow: none;
}

.eju-official h3 {
  font-size: clamp(24px, 2.6vw, 34px);
}

.official-lede {
  color: var(--muted);
}

.official-links {
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
}

.official-link-card {
  min-height: 104px;
  border-radius: 4px;
  box-shadow: none;
}

.official-link-card:hover {
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.08);
}

.primary-official {
  background: var(--teal);
  border-color: var(--teal);
}

.primary-official strong {
  font-size: clamp(24px, 2.8vw, 34px);
}

.eju-date-list div {
  background: #f8fafc;
  border-color: var(--line);
  border-radius: 4px;
}

.eju-date-list dt {
  color: var(--teal);
}

.eju-date-list dd {
  color: var(--muted);
}

.costs-section {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f4f6f8 100%);
}

.scholarship-row article {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  border-top: 4px solid #9bb9d6;
}

.scholarship-badge {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.scholarship-note {
  margin: 14px 0 0;
  padding: 14px 16px;
  color: #59400f;
  background: #fff4d6;
  border: 1px solid #e5c873;
  border-radius: 4px;
  font-weight: 800;
}

.application-plan-output {
  display: grid;
  grid-column: 1 / -1;
  gap: 12px;
  align-content: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 4px;
}

.application-plan-output:empty {
  display: none;
}

.application-plan-output p {
  margin: 0;
  color: var(--muted);
}

.application-plan-output ol {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin: 0;
}

.application-plan-output li span {
  display: block;
  color: #405052;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-section {
  background: #f4f6f8;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.about-grid article {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid #9bb9d6;
  border-radius: 4px;
}

.about-grid span {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--teal);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.about-grid p {
  margin: 0;
  color: var(--muted);
}

.wechat-contact-card {
  grid-column: 1 / -1;
  border-top-color: var(--teal) !important;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(155, 185, 214, 0.1)),
    #fff !important;
}

.wechat-contact-card h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.owner-message {
  color: #405052 !important;
  font-size: 14px;
  line-height: 1.78;
}

.wechat-id-box {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  background: #eef8f6;
  border: 1px solid #b9dcd6;
  border-radius: 4px;
}

.wechat-id-box small {
  color: #526062;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.wechat-id-box strong {
  color: #0f2438;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: 0;
  word-break: break-word;
}

.wechat-note {
  color: #255b55 !important;
  line-height: 1.7;
  font-weight: 800;
}

input,
select,
textarea {
  border-radius: 4px !important;
}

@media (max-width: 1040px) {
  .site-header {
    grid-template-columns: 1fr;
    padding: 0 18px;
  }

  .brand {
    min-height: 58px;
  }

  .site-nav {
    width: 100%;
    border-top: 1px solid var(--line);
  }

  .nav-trigger,
  .nav-direct,
  .nav-menu summary {
    min-height: 48px;
  }

  .nav-menu {
    position: static;
  }

  .mega-menu {
    position: fixed;
    top: 112px;
    right: 18px;
    left: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
  }

  .hero,
  .official-links,
  .home-exam-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 0 14px;
  }

  .site-nav {
    padding-bottom: 0;
  }

  .nav-trigger,
  .nav-direct,
  .nav-menu summary {
    background: transparent;
  }

  .nav-direct,
  .nav-menu summary {
    padding: 0 10px;
    font-size: 13px;
  }

  .mega-menu {
    top: 106px;
    right: 14px;
    left: 14px;
    grid-template-columns: 1fr;
    max-height: calc(100vh - 126px);
    overflow-y: auto;
    padding: 12px;
    border-radius: 4px;
  }

  .submenu {
    top: 106px;
    grid-template-columns: 1fr;
    border-radius: 4px;
  }

  .hero {
    padding: 28px 18px;
  }

  .site-search-box {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }

  .hero-panel {
    padding: 16px;
  }

  .hero-panel a {
    min-height: auto;
    padding: 14px;
  }

  .hero-link-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel a em {
    font-size: 12px;
  }

  .hero-panel dl {
    grid-template-columns: 1fr;
  }

  .countdown-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .countdown-item time,
  .countdown-item em {
    grid-column: 1 / -1;
  }

  .countdown-item b {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
    font-size: 17px;
  }

  .section {
    padding: 34px 18px;
  }

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

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

  .portal-card p {
    display: block;
  }
}
