/* =========================================================
   ZI Institute Header — isolated from Bootstrap/theme CSS
========================================================= */
.zi-header,
.zi-header * {
    box-sizing: border-box;
}

.zi-header {
    position: relative;
    z-index: 1100;
    width: 100%;
    font-family: "Manrope", Arial, sans-serif;
}

.zi-header a {
    text-decoration: none !important;
}

.zi-header ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.zi-header button {
    font: inherit;
}

.zi-container {
    width: min(100% - 30px, 1300px);
    margin-right: auto;
    margin-left: auto;
}

/* Top information bar */
.zi-topbar {
    min-height: 44px;
    background: linear-gradient(90deg, #071c37 0%, #0b3f75 58%, #0d76ac 100%);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
}

.zi-topbar-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.zi-contact-list,
.zi-social-list {
    display: flex;
    align-items: center;
    gap: 18px;
}

.zi-contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .92) !important;
    font-size: 12px;
    font-weight: 700;
}

.zi-contact-list a i {
    color: #8ed8ff;
}

.zi-admission-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.zi-admission-status i {
    color: #34d399;
    font-size: 7px;
}

.zi-social-list a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 9px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-size: 13px;
    transition: .25s ease;
}

.zi-social-list a:hover {
    background: #fff;
    color: #0d5f9f !important;
    transform: translateY(-2px);
}

/* Brand row */
.zi-brandbar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(110deg, #fff 0%, #f7faff 58%, #edf7ff 100%);
    border-bottom: 1px solid #dce8f5;
}

.zi-brandbar::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #0d5ea5, #2375df, #ff8a1f, #16a57a);
}

.zi-brandbar-inner {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.zi-brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #102c4d !important;
}

.zi-logo-box {
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    display: grid;
    place-items: center;
    padding: 7px;
    overflow: hidden;
    border: 1px solid #dfe9f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 11px 30px rgba(19, 64, 110, .1);
}

.zi-logo-box img {
    width: 100% !important;
    height: 100% !important;
    max-width: 64px !important;
    max-height: 64px !important;
    display: block;
    object-fit: contain !important;
}

.zi-logo-fallback {
    width: 100%;
    height: 100%;
    display: none;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eaf4ff, #f3efff);
    color: #1d67be;
    font-size: 28px;
}

.zi-brand-text {
    min-width: 0;
    display: block;
    padding-left: 15px;
    border-left: 3px solid #ff861a;
}

.zi-brand-text strong {
    display: block;
    color: #102f55;
    font-family: "Outfit", Arial, sans-serif;
    font-size: clamp(24px, 2.25vw, 34px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.zi-brand-text small {
    display: block;
    margin-top: 8px;
    color: #58708d;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .02em;
}

.zi-brand-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
}

.zi-login-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 19px;
    border: 1px solid #d7e4f2;
    border-radius: 14px;
    background: #fff;
    color: #173a61 !important;
    box-shadow: 0 7px 20px rgba(18, 59, 101, .05);
    font-size: 13px;
    font-weight: 800;
    transition: .25s ease;
}

.zi-login-button:hover {
    border-color: #abcbe9;
    background: #edf7ff;
    color: #0c62a8 !important;
    transform: translateY(-2px);
}

.zi-apply-button {
    min-width: 212px;
    min-height: 64px;
    display: grid;
    grid-template-columns: 42px 1fr 18px;
    align-items: center;
    gap: 11px;
    padding: 9px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ff951d 0%, #ef5b17 100%);
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(239, 91, 23, .26);
    transition: .25s ease;
}

.zi-apply-button:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(239, 91, 23, .34);
}

.zi-apply-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, .16);
    font-size: 17px;
}

.zi-apply-copy strong,
.zi-apply-copy small {
    display: block;
}

.zi-apply-copy strong {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.zi-apply-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, .82);
    font-size: 10px;
    font-weight: 600;
}

.zi-apply-arrow {
    font-size: 13px;
}

