:root {
    --cit-primary: #0b4778;
    --cit-primary-dark: #073457;
    --cit-primary-deep: #052943;
    --cit-blue: #0f6fa8;
    --cit-sky: #eaf5fb;
    --cit-yellow: #f2c94c;
    --cit-green: #23845d;
    --cit-bg: #f5f8fb;
    --cit-card: #ffffff;
    --cit-text: #1e2d3d;
    --cit-muted: #647384;
    --cit-border: #dce6ee;
    --cit-shadow: 0 14px 38px rgba(6, 55, 91, .10);
}

html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body { color: var(--cit-text); background: var(--cit-bg); font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: var(--cit-primary); transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--cit-blue); text-decoration: none; }
.public-body main { min-height: calc(100vh - 190px); }

/* Top utility strip */
.cit-topbar { background: var(--cit-primary-deep); color: #d7e6f0; font-size: .82rem; }
.topbar-links, .topbar-actions { display: flex; align-items: center; gap: 1.2rem; }
.topbar-links a, .topbar-actions a, .topbar-links span { color: #d7e6f0; }
.topbar-links a:hover, .topbar-actions a:hover { color: #fff; }

/* Institutional navigation */
.cit-navbar { background: #fff; border-bottom: 1px solid #e6edf2; box-shadow: 0 5px 18px rgba(4, 46, 77, .06); min-height: 78px; z-index: 1040; }
.brand-logo { width: 62px; height: 54px; object-fit: contain; background: #fff; }
.brand-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--cit-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: .03em; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { color: var(--cit-primary-dark); font-size: .98rem; text-transform: uppercase; letter-spacing: .015em; }
.brand-copy small { color: var(--cit-muted); font-size: .72rem; margin-top: .3rem; }
.cit-navbar .nav-link { color: #233a4c !important; font-weight: 600; font-size: .92rem; padding: 1.55rem .75rem !important; position: relative; }
.cit-navbar .nav-link:hover, .cit-navbar .nav-item.show > .nav-link { color: var(--cit-primary) !important; }
.cit-navbar .nav-link::after { transition: transform .2s ease; }
.cit-navbar .nav-item:not(.dropdown) > .nav-link::before { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: 1rem; height: 3px; background: var(--cit-yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.cit-navbar .nav-item:not(.dropdown) > .nav-link:hover::before { transform: scaleX(1); }
.dropdown-menu { border-radius: 0 0 10px 10px; min-width: 235px; padding: .55rem 0; }
.dropdown-item { padding: .65rem 1rem; font-size: .9rem; color: #2f4252; }
.dropdown-item:hover { background: var(--cit-sky); color: var(--cit-primary); }
.btn-cit-primary { background: var(--cit-primary); color: #fff !important; border: 1px solid var(--cit-primary); border-radius: 4px; font-weight: 700; }
.btn-cit-primary:hover { background: var(--cit-primary-dark); border-color: var(--cit-primary-dark); }
.btn-cit-outline { background: transparent; color: var(--cit-primary) !important; border: 1px solid var(--cit-primary); border-radius: 4px; font-weight: 700; }
.btn-cit-outline:hover { background: var(--cit-primary); color: #fff !important; }
.btn-cit-yellow { background: var(--cit-yellow); color: var(--cit-primary-deep) !important; border: 1px solid var(--cit-yellow); border-radius: 4px; font-weight: 800; }
.btn-cit-yellow:hover { background: #ffd75f; border-color: #ffd75f; }

/* RP-inspired photographic hero */
.rp-hero { position: relative; background: url('../img/grad.jpg') center 45%/cover no-repeat; color: #fff; overflow: hidden; }
.rp-hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3, 35, 59, .94) 0%, rgba(6, 64, 104, .80) 48%, rgba(6, 64, 104, .28) 100%); }
.rp-hero-content { position: relative; z-index: 2; }
.min-vh-hero { min-height: 570px; }
.hero-eyebrow { display: inline-flex; border-left: 4px solid var(--cit-yellow); padding-left: .85rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .78rem; margin-bottom: 1.25rem; color: #eef7fc; }
.rp-hero h1 { max-width: 920px; font-weight: 800; font-size: clamp(2.5rem, 5vw, 5.1rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-lead { max-width: 760px; color: rgba(255,255,255,.9); font-size: 1.2rem; margin: 1.5rem 0 2rem; }
.hero-actions .btn { padding: .8rem 1.35rem; }

/* Stats */
.stats-ribbon-wrap { position: relative; z-index: 5; margin-top: -48px; }
.stats-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--cit-shadow); border-bottom: 4px solid var(--cit-yellow); }
.stat-item { padding: 1.8rem 1.5rem; text-align: center; border-right: 1px solid var(--cit-border); }
.stat-item:last-child { border-right: 0; }
.stat-item strong { display: block; color: var(--cit-primary); font-size: 2.15rem; line-height: 1; font-weight: 800; }
.stat-item span { display: block; color: var(--cit-muted); font-size: .88rem; margin-top: .55rem; }

.section-space { padding: 6rem 0; }
.bg-soft-blue { background: var(--cit-sky); }
.section-kicker { color: var(--cit-blue); text-transform: uppercase; font-weight: 800; font-size: .78rem; letter-spacing: .13em; margin-bottom: .8rem; }
.section-kicker::after { content: ""; display: block; width: 48px; height: 3px; background: var(--cit-yellow); margin-top: .65rem; }
.section-kicker-light { color: #d9edf8; }
.display-section-title { color: var(--cit-primary-dark); font-size: clamp(1.9rem, 3.4vw, 3.1rem); font-weight: 800; line-height: 1.13; letter-spacing: -.025em; }
.section-lead { font-size: 1.08rem; color: #3b5062; }
.section-subtitle { color: var(--cit-muted); max-width: 760px; }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading-centered { max-width: 790px; margin: 0 auto; }
.section-heading-centered .section-kicker::after { margin-left: auto; margin-right: auto; }
.cit-text-link { font-weight: 800; display: inline-flex; align-items: center; }

.about-feature { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: #314658; }
.about-feature i { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--cit-sky); color: var(--cit-primary); border-radius: 50%; }
.about-image-frame { position: relative; min-height: 440px; }
.about-image-frame img { width: 100%; height: 440px; object-fit: cover; box-shadow: var(--cit-shadow); }
.about-image-note { position: absolute; right: -10px; bottom: -22px; width: 290px; background: var(--cit-primary); color: #fff; padding: 1.35rem 1.5rem; border-left: 5px solid var(--cit-yellow); box-shadow: var(--cit-shadow); }
.about-image-note strong, .about-image-note span { display: block; }
.about-image-note span { font-size: .85rem; color: rgba(255,255,255,.82); margin-top: .25rem; }

.program-card { background: #fff; box-shadow: 0 10px 30px rgba(5, 61, 98, .08); transition: transform .22s ease, box-shadow .22s ease; overflow: hidden; }
.program-card:hover { transform: translateY(-5px); box-shadow: 0 18px 42px rgba(5, 61, 98, .15); }
.program-card-image { height: 190px; position: relative; overflow: hidden; }
.program-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.program-card:hover .program-card-image img { transform: scale(1.04); }
.program-category { position: absolute; left: 0; bottom: 0; background: var(--cit-primary); color: #fff; padding: .45rem .8rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.program-card-body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; min-height: 235px; }
.program-card-body h3 { color: var(--cit-primary-dark); font-size: 1.08rem; font-weight: 800; }
.program-card-body p { color: var(--cit-muted); font-size: .88rem; flex: 1; }
.program-card-body > a { font-weight: 800; font-size: .88rem; }
.fee-line { display: flex; flex-direction: column; gap: .15rem; padding: .65rem 0; margin-bottom: .55rem; border-top: 1px solid #e9eff3; color: #4b5e6e; font-size: .75rem; }

.why-section { background: linear-gradient(120deg, rgba(5,41,67,.98), rgba(11,71,120,.96)), url('../img/network.jpeg') center/cover fixed; }
.text-white-70 { color: rgba(255,255,255,.75); }
.why-card { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); padding: 1.6rem; min-height: 210px; height: 100%; color: #fff; backdrop-filter: blur(2px); }
.why-card i { font-size: 1.6rem; color: var(--cit-yellow); margin-bottom: 1rem; }
.why-card h3 { font-size: 1.05rem; font-weight: 800; }
.why-card p { color: rgba(255,255,255,.72); font-size: .88rem; margin-bottom: 0; }

.process-card { position: relative; background: #fff; border-top: 4px solid var(--cit-primary); box-shadow: 0 10px 28px rgba(5,61,98,.08); padding: 1.6rem; min-height: 250px; }
.process-number { position: absolute; right: 1.25rem; top: 1rem; font-size: 2.35rem; font-weight: 900; color: #edf2f6; line-height: 1; }
.process-card > i { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center; background: var(--cit-sky); color: var(--cit-primary); font-size: 1.15rem; margin-bottom: 1.35rem; }
.process-card h3 { font-size: 1.02rem; color: var(--cit-primary-dark); font-weight: 800; }
.process-card p { font-size: .88rem; color: var(--cit-muted); }
.application-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff8db; border-left: 4px solid var(--cit-yellow); padding: 1rem 1.2rem; color: #5a4a13; }
.application-notice i { margin-right: .45rem; }
.application-notice a { font-weight: 800; white-space: nowrap; }
.active-payment-strip { display: flex; align-items: center; gap: 1rem; background: #eaf7f1; border-left: 4px solid var(--cit-green); padding: .9rem 1.1rem; }
.active-payment-strip > i { color: var(--cit-green); font-size: 1.3rem; }
.active-payment-strip small, .active-payment-strip strong { display: block; }

.update-panel { background: #fff; box-shadow: 0 9px 28px rgba(5,61,98,.07); }
.update-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.4rem; border-bottom: 3px solid var(--cit-primary); }
.update-panel-head h3 { margin: 0; color: var(--cit-primary-dark); font-size: 1.15rem; font-weight: 800; }
.update-panel-head a { font-size: .84rem; font-weight: 800; }
.update-item { display: grid; grid-template-columns: 62px 1fr 20px; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; border-bottom: 1px solid #e8eef3; color: inherit; }
.update-item:last-child { border-bottom: 0; }
.update-item:hover { background: #f9fbfd; color: inherit; }
.update-date { width: 58px; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--cit-primary); color: #fff; font-size: .7rem; text-transform: uppercase; }
.update-date strong { font-size: 1.15rem; line-height: 1; }
.update-date-green { background: var(--cit-green); }
.update-copy strong, .update-copy small { display: block; }
.update-copy strong { color: var(--cit-primary-dark); font-size: .93rem; }
.update-copy small { color: var(--cit-muted); margin-top: .28rem; line-height: 1.4; }
.update-item > i { color: #9aabb8; }

.video-preview-card { display: block; height: 100%; background: #fff; color: inherit; box-shadow: 0 10px 28px rgba(5,61,98,.08); }
.video-preview-image { height: 220px; position: relative; overflow: hidden; }
.video-preview-image img { width: 100%; height: 100%; object-fit: cover; }
.play-button { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: flex; align-items: center; justify-content: center; background: var(--cit-yellow); color: var(--cit-primary-deep); border-radius: 50%; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.video-preview-copy { padding: 1.25rem 1.35rem; }
.video-preview-copy h3 { color: var(--cit-primary-dark); font-size: 1rem; font-weight: 800; }
.video-preview-copy p { color: var(--cit-muted); font-size: .86rem; margin-bottom: 0; }

.alumni-band { background: var(--cit-primary); color: #fff; padding: 3.8rem 0; border-bottom: 5px solid var(--cit-yellow); }
.alumni-band h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 800; max-width: 900px; }
.alumni-band p { color: rgba(255,255,255,.75); margin-bottom: 0; }

.location-section { background: #fff; }
.location-info-card { background: #f6f9fb; padding: 2rem; border-top: 5px solid var(--cit-primary); }
.contact-detail { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.3rem; }
.contact-detail > span { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center; background: var(--cit-primary); color: #fff; }
.contact-detail small, .contact-detail strong { display: block; }
.contact-detail small { color: var(--cit-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.contact-detail strong { color: #2c3e4d; margin-top: .2rem; }
.location-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.map-frame { min-height: 460px; overflow: hidden; box-shadow: var(--cit-shadow); }
.map-frame iframe { border: 0; width: 100%; height: 100%; min-height: 460px; }

/* Shared cards/forms/pages */
.section-title { font-weight: 800; color: var(--cit-primary-dark); }
.card-soft { border: 1px solid var(--cit-border); border-radius: 4px; box-shadow: 0 8px 28px rgba(18,59,109,.07); background: var(--cit-card); }
.content-card { height: 100%; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(18,59,109,.12); }
.content-card img { width: 100%; height: 190px; object-fit: cover; }
.metric-card { border: 0; border-radius: 4px; box-shadow: 0 8px 24px rgba(18,59,109,.07); }
.metric-icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: rgba(15,111,168,.12); color: var(--cit-blue); }
.table thead th { border-top: 0; white-space: nowrap; color: var(--cit-primary-dark); }
.table-responsive { border-radius: 4px; }
.form-control, .custom-select { border-radius: 3px; border-color: #cedae3; min-height: 42px; }
.form-control:focus, .custom-select:focus { border-color: #73a9ce; box-shadow: 0 0 0 .2rem rgba(15,111,168,.12); }
.btn { border-radius: 4px; }
.btn-primary { background: var(--cit-primary); border-color: var(--cit-primary); }
.btn-primary:hover { background: var(--cit-primary-dark); border-color: var(--cit-primary-dark); }
.detail-image { max-height: 430px; width: 100%; object-fit: cover; box-shadow: var(--cit-shadow); }
.status-timeline { border-left: 3px solid #d8e6f5; padding-left: 1rem; }
.empty-state { padding: 3rem 1rem; text-align: center; color: var(--cit-muted); }
.avatar-sm { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.avatar-md { width: 84px; height: 84px; object-fit: cover; border-radius: 50%; }

/* Dashboard */
.dashboard-body { background: #f1f5f8; }
.dashboard-shell { display: flex; min-height: calc(100vh - 78px); }
.dashboard-sidebar { width: 260px; flex: 0 0 260px; background: var(--cit-primary-deep); border-right: 1px solid rgba(255,255,255,.08); padding: 1.25rem 1rem; position: sticky; top: 78px; height: calc(100vh - 78px); overflow-y: auto; z-index: 1020; color: #fff; }
.dashboard-main { flex: 1; min-width: 0; padding: 1.6rem; }
.sidebar-user { padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.sidebar-user .text-muted { color: #9fb8c9 !important; }
.sidebar-avatar { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); }
.sidebar-link { display: flex; align-items: center; gap: .7rem; padding: .72rem .8rem; border-radius: 3px; color: #c8d9e5; margin-bottom: .25rem; text-decoration: none !important; }
.sidebar-link i { width: 20px; text-align: center; }
.sidebar-link:hover, .sidebar-link.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; border-left: 3px solid var(--cit-yellow); }

/* Footer */
.cit-footer { background: #052943; color: #bdcfda; margin-top: 0; }
.footer-main { background: #073457; }
.footer-logo { width: 65px; height: 60px; object-fit: contain; background: #fff; padding: 3px; }
.footer-brand-mark { background: #fff; color: var(--cit-primary); }
.footer-brand-title { color: #fff; font-size: 1rem; }
.footer-summary { max-width: 430px; color: #b9ccd8; font-size: .9rem; }
.footer-heading { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; margin-bottom: 1.15rem; }
.footer-link { display: block; color: #bdcfda; font-size: .88rem; padding: .28rem 0; }
.footer-link:hover { color: #fff; padding-left: .15rem; }
.footer-contact-line { display: flex; align-items: flex-start; gap: .7rem; margin: .6rem 0; font-size: .86rem; }
.footer-contact-line i { color: var(--cit-yellow); width: 18px; margin-top: .25rem; }
.footer-contact-line a { color: #bdcfda; }
.footer-location-cta { display: inline-block; margin-top: .85rem; color: var(--cit-yellow); font-weight: 700; font-size: .88rem; }
.footer-location-cta:hover { color: #fff; }
.footer-bottom { background: #041f33; color: #9eb4c3; font-size: .82rem; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; display: none; align-items: center; justify-content: center; background: var(--cit-primary); color: #fff; z-index: 1030; box-shadow: 0 7px 22px rgba(0,0,0,.16); }
.back-to-top.show { display: flex; }
.back-to-top:hover { color: #fff; background: var(--cit-primary-dark); }

@media (max-width: 1199.98px) {
    .brand-copy strong { font-size: .88rem; }
    .cit-navbar .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; }
}

@media (max-width: 1199.98px) {
    .cit-navbar {
        min-height: 68px;
        padding-top: .5rem;
        padding-bottom: .5rem;
        z-index: 1060;
    }
    .cit-navbar > .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .cit-navbar .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 58px);
        margin-right: .5rem;
    }
    .brand-logo { width: 50px; height: 46px; flex: 0 0 50px; }
    .brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
    .brand-copy { min-width: 0; }
    .brand-copy strong {
        display: block;
        font-size: .8rem;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }
    .brand-copy small { display: none; }

    .cit-navbar-toggler {
        width: 46px;
        height: 44px;
        flex: 0 0 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .35rem;
        border-radius: 6px;
        position: relative;
        z-index: 2;
    }
    .cit-navbar-toggler:focus {
        outline: 2px solid rgba(11, 71, 120, .28);
        outline-offset: 2px;
    }

    .cit-navbar .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        background: #fff;
        padding: .65rem 0 1rem;
        max-height: calc(100vh - 76px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-top: 1px solid #e6edf2;
        margin-top: .5rem;
    }
    .cit-navbar .navbar-collapse:not(.show) { display: none !important; }
    .cit-navbar .navbar-collapse.show { display: block !important; }
    .cit-navbar .navbar-nav {
        width: 100%;
        align-items: stretch !important;
        margin: 0 !important;
    }
    .cit-navbar .nav-item {
        width: 100%;
        border-bottom: 1px solid #edf2f5;
    }
    .cit-navbar .nav-item:last-child { border-bottom: 0; }
    .cit-navbar .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: .72rem .35rem !important;
        font-size: .94rem;
    }
    .cit-navbar .nav-link.dropdown-toggle::after { margin-left: auto; }
    .cit-navbar .nav-item:not(.dropdown) > .nav-link::before { display: none; }
    .cit-navbar .dropdown-menu {
        position: static !important;
        float: none;
        transform: none !important;
        width: 100%;
        min-width: 0;
        margin: 0 0 .55rem;
        padding: .25rem 0 .35rem .75rem;
        border: 0;
        border-left: 3px solid var(--cit-yellow) !important;
        border-radius: 0;
        box-shadow: none !important;
        background: #f6f9fb;
    }
    .cit-navbar .dropdown-menu:not(.show) { display: none !important; }
    .cit-navbar .dropdown-menu.show { display: block !important; }
    .cit-navbar .dropdown-item {
        white-space: normal;
        padding: .65rem .8rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .cit-navbar .nav-item.ml-lg-2 { margin-left: 0 !important; }
    .cit-navbar .nav-item .btn {
        display: block;
        width: 100%;
        margin-top: .7rem;
        padding: .7rem 1rem;
    }
    body.mobile-nav-open { overflow: hidden; }
    body.mobile-nav-open .cit-chatbot,
    body.mobile-nav-open .back-to-top { visibility: hidden; pointer-events: none; }

    .min-vh-hero { min-height: 520px; }
    .stats-ribbon { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: 0; }
    .stat-item:nth-child(-n+2) { border-bottom: 1px solid var(--cit-border); }
    .section-space { padding: 4.5rem 0; }
    .section-heading-row { align-items: flex-start; flex-direction: column; }
    .about-image-note { right: 0; }
    .why-section { background-attachment: scroll; }

    .dashboard-sidebar {
        position: fixed;
        left: -290px;
        top: 0;
        width: min(280px, 86vw);
        height: 100vh;
        transition: left .22s ease;
        box-shadow: 8px 0 30px rgba(0,0,0,.18);
        z-index: 1091;
        padding-top: 1rem;
    }
    .dashboard-sidebar.open { left: 0; }
    .dashboard-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1090;
        border: 0;
        padding: 0;
        background: rgba(3, 25, 42, .48);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .dashboard-sidebar-backdrop.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.dashboard-menu-open { overflow: hidden; }
    .dashboard-main { padding: 1rem; min-width: 0; }
    .dashboard-menu-toggle { min-height: 42px; }
}

@media (max-width: 767.98px) {
    .brand-copy { max-width: 210px; }
    .brand-copy strong { white-space: normal; }
    .rp-hero { background-position: 58% center; }
    .rp-hero-overlay { background: rgba(4,43,70,.86); }
    .min-vh-hero { min-height: 500px; }
    .rp-hero h1 { font-size: 2.55rem; }
    .hero-lead { font-size: 1rem; }
    .stats-ribbon-wrap { margin-top: 0; }
    .stats-ribbon { grid-template-columns: 1fr 1fr; }
    .stat-item { padding: 1.25rem .8rem; }
    .stat-item strong { font-size: 1.7rem; }
    .section-space { padding: 3.8rem 0; }
    .about-image-frame, .about-image-frame img { min-height: 330px; height: 330px; }
    .about-image-note { position: relative; width: 100%; bottom: auto; right: auto; }
    .application-notice { flex-direction: column; align-items: flex-start; }
    .update-item { grid-template-columns: 54px 1fr; }
    .update-item > i { display: none; }
    .map-frame, .map-frame iframe { min-height: 360px; }
}


/* Video catalogue/detail pages */
.video-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cit-yellow);
    color: var(--cit-primary-deep);
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
    transition: transform .18s ease, box-shadow .18s ease;
}
.content-card a:hover .video-card-play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.video-detail-section { background: #f7fafc; }
.video-detail-shell {
    background: #000;
    box-shadow: var(--cit-shadow);
    overflow: hidden;
}
.video-detail-player {
    display: block;
    width: 100%;
    max-height: 620px;
    background: #000;
}
.video-description { line-height: 1.75; }
.video-meta-card {
    background: #fff;
    border-left: 4px solid var(--cit-primary);
    box-shadow: 0 8px 24px rgba(18,59,109,.07);
    padding: 1rem 1.15rem;
}


/* Critical navigation/support icons use inline SVG so they remain visible even if an icon font fails on hosting. */
.cit-inline-icon { width: 1em; height: 1em; display: inline-block; flex: 0 0 auto; vertical-align: -0.125em; fill: currentColor; }
.cit-chat-icon { width: 1.15em; height: 1.15em; display: block; fill: currentColor; }
.cit-chatbot-launcher-icon .cit-chat-icon { width: 20px; height: 20px; }
.cit-chatbot-avatar .cit-chat-icon { width: 22px; height: 22px; }
.cit-chatbot-close .cit-chat-icon, .cit-chatbot-form button .cit-chat-icon, .back-to-top .cit-chat-icon { width: 19px; height: 19px; margin: auto; }
.cit-chatbot { visibility: visible; opacity: 1; }
.cit-chatbot-launcher { min-width: 52px; min-height: 52px; }

/* =========================================================
   CIT Support Assistant / Help Center
   ========================================================= */
.cit-chatbot { position: fixed; right: 22px; bottom: 78px; z-index: 1080; font-family: inherit; }
.cit-chatbot-launcher { display: flex; align-items: center; gap: .65rem; border: 0; border-radius: 28px; padding: .7rem .95rem .7rem .72rem; background: var(--cit-primary); color: #fff; box-shadow: 0 12px 34px rgba(0,0,0,.22); font-weight: 800; transition: transform .18s ease, background .18s ease; }
.cit-chatbot-launcher:hover, .cit-chatbot-launcher:focus { background: var(--cit-primary-dark); color: #fff; transform: translateY(-2px); outline: none; }
.cit-chatbot-launcher-icon { width: 34px; height: 34px; border-radius: 50%; background: var(--cit-yellow); color: var(--cit-primary-deep); display: inline-flex; align-items: center; justify-content: center; }
.cit-chatbot-panel { position: absolute; right: 0; bottom: 62px; width: min(390px, calc(100vw - 28px)); height: min(590px, calc(100vh - 120px)); display: none; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 65px rgba(3,38,62,.28); border: 1px solid #dce7ef; }
.cit-chatbot.open .cit-chatbot-panel { display: flex; }
.cit-chatbot-header { background: linear-gradient(135deg, var(--cit-primary-deep), var(--cit-primary)); color: #fff; padding: 1rem 1rem; display: flex; align-items: center; gap: .75rem; }
.cit-chatbot-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cit-yellow); color: var(--cit-primary-deep); display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.cit-chatbot-title { flex: 1; min-width: 0; }
.cit-chatbot-title strong, .cit-chatbot-title small { display: block; }
.cit-chatbot-title strong { font-size: .95rem; }
.cit-chatbot-title small { color: rgba(255,255,255,.78); font-size: .75rem; margin-top: .1rem; }
.cit-chatbot-online { display: inline-block; width: 7px; height: 7px; background: #63d69a; border-radius: 50%; margin-right: .35rem; }
.cit-chatbot-close { border: 0; background: transparent; color: #fff; width: 34px; height: 34px; border-radius: 50%; }
.cit-chatbot-close:hover, .cit-chatbot-close:focus { background: rgba(255,255,255,.12); outline: none; }
.cit-chatbot-messages { flex: 1; overflow-y: auto; padding: 1rem; background: #f5f8fb; scroll-behavior: smooth; }
.cit-chat-message { display: flex; margin-bottom: .75rem; }
.cit-chat-message.user { justify-content: flex-end; }
.cit-chat-bubble { max-width: 86%; padding: .72rem .85rem; border-radius: 13px; font-size: .86rem; line-height: 1.48; white-space: pre-line; box-shadow: 0 2px 8px rgba(7,52,87,.06); }
.cit-chat-message.bot .cit-chat-bubble { background: #fff; color: #314452; border-bottom-left-radius: 4px; }
.cit-chat-message.user .cit-chat-bubble { background: var(--cit-primary); color: #fff; border-bottom-right-radius: 4px; }
.cit-chat-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 .8rem; }
.cit-chat-actions a { display: inline-flex; align-items: center; padding: .36rem .58rem; border: 1px solid #bad2e2; border-radius: 18px; background: #fff; color: var(--cit-primary); font-size: .75rem; font-weight: 700; }
.cit-chat-actions a:hover { background: #edf6fb; color: var(--cit-primary-dark); }
.cit-chatbot-suggestions { padding: .65rem .8rem .25rem; display: flex; gap: .4rem; overflow-x: auto; border-top: 1px solid #e6edf2; background: #fff; }
.cit-chatbot-suggestions button { flex: 0 0 auto; border: 1px solid #c9dae6; background: #fff; color: var(--cit-primary); border-radius: 18px; padding: .38rem .62rem; font-size: .73rem; font-weight: 700; }
.cit-chatbot-suggestions button:hover { background: #edf6fb; }
.cit-chatbot-form { display: flex; gap: .5rem; padding: .75rem .8rem; background: #fff; }
.cit-chatbot-form .form-control { min-height: 42px; border-radius: 22px; padding-left: 1rem; }
.cit-chatbot-form button { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: var(--cit-primary); color: #fff; }
.cit-chatbot-form button:disabled { opacity: .55; cursor: not-allowed; }
.cit-chatbot-footer { border-top: 1px solid #edf1f4; text-align: center; padding: .45rem .8rem .55rem; background: #fff; font-size: .72rem; }
.cit-chatbot-footer a { color: var(--cit-primary); font-weight: 700; }
.cit-chat-typing { display: inline-flex; gap: 4px; align-items: center; min-height: 16px; }
.cit-chat-typing span { width: 6px; height: 6px; background: #91a6b5; border-radius: 50%; animation: citChatPulse 1.2s infinite ease-in-out; }
.cit-chat-typing span:nth-child(2) { animation-delay: .15s; }
.cit-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes citChatPulse { 0%, 70%, 100% { transform: translateY(0); opacity: .45; } 35% { transform: translateY(-4px); opacity: 1; } }

.support-search-wrap { position: relative; }
.support-search-wrap > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #8194a2; z-index: 2; }
.support-search-wrap .form-control { padding-left: 2.7rem; box-shadow: 0 8px 24px rgba(18,59,109,.08); border: 1px solid #d5e2eb; }
.support-faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 0; background: transparent; color: var(--cit-primary-dark); font-weight: 800; text-align: left; padding: 0; }
.support-faq-question i { color: var(--cit-primary); transition: transform .2s ease; }
.support-faq-question[aria-expanded="true"] i { transform: rotate(180deg); }
.support-contact-card { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.5rem 1.7rem; background: linear-gradient(135deg, var(--cit-primary-deep), var(--cit-primary)); border-left: 5px solid var(--cit-yellow); }
.support-contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

@media (max-width: 575.98px) {
    .cit-navbar { padding-left: 0; padding-right: 0; }
    .cit-navbar > .container-fluid { padding-left: 12px; padding-right: 12px; }
    .cit-navbar .navbar-brand { max-width: calc(100% - 52px); }
    .brand-logo { width: 42px; height: 40px; flex-basis: 42px; margin-right: .55rem !important; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; margin-right: .55rem !important; font-size: .85rem; }
    .brand-copy { max-width: none; }
    .brand-copy strong { font-size: .7rem; line-height: 1.16; }
    .cit-navbar-toggler { width: 42px; height: 42px; flex-basis: 42px; }
    .cit-navbar .navbar-collapse { max-height: calc(100dvh - 66px); }
    .cit-chatbot { right: 12px; bottom: 70px; }
    .cit-chatbot-launcher-label { display: none; }
    .cit-chatbot-launcher { padding: .65rem; border-radius: 50%; }
    .cit-chatbot-panel { position: fixed; left: 10px; right: 10px; bottom: 10px; width: auto; height: min(650px, calc(100dvh - 20px)); }
    .support-contact-card { flex-direction: column; align-items: flex-start; }
}


/* ========================================================================== */
/* FINAL RESPONSIVE NAVIGATION HARDENING                                     */
/* Public navigation: compact below 1400px. Dashboard sidebar: below 1200px. */
/* ========================================================================== */

.cit-mainnav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1038;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(3, 25, 42, .48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

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

/* Large desktop: full horizontal menu. */
@media (min-width: 1400px) {
    .cit-navbar-toggler { display: none !important; }
    .cit-navbar > .container-fluid {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
    }
    .cit-navbar .navbar-brand {
        flex: 0 1 auto;
        min-width: 0;
        margin-right: 1.25rem;
    }
    .cit-navbar .navbar-collapse {
        display: flex !important;
        flex: 1 1 auto;
        flex-basis: auto;
        width: auto;
        max-height: none;
        overflow: visible;
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }
    .cit-main-nav-list {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        margin-left: auto !important;
    }
    .cit-navbar .nav-item {
        width: auto;
        border: 0;
        position: relative;
    }
    .cit-navbar .dropdown-menu {
        position: absolute !important;
        top: calc(100% - .35rem);
        left: 0;
        float: none;
        z-index: 1080;
        min-width: 235px;
        max-width: 320px;
        margin: 0;
        transform: none !important;
    }
    .cit-navbar .dropdown-menu:not(.show) { display: none; }
    .cit-navbar .dropdown.show > .dropdown-menu,
    .cit-navbar .dropdown:hover > .dropdown-menu,
    .cit-navbar .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
    .cit-navbar .nav-item .btn { white-space: nowrap; }
    body.mobile-nav-open { overflow: auto; }
}

/* Phones, tablets, laptops and smaller desktops: reliable collapsible menu. */
@media (max-width: 1399.98px) {
    .cit-navbar {
        min-height: 68px;
        padding-top: .5rem;
        padding-bottom: .5rem;
        z-index: 1060;
    }
    .cit-navbar > .container-fluid {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        width: 100%;
    }
    .cit-navbar .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 62px);
        margin-right: .5rem;
        overflow: hidden;
    }
    .cit-navbar-toggler {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 46px;
        width: 46px;
        height: 44px;
        padding: .35rem;
        border-radius: 6px;
        position: relative;
        z-index: 1063;
    }
    .cit-navbar-toggler:focus {
        outline: 2px solid rgba(11, 71, 120, .28);
        outline-offset: 2px;
    }
    .cit-navbar-toggler.is-active { background: var(--cit-sky); }

    .cit-navbar .navbar-collapse {
        display: none !important;
        flex-basis: 100%;
        width: 100%;
        max-height: calc(100dvh - 78px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        margin-top: .5rem;
        padding: .45rem 0 .85rem;
        background: #fff;
        border-top: 1px solid #e6edf2;
        position: relative;
        z-index: 1062;
    }
    .cit-navbar .navbar-collapse.show { display: block !important; }
    .cit-main-nav-list {
        width: 100%;
        margin: 0 !important;
        padding: 0;
        align-items: stretch !important;
    }
    .cit-navbar .nav-item {
        width: 100%;
        border-bottom: 1px solid #edf2f5;
    }
    .cit-navbar .nav-item:last-child { border-bottom: 0; }
    .cit-navbar .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: .72rem .45rem !important;
        font-size: .95rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .cit-navbar .nav-link.dropdown-toggle::after { margin-left: auto; }
    .cit-navbar .nav-item:not(.dropdown) > .nav-link::before { display: none; }
    .cit-navbar .dropdown-menu {
        position: static !important;
        float: none;
        transform: none !important;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 0 0 .55rem;
        padding: .25rem 0 .35rem .75rem;
        border: 0 !important;
        border-left: 3px solid var(--cit-yellow) !important;
        border-radius: 0;
        box-shadow: none !important;
        background: #f6f9fb;
    }
    .cit-navbar .dropdown-menu:not(.show) { display: none !important; }
    .cit-navbar .dropdown-menu.show { display: block !important; }
    .cit-navbar .dropdown-item {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: .65rem .8rem;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .cit-navbar .nav-item.ml-lg-2 { margin-left: 0 !important; }
    .cit-navbar .nav-item .btn {
        display: block;
        width: 100%;
        min-height: 44px;
        margin: .7rem 0 .15rem;
        padding: .7rem 1rem;
    }

    .cit-mainnav-backdrop.show {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    body.mobile-nav-open { overflow: hidden; }
    body.mobile-nav-open .cit-chatbot,
    body.mobile-nav-open .back-to-top {
        visibility: hidden;
        pointer-events: none;
    }
}

/* Dashboard navigation remains docked only when there is enough width. */
@media (min-width: 1200px) {
    .dashboard-menu-toggle,
    .dashboard-sidebar-backdrop { display: none !important; }
}

@media (max-width: 1199.98px) {
    .dashboard-menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-height: 42px;
    }
    .dashboard-sidebar-backdrop { display: block; }
    body.dashboard-menu-open .cit-chatbot,
    body.dashboard-menu-open .back-to-top {
        visibility: hidden;
        pointer-events: none;
    }
}

/* Tablet adjustments. */
@media (max-width: 991.98px) {
    .cit-topbar { display: none !important; }
    .brand-logo { width: 50px; height: 46px; flex: 0 0 50px; }
    .brand-mark { width: 48px; height: 48px; flex: 0 0 48px; }
    .brand-copy { min-width: 0; }
    .brand-copy strong {
        display: block;
        font-size: .82rem;
        line-height: 1.2;
        white-space: normal;
        overflow-wrap: anywhere;
    }
    .brand-copy small { display: none; }
}

/* Small phones. */
@media (max-width: 575.98px) {
    .cit-navbar { min-height: 62px; }
    .cit-navbar > .container-fluid {
        padding-left: .8rem !important;
        padding-right: .8rem !important;
    }
    .cit-navbar .navbar-brand { max-width: calc(100% - 54px); }
    .brand-logo { width: 42px; height: 40px; flex-basis: 42px; margin-right: .55rem !important; }
    .brand-mark { width: 42px; height: 42px; flex-basis: 42px; margin-right: .55rem !important; }
    .brand-copy strong { font-size: .74rem; line-height: 1.14; letter-spacing: 0; }
    .cit-navbar-toggler { width: 42px; height: 42px; flex-basis: 42px; }
    .cit-navbar .navbar-collapse { max-height: calc(100dvh - 68px); }
}

/* Very narrow phones: keep the brand readable and the menu button reachable. */
@media (max-width: 359.98px) {
    .brand-copy strong { font-size: .68rem; }
    .brand-logo { width: 38px; height: 38px; flex-basis: 38px; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: .82rem; }
    .cit-navbar-toggler { width: 40px; height: 40px; flex-basis: 40px; }
}


/* =========================================================
   COMPANY UPDATES / NEWS RAIL
   ========================================================= */
.company-news-panel {
    background: #0b4778;
    border-radius: 18px;
    padding: 1.15rem;
    color: #fff;
    box-shadow: 0 18px 42px rgba(11,71,120,.15);
    overflow: hidden;
    min-height: 430px;
}
.company-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem .15rem .9rem;
    border-bottom: 1px solid rgba(255,255,255,.16);
}
.company-news-head small {
    display: block;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #ffd64a;
    font-weight: 700;
    margin-bottom: .15rem;
}
.company-news-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
}
.company-news-head > a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.12);
}
.company-news-head > a:hover { background: #ffd64a; color: #0b4778; text-decoration: none; }
.company-news-viewport {
    position: relative;
    height: 330px;
    overflow: hidden;
    margin-top: .85rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.company-news-track {
    will-change: transform;
    animation: citCompanyNewsScroll var(--news-duration, 30s) linear infinite;
}
.company-news-viewport:hover .company-news-track,
.company-news-viewport:focus-within .company-news-track { animation-play-state: paused; }
.company-news-loop-group {
    display: flex;
    flex-direction: column;
    gap: .8rem;
    padding-bottom: .8rem;
}
.company-news-card {
    display: flex;
    align-items: stretch;
    gap: .75rem;
    padding: .85rem;
    border-radius: 14px;
    background: #fff;
    color: #17324a;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    border: 1px solid rgba(255,255,255,.45);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
a.company-news-card:hover,
a.company-news-card:focus {
    color: #17324a;
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.2);
}
.company-news-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 10px;
    overflow: hidden;
    background: #e8eef4;
}
.company-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.company-news-copy { min-width: 0; display: flex; flex-direction: column; }
.company-news-date {
    color: #6d7f8f;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .15rem;
}
.company-news-copy strong {
    font-size: .94rem;
    line-height: 1.25;
    margin-bottom: .2rem;
    color: #0b4778;
}
.company-news-copy > span {
    color: #647382;
    font-size: .8rem;
    line-height: 1.35;
}
.company-news-copy em {
    margin-top: .35rem;
    color: #0b4778;
    font-size: .78rem;
    font-style: normal;
    font-weight: 700;
}
.company-news-pause-note {
    color: rgba(255,255,255,.65);
    font-size: .72rem;
    text-align: center;
    padding-top: .55rem;
}
.company-news-empty {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: rgba(255,255,255,.78);
    gap: .8rem;
}
.company-news-empty i { font-size: 2rem; color: #ffd64a; }
@keyframes citCompanyNewsScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .company-news-track { animation: none; }
    .company-news-viewport { overflow-y: auto; -webkit-mask-image: none; mask-image: none; }
    .company-news-loop-group[aria-hidden="true"] { display: none; }
    .company-news-pause-note { display: none; }
}
@media (max-width: 991.98px) {
    .company-news-panel { min-height: 390px; margin-top: .25rem; }
    .company-news-viewport { height: 300px; }
}
@media (max-width: 575.98px) {
    .company-news-panel { padding: .9rem; border-radius: 14px; }
    .company-news-viewport { height: 310px; }
    .company-news-card { padding: .72rem; }
    .company-news-thumb { width: 62px; height: 62px; flex-basis: 62px; }
}
