/* Portal UI (SHAAC-style layout system) for SEMC Job Portal */
.portal-ui {
    --portal-navy: #061428;
    --portal-navy-mid: #0a1f3d;
    --portal-cyan: #46c8f4;
    --portal-gold: #ffcb0c;
    --portal-surface: #ffffff;
    --portal-border: #e2e8f0;
    --portal-muted: #64748b;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
}

.portal-sidebar .btn-primary {
    border: 0 !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    margin-bottom: 8px !important;
    padding: 11px 10px !important;
    background: linear-gradient(135deg, var(--portal-navy), var(--portal-navy-mid)) !important;
    box-shadow: 0 6px 16px rgba(6, 20, 40, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-sidebar .btn-primary:hover,
.portal-sidebar .btn-primary:focus {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0a1f3d, #163a66) !important;
    box-shadow: 0 10px 22px rgba(6, 20, 40, 0.24);
}

.portal-sidebar .active_menu {
    background: linear-gradient(135deg, #12325c, var(--portal-cyan)) !important;
    color: var(--portal-navy) !important;
}

/* Site nav — desktop stack / mobile horizontal slide */
.portal-mobile-nav-shell {
    width: 100%;
}

.portal-nav-slide {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.portal-nav-pill,
.portal-nav-pill--button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 10px;
    border: 0;
    border-radius: 12px;
    font-size: 13px !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--portal-navy), var(--portal-navy-mid));
    box-shadow: 0 6px 16px rgba(6, 20, 40, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor: pointer;
}

.portal-nav-pill:hover,
.portal-nav-pill--button:hover {
    transform: translateY(-1px);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(6, 20, 40, 0.24);
}

.portal-nav-pill.is-active {
    background: linear-gradient(135deg, #12325c, var(--portal-cyan)) !important;
    color: var(--portal-navy) !important;
}

.portal-nav-pill-form {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.portal-nav-pill-form .portal-nav-pill--button {
    width: 100%;
}

.portal-home {
    padding: 8px 6px 32px;
}

.portal-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 28px 24px;
    margin-bottom: 16px;
    color: #fff;
    background: linear-gradient(125deg, var(--portal-navy) 0%, var(--portal-navy-mid) 55%, #12325c 100%);
    box-shadow: 0 16px 36px rgba(6, 20, 40, 0.28);
}

.portal-hero::before,
.portal-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.portal-hero::before {
    width: 220px;
    height: 220px;
    background: rgba(70, 200, 244, 0.14);
    top: -90px;
    right: -30px;
}

.portal-hero::after {
    width: 120px;
    height: 120px;
    background: rgba(255, 203, 12, 0.12);
    bottom: -40px;
    left: 12%;
}

.portal-hero-inner {
    position: relative;
    z-index: 1;
}

.portal-hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 203, 12, 0.18);
    color: var(--portal-gold);
    margin-bottom: 10px;
}

.portal-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.35rem, 2.8vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

.portal-hero p {
    margin: 0;
    max-width: 720px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.portal-hero-meta {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-cyan);
}

/* Home: hide duplicate site header; hero carries logo + title */
body.portal-page-home .topHeader,
body.portal-page-home .portal-header-spacer {
    display: none !important;
}

/* Home uses notice below hero, not the global mobile strip */
body.portal-page-home .mobile_notice_slide {
    display: none !important;
}

body.portal-page-home .portal-home-notice {
    display: flex;
    margin-bottom: 14px;
}

/* Home: menu lives under hero + notice, not above the hero card */
.portal-home-menu {
    display: none;
    margin-bottom: 14px;
}

@media (min-width: 769px) {
    body.portal-page-home .portal-hero-copy h1 {
        white-space: nowrap;
        font-size: clamp(0.78rem, 1.05vw, 1.22rem);
        letter-spacing: 0.01em;
        line-height: 1.2;
    }
}

@media (max-width: 768px) {
    body.portal-page-home .portal-hero-motto-bn {
        display: none;
    }

    /* Registration flow: focus on the form, not site chrome */
    body.portal-page-registration .topHeader,
    body.portal-page-registration .portal-header-spacer,
    body.portal-page-registration .mobile_notice_slide,
    body.portal-page-registration .portal-sidebar {
        display: none !important;
    }

    body.portal-page-registration .mainBody {
        padding-top: 8px;
    }

    body.portal-page-registration .mainBody > .row > .portal-home {
        order: 1;
    }
}

body.portal-page-login .topHeader,
body.portal-page-login .portal-header-spacer,
body.portal-page-login .portal-sidebar,
body.portal-page-login .mobile_notice_slide,
body.portal-page-login .desktop_notice_slide {
    display: none !important;
}

body.portal-page-login .mainBody {
    padding-top: 16px;
    padding-bottom: 24px;
}

body.portal-page-login .mainBody > .row {
    justify-content: center;
}

.portal-login-col {
    max-width: 520px;
    margin: 0 auto;
}

.portal-login-wrap {
    width: 100%;
}

.portal-login-hero {
    text-align: center;
}

.portal-login-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 12px;
    display: block;
}

.portal-login-forgot {
    text-align: right;
    margin: -4px 0 12px;
}

.portal-login-forgot a {
    color: var(--portal-primary, #0d4f8b);
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
}

.portal-login-forgot a:hover {
    text-decoration: underline;
}

.portal-reg-actions--stack {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.portal-btn-block {
    width: 100%;
    justify-content: center;
}

.portal-alert--success {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #065f46;
}

body.portal-page-home {
    background: #e3edf5 !important;
    background-image:
        radial-gradient(ellipse 90% 55% at 50% -8%, rgba(70, 200, 244, 0.22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(255, 203, 12, 0.1), transparent 50%),
        linear-gradient(180deg, #d8e6f2 0%, #eef4f8 45%, #e5eef6 100%) !important;
}

body.portal-page-home .mainBody {
    padding-top: 10px;
}

body.portal-page-home .portal-card,
body.portal-page-home .portal-notice {
    box-shadow:
        0 12px 28px rgba(6, 20, 40, 0.1),
        0 0 0 1px rgba(6, 20, 40, 0.04);
}

body.portal-page-home .portal-tile {
    background: #fff;
    box-shadow: 0 8px 22px rgba(6, 20, 40, 0.08);
}

body.portal-page-home .portal-tile:hover {
    box-shadow: 0 12px 26px rgba(6, 20, 40, 0.12);
}

.portal-hero--home {
    margin-top: 0;
}

.portal-hero-inner--brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.portal-hero-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    border: 2px solid rgba(255, 203, 12, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    background: #fff;
    padding: 4px;
}

.portal-hero-copy {
    flex: 1;
    min-width: 0;
}

.portal-hero-motto {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.portal-hero-lead {
    margin: 10px 0 0;
    max-width: 720px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--portal-cyan);
}

.portal-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-left: 4px solid var(--portal-cyan);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(6, 20, 40, 0.06);
}

.portal-notice-label {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-navy);
    background: linear-gradient(90deg, #e6fbff, #fff8e1);
    padding: 8px 12px;
    border-radius: 10px;
}

.portal-notice-track {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.portal-notice-track marquee,
.portal-notice-track .portal-notice-scroll {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.portal-notice-track a {
    color: #0f172a;
    text-decoration: none;
}

.portal-notice-track a:hover {
    color: #0369a1;
    text-decoration: underline;
}

/* One notice bar: top strip on mobile, in-content on desktop */
.mobile_notice_slide {
    display: none;
}

@media (min-width: 769px) {
    .mobile_notice_slide {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .mobile_notice_slide {
        display: block !important;
        padding: 0 6px;
        margin-bottom: 4px;
    }

    .desktop_notice_slide {
        display: none !important;
    }

    body.portal-page-home .portal-home-notice {
        display: flex !important;
    }

    body.portal-page-home .portal-sidebar {
        display: none !important;
    }

    body.portal-page-home .portal-home-menu {
        display: block;
    }

    body.portal-page-home .portal-hero-inner--brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    body.portal-page-home .portal-hero-logo {
        width: 58px;
        height: 58px;
    }

    body.portal-page-home .portal-hero-copy h1 {
        font-size: clamp(1rem, 4.5vw, 1.25rem);
    }

    body.portal-page-home .portal-hero-meta {
        justify-content: center;
    }

    body.portal-page-home .portal-hero--home {
        margin-bottom: 10px;
        border-radius: 18px;
    }
}

.portal-card {
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(6, 20, 40, 0.07);
    margin-bottom: 16px;
    overflow: hidden;
}

.portal-card-head {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-navy);
    background: linear-gradient(90deg, #e6fbff, #fff8e1);
    border-bottom: 1px solid var(--portal-border);
}

.portal-card-body {
    padding: 18px;
}

.portal-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 180px;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 15px !important;
    font-weight: 800 !important;
    border: 0 !important;
    text-decoration: none !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-btn-primary {
    color: #fff !important;
    background: linear-gradient(135deg, var(--portal-navy), var(--portal-navy-mid)) !important;
    box-shadow: 0 10px 22px rgba(6, 20, 40, 0.22);
}

.portal-btn-accent {
    color: var(--portal-navy) !important;
    background: linear-gradient(135deg, var(--portal-gold), #ffe066) !important;
    box-shadow: 0 10px 22px rgba(255, 203, 12, 0.28);
}

.portal-btn-closed {
    cursor: not-allowed;
    color: #64748b !important;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9) !important;
    box-shadow: inset 0 0 0 1px #cbd5e1;
    opacity: 0.95;
}

.portal-registration-closed {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(70, 200, 244, 0.35);
    background: linear-gradient(135deg, rgba(6, 20, 40, 0.04), rgba(70, 200, 244, 0.08));
}

.portal-registration-closed__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--portal-navy);
    color: var(--portal-gold);
    font-size: 20px;
}

.portal-registration-closed strong {
    display: block;
    font-size: 1.05rem;
    color: var(--portal-navy);
    margin-bottom: 6px;
}

.portal-registration-closed p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--portal-muted);
}

.portal-registration-closed__bn {
    margin-top: 8px !important;
    color: #475569 !important;
    font-weight: 500;
}

.portal-btn-outline {
    color: var(--portal-navy) !important;
    background: #fff !important;
    border: 2px solid var(--portal-border) !important;
    box-shadow: none;
}

.portal-btn:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.portal-tile {
    display: block;
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid var(--portal-border);
    background: #f8fafc;
    text-decoration: none !important;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.portal-tile:hover {
    border-color: var(--portal-cyan);
    box-shadow: 0 12px 24px rgba(6, 20, 40, 0.08);
    transform: translateY(-2px);
}

.portal-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, rgba(70, 200, 244, 0.2), rgba(255, 203, 12, 0.15));
    color: var(--portal-navy);
}

.portal-tile h5 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--portal-navy);
}

.portal-tile p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--portal-muted);
    line-height: 1.45;
}

