/** btn primary outline hover - white background begin */
.btn-primary-outline {
    background-color: #fff;
    color: #182f4a;
    border: 2px solid #182f4a;
}

/* Homepage responsive system
 * Keep these rules page-scoped so the same mobile patterns can be adopted by
 * other landing experiences without changing their existing functionality.
 */
.trialect-home-page {
    overflow-x: hidden;
}

.trialect-home-page .site-links {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    min-height: 200px;
}

.trialect-home-page .home-hero__title {
    font-size: 45pt !important;
    font-weight: normal !important;
}

.trialect-home-page .home-feature__title,
.trialect-home-page .home-feature__title > i {
    font-size: 30pt !important;
}

.trialect-home-page[data-kt-sticky-landing-header="on"] .landing-header .btn-primary-outline-white {
    border-color: #182f4a !important;
    color: #182f4a !important;
}

.trialect-home-page .home-testimonials h3[id] {
    scroll-margin-top: 90px;
}

.trialect-home-page .site-links > a {
    align-items: center;
    display: inline-flex;
    font-size: 14pt;
    gap: .35rem;
    margin-bottom: 15px;
    margin-right: 15px;
}

.trialect-home-page .site-links > a > i {
    font-size: 18pt;
    padding: 5px;
}

.trialect-home-page .custom-icon-logo {
    flex: 0 0 auto;
    width: 35px;
}

.trialect-home-page .home-section-spacer {
    height: 100px;
}

.trialect-home-page .home-section-spacer--small {
    height: 50px;
}

