/*
************************ Alumni & Student Sharing Pages ************************
*/
.sharings-page .btn-outline-primary {
    border: 1px solid #013D7C;
    color: #013D7C;
}
.sharings-page .bg-secondary {
    background: #EF7C02;
}
.sharings-page .btn-outline-primary:focus,
.sharings-page .btn-outline-primary:hover {
    border: 1px solid #013D7C;
    background: #013D7C;
    color: #fff;
    outline: none;
    box-shadow: none !important;
}
.sharings-page .search-bar {
    position: relative;
    flex: 1;
}
.sharings-page .ais-SearchBox-input {
    padding: .3rem 2.5rem !important;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
}
.sharings-page .ais-SearchBox-submit {
    left: .5rem;
}
.sharings-page .ais-SearchBox-reset:hover {
    fill: #fff;
}
.ais-ClearRefinements-button--disabled {
    display: none;
}
.ais-SortBy-select,
.ais-MenuSelect-select,
.ais-ClearRefinements-button,
.ais-ClearRefinements-button:hover {
    color: #013D7C;
}
.ais-ClearRefinements-button {
    margin-bottom: 0.25rem;
    white-space: nowrap;
}
.ais-CurrentRefinements-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
}
.ais-CurrentRefinements-item {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}
.ais-CurrentRefinements-category {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.25rem .5rem;
    background: #f5f5fa;
    border: 1px solid #b6b7d5;
    border-radius: 4px;
}
.ais-CurrentRefinements-categoryLabel {
    line-height: 22px;
    white-space: nowrap;
}
.ais-CurrentRefinements-delete {
    padding: 2px 4px;
    border-radius: 4px;
}
.ais-HitsPerPage-select:hover,
.ais-SortBy-select:hover {
    background: none;
    border: none;
}
.ais-RefinementList-item--selected {
    font-weight: normal;
    color: #EF7C02;
}
.phdshow .dropdown-menu,
.sharings-page .dropdown-menu {
    overflow: hidden;
    overflow-y: auto;
    min-width: 200px;
    max-height: 300px;
}
.sharings-page .dropdown-item:active,
.sharings-page .dropdown-item:focus,
.sharings-page .dropdown-item:hover {
    background: #013D7C;
    color: #fff;
}
.ais-RefinementList-labelText:hover {
    color: #EF7C02;
}
.sharings-page .ais-Hits-item {
    margin-top: 150px;
    padding: 20px;
    background: transparent;
    border: none;
    box-shadow: none;
}
.sharings-page .sharings-content .card {
    border: 1px solid #013D7C;
    box-shadow: 5px 5px 0 0 #B3C4D7;
    border-radius: 15px;
}
.sharings-page .sharings-content .card-title {
    background: #013D7C;
    margin-right: -30px;
    padding: 5px 10px;
    color: #fff;
}
.sharings-page .sharings-content .card-body {
    padding: 30px;
}
.sharings-page .sharings-content .card-footer {
    padding-top: 0;
    background: transparent;
    border: none;
}
.sharings-page .ais-Hits-item .card img {
    display: flex;
    margin: -150px auto 0;
    height: 200px;
    width: 200px;
    max-width: 100%;
    background: #ccc;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #3a3a3a;
    box-shadow: 5px 5px 0 0 #fad7b2;
}
.sharings-page .ais-Hits-item .card:hover,
.sharings-page .ais-Hits-item .card:hover img {
    transition: all 100ms ease-in-out;
    box-shadow: 0 0 0 0 #fad7b2;
}
.ais-highlight-highlighted, .ais-snippet-highlighted,
.ais-Highlight-highlighted, .ais-Snippet-highlighted {
    padding: 0;
    background-color: #ffc168;
    color: #215DAC;
    font-weight: 700;
}
.ais-Hits.ais-Hits--empty {
    padding: 100px 0;
    text-align: center;
}
.sharings-page .text-overflow {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alert .btn-close {
    box-sizing: content-box;
}
.alert .btn-close:hover {
    color: #000;
    background-color: transparent;
}

/*
************************ News Tabs Front Page ************************
*/
.newsfeed-page .searchbar {
    position: relative;
    flex: 1;
}
.newsfeed-page .searchbar .ais-SearchBox-form {
    border-radius: .25rem;
    background: transparent;
}
.newsfeed-page .searchbar .ais-SearchBox-form:before {
    color: #707070;
    caret-color: #707070;
}
.newsfeed-page .searchbar .ais-SearchBox-submit {
    left: .5rem;
}
.newsfeed-page .searchbar .ais-SearchBox-reset:hover {
    fill: #fff;
}
.newsfeed-page .ais-ClearRefinements-button {
    border-radius: 4px;
}
.newsfeed-page .searchbar .ais-SearchBox-input {
    border-radius: 4px;
}
.newsfeed-page .ais-CurrentRefinements-list .ais-CurrentRefinements-category {
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}
.newsfeed-page li:first-child.nav-item {
    margin-left: 0;
}
.newsfeed-page li.nav-item {
    margin-left: -30px;
}
.newsfeed-page li.nav-item button {
    height: 100%;
}
.newsfeed-page .nav-tabs {
    display: flex;
    align-items: stretch;
    list-style-type: none;
}
.newsfeed-page .nav-link {
    padding: 8px 30px;
    background: #F7F7F7;
    font-size: 16px;
    border: 1px solid #D8D8D8;
    color: #3D3D3D;
    border-radius: 16px 16px 0 0;
}
.newsfeed-page .nav-link.active {
    background: #003D7C;
    color: #fff;
    border: 1px solid transparent;
}
.newsfeed-page .form-select {
    color: #707070;
}
.newsfeed-page .form-select {
    box-shadow: 3px 3px 6px 3px rgba(0, 0, 0, 0.1);
}
.newsfeed-page .searchbar {
    color: #707070;
    background: #fff;
    border-radius: 4px;
}
.newsfeed-page .card {
    border-radius: 16px;
    border: 1px solid var(--color-dimgray-200);
    color: #3D3D3D;
    overflow: hidden;
}
.newsfeed-page .card .card-title {
    font-weight: 500;
    line-height: 28px;
    font-size: 20px;
}
.newsfeed-page .card .card-header,
.newsfeed-page .card .card-footer {
    background: transparent;
    border: none;
}
.newsfeed-page .featured_person p {
    margin-bottom: 0;
    line-height: 18px;
}
.newsfeed-page .card .btn-default {
    background-color: #003D7C;
    border-radius: 8px;
    border: 1px solid #003D7C;
    color: #fff;
}
.newsfeed-page .card .btn-default:hover {
    background-color: #EF7C02;
    border: 1px solid #EF7C02;
}
.newsfeed-page .thesis_advisor_photo_wrap {
    min-width: 20px;
    min-height: 20px;
    max-height: 20px;
    max-width: 20px;
    overflow: hidden;
    border-radius: 50px;
}
.newsfeed-page .thesis_advisor_photo_wrap img {
    height: 20px;
    width: 20px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}
.newsfeed-page .featured_person_photo_wrap {
    border-radius: 50px;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    overflow: hidden;
    border: 1px solid #ccc;
}
.newsfeed-page .featured_person_photo_wrap img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    margin: 0 auto;
}
.newsfeed-page .headline-img {
    height: 250px;
    overflow: hidden;
    display: flex;
}
.newsfeed-page .headline-img .card-img-top {
    height: 250px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.newsfeed-page .read-more-btn {
    color: #EF7C02;
    cursor: pointer;
}
.newsfeed-page .talk-category-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin: 10px;
    padding: 5px 10px;
    background: #ccc;
    color: #3D3D3D;
    font-weight: 500;
    border-radius: 8px;
}