.portal-dates {
    width: 100%;
    margin: 0;
}

.portal-dates tr td {
    padding: 12px 14px !important;
    vertical-align: middle !important;
    border-color: var(--portal-border) !important;
    font-size: 13px;
}

.portal-dates tr td:first-child {
    width: 38%;
    text-align: right;
    font-weight: 700;
    color: var(--portal-navy);
    background: #f8fafc;
}

.portal-dates tr td:nth-child(2) {
    width: 24px;
    text-align: center;
    font-weight: 800;
    color: var(--portal-cyan);
}

.portal-help {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    line-height: 1.6;
}

.portal-circular-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--portal-border);
}

.portal-circular-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-circular-item:first-child {
    padding-top: 0;
}

.portal-circular-title {
    font-weight: 700;
    color: var(--portal-navy);
    font-size: 14px;
}

@media (max-width: 767px) {
    .portal-grid:not(.portal-grid--tiles) {
        grid-template-columns: 1fr;
    }

    .portal-grid.portal-grid--tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .portal-grid--tiles .portal-tile {
        min-width: 0;
        padding: 14px 12px;
    }

    .portal-grid--tiles .portal-tile h5 {
        font-size: 13px;
    }

    .portal-grid--tiles .portal-tile p {
        font-size: 11px;
        line-height: 1.4;
    }

    .portal-grid--tiles .portal-tile-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-bottom: 8px;
    }

    .portal-hero {
        padding: 22px 16px;
    }

    .portal-notice {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-dates tr td:first-child {
        text-align: left;
        width: auto;
    }

    .portal-reg-actions .portal-btn,
    .portal-card-body > .portal-btn:only-child {
        width: 100%;
    }
}