/* Main navigation */
.zi-nav-wrap {
    position: relative;
    background: linear-gradient(90deg, #08294d 0%, #0c4d87 56%, #116fa6 100%);
    box-shadow: 0 12px 30px rgba(10, 48, 88, .18);
}

.zi-nav-wrap.is-sticky {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1500;
    animation: ziNavDown .25s ease;
    box-shadow: 0 15px 38px rgba(6, 36, 72, .3);
}

@keyframes ziNavDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.zi-nav-inner {
    min-height: 62px;
    display: flex;
    align-items: stretch;
}

.zi-sticky-brand {
    display: none;
    align-items: center;
    gap: 9px;
    margin-right: 12px;
    color: #fff !important;
}

.zi-sticky-brand img {
    width: 39px !important;
    height: 39px !important;
    padding: 3px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain !important;
}

.zi-sticky-brand span {
    max-width: 170px;
    overflow: hidden;
    color: #fff;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.zi-nav-wrap.is-sticky .zi-sticky-brand {
    display: flex;
}

.zi-mobile-toggle {
    display: none;
}

.zi-nav {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.zi-menu {
    min-width: 0;
    display: flex !important;
    align-items: stretch;
    flex: 1 1 auto;
}

.zi-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.zi-menu-link {
    position: relative;
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .94) !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: .22s ease;
}

.zi-menu-link::after {
    content: "";
    position: absolute;
    right: 11px;
    bottom: 0;
    left: 11px;
    height: 4px;
    border-radius: 7px 7px 0 0;
    background: linear-gradient(90deg, #ffb22b, #ff741a);
    transform: scaleX(0);
    transform-origin: center;
    transition: .24s ease;
}

.zi-menu-link:hover,
.zi-menu-link.is-active,
.zi-has-dropdown:focus-within > .zi-menu-link {
    background: rgba(255, 255, 255, .09);
    color: #fff !important;
}

.zi-menu-link:hover::after,
.zi-menu-link.is-active::after,
.zi-has-dropdown:focus-within > .zi-menu-link::after {
    transform: scaleX(1);
}

.zi-menu-link > i:last-child {
    font-size: 10px;
    transition: transform .2s ease;
}

.zi-nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 9px;
}

.zi-verify-button,
.zi-nav-apply-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    transition: .23s ease;
}

.zi-verify-button {
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(255, 255, 255, .11);
    color: #fff !important;
}

.zi-nav-apply-button {
    background: linear-gradient(135deg, #ff981f, #f15d17);
    color: #fff !important;
    box-shadow: 0 10px 22px rgba(239, 91, 23, .23);
}

.zi-verify-button:hover,
.zi-nav-apply-button:hover {
    color: #fff !important;
    transform: translateY(-2px);
}

/* Dropdown — closed by default */
.zi-dropdown-menu {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    z-index: 1600 !important;
    width: 270px !important;
    min-width: 270px !important;
    max-height: 430px;
    display: block !important;
    padding: 9px !important;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #e0e8f2 !important;
    border-top: 4px solid #ff861a !important;
    border-radius: 0 0 17px 17px !important;
    background: #fff !important;
    box-shadow: 0 24px 60px rgba(5, 37, 75, .24) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(12px) !important;
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease !important;
}

.zi-has-dropdown:hover > .zi-dropdown-menu,
.zi-has-dropdown:focus-within > .zi-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}

.zi-has-dropdown:hover > .zi-menu-link > i:last-child,
.zi-has-dropdown:focus-within > .zi-menu-link > i:last-child {
    transform: rotate(180deg);
}

.zi-dropdown-menu li {
    display: block !important;
    width: 100% !important;
}

.zi-dropdown-menu a {
    width: 100% !important;
    min-height: 43px;
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 9px 11px !important;
    border-radius: 10px;
    color: #243f5d !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal !important;
    transition: .2s ease;
}

.zi-dropdown-menu a i {
    width: 22px;
    color: #1469ac !important;
    text-align: center;
}

.zi-dropdown-menu a span {
    display: block !important;
    color: #243f5d !important;
    overflow-wrap: anywhere;
}