.newsfeed-page {
    --nf-blue: #115AA6;
    --nf-blue-dark: #0B3F78;
    --nf-blue-soft: #DFF0FF;
    --nf-blue-pale: #F8FCFF;
    --nf-border: #B7D2EA;
    --nf-text: #183B5B;
    --nf-muted: #617B92;
    --nf-shadow: 0 8px 18px rgba(17, 90, 166, 0.07);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 28%, #eef7ff 100%);
    border-radius: 28px;
}

.newsfeed-page .container-3xl {
    position: relative;
    width: 100%;
    max-width: 100%;
}

#newsfeed_list_page .nf-toolbar {
    background: #E5F3FF;
    border-radius: 18px;
    padding: 0 16px;
    box-shadow: none;
}

#newsfeed_list_page .nf-toolbar--newsroom {
    background: rgba(255, 255, 255, 0.96);
    border: none;
    box-shadow: none;
}

#newsfeed_list_page .nf-toolbar .custom-filter-placeholder,
#newsfeed_list_page .nf-toolbar .custom-dropdown,
#newsfeed_list_page .nf-toolbar .custom-dropdown.opened input {
    border: none !important;
    box-shadow: none !important;
}

#newsfeed_list_page .nf-toolbar--newsroom .custom-filter-placeholder,
#newsfeed_list_page .nf-toolbar--newsroom .custom-dropdown,
#newsfeed_list_page .nf-toolbar--newsroom .custom-dropdown.opened input,
#newsfeed_list_page .nf-toolbar--newsroom .custom-nonacf-input-wrapper,
#newsfeed_list_page .nf-toolbar--newsroom .ais-SearchBox,
#newsfeed_list_page .nf-toolbar--newsroom .ais-SearchBox-form {
    border: 1px solid rgba(17, 90, 166, 0.12) !important;
    box-shadow: none !important;
    background: #fff !important;
}

#newsfeed_list_page .nf-toolbar__searchrow {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) repeat(2, minmax(150px, 180px)) auto;
    gap: 14px;
    align-items: center;
}

#newsfeed_list_page #event_primary_filter_origin,
#newsfeed_list_page #talk_primary_filter_origin,
#newsfeed_list_page #award_primary_filter_origin,
#newsfeed_list_page #publication_primary_filter_origin {
    display: contents;
}

#newsfeed_list_page [data-mobile-primary-filter] {
    min-width: 0;
}

#newsfeed_list_page [data-mobile-primary-filter] .custom-filter-placeholder,
#newsfeed_list_page [data-mobile-primary-filter] .custom-dropdown {
    width: 100%;
}

#newsfeed_list_page .nf-toolbar__search,
#newsfeed_list_page .nf-toolbar .custom-nonacf-input-wrapper,
#newsfeed_list_page .nf-toolbar .ais-SearchBox,
#newsfeed_list_page .nf-toolbar .ais-SearchBox-form {
    min-height: 42px !important;
    height: 42px !important;
    border-radius: 12px !important;
}

#newsfeed_list_page .nf-toolbar .ais-SearchBox-input,
#newsfeed_list_page .nf-toolbar .ais-SearchBox-form input,
#newsfeed_list_page .nf-toolbar .custom-nonacf-input-wrapper input {
    min-height: 40px !important;
    height: 40px !important;
}

#newsfeed_list_page .nf-toolbar__actions {
    justify-self: end;
}

#newsfeed_list_page .nf-modal-filterstack {
    margin-bottom: 12px;
}

#newsfeed_list_page .nf-modal-toggles {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

#newsfeed_list_page .nf-filter-btn,
#newsfeed_list_page .nf-calendar-btn {
    min-height: 42px;
    height: 42px;
    border-radius: 12px;
}

#newsfeed_list_page .news-list-wrapper .custom-card,
#newsfeed_list_page .news-list-wrapper .custom-card *,
#newsfeed_list_page .nf-cover-row .custom-card,
#newsfeed_list_page .nf-cover-row .custom-card * {
    cursor: pointer;
}

#newsfeed_list_page .news-list-wrapper .custom-card,
#newsfeed_list_page .nf-cover-row .custom-card {
    border: none;
    border-radius: 16px;
    overflow: visible;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 8px 24px rgba(15, 34, 58, 0.08);
    transition: transform .22s ease, box-shadow .22s ease;
}

#newsfeed_list_page .nf-cover-row .custom-card {
    box-shadow: none;
}

#newsfeed_list_page .news-list-wrapper .custom-card:hover,
#newsfeed_list_page .nf-cover-row .custom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(15, 34, 58, 0.14);
}

#newsfeed_list_page .nf-cover-row .custom-card:hover {
    box-shadow: none;
}

#newsfeed_list_page .news-list-wrapper .custom-card-body,
#newsfeed_list_page .nf-cover-row .custom-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card__top,
#newsfeed_list_page .nf-cover-row .nf-list-card__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0 !important;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card__bottom,
#newsfeed_list_page .nf-cover-row .nf-list-card__bottom {
    display: flex;
    flex-direction: column;
    margin-top: 4px;
    gap: 8px;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card--whatson #custom-card-image-wrapper,
#newsfeed_list_page .nf-cover-row .nf-list-card--whatson #custom-card-image-wrapper {
    height: 188px !important;
    min-height: 188px !important;
    max-height: 188px !important;
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card--newsroom #custom-card-image-wrapper,
#newsfeed_list_page .nf-cover-row .nf-list-card--newsroom #custom-card-image-wrapper {
    height: 176px !important;
    min-height: 176px !important;
    max-height: 176px !important;
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

#newsfeed_list_page .news-list-wrapper #custom-card-image-wrapper .nf-list-card__img,
#newsfeed_list_page .nf-cover-row #custom-card-image-wrapper .nf-list-card__img {
    width: 100%;
    height: 100% !important;
    min-height: inherit !important;
    max-height: inherit !important;
    display: block;
}

