:root {
    --ink: #152749;
    --muted: #65738b;
    --line: #e4eaf4;
    --primary: #1f62d2;
    --surface: #f5f7fc;
}

html { scroll-behavior: smooth; }
body { background: var(--surface); color: var(--ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #63a5ff; outline-offset: 4px; }
#websites, #mis, #top { scroll-margin-top: 86px; }

.skip-link { position: absolute; z-index: 500; top: -100px; left: 12px; background: #fff; color: #112f61; padding: 9px 16px; border-radius: 8px; }
.skip-link:focus { top: 10px; }

.site-header { position: relative; z-index: 5; background: white; }
.nav-wordmark { width: 218px; height: auto; object-fit: contain; }
.brand-divider { height: 27px; width: 1px; background: #dce2ed; }
.brand-descriptor { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 700; color: #8590a1; white-space: nowrap; }
.site-header .nav-link { font-weight: 600; font-size: .92rem; color: #485977; }
.site-header .nav-link:hover { color: #0b5ed7; }
.site-header .btn-primary { background: #1d5fd0; border-color: #1d5fd0; font-size: .9rem; }
.site-header .btn-primary:hover { background: #124aa8; border-color: #124aa8; }

.hero-section { background: linear-gradient(112deg, #0a1d42 0%, #10346e 51%, #086a8c 100%); isolation: isolate; }
.hero-section::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22; background-image: radial-gradient(circle at 1px 1px, #cfe9ff 1px, transparent 0); background-size: 28px 28px; mask-image: linear-gradient(to right, transparent 38%, black); }
.hero-glow { position: absolute; border-radius: 100%; pointer-events: none; filter: blur(2px); }
.hero-glow-left { width: 440px; height: 440px; top: -270px; left: -170px; background: radial-gradient(circle, rgba(51, 131, 246, .42), transparent 70%); }
.hero-glow-right { width: 630px; height: 630px; right: -280px; bottom: -420px; background: radial-gradient(circle, rgba(32, 221, 215, .33), transparent 70%); }
.eyebrow-label { padding: 9px 16px; font-size: .72rem; letter-spacing: .12em; font-weight: 800; border: 1px solid rgba(215, 238, 255, .25); color: #d9ebff; background: rgba(255, 255, 255, .08); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: #50e4be; box-shadow: 0 0 0 4px rgba(80, 228, 190, .15); }
.hero-title { font-size: clamp(2.4rem, 4.5vw, 4.4rem); letter-spacing: -.04em; line-height: 1.14; }
.hero-highlight { color: #7ee5e9; }
.hero-lead { max-width: 590px; color: #d8e4f5; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.85; }
.hero-button { font-size: .92rem; }
.hero-section .btn-light { color: #0b3271; }
.hero-section .btn-light:hover { background: #e4f2ff; }
.hero-section .btn-outline-light:hover { color: #092555; }
.hero-identity { max-width: 470px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 22px 65px rgba(0, 12, 41, .2); backdrop-filter: blur(12px); border-radius: 26px; padding: 29px; }
.identity-eyebrow { letter-spacing: .14em; color: #d8ebff; font-size: .77rem; font-weight: 800; }
.identity-sparkle { font-size: 1.5rem; color: #9eeef0; }
.identity-organization { border-radius: 17px; background: rgba(255,255,255,.96); color: #143364; padding: 23px 7px 17px; }
.identity-logo { width: min(100%, 120px); height: 120px; object-fit: contain; }
.organization-title { font-size: 1.04rem; font-weight: 800; }
.organization-caption { color: #64738c; font-size: .76rem; margin-top: 3px; }
.identity-bottom { color: #dbeafe; border-top: 1px solid rgba(255,255,255,.17); font-size: .85rem; }
.identity-bottom i { color: #87e3e6; }

.migration-container { margin-top: -20px; z-index: 2; }
.migration-note { border-radius: 18px; background: #fff; border: 1px solid #e1e8f2; box-shadow: 0 13px 34px rgba(27,57,104,.09); }
.migration-icon { width: 43px; height: 43px; display: grid; place-items: center; background: #e9f1ff; border-radius: 13px; color: #2d6ed4; font-size: 1.23rem; }
.migration-note p.fw-bold { color: #193766; }
.migration-link { font-size: .85rem; color: #2166c4; white-space: nowrap; }
.migration-link:hover { color: #0c4299; }

.directory-section { padding: 79px 0 19px; }
.systems-section { padding-top: 88px; }
.section-kicker { color: #4169ad; letter-spacing: .11em; font-size: .73rem; font-weight: 800; }
.section-index { background: #e3edff; border-radius: 7px; padding: 6px 9px; margin-right: 8px; color: #1a5ec8; }
.section-title { color: #12264c; font-size: clamp(1.8rem, 3vw, 2.35rem); letter-spacing: -.025em; }
.section-subtitle { color: var(--muted); font-size: .99rem; }
.section-total { white-space: nowrap; background: #e9eef8; border: 1px solid #dee7f4; color: #536883; border-radius: 30px; padding: 10px 15px; font-size: .82rem; font-weight: 700; }

.portal-card { --accent-color: #235bd4; --accent-light: #edf3ff; min-height: 359px; padding: 25px; color: var(--ink); border: 1px solid var(--line); border-radius: 21px; background: #fff; box-shadow: 0 5px 20px rgba(31, 57, 106, .035); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.portal-card:hover { transform: translateY(-6px); box-shadow: 0 17px 42px rgba(27, 55, 98, .12); border-color: #ccd8eb; }
.portal-card:focus-visible { outline-offset: 4px; }
.portal-card-blue { --accent-color: #1f67cb; --accent-light: #e9f1ff; }
.portal-card-indigo { --accent-color: #5949c9; --accent-light: #f0eeff; }
.portal-card-teal { --accent-color: #008e99; --accent-light: #e6f9f9; }
.portal-card-amber { --accent-color: #ba740d; --accent-light: #fff4dc; }
.portal-tag { max-width: calc(100% - 40px); color: var(--accent-color); background: var(--accent-light); border-radius: 30px; padding: 7px 13px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.card-outlink { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e4eaf3; background: #fbfcff; color: #8190a7; border-radius: 10px; flex: none; transition: background .2s, color .2s; }
.portal-card:hover .card-outlink { background: var(--accent-light); color: var(--accent-color); }
.card-logo-wrap { height: 91px; display: flex; align-items: center; }
.round-logo { width: 83px; height: 83px; object-fit: contain; }
.brand-logo { width: 190px; height: auto; max-height: 79px; object-fit: contain; }
.portal-title { font-size: 1.3rem; color: #182d50; }
.portal-subtitle { font-size: .86rem; font-weight: 650; color: #52647e; min-height: 22px; }
.portal-description { font-size: .88rem; line-height: 1.7; color: #79869a; }
.card-action { border-top: 1px solid #eef1f6; padding-top: 16px; }
.portal-domain { min-width: 0; font-size: .8rem; color: #5a6d86; font-weight: 600; }
.action-arrow { background: var(--accent-light); color: var(--accent-color); border-radius: 12px; width: 37px; height: 37px; flex: none; display: grid; place-items: center; transition: transform .2s; }
.portal-card:hover .action-arrow { transform: translateX(4px); }
.hostel-icon { display: inline-grid; place-items: center; width: 77px; height: 77px; border-radius: 20px; background: linear-gradient(140deg,#ffe29b,#ffca76); color: #9a5d00; font-size: 2rem; }
.privacy-note { font-size: .84rem; color: #7c8aa0; }

.site-footer { background: #fff; border-top: 1px solid #e2e9f4; }
.footer-wordmark { display: block; height: auto; max-width: 100%; }
.footer-description { max-width: 480px; color: #718096; font-size: .88rem; line-height: 1.6; }
.back-to-top { color: #285ca9; font-size: .87rem; }
.back-to-top:hover { color: #133d80; }
.footer-bottom { color: #8390a2; font-size: .78rem; border-top: 1px solid #e9eef6; }

@media (max-width: 991.98px) {
    .hero-section .container { padding-top: 35px !important; padding-bottom: 55px !important; }
    .hero-identity { max-width: 530px; margin-left: 0 !important; }
    .navbar-collapse { border-top: 1px solid #eff2f7; }
    .nav-wordmark { width: 198px; }
}
@media (max-width: 575.98px) {
    .site-header .navbar { padding-block: 9px !important; }
    .nav-wordmark { width: 190px; }
    .hero-title { font-size: 2.55rem; }
    .hero-identity { padding: 14px; border-radius: 17px; }
    .identity-organization { padding: 15px 4px 13px; }
    .identity-logo { height: 89px; width: 89px; }
    .organization-caption { font-size: .66rem; }
    .hero-button { width: 100%; }
    .migration-container { margin-top: -14px; }
    .directory-section { padding-top: 66px; }
    .systems-section { padding-top: 65px; }
    .portal-card { min-height: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .portal-card, .action-arrow, .card-outlink { transition: none; }
    .portal-card:hover { transform: none; }
}