@media (max-width: 991.98px) {
    .trialect-home-page #kt_landing_menu_toggle,
    .trialect-home-page .landing-header .flex-equal:last-child .btn {
        min-height: 44px;
    }

    .trialect-home-page #kt_landing_menu_toggle {
        min-width: 44px;
    }

    .trialect-home-page .home-feature__content {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }

    .trialect-home-page .home-testimonials .container {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .trialect-home-page .landing-header .container {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .trialect-home-page .landing-header .container > .d-flex {
        gap: .5rem;
        min-height: 64px;
    }

    .trialect-home-page .landing-header .flex-equal:first-child {
        flex: 0 1 auto !important;
        min-width: 0;
    }

    .trialect-home-page #kt_landing_menu_toggle {
        flex: 0 0 44px;
        height: 44px;
        margin-right: .25rem !important;
        width: 44px;
    }

    .trialect-home-page .landing-header .logo-default,
    .trialect-home-page .landing-header .logo-sticky {
        height: auto !important;
        max-width: 105px;
        width: 100%;
    }

    .trialect-home-page .landing-header .flex-equal:last-child {
        display: flex;
        flex: 0 0 auto !important;
        gap: .4rem;
        margin-left: auto !important;
    }

    .trialect-home-page .landing-header .flex-equal:last-child .btn {
        align-items: center;
        display: inline-flex;
        font-size: 13px;
        justify-content: center;
        line-height: 1;
        margin: 0;
        min-height: 44px;
        padding: .65rem .75rem;
        text-align: center;
    }

    .trialect-home-page .home-hero__content {
        box-sizing: border-box;
        min-height: auto !important;
        padding: 2.25rem 1rem 1.5rem !important;
        width: 100% !important;
    }

    .trialect-home-page .home-hero__heading {
        box-sizing: border-box;
        margin: 0 auto 2rem !important;
        max-width: 36rem;
        padding: 0 !important;
        width: 100%;
    }

    .trialect-home-page .home-hero__title {
        font-size: clamp(2.25rem, 11vw, 3rem) !important;
        line-height: 1.12 !important;
        margin-bottom: 1.25rem !important;
        overflow-wrap: anywhere;
    }

    .trialect-home-page .home-hero__subtitle {
        font-size: clamp(18px, 5.2vw, 21px) !important;
        line-height: 1.5;
        margin: 0 auto;
        max-width: 34rem !important;
    }

    .trialect-home-page .site-links.home-hero__actions {
        display: grid;
        gap: .75rem;
        height: auto;
        min-height: 0;
        width: min(100%, 22rem);
    }

    .trialect-home-page .site-links.home-hero__actions > a {
        font-size: 15px;
        justify-content: center;
        margin: 0;
        min-height: 50px;
        padding: .75rem 1rem;
        width: 100%;
    }

    .trialect-home-page .site-links.home-hero__actions > a > i {
        font-size: 1.3rem;
        padding: 0;
    }

    .trialect-home-page .custom-icon-logo {
        width: 28px;
    }

    .trialect-home-page .home-hero__brands {
        gap: .75rem 1rem;
        margin-top: 2.25rem;
        padding: 0 !important;
        width: min(100%, 25rem);
    }

    .trialect-home-page .home-hero__brands > div {
        flex: 1 1 calc(25% - 1rem);
        margin: 0 !important;
        min-width: 58px;
    }

    .trialect-home-page .home-hero__brands img {
        height: auto;
        max-height: 28px !important;
        max-width: 100%;
    }

    .trialect-home-page .landing-curve {
        margin-bottom: 1.5rem !important;
    }

    .trialect-home-page .home-feature {
        margin-bottom: 0 !important;
        padding: 2.5rem 0;
    }

    .trialect-home-page .home-feature .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .trialect-home-page .home-feature__row {
        margin: 0 !important;
        width: auto !important;
    }

    .trialect-home-page .home-feature__visual {
        padding: 0 1.75rem !important;
    }

    .trialect-home-page .home-feature__visual img {
        display: block;
        margin: 0 auto;
        max-height: 270px;
        object-fit: contain;
        width: auto;
    }

    .trialect-home-page .home-feature__content {
        padding: 1.5rem 0 0 !important;
    }

    .trialect-home-page .home-feature__content--first {
        order: 2;
    }

    .trialect-home-page .home-feature__visual--last {
        order: 1;
    }

    .trialect-home-page .home-feature__content > .text-center {
        margin-bottom: 0 !important;
        text-align: left !important;
    }

    .trialect-home-page .home-feature__title {
        align-items: center;
        display: flex;
        font-size: clamp(1.85rem, 8vw, 2.2rem) !important;
        gap: .65rem;
        line-height: 1.18;
        text-align: left;
    }

    .trialect-home-page .home-feature__title > i {
        font-size: 1.85rem !important;
    }

    .trialect-home-page .home-feature__title > img {
        height: 42px !important;
        width: 42px !important;
    }

    .trialect-home-page .home-feature__tagline {
        font-size: 20px !important;
        line-height: 1.4;
    }

    .trialect-home-page .home-feature__description {
        font-size: 16px !important;
        line-height: 1.65;
    }

    .trialect-home-page .home-feature__content .btn {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        min-height: 48px;
        padding: .75rem 1rem;
        font-size: 15px;
        width: 100%;
    }

    .trialect-home-page .home-section-spacer,
    .trialect-home-page .home-section-spacer--small {
        height: 0;
    }

    .trialect-home-page .home-testimonials {
        margin-bottom: 0 !important;
        margin-top: 0 !important;
        padding: 3.5rem 0 0;
    }

    .trialect-home-page .home-testimonials .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .trialect-home-page .home-testimonials .text-center.mb-17 {
        margin-bottom: 2rem !important;
    }

    .trialect-home-page .home-testimonials h3 {
        font-size: 2rem !important;
        line-height: 1.2;
    }

    .trialect-home-page .home-testimonials .col-lg-4 > .d-flex {
        background: #f7f8fa;
        border: 1px solid #edf0f4;
        border-radius: 1rem;
        margin-bottom: 1rem !important;
        padding: 1.5rem !important;
    }

    .trialect-home-page .home-testimonials .text-gray-500.fs-4 {
        font-size: 16px !important;
        line-height: 1.65;
    }

    .trialect-home-page .home-cta {
        align-items: stretch !important;
        flex-direction: column;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 1.5rem !important;
        text-align: left;
    }

    .trialect-home-page .home-cta .me-5 {
        margin-right: 0 !important;
    }

    .trialect-home-page .home-cta .btn {
        min-height: 48px;
        width: 100%;
    }

    .trialect-home-page .landing-dark-bg.pt-20 {
        padding-top: 5rem !important;
    }

    .trialect-home-page .landing-dark-bg.pt-20 .row.py-10 > [class*="col-lg-"] {
        margin-bottom: 1.5rem;
    }

    .trialect-home-page .landing-dark-bg.pt-20 .row.py-10 > .col-lg-3:empty {
        display: none;
    }
}