#newsfeed_list_page .news-list-wrapper #custom-card-image-wrapper .nf-list-card__img--bg,
#newsfeed_list_page .nf-cover-row #custom-card-image-wrapper .nf-list-card__img--bg {
    position: absolute;
    inset: 0;
    object-fit: cover !important;
    filter: blur(10px);
    transform: scale(1.06);
}

#newsfeed_list_page .news-list-wrapper #custom-card-image-wrapper .nf-list-card__img--main,
#newsfeed_list_page .nf-cover-row #custom-card-image-wrapper .nf-list-card__img--main {
    position: relative;
    z-index: 1;
    object-fit: contain !important;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card__ribbon,
#newsfeed_list_page .nf-cover-row .nf-list-card__ribbon {
    position: absolute;
    top: 12px;
    left: -12px;
    z-index: 2;
    max-width: 75%;
    pointer-events: none;
}

#newsfeed_list_page .news-list-wrapper .nf-list-card--muted,
#newsfeed_list_page .nf-cover-row .nf-list-card--muted {
    background: linear-gradient(180deg, #f3f5f7 0%, #eef2f5 100%);
}

#newsfeed_list_page .news-list-wrapper .nf-list-card--muted .custom-card-title,
#newsfeed_list_page .news-list-wrapper .nf-list-card--muted .custom-card-title a,
#newsfeed_list_page .news-list-wrapper .nf-list-card--muted .nf-card__meta,
#newsfeed_list_page .news-list-wrapper .nf-list-card--muted .nf-card__year,
#newsfeed_list_page .nf-cover-row .nf-list-card--muted .custom-card-title,
#newsfeed_list_page .nf-cover-row .nf-list-card--muted .custom-card-title a,
#newsfeed_list_page .nf-cover-row .nf-list-card--muted .nf-card__meta,
#newsfeed_list_page .nf-cover-row .nf-list-card--muted .nf-card__year {
    color: #70808f !important;
}

#newsfeed_list_page .news-list-wrapper .nf-card__title,
#newsfeed_list_page .news-list-wrapper .nf-card__title a,
#newsfeed_list_page .nf-cover-row .nf-card__title,
#newsfeed_list_page .nf-cover-row .nf-card__title a {
    color: #0f2e4d;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#newsfeed_list_page .news-list-wrapper .nf-card__title a:hover,
#newsfeed_list_page .nf-cover-row .nf-card__title a:hover {
    text-decoration: underline;
}

#newsfeed_list_page .news-list-wrapper .nf-card__meta,
#newsfeed_list_page .nf-cover-row .nf-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #5f7386;
    font-size: 13px;
    line-height: 1.45;
}

#newsfeed_list_page .news-list-wrapper .nf-card__meta i,
#newsfeed_list_page .nf-cover-row .nf-card__meta i {
    color: #115AA6;
    width: 14px;
    margin-top: 3px;
    flex: 0 0 14px;
    text-align: center;
}

#newsfeed_list_page .news-list-wrapper .nf-card__chips,
#newsfeed_list_page .nf-cover-row .nf-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#newsfeed_list_page .news-list-wrapper .nf-card__pill,
#newsfeed_list_page .nf-cover-row .nf-card__pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #EAF4FF;
    color: #115AA6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

#newsfeed_list_page .news-list-wrapper .nf-card__pill--warm,
#newsfeed_list_page .nf-cover-row .nf-card__pill--warm {
    background: #FFF1D7;
    color: #A66217;
}

#newsfeed_list_page .news-list-wrapper .nf-card__pill--ended,
#newsfeed_list_page .nf-cover-row .nf-card__pill--ended {
    background: #F3F4F6;
    color: #6B7280;
}

#newsfeed_list_page .news-list-wrapper .nf-card__pill--ghost,
#newsfeed_list_page .nf-cover-row .nf-card__pill--ghost {
    background: #F2F7FB;
    color: #617B92;
}

#newsfeed_list_page .news-list-wrapper .nf-card__snippet,
#newsfeed_list_page .nf-cover-row .nf-card__snippet {
    color: #617B92;
    font-size: 13px;
    line-height: 1.5;
}

#newsfeed_list_page .news-list-wrapper .nf-card__snippet p,
#newsfeed_list_page .nf-cover-row .nf-card__snippet p {
    margin: 0;
}

#newsfeed_list_page .news-list-wrapper .nf-card__snippet p + p,
#newsfeed_list_page .nf-cover-row .nf-card__snippet p + p {
    margin-top: 4px;
}

#newsfeed_list_page .news-list-wrapper .nf-card__year,
#newsfeed_list_page .nf-cover-row .nf-card__year {
    margin-top: 2px;
    color: #617B92;
    font-size: 13px;
    font-weight: 600;
}

#newsfeed_list_page .news-list-wrapper .nf-card__cta,
#newsfeed_list_page .nf-cover-row .nf-card__cta {
    min-height: 36px;
    border-radius: 10px;
    border: 1px solid #CFE2F4 !important;
    background: #F7FBFF !important;
    color: #115AA6 !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

#newsfeed_list_page .news-list-wrapper .nf-card__cta:hover,
#newsfeed_list_page .nf-cover-row .nf-card__cta:hover {
    background: #EAF4FF !important;
    border-color: #A9CBE8 !important;
    color: #0B3F78 !important;
}

#newsfeed_list_page .news-list-wrapper .nf-card__cta--disabled,
#newsfeed_list_page .nf-cover-row .nf-card__cta--disabled {
    background: #F3F6F8 !important;
    border-color: #E0E8EE !important;
    color: #8392A0 !important;
    opacity: 1;
}

.newsfeed-page .nf-section {
    padding-top: 16px;
    padding-inline: 16px;
    padding-bottom: 0;
}

.newsfeed-page .nf-section-shell {
    border-radius: 24px;
    padding: 16px 0 24px;
    margin-top: 24px;
}

.newsfeed-page .nf-section-shell--whatson {
    background: linear-gradient(180deg, rgba(229, 243, 255, 0.78) 0%, rgba(241, 248, 255, 0.92) 100%);
}

.newsfeed-page .nf-section-shell--newsroom {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(244, 249, 255, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(17, 90, 166, 0.05);
}

#newsTabs_primary,
#newsTabs_secondary {
    padding: 14px 0 10px;
}

.newsfeed-page .nf-section__intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.newsfeed-page .nf-section__title {
    margin: 0;
    color: var(--nf-blue);
    font-size: clamp(1.9rem, 2.8vw + 0.6rem, 2.4rem);
    letter-spacing: 0.2px;
    line-height: 1.15;
    font-weight: 700;
}

