:root {
    --unida-dark: #07516b;
    --unida-primary: #087b8f;
    --unida-secondary: #11a8a7;
    --unida-light: #eaf8f8;

    --text-primary: #122b3b;
    --text-secondary: #61727c;

    --page-bg: #f7f9fb;
    --white: #ffffff;

    --border-color: #e4e9ed;
}


/* =========================================================
   BASE
   ========================================================= */

body {
    margin: 0;
    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--page-bg);
    color: var(--text-primary);
}


a {
    text-decoration: none;
}


/* =========================================================
   NAVBAR
   ========================================================= */

.scholar-navbar {
    min-height: 64px;

    background: #ffffff;

    border-top: 3px solid var(--unida-dark);
    border-bottom: 1px solid #edf0f2;

    box-shadow: 0 1px 4px rgba(15, 35, 50, .04);

    z-index: 1000;
}


.scholar-navbar .container {
    max-width: 1180px;
}


.navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}


.brand-logo {
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: var(--unida-primary);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
}


.brand-text {
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}


.brand-unida {
    color: var(--unida-primary);
}


.brand-scholar {
    color: var(--unida-dark);
}


.scholar-navbar .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;

    padding: 9px 11px !important;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 500;

    color: #3f5360;
}


.scholar-navbar .nav-link i {
    font-size: 14px;
}


.scholar-navbar .nav-link:hover {
    background: #f0f8f8;
    color: var(--unida-primary);
}


.scholar-navbar .nav-link.active {
    background: #e8f6f7;

    color: var(--unida-primary);

    font-weight: 600;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-section {
    position: relative;

    overflow: hidden;

    min-height: 330px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            110deg,
            #0b6685 0%,
            #08778d 42%,
            #07516b 100%
        );
}


.hero-container {
    position: relative;
    z-index: 3;

    max-width: 1120px;
}


.hero-content {
    padding: 55px 20px 60px;
}


.hero-content h1 {
    color: white;

    font-size: 38px;
    line-height: 1.25;

    font-weight: 750;

    margin-bottom: 14px;
}


.hero-subtitle {
    color: rgba(255, 255, 255, .88);

    font-size: 18px;

    max-width: 780px;

    margin: 0 auto 30px;
}


.hero-search-wrapper {
    max-width: 650px;

    margin: auto;
}


.hero-search {
    height: 62px;

    background: white;

    border-radius: 11px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .08);
}


.hero-search i {
    font-size: 20px;

    color: #8798a3;

    margin-right: 13px;
}


.hero-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    font-size: 16px;

    color: #364a56;
}


.hero-search input::placeholder {
    color: #97a6ae;
}


/* =========================================================
   HERO NETWORK DECORATION
   ========================================================= */

.network-pattern {
    position: absolute;

    width: 600px;
    height: 300px;

    opacity: .18;

    background-image:
        linear-gradient(
            25deg,
            transparent 48%,
            white 49%,
            white 50%,
            transparent 51%
        ),
        linear-gradient(
            -20deg,
            transparent 48%,
            white 49%,
            white 50%,
            transparent 51%
        );

    background-size: 130px 85px;
}


.network-pattern-left {
    left: -80px;
    top: 20px;

    transform: rotate(-5deg);
}


.network-pattern-right {
    right: -100px;
    top: 20px;

    transform: rotate(5deg);
}


/* =========================================================
   BROWSE SECTION
   ========================================================= */

.browse-section {
    padding: 46px 0 70px;

    min-height: 450px;
}


.browse-section .container {
    max-width: 1180px;
}


.section-title {
    margin-bottom: 30px;

    font-size: 24px;

    font-weight: 750;

    color: #102b3a;
}


/* =========================================================
   CARDS
   ========================================================= */

.scholar-card {
    position: relative;

    height: 100%;
    min-height: 155px;

    display: block;

    padding: 22px 22px 20px;

    background: white;

    border: 1px solid var(--border-color);

    border-radius: 8px;

    color: inherit;

    box-shadow:
        0 1px 3px rgba(15, 35, 50, .08);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}


.scholar-card:hover {
    transform: translateY(-3px);

    border-color: rgba(17, 168, 167, .35);

    box-shadow:
        0 8px 24px rgba(30, 65, 80, .10);
}


.card-top {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    margin-bottom: 12px;
}