.portal-dashboard {
    padding: 8px 6px 32px;
}

.portal-dash-hero {
    margin-bottom: 16px;
}

.portal-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.portal-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--portal-border);
    color: var(--portal-navy);
}

.portal-status-pill.is-done {
    background: #ecfdf5;
    border-color: #6ee7b7;
    color: #047857;
}

.portal-status-pill.is-pending {
    background: #fff8e1;
    border-color: #fde68a;
    color: #92400e;
}

.portal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.portal-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 96px;
    padding: 14px 12px;
    border-radius: 16px;
    text-align: center;
    text-decoration: none !important;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid var(--portal-border);
    background: #fff;
    color: var(--portal-navy);
    box-shadow: 0 8px 20px rgba(6, 20, 40, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(6, 20, 40, 0.1);
    color: var(--portal-navy);
}

.portal-action-btn.primary {
    background: linear-gradient(135deg, var(--portal-navy), var(--portal-navy-mid));
    color: #fff !important;
    border-color: transparent;
}

.portal-action-btn.success {
    background: linear-gradient(135deg, #047857, #059669);
    color: #fff !important;
    border-color: transparent;
}

.portal-action-btn.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.portal-profile-card .portal-card-body {
    padding-top: 8px;
}

.portal-stage-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: stretch;
}