.newsfeed-page .nf-section__subtitle {
    margin: 8px 0 0;
    color: var(--nf-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.newsfeed-page .nf-section__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 1px;
    width: min(100%, 280px);
    background: rgba(255, 255, 255, 0.52);
    border-radius: 18px;
    box-shadow: none;
    backdrop-filter: blur(8px);
    overflow: visible;
}

.newsfeed-page .nf-section__tabs .nav-item {
    min-width: 0;
    margin-left: 0 !important;
    width: 100%;
}

.newsfeed-page .nf-section__tabs .nav-link {
    border: none;
    background: transparent;
    color: rgba(17, 90, 166, 0.72);
    border-radius: 14px;
    padding: 7px 12px;
    font-weight: 600;
    line-height: 1.2;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    width: 100%;
    position: relative;
    z-index: 0;
    transition: transform 0.18s ease, background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.newsfeed-page .nf-section__tabs .nav-link:hover {
    color: var(--nf-blue);
    background: rgba(255, 255, 255, 0.45);
}

.newsfeed-page .nf-section__tabs .nav-link.active {
    background: #ffffff;
    color: var(--nf-blue);
    box-shadow: 0 6px 14px rgba(17, 90, 166, 0.1);
    z-index: 1;
    transform: translateY(-1px);
}

.newsfeed-page .nf-toolbar {
    border-radius: 24px;
    padding: 14px 14px 12px;
    border: none;
    box-shadow: 0 8px 24px rgba(17, 90, 166, 0.06);
}

.newsfeed-page .nf-toolbar--whatson {
    background: linear-gradient(180deg, #F7FBFF 0%, #EDF6FE 100%);
}

.newsfeed-page .nf-toolbar--newsroom {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.newsfeed-page .nf-toolbar__filters {
    margin-bottom: 0;
    align-items: center;
    row-gap: 10px;
}

.newsfeed-page .nf-toolbar__filters > [class*="col-"] {
    flex: 0 0 auto;
}

.newsfeed-page .nf-toolbar__searchrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -2px;
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.newsfeed-page .nf-toolbar__search {
    flex: 1 1 auto;
    margin-bottom: 0;
    min-height: 38px;
    padding: 0 4px;
    background: #fff;
    border-radius: 999px;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
}

.newsfeed-page .nf-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

.newsfeed-page .nf-toolbar__toggles {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.newsfeed-page .nf-toolbar__check {
    color: var(--nf-text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 0.9rem;
}

.newsfeed-page .nf-toolbar__check input {
    margin: 0;
}

.newsfeed-page .nf-calendar-btn {
    background: #EAF5FF;
    color: var(--nf-blue);
    border: none;
    border-radius: 999px;
    min-height: 38px;
    padding: 0 14px;
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#openEventsCalendar.nf-calendar-btn {
    background: rgba(17, 90, 166, 0.08);
    min-width: 42px;
    width: auto;
    padding: 0 14px;
}

.newsfeed-page .nf-calendar-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(17, 90, 166, 0.12);
}

.newsfeed-page .nf-filter-btn {
    min-height: 38px;
    padding: 0 12px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--nf-blue);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.88rem;
}

.newsfeed-page .nf-refinements {
    margin-top: 0;
    margin-bottom: 4px;
}

.newsfeed-page .nf-tab-content .tab-pane {
    padding-bottom: 10px;
}

.newsfeed-page .news-list-wrapper {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
}

.newsfeed-page .nf-cover-row {
    --nf-cover-visible-cols: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (16px * (var(--nf-cover-visible-cols) - 1))) / var(--nf-cover-visible-cols));
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px 0 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.newsfeed-page .nf-cover-row .nf-cover-card {
    width: 100%;
    min-width: 0;
    scroll-snap-align: start;
}

.newsfeed-page .nf-cover-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 2px auto 0;
    min-height: 24px;
    color: var(--nf-blue);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    pointer-events: none;
    width: fit-content;
}

.newsfeed-page .nf-cover-scroll-cue[data-visible="yes"] {
    opacity: 1;
    transform: translateY(0);
}

.newsfeed-page .nf-cover-scroll-cue__arrows {
    display: inline-flex;
    align-items: center;
    animation: nf-cover-scroll-arrow 1.35s ease-in-out infinite;
    will-change: transform, opacity;
}

.newsfeed-page .nf-cover-scroll-cue__arrows i {
    display: inline-block;
    font-size: 0.9rem;
    opacity: 0.85;
}

@keyframes nf-cover-scroll-arrow {
    0%,
    100% {
        transform: translateX(0);
        opacity: 0.55;
    }
    50% {
        transform: translateX(4px);
        opacity: 0.9;
    }
}

.newsfeed-page .nf-card {
    overflow: hidden !important;
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(17, 90, 166, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.newsfeed-page .nf-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(17, 90, 166, 0.11);
}

.newsfeed-page .nf-card--muted {
    background: rgba(228, 228, 228, 0.5);
    color: #6F7882;
}

.newsfeed-page .nf-card--muted .nf-card__title,
.newsfeed-page .nf-card--muted .nf-card__title a,
.newsfeed-page .nf-card--muted .nf-card__meta i,
.newsfeed-page .nf-card--muted .nf-card__pill {
    color: #6F7882;
}

.newsfeed-page .nf-card--muted .nf-card__pill,
.newsfeed-page .nf-card--muted .nf-card__pill--ghost {
    background: rgba(255, 255, 255, 0.78);
}

.newsfeed-page .nf-card__imagewrap {
    background: #EAF4FF;
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    min-height: 0 !important;
    max-height: none !important;
}

.newsfeed-page .nf-card__media-frame {
    border-radius: inherit;
    height: 100%;
    width: 100%;
    min-height: 100%;
    max-height: none !important;
}

.newsfeed-page .nf-card__image-link {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.newsfeed-page .nf-card__image-label {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    max-width: calc(100% - 28px);
    padding: 7px 11px;
    border-radius: 7px;
    background: rgba(244, 230, 182, 0.95);
    color: #8A5A1B;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.newsfeed-page .nf-card-media__bg {
    filter: blur(14px);
    opacity: 0.38;
    transform: scale(1.08);
}

.newsfeed-page .nf-card-media__img {
    display: block;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 100%;
    max-height: none !important;
}

.newsfeed-page .nf-card-media__img--dynamic {
    object-fit: cover;
    object-position: center center;
}

.newsfeed-page .nf-card-media__img--contain {
    object-fit: contain;
    object-position: center top;
}

.newsfeed-page .nf-card-media__img--fill {
    object-fit: cover;
    object-position: center top;
}

.newsfeed-page .nf-card--whatson .headline-img,
.newsfeed-page .nf-card--whatson .nf-card__imagewrap,
.newsfeed-page .nf-card--whatson .headline-img .card-img-top {
    height: 156px !important;
    min-height: 156px !important;
    max-height: 156px !important;
}

.newsfeed-page .nf-card--newsroom .headline-img,
.newsfeed-page .nf-card--newsroom .nf-card__imagewrap,
.newsfeed-page .nf-card--newsroom .headline-img .card-img-top {
    height: 144px !important;
    min-height: 144px !important;
    max-height: 144px !important;
}

.newsfeed-page .news-list-wrapper .headline-img,
.newsfeed-page .news-list-wrapper .headline-img .card-img-top,
.newsfeed-page .news-list-wrapper .headline-img .nf-card__media-frame,
.newsfeed-page .news-list-wrapper .headline-img .nf-card__image-link,
.newsfeed-page .news-list-wrapper .headline-img .nf-card-media__img {
    width: 100% !important;
    height: 100% !important;
    min-height: inherit !important;
    max-height: none !important;
}

.newsfeed-page .nf-card__body {
    min-height: 174px;
    padding: 14px 14px 14px !important;
}

.newsfeed-page .nf-card__chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.newsfeed-page .nf-card__pill {
    display: inline-flex;
    align-items: center;
    border-radius: 7px;
    padding: 4px 8px;
    font-size: 0.67rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #EAF4FF;
    color: var(--nf-blue);
}

.newsfeed-page .nf-card__pill--warm {
    background: #FFF1D7;
    color: #B46A1B;
}

.newsfeed-page .nf-card__pill--ghost {
    background: #EAF4FF;
    color: var(--nf-muted);
}

.newsfeed-page .nf-card__pill--ended {
    background: #F3F4F6;
    color: #6B7280;
}

.newsfeed-page .nf-card__title,
.newsfeed-page .nf-card__title a {
    color: var(--nf-blue);
    font-size: 0.98rem;
    line-height: 1.38;
    text-decoration: none;
    font-weight: 700;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.newsfeed-page .nf-card__title a:hover {
    text-decoration: underline;
}

.newsfeed-page .nf-card__meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--nf-muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.newsfeed-page .nf-card__meta + .nf-card__meta {
    margin-top: -2px;
}

.newsfeed-page .nf-card__meta i {
    color: var(--nf-blue);
    margin-top: 3px;
    width: 14px;
    text-align: center;
    flex: 0 0 14px;
}

.newsfeed-page .nf-card__footer {
    padding-top: 8px;
}

.newsfeed-page .nf-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    padding: 0 14px;
    font-size: 0.84rem !important;
    font-weight: 600 !important;
    border: 1px solid #B7D2EA !important;
    background: #F7FBFF !important;
    color: var(--nf-blue) !important;
    box-shadow: none !important;
}

.newsfeed-page .nf-card__cta--disabled {
    cursor: default;
    border-color: #D7E2EC !important;
    background: #F5F7F9 !important;
    color: #8392A0 !important;
    opacity: 1;
}

.newsfeed-page .nf-card__cta:hover {
    background: #EAF4FF !important;
    border-color: #8FB9E0 !important;
    color: var(--nf-blue-dark) !important;
}

.newsfeed-page .nf-card__snippet {
    color: var(--nf-muted);
    font-size: 0.84rem;
    line-height: 1.55;
}

.newsfeed-page .nf-card__snippet p {
    margin: 0;
}

.newsfeed-page .nf-card__snippet p + p {
    margin-top: 4px;
}

.newsfeed-page .nf-card__year {
    margin-top: 10px;
    color: var(--nf-muted);
    font-weight: 500;
    font-size: 0.84rem;
}

.newsfeed-page .nf-card .programme-faculty-card,
.newsfeed-page .nf-card .faculty-label {
    display: none !important;
}

.newsfeed-page #event-list-carousel .swiper {
    overflow: visible;
    padding-bottom: 4px;
}

.newsfeed-page #event-list-carousel .swiper-wrapper {
    align-items: stretch;
}

.newsfeed-page #event-list-carousel .swiper-slide {
    width: min(248px, calc(100vw - 56px));
}

.newsfeed-page #event-list-carousel .swiper-button-next,
.newsfeed-page #event-list-carousel .swiper-button-prev {
    color: var(--nf-blue);
}

