:root {
    --hma-primary: #0A2E5C;
    --hma-secondary: #1B4F9C;
    --hma-accent: #F7941D;
    --hma-bg: #F5F7FA;
    --hma-surface: #FFFFFF;
    --hma-surface-soft: #F9FBFF;
    --hma-border: #D7E2F1;
    --hma-text: #243041;
    --hma-muted: #5F6F86;
    --hma-radius-sm: 10px;
    --hma-radius: 16px;
    --hma-radius-lg: 22px;
    --hma-shadow-sm: 0 6px 14px rgba(10, 46, 92, 0.08);
    --hma-shadow: 0 14px 34px rgba(10, 46, 92, 0.12);
    --hma-shadow-strong: 0 20px 44px rgba(7, 32, 71, 0.26);
    --bs-primary: #0A2E5C;
    --bs-secondary: #1B4F9C;
    --bs-body-bg: #F5F7FA;
    --bs-body-color: #243041;
    --bs-border-color: #D7E2F1;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    letter-spacing: 0.01em;
    line-height: 1.5;
    background:
        radial-gradient(circle at 85% -20%, rgba(247, 148, 29, 0.19), transparent 42%),
        radial-gradient(circle at 10% 112%, rgba(27, 79, 156, 0.16), transparent 40%),
        var(--hma-bg);
    color: var(--hma-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: -0.01em;
    color: #1E2C3D;
}

.portal-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.portal-sidebar {
    background: linear-gradient(178deg, #07244F 0%, #0D346A 56%, #174B92 100%);
    color: #fff;
    padding: 1rem;
    border-radius: var(--hma-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    position: sticky;
    top: 1rem;
    height: calc(100vh - 2rem);
    box-shadow: var(--hma-shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portal-main {
    min-width: 0;
    padding: 0.2rem 0.45rem 1.1rem 0.2rem;
}

.brand-block {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.brand-block i {
    font-size: 1.05rem;
    background: rgba(255, 255, 255, 0.16);
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    flex-shrink: 0;
}

.brand-block h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.brand-block small {
    opacity: 0.92;
    font-size: 0.75rem;
    line-height: 1.2;
    display: block;
    color: rgba(255, 255, 255, 0.85);
}

.portal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.12rem;
}

.portal-nav .nav-link {
    color: rgba(255, 255, 255, 0.91);
    border-radius: 11px;
    padding: 0.6rem 0.68rem;
    font-size: 0.86rem;
    font-weight: 600;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.portal-nav .nav-link i {
    width: 18px;
    margin-right: 0.2rem;
    text-align: center;
}

.portal-nav .nav-link:hover,
.portal-nav .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.portal-nav .logout-nav-link {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.portal-nav .logout-nav-link:hover,
.portal-nav .logout-nav-link:focus-visible {
    background: var(--hma-accent);
    border-color: var(--hma-accent);
    color: #fff;
    transform: none;
}

.portal-topbar {
    background: linear-gradient(124deg, #07244F 0%, #0D376F 48%, #1A58A9 100%);
    border-radius: var(--hma-radius-lg);
    padding: 1rem 1.2rem;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--hma-shadow-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    position: sticky;
    top: 0.9rem;
    z-index: 20;
}

.portal-topbar h1 {
    margin: 0;
    font-size: 1.28rem;
    font-weight: 800;
    color: #fff;
}

.portal-topbar small {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 0.84rem;
}

.portal-topbar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.44);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.portal-topbar .btn-outline-light:hover,
.portal-topbar .btn-outline-light:focus-visible {
    color: var(--hma-primary);
    background: #fff;
    border-color: #fff;
}

.user-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.83rem;
    font-weight: 600;
}

.verify-badge {
    border-radius: 999px;
    padding: 0.36rem 0.74rem;
    font-size: 0.78rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.verify-badge.verified {
    background: rgba(84, 199, 132, 0.2);
    color: #D9FFE7;
}

.verify-badge.unverified {
    background: rgba(247, 148, 29, 0.24);
    color: #FFE8C8;
}

.portal-content {
    padding-top: 1rem;
    animation: fadeSlideIn 0.36s ease;
}

.card {
    border: 1px solid var(--hma-border);
    border-radius: var(--hma-radius);
    background: var(--hma-surface);
    box-shadow: var(--hma-shadow-sm);
}

.card .card-body {
    padding: 1rem 1.06rem;
}

.table {
    margin-bottom: 0;
    --bs-table-bg: transparent;
}

.table thead th {
    border-bottom-width: 1px;
    border-bottom-color: #C8D6EA;
    color: #2A3A4F;
    font-size: 0.78rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    font-weight: 800;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
    white-space: nowrap;
}

.table tbody td {
    border-color: #E1E9F6;
    padding-top: 0.68rem;
    padding-bottom: 0.68rem;
    vertical-align: middle;
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: #F8FBFF;
}

.table-responsive {
    border-radius: 12px;
}

.form-control,
.form-select {
    border-radius: var(--hma-radius-sm);
    border-color: #C7D5EB;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #7A9FD2;
    box-shadow: 0 0 0 0.2rem rgba(27, 79, 156, 0.14);
}

.form-label {
    font-weight: 700;
    color: #2A3A4F;
    font-size: 0.84rem;
    margin-bottom: 0.35rem;
}

.btn {
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-sm {
    font-size: 0.79rem;
}

.btn-primary {
    background: var(--hma-primary);
    border-color: var(--hma-primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: #083266;
    border-color: #083266;
}

.btn-outline-primary {
    border-color: #88A5CF;
    color: var(--hma-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: var(--hma-primary);
    border-color: var(--hma-primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid #f9c063;
    outline-offset: 2px;
}

.btn-warning,
.bg-warning {
    background-color: var(--hma-accent) !important;
    border-color: var(--hma-accent) !important;
}

.alert {
    border-radius: 12px;
    border-width: 1px;
}

.metric-card {
    overflow: hidden;
    position: relative;
}

.metric-card .accent-strip {
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--hma-accent);
}

.admin-kpi-strip {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.admin-kpi-strip .card-body {
    padding: 0;
}

.admin-kpi-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.admin-kpi-item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 0.88rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #D2DEEF;
    border-left: 5px solid var(--hma-accent);
    background: #FFF;
    box-shadow: 0 10px 22px rgba(10, 46, 92, 0.08);
}

.admin-kpi-link {
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.admin-kpi-link:hover,
.admin-kpi-link:focus-visible {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(10, 46, 92, 0.14);
}

.admin-kpi-label {
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #36506D;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
}

.admin-kpi-value {
    flex-shrink: 0;
    font-size: 1.62rem;
    font-weight: 800;
    line-height: 1;
    color: var(--hma-primary);
}

.admin-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 390px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.admin-progress-item {
    border: 1px solid #D7E3F1;
    border-radius: 12px;
    background: var(--hma-surface-soft);
    padding: 0.72rem 0.76rem;
}

.admin-progress-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.admin-progress-link:hover,
.admin-progress-link:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--hma-shadow-sm);
    border-color: #9fc6ff;
    color: inherit;
}

.admin-progress-item.is-complete {
    background: #EAF9EF;
    border-color: #BFEBCB;
}

.admin-progress-item.is-complete .admin-progress-name {
    color: #166534;
}

.admin-progress-item.is-complete .admin-doc-box {
    background: #CFF3D8;
    border-color: #8DD9A8;
    color: #166534;
}

.admin-progress-item.is-complete .admin-doc-item.is-checked .admin-doc-box {
    background: #7DCC95;
    border-color: #7DCC95;
    color: #fff;
}

.admin-progress-item.is-complete .admin-doc-name {
    color: #2F5E3D;
}

.guidelines-hero {
    border: 1px solid rgba(10, 46, 92, 0.12);
    background:
        radial-gradient(circle at top right, rgba(247, 148, 29, 0.12), transparent 34%),
        linear-gradient(180deg, #fff, #f8fbff);
}

.guidelines-kicker {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--hma-muted);
    margin-bottom: 0.35rem;
}

.guidelines-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guidelines-note {
    background: #EEF5FF;
    border: 1px solid #D4E4FF;
    color: #27415F;
    border-radius: 12px;
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
}

.guidelines-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.guidelines-summary-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.45;
}

.guidelines-summary-bullet {
    min-width: 1.5rem;
    min-height: 1.5rem;
    padding: 0.12rem 0.48rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #D7F5E4;
    color: #0C7A47;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
}

.guidelines-accordion .accordion-item {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #D7E3F1;
}

.guidelines-accordion .accordion-item + .accordion-item {
    margin-top: 0.75rem;
}

.guidelines-accordion .accordion-button {
    background: #F8FBFF;
    font-weight: 700;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    white-space: normal;
}

.guidelines-accordion .accordion-button:not(.collapsed) {
    background: #EEF5FF;
    color: var(--hma-primary);
    box-shadow: none;
}

.admin-progress-topline {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.admin-progress-name {
    min-width: 0;
    font-weight: 700;
    font-size: 0.86rem;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-progress-percent {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--hma-primary);
}

.admin-doc-checklist {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.42rem 0.6rem;
    overflow: visible;
}

.admin-doc-item {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    min-width: 0;
    flex: 1 1 calc(50% - 0.3rem);
}

.admin-doc-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid #C2D0E6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
}

.admin-doc-item.is-checked .admin-doc-box {
    background: #0D8A4C;
    border-color: #0D8A4C;
    color: #FFF;
}

.admin-doc-item.is-pending .admin-doc-box {
    background: #FFF;
    color: transparent;
}

.admin-doc-name {
    font-size: 0.72rem;
    color: #415066;
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    line-height: 1.25;
}

.admin-progress-track {
    height: 8px;
    background: #E7EDF7;
}

.admin-progress-track .progress-bar {
    background: linear-gradient(90deg, var(--hma-secondary), var(--hma-primary));
}

.admin-progress-next {
    margin-top: 0.4rem;
    font-size: 0.76rem;
    color: #5B697D;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-metric-strip .card-body {
    padding: 0.78rem 0.92rem;
}

.compact-metric-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.62rem;
    align-items: center;
}

.compact-metric-item {
    background: rgba(10, 46, 92, 0.04);
    border: 1px solid rgba(10, 46, 92, 0.08);
    border-radius: 12px;
    padding: 0.48rem 0.62rem;
    min-width: 0;
}

.compact-metric-label {
    font-size: 0.72rem;
    color: var(--hma-muted);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.compact-metric-value {
    margin-top: 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-slim {
    height: 9px;
}

.progress-width-0 { width: 0%; }
.progress-width-5 { width: 5%; }
.progress-width-10 { width: 10%; }
.progress-width-15 { width: 15%; }
.progress-width-20 { width: 20%; }
.progress-width-25 { width: 25%; }
.progress-width-30 { width: 30%; }
.progress-width-35 { width: 35%; }
.progress-width-40 { width: 40%; }
.progress-width-45 { width: 45%; }
.progress-width-50 { width: 50%; }
.progress-width-55 { width: 55%; }
.progress-width-60 { width: 60%; }
.progress-width-65 { width: 65%; }
.progress-width-70 { width: 70%; }
.progress-width-75 { width: 75%; }
.progress-width-80 { width: 80%; }
.progress-width-85 { width: 85%; }
.progress-width-90 { width: 90%; }
.progress-width-95 { width: 95%; }
.progress-width-100 { width: 100%; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.pending-doc-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pending-doc-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.86rem;
    color: #334155;
}

.pending-doc-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.pending-doc-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    max-width: 100%;
}

.pending-doc-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid transparent;
    flex-shrink: 0;
}

.pending-doc-box-missing {
    background: #EF4444;
    border-color: #DC2626;
}

.pending-doc-box-resubmission {
    background: #F59E0B;
    border-color: #D97706;
}

.pending-doc-name {
    font-size: 0.84rem;
    color: #1F2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.programme-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.programme-chip-diploma {
    background: #123F8A;
    color: #FFF;
}

.programme-chip-other {
    background: #D7E8FF;
    color: #19427D;
}

.programme-chip-generic {
    background: #E5E7EB;
    color: #374151;
}

.email-attachments-grid {
    margin-top: 0.15rem;
}

.email-generator-hero {
    border: 1px solid rgba(10, 46, 92, 0.12);
    background:
        radial-gradient(circle at top right, rgba(247, 148, 29, 0.12), transparent 32%),
        linear-gradient(180deg, #fff, #f8fbff);
}

.email-generator-note {
    min-width: 220px;
    max-width: 300px;
    padding: 0.8rem 0.95rem;
    border-radius: 14px;
    border: 1px solid #D9E5F5;
    background: #F9FBFF;
}

.email-generator-preview {
    min-height: 260px;
}

.email-attachment-card {
    border: 1px solid #DBE3EF;
    border-radius: 12px;
    background: #F9FBFF;
    padding: 0.68rem 0.72rem;
    min-height: 86px;
}

.email-attachment-check {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
}

.email-attachment-check .form-check-input {
    margin: 0.2rem 0 0;
}

.email-attachment-name {
    font-size: 0.96rem;
    line-height: 1.25;
    color: #1F2937;
}

.documents-table th:nth-child(2),
.documents-table td:nth-child(2) {
    width: 190px;
    text-align: center;
    vertical-align: middle;
}

.documents-table th:nth-child(4),
.documents-table td:nth-child(4) {
    width: 220px;
}

.documents-table th:nth-child(5),
.documents-table td:nth-child(5) {
    width: 260px;
}

.documents-table td:nth-child(2) .status-pill {
    min-width: 165px;
    padding: 0.38rem 0.7rem;
}

.documents-table .current-file-cell {
    max-width: 280px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
}

.documents-file-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
}

.documents-file-name {
    display: block;
    max-width: 100%;
    color: #334155;
    font-size: 0.89rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.documents-file-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.documents-table .remarks-cell {
    color: #475569;
    line-height: 1.35;
}

.documents-upload-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 220px;
}

.documents-upload-input {
    font-size: 0.82rem;
}

.col-checklist-shell {
    padding-top: 1.05rem;
}

.col-checklist-header {
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #E3EBF8;
}

.col-checklist-item {
    border-color: #D8E3F3 !important;
    background: #FCFDFF;
}

.col-checklist-title {
    font-size: 1.02rem;
    line-height: 1.25;
    margin-bottom: 0.14rem;
}

.col-checklist-description {
    font-size: 0.96rem;
    line-height: 1.3;
}

.col-checklist-item-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.col-checklist-item-head {
    flex-wrap: nowrap !important;
}

.col-checklist-status {
    min-width: 98px;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
}

.col-checklist-form .form-label {
    margin-bottom: 0.28rem;
}

.col-checklist-form .form-control {
    min-height: 44px;
}

.col-checklist-form .btn {
    min-height: 44px;
}

.col-checklist-latest-row {
    border-top: 1px dashed #D7E2F1;
    padding-top: 0.52rem;
}

.col-checklist-latest-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

.col-checklist-latest-actions {
    flex-shrink: 0;
}

.document-preview-frame {
    display: block;
    width: 100%;
    height: min(78vh, 860px);
    border: 0;
    background: #fff;
}

.recent-activity-scroll {
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 0.3rem;
}

.recent-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    line-height: 1.2;
    margin: 0;
    font-size: 0.89rem;
}

.recent-activity-action {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recent-activity-time {
    flex-shrink: 0;
    white-space: nowrap;
}

.timeline-scroll {
    max-height: 245px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.timeline-scroll thead th {
    position: sticky;
    top: 0;
    background: var(--hma-surface);
    z-index: 1;
}

.status-pill {
    padding: 0.31rem 0.62rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1.1;
    border: 1px solid transparent;
}

.status-Approved {
    background: #D7F5E4;
    color: #0C7A47;
    border-color: #A8E8C5;
}

.status-Rejected {
    background: #FFE1E4;
    color: #B02A37;
    border-color: #F2B7BF;
}

.status-Under-Review,
.status-REQUEST-COL,
.status-Uploaded {
    background: #E6EEFF;
    color: #17458D;
    border-color: #C2D6FF;
}

.status-Submitted {
    background: #D7F5E4;
    color: #0C7A47;
    border-color: #A8E8C5;
}

.status-Resubmission-Required,
.status-Draft,
.status-Missing {
    background: #FFF1DE;
    color: #9A570A;
    border-color: #F3D3A4;
}

.status-Initial {
    background: #F1E8FF;
    color: #6D28D9;
    border-color: #D9C4FF;
}

.status-Not-Submitted {
    background: #FFE1E4;
    color: #B02A37;
    border-color: #F2B7BF;
}

[data-status-text^="0/"],
[data-status-text^="1/"],
[data-status-text^="2/"],
[data-status-text^="3/"],
[data-status-text^="4/"] {
    background: #E6EEFF;
    color: #17458D;
    border-color: #C2D6FF;
}

.status-Pending,
.status-Draft {
    background: #FFF1DE;
    color: #9A570A;
    border-color: #F3D3A4;
}

.status-Paid,
.status-Sent,
.status-Verified,
.status-Waived,
.status-Completed {
    background: #D7F5E4;
    color: #0C7A47;
    border-color: #A8E8C5;
}

.status-Partially-Paid,
.status-Failed,
.status-Needs-Update {
    background: #FFEBD6;
    color: #9A570A;
    border-color: #F3D3A4;
}

.public-shell {
    min-height: 100vh;
}

.landing-page {
    min-height: 100vh;
    padding: 0.9rem;
    background:
        linear-gradient(180deg, rgba(3, 12, 27, 0.36), rgba(3, 12, 27, 0.58)),
        linear-gradient(118deg, #07192F 0%, #0B2B54 48%, #C8751C 100%);
}

.landing-hero {
    background:
        linear-gradient(90deg, rgba(5, 17, 36, 0.98), rgba(8, 33, 63, 0.94) 50%, rgba(8, 33, 63, 0.74)),
        url('../images/placeholder-admissions.svg') center right 7% / min(44vw, 620px) no-repeat;
    border-radius: 8px;
    color: #FFF;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.landing-hero-full {
    min-height: calc(100vh - 1.8rem);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(1rem, 2.1vw, 2rem);
}

.landing-nav {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.landing-brand {
    color: #FFF;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.landing-brand:hover,
.landing-brand:focus-visible {
    color: #FFF;
}

.landing-brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #F8B45A;
}

.landing-brand-name,
.landing-brand-subtitle {
    display: block;
    line-height: 1.05;
}

.landing-brand-name {
    font-size: 0.98rem;
    font-weight: 800;
}

.landing-brand-subtitle {
    margin-top: 0.16rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-nav-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.landing-nav-link,
.landing-nav-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.62rem 1rem;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.landing-nav-link {
    color: rgba(255, 255, 255, 0.86);
}

.landing-nav-link:hover,
.landing-nav-link:focus-visible {
    color: #FFF;
    background: rgba(255, 255, 255, 0.1);
}

.landing-nav-button {
    color: #06162A;
    background: #F8B45A;
    border: 1px solid #F8B45A;
}

.landing-nav-button:hover,
.landing-nav-button:focus-visible {
    color: #06162A;
    background: #FFD38C;
    border-color: #FFD38C;
    transform: translateY(-1px);
}

.landing-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: clamp(1.4rem, 4vw, 4rem);
}

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

.landing-eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.1rem;
    padding: 0.34rem 0.42rem 0.34rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.landing-eyebrow span:last-child {
    border-radius: 999px;
    padding: 0.24rem 0.48rem;
    background: #F8B45A;
    color: #06162A;
}

.landing-copy h1 {
    max-width: 760px;
    margin: 0;
    color: #FFF;
    font-size: clamp(2.45rem, 6vw, 5.5rem);
    line-height: 0.96;
    font-weight: 800;
    letter-spacing: 0;
}

.landing-lede {
    max-width: 620px;
    margin: 1.2rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.7;
}

.landing-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.7rem;
}

.landing-primary-action,
.landing-secondary-action {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.58rem;
    border-radius: 999px;
    padding: 0.82rem 1.2rem;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.landing-primary-action {
    color: #06162A;
    background: #F8B45A;
    box-shadow: 0 16px 34px rgba(248, 180, 90, 0.24);
}

.landing-primary-action:hover,
.landing-primary-action:focus-visible {
    color: #06162A;
    background: #FFD38C;
    transform: translateY(-2px);
}

.landing-secondary-action {
    color: #FFF;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

.landing-secondary-action:hover,
.landing-secondary-action:focus-visible {
    color: #FFF;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
}

.landing-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    max-width: 560px;
    margin-top: 2rem;
}

.landing-trust-strip div {
    min-width: 0;
    padding: 0.8rem 0.85rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.landing-trust-strip strong,
.landing-trust-strip span {
    display: block;
}

.landing-trust-strip strong {
    color: #F8B45A;
    font-size: 0.84rem;
    line-height: 1.1;
}

.landing-trust-strip span {
    margin-top: 0.24rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.boarding-pass {
    justify-self: end;
    width: min(100%, 520px);
    color: #13233A;
}

.boarding-pass-main,
.aircraft-window,
.landing-service-panel {
    border-radius: 8px;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
}

.boarding-pass-main {
    position: relative;
    padding: clamp(1.05rem, 2vw, 1.4rem);
    background: linear-gradient(180deg, #FFFFFF, #F4F8FC);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.boarding-pass-main::after {
    content: '';
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: -1px;
    border-bottom: 1px dashed #AEBCCB;
}

.boarding-pass-topline,
.boarding-meta-grid span {
    color: #6A7686;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.boarding-pass-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.boarding-pass-topline strong {
    color: var(--hma-primary);
    letter-spacing: 0.06em;
}

.route-display {
    display: grid;
    grid-template-columns: auto minmax(80px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 2.2rem 0 1.6rem;
}

.route-code {
    display: block;
    color: #06162A;
    font-size: clamp(2.6rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: 0;
}

.route-label {
    display: block;
    margin-top: 0.42rem;
    color: #697789;
    font-size: 0.83rem;
    font-weight: 800;
}

.route-display > div:last-child {
    text-align: right;
}

.route-line {
    position: relative;
    height: 2px;
    background: repeating-linear-gradient(90deg, #8EA1B6 0 10px, transparent 10px 18px);
}

.route-line i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #FFF;
    background: var(--hma-primary);
    transform: translate(-50%, -50%) rotate(8deg);
}

.boarding-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.boarding-meta-grid div {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid #DDE6F0;
    border-radius: 8px;
    background: #FFF;
}

.boarding-meta-grid strong {
    display: block;
    margin-top: 0.22rem;
    color: #12233B;
    font-size: 1rem;
    line-height: 1.15;
}

.aircraft-window {
    position: relative;
    height: 172px;
    margin: 0.75rem 2.1rem 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background:
        linear-gradient(180deg, rgba(169, 214, 245, 0.96) 0%, rgba(224, 238, 248, 0.98) 57%, rgba(245, 210, 154, 0.96) 100%);
}

.skyline {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: 0;
    height: 45%;
    background:
        linear-gradient(145deg, transparent 0 45%, rgba(255, 255, 255, 0.65) 45% 48%, transparent 48% 100%),
        linear-gradient(28deg, rgba(255, 255, 255, 0.72) 0 26%, transparent 26% 100%);
}

.aircraft-wing {
    position: absolute;
    right: -16%;
    bottom: 10%;
    width: 76%;
    height: 34%;
    border-radius: 100% 12% 20% 100%;
    background: linear-gradient(180deg, #EEF3F8, #A9B8C8);
    transform: skewX(-20deg) rotate(-7deg);
    box-shadow: inset 0 -9px 14px rgba(13, 35, 60, 0.22);
}

.landing-service-panel {
    display: grid;
    gap: 0.58rem;
    margin-top: 0.75rem;
    padding: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 18, 36, 0.62);
    backdrop-filter: blur(12px);
}

.service-item {
    display: flex;
    align-items: center;
    gap: 0.62rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
    font-weight: 700;
}

.service-item i {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #F8B45A;
    flex-shrink: 0;
}

.landing-footer-note {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: clamp(1.4rem, 4vw, 3rem);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-action-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.landing-action-tile {
    width: 170px;
    min-height: 148px;
    padding: 1rem 0.9rem;
    border-radius: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    text-align: center;
    box-shadow: 0 14px 28px rgba(10, 46, 92, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.landing-action-tile:hover,
.landing-action-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(10, 46, 92, 0.24);
}

.landing-action-register {
    background: linear-gradient(145deg, var(--hma-accent) 0%, #FFB74D 100%);
    color: #FFF;
}

.landing-action-register:hover,
.landing-action-register:focus-visible {
    color: #FFF;
    background: linear-gradient(145deg, #E88508 0%, var(--hma-accent) 100%);
}

.landing-action-login {
    background: linear-gradient(145deg, #FFF 0%, #EEF4FF 100%);
    color: var(--hma-primary);
}

.landing-action-login:hover,
.landing-action-login:focus-visible {
    color: var(--hma-primary);
    background: linear-gradient(145deg, #F6F9FF 0%, #E4ECFF 100%);
}

.landing-action-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    font-size: 1.35rem;
}

.landing-action-login .landing-action-icon {
    background: rgba(10, 46, 92, 0.08);
}

.landing-action-label {
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
}

.landing-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 82px 82px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.44), transparent 72%);
}

.landing-image-panel {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 38px rgba(8, 27, 53, 0.34);
}

.admin-login-fab {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #FFF;
    background: linear-gradient(145deg, rgba(10, 46, 92, 0.96), rgba(27, 79, 156, 0.96));
    box-shadow: 0 10px 24px rgba(10, 46, 92, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-login-fab:hover,
.admin-login-fab:focus-visible {
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(10, 46, 92, 0.42);
    background: linear-gradient(145deg, rgba(27, 79, 156, 0.98), rgba(10, 46, 92, 0.98));
}

.admin-login-fab i {
    font-size: 1rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #C7D5EB;
    padding: 0.28rem 0.46rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--hma-primary) !important;
    color: #FFF !important;
    border: 1px solid var(--hma-primary) !important;
    border-radius: 8px;
}

.hma-notification-popup {
    border-radius: 16px;
}

.hma-notification-popup-title {
    font-weight: 700;
}

.notif-popup-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.notif-popup-item {
    border: 1px solid #D7E2F2;
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.6rem;
    background: #F8FBFF;
}

.notif-popup-item:last-child {
    margin-bottom: 0;
}

.notif-popup-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--hma-primary);
    margin-bottom: 0.2rem;
}

.notif-popup-date {
    font-size: 0.75rem;
    color: var(--hma-muted);
    margin-bottom: 0.35rem;
}

.notif-popup-message {
    font-size: 0.85rem;
    line-height: 1.35;
    color: #1F2D3D;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@media (max-width: 1200px) {
}

@media (max-width: 991px) {
    .portal-shell {
        grid-template-columns: 1fr;
        padding: 0.62rem;
        gap: 0.72rem;
    }

    .portal-sidebar {
        position: static;
        height: auto;
        border-radius: 18px;
        padding: 0.72rem;
    }

    .portal-nav {
        flex-direction: row;
        flex-wrap: wrap;
        overflow: hidden;
        padding-bottom: 0;
        gap: 0.45rem;
    }

    .portal-nav .nav-link {
        flex: 1 1 calc(50% - 0.23rem);
        min-width: 0;
        white-space: normal;
    }

    .portal-nav .logout-nav-link {
        margin-top: 0;
        margin-left: 0;
        flex-basis: 100%;
    }

    .portal-topbar {
        border-radius: 16px;
        position: static;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 0.72rem;
    }

    .portal-topbar h1 {
        font-size: 1.14rem;
    }

    .landing-hero-full {
        min-height: auto;
    }

    .landing-page {
        padding: 0.55rem;
    }

    .landing-hero {
        background:
            linear-gradient(180deg, rgba(5, 17, 36, 0.98), rgba(8, 33, 63, 0.94)),
            url('../images/placeholder-admissions.svg') top right / 420px no-repeat;
    }

    .landing-hero-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .boarding-pass {
        justify-self: stretch;
        width: 100%;
    }

    .landing-copy h1 {
        max-width: 720px;
    }

    .landing-action-grid {
        justify-content: flex-start;
    }

    .landing-action-tile {
        width: calc(50% - 0.5rem);
        min-width: 150px;
        flex: 1 1 150px;
    }

    .compact-metric-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-login-fab {
        width: 42px;
        height: 42px;
        left: 0.8rem;
        bottom: 0.8rem;
    }

    .col-checklist-form .btn {
        min-height: 42px;
    }
}

@media (max-width: 768px) {
    .card .card-body {
        padding: 0.82rem 0.84rem;
    }

    .table thead th {
        font-size: 0.73rem;
    }

    .table tbody td {
        font-size: 0.86rem;
    }

    .documents-table th:nth-child(2),
    .documents-table td:nth-child(2) {
        width: auto;
    }

    .user-badge {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .col-checklist-item {
        padding: 0.9rem !important;
    }

    .col-checklist-title {
        font-size: 0.96rem;
    }

    .col-checklist-description {
        font-size: 0.9rem;
    }

    .col-checklist-latest-actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }

    .col-checklist-item-head {
        flex-wrap: wrap !important;
    }

    .col-checklist-status {
        min-width: 92px;
    }

    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .landing-nav-link,
    .landing-nav-button {
        flex: 1 1 0;
    }

    .landing-action-row {
        flex-direction: column;
    }

    .landing-primary-action,
    .landing-secondary-action {
        width: 100%;
    }

    .landing-trust-strip {
        grid-template-columns: 1fr;
    }

    .route-display {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.4rem 0 1.2rem;
    }

    .route-line {
        width: 100%;
    }

    .route-display > div:last-child {
        text-align: left;
    }

    .boarding-meta-grid {
        grid-template-columns: 1fr;
    }

    .aircraft-window {
        height: 140px;
        margin-right: 0;
        margin-left: 0;
    }

    .landing-footer-note {
        flex-direction: column;
        gap: 0.35rem;
    }
}

@media (max-width: 575px) {
    .compact-metric-row,
    .admin-kpi-row {
        grid-template-columns: 1fr;
    }

    .landing-action-grid {
        flex-direction: column;
    }

    .landing-action-tile {
        width: 100%;
        min-height: 124px;
    }

    .landing-hero-full {
        padding: 0.85rem;
    }

    .landing-copy h1 {
        font-size: 2.35rem;
        line-height: 1;
    }

    .landing-lede {
        font-size: 0.96rem;
        line-height: 1.55;
    }

    .landing-eyebrow {
        max-width: 100%;
        flex-wrap: wrap;
        border-radius: 8px;
    }

    .landing-brand-mark {
        width: 40px;
        height: 40px;
    }

    .route-code {
        font-size: 2.5rem;
    }

    .boarding-pass-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* Branded authenticated portal system */
body:has(.portal-shell) {
    background: #F2F5F8;
}

.portal-shell {
    grid-template-columns: 252px minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #F2F5F8;
}

.portal-sidebar {
    top: 0;
    height: 100vh;
    padding: 1.15rem 1rem 1rem;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(255,255,255,.045), transparent 24%),
        #17194F;
    box-shadow: 14px 0 34px rgba(16, 18, 60, 0.12);
}

.brand-block {
    gap: .7rem;
    margin-bottom: 1.35rem;
    padding: .7rem;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.07);
}

.brand-crest {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #FFF;
}

.brand-crest img {
    width: 44px;
    height: 42px;
    object-fit: contain;
}

.brand-block h5 {
    font-size: .9rem;
    letter-spacing: 0;
}

.brand-block small {
    margin-top: .12rem;
    font-size: .66rem;
    color: rgba(255,255,255,.66);
}

.portal-nav-label {
    padding: 0 .6rem .55rem;
    color: rgba(255,255,255,.42);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-nav { gap: .28rem; }

.portal-nav .nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: .62rem .7rem;
    border-radius: 6px;
    color: rgba(255,255,255,.7);
    font-size: .79rem;
    font-weight: 700;
}

.portal-nav .nav-link i {
    width: 26px;
    margin-right: .3rem;
    color: #7FC9F0;
}

.portal-nav .nav-link:hover {
    transform: none;
    color: #FFF;
    background: rgba(255,255,255,.08);
    border-color: transparent;
}

.portal-nav .nav-link.active {
    transform: none;
    color: #17194F;
    background: #FFF;
    border-color: #FFF;
    box-shadow: 0 10px 24px rgba(5, 8, 40, .2);
}

.portal-nav .nav-link.active i { color: #0079AD; }

.portal-nav .nav-link.active::after {
    content: '';
    position: absolute;
    right: .55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFB600;
}

.portal-nav .logout-nav-link {
    margin-top: auto;
    color: rgba(255,255,255,.64);
    background: transparent;
    border-color: rgba(255,255,255,.12);
}

.portal-nav .logout-nav-link:hover,
.portal-nav .logout-nav-link:focus-visible {
    color: #17194F;
    background: #FFB600;
    border-color: #FFB600;
}

.portal-nav .logout-nav-link:hover i { color: #17194F; }

.portal-sidebar-footer {
    display: grid;
    gap: .25rem;
    margin-top: .8rem;
    padding: .75rem .65rem 0;
    border-top: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.72);
    font-size: .68rem;
    font-weight: 700;
}

.portal-sidebar-footer i { margin-right: .3rem; color: #67D9A1; }
.portal-sidebar-footer small { color: rgba(255,255,255,.38); font-size: .58rem; line-height: 1.4; }

.portal-main { padding: 0; }

.portal-topbar {
    top: 0;
    min-height: 88px;
    padding: 1rem clamp(1rem, 2.5vw, 2rem);
    border: 0;
    border-bottom: 1px solid #DDE4EC;
    border-radius: 0;
    color: #071528;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 28px rgba(7,21,40,.055);
    backdrop-filter: blur(14px);
}

.portal-title-block { min-width: 0; }

.portal-page-kicker {
    display: block;
    margin-bottom: .15rem;
    color: #0079AD;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.portal-topbar h1 {
    color: #071528;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.portal-topbar small { color: #758296 !important; font-size: .72rem; }

.portal-topbar-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
}

.portal-icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid #DCE4ED;
    border-radius: 7px;
    color: #363791;
    background: #FFF;
    text-decoration: none;
}

.portal-icon-button:hover,
.portal-icon-button:focus-visible {
    color: #FFF;
    border-color: #363791;
    background: #363791;
}

.user-badge {
    max-width: 250px;
    overflow: hidden;
    padding: .55rem .72rem;
    border: 1px solid #DCE4ED;
    border-radius: 7px;
    color: #344255;
    background: #F7F9FB;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-badge i { margin-right: .28rem; color: #0079AD; }

.verify-badge {
    border-radius: 6px;
    border: 1px solid transparent;
}
.verify-badge.verified { color: #14724A; background: #E9F8F0; border-color: #BFE8D2; }
.verify-badge.unverified { color: #8A5900; background: #FFF5D9; border-color: #F1D996; }

.portal-content {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: clamp(1rem, 2vw, 1.7rem);
}

.portal-content > .card,
.portal-content > .row,
.portal-content > form,
.portal-content > .alert { animation: fadeSlideIn .28s ease; }

.portal-content .card {
    border-color: #DBE3EB;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(7,21,40,.06);
}

.portal-content .card .card-body { padding: 1.05rem 1.1rem; }

.portal-content .card h5,
.portal-content .card h6 {
    color: #15233A;
    font-weight: 800;
    letter-spacing: 0;
}

.portal-content .text-primary { color: #0079AD !important; }

.portal-content .btn-primary,
.auth-shell .btn-primary {
    color: #FFF;
    background: #363791;
    border-color: #363791;
    box-shadow: 0 8px 18px rgba(54,55,145,.17);
}

.portal-content .btn-primary:hover,
.portal-content .btn-primary:focus-visible,
.auth-shell .btn-primary:hover,
.auth-shell .btn-primary:focus-visible {
    background: #282A77;
    border-color: #282A77;
}

.portal-content .table thead th {
    padding: .68rem .72rem;
    border-bottom-color: #D9E1EA;
    color: #68768A;
    background: #F7F9FB;
    font-size: .65rem;
    letter-spacing: .08em;
}

.portal-content .table tbody td {
    padding: .72rem;
    border-color: #E7ECF1;
    color: #334155;
    font-size: .82rem;
}

.portal-content .table tbody tr:hover { background: #F6FAFC; }

.compact-metric-row { gap: .7rem; }
.compact-metric-item {
    position: relative;
    min-height: 88px;
    padding: .8rem .85rem .75rem 1rem;
    overflow: hidden;
    border: 1px solid #DCE4EC;
    border-radius: 7px;
    background: #FFF;
}
.compact-metric-item::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #00A9E0;
}
.compact-metric-label { color: #748196; font-size: .65rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.compact-metric-value { margin-top: .45rem; color: #17194F; font-size: 1.12rem; }

.admin-kpi-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-kpi-item {
    min-height: 104px;
    align-items: flex-end;
    padding: 1rem;
    border: 1px solid #DCE4EC;
    border-left: 1px solid #DCE4EC;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0 10px 24px rgba(7,21,40,.055);
}
.admin-kpi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #0079AD;
}
.admin-kpi-item:nth-child(2)::before { background: #2CAA70; }
.admin-kpi-item:nth-child(3)::before { background: #FFB600; }
.admin-kpi-item:nth-child(4)::before { background: #363791; }
.admin-kpi-label { max-width: 120px; color: #5E6C80; font-size: .7rem; }
.admin-kpi-value { color: #17194F; font-size: 2rem; }

.admin-progress-item {
    border-radius: 7px;
    background: #FAFBFC;
}

.progress { border-radius: 999px; background: #E8EDF2; }
.progress-bar { background: linear-gradient(90deg, #363791, #0079AD); }

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 7px;
    border-color: #CBD6E2;
    background-color: #FFF;
}

.form-control:focus,
.form-select:focus {
    border-color: #0079AD;
    box-shadow: 0 0 0 .2rem rgba(0,121,173,.12);
}

.modal-content { border: 0; border-radius: 8px; box-shadow: 0 26px 70px rgba(7,21,40,.24); }

.portal-menu-toggle,
.portal-sidebar-backdrop { display: none; }

/* Branded public authentication */
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr);
    background: #F4F7FA;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    padding: clamp(1.5rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    color: #FFF;
    background:
        linear-gradient(180deg, rgba(23,25,79,.2), rgba(23,25,79,.9)),
        url('../images/hma-airline-hero.png') center / cover no-repeat;
}

.auth-brand { display: flex; align-items: center; gap: .75rem; color: #FFF; text-decoration: none; }
.auth-brand img { width: 64px; height: 58px; padding: .2rem; object-fit: contain; border-radius: 6px; background: #FFF; }
.auth-brand strong,
.auth-brand span { display: block; }
.auth-brand strong { font-size: 1rem; }
.auth-brand span { color: rgba(255,255,255,.68); font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; }
.auth-visual-copy { max-width: 560px; }
.auth-visual-copy span { color: #8DDBFF; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.auth-visual-copy h1 { margin: .8rem 0; color: #FFF; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .95; letter-spacing: 0; }
.auth-visual-copy p { max-width: 480px; margin: 0; color: rgba(255,255,255,.72); }
.auth-assurance { display: flex; gap: 1rem; color: rgba(255,255,255,.62); font-size: .68rem; font-weight: 700; }
.auth-assurance i { color: #65D79C; margin-right: .25rem; }

.auth-form-panel { display: grid; place-items: center; padding: clamp(1.2rem, 5vw, 5rem); }
.auth-form-wrap { width: min(100%, 480px); }
.auth-form-eyebrow { color: #0079AD; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-form-wrap h2 { margin: .45rem 0 .5rem; color: #071528; font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: 0; }
.auth-form-intro { margin-bottom: 1.7rem; color: #6E7B8D; font-size: .9rem; }
.auth-form-wrap .form-label { font-size: .75rem; }
.auth-form-wrap .btn { min-height: 48px; }
.auth-form-links { margin-top: 1.25rem; text-align: center; color: #697688; font-size: .82rem; }
.auth-form-links a { color: #363791; font-weight: 800; }

@media (max-width: 991px) {
    body:has(.portal-shell) { overflow-x: hidden; }
    .portal-shell { display: block; }
    .portal-sidebar {
        position: fixed;
        z-index: 1045;
        top: 0;
        left: 0;
        width: min(290px, 86vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform .22s ease;
    }
    .portal-menu-open .portal-sidebar { transform: translateX(0); }
    .portal-menu-toggle {
        position: fixed;
        z-index: 1060;
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        display: grid;
        place-items: center;
        border: 1px solid #DCE4ED;
        border-radius: 7px;
        color: #363791;
        background: #FFF;
        box-shadow: 0 8px 22px rgba(7,21,40,.12);
    }
    .portal-sidebar-backdrop {
        position: fixed;
        z-index: 1040;
        inset: 0;
        border: 0;
        background: rgba(7,21,40,.48);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    .portal-menu-open .portal-sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
    .portal-nav { flex-direction: column; flex-wrap: nowrap; overflow-y: auto; }
    .portal-nav .nav-link { flex: none; white-space: nowrap; }
    .portal-nav .logout-nav-link { flex-basis: auto; }
    .portal-topbar { position: sticky; padding-right: 4.4rem; }
    .admin-kpi-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .portal-topbar { min-height: 78px; align-items: center; }
    .portal-topbar h1 { max-width: 52vw; overflow: hidden; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
    .portal-topbar small { display: none; }
    .portal-page-kicker { font-size: .56rem; }
    .portal-topbar-actions { margin-left: auto; }
    .portal-topbar-actions .verify-badge,
    .portal-topbar-actions .user-badge { display: none; }
    .portal-content { padding: .85rem; }
    .compact-metric-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 280px; padding: 1.2rem; }
    .auth-visual-copy h1 { font-size: 2.4rem; }
    .auth-assurance { flex-wrap: wrap; }
    .auth-form-panel { padding: 2rem 1rem; }
}

@media (max-width: 480px) {
    .portal-icon-button { width: 36px; height: 36px; }
    .compact-metric-row,
    .admin-kpi-row { grid-template-columns: 1fr; }
    .admin-kpi-item { min-height: 88px; }
    .auth-visual { min-height: 240px; }
    .auth-visual-copy p { display: none; }
}

/* Premium public admissions experience */
.landing-page {
    --landing-ink: #071528;
    --landing-blue: #363791;
    --landing-sky: #DDF3FA;
    --landing-gold: #FFB600;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    background: #F6F9FB;
    color: var(--landing-ink);
}

.landing-page .landing-hero {
    min-height: min(850px, 92vh);
    padding: clamp(1rem, 2vw, 2rem) clamp(1rem, 4.5vw, 5rem) clamp(2rem, 5vw, 4.5rem);
    border: 0;
    border-radius: 0 0 28px 28px;
    box-shadow: none;
    color: var(--landing-ink);
    background:
        linear-gradient(90deg, rgba(248, 251, 252, 0.98) 0%, rgba(248, 251, 252, 0.94) 35%, rgba(248, 251, 252, 0.48) 57%, rgba(248, 251, 252, 0.04) 78%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(7, 21, 40, 0.08)),
        url('../images/hma-airline-hero.png') center right / cover no-repeat;
}

.landing-page .landing-hero::after {
    inset: auto 0 0;
    height: 34%;
    background: linear-gradient(180deg, transparent, rgba(7, 21, 40, 0.16));
    mask-image: none;
}

.landing-page .landing-nav {
    padding: 0 0 clamp(3.2rem, 8vh, 7rem);
    color: var(--landing-ink);
}

.landing-page .landing-brand { color: var(--landing-ink); }
.landing-page .landing-brand:hover,
.landing-page .landing-brand:focus-visible { color: var(--landing-ink); }

.landing-page .landing-brand-mark {
    width: 68px;
    height: 58px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--landing-blue);
    box-shadow: 0 9px 22px rgba(54, 55, 145, 0.12);
}

.landing-page .landing-brand-mark img {
    display: block;
    width: 62px;
    height: 50px;
    object-fit: contain;
}

.landing-page .landing-brand-name {
    font-size: 1rem;
    color: var(--landing-ink);
}

.landing-page .landing-brand-subtitle {
    color: #657387;
    letter-spacing: 0.08em;
}

.landing-proof {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 0.65rem 1.1rem;
    border: 1px solid rgba(10, 46, 92, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 30px rgba(28, 57, 89, 0.08);
    backdrop-filter: blur(14px);
    color: #637086;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.landing-proof strong { color: var(--landing-blue); }

.landing-page .landing-nav-link {
    color: var(--landing-ink);
    padding-inline: 0.7rem;
}

.landing-page .landing-nav-link:hover,
.landing-page .landing-nav-link:focus-visible {
    color: var(--landing-blue);
    background: rgba(255, 255, 255, 0.64);
}

.landing-page .landing-nav-button {
    gap: 0.55rem;
    padding-inline: 1.15rem;
    color: #15152F;
    background: var(--landing-gold);
    border-color: var(--landing-gold);
    box-shadow: 0 10px 24px rgba(255, 182, 0, 0.24);
}

.landing-page .landing-nav-button:hover,
.landing-page .landing-nav-button:focus-visible {
    color: #15152F;
    background: #FFC633;
    border-color: #FFC633;
}

.landing-hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 700px) minmax(300px, 430px);
    justify-content: space-between;
    align-items: end;
    gap: clamp(2rem, 6vw, 7rem);
}

.landing-page .landing-copy { max-width: 690px; }

.landing-page .landing-eyebrow {
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.45rem 0.55rem 0.45rem 0.7rem;
    border: 1px solid rgba(10, 46, 92, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: #4D5E73;
    box-shadow: 0 8px 24px rgba(10, 46, 92, 0.06);
    letter-spacing: 0.08em;
}

.landing-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #20A266;
    box-shadow: 0 0 0 4px rgba(32, 162, 102, 0.12);
}

.landing-page .landing-eyebrow strong {
    padding: 0.23rem 0.45rem;
    border-radius: 999px;
    background: var(--landing-blue);
    color: #FFF;
}

.landing-page .landing-copy h1 {
    max-width: 680px;
    color: var(--landing-ink);
    font-size: clamp(3.7rem, 7.4vw, 7.8rem);
    line-height: 0.82;
    font-weight: 800;
}

.landing-page .landing-copy h1 span {
    display: block;
    margin-top: 0.16em;
    color: #0079AD;
}

.landing-page .landing-lede {
    max-width: 590px;
    margin-top: 1.55rem;
    color: #4C5A6C;
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    line-height: 1.65;
}

.landing-page .landing-action-row { margin-top: 1.65rem; }

.landing-page .landing-primary-action,
.landing-page .landing-secondary-action {
    min-height: 56px;
    border-radius: 999px;
}

.landing-page .landing-primary-action {
    gap: 1rem;
    padding: 0.45rem 0.48rem 0.45rem 1.25rem;
    color: #FFF;
    background: var(--landing-blue);
    box-shadow: 0 15px 32px rgba(54, 55, 145, 0.25);
}

.landing-page .landing-primary-action span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--landing-blue);
    background: #FFF;
}

.landing-page .landing-primary-action:hover,
.landing-page .landing-primary-action:focus-visible {
    color: #FFF;
    background: #154C83;
}

.landing-page .landing-secondary-action {
    color: var(--landing-ink);
    border-color: rgba(10, 46, 92, 0.16);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
}

.landing-page .landing-secondary-action:hover,
.landing-page .landing-secondary-action:focus-visible {
    color: var(--landing-blue);
    background: #FFF;
}

.landing-trust-line {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    max-width: 570px;
    margin-top: 1.4rem;
}

.trust-avatars { display: flex; padding-left: 0.35rem; }
.trust-avatars i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-left: -0.35rem;
    border: 3px solid #F7FAFB;
    border-radius: 50%;
    background: #DCEBF4;
    color: var(--landing-blue);
    font-size: 0.78rem;
}

.landing-trust-line p {
    margin: 0;
    color: #697688;
    font-size: 0.78rem;
    line-height: 1.4;
}
.landing-trust-line strong { color: var(--landing-ink); }

.admissions-card {
    align-self: end;
    margin-bottom: 0.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 8px;
    color: #FFF;
    background: rgba(7, 21, 40, 0.88);
    box-shadow: 0 30px 70px rgba(7, 21, 40, 0.32);
    backdrop-filter: blur(18px);
}

.admissions-card-head,
.admissions-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admissions-card-head { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.admissions-card-foot { border-top: 1px dashed rgba(255, 255, 255, 0.2); }

.live-status { color: #A6F1C8; }
.live-status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 0.3rem;
    border-radius: 50%;
    background: #4DE18F;
}

.admissions-route {
    display: grid;
    grid-template-columns: auto minmax(70px, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 1.7rem 1rem 1.3rem;
}

.admissions-route > div:last-child { text-align: right; }
.admissions-route strong {
    display: block;
    color: #FFF;
    font-size: clamp(2.3rem, 4vw, 3.8rem);
    line-height: 0.9;
}
.admissions-route span { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; }

.admissions-route-line {
    position: relative;
    height: 1px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.45) 0 8px, transparent 8px 14px);
}
.admissions-route-line i {
    position: absolute;
    top: 50%;
    left: 50%;
    color: var(--landing-gold);
    transform: translate(-50%, -50%) rotate(5deg);
}

.admissions-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin: 0 1rem 1rem;
    overflow: hidden;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
}
.admissions-meta div { padding: 0.72rem; background: rgba(255, 255, 255, 0.06); }
.admissions-meta span,
.admissions-meta strong { display: block; }
.admissions-meta span { color: rgba(255,255,255,.52); font-size: .64rem; text-transform: uppercase; }
.admissions-meta strong { margin-top: .18rem; color: #FFF; font-size: .84rem; }

.landing-scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    transform: translateX(-50%);
}

.journey-band {
    position: relative;
    z-index: 5;
    width: min(1460px, calc(100% - 2rem));
    margin: -1rem auto 0;
    padding: clamp(1.5rem, 3vw, 2.6rem);
    border-radius: 8px;
    color: #FFF;
    background: #071528;
    box-shadow: 0 30px 70px rgba(7, 21, 40, 0.2);
}

.journey-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.3rem;
}
.journey-intro > span { color: #79BEE9; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.journey-intro h2 { margin: 0; color: #FFF; font-size: clamp(1.5rem, 3vw, 2.5rem); letter-spacing: 0; }

.journey-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.journey-step {
    position: relative;
    min-height: 178px;
    padding: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    background: rgba(255,255,255,.055);
}
.journey-step-featured { background: #0079AD; }
.journey-number { position: absolute; top: .85rem; right: .9rem; color: rgba(255,255,255,.42); font-weight: 800; }
.journey-step > i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; color: #071528; background: var(--landing-gold); }
.journey-step h3 { margin: 1.2rem 0 .3rem; color: #FFF; font-size: 1rem; }
.journey-step p { margin: 0; color: rgba(255,255,255,.62); font-size: .78rem; }

.landing-page .landing-footer-note {
    padding: 1.6rem max(1rem, 4.5vw) 2rem;
    color: #718094;
    background: transparent;
}

@media (max-width: 1100px) {
    .landing-proof { display: none; }
    .landing-page .landing-hero { min-height: auto; background-position: 62% center; }
    .landing-hero-content { grid-template-columns: minmax(0, 1fr) minmax(290px, 380px); }
    .landing-page .landing-copy h1 { font-size: clamp(3.7rem, 8vw, 6rem); }
}

@media (max-width: 820px) {
    .landing-page .landing-hero {
        padding: 1rem 1rem 2rem;
        border-radius: 0 0 18px 18px;
        background:
            linear-gradient(180deg, rgba(248,251,252,.97) 0%, rgba(248,251,252,.91) 47%, rgba(7,21,40,.16) 100%),
            url('../images/hma-airline-hero.png') 63% center / cover no-repeat;
    }
    .landing-page .landing-nav { flex-direction: row; align-items: center; padding-bottom: 3.5rem; }
    .landing-page .landing-nav-actions { width: auto; }
    .landing-page .landing-nav-link { display: none; }
    .landing-hero-content { grid-template-columns: 1fr; }
    .landing-page .landing-copy { max-width: 600px; }
    .admissions-card { width: min(100%, 480px); margin-top: 2rem; }
    .landing-scroll-cue { display: none; }
    .journey-band { margin-top: .75rem; }
    .journey-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
    .landing-page .landing-nav-button { min-height: 40px; flex: none; padding: .55rem .8rem; font-size: .76rem; }
    .landing-page .landing-brand-mark { width: 40px; height: 40px; }
    .landing-page .landing-brand-mark img { width: 38px; height: 34px; }
    .landing-page .landing-brand-name { font-size: .88rem; }
    .landing-page .landing-brand-subtitle { font-size: .61rem; }
    .landing-page .landing-copy h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
    .landing-page .landing-lede { font-size: .94rem; }
    .landing-page .landing-action-row { flex-direction: column; }
    .landing-page .landing-primary-action,
    .landing-page .landing-secondary-action { width: 100%; }
    .landing-trust-line { align-items: flex-start; }
    .admissions-route strong { font-size: 2.4rem; }
    .journey-intro { align-items: flex-start; flex-direction: column; }
    .journey-steps { grid-template-columns: 1fr; }
    .journey-step { min-height: 150px; }
}

/* --- Simple HTML editor for COL Request email body (visual/code toggle) --- */
.html-editor-visual{ min-height: 320px; max-height: 560px; overflow-y: auto; background:#fff; }
.html-editor-visual:focus{ outline: 0; box-shadow: 0 0 0 .2rem rgba(13,110,253,.20); }
.html-editor-visual > :first-child{ margin-top: 0; }
.html-editor-toolbar .btn{ line-height: 1; }

/* Settings module helpers */
.settings-logo-preview{ height: 48px; width: auto; }
.announcement-banner{ margin-bottom: 1rem; }

.catalogue-scroll{ max-height: 320px; overflow: auto; }

.dash-chart-wrap{ position: relative; height: 240px; }

.letter-wm-field{ max-width: 520px; }
.letter-asset-preview{ height: 60px; overflow: hidden; }
.letter-asset-img{ max-height: 44px; max-width: 130px; width: auto; object-fit: contain; }
