:root {
  --navy-950: #041d47;
  --navy-900: #06265c;
  --navy-800: #0b3478;
  --navy-700: #154b94;
  --blue-100: #eaf1fb;
  --cream: #f7f5ef;
  --paper: #fff;
  --ink: #10233f;
  --muted: #68768a;
  --line: #dde3eb;
  --accent: #d8a642;
  --accent-soft: #f4e4ba;
  --green: #20845a;
  --green-soft: #e3f4ec;
  --purple: #7355a7;
  --purple-soft: #eee9f7;
  --red: #b7464c;
  --red-soft: #f9e9ea;
  --shadow: 0 18px 55px rgba(5, 30, 72, .1);
  --radius: 18px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body, button, input, select, textarea { font-family: "DM Sans", Arial, sans-serif; }
h1, h2, h3, h4, strong { font-family: "Manrope", "DM Sans", Arial, sans-serif; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-900); }
img { max-width: 100%; }
.site-container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow-content { max-width: 760px; }
.section { padding: 108px 0; }

.announcement-bar { background: var(--navy-950); color: #d8e5f8; font-size: .76rem; font-weight: 600; letter-spacing: .045em; }
.announcement-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; }
.announcement-contact { opacity: .72; display: flex; gap: 10px; }
.pulse-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 9px; box-shadow: 0 0 0 4px rgba(216, 166, 66, .14); }