.newsfeed-page #event-list-carousel {
    display: none !important;
}

.newsfeed-page .nf-refinements--layered {
    position: relative;
    z-index: 3;
}

.newsfeed-page .nf-page-state {
    min-height: 0;
}

.newsfeed-page .nf-page-state:empty {
    display: none !important;
}

.newsfeed-page .nf-page-state:not(:empty) {
    min-height: 600px;
    display: flex;
}

.newsfeed-page .nf-calendar-modal .modal-dialog {
    max-width: 1000px;
    margin: 1rem auto;
}

.newsfeed-page .nf-calendar-modal .modal-content {
    border-radius: 18px;
    max-height: calc(100dvh - 2rem);
    display: flex;
    flex-direction: column;
}

.newsfeed-page .nf-calendar-modal .modal-header {
    background: #C9DFF3;
    border-bottom: 1px solid #B7D2EA;
}

.newsfeed-page .nf-calendar-modal .modal-title {
    color: #115AA6;
    font-weight: 700;
}

.newsfeed-page .nf-calendar-modal .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.newsfeed-page .nf-calendar-modal__wrap {
    min-height: 200px;
    max-height: none;
    padding: 8px;
    border-radius: 14px;
    background: rgba(229, 243, 255, 0.6);
}

.newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-dialog {
    width: min(100% - 1rem, 1000px);
    max-width: 1000px;
    min-height: calc(100dvh - 1rem);
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
}

.newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-content {
    position: relative;
    bottom: auto;
    width: 100%;
    min-height: 0;
    max-height: min(88dvh, 920px);
    margin: auto;
    border-radius: 18px;
    transform: none;
}

.newsfeed-page .nf-calendar-modal.modal-sheet-mobile.show .modal-content {
    transform: none;
}

.newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-body {
    overflow: auto;
    padding-bottom: 24px;
}

.newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-content,
.newsfeed-page .nf-calendar-modal.modal-sheet-mobile .nf-calendar-modal__wrap,
.newsfeed-page .nf-calendar-modal.modal-sheet-mobile #eventsCalendar {
    min-height: 0;
}

@media (max-width: 768px) {
    .newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-dialog {
        width: calc(100% - 1rem);
        min-height: calc(100dvh - 1rem);
        margin: 0.5rem auto;
        align-items: center;
    }

    .newsfeed-page .nf-calendar-modal.modal-sheet-mobile .modal-content {
        max-height: calc(100dvh - 1rem);
        width: 100%;
    }
}

