:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #142a43;
  background: #f5f9fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --navy: #142a43;
  --blue: #2874c8;
  --muted: #64758a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #f5f9fc; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #78aeda; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--navy); font-size: 13px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.institution-bar { border-bottom: 1px solid #e2eaf1; color: #52677d; background: #eef4f8; font-size: 11px; font-weight: 700; }
.institution-bar > div { width: min(1120px, calc(100% - 48px)); min-height: 34px; margin-inline: auto; display: flex; align-items: center; gap: 11px; }
.institution-divider { width: 1px; height: 12px; background: #b7c6d3; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { width: 48px; height: 48px; display: block; object-fit: contain; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -.02em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); color: #3c4f65; font-size: 14px; font-weight: 600; }
.main-nav a:hover, .text-link:hover { color: var(--blue); }
.menu-toggle { display: none; flex: 0 0 42px; width: 42px; height: 42px; padding: 0; appearance: none; -webkit-appearance: none; border: 1px solid #dde6ed; border-radius: 11px; background: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 0; border-radius: 2px; background: var(--navy); transition: .18s ease; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 22px; border: 1px solid transparent; border-radius: 13px; font-size: 14px; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px #142a4320; }
.button-small { min-height: 42px; padding-inline: 19px; }
.button-dark { color: white; background: var(--navy); }
.button-light { color: var(--navy); background: white; border-color: #e0e8ef; }
.hero { position: relative; min-height: 490px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 46px; padding: 58px 0 66px; }
.hero::before { position: absolute; z-index: -1; content: ""; inset: 20px 0 0; background: radial-gradient(ellipse at 70% 76%, #a9e3ed88 0, transparent 38%), linear-gradient(115deg, #f5f9fc 22%, #edf6fb 100%); }
.hero-copy { max-width: 590px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #326dab; font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.hero .eyebrow { padding: 9px 13px; border: 1px solid #dce8f1; border-radius: 999px; background: #ffffffb8; letter-spacing: .025em; text-transform: none; }
.hero .eyebrow span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: white; background: #2874c8; font-size: 11px; }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 20px; font-size: clamp(40px, 5.2vw, 62px); line-height: 1.05; letter-spacing: -.055em; }
.hero h1 span { color: #2874c8; }
.hero-description { max-width: 520px; margin-bottom: 25px; color: #53677d; font-size: 17px; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 17px 0 0; color: #748396; font-size: 12px; }
.hero-visual { position: relative; min-height: 335px; display: grid; place-items: center; }
.visual-card { position: relative; z-index: 1; width: min(100%, 390px); padding: 28px; border: 1px solid #ffffff; border-radius: 25px; background: #ffffffed; box-shadow: 0 24px 70px #26486920; }
.visual-top { display: flex; align-items: center; justify-content: space-between; }
.visual-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; color: #2469b3; background: #e9f4ff; font-size: 20px; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 999px; color: #42644e; background: #eff8f1; font-size: 11px; font-weight: 700; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: #58ad71; }
.visual-label { margin: 29px 0 9px; color: #738297; font-size: 12px; font-weight: 700; }
.visual-card h2 { margin-bottom: 25px; font-size: 25px; line-height: 1.25; letter-spacing: -.035em; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 9px; color: #64758a; font-size: 12px; }
.progress-label strong { color: #2874c8; }
.progress-track { height: 8px; overflow: hidden; border-radius: 99px; background: #e9eff4; }
.progress-track span { display: block; width: 74%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2874c8, #68b7dc); }
.visual-footer { display: flex; gap: 22px; margin-top: 25px; padding-top: 17px; border-top: 1px solid #edf1f4; color: #65768a; font-size: 11px; }
.visual-footer b { margin-right: 5px; color: #2874c8; }
.visual-decoration { position: absolute; border-radius: 50%; }
.decoration-one { width: 92px; height: 92px; top: 14px; right: 3%; background: #c6e7f2; }
.decoration-two { width: 45px; height: 45px; bottom: 10px; left: 3%; background: #d7ddfa; }
.feature-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 25px 0 65px; }
.feature-item { display: flex; gap: 13px; align-items: flex-start; }
.feature-icon { flex: 0 0 38px; height: 38px; display: grid; place-items: center; border: 1px solid #dce8f1; border-radius: 12px; color: #2874c8; background: white; font-size: 11px; font-weight: 800; }
.feature-item h2 { margin: 1px 0 6px; font-size: 14px; letter-spacing: -.02em; }
.feature-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.portal-section { padding: 55px 0 76px; border-top: 1px solid #e3ebf1; }
.section-heading { max-width: 560px; margin-bottom: 29px; }
.section-heading .eyebrow, .guide-section .eyebrow { margin-bottom: 10px; }
.section-heading h2, .guide-section h2 { margin-bottom: 9px; font-size: clamp(29px, 4vw, 38px); letter-spacing: -.045em; }
.section-heading > p:last-child, .guide-section > div > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.portal-card { min-height: 230px; padding: 27px; border: 1px solid #e1eaf1; border-radius: 20px; background: white; }
.student-card { background: linear-gradient(145deg, white, #f0f8ff); }
.admin-card { background: linear-gradient(145deg, white, #f5f5ff); }
.portal-number { color: #64809c; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.portal-card h3 { margin: 17px 0 9px; font-size: 22px; letter-spacing: -.03em; }
.portal-card p { max-width: 440px; min-height: 70px; margin-bottom: 18px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.text-link { display: inline-flex; gap: 9px; color: #246ab5; font-size: 13px; font-weight: 800; }
.public-data-section { padding: 58px 0 72px; border-top: 1px solid #e3ebf1; }
.public-data-section .section-heading { margin-bottom: 20px; }
.public-data-status { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.public-data-error { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border: 1px solid #f1c8c8; border-radius: 15px; color: #8e3030; background: #fff7f7; }
.public-data-error p { margin: 0; font-size: 14px; }
.public-data-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.public-data-content > * { min-width: 0; }
.overview-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.overview-card { min-width: 0; padding: 19px 18px; border: 1px solid #e0e9f1; border-radius: 16px; background: white; box-shadow: 0 8px 26px #26486908; }
.overview-card-primary { border-color: #d3e6f8; background: linear-gradient(145deg, #fff, #edf7ff); }
.overview-card span, .overview-card small { display: block; color: var(--muted); font-size: 11px; }
.overview-card strong { display: block; margin: 10px 0 5px; color: var(--navy); font-size: clamp(24px, 3vw, 32px); line-height: 1; letter-spacing: -.04em; }
.region-panel, .score-statistics-panel, .schedule-panel { padding: 25px; border: 1px solid #e0e9f1; border-radius: 20px; background: white; box-shadow: 0 12px 35px #2648690a; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-heading .eyebrow { margin-bottom: 7px; font-size: 10px; }
.panel-heading h3 { margin: 0; font-size: 21px; letter-spacing: -.03em; }
.region-search input { width: min(260px, 35vw); min-height: 42px; padding: 0 13px; border: 1px solid #dce5ed; border-radius: 11px; color: var(--navy); background: #fbfdff; font: inherit; font-size: 13px; outline: none; }
.region-search input:focus { border-color: #75aadd; box-shadow: 0 0 0 3px #2874c81a; }
.region-result-count { margin: 14px 0 9px; color: #77869a; font-size: 11px; }
.region-list { display: grid; gap: 8px; max-height: 410px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.region-row { min-height: 62px; border: 1px solid #edf1f5; border-radius: 12px; background: #fcfdff; }
.region-row.is-open { border-color: #d8e4f1; background: #fafdff; }
.region-row-toggle, .region-child-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; border: 0; border-radius: inherit; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.region-row-toggle:hover, .region-child-toggle:hover { background: #f3f8fc; }
.region-row-toggle:focus-visible, .region-child-toggle:focus-visible { position: relative; z-index: 1; outline: 3px solid #78aeda; outline-offset: 1px; }
.region-row-details { display: grid; gap: 6px; margin: 0 12px 12px; padding: 10px 0 0 12px; border-top: 1px solid #edf1f5; border-left: 2px solid #edf1f5; }
.region-child-row { border: 1px solid #edf1f5; border-radius: 9px; background: #fff; }
.region-child-toggle { gap: 8px 12px; padding: 9px 10px; }
.region-child-row.is-open { border-color: #d8e4f1; }
.region-child-name { color: #203954; font-size: 12px; font-weight: 750; }
.region-child-count { color: #1d5e9d; font-size: 11px; white-space: nowrap; }
.region-child-list { display: grid; flex-basis: 100%; gap: 6px; padding: 8px 0 0 12px; border-left: 2px solid #edf1f5; }
.region-village-row { background: #fbfdff; }
.region-school-list { padding-left: 0; border-left: 0; }
.region-school-detail { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #5f6f86; font-size: 12px; }
.region-school-detail strong { color: #1d5e9d; white-space: nowrap; }
.region-school-empty { margin: 0; color: #78889a; font-size: 12px; }
.region-row-labels { flex: 1; min-width: 0; }
.region-row-name { display: block; color: #203954; font-size: 13px; font-weight: 750; }
.region-row-parent { display: block; margin-top: 4px; color: #78889a; font-size: 11px; }
.region-row-counts { flex: 0 0 auto; text-align: right; }
.region-row-counts strong, .region-row-counts span { display: block; }
.region-row-counts strong { color: #1d5e9d; font-size: 13px; }
.region-row-counts span { margin-top: 3px; color: #78889a; font-size: 10px; }
.region-expand-icon { flex: 0 0 auto; color: #78889a; transition: transform .18s ease; }
[aria-expanded="true"] > .region-expand-icon { transform: rotate(180deg); }
.region-empty { padding: 22px 14px; color: var(--muted); font-size: 13px; text-align: center; }
.score-statistics-note { margin: 12px 0 16px; color: #77869a; font-size: 12px; line-height: 1.5; }
.public-score-table-wrap { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; }
.public-score-table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }
.public-score-table th, .public-score-table td { padding: 11px 12px; border-bottom: 1px solid #edf1f5; color: #53677d; font-size: 12px; white-space: nowrap; }
.public-score-table th { color: #314b65; background: #f7fafc; font-size: 11px; font-weight: 750; }
.public-score-table td:first-child { color: #203954; font-weight: 700; white-space: normal; }
.public-score-table tbody tr:last-child td { border-bottom: 0; }
.public-score-exam-link { padding: 0; border: 0; color: #1d5e9d; background: transparent; font: inherit; font-weight: 750; text-align: left; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.public-score-exam-link:focus-visible { outline: 3px solid #78aeda; outline-offset: 3px; border-radius: 2px; }
.public-score-empty { padding: 20px !important; color: #78889a !important; font-weight: 500 !important; text-align: center; }
.public-score-dialog { width: min(900px, calc(100% - 24px)); max-height: calc(100% - 32px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #dce5ed; border-radius: 18px; color: var(--navy); background: #fff; box-shadow: 0 24px 70px #102a4533; }
.public-score-dialog::backdrop { background: #102a4570; }
.public-score-dialog-card { max-height: calc(100vh - 32px); padding: 22px; overflow: auto; }
.public-score-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.public-score-dialog-heading h2 { margin: 0; color: #203954; font-size: 20px; }
.public-score-dialog-heading button { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid #dce5ed; border-radius: 9px; color: #53677d; background: #fff; font: inherit; font-size: 22px; cursor: pointer; }
.public-score-dialog-heading button:focus-visible { outline: 3px solid #78aeda; outline-offset: 2px; }
.public-score-dialog-status { margin: 12px 0; color: #64788a; font-size: 13px; }
.public-score-dialog-status.error { color: #9c2f2c; }
.public-score-top-table { min-width: 560px; }
.schedule-note { color: #77869a; font-size: 11px; }
.schedule-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 19px; }
.schedule-card { min-width: 0; padding: 17px; border: 1px solid #e5edf4; border-radius: 15px; background: linear-gradient(150deg, #fff, #f8fbfe); }
.schedule-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.schedule-subject { overflow: hidden; color: #59728c; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.schedule-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: #27633e; background: #eaf7ed; font-size: 9px; font-weight: 800; }
.schedule-status-upcoming { color: #1c5e9f; background: #eaf4ff; }
.schedule-status-running { animation: schedule-running-highlight 1.4s ease-in-out infinite; }
.schedule-status-ended { color: #657487; background: #edf1f5; }
.schedule-card h4 { margin: 0 0 8px; color: #1e334b; font-size: 16px; line-height: 1.35; }
.schedule-class { margin: 0 0 13px; color: #697b90; font-size: 11px; }
.schedule-time { padding: 10px 11px; border-radius: 10px; color: #254c73; background: #edf6ff; font-size: 11px; font-weight: 700; line-height: 1.55; }
.schedule-schools { display: -webkit-box; margin: 12px 0 0; overflow: hidden; color: #6e7d8f; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.schedule-empty { grid-column: 1 / -1; margin: 0; padding: 22px; border: 1px dashed #dce6ef; border-radius: 13px; color: var(--muted); font-size: 13px; text-align: center; }
.school-schedule-ticker { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 12px 15px; overflow: hidden; border: 1px solid #dce9f4; border-radius: 12px; background: #f3f8fc; }
.school-schedule-ticker[hidden] { display: none; }
.school-schedule-ticker-label { flex: 0 0 auto; color: #254c73; font-size: 11px; }
.school-schedule-ticker-window { min-width: 0; flex: 1; overflow: hidden; }
.school-schedule-ticker-window:focus-visible { outline: 2px solid #78aeda; outline-offset: 3px; }
.school-schedule-ticker-track { width: max-content; margin: 0; color: #536b84; font-size: 12px; white-space: nowrap; animation: school-schedule-ticker-scroll 32s linear infinite; }
.school-schedule-ticker-item--running { display: inline-block; padding: 1px 5px; border-radius: 5px; font-weight: 800; animation: schedule-running-highlight 1.4s ease-in-out infinite; }
.school-schedule-ticker:hover .school-schedule-ticker-track,
.school-schedule-ticker:focus-within .school-schedule-ticker-track { animation-play-state: paused; }
@keyframes schedule-running-highlight {
  0%, 100% { color: #065f46; background: #d1fae5; }
  50% { color: #7c2d12; background: #fde047; }
}
@keyframes school-schedule-ticker-scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.guide-section { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 68px; padding: 32px; border-radius: 22px; background: #eaf3fa; }
.guide-section > div { max-width: 660px; }
.guide-section h2 { font-size: clamp(25px, 3.5vw, 33px); }
.guide-section > .button { flex-shrink: 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 28px; border-top: 1px solid #e3ebf1; }
.site-footer > p { margin: 0; color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .institution-bar > div, .site-header, main, .site-footer { width: min(100% - 36px, 600px); }
  .institution-bar > div { min-height: 32px; justify-content: center; font-size: 10px; text-align: center; }
  .institution-bar span:last-child, .institution-divider { display: none; }
  .site-header { position: relative; min-height: 74px; gap: 10px; }
  .menu-toggle { display: grid; place-content: center; gap: 4px; margin-left: auto; }
  .header-login { min-height: 40px; padding-inline: 12px; flex: 0 0 auto; white-space: nowrap; }
  .main-nav { position: absolute; z-index: 20; top: 66px; left: 0; right: 0; display: none; align-items: stretch; flex-direction: column; gap: 3px; padding: 10px; border: 1px solid #dce7ef; border-radius: 14px; background: #fff; box-shadow: 0 18px 38px #142a4321; }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 13px; border-radius: 9px; }
  .main-nav a:hover { background: #eef5fb; }
  .button-small { min-height: 39px; padding-inline: 14px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; gap: 26px; padding: 43px 0 30px; }
  .hero h1 { font-size: clamp(39px, 10vw, 54px); }
  .hero-description { font-size: 15px; }
  .hero-visual { min-height: 300px; }
  .visual-card { max-width: 400px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 23px 15px; padding-bottom: 49px; }
  .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-section { padding: 42px 0 55px; }
  .guide-section { align-items: flex-start; flex-direction: column; margin-bottom: 45px; padding: 25px; }
}

@media (min-width: 481px) and (max-width: 900px) {
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .institution-bar > div, .site-header, main, .site-footer { width: calc(100% - 32px); }
  .brand { gap: 8px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 0; }
  .brand strong { font-size: 13px; }
  .brand small { font-size: 10px; }
  .hero { padding-top: 34px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 285px; }
  .visual-card { padding: 23px; }
  .feature-strip { gap: 20px 11px; }
  .feature-item { gap: 9px; }
  .feature-icon { flex-basis: 32px; height: 32px; border-radius: 10px; font-size: 9px; }
  .feature-item h2 { font-size: 12px; }
  .feature-item p { font-size: 11px; }
  .public-data-section { padding: 42px 0 52px; }
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .overview-card { padding: 15px 13px; }
  .overview-card strong { font-size: 25px; }
  .region-panel, .score-statistics-panel, .schedule-panel { padding: 18px 14px; border-radius: 16px; }
  .panel-heading { align-items: flex-start; flex-direction: column; gap: 13px; }
  .panel-heading h3 { font-size: 19px; }
  .region-search, .region-search input { width: 100%; }
  .region-row-name { font-size: 12px; }
  .public-score-dialog { width: calc(100% - 20px); border-radius: 14px; }
  .public-score-dialog-card { max-height: calc(100dvh - 24px); padding: 16px; }
  .public-score-dialog-heading h2 { font-size: 17px; }
  .schedule-grid { grid-template-columns: 1fr; }
  .schedule-note { margin-top: -7px; }
  .public-data-error { align-items: flex-start; flex-direction: column; }
  .public-data-error .button { width: 100%; }
  .portal-grid { grid-template-columns: 1fr; }
  .portal-card { min-height: 0; padding: 23px; }
  .portal-card p { min-height: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .school-schedule-ticker-track { animation: none; white-space: normal; }
  .schedule-status-running, .school-schedule-ticker-item--running { animation: none; color: #7c2d12; background: #fde047; }
}

/* Pemerintah-style visual refinement */
:root {
  --navy: #012970;
  --blue: #4154f1;
  --blue-dark: #185c86;
  --muted: #5f6f86;
  font-family: "Segoe UI", "Trebuchet MS", Arial, sans-serif;
}

body { background: #ffffff; color: #263f62; }
.institution-bar {
  min-height: 34px;
  border: 0;
  color: #dfeaff;
  background: #012970;
  font-size: 11px;
  letter-spacing: .02em;
}
.institution-divider { background: #7185ac; }
.site-header {
  min-height: 92px;
  border-bottom: 1px solid #edf1f6;
}
.brand-mark {
  border-radius: 12px;
  background: linear-gradient(145deg, #4154f1, #185c86);
  box-shadow: none;
}
.brand strong { color: #012970; font-size: 17px; }
.brand small { color: #5f6f86; }
.main-nav a {
  position: relative;
  color: #013289;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  content: "";
  transform: scaleX(0);
  background: #4154f1;
  transition: transform .18s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }
.button { border-radius: 9px; }
.button-dark { background: #185c86; }
.button-dark:hover { background: #124c70; }
.button-light { border-color: #dce6f0; color: #012970; }
.hero {
  width: 100vw;
  max-width: none;
  min-height: 510px;
  margin-left: calc(50% - 50vw);
  padding: 62px max(24px, calc((100vw - 1120px) / 2));
  grid-template-columns: 1.08fr .92fr;
  background:
    radial-gradient(circle at 86% 20%, #dce6ff 0, #dce6ff00 24%),
    linear-gradient(120deg, #f7fbff 0%, #eef5ff 58%, #f5f9ff 100%);
}
.hero::before { display: none; }
.hero h1 {
  color: #012970;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -.045em;
}
.hero h1 span { color: #4154f1; }
.hero-description { color: #526883; }
.hero .eyebrow {
  border: 0;
  color: #185c86;
  background: #e8f1fb;
  font-weight: 800;
}
.hero-actions .button-dark { background: #185c86; }
.visual-card {
  border: 1px solid #dfe9f5;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 22px 55px #01297018;
}
.visual-card h2 { color: #012970; }
.progress-track span { background: linear-gradient(90deg, #4154f1, #185c86); }
.feature-strip {
  position: relative;
  z-index: 2;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  padding: 26px 0 58px;
}
.feature-item {
  min-height: 92px;
  padding: 14px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px #01297008;
}
.feature-icon {
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: #4154f1;
}
.section-heading h2,
.guide-section h2,
.panel-heading h3 {
  color: #012970;
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 750;
}
.portal-card {
  border-color: #dfe7f1;
  border-radius: 12px;
  box-shadow: 0 12px 32px #01297008;
}
.student-card,
.admin-card {
  background: #ffffff;
}
.portal-card h3 { color: #012970; }
.text-link { color: #4154f1; }
.public-data-section { border-top: 0; }
.region-panel,
.schedule-panel,
.overview-card {
  border-radius: 12px;
  box-shadow: 0 10px 30px #01297008;
}
.overview-card-primary { border-color: #dbe5ff; background: #f7f9ff; }
.guide-section {
  border: 1px solid #dce7f4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4f8ff, #edf4fb);
}
.site-footer { border-top: 1px solid #e5ebf2; }

@media (max-width: 760px) {
  .institution-bar { background: #012970; }
  .site-header { min-height: 78px; }
  .hero {
    width: calc(100% + 36px);
    min-height: 0;
    margin-left: -18px;
    padding: 42px 18px 38px;
  }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .feature-strip { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }
  .feature-item { min-height: 105px; }
  .main-nav {
    top: 70px;
    border-radius: 10px;
  }
  .main-nav a::after { display: none; }
}

@media (max-width: 480px) {
  .hero { width: calc(100% + 32px); margin-left: -16px; padding-inline: 16px; }
  .feature-strip { gap: 10px; }
  .feature-item { min-height: 112px; padding: 12px 10px; }
}

/* Editorial layout inspired by the institutional reference page. */
main {
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: clip;
}

.feature-strip,
.public-data-section,
.portal-section,
.guide-section {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  border-bottom: 1px solid #e8edf2;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading .eyebrow { justify-content: center; }
.section-heading h2 { line-height: 1.2; }

.public-data-section { padding-block: 64px; }
.public-data-section .section-heading { margin-bottom: 20px; }
.public-data-status { text-align: center; }
.public-data-content { gap: 20px; }
.overview-grid { gap: 14px; }

.brand-mark {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 19px;
}

.brand strong { font-size: 18px; }
.brand small { font-size: 12px; }
.main-nav { margin-left: auto; }

.hero {
  width: 100%;
  min-height: 370px;
  margin: 0;
  padding: 44px max(24px, calc((100vw - 1120px) / 2));
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  color: #fff;
  background: #3f5b64;
}

.hero-copy { max-width: 660px; }
.hero h1 {
  margin-bottom: 16px;
  color: #fff;
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}

.hero h1 span { color: #fff; }
.hero .eyebrow {
  padding: 0;
  color: #c9e6ef;
  background: transparent;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero .eyebrow span {
  color: #3f5b64;
  background: #f3bf54;
}

.hero-description {
  margin-bottom: 20px;
  color: #eff5f5;
  font-size: 15px;
  line-height: 1.7;
}

.hero-note { color: #d3e2e4; }
.hero-actions .button-dark { color: #fff; background: #4154f1; }
.hero-actions .button-dark:hover { background: #3345df; }
.hero-actions .button-light { border-color: #b7c8ca; color: #fff; background: transparent; }

.hero-visual {
  min-height: 270px;
  order: -1;
}

.visual-card {
  width: min(100%, 410px);
  padding: 25px;
  border: 0;
  border-radius: 6px;
  background: #f8fbfa;
  box-shadow: 0 18px 40px #172e3338;
}

.visual-icon {
  border-radius: 50%;
  color: #fff;
  background: #185c86;
}

.visual-card h2 { color: #12324b; }
.progress-track span { background: #f2b546; }
.progress-label strong, .visual-footer b { color: #185c86; }
.decoration-one { background: #f2b546; opacity: .9; }
.decoration-two { background: #80d5c6; }

  line-height: 1.8;
}

.feature-strip {
  padding: 0 0 58px;
}

.feature-item {
  align-items: center;
  border-radius: 8px;
  box-shadow: none;
}

.portal-section { padding: 64px 0; }
.portal-grid { align-items: stretch; gap: 20px; }
.portal-card {
  display: flex;
  min-height: 245px;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}
.portal-card h3 { line-height: 1.25; }
.portal-card p { min-height: 0; flex: 1; }
.portal-card .text-link { margin-top: 8px; }

.portal-card, .overview-card, .region-panel, .schedule-panel {
  border-radius: 8px;
  box-shadow: none;
}

.guide-section { margin-bottom: 64px; }
.site-footer { margin-top: 0; }

@media (max-width: 900px) {
  .site-header { position: relative; min-height: 76px; gap: 10px; }
  .menu-toggle { display: grid; place-content: center; gap: 4px; margin-left: auto; }
  .header-login { min-height: 40px; padding-inline: 14px; }
  .main-nav {
    position: absolute;
    z-index: 20;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    padding: 10px;
    border: 1px solid #dce7ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 38px #142a4321;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 13px; }
  .main-nav a::after { display: none; }
  .hero {
    width: 100%;
    min-height: 320px;
    margin: 0;
    padding: 34px 24px;
    grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
  }
  .hero-visual { min-height: 230px; }
  .visual-card { padding: 20px; }
  .visual-card h2 { font-size: 21px; }
  .public-data-section, .portal-section { padding-block: 52px; }
  .feature-strip { padding-bottom: 42px; }
}

@media (max-width: 600px) {
  .site-header, .site-footer { width: calc(100% - 32px); }
  .hero {
    min-height: 0;
    padding: 28px 18px 34px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-visual { min-height: 220px; order: 0; }
  .hero-copy { order: 1; }
  .hero h1 { font-size: clamp(29px, 8vw, 34px); }
  .hero h1 br { display: none; }
  .hero-description { font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .visual-card { padding: 17px; }
  .visual-label { margin: 15px 0 7px; }
  .visual-card h2 { margin-bottom: 15px; font-size: 19px; }
  .visual-footer { gap: 12px; margin-top: 15px; padding-top: 11px; }
  .hero-visual { min-height: 0; }
  .section-heading { margin-bottom: 24px; }
  .public-data-section, .portal-section { padding-block: 42px; }
  .portal-card { min-height: 0; padding: 22px; }
  .guide-section { margin-bottom: 42px; padding: 24px; }
}

@media (max-width: 480px) {
  .site-header { width: calc(100% - 24px); gap: 8px; }
  .brand { min-width: 0; gap: 6px; }
  .brand-mark { width: 34px; height: 34px; flex: 0 0 34px; }
  .brand > span { min-width: 0; }
  .brand strong, .brand small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand strong { max-width: 100px; font-size: 13px; }
  .brand small { font-size: 10px; }
  .header-login, .button-small { padding-inline: 10px; }
}