.zi-dropdown-menu a:hover {
    padding-left: 15px !important;
    background: #edf7ff !important;
    color: #0b5f9d !important;
}

.zi-dropdown-menu a:hover span {
    color: #0b5f9d !important;
}

.zi-course-dropdown {
    width: 330px !important;
}

/* Large laptop */
@media (max-width: 1320px) and (min-width: 1200px) {
    .zi-menu-link {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 11px;
    }

    .zi-nav-actions {
        padding-left: 5px;
    }

    .zi-verify-button {
        display: none;
    }

    .zi-nav-wrap.is-sticky .zi-sticky-brand span {
        display: none;
    }
}

/* Mobile/tablet navigation */
@media (max-width: 1199.98px) {
    .zi-brandbar-inner {
        min-height: 88px;
    }

    .zi-nav-inner {
        min-height: 60px;
        align-items: center;
        justify-content: space-between;
    }

    .zi-sticky-brand {
        display: flex;
    }

    .zi-mobile-toggle {
        width: 45px;
        height: 42px;
        display: block;
        padding: 8px 10px;
        border: 1px solid rgba(255, 255, 255, .22);
        border-radius: 12px;
        background: rgba(255, 255, 255, .11);
        cursor: pointer;
    }

    .zi-mobile-toggle span {
        width: 100%;
        height: 2px;
        display: block;
        margin: 5px 0;
        border-radius: 5px;
        background: #fff;
        transition: .23s ease;
    }

    .zi-mobile-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .zi-mobile-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .zi-mobile-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .zi-nav {
        position: absolute;
        top: 60px;
        right: 15px;
        left: 15px;
        z-index: 1700;
        max-height: calc(100vh - 80px);
        display: none;
        overflow-y: auto;
        border: 1px solid #dce7f3;
        border-radius: 0 0 20px 20px;
        background: #fff;
        box-shadow: 0 25px 65px rgba(7, 36, 72, .24);
    }

    .zi-nav.is-open {
        display: block;
    }

    .zi-menu {
        display: block !important;
        padding: 12px !important;
    }

    .zi-menu > li {
        display: block;
    }

    .zi-menu-link {
        width: 100%;
        min-height: 47px;
        justify-content: flex-start;
        padding: 0 12px;
        border-bottom: 1px solid #edf2f7;
        color: #213e5d !important;
        font-size: 13px;
        text-align: left;
    }

    .zi-menu-link > i:last-child {
        margin-left: auto;
    }

    .zi-menu-link::after {
        display: none;
    }

    .zi-menu-link:hover,
    .zi-menu-link.is-active,
    .zi-has-dropdown.is-open > .zi-menu-link {
        border-radius: 10px;
        background: #edf7ff;
        color: #0b5f9d !important;
    }

    .zi-dropdown-menu {
        position: static !important;
        width: auto !important;
        min-width: 0 !important;
        max-height: none !important;
        display: none !important;
        margin: 5px 0 7px !important;
        padding: 6px !important;
        overflow: visible;
        border: 0 !important;
        border-radius: 12px !important;
        background: #f4f8fc !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: none !important;
    }

    .zi-has-dropdown:hover > .zi-dropdown-menu,
    .zi-has-dropdown:focus-within > .zi-dropdown-menu {
        display: none !important;
    }

    .zi-has-dropdown.is-open > .zi-dropdown-menu {
        display: block !important;
    }

    .zi-has-dropdown.is-open > .zi-menu-link > i:last-child {
        transform: rotate(180deg);
    }

    .zi-dropdown-menu a {
        min-height: 41px;
        font-size: 12px;
    }

    .zi-nav-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 9px;
        padding: 0 12px 14px;
    }

    .zi-verify-button,
    .zi-nav-apply-button {
        min-height: 45px;
    }

    body.zi-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 767.98px) {
    .zi-topbar {
        display: none;
    }

    .zi-brandbar-inner {
        min-height: 78px;
        gap: 10px;
    }

    .zi-brand {
        max-width: calc(100% - 118px);
        gap: 9px;
    }

    .zi-logo-box {
        width: 55px;
        height: 55px;
        flex-basis: 55px;
        padding: 5px;
        border-radius: 15px;
    }

    .zi-logo-box img {
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .zi-brand-text {
        padding-left: 9px;
        border-left-width: 2px;
    }

    .zi-brand-text strong {
        font-size: 14px;
        line-height: 1.1;
    }

    .zi-brand-text small {
        display: none;
    }

    .zi-login-button {
        display: none;
    }

    .zi-apply-button {
        min-width: 106px;
        min-height: 47px;
        grid-template-columns: 1fr 14px;
        gap: 6px;
        padding: 7px 10px;
        border-radius: 13px;
    }

    .zi-apply-icon,
    .zi-apply-copy small {
        display: none;
    }

    .zi-apply-copy strong {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .zi-container {
        width: min(100% - 20px, 1300px);
    }

    .zi-brand {
        max-width: calc(100% - 94px);
    }

    .zi-logo-box {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .zi-logo-box img {
        max-width: 39px !important;
        max-height: 39px !important;
    }

    .zi-brand-text strong {
        font-size: 12px;
    }

    .zi-apply-button {
        min-width: 86px;
        padding: 7px 8px;
    }

    .zi-apply-arrow {
        display: none;
    }
}


/* =========================================================
   Institution Identity Header — Final Fit Design
========================================================= */
.zi-header .zi-brandbar {
    background:
        radial-gradient(circle at 12% 20%, rgba(13, 103, 179, .065), transparent 26%),
        linear-gradient(110deg, #ffffff 0%, #f8fbff 56%, #edf7ff 100%);
}

.zi-header .zi-brandbar-inner {
    min-height: 126px;
    gap: 22px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.zi-header .zi-institution-brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 310px);
    gap: 18px;
}

.zi-header .zi-institution-logo {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    padding: 7px;
    border-radius: 22px;
    border-color: #d5e3f1;
    box-shadow: 0 13px 34px rgba(15, 61, 111, .12);
}

.zi-header .zi-institution-logo img {
    max-width: 80px !important;
    max-height: 80px !important;
}

.zi-header .zi-institution-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding-left: 18px;
    border-left: 3px solid #ef7d15;
}

.zi-header .zi-institution-title {
    display: block;
    margin: 0;
    color: #a91f25;
    font-family: "Outfit", "Manrope", Arial, sans-serif;
    font-size: clamp(27px, 2.25vw, 39px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: .012em;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow:
        1px 1px 0 rgba(239, 193, 74, .82),
        -1px 1px 0 rgba(239, 193, 74, .82),
        1px -1px 0 rgba(239, 193, 74, .82),
        -1px -1px 0 rgba(239, 193, 74, .82),
        0 4px 13px rgba(126, 28, 32, .08);
}

.zi-header .zi-institution-subtitle {
    display: block;
    max-width: 930px;
    margin: 0;
    color: #26384d;
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(9.5px, .72vw, 12px);
    font-weight: 700;
    line-height: 1.42;
    letter-spacing: .005em;
}

.zi-header .zi-institution-runby {
    width: max-content;
    max-width: 100%;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 1px;
    padding: 3px 11px;
    border: 1px solid #d5e3f1;
    border-radius: 50px;
    background: linear-gradient(90deg, #f4f8fd, #ffffff);
    color: #102f55;
    box-shadow: 0 5px 16px rgba(15, 61, 111, .06);
    font-family: "Outfit", "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .035em;
}

.zi-header .zi-institution-runby i {
    color: #e57b17;
    font-size: 11px;
}

.zi-header .zi-brand-actions {
    width: 288px;
    flex: 0 0 288px;
    justify-content: flex-end;
}

.zi-header .zi-login-button {
    min-width: 95px;
    padding-right: 16px;
    padding-left: 16px;
}

.zi-header .zi-apply-button {
    min-width: 182px;
    grid-template-columns: 39px 1fr 15px;
    gap: 9px;
    padding-right: 12px;
    padding-left: 12px;
}

.zi-header .zi-apply-icon {
    width: 39px;
    height: 39px;
}

/* Keep identity readable on common laptop widths */
@media (max-width: 1320px) and (min-width: 1200px) {
    .zi-header .zi-brandbar-inner {
        min-height: 118px;
        gap: 16px;
    }

    .zi-header .zi-institution-brand {
        max-width: calc(100% - 270px);
        gap: 14px;
    }

    .zi-header .zi-institution-logo {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
        border-radius: 19px;
    }

    .zi-header .zi-institution-logo img {
        max-width: 70px !important;
        max-height: 70px !important;
    }

    .zi-header .zi-institution-copy {
        padding-left: 14px;
    }

    .zi-header .zi-institution-title {
        font-size: 28px;
    }

    .zi-header .zi-institution-subtitle {
        font-size: 9.3px;
        line-height: 1.36;
    }

    .zi-header .zi-institution-runby {
        font-size: 10.5px;
    }

    .zi-header .zi-brand-actions {
        width: 252px;
        flex-basis: 252px;
        gap: 8px;
    }

    .zi-header .zi-login-button {
        min-width: 82px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .zi-header .zi-apply-button {
        min-width: 162px;
    }
}

@media (max-width: 1199.98px) {
    .zi-header .zi-brandbar-inner {
        min-height: 112px;
        gap: 14px;
    }

    .zi-header .zi-institution-brand {
        max-width: calc(100% - 245px);
        gap: 13px;
    }

    .zi-header .zi-institution-logo {
        width: 80px;
        height: 80px;
        flex-basis: 80px;
        border-radius: 18px;
    }

    .zi-header .zi-institution-logo img {
        max-width: 67px !important;
        max-height: 67px !important;
    }

    .zi-header .zi-institution-copy {
        gap: 4px;
        padding-left: 13px;
    }

    .zi-header .zi-institution-title {
        font-size: clamp(22px, 2.55vw, 29px);
    }

    .zi-header .zi-institution-subtitle {
        font-size: 9px;
        line-height: 1.34;
    }

    .zi-header .zi-institution-runby {
        min-height: 22px;
        padding: 2px 9px;
        font-size: 10px;
    }

    .zi-header .zi-brand-actions {
        width: 226px;
        flex-basis: 226px;
        gap: 8px;
    }

    .zi-header .zi-login-button {
        min-width: 76px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .zi-header .zi-apply-button {
        min-width: 142px;
        min-height: 56px;
        grid-template-columns: 34px 1fr 13px;
        gap: 7px;
        border-radius: 16px;
    }

    .zi-header .zi-apply-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }
}

@media (max-width: 991.98px) {
    .zi-header .zi-brandbar-inner {
        min-height: 108px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .zi-header .zi-institution-brand {
        max-width: calc(100% - 124px);
        gap: 11px;
    }

    .zi-header .zi-institution-logo {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        border-radius: 17px;
    }

    .zi-header .zi-institution-logo img {
        max-width: 59px !important;
        max-height: 59px !important;
    }

    .zi-header .zi-institution-title {
        font-size: clamp(17px, 2.8vw, 23px);
        line-height: 1.05;
    }

    .zi-header .zi-institution-subtitle {
        display: -webkit-box;
        overflow: hidden;
        font-size: 8px;
        line-height: 1.28;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .zi-header .zi-institution-runby {
        font-size: 9px;
    }

    .zi-header .zi-brand-actions {
        width: 110px;
        flex-basis: 110px;
    }

    .zi-header .zi-login-button {
        display: none;
    }

    .zi-header .zi-apply-button {
        min-width: 106px;
        min-height: 49px;
        grid-template-columns: 1fr 13px;
        gap: 5px;
        padding: 7px 10px;
        border-radius: 14px;
    }

    .zi-header .zi-apply-icon,
    .zi-header .zi-apply-copy small {
        display: none;
    }

    .zi-header .zi-apply-copy strong {
        font-size: 11px;
    }
}

@media (max-width: 767.98px) {
    .zi-header .zi-brandbar-inner {
        min-height: 94px;
        gap: 7px;
    }

    .zi-header .zi-institution-brand {
        max-width: calc(100% - 91px);
        gap: 8px;
    }

    .zi-header .zi-institution-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        padding: 5px;
        border-radius: 14px;
    }

    .zi-header .zi-institution-logo img {
        max-width: 48px !important;
        max-height: 48px !important;
    }

    .zi-header .zi-institution-copy {
        gap: 2px;
        padding-left: 8px;
        border-left-width: 2px;
    }

    .zi-header .zi-institution-title {
        font-size: clamp(12px, 3.4vw, 17px);
        line-height: 1.07;
        letter-spacing: 0;
        text-shadow: none;
    }

    .zi-header .zi-institution-subtitle {
        display: -webkit-box !important;
        margin: 0;
        overflow: hidden;
        color: #42566e;
        font-size: clamp(6.2px, 1.55vw, 8px);
        font-weight: 700;
        line-height: 1.2;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .zi-header .zi-institution-runby {
        min-height: 17px;
        gap: 4px;
        margin-top: 0;
        padding: 1px 6px;
        font-size: clamp(6.8px, 1.65vw, 8px);
        letter-spacing: .015em;
    }

    .zi-header .zi-institution-runby i {
        font-size: 7px;
    }

    .zi-header .zi-brand-actions {
        width: 84px;
        flex-basis: 84px;
    }

    .zi-header .zi-apply-button {
        min-width: 82px;
        min-height: 43px;
        grid-template-columns: 1fr;
        padding: 6px 8px;
        text-align: center;
    }

    .zi-header .zi-apply-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .zi-header .zi-container {
        width: min(100% - 16px, 1300px);
    }

    .zi-header .zi-brandbar-inner {
        min-height: 90px;
    }

    .zi-header .zi-institution-brand {
        max-width: calc(100% - 75px);
        gap: 6px;
    }

    .zi-header .zi-institution-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        border-radius: 12px;
    }

    .zi-header .zi-institution-logo img {
        max-width: 39px !important;
        max-height: 39px !important;
    }

    .zi-header .zi-institution-copy {
        padding-left: 6px;
    }

    .zi-header .zi-institution-title {
        font-size: clamp(10px, 3vw, 13px);
    }

    .zi-header .zi-institution-subtitle {
        font-size: clamp(5.7px, 1.45vw, 7px);
        -webkit-line-clamp: 2;
    }

    .zi-header .zi-institution-runby {
        font-size: clamp(6px, 1.5vw, 7px);
    }

    .zi-header .zi-brand-actions {
        width: 69px;
        flex-basis: 69px;
    }

    .zi-header .zi-apply-button {
        min-width: 68px;
        min-height: 39px;
        padding-right: 5px;
        padding-left: 5px;
        border-radius: 11px;
    }

    .zi-header .zi-apply-copy strong {
        font-size: 9px;
    }
}


/* =========================================================
   Professional Institution Brand Overrides
========================================================= */
.zi-brandbar {
    background: linear-gradient(135deg, #fbfdff 0%, #f2f8ff 52%, #eef6ff 100%);
}
.zi-brandbar-inner {
    min-height: 124px;
    gap: 24px;
}
.zi-institution-brand {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 18px;
}
.zi-institution-logo {
    position: relative;
    width: 110px;
    height: 110px;
    flex: 0 0 110px;
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: linear-gradient(135deg, #fff7eb 0%, #ffffff 58%, #eef7ff 100%);
    box-shadow: 0 18px 45px rgba(14, 65, 118, .14);
    overflow: hidden;
}
.zi-logo-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255,153,51,.34) 0, rgba(255,153,51,.34) 10px, transparent 11px),
        radial-gradient(circle at 80% 25%, rgba(16,111,166,.20) 0, rgba(16,111,166,.20) 15px, transparent 16px),
        radial-gradient(circle at 25% 78%, rgba(34,197,94,.16) 0, rgba(34,197,94,.16) 15px, transparent 16px),
        linear-gradient(135deg, rgba(255,146,30,.10), rgba(21,114,177,.10));
}
.zi-logo-pattern::before,
.zi-logo-pattern::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,147,28,.24);
}
.zi-logo-pattern::before {
    width: 86px;
    height: 86px;
    top: -28px;
    left: -20px;
}
.zi-logo-pattern::after {
    width: 78px;
    height: 78px;
    right: -18px;
    bottom: -16px;
    border-color: rgba(23,117,223,.20);
}
.zi-logo-core {
    position: absolute;
    inset: 10px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(5px);
}
.zi-institution-logo img {
    max-width: 72px !important;
    max-height: 72px !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,.08));
}
.zi-institution-copy {
    min-width: 0;
    padding-left: 18px;
    border-left: 3px solid #ff8a1f;
}
.zi-institution-title {
    display: block;
    margin: 0;
    font-family: "Outfit", "Poppins", Arial, sans-serif;
    font-size: clamp(30px, 2.65vw, 54px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: .015em;
    text-transform: uppercase;
    color: #b3261e;
    text-shadow: 0 1px 0 #ffd36a, 0 2px 10px rgba(179,38,30,.08);
}
.zi-institution-subtitle {
    display: block;
    margin-top: 8px;
    max-width: 940px;
    color: #20344d;
    font-size: clamp(11px, .88vw, 16px);
    font-weight: 700;
    line-height: 1.42;
}
.zi-institution-runby {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 7px 14px;
    border: 1px solid #d8e4f2;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff 0%, #eef5ff 100%);
    color: #163860;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(16, 61, 114, .06);
}
.zi-institution-runby i {
    color: #ff9a1f;
    font-size: 13px;
}
.zi-brand-actions {
    align-self: center;
}
@media (max-width: 1199.98px) {
    .zi-brandbar-inner { min-height: 112px; gap: 18px; }
    .zi-institution-logo { width: 92px; height: 92px; flex-basis: 92px; border-radius: 24px; }
    .zi-logo-core { inset: 8px; border-radius: 18px; }
    .zi-institution-logo img { max-width: 60px !important; max-height: 60px !important; }
    .zi-institution-copy { padding-left: 14px; }
    .zi-institution-title { font-size: clamp(24px, 2.25vw, 40px); }
    .zi-institution-subtitle { font-size: 11px; }
}
@media (max-width: 991.98px) {
    .zi-brandbar-inner { min-height: auto; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
    .zi-institution-brand { width: 100%; gap: 12px; align-items: flex-start; }
    .zi-institution-logo { width: 74px; height: 74px; flex-basis: 74px; border-radius: 20px; }
    .zi-logo-core { inset: 6px; padding: 8px; border-radius: 15px; }
    .zi-institution-logo img { max-width: 48px !important; max-height: 48px !important; }
    .zi-institution-copy { padding-left: 10px; border-left-width: 2px; }
    .zi-institution-title { font-size: 19px; line-height: 1.08; }
    .zi-institution-subtitle { margin-top: 4px; font-size: 9px; line-height: 1.32; }
    .zi-institution-runby { margin-top: 7px; padding: 5px 10px; font-size: 10px; }
}
@media (max-width: 575.98px) {
    .zi-brandbar-inner { gap: 10px; }
    .zi-institution-brand { gap: 10px; }
    .zi-institution-logo { width: 58px; height: 58px; flex-basis: 58px; border-radius: 16px; }
    .zi-logo-core { inset: 5px; padding: 6px; border-radius: 12px; }
    .zi-institution-logo img { max-width: 36px !important; max-height: 36px !important; }
    .zi-institution-copy { padding-left: 8px; }
    .zi-institution-title { font-size: 13px; }
    .zi-institution-subtitle { font-size: 7px; line-height: 1.25; }
    .zi-institution-runby { font-size: 8px; padding: 5px 8px; gap: 6px; }
}