.nf-filters-modal .modal-dialog {
    max-width: 420px;
}

.nf-filters-modal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 18px 40px rgba(17, 90, 166, 0.14);
}

.nf-filters-modal .modal-header {
    border-bottom: 1px solid #E4EEF8;
    padding: 18px 20px 14px;
}

.nf-filters-modal .modal-body {
    padding: 16px 20px 20px;
}

.nf-filters-modal .nf-toolbar__filters,
.nf-filters-modal .nf-toolbar__toggles {
    margin: 0 !important;
}

.nf-filters-modal .nf-toolbar__filters {
    display: flex !important;
    row-gap: 12px;
}

.nf-filters-modal .nf-toolbar__toggles {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
}

.newsfeed-page .custom-filter-placeholder > button,
.newsfeed-page .custom-filter-placeholder .dropdown-toggle,
.newsfeed-page .custom-filter-placeholder .btn {
    border-radius: 10px !important;
    border: none !important;
    min-height: 38px;
    font-size: 0.88rem;
    background: #fff !important;
    box-shadow: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.newsfeed-page .custom-nonacf-input-wrapper input {
    border-radius: 999px !important;
    border: none !important;
    min-height: 38px;
    height: 38px;
    font-size: 0.88rem;
    background: #fff !important;
    box-shadow: none !important;
    outline: none !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.newsfeed-page .nf-toolbar .searchbar,
.newsfeed-page .nf-toolbar .ais-SearchBox,
.newsfeed-page .nf-toolbar .ais-SearchBox-form {
    position: relative;
    display: block;
    background: transparent;
    border: none !important;
    border-radius: 999px !important;
    min-height: 38px;
    box-shadow: none !important;
    padding: 0 !important;
}

.newsfeed-page .nf-toolbar .ais-SearchBox-input,
.newsfeed-page .nf-toolbar .ais-SearchBox-form input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    min-height: 38px;
    height: 38px;
    width: 100%;
    padding-left: 38px !important;
    padding-right: 38px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 0.88rem;
}

.newsfeed-page .nf-toolbar .ais-SearchBox-submit,
.newsfeed-page .nf-toolbar .ais-SearchBox-reset {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    z-index: 2;
}

.newsfeed-page .nf-toolbar .ais-SearchBox-submit {
    left: 4px !important;
}

.newsfeed-page .nf-toolbar .ais-SearchBox-reset {
    right: 4px !important;
}

.newsfeed-page .nf-toolbar .searchbar,
.newsfeed-page .nf-toolbar .custom-nonacf-input-wrapper,
.newsfeed-page .nf-toolbar .ais-SearchBox,
.newsfeed-page .nf-toolbar .ais-SearchBox-form,
.newsfeed-page .nf-toolbar .custom-search-bar {
    width: 100%;
    margin: 0 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.newsfeed-page .nf-toolbar .ais-SearchBox-input:focus,
.newsfeed-page .nf-toolbar .ais-SearchBox-form:focus-within,
.newsfeed-page .custom-nonacf-input-wrapper input:focus,
.newsfeed-page .custom-filter-placeholder > button:focus,
.newsfeed-page .custom-filter-placeholder .dropdown-toggle:focus,
.newsfeed-page .custom-filter-placeholder .btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

@media (min-width: 768px) {
    .newsfeed-page .news-list-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .newsfeed-page .nf-cover-row {
        --nf-cover-visible-cols: 2;
    }

    .newsfeed-page .nf-toolbar__filters > [class*="col-"] {
        width: 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .newsfeed-page .news-list-wrapper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .newsfeed-page .nf-cover-row {
        --nf-cover-visible-cols: 3;
    }
}

@media (min-width: 1280px) {
    .newsfeed-page .news-list-wrapper {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }

    .newsfeed-page .nf-cover-row {
        --nf-cover-visible-cols: 4;
        gap: 18px;
        grid-auto-columns: calc((100% - (18px * (var(--nf-cover-visible-cols) - 1))) / var(--nf-cover-visible-cols));
    }

    .newsfeed-page .nf-toolbar__filters > [class*="col-"] {
        width: min(220px, 25%);
        max-width: 220px;
    }
}

@media (max-width: 991px) {
    #newsfeed_list_page .nf-toolbar__searchrow {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    #newsfeed_list_page #event_primary_filter_origin,
    #newsfeed_list_page #talk_primary_filter_origin,
    #newsfeed_list_page #award_primary_filter_origin,
    #newsfeed_list_page #publication_primary_filter_origin,
    #newsfeed_list_page [data-mobile-primary-filter] {
        display: none !important;
    }

    #newsfeed_list_page .nf-toolbar__actions {
        display: inline-flex !important;
        width: auto !important;
        justify-self: end;
        justify-content: flex-end;
        gap: 8px;
    }

    #newsfeed_list_page .nf-filter-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .newsfeed-page .nf-section__intro {
        align-items: flex-start;
        flex-direction: column;
    }

    .newsfeed-page .nf-section--whatson .nf-section__intro {
        align-items: center;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .newsfeed-page .nf-toolbar {
        padding: 14px;
        border-radius: 22px;
    }

    .newsfeed-page .nf-toolbar__search {
        margin-bottom: 0;
    }

    .newsfeed-page .nf-toolbar__actions {
        margin-bottom: 0;
    }
}

@media (max-width: 639px) {
    .newsfeed-page .nf-section__tabs {
        width: 100%;
    }

    .newsfeed-page .nf-section__tabs .nav-link {
        min-height: 44px;
    }

    #newsfeed_list_page .news-list-wrapper .nf-list-card--whatson #custom-card-image-wrapper {
        height: 156px !important;
        min-height: 156px !important;
        max-height: 156px !important;
    }

    #newsfeed_list_page .news-list-wrapper .nf-list-card--newsroom #custom-card-image-wrapper {
        height: 148px !important;
        min-height: 148px !important;
        max-height: 148px !important;
    }

    .newsfeed-page {
        padding-top: 8px !important;
    }

    .newsfeed-page .nf-section {
        padding-top: 12px;
    }

    .newsfeed-page .nf-section--newsroom {
        margin-top: 14px;
    }

    .newsfeed-page .nf-section__tabs {
        width: 100%;
    }

    .newsfeed-page .nf-section__tabs .nav-link {
        padding: 8px 13px;
        font-size: 0.88rem;
    }

    .newsfeed-page .nf-section__subtitle {
        font-size: 0.9rem;
    }

    #newsfeed_list_page .nf-toolbar__actions .nf-calendar-btn {
        padding: 0 12px;
    }

    .newsfeed-page .nf-page-state {
        min-height: 480px;
    }

    .newsfeed-page .nf-card--whatson .headline-img,
    .newsfeed-page .nf-card--whatson .nf-card__imagewrap,
    .newsfeed-page .nf-card--whatson .headline-img .card-img-top {
        height: 148px !important;
        min-height: 148px !important;
        max-height: 148px !important;
    }

    .newsfeed-page .nf-card--newsroom .headline-img,
    .newsfeed-page .nf-card--newsroom .nf-card__imagewrap,
    .newsfeed-page .nf-card--newsroom .headline-img .card-img-top {
        height: 136px !important;
        min-height: 136px !important;
        max-height: 136px !important;
    }

    .newsfeed-page .nf-card__body {
        min-height: unset;
    }
}

