/* University maroon, warm red and saffron-orange palette */
:root {
    --maroon: #741b32;
    --maroon-dark: #4b1022;
    --maroon-soft: #f7e9ed;
    --red: #a52a3b;
    --orange: #e7812b;
    --orange-dark: #bd5a18;
    --cream: #fffaf5;
    --ink: #29232a;
    --muted: #71666b;
    --line: #eadfe2;
    --surface: #ffffff;
    --shadow: 0 12px 34px rgba(75, 16, 34, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
    margin: 0;
    background: #fbf8f6;
    color: var(--ink);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
}
a { color: var(--maroon); }
a:hover { color: var(--orange-dark); }
.top-strip {
    background: var(--maroon-dark);
    color: #fff3e8;
    font-size: .78rem;
    letter-spacing: .02em;
    padding: .42rem 0;
}
.top-strip-session { color: #ffd7a8; text-align: right; }
.site-navbar {
    background: var(--maroon);
    box-shadow: 0 4px 18px rgba(48, 8, 21, .15);
    padding: .8rem 0;
}
.navbar-brand { white-space: normal; }
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(255,255,255,.78);
    border-radius: 50%;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: -.04em;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-copy strong { color: #fff; font-size: .98rem; }
.brand-copy small { color: #f4dbe1; font-size: .75rem; margin-top: .2rem; }
.navbar .nav-link { color: #fff2f4; font-size: .92rem; }
.navbar .nav-link:hover, .navbar .nav-link:focus { color: #ffd29e; }
.btn { border-radius: .65rem; font-weight: 650; padding: .65rem 1rem; }
.btn-sm { padding: .48rem .8rem; border-radius: .55rem; }
.btn-primary {
    --bs-btn-bg: var(--maroon);
    --bs-btn-border-color: var(--maroon);
    --bs-btn-hover-bg: var(--maroon-dark);
    --bs-btn-hover-border-color: var(--maroon-dark);
    --bs-btn-active-bg: var(--maroon-dark);
    --bs-btn-active-border-color: var(--maroon-dark);
}
.btn-accent {
    background: var(--orange);
    border: 1px solid var(--orange);
    color: #2c1609 !important;
}
.btn-accent:hover, .btn-accent:focus {
    background: #f39a4b;
    border-color: #f39a4b;
    color: #2c1609 !important;
}
.btn-outline-primary {
    --bs-btn-color: var(--maroon);
    --bs-btn-border-color: #c98c9b;
    --bs-btn-hover-bg: var(--maroon);
    --bs-btn-hover-border-color: var(--maroon);
}
main { min-height: 65vh; }
.container { max-width: 1180px; }
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(125deg, var(--maroon-dark) 0%, var(--maroon) 60%, #9d3345 100%);
    color: #fff;
    border-radius: 1.25rem;
    box-shadow: var(--shadow);
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 211, 163, .22);
    border-radius: 50%;
    right: -95px;
    top: -155px;
    box-shadow: 0 0 0 35px rgba(255, 211, 163, .05), 0 0 0 75px rgba(255, 211, 163, .04);
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: .4rem .75rem;
    color: #ffe0b8;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.12; }
.hero p { color: #f7e7e9; max-width: 660px; }
.hero .hero-note { font-size: .88rem; color: #ffe1c4; }
.hero-stat {
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.17);
    border-radius: .9rem;
    padding: 1rem;
    height: 100%;
}
.hero-stat strong { display: block; color: #fff; font-size: 1.1rem; }
.hero-stat span { color: #f4dce1; font-size: .8rem; }
.section-heading { margin-bottom: 1.2rem; }
.section-heading .eyebrow {
    color: var(--orange-dark);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.section-heading h2 { color: var(--maroon-dark); font-size: clamp(1.4rem, 2vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; }
.section-heading p { color: var(--muted); margin-bottom: 0; }
.card, .content-card {
    border: 1px solid rgba(116, 27, 50, .08);
    border-radius: 1rem;
    box-shadow: var(--shadow);
    background: var(--surface);
}
.content-card { padding: clamp(1rem, 2.5vw, 1.6rem); }
.card-heading { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: 1rem; }
.card-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 44px;
    background: var(--maroon-soft); color: var(--maroon); border-radius: .8rem;
    font-size: 1.2rem; font-weight: 800;
}
.card-heading h3 { margin: 0; color: var(--maroon-dark); font-size: 1.15rem; font-weight: 800; }
.card-heading p { color: var(--muted); font-size: .9rem; margin: .25rem 0 0; }
.form-label { font-weight: 700; color: #40343a; }
.required::after { content: " *"; color: var(--red); }
.form-control, .form-select {
    min-height: 47px;
    border-color: #ded0d5;
    border-radius: .65rem;
}
.form-control:focus, .form-select:focus {
    border-color: #b8667b;
    box-shadow: 0 0 0 .22rem rgba(116, 27, 50, .12);
}
.captcha-image { max-width: 100%; height: 42px; object-fit: contain; border: 1px solid var(--line); border-radius: .4rem; background: #fff; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: .65rem; padding: .6rem 0; border-bottom: 1px solid #f0e7e9; }
.info-list li:last-child { border-bottom: 0; }
.info-list li::before { content: "✓"; color: var(--orange-dark); font-weight: 900; }
.step-list { counter-reset: steps; list-style: none; padding: 0; margin: 0; }
.step-list li { counter-increment: steps; position: relative; padding: 0 0 1.15rem 3rem; }
.step-list li:last-child { padding-bottom: 0; }
.step-list li::before {
    content: counter(steps);
    position: absolute; left: 0; top: -.1rem;
    width: 2rem; height: 2rem; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--maroon-soft); color: var(--maroon); font-weight: 800;
}
.step-list strong { display: block; color: var(--maroon-dark); }
.step-list span { display: block; color: var(--muted); font-size: .9rem; }
.table { --bs-table-color: var(--ink); margin-bottom: 0; }
.table thead th { background: var(--maroon); color: #fff; border-color: #8c4054; font-weight: 700; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .8rem .9rem; border-bottom-color: #eee3e6; }
.table tfoot th, .table .table-total th, .table .table-total td { background: #fff0e1; color: var(--maroon-dark); font-weight: 800; }
.fee-highlight {
    background: linear-gradient(120deg, #fff1e2, #fff9f2);
    border: 1px solid #f4d7b8; border-radius: .85rem; padding: 1rem;
}
.fee-highlight span { display: block; color: var(--muted); font-size: .83rem; }
.fee-highlight strong { color: var(--maroon); font-size: 1.4rem; }
.hostel-card { height: 100%; border: 1px solid var(--line); border-radius: .9rem; padding: 1.1rem; background: #fff; }
.hostel-card .hostel-type { color: var(--muted); font-size: .83rem; }
.hostel-card .hostel-price { color: var(--maroon); font-size: 1.3rem; font-weight: 850; }
.hostel-card .hostel-price small { font-size: .75rem; font-weight: 500; color: var(--muted); }
.note-panel { background: #fff5ee; border-left: 4px solid var(--orange); border-radius: .5rem; padding: .9rem 1rem; color: #69472e; }
.location-panel { background: var(--maroon-soft); border-radius: .9rem; padding: 1.2rem; }
.student-detail { background: #fffaf8; border: 1px solid var(--line); border-radius: .65rem; padding: .85rem; height: 100%; }
.student-detail .label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: .2rem; }
.student-detail .value { font-weight: 700; overflow-wrap: anywhere; }
.site-footer { background: var(--maroon-dark); color: #f7e6e9; }
.site-footer a { color: #ffd3a0; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-university { font-weight: 800; color: #fff; }
.footer-separator { margin: 0 .45rem; color: #c69aa5; }
.alert { border-radius: .75rem; }
@media (max-width: 767.98px) {
    .top-strip { font-size: .69rem; }
    .top-strip .container { align-items: flex-start !important; }
    .top-strip-session { max-width: 42%; }
    .site-navbar { padding: .65rem 0; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; font-size: .7rem; }
    .brand-copy strong { font-size: .82rem; max-width: 225px; }
    .brand-copy small { font-size: .68rem; }
    .hero { border-radius: .9rem; }
    .hero .hero-actions .btn { width: 100%; }
    .content-card { border-radius: .85rem; }
    .table > :not(caption) > * > * { padding: .7rem; }
    .mobile-full { width: 100%; }
}
@media print {
    .site-navbar, .top-strip, .site-footer, .btn { display: none !important; }
    body { background: #fff; }
    .card, .content-card { box-shadow: none; }
}


/* Student login and application workflow */
.login-intro{background:linear-gradient(145deg,#5b1328 0%,#741b32 58%,#9b3a2e 100%);color:#fff;border-radius:1.25rem;box-shadow:0 1rem 2.5rem rgba(64,12,28,.16)}
.login-intro .eyebrow{color:#ffd7a8}.login-intro .lead{color:rgba(255,255,255,.86);font-size:1.05rem}.login-checklist{padding-left:1.25rem;margin:1.5rem 0 0;color:rgba(255,255,255,.94)}.login-checklist li{margin:.8rem 0}.form-card{background:#fff;border:1px solid #eadde0;border-radius:1.1rem;box-shadow:0 12px 35px rgba(50,18,28,.07)}.login-tabs{background:#f8eff1;padding:.35rem;border-radius:.8rem}.login-tabs .nav-link{color:#741b32;font-weight:600}.login-tabs .nav-link.active{background:#741b32;color:#fff}.form-label{font-weight:600;color:#4b3038}.form-control,.form-select{min-height:45px;border-color:#dfcbd0;border-radius:.65rem}.form-control:focus,.form-select:focus{border-color:#a64c39;box-shadow:0 0 0 .2rem rgba(166,76,57,.15)}.btn-primary{--bs-btn-bg:#741b32;--bs-btn-border-color:#741b32;--bs-btn-hover-bg:#5b1328;--bs-btn-hover-border-color:#5b1328;--bs-btn-active-bg:#5b1328}.btn-outline-secondary{--bs-btn-color:#741b32;--bs-btn-border-color:#b58a95;--bs-btn-hover-bg:#741b32;--bs-btn-hover-border-color:#741b32}.application-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.eyebrow{font-size:.75rem;font-weight:800;letter-spacing:.12em;color:#a84b28}.stepper{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.5rem}.stepper-item{display:flex;flex-direction:column;align-items:center;gap:.45rem;color:#8d777d;text-align:center}.stepper-item span{display:grid;place-items:center;width:2.1rem;height:2.1rem;border:1px solid #decbd0;border-radius:50%;font-weight:700;background:#fff}.stepper-item small{font-size:.75rem;line-height:1.2}.stepper-item.active{color:#741b32;font-weight:700}.stepper-item.active span,.stepper-item.complete span{background:#741b32;border-color:#741b32;color:#fff}.section-title{font-size:1.15rem;font-weight:750;color:#741b32;border-bottom:1px solid #f0e2e5;padding-bottom:.65rem;margin-bottom:1rem}.academic-block,.upload-card{border:1px solid #eadde0;background:#fffaf8;border-radius:.9rem;padding:1rem}.upload-preview{display:block;max-width:180px;max-height:180px;object-fit:contain;border:1px solid #eadde0;background:#fff;border-radius:.5rem;padding:.4rem;margin:0 0 1rem}.review-label{font-size:.8rem;color:#8a6e77;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.review-value{overflow-wrap:anywhere;font-weight:500;color:#3f2a31}.declaration-box{background:#fff7ed;border:1px solid #f2d9b9;border-radius:.8rem;padding:1rem 1rem 1rem 2.5rem}.fee-table thead th{background:#741b32;color:#fff}.fee-table td,.fee-table th{padding:.9rem}.top-strip{font-size:.78rem}
@media(max-width:575.98px){.application-heading{align-items:flex-start}.stepper{gap:.2rem}.stepper-item small{font-size:.63rem}.stepper-item span{width:1.8rem;height:1.8rem}.login-intro{padding:1.5rem!important}.form-card{border-radius:.85rem}.fee-table td,.fee-table th{padding:.65rem;font-size:.9rem}}