@media (max-width: 359.98px) {
    .trialect-home-page .landing-header .logo-default,
    .trialect-home-page .landing-header .logo-sticky {
        max-width: 85px;
    }

    .trialect-home-page .landing-header .flex-equal:last-child .btn {
        font-size: 12px;
        padding-left: .55rem;
        padding-right: .55rem;
    }

    .trialect-home-page .home-hero__title {
        font-size: 2.5rem !important;
    }
}

.btn-primary-outline:hover {
    background-color: #182f4a;
    color: #fff;
    border: 2px solid #fff !important;
}

.btn-primary-outline:hover > i {
    color: #fff !important;
}
/** btn primary outline hover end */

/** btn primary outline hover - blue background begin */
.btn-primary-outline-white {
    background-color: transparent;
    color: #182f4a;
    border: 2px solid #fff !important;
}

.btn-primary-outline-white:hover {
    background-color: #fff;
    color: #182f4a !important;
    border: 2px solid #fff;
}


/** btn primary outline hover - blue background end */

/** Keep long account names and email addresses inside the profile menu. */
.trialect-account-menu .menu-content,
.trialect-account-menu__identity {
    min-width: 0;
}

.trialect-account-menu__name,
.trialect-account-menu__email {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.trialect-account-menu__email {
    display: block;
    line-height: 1.35;
}

.grants-dashboard-actions {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 460px;
    gap: 1rem;
    margin-right: auto;
    margin-top: 3rem;
}

.grants-dashboard-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    font-size: 16pt;
    white-space: normal;
}

.grants-dashboard-action--ai {
    box-shadow: 0 .35rem 1rem rgba(80, 205, 137, .22);
}

/**
 * Opportunity experience responsive layer
 *
 * Keep these rules scoped to .opportunity-page so the grant/fellowship work can
 * be rolled out to the rest of the application one experience at a time.
 */
.opportunity-page {
    --opportunity-mobile-gutter: 1.25rem;
    --opportunity-touch-target: 44px;
}

.opportunity-page .opportunity-search-card,
.opportunity-page .opportunity-card,
.opportunity-page .opportunity-detail-card {
    overflow: hidden;
}

.opportunity-page .opportunity-search-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.opportunity-page .opportunity-card {
    height: 100%;
}

.opportunity-page .opportunity-card > .card-body,
.opportunity-page .opportunity-card > .card-body > a {
    height: 100%;
}

.opportunity-page .opportunity-card > .card-body > a {
    display: flex;
    flex-direction: column;
}

.opportunity-page .opportunity-card__media {
    flex: 0 0 225px;
}

.opportunity-page .opportunity-card__content {
    flex: 1 1 auto;
}

.opportunity-page .opportunity-card__title {
    min-height: 54px;
    overflow: hidden;
}

.opportunity-page .opportunity-card__secondary {
    min-height: 55px;
    overflow: hidden;
}

.opportunity-page .opportunity-rich-content,
.opportunity-page .opportunity-rich-content * {
    max-width: 100%;
}

.opportunity-page .opportunity-rich-content {
    overflow-wrap: anywhere;
}

.opportunity-page .opportunity-rich-content img,
.opportunity-page .opportunity-rich-content video,
.opportunity-page .opportunity-rich-content iframe {
    height: auto;
}