/*
************************ Portal Dashboard ************************
*/
.portal-tabs {
    padding: 30px;
}
.portal-tabs h2 {
    color: #3C3C3C;
    font-size: 24px;
    line-height: 54px;
    font-weight: 700;
}
.portal-tabs .home-tab-img {
    border-radius: 16px;
    box-shadow: 0 0 35px 10px rgba(0, 61, 124, 0.15);
}
.portal-tabs .form-control,
.portal-tabs .form-select {
    background: #DFF0FF;
}
.portal-tabs .nav {
    margin-right: 30px;
}
.portal-tabs .nav-pills .nav-link {
    padding: 10px 23px;
    border-radius: 20px;
    color: rgb(43, 153, 252);
}
.portal-tabs .nav-pills .nav-link.active {
    background: rgb(43, 153, 252);
    border-radius: 20px;
    color: #fff;
}
.portal-tabs .nav-pills .nav-link:hover {
    background: rgb(43, 153, 252);
    color: #fff;
    border-radius: 20px;
}
.portal-tabs .card {
    border: none;
    border-radius: 20px;
}
.portal-tabs .card-body {
    padding: 0;
}
.portal-tabs .tab-pane {
    padding: 60px;
    border: none;
    border-radius: 20px;
    background: #fff;
}
.portal-tabs .btn {
    padding: 6px 20px;
    background: #003D7C;
    border: none;
    border-radius: 8px;
}
.portal-tabs table {
    color: #3D3D3D;
}
.portal-tabs table,
.portal-tabs table tr,
.portal-tabs table tr th,
.portal-tabs table tr td {
    border-color: #003D7C;
}
.portal-tabs table th {
    background: rgb(222, 241, 255);
}
.portal-tabs table th,
.portal-tabs table td {
    padding: 10px;
}
.portal-tabs table td a,
.portal-tabs table td a:active {
    color: #2A99FB;
}
.portal-tabs .acf-form-submit {
    margin-top: 10px;
}
.thesis_advisor_searchbox {
    position: relative;
}
.thesis_advisor_searchbox .ais-SearchBox-form {
    height: auto;
}
.thesis_advisor_searchbox .ais-SearchBox-form:before {
    background: none;
}
.thesis_advisor_searchbox .ais-SearchBox-reset {
    top: 39%;
    right: 0.5rem;
}
.bootstrap_search_input {
    display: block;
    width: 100% !important;
    padding: 4px 8px 4px 40px !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4 !important;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    box-shadow: none;
    height: 40px;
    cursor: auto;
}
.bootstrap_search_input:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
}
.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}
.ais-SearchBox-form {
    background: transparent;
}
#programme_list_states {
    display: flex;
}
#programme_clear_refinements .ais-ClearRefinements-button {
    border-radius: 8px;
}
#programme_search_bar .ais-SearchBox-input {
    border-radius: 8px;
}
#programme_refinements .ais-CurrentRefinements-list .ais-CurrentRefinements-category {
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
}
.programme-card {
    border-radius: 16px;
    border: 1px solid rgba(112, 112, 112, 0.4);
    overflow: hidden;
}
.programme-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .12), 0 4px 8px rgba(0, 0, 0, .06);
    transition: transform .2s;
}
.scholarship-badge {
    position: absolute;
    top: 0;
    right: 0;
    margin-top: 16px;
    margin-right: 16px;
    color: #34B53A;
    background-color: #E2FBD7;
    padding: 2px 10px;
    border-radius: 16px;
    font-weight: 400;
    font-size: 14px;
}
.programme-title {
    font-weight: 600;
    font-size: 18px;
    line-height: 22px;
    color: #3C3C3C;
}
.programme-subtitle {
    margin-bottom: 0;
    color: #707070;
    font-weight: 400;
    font-size: 14px;
}
.btn-programme {
    background-color: #003D7C;
    border-radius: 8px;
    border: 1px solid #003D7C;
    color: #fff;
}
.btn-programme:hover {
    background-color: #EF7C02;
    border: 1px solid #EF7C02;
}
.sticky-bar {
    position: sticky;
    margin-top: 1px;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 9;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 20px rgba(42, 153, 251, 0.2);
}
.bg-programme-detail:nth-child(odd) {
    background: var(--color-whitesmoke);
}
.table-programme .table {
    margin-bottom: 0;
}
.table-programme td {
    background: #fff;
    text-align: center;
    border: 1px solid rgba(112, 112, 112, 0.4)
}
.table-programme th,
.table-programme td:first-child {
    background: #E4E4E4;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(112, 112, 112, 0.4);
}
.table-programme .row-head {
    width: 330px;
}

/*
************************ Thesis Advisor Single / PhD Profile ************************
*/
#thesis-advisor-single .card {
    overflow: hidden;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 31, 47, 0.08);
}

#phd-student-single .card {
    overflow: hidden;
    border: 1px solid rgba(112, 112, 112, 0.40);
    border-radius: 16px;
    padding: 15px 8px 10px;
}
#thesis-advisor-single .card-img-top,
#phd-student-single .card-img-top {
    object-fit: cover;
    object-position: center;
}

#thesis-advisor-single .faculty-label,
#phd-student-single .faculty-label {
    margin-left: -50px;
    min-height: fit-content;
    @media screen and (max-width: 1000px) {
        margin-left: -32px;
    }
}
#thesis-advisor-single .faculty-label .programme-faculty-card,
#phd-student-single .faculty-label .programme-faculty-card {
    position: relative;
    max-width: 100% !important;
}

#thesis-advisor-single .ta-profile-photo {
    margin-top: -160px;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #fff;
    @media screen and (max-width: 400px) {
        margin-top: -120px;
        width: 120px;
        height: 120px;
    }
}

#thesis-advisor-single .accordion-item,
#phd-progress-dashboard-single .accordion-item,
#phd-student-single .accordion-item {
    overflow: hidden;
    border: none;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 31, 47, 0.07);
}