.portal-stage {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(6, 20, 40, 0.07);
    min-height: 100%;
}

.portal-stage-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-navy);
    background: linear-gradient(120deg, rgba(70, 200, 244, 0.18), rgba(255, 203, 12, 0.14));
    border-bottom: 1px solid var(--portal-border);
}

.portal-stage-head__icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--portal-navy);
    color: var(--portal-gold);
    font-size: 15px;
    flex-shrink: 0;
}

.portal-stage--written .portal-stage-head {
    background: linear-gradient(120deg, rgba(6, 20, 40, 0.08), rgba(70, 200, 244, 0.2));
}

.portal-stage--demo .portal-stage-head {
    background: linear-gradient(120deg, rgba(13, 8, 86, 0.06), rgba(255, 203, 12, 0.22));
}

.portal-stage--viva .portal-stage-head {
    background: linear-gradient(120deg, rgba(4, 120, 87, 0.1), rgba(70, 200, 244, 0.12));
}

.portal-stage-body {
    flex: 1 1 auto;
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    line-height: 1.6;
}

.portal-stage-facts {
    margin: 14px 0 0;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(70, 200, 244, 0.35);
    background: linear-gradient(145deg, rgba(70, 200, 244, 0.08), rgba(6, 20, 40, 0.03));
    overflow: hidden;
}

.portal-stage-facts__row {
    display: grid;
    grid-template-columns: minmax(88px, 34%) 1fr;
    gap: 8px 12px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.portal-stage-facts__row:last-child {
    border-bottom: 0;
}

.portal-stage-facts__row dt {
    margin: 0;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.portal-stage-facts__row dt i {
    margin-right: 4px;
    color: var(--portal-navy);
}

.portal-stage-facts__row dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--portal-navy);
    line-height: 1.45;
}

.portal-stage-body ul {
    padding-left: 18px;
    margin: 8px 0 0;
}

.portal-stage-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.portal-stage-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    background: var(--portal-navy);
    color: #fff !important;
}

.portal-stage-links a.outline {
    background: #fff;
    color: var(--portal-navy) !important;
    border: 1px solid var(--portal-border);
}

.portal-rich-text p {
    margin: 0 0 8px;
}

@media (max-width: 991px) {
    .portal-stage-grid {
        grid-template-columns: 1fr;
    }

    .portal-stage-facts__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* Registration & payment flow */
.portal-app-container {
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 12px;
}

.portal-reg-shell {
    max-width: 980px;
    margin: 0 auto;
}

.portal-reg-shell--narrow {
    max-width: 720px;
}

.portal-reg-hero {
    text-align: center;
    margin-bottom: 18px;
    padding: 8px 12px 4px;
}

.portal-reg-hero h1 {
    margin: 8px 0 6px;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--portal-navy);
}

.portal-reg-hero p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--portal-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.portal-reg-step {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--portal-navy);
    background: rgba(255, 203, 12, 0.35);
}