.site-header { position: relative; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid rgba(8,43,104,.08); }
.site-header .navbar { padding: 0; }
.nav-shell { min-height: 82px; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); flex: 0 0 auto; }
.brand:hover { color: var(--navy-900); }
.brand-mark { display: block; width: 43px; line-height: 0; }
.brand-mark svg { width: 100%; height: auto; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; border-left: 1px solid #cad2df; padding-left: 11px; }
.brand-copy strong { text-transform: uppercase; letter-spacing: .075em; font-size: 1rem; font-weight: 800; }
.brand-copy small { text-transform: uppercase; letter-spacing: .23em; font-size: .54rem; color: #7c8797; margin-top: 6px; }
.site-nav { gap: 5px; align-items: center; margin-right: 20px; }
.site-nav .nav-link, .account-nav .nav-link { color: #3e4d61; font-size: .89rem; font-weight: 600; padding: 12px 13px !important; }
.site-nav .nav-link:hover, .account-nav .nav-link:hover { color: var(--navy-800); }
.account-nav { gap: 8px; align-items: center; border-left: 1px solid var(--line); padding-left: 20px; }
.nav-portal { color: var(--navy-800) !important; }
.account-button { border: 0; background: transparent; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink); }
.account-avatar { width: 34px; height: 34px; display: grid; place-items: center; color: white; background: var(--navy-800); border-radius: 50%; }
.navbar-toggler { padding: 8px; border: 0; box-shadow: none !important; }
.menu-line { width: 24px; height: 2px; display: block; margin: 5px 0; background: var(--navy-900); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.dropdown-item { border-radius: 7px; font-size: .88rem; padding: 8px 12px; }

.button { min-height: 50px; border: 1px solid transparent; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 24px; font-weight: 700; font-size: .9rem; letter-spacing: .01em; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-sm { min-height: 42px; padding: 0 18px; font-size: .84rem; }
.button-primary { color: #fff; background: var(--navy-800); box-shadow: 0 9px 22px rgba(11,52,120,.17); }
.button-primary:hover { color: #fff; background: var(--navy-900); box-shadow: 0 12px 28px rgba(11,52,120,.25); }
.button-accent { color: var(--navy-950); background: var(--accent); box-shadow: 0 12px 30px rgba(216,166,66,.24); }
.button-accent:hover { color: var(--navy-950); background: #e4b552; }
.button-white { color: var(--navy-900); background: #fff; }
.button-white:hover { color: var(--navy-900); background: var(--cream); }
.button-ghost { border-color: #cbd4df; color: var(--ink); background: #fff; }
.button-block { width: 100%; }

.hero { min-height: 690px; display: flex; align-items: stretch; position: relative; overflow: hidden; background: var(--navy-900); }
.hero-image { position: absolute; inset: 0; background: url('/images/blue-ridge-hero.png') center right / cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,29,71,.98) 0%, rgba(6,38,92,.95) 39%, rgba(6,38,92,.32) 68%, rgba(6,38,92,.04) 100%); }
.hero::after { content: ""; position: absolute; width: 520px; height: 520px; left: -280px; bottom: -300px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 78px rgba(255,255,255,.025), 0 0 0 155px rgba(255,255,255,.02); }
.hero-content { position: relative; z-index: 2; display: flex; align-items: center; }
.hero-copy { width: 54%; max-width: 610px; color: #fff; padding: 80px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-700); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 19px; }
.eyebrow > span { width: 28px; height: 2px; background: var(--accent); }
.eyebrow-light { color: #d5e2f6; }
.hero h1 { font-size: clamp(3rem, 5vw, 5.25rem); line-height: 1.04; letter-spacing: -.055em; font-weight: 700; margin: 0 0 25px; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-copy > p { max-width: 560px; color: #d2dded; font-size: 1.09rem; line-height: 1.75; margin: 0 0 34px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.text-link-light { color: #fff; font-size: .88rem; font-weight: 600; }
.text-link-light:hover { color: var(--accent); }
.hero-trust { display: flex; align-items: center; gap: 17px; padding-top: 38px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.13); max-width: 475px; }
.avatar-stack { display: flex; }
.avatar-stack b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-900); background: #d9e4f3; border: 2px solid var(--navy-900); font-size: .69rem; margin-left: -8px; }
.avatar-stack b:first-child { margin: 0; background: var(--accent); }
.hero-trust > span:last-child { display: flex; flex-direction: column; }
.hero-trust strong { font-size: .81rem; }
.hero-trust small { color: #99acc8; font-size: .72rem; margin-top: 3px; }
.hero-year { position: absolute; z-index: 3; right: 4%; bottom: -28px; font-family: "Manrope", sans-serif; font-size: 9rem; line-height: 1; font-weight: 800; color: rgba(255,255,255,.12); letter-spacing: -.08em; }

.quick-facts { color: #fff; background: var(--navy-800); }
.fact-grid { min-height: 112px; display: grid; grid-template-columns: repeat(4,1fr); align-items: center; }
.fact-grid div { padding: 0 30px; border-right: 1px solid rgba(255,255,255,.15); display: flex; flex-direction: column; }
.fact-grid div:first-child { padding-left: 0; }
.fact-grid div:last-child { border: 0; }
.fact-grid strong { font-size: 1.22rem; }
.fact-grid span { color: #9fb1ce; font-size: .76rem; margin-top: 4px; }

.section-heading h2, .learning-copy h2, .process-copy h2 { color: var(--navy-950); font-size: clamp(2.2rem,4vw,3.8rem); line-height: 1.12; letter-spacing: -.045em; margin: 0; }
.split-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 90px; align-items: end; margin-bottom: 58px; }
.split-heading > p { color: var(--muted); font-size: 1.03rem; line-height: 1.75; padding-bottom: 5px; margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { min-height: 330px; position: relative; padding: 38px; background: #fff; border: 1px solid #e6e8e8; border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-card-primary { color: #fff; background: var(--navy-800); border-color: var(--navy-800); }
.feature-number { position: absolute; top: 22px; right: 28px; color: #d9dee5; font-family: "Manrope"; font-size: 2.6rem; font-weight: 800; }
.feature-card-primary .feature-number { color: rgba(255,255,255,.12); }
.feature-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: var(--navy-800); background: var(--blue-100); margin-bottom: 56px; }
.feature-icon svg { width: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-card-primary .feature-icon { color: var(--navy-950); background: var(--accent); }
.feature-card h3 { font-size: 1.25rem; margin: 0 0 13px; }
.feature-card p { color: var(--muted); line-height: 1.7; font-size: .91rem; margin: 0; }
.feature-card-primary p { color: #b9cae2; }

.learning-section { background: #fff; }
.learning-grid { display: grid; grid-template-columns: 1.03fr .97fr; gap: 90px; align-items: center; }
.learning-visual { height: 590px; position: relative; }
.learning-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; border-radius: 3px 80px 3px 3px; }
.learning-visual::before { content: ""; width: 110px; height: 110px; position: absolute; left: -28px; top: -28px; z-index: -1; background-image: radial-gradient(var(--accent) 2px, transparent 2px); background-size: 12px 12px; opacity: .55; }
.visual-note { position: absolute; right: -34px; bottom: 38px; width: 210px; padding: 20px 24px; color: #fff; background: var(--navy-800); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.visual-note strong { font-size: .95rem; }
.visual-note span { color: #adc0dc; font-size: .73rem; margin-top: 4px; }
.learning-copy > p, .process-copy > p { color: var(--muted); line-height: 1.8; margin: 25px 0 35px; }
.benefit-list { list-style: none; margin: 0; padding: 0; }
.benefit-list li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.benefit-list li > span { color: var(--accent); font-family: "Manrope"; font-size: .78rem; font-weight: 800; }
.benefit-list li div { display: flex; flex-direction: column; gap: 5px; }
.benefit-list strong { font-size: .93rem; }
.benefit-list small { color: var(--muted); font-size: .81rem; line-height: 1.55; }

.fees-section { color: #fff; background: var(--navy-950); position: relative; overflow: hidden; }
.fees-section::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(30deg, transparent 47%, rgba(255,255,255,.12) 48%, transparent 49%); background-size: 55px 55px; }
.centered-heading { position: relative; text-align: center; margin-bottom: 48px; }
.centered-heading .eyebrow { justify-content: center; }
.centered-heading h2 { color: #fff; }
.centered-heading > p { color: #9cb0ce; margin-top: 16px; }
.fees-card { position: relative; max-width: 790px; margin: 0 auto; color: var(--ink); background: #fff; border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.26); overflow: hidden; }
.fee-row { min-height: 78px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; padding: 0 35px; border-bottom: 1px solid var(--line); }
.fee-row > span { display: flex; align-items: center; gap: 18px; font-weight: 600; }
.fee-row b { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-800); background: var(--blue-100); font-size: .73rem; }
.fee-row > strong { color: var(--navy-900); font-size: 1.32rem; }
.fee-row strong small { color: var(--muted); font-family: "DM Sans"; font-size: .72rem; font-weight: 500; }
.fee-header { min-height: 54px; color: #6f7d8e; background: #f2f4f7; text-transform: uppercase; letter-spacing: .1em; font-size: .67rem; font-weight: 700; }
.registration-fee { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 0 35px; background: var(--accent-soft); }
.registration-fee div { display: flex; flex-direction: column; }
.registration-fee span { font-family: "Manrope"; font-weight: 700; }
.registration-fee small { color: #756438; font-size: .72rem; margin-top: 4px; }
.registration-fee > strong { color: var(--navy-900); font-size: 1.8rem; }
.fees-note { position: relative; color: #8da3c5; text-align: center; font-size: .8rem; margin: 25px 0 0; }
.fees-note a { color: #fff; font-weight: 700; }

.process-section { background: var(--cream); }
.process-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: center; }
.process-copy .button { margin-top: 4px; }
.process-list { list-style: none; margin: 0; padding: 0; counter-reset: item; }
.process-list li { min-height: 118px; display: flex; align-items: center; gap: 25px; padding: 22px 28px; background: #fff; border: 1px solid var(--line); border-bottom: 0; }
.process-list li:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.process-list li:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.process-list li > span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-800); background: var(--blue-100); font-family: "Manrope"; font-weight: 800; }
.process-list div { display: flex; flex-direction: column; gap: 6px; }
.process-list strong { font-size: 1rem; }
.process-list small { color: var(--muted); }
.tour-section { color: #fff; background: var(--navy-800); padding: 72px 0; }
.tour-inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.tour-inner h2 { max-width: 690px; font-size: 2.15rem; margin: 0 0 12px; letter-spacing: -.035em; }
.tour-inner p { color: #b8c9e1; margin: 0; }
.tour-inner .eyebrow { margin-bottom: 14px; }

.site-footer { color: #a8b4c5; background: #031630; padding: 76px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .85fr .85fr .7fr; gap: 60px; }
.brand-footer { margin-bottom: 22px; }
.brand-footer .brand-copy strong { color: #fff; }
.brand-footer .brand-copy small { color: #8392a6; }
.footer-grid p { font-size: .82rem; line-height: 1.85; margin: 0; }
.footer-grid > div:first-child p { max-width: 280px; }
.footer-grid h2 { color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; margin: 8px 0 20px; }
.footer-grid a { color: #a8b4c5; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 65px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; justify-content: space-between; color: #6f7e92; font-size: .69rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-bottom span:last-child { display: flex; align-items: center; gap: 12px; }
.footer-bottom i { display: inline-block; width: 3px; height: 3px; background: var(--accent); border-radius: 50%; }

.toast-banner { color: #fff; padding: 12px 0; font-size: .88rem; font-weight: 600; }
.toast-banner span { width: 22px; height: 22px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); margin-right: 8px; }
.toast-success { background: var(--green); }
.toast-error { background: var(--red); }

.page-hero, .portal-hero, .admin-hero { color: #fff; background: var(--navy-900); }
.page-hero { padding: 76px 0; }
.page-hero h1, .portal-hero h1, .admin-hero h1 { font-size: clamp(2.25rem,4vw,3.7rem); letter-spacing: -.045em; margin: 0 0 12px; }
.page-hero p, .portal-hero p, .admin-hero p { color: #b9c9e0; margin: 0; }
.page-hero-small { padding: 62px 0; }
.application-page-hero { background: linear-gradient(110deg,var(--navy-950),var(--navy-800)); }
.form-hero-inner, .details-hero, .review-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.back-link { display: block; width: max-content; font-size: .79rem; font-weight: 600; margin-bottom: 27px; }
.back-link-light { color: #b8c9e1; }
.back-link-light:hover { color: #fff; }
.form-progress { width: 240px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .7rem; color: #aebed6; }
.form-progress strong { color: #fff; font-size: .72rem; }
.form-progress div { flex-basis: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.17); overflow: hidden; }
.form-progress i { display: block; width: 18%; height: 100%; background: var(--accent); }
.form-section { padding: 60px 0 100px; }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 34px; align-items: start; }
.application-form { display: flex; flex-direction: column; gap: 22px; }
.form-card, .detail-card, .admin-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(5,30,72,.035); }
.form-card { padding: 0 34px 34px; }
.form-card legend { float: none; width: auto; display: flex; align-items: center; gap: 14px; padding: 30px 0 26px; margin: 0; }
.form-card legend > span, .step-number { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--navy-800); font-family: "Manrope"; font-size: .82rem; font-weight: 800; }
.form-card legend div { display: flex; flex-direction: column; color: var(--ink); font-family: "Manrope"; font-size: 1.13rem; font-weight: 700; }
.form-card legend small { color: var(--muted); font-family: "DM Sans"; font-size: .74rem; font-weight: 400; margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.form-field { display: flex; flex-direction: column; }
.form-field-full { grid-column: 1/-1; }
.form-field label { color: #3b495b; font-size: .78rem; font-weight: 700; margin-bottom: 8px; }
.form-field input:not([type=checkbox]):not([type=radio]), .form-field select, .form-field textarea, .filter-form input, .filter-form select { width: 100%; border: 1px solid #ccd4df; border-radius: 8px; color: var(--ink); background: #fff; font-size: .88rem; outline: none; transition: border .2s, box-shadow .2s; }
.form-field input:not([type=checkbox]):not([type=radio]), .form-field select { height: 48px; padding: 0 13px; }
.form-field textarea { padding: 13px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .filter-form input:focus, .filter-form select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(21,75,148,.1); }
.form-field > span, .consent-card > span, .decision-options > span { color: var(--red); font-size: .73rem; margin-top: 5px; }
.check-control { position: relative; display: flex !important; align-items: flex-start; gap: 11px; cursor: pointer; line-height: 1.55; margin: 0 !important; }
.check-control input { position: absolute; opacity: 0; }
.check-control > span { width: 20px; height: 20px; flex: 0 0 auto; border: 1px solid #bfc9d6; border-radius: 5px; background: #fff; margin-top: 1px; }
.check-control input:checked + span { border-color: var(--navy-800); background: var(--navy-800); box-shadow: inset 0 0 0 4px white; }
.check-control b { font-family: "DM Sans"; font-size: .78rem; font-weight: 500; color: #465568; }
.consent-card { background: #eef3fa; border: 1px solid #d5e1f1; border-radius: 12px; padding: 20px; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 7px; }
.form-aside, .details-aside { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.aside-card { padding: 25px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.aside-card h2 { font-size: .96rem; margin: 0 0 11px; }
.aside-card p { color: var(--muted); font-size: .79rem; line-height: 1.6; }
.aside-card > a { font-size: .88rem; font-weight: 700; }
.aside-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--navy-800); font-weight: 700; margin-bottom: 18px; }
.aside-card-soft { background: var(--accent-soft); border-color: #ead59f; }
.aside-card ul { margin: 0; padding: 0 0 0 18px; color: #635a43; font-size: .76rem; line-height: 1.8; }
.secure-note { display: flex; gap: 11px; align-items: flex-start; padding: 5px 9px; color: var(--muted); }
.secure-note span { color: var(--green); }
.secure-note p { font-size: .7rem; line-height: 1.5; margin: 0; }
.validation-summary { color: var(--red); background: var(--red-soft); border-radius: 9px; font-size: .77rem; }
.validation-summary:empty, .validation-summary.validation-summary-valid { display: none; }
.validation-summary ul { margin: 0; padding: 13px 18px 13px 35px; }

.portal-hero { padding: 54px 0; background: linear-gradient(110deg,var(--navy-950),var(--navy-800)); }
.portal-hero-inner, .admin-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.portal-hero h1 { font-size: 2.5rem; }
.portal-section, .admin-section { padding: 50px 0 100px; min-height: 560px; }
.summary-grid { display: grid; gap: 16px; }
.parent-summary { grid-template-columns: repeat(3,1fr); margin-top: -1px; margin-bottom: 50px; }
.summary-grid article, .admin-summary a { min-height: 112px; padding: 24px; display: flex; align-items: center; gap: 17px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.summary-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--navy-800); background: var(--blue-100); border-radius: 11px; font-family: "Manrope"; font-weight: 800; }
.summary-icon-amber { color: #8e6819; background: #f8edcf; }
.summary-icon-green { color: var(--green); background: var(--green-soft); }
.summary-icon-purple { color: var(--purple); background: var(--purple-soft); }
.summary-grid article div, .admin-summary a div { display: flex; flex-direction: column; }
.summary-grid small { color: var(--muted); font-size: .75rem; }
.summary-grid strong { font-size: 1.65rem; line-height: 1.2; margin-top: 4px; }
.content-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.content-heading h2, .admin-panel h2 { font-size: 1.35rem; margin: 0 0 5px; }
.content-heading p, .admin-panel-header p { color: var(--muted); font-size: .8rem; margin: 0; }
.application-list { display: flex; flex-direction: column; gap: 13px; }
.application-card { min-height: 138px; display: grid; grid-template-columns: 56px 1fr 42px; align-items: center; gap: 20px; padding: 24px 26px; background: #fff; border: 1px solid var(--line); border-radius: 13px; transition: border .2s, box-shadow .2s; }
.application-card:hover { border-color: #b9c7d9; box-shadow: 0 12px 35px rgba(5,30,72,.07); }
.learner-avatar, .table-avatar { display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg,var(--navy-700),var(--navy-900)); font-family: "Manrope"; font-weight: 700; }
.learner-avatar { width: 56px; height: 56px; }
.application-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.application-title-row h3 { font-size: 1.05rem; margin: 0 0 3px; }
.application-title-row div > span { color: var(--muted); font-size: .75rem; }
.application-meta { display: flex; align-items: center; gap: 50px; margin-top: 19px; }
.application-meta > span { display: flex; flex-direction: column; }
.application-meta small { color: #8a95a3; font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }
.application-meta strong { font-family: "DM Sans"; font-size: .75rem; margin-top: 3px; }
.icon-link { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; }
.status-badge { display: inline-flex; width: max-content; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 20px; color: var(--navy-700); background: var(--blue-100); font-size: .65rem; font-weight: 700; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge-large { padding: 9px 14px; font-size: .72rem; }
.status-underreview { color: #90691d !important; background: #fbf0d7 !important; }
.status-needsinformation { color: var(--purple) !important; background: var(--purple-soft) !important; }
.status-approved { color: var(--green) !important; background: var(--green-soft) !important; }
.status-waitlisted { color: #a15e17 !important; background: #f8eadb !important; }
.status-declined { color: var(--red) !important; background: var(--red-soft) !important; }
.empty-state { padding: 70px 30px; text-align: center; background: #fff; border: 1px dashed #c8d0da; border-radius: var(--radius); }
.empty-state-icon { width: 53px; height: 53px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; color: var(--navy-800); background: var(--blue-100); font-size: 1.2rem; }
.empty-state h2 { font-size: 1.25rem; }
.empty-state p { max-width: 450px; margin: 0 auto 22px; color: var(--muted); font-size: .85rem; }

.details-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 25px; align-items: start; }
.details-layout > div, .review-information { display: flex; flex-direction: column; gap: 18px; }
.detail-card { padding: 30px; }
.status-card { display: flex; align-items: center; gap: 20px; }
.status-card-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; font-size: 1.25rem; }
.status-card div:last-child > span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.status-card h2 { font-size: 1.25rem; margin: 4px 0; }
.status-card p { color: var(--muted); font-size: .82rem; margin: 0; }
.message-card { border-left: 4px solid var(--accent); background: #fffcf4; }
.message-card p { line-height: 1.7; margin: 3px 0 15px; }
.message-card small { color: var(--muted); }
.detail-card-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 23px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.detail-card-heading > div { display: flex; align-items: center; gap: 13px; }
.detail-card-heading h2 { font-size: 1.05rem; margin: 0; }
.detail-card-heading > a { font-size: .76rem; font-weight: 700; }
.step-number { width: 32px; height: 32px; border-radius: 8px; font-size: .7rem; }
.detail-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 35px; margin: 0; }
.detail-grid div, .summary-list div, .detail-stack div { display: flex; flex-direction: column; gap: 5px; }
.detail-grid dt, .summary-list dt, .detail-stack dt { color: #8590a0; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.detail-grid dd, .summary-list dd, .detail-stack dd { font-size: .84rem; font-weight: 600; margin: 0; }
.detail-full { grid-column: 1/-1; }
.summary-list { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.summary-list div { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.summary-list div:last-child { border: 0; padding: 0; }
.detail-stack { display: flex; flex-direction: column; gap: 25px; margin: 0; }
.detail-stack dd { color: #435165; line-height: 1.7; font-weight: 400; }

.admin-hero { padding: 48px 0; background: var(--navy-950); }
.admin-hero h1 { font-size: 2.35rem; }
.admin-kicker { display: block; color: var(--accent); font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; margin-bottom: 11px; }
.admin-user { display: flex; align-items: center; gap: 12px; }
.admin-user > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-950); background: var(--accent); font-weight: 800; }
.admin-user div { display: flex; flex-direction: column; }
.admin-user strong { font-family: "DM Sans"; font-size: .76rem; }
.admin-user small { color: #93a5bf; font-size: .67rem; margin-top: 3px; }
.admin-summary { grid-template-columns: repeat(4,1fr); margin-bottom: 25px; }
.admin-summary a { min-height: 100px; padding: 20px; color: var(--ink); }
.admin-summary a:hover { border-color: #b9c8da; box-shadow: 0 10px 25px rgba(5,30,72,.06); }
.admin-summary i { color: #a2abb8; font-size: .68rem; font-style: normal; margin-left: auto; }
.admin-panel { overflow: hidden; }
.admin-panel-header { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.filter-form { display: flex; align-items: center; gap: 8px; }
.search-box { position: relative; display: block; }
.search-box span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7b8795; }
.filter-form input { width: 190px; height: 42px; padding: 0 12px 0 34px; }
.filter-form select { width: 160px; height: 42px; padding: 0 10px; }
.clear-filter { font-size: .72rem; padding: 8px; }
.application-table { width: 100%; border-collapse: collapse; }
.application-table th { color: #7b8795; background: #f7f8fa; text-transform: uppercase; letter-spacing: .07em; font-size: .62rem; font-weight: 700; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.application-table td { padding: 16px 20px; border-bottom: 1px solid #edf0f4; font-size: .78rem; vertical-align: middle; }
.application-table tbody tr:hover { background: #fbfcfe; }
.application-table tbody tr:last-child td { border-bottom: 0; }
.application-table td:first-child > a { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.application-table td:first-child span:last-child, .application-table td:nth-child(3), .application-table td:nth-child(4) { display: flex; flex-direction: column; }
.application-table td strong { font-family: "DM Sans"; font-size: .78rem; }
.application-table td small { color: #8a95a3; font-size: .66rem; margin-top: 3px; }
.table-avatar { width: 36px; height: 36px; border-radius: 9px; font-size: .66rem; }
.table-action { font-weight: 700; white-space: nowrap; }
.compact-empty { border: 0; }

.admin-detail-hero { padding: 38px 0 45px; }
.review-title-row { align-items: center; }
.review-title-row h1 { font-size: 2.35rem; }
.review-section { padding-top: 35px; }
.review-layout { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 25px; align-items: start; }
.decision-panel { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.decision-panel form { padding: 28px; }
.decision-heading { padding-bottom: 23px; }
.decision-heading > span { color: var(--navy-700); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.decision-heading h2 { font-size: 1.28rem; margin: 7px 0; }
.decision-heading p { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: 0; }
.decision-options { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
.decision-option { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 13px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; font-size: .78rem; }
.decision-option:last-of-type { border-bottom: 0; }
.decision-option input { position: absolute; opacity: 0; }
.decision-radio { width: 16px; height: 16px; border: 1px solid #b4bfce; border-radius: 50%; }
.decision-option input:checked + .decision-radio { border: 5px solid var(--navy-800); }
.decision-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor !important; }
.decision-option b { font-family: "DM Sans"; font-weight: 600; }
.decision-notes { margin-bottom: 20px; }
.decision-notes > small { color: var(--muted); font-size: .66rem; margin-top: 6px; }
.review-history { color: var(--muted); font-size: .65rem; line-height: 1.5; text-align: center; margin: 15px 0 0; }

.prose h2 { color: var(--navy-900); font-size: 1.35rem; margin: 35px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); line-height: 1.8; }

/* Identity UI supplied by ASP.NET Core */
main > h1, main > h2, main > h2 + h3, main > .row { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
main > h1 { color: var(--navy-950); margin-top: 60px; font-size: 2.3rem; }
main > h2, main > h2 + h3 { color: var(--muted); }
main > .row { margin-top: 30px; margin-bottom: 100px; }
main > .row .col-md-4 { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-floating > .form-control { border-color: #ccd4df; }
.form-floating > .form-control:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(21,75,148,.1); }
.btn-primary { background-color: var(--navy-800); border-color: var(--navy-800); }
.btn-primary:hover { background-color: var(--navy-900); border-color: var(--navy-900); }

/* Familiar Google Identity treatment for the built-in external login form. */
button[name="provider"][value="Google"] {
  position: relative;
  width: 100%;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px 0 50px;
  border: 1px solid #747775;
  border-radius: 4px;
  color: #1f1f1f;
  background: #fff url('/images/google-g.svg') 17px center / 20px 20px no-repeat;
  box-shadow: none;
  font-family: Roboto, Arial, sans-serif;
  font-size: 0;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: center;
  transition: background-color .18s, border-color .18s, box-shadow .18s;
}

button[name="provider"][value="Google"]::after {
  content: "Continue with Google";
  font-size: .875rem;
}

button[name="provider"][value="Google"]:hover {
  color: #1f1f1f;
  background-color: #f8faff;
  border-color: #5f6368;
  box-shadow: 0 1px 2px rgba(60,64,67,.2);
}

button[name="provider"][value="Google"]:focus-visible {
  outline: 3px solid rgba(66,133,244,.25);
  outline-offset: 2px;
}

button[name="provider"][value="Google"]:active {
  background-color: #edf3fe;
  box-shadow: inset 0 1px 2px rgba(60,64,67,.18);
}

@media (max-width: 991.98px) {
  .nav-shell { min-height: 72px; }
  .navbar-collapse { padding: 18px 0 22px; border-top: 1px solid var(--line); margin-top: 10px; }
  .site-nav, .account-nav { align-items: stretch; gap: 2px; border: 0; padding: 0; margin: 0; }
  .account-nav { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
  .account-nav .button { margin-top: 5px; }
  .hero { min-height: 650px; }
  .hero-image { background-position: 63% center; }
  .hero-overlay { background: linear-gradient(90deg,rgba(4,29,71,.98),rgba(6,38,92,.86) 55%,rgba(6,38,92,.25)); }
  .hero-copy { width: 70%; }
  .split-heading { grid-template-columns: 1fr; gap: 25px; }
  .learning-grid { grid-template-columns: 1fr; gap: 65px; }
  .learning-visual { height: 510px; }
  .learning-copy { max-width: 680px; }
  .process-grid { gap: 55px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
  .form-layout, .details-layout { grid-template-columns: minmax(0,1fr) 260px; }
  .review-layout { grid-template-columns: minmax(0,1fr) 330px; }
  .admin-summary { grid-template-columns: repeat(2,1fr); }
  .admin-panel-header { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 767.98px) {
  .site-container { width: min(100% - 28px, 1180px); }
  .section { padding: 76px 0; }
  .announcement-contact { display: none; }
  .announcement-inner { justify-content: center; }
  .brand-mark { width: 38px; }
  .brand-copy strong { font-size: .88rem; }
  .brand-copy small { font-size: .48rem; }
  .hero { min-height: 690px; }
  .hero-image { background-position: 66% center; }
  .hero-overlay { background: linear-gradient(90deg,rgba(4,29,71,.98),rgba(6,38,92,.87) 68%,rgba(6,38,92,.58)); }
  .hero-copy { width: 94%; padding: 68px 0; }
  .hero h1 { font-size: clamp(2.7rem,12vw,4rem); }
  .hero-copy > p { font-size: .97rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-trust { padding-top: 27px; margin-top: 29px; }
  .hero-year { font-size: 6rem; right: 6%; }
  .fact-grid { grid-template-columns: repeat(2,1fr); padding: 18px 0; }
  .fact-grid div { min-height: 72px; justify-content: center; padding: 0 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .fact-grid div:nth-child(2) { border-right: 0; }
  .fact-grid div:nth-child(3), .fact-grid div:nth-child(4) { border-bottom: 0; }
  .fact-grid div:nth-child(3) { padding-left: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 280px; }
  .learning-visual { height: 410px; }
  .visual-note { right: 15px; bottom: -20px; }
  .learning-grid { gap: 60px; }
  .fee-row { min-height: 72px; padding: 0 18px; }
  .fee-row b { width: 37px; height: 37px; }
  .fee-row > strong { font-size: 1.05rem; }
  .registration-fee { padding: 16px 18px; }
  .process-grid { grid-template-columns: 1fr; }
  .tour-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 45px 25px; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .form-hero-inner, .details-hero, .review-title-row, .portal-hero-inner, .admin-hero-inner { align-items: flex-start; flex-direction: column; }
  .form-progress { width: 100%; }
  .form-layout, .details-layout, .review-layout { grid-template-columns: 1fr; }
  .form-aside, .details-aside, .decision-panel { position: static; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; }
  .form-field-full, .detail-full { grid-column: auto; }
  .form-card { padding: 0 20px 25px; }
  .form-actions { align-items: stretch; flex-direction: column-reverse; }
  .parent-summary { grid-template-columns: 1fr; margin-bottom: 38px; }
  .application-card { grid-template-columns: 48px 1fr; padding: 20px; }
  .learner-avatar { width: 48px; height: 48px; }
  .application-title-row { align-items: flex-start; flex-direction: column; }
  .application-meta { gap: 20px; flex-wrap: wrap; }
  .application-card > .icon-link { display: none; }
  .admin-summary { grid-template-columns: 1fr; }
  .filter-form { width: 100%; flex-wrap: wrap; }
  .filter-form .search-box { width: 100%; }
  .filter-form input { width: 100%; }
  .filter-form select { flex: 1; }
  .admin-user { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