#thesis-advisor-single .accordion-header,
#phd-progress-dashboard-single .accordion-header,
#phd-student-single .accordion-header {
    padding: 0 36px;
    @media screen and (max-width: 1000px) {
        padding: 0 18px;
    }
}
#thesis-advisor-single .accordion-button,
#phd-progress-dashboard-single .accordion-button,
#phd-student-single .accordion-button {
    padding: 24px 0;
    color: #333;
    background: transparent;
    box-shadow: none !important;
}
#thesis-advisor-single .accordion-body,
#phd-progress-dashboard-single .accordion-body,
#phd-student-single .accordion-body {
    padding: 24px 36px;
    @media screen and (max-width: 1000px) {
        padding: 12px 18px;
    }
    overflow-x: auto;
}
#thesis-advisor-single .card-body {
    padding: 24px 36px;
    @media screen and (max-width: 1000px) {
        padding: 24px 18px;
    }
}

#thesis_advisor_single_page .ta-single-banner-backlink,
.newsfeed-single-page .ta-single-banner-backlink {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    border: none;
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(5px);
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(12, 20, 31, 0.2);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

#thesis_advisor_single_page .ta-single-banner-backlink:hover,
.newsfeed-single-page .ta-single-banner-backlink:hover {
    background: rgba(17, 24, 39, 0.36);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(12, 20, 31, 0.28);
}

#thesis_advisor_single_page .ta-single-banner-backicon,
.newsfeed-single-page .ta-single-banner-backicon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 13px;
    flex: 0 0 auto;
}

#thesis_advisor_single_page .ta-single-banner-backtext,
.newsfeed-single-page .ta-single-banner-backtext {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: inherit;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #thesis_advisor_single_page .ta-single-banner-backlink,
    .newsfeed-single-page .ta-single-banner-backlink {
        top: 10px;
        left: 10px;
        padding: 7px 10px;
        gap: 6px;
    }

    #thesis_advisor_single_page .ta-single-banner-backtext,
    .newsfeed-single-page .ta-single-banner-backtext {
        font-size: 11px;
    }
}

/* Thesis advisor single: borderless student/alumni cards */
#thesis_advisor_single_page #research_students_hits .custom-card,
#thesis_advisor_single_page #research_alumni_hits .custom-card {
    border: none !important;
    box-shadow: 0 8px 20px rgba(15, 31, 47, 0.08);
    border-radius: 14px;
}

/* Thesis advisor single: borderless mentoring style blocks */
#thesis_advisor_single_page #thesis-advisor-mentoring-style .mentoring-style-list-wrapper > .p-3 {
    border: none !important;
    box-shadow: 0 6px 18px rgba(15, 31, 47, 0.06);
    border-radius: 12px;
    background: #fff;
}

#thesis_advisor_single_page #thesis-advisor-mentoring-style .ta-mentoring-style-link {
    color: #173a60;
    text-decoration: none;
}

#thesis_advisor_single_page #thesis-advisor-mentoring-style .ta-mentoring-style-link:hover {
    color: #0f4f93;
    text-decoration: underline;
}

/* Thesis advisor single: borderless page anchor */
#thesis_advisor_single_page .custom-page-anchor > .bg-white,
#thesis_advisor_single_page .custom-page-anchor-btn {
    border: none !important;
}

/*
************************ Newsfeed Single ************************
*/
.newsfeed-single-page {
    padding-inline: 0.25rem;
}

.newsfeed-single-page__browseall {
    width: 100%;
    margin-bottom: 12px;
}

.newsfeed-single-page__browseall--overlay {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    width: auto;
    margin-bottom: 0;
}

.newsfeed-single-page .ta-single-banner-backlink {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 11px;
    border-radius: 999px;
    border: none;
    background: rgba(17, 24, 39, 0.28);
    backdrop-filter: blur(5px);
    color: #ffffff;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 6px 18px rgba(12, 20, 31, 0.2);
    transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.newsfeed-single-page .ta-single-banner-backlink:hover {
    background: rgba(17, 24, 39, 0.36);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(12, 20, 31, 0.28);
}

.newsfeed-single-page .ta-single-banner-backicon {
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    font-size: 13px;
    flex: 0 0 auto;
}

.newsfeed-single-page .ta-single-banner-backtext {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: inherit;
    white-space: nowrap;
}

.newsfeed-single-page__banner {
    border-radius: 10px;
    min-height: 260px;
}

.newsfeed-single-page__title {
    max-width: 80%;
    margin-bottom: 48px;
    font-size: 2rem;
    line-height: 1.35;
    word-break: break-word;
}

.newsfeed-single-page__section {
    width: 100%;
}

.newsfeed-single-page__section-title {
    font-size: 1.5rem;
    line-height: 1.3;
}

.newsfeed-single-page__body-copy {
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.8;
}

.newsfeed-single-page__lead {
    font-size: 1.15rem;
    font-weight: 500;
    word-break: break-word;
}

.newsfeed-single-page__detail-list {
    font-size: 1.125rem;
}

.newsfeed-single-page__tag {
    font-size: 1rem;
}

.newsfeed-single-page__action-btn {
    font-size: 1.125rem;
}

.newsfeed-single-page__muted-inline {
    font-size: 1rem;
    font-weight: 400;
}

@media (max-width: 767.98px) {
    .newsfeed-single-page {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        padding-inline: 0;
    }

    .newsfeed-single-page__banner {
        min-height: 180px;
    }

    .newsfeed-single-page__browseall--overlay {
        top: 12px;
        left: 12px;
    }

    .newsfeed-single-page .ta-single-banner-backlink {
        top: 10px;
        left: 10px;
        padding: 7px 10px;
        gap: 6px;
    }

    .newsfeed-single-page .ta-single-banner-backtext {
        font-size: 11px;
    }

    .newsfeed-single-page__title {
        max-width: 100%;
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .newsfeed-single-page__section {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }

    .newsfeed-single-page__section-title {
        font-size: 1.125rem;
    }

    .newsfeed-single-page__body-copy,
    .newsfeed-single-page__detail-list,
    .newsfeed-single-page__lead {
        font-size: 0.95rem;
        line-height: 1.65;
    }

    .newsfeed-single-page__detail-list dt,
    .newsfeed-single-page__detail-list dd {
        margin-bottom: 0.35rem;
    }

    .newsfeed-single-page__tag {
        font-size: 0.875rem;
    }

    .newsfeed-single-page__action-btn {
        width: 100%;
        padding: 0.85rem 1rem !important;
        font-size: 1rem;
    }

    .newsfeed-single-page__muted-inline {
        display: inline-block;
        margin-left: 0 !important;
        margin-top: 0.35rem;
        font-size: 0.9rem;
    }

    .newsfeed-single-page .card h5 {
        font-size: 1rem;
    }

    .newsfeed-single-page .card p,
    .newsfeed-single-page .card h6 {
        font-size: 0.9rem !important;
    }
}