.card-icon {
    width: 44px;
    height: 44px;

    border-radius: 9px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


.card-count {
    font-size: 13px;

    font-weight: 700;
}


.scholar-card h3 {
    margin: -41px 60px 24px;

    min-height: 42px;

    display: flex;
    align-items: center;

    font-size: 17px;

    font-weight: 700;

    color: #102b3a;
}


.scholar-card p {
    margin: 0;

    color: #536b77;

    font-size: 14px;

    line-height: 1.45;
}


/* =========================================================
   CARD COLOR VARIANTS
   ========================================================= */

.scholar-card-researcher .card-icon {
    background: #e5f7f8;
    color: #0395aa;
}

.scholar-card-researcher .card-count {
    color: #0395aa;
}


.scholar-card-unit .card-icon {
    background: #f3ebff;
    color: #8c34e9;
}

.scholar-card-unit .card-count {
    color: #8c34e9;
}


.scholar-card-publication .card-icon {
    background: #e8f2ff;
    color: #0878d5;
}

.scholar-card-publication .card-count {
    color: #0878d5;
}


.scholar-card-project .card-icon {
    background: #e9f8ee;
    color: #14a448;
}

.scholar-card-project .card-count {
    color: #14a448;
}


.scholar-card-ip .card-icon {
    background: #fff6df;
    color: #e59600;
}

.scholar-card-ip .card-count {
    color: #e59600;
}


.scholar-card-outreach .card-icon {
    background: #e7f8f5;
    color: #009b8b;
}

.scholar-card-outreach .card-count {
    color: #009b8b;
}


.scholar-card-thesis .card-icon {
    background: #eeeeff;
    color: #6049ef;
}

.scholar-card-thesis .card-count {
    color: #6049ef;
}


/* =========================================================
   FOOTER
   ========================================================= */

.scholar-footer {
    padding: 22px 0;

    border-top: 1px solid #e3e9ec;

    background: white;

    color: #667985;

    font-size: 13px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991.98px) {

    .scholar-navbar .navbar-collapse {
        padding: 12px 0 15px;
    }

    .hero-section {
        min-height: 300px;
    }

    .hero-content {
        padding-top: 45px;
        padding-bottom: 50px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

}


@media (max-width: 767.98px) {

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-search {
        height: 56px;
    }

    .browse-section {
        padding-top: 35px;
    }

}

/* =========================================================
   GLOBAL SEARCH
   ========================================================= */

.hero-section {
    position: relative;
    overflow: visible;
    z-index: 20;
}

.hero-container,
.hero-content {
    position: relative;
    z-index: 5;
}

.network-pattern {
    pointer-events: none;
    z-index: 1;
}

.hero-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    z-index: 50;
}

#global-search-form {
    position: relative;
    width: 100%;
}

.hero-search {
    position: relative;
    z-index: 2;
}

.global-search-spinner {
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--unida-primary);
    transform: translateY(-50%);
    z-index: 3;
}

.global-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 520px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(18, 43, 59, .18);
    text-align: left;
    z-index: 9999;
}

.browse-section {
    position: relative;
    z-index: 1;
}

.global-search-group + .global-search-group {
    border-top: 1px solid #edf1f3;
}

.global-search-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px 8px;
}

.global-search-group-header > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-primary);
    font-size: .75rem;
    font-weight: 800;
}

.global-search-group-header > span i {
    color: var(--unida-primary);
}

.global-search-group-header > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--unida-primary);
    font-size: .68rem;
    font-weight: 700;
    text-decoration: none;
}

.global-search-group-header > a small {
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--unida-light);
    font-size: .62rem;
}

.global-search-group-items {
    padding: 0 7px 8px;
}

.global-search-item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: background .15s ease;
}

.global-search-item:hover {
    background: #f2f9fa;
}

.global-search-item-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--unida-light);
    color: var(--unida-primary);
}

.global-search-item-content {
    flex: 1 1 auto;
    min-width: 0;
}

.global-search-item-content strong {
    display: block;
    overflow: hidden;
    color: var(--text-primary);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-item-content small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #7f919a;
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.global-search-item-arrow {
    flex: 0 0 auto;
    color: #acbac1;
    font-size: .7rem;
}

.global-search-item-content mark {
    padding: 0 2px;
    border-radius: 2px;
    background: #fff1a8;
    color: inherit;
}

.global-search-empty,
.global-search-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 90px;
    padding: 20px;
    color: #82949d;
    font-size: .75rem;
}

.global-search-item.keyboard-active {
    background: var(--unida-light);
    outline: 1px solid rgba(8, 123, 143, .15);
}

.global-search-item.keyboard-active .global-search-item-icon {
    background: var(--unida-primary);
    color: #fff;
}

.global-search-item.keyboard-active .global-search-item-arrow {
    color: var(--unida-primary);
    transform: translateX(2px);
}

.global-search-item:hover,
.global-search-item.keyboard-active {
    background: var(--unida-light);
}