@media (max-width: 767.98px) {
    .opportunity-page #kt_app_toolbar_container,
    .opportunity-page #kt_app_content_container {
        padding-left: var(--opportunity-mobile-gutter) !important;
        padding-right: var(--opportunity-mobile-gutter) !important;
    }

    .opportunity-page .page-title {
        min-width: 0;
    }

    .opportunity-page .breadcrumb {
        flex-wrap: nowrap;
        max-width: calc(100vw - (var(--opportunity-mobile-gutter) * 2));
        overflow-x: auto;
        padding-bottom: .25rem;
        scrollbar-width: none;
    }

    .opportunity-page .breadcrumb::-webkit-scrollbar {
        display: none;
    }

    .opportunity-page .breadcrumb-item {
        flex: 0 0 auto;
    }

    .opportunity-page .card-body {
        overflow-wrap: anywhere;
    }

    .opportunity-page .opportunity-search-card .card-body {
        padding: 1.5rem;
    }

    .opportunity-page .opportunity-search-primary {
        row-gap: .75rem;
    }

    .opportunity-page .opportunity-search-primary .input-group {
        margin-bottom: 0 !important;
    }

    .opportunity-page .opportunity-search-primary .btn,
    .opportunity-page .opportunity-search-primary .form-control,
    .opportunity-page .opportunity-search-primary .form-select,
    .opportunity-page .opportunity-search-primary .input-group-text {
        min-height: var(--opportunity-touch-target);
    }

    .opportunity-page .opportunity-search-actions .btn,
    .opportunity-page .opportunity-search-actions > a {
        display: inline-flex;
        align-items: center;
        min-height: var(--opportunity-touch-target);
        padding: .5rem 0;
        white-space: nowrap;
    }

    .opportunity-page #kt_advanced_search_form .row {
        --bs-gutter-y: 1.25rem;
        margin-bottom: 1.25rem !important;
    }

    .opportunity-page #kt_advanced_search_form .form-control,
    .opportunity-page #kt_advanced_search_form .form-select,
    .opportunity-page #kt_advanced_search_form .select2-selection {
        min-height: var(--opportunity-touch-target);
        width: 100% !important;
    }

    .opportunity-page #kt_advanced_search_form .nav-group {
        display: grid;
        gap: .75rem;
    }

    .opportunity-page #kt_advanced_search_form .nav-group > label,
    .opportunity-page #kt_advanced_search_form .nav-group > label > .btn {
        display: flex;
        width: 100% !important;
    }

    .opportunity-page #kt_advanced_search_form .nav-group > label > .btn {
        align-items: center;
        justify-content: center;
        min-height: var(--opportunity-touch-target);
        white-space: normal;
        line-height: 1.35;
    }

    .opportunity-page #kt_daterangepicker_1 {
        width: 100% !important;
    }

    .opportunity-page .opportunity-results-heading {
        padding-bottom: 1rem !important;
    }

    .opportunity-page .opportunity-results-grid {
        --bs-gutter-y: 1.25rem;
    }

    .opportunity-page .opportunity-card__media {
        flex-basis: 210px;
        height: 210px !important;
    }

    .opportunity-page .opportunity-card__logo {
        top: 140px !important;
    }

    .opportunity-page .opportunity-card__content {
        padding: 1.5rem !important;
    }

    .opportunity-page .opportunity-card__title,
    .opportunity-page .opportunity-card__secondary {
        height: auto !important;
        min-height: 0;
        overflow: visible !important;
    }

    .opportunity-page .opportunity-card__title {
        margin-bottom: .75rem;
    }

    .opportunity-page .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: .25rem;
    }

    .opportunity-page .pagination .page-link {
        min-width: var(--opportunity-touch-target);
        min-height: var(--opportunity-touch-target);
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .opportunity-page .opportunity-detail-status {
        top: 1rem !important;
        right: 1rem !important;
        left: auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .35rem;
        max-width: calc(100% - 8.5rem);
    }

    .opportunity-page .opportunity-detail-logo {
        top: 1rem !important;
        left: 1rem !important;
        max-width: 105px;
        max-height: 72px !important;
    }

    .opportunity-page .opportunity-detail-hero {
        min-height: 300px !important;
    }

    .opportunity-page .opportunity-detail-heading {
        left: 0;
        right: 0;
        margin: 0 1.5rem 1.5rem !important;
    }

    .opportunity-page .opportunity-detail-heading h3 {
        font-size: 1.75rem !important;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .opportunity-page .opportunity-detail-layout {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }

    .opportunity-page .opportunity-detail-layout .collapsible {
        min-height: var(--opportunity-touch-target);
    }

    .opportunity-page .opportunity-detail-layout .collapsible .btn-icon {
        flex: 0 0 var(--opportunity-touch-target);
        width: var(--opportunity-touch-target) !important;
        height: var(--opportunity-touch-target);
        margin-right: .5rem !important;
    }

    .opportunity-page .opportunity-detail-layout [style*="padding: 15px 40px"] {
        padding: .75rem 1rem !important;
    }

    .opportunity-page .opportunity-detail-layout > .flex-lg-row-fluid {
        min-width: 0;
    }

    .opportunity-page .opportunity-detail-layout > .flex-lg-row-auto {
        margin-top: 1.5rem;
    }

    .opportunity-page .opportunity-detail-layout .card-body {
        padding: 1.5rem;
    }

    .opportunity-page .opportunity-detail-layout .d-flex.align-items-center.pt-4,
    .opportunity-page .opportunity-detail-layout .d-flex.align-items-center.pt-4 > .btn {
        width: 100%;
    }

    .opportunity-page .opportunity-detail-layout .d-flex.align-items-center.pt-4 > .btn {
        min-width: 0 !important;
        min-height: var(--opportunity-touch-target);
        white-space: normal;
    }

    .opportunity-page .opportunity-detail-layout table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }

    .opportunity-page .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
        width: var(--opportunity-touch-target);
        height: var(--opportunity-touch-target);
    }

    .opportunity-page.opportunity-form-page .card-header {
        padding: 1.5rem 1.5rem 1rem !important;
        min-height: 0;
    }

    .opportunity-page.opportunity-form-page .card-header .fs-2hx {
        font-size: 1.65rem !important;
        line-height: 1.3 !important;
        letter-spacing: normal !important;
    }

    .opportunity-page.opportunity-form-page #kt_modal_create_app_stepper > .d-flex.flex-row-auto {
        justify-content: flex-start !important;
        overflow-x: auto;
        padding: 0 1.5rem 1rem;
    }

    .opportunity-page.opportunity-form-page #kt_modal_create_app_stepper > .flex-row-fluid {
        min-width: 0;
        padding: 1.5rem;
    }

    .opportunity-page.opportunity-form-page .stepper-nav {
        display: flex !important;
        flex-direction: row;
        gap: 1.5rem;
        min-width: max-content;
    }

    .opportunity-page.opportunity-form-page .stepper-item {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
    }

    .opportunity-page.opportunity-form-page .stepper-wrapper {
        align-items: center;
    }

    .opportunity-page.opportunity-form-page .stepper-icon {
        flex: 0 0 40px;
        margin-right: .75rem !important;
    }

    .opportunity-page.opportunity-form-page .stepper-line {
        display: none;
    }

    .opportunity-page.opportunity-form-page .form-control,
    .opportunity-page.opportunity-form-page .form-select,
    .opportunity-page.opportunity-form-page .btn {
        min-height: var(--opportunity-touch-target);
    }

    .opportunity-page.opportunity-form-page form > .d-flex.flex-stack.pt-10 {
        gap: .75rem;
    }

    .opportunity-page.opportunity-form-page form > .d-flex.flex-stack.pt-10 .btn {
        min-width: 7.5rem;
        white-space: normal;
    }

    .opportunity-page.opportunity-dashboard-page .card-body,
    .opportunity-page.opportunity-dashboard-page .card-header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .opportunity-page.opportunity-dashboard-page [style*="height: 493px"] {
        height: auto !important;
        min-height: 420px;
    }

    .opportunity-page.opportunity-dashboard-page [style*="margin-top: 120px"] {
        margin-top: 3rem !important;
    }

    .opportunity-page.opportunity-dashboard-page .grants-dashboard-actions {
        margin-top: 2rem;
    }

    .opportunity-page.opportunity-dashboard-page .grants-dashboard-action {
        width: 100%;
        min-height: var(--opportunity-touch-target);
        padding-left: 1rem;
        padding-right: 1rem;
        font-size: 1.15rem;
    }
}