.portal-reg-card .portal-card-body {
    padding: 20px 18px 24px;
}

.portal-reg-form label {
    font-weight: 700 !important;
    font-size: 0.86rem;
    color: #334155;
    margin-bottom: 6px;
}

.portal-reg-form .form-control {
    border-radius: 10px;
    border-color: var(--portal-border);
    min-height: 42px;
    font-size: 0.92rem;
}

.portal-reg-form .form-control:focus {
    border-color: var(--portal-cyan);
    box-shadow: 0 0 0 3px rgba(70, 200, 244, 0.2);
}

.portal-req {
    color: #dc2626;
    font-weight: 800;
}

.portal-field-error {
    display: block;
    margin-top: 4px;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
}

.portal-invalid {
    color: #dc2626 !important;
    font-size: 0.82rem;
    font-weight: 600;
}

.portal-reg-actions {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    padding-top: 8px;
}

.portal-alert {
    max-width: 720px;
    margin: 0 auto 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

.portal-alert--info {
    background: rgba(70, 200, 244, 0.15);
    color: #0c4a6e;
    border: 1px solid rgba(70, 200, 244, 0.35);
}

.portal-alert--danger {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.portal-pin-input {
    text-align: center;
    letter-spacing: 0.35em;
    font-size: 1.25rem !important;
    font-weight: 800;
    max-width: 280px;
    margin: 0 auto;
}

.portal-pay-block {
    border: 1px solid var(--portal-border);
    border-radius: 16px;
    padding: 16px 16px 18px;
    background: #fff;
}

.portal-pay-block__section-title {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--portal-navy);
    letter-spacing: -0.01em;
}

.portal-pay-block__lead {
    margin: 0 0 14px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
}

.portal-pay-mfs-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.portal-pay-mfs-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px 8px;
    border: 2px solid var(--portal-border);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.portal-pay-mfs-tab:hover {
    border-color: var(--pay-accent, #e2136e);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.portal-pay-mfs-tab.is-active {
    border-color: var(--pay-accent, #e2136e);
    box-shadow: 0 0 0 1px var(--pay-accent, #e2136e), 0 10px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-1px);
}

.portal-pay-mfs-tab__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 4px 6px;
    border-radius: 10px;
    background: #f8fafc;
}

.portal-pay-mfs-tab__logo img {
    max-height: 36px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.portal-pay-mfs-tab__label {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--portal-navy);
    letter-spacing: 0.02em;
}

.portal-pay-method-panel {
    display: none;
    margin-bottom: 1.1rem;
}

.portal-pay-method-panel.is-visible {
    display: block;
}

.portal-pay-bkash-card {
    background: linear-gradient(145deg, #e2136e 0%, #d12053 45%, #0d0856 100%);
    border-radius: 18px;
    padding: 1.15rem 1.1rem;
    color: #fff;
    box-shadow: 0 14px 40px rgba(226, 19, 110, 0.25);
}

.portal-pay-bkash-card__top {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.portal-pay-bkash-card__logo {
    background: #fff;
    border-radius: 12px;
    padding: 0.35rem 0.65rem;
    max-height: 52px;
    display: flex;
    align-items: center;
}

.portal-pay-bkash-card__logo img {
    height: 40px;
    width: auto;
    display: block;
}

.portal-pay-bkash-card__amount {
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.portal-pay-bkash-card__amount small {
    font-size: 0.45em;
    font-weight: 700;
    opacity: 0.9;
}

.portal-pay-bkash-card__send {
    font-size: 0.85rem;
    opacity: 0.95;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.portal-pay-bkash-card__number-box {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.85rem;
}

.portal-pay-bkash-card__number {
    font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.portal-pay-bkash-card__copy {
    background: #fff;
    color: #e2136e;
    border: none;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
}

.portal-pay-bkash-card__copy:hover {
    background: #fce7f3;
}

.portal-pay-bkash-card__notes {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.8rem;
    line-height: 1.55;
    opacity: 0.95;
}

.portal-pay-bkash-card__verify {
    margin-top: 0.75rem;
    font-size: 0.78rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    line-height: 1.45;
}

.portal-pay-bkash-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.85rem;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none !important;
    color: #e2136e !important;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.portal-pay-bkash-card__link:hover {
    filter: brightness(1.03);
    color: #e2136e !important;
}

.portal-pay-trx-field label {
    color: var(--portal-navy);
    font-weight: 700;
}

.portal-pay-input {
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-pay-hint {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--portal-muted);
    line-height: 1.45;
}

.portal-pay-hint--bn {
    color: #475569;
    font-weight: 500;
}

@media (max-width: 767px) {
    .portal-reg-form .form-group {
        margin-bottom: 14px;
    }

    .portal-reg-actions .portal-btn {
        width: 100%;
        max-width: 320px;
    }

    .portal-pay-bkash-card__copy {
        width: 100%;
        text-align: center;
    }

    .portal-pay-mfs-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ——— Mobile: horizontal slide bars (nav + CTAs) ——— */
@media (max-width: 767px) {
    body.portal-ui footer {
        position: relative !important;
        left: auto;
        bottom: auto;
        width: 100%;
    }

    body.portal-ui .mainBody > .row {
        align-items: flex-start;
    }

    body.portal-ui .portal-sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 6px 10px;
    }

    body.portal-ui .portal-nav-slide {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 12px 8px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        max-width: 100%;
    }

    body.portal-ui .portal-nav-slide::-webkit-scrollbar {
        display: none;
    }

    body.portal-ui .portal-nav-pill,
    body.portal-ui .portal-nav-pill-form {
        flex: 0 0 auto;
        width: auto !important;
        min-width: 92px;
        scroll-snap-align: start;
        white-space: nowrap;
        font-size: 10px !important;
        padding: 10px 14px !important;
        border-radius: 999px !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    body.portal-ui .portal-nav-pill-form .portal-nav-pill--button {
        width: auto !important;
        min-width: 92px;
    }

    body.portal-ui .col-md-10.portal-home,
    body.portal-ui .col-md-10.portal-dashboard,
    body.portal-ui .portal-submission-wrap {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .portal-mobile-slide {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 2px 2px 10px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .portal-mobile-slide::-webkit-scrollbar {
        display: none;
    }

    .portal-mobile-slide > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .portal-cta-row.portal-mobile-slide {
        justify-content: flex-start;
    }

    .portal-cta-row .portal-btn {
        width: auto;
        min-width: 148px;
        padding: 12px 18px;
        font-size: 14px !important;
    }

    .portal-status-row.portal-mobile-slide {
        flex-wrap: nowrap;
        margin-bottom: 14px;
    }

    .portal-status-pill {
        white-space: nowrap;
    }

    .portal-actions.portal-mobile-slide {
        display: flex;
        grid-template-columns: unset;
        margin-bottom: 14px;
    }

    .portal-action-btn {
        min-width: 132px;
        max-width: 160px;
        min-height: 104px;
        padding: 12px 10px;
        font-size: 12px;
    }

    .portal-stage-links {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .portal-stage-links::-webkit-scrollbar {
        display: none;
    }

    .portal-stage-links a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .portal-hero-meta {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .portal-hero-meta::-webkit-scrollbar {
        display: none;
    }

    .portal-hero-meta span {
        flex: 0 0 auto;
        white-space: nowrap;
    }

}

/* Shared slide chips (submission + reusable) */
.portal-slide-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-height: 88px;
    padding: 14px 14px;
    border-radius: 16px;
    text-decoration: none !important;
    border: 1px solid var(--portal-border);
    background: #f8fafc;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.portal-slide-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(6, 20, 40, 0.1);
}

.portal-slide-item--admit {
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.12), rgba(34, 197, 94, 0.06));
    border-color: rgba(22, 163, 74, 0.35);
}

.portal-slide-item--application {
    background: linear-gradient(145deg, rgba(255, 203, 12, 0.18), rgba(255, 224, 102, 0.08));
    border-color: rgba(255, 203, 12, 0.45);
}

.portal-slide-item--login {
    background: linear-gradient(135deg, rgba(6, 20, 40, 0.06), rgba(10, 31, 61, 0.04));
    border-color: rgba(6, 20, 40, 0.15);
}

.portal-slide-item--home {
    background: #fff;
}

.portal-slide-item--disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.portal-slide-item__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--portal-navy);
    font-size: 1.1rem;
    box-shadow: 0 4px 12px rgba(6, 20, 40, 0.08);
}

.portal-slide-item--admit .portal-slide-item__icon { color: #16a34a; }
.portal-slide-item--application .portal-slide-item__icon { color: #b45309; }
.portal-slide-item--login .portal-slide-item__icon { color: var(--portal-navy); }

.portal-slide-item__label {
    font-size: 0.92rem;
    font-weight: 800;
    color: #061428;
    line-height: 1.2;
}

.portal-slide-item__sub {
    font-size: 0.72rem;
    color: var(--portal-muted);
    line-height: 1.3;
}

/* ===== Responsive layout (tablet + phone) ===== */
@media (max-width: 991px) {
    body.portal-page-home .portal-sidebar {
        display: none !important;
    }

    body.portal-page-home .portal-home-menu {
        display: block;
    }

    body.portal-ui {
        overflow-x: hidden;
    }

    body.portal-ui .topHeader {
        height: auto;
        min-height: 0;
    }

    body.portal-ui .topHeader .container {
        width: 100%;
        max-width: 100%;
    }

    body.portal-ui .headerSmall {
        display: flex !important;
        align-items: center;
        gap: 10px;
        padding: 8px 4px 6px;
    }

    body.portal-ui .headerSmall img {
        float: none !important;
        height: 52px;
        width: auto;
        flex-shrink: 0;
    }

    body.portal-ui .headerSmall > div {
        float: none !important;
        flex: 1;
        min-width: 0;
    }

    body.portal-ui .headerSmall h1 {
        font-size: clamp(0.82rem, 3.8vw, 1rem);
        line-height: 1.2;
        margin: 0 0 4px !important;
        padding: 0 !important;
    }

    body.portal-ui .headerSmall h4 {
        font-size: clamp(0.65rem, 2.8vw, 0.78rem);
        line-height: 1.3;
        margin: 0 !important;
        padding: 0 !important;
        font-weight: 600;
    }

    body.portal-ui .topHeader + div[style] {
        margin-top: 4px !important;
        height: 4px !important;
    }

    body.portal-ui .container.mainBody {
        width: 100%;
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    body.portal-ui .mainBody > .row {
        display: flex;
        flex-direction: column;
        margin-left: -6px;
        margin-right: -6px;
    }

    body.portal-ui .mainBody > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    body.portal-ui .portal-sidebar {
        order: 1;
        margin-bottom: 6px;
        padding-left: 0;
        padding-right: 0;
    }

    body.portal-ui .portal-mobile-nav-shell {
        position: relative;
        margin: 0 0 8px;
        padding: 0 0 2px;
    }

    body.portal-ui .portal-mobile-nav-shell::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 32px;
        height: 100%;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(238, 244, 248, 0), rgba(238, 244, 248, 0.98));
    }

    body.portal-ui .mainBody > .row > .col-md-10,
    body.portal-ui .mainBody > .row > .portal-home,
    body.portal-ui .mainBody > .row > .portal-dashboard,
    body.portal-ui .mainBody > .row > .portal-submission-wrap {
        order: 2;
    }

    body.portal-ui .mainBody ~ br {
        display: none;
    }

    body.portal-ui img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 767px) {
    body.portal-ui .portal-hero h1 {
        font-size: clamp(1.05rem, 5vw, 1.35rem);
    }

    body.portal-ui .portal-card {
        border-radius: 14px;
        margin-bottom: 12px;
    }

    body.portal-ui .portal-card-body {
        padding: 14px;
    }

    body.portal-ui .portal-circular-item {
        flex-direction: column;
        align-items: stretch;
    }

    body.portal-ui .portal-circular-item .portal-btn {
        width: 100%;
        margin-top: 6px;
    }

    body.portal-ui .portal-dates {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.portal-ui .portal-home,
    body.portal-ui .portal-dashboard,
    body.portal-ui .portal-submission-wrap {
        padding-left: 4px;
        padding-right: 4px;
        padding-bottom: 20px;
    }

    body.portal-page-submission .portal-submission-wrap {
        padding-bottom: 112px;
    }

    body.portal-ui .portal-notice {
        margin-bottom: 12px;
    }

    body.portal-ui .portal-notice-track marquee {
        font-size: 12px;
    }
}
