/* =========================================================
   NYOSA V2
   FOOTER
========================================================= */


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

.nyosa-footer {

    width: 100%;

    background: #07164a;

    color: #ffffff;

    margin-top: 60px;
}


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

.footer-main {

    width: 100%;

    padding: 60px 20px 50px;
}


.footer-container {

    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.8fr
        1fr
        1fr
        1fr;

    gap: 55px;
}


/* =========================================================
   BRAND
========================================================= */

.footer-brand {

    max-width: 330px;
}


.footer-logo {

    display: inline-block;

    background: #ffffff;

    padding: 8px 12px;

    border-radius: 10px;

    margin-bottom: 18px;
}


.footer-logo img {

    width: 175px;

    height: auto;
}


.footer-brand > p {

    color: #b9c6dd;

    font-size: 14px;

    line-height: 1.65;

    margin-bottom: 22px;
}


/* =========================================================
   TRUST
========================================================= */

.footer-trust-badge {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px;

    background: rgba(255,255,255,.07);

    border: 1px solid rgba(255,255,255,.10);

    border-radius: 12px;
}


.trust-icon {

    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    background: #27a85b;

    border-radius: 50%;

    font-weight: 900;

    color: #ffffff;
}


.footer-trust-badge strong {

    display: block;

    font-size: 13px;

    margin-bottom: 3px;
}


.footer-trust-badge small {

    display: block;

    color: #aebbd1;

    font-size: 11px;

    line-height: 1.35;
}


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

.footer-section h3 {

    font-size: 16px;

    margin-bottom: 18px;

    color: #ffffff;
}


.footer-section ul {

    list-style: none;
}


.footer-section li {

    margin-bottom: 11px;
}


.footer-section a {

    color: #b7c4da;

    font-size: 14px;

    transition: color .2s ease;
}


.footer-section a:hover {

    color: #ffffff;
}


/* =========================================================
   PARTNERS
========================================================= */

.footer-partners {

    width: 100%;

    background: #06123c;

    border-top: 1px solid rgba(255,255,255,.08);

    border-bottom: 1px solid rgba(255,255,255,.08);

    padding: 22px 20px;
}


.footer-partners-container {

    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr;

    gap: 15px;

    align-items: center;
}


.footer-partner-intro span {

    display: block;

    color: #7fa7e8;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 5px;
}


.footer-partner-intro strong {

    font-size: 14px;

    color: #ffffff;
}


.footer-partner {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 15px;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 12px;

    transition: .2s ease;
}


.footer-partner:hover {

    background: rgba(255,255,255,.05);

    transform: translateY(-1px);
}


.footer-partner-icon {

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    background: rgba(255,255,255,.08);

    border-radius: 9px;

    font-size: 18px;
}


.footer-partner strong {

    display: block;

    color: #ffffff;

    font-size: 16px;
}


.footer-partner strong span {

    color: #3f8cff;
}


.footer-partner small {

    display: block;

    margin-top: 2px;

    color: #aebbd1;

    font-size: 11px;
}


.footer-partner-arrow {

    margin-left: auto;

    color: #4c91ff;

    font-size: 20px;
}


/* =========================================================
   BOTTOM
========================================================= */

.footer-bottom {

    width: 100%;

    padding: 18px 20px;

    background: #050f31;
}


.footer-bottom-container {

    width: min(1200px, 100%);

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    color: #8998b3;

    font-size: 12px;
}


.footer-tagline {

    color: #a9b6ca;
}


/* =========================================================
   MOBILE BOTTOM NAV
========================================================= */

.mobile-bottom-nav {

    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .footer-container {

        grid-template-columns:
            1.5fr 1fr 1fr;

        gap: 35px;
    }


    .footer-brand {

        grid-column: 1 / -1;

        max-width: 500px;
    }


    .footer-partners-container {

        grid-template-columns:
            1fr 1fr;
    }


    .footer-partner-intro {

        grid-column: 1 / -1;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    /*
     * Leave enough room for the fixed
     * bottom navigation.
     */

    .nyosa-footer {

        margin-top: 35px;

        padding-bottom: 76px;
    }


    .footer-main {

        padding:
            35px 18px 30px;
    }


    .footer-container {

        display: block;

        width: 100%;
    }


    .footer-brand {

        max-width: none;

        margin-bottom: 30px;
    }


    .footer-logo {

        margin-bottom: 14px;
    }


    .footer-logo img {

        width: 155px;
    }


    .footer-brand > p {

        font-size: 13px;

        max-width: 330px;
    }


    .footer-section {

        padding: 18px 0;

        border-top:
            1px solid rgba(255,255,255,.08);
    }


    .footer-section h3 {

        margin-bottom: 13px;

        font-size: 15px;
    }


    .footer-section li {

        margin-bottom: 9px;
    }


    .footer-section a {

        font-size: 13px;
    }


    /* -----------------------------------------------------
       PARTNERS
    ----------------------------------------------------- */

    .footer-partners {

        padding: 22px 15px;
    }


    .footer-partners-container {

        display: block;

        width: 100%;
    }


    .footer-partner-intro {

        margin-bottom: 14px;
    }


    .footer-partner {

        margin-bottom: 8px;
    }


    .footer-partner:last-child {

        margin-bottom: 0;
    }


    /* -----------------------------------------------------
       COPYRIGHT
    ----------------------------------------------------- */

    .footer-bottom {

        padding:
            17px 18px;
    }


    .footer-bottom-container {

        display: block;

        text-align: center;

        line-height: 1.6;
    }


    .footer-tagline {

        display: block;

        margin-top: 4px;
    }


    /* =====================================================
       FIXED MOBILE NAVIGATION
    ====================================================== */

    .mobile-bottom-nav {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        height: 72px;

        display: grid;

        grid-template-columns:
            repeat(5, 1fr);

        align-items: stretch;

        background: rgba(255,255,255,.97);

        backdrop-filter: blur(14px);

        -webkit-backdrop-filter: blur(14px);

        border-top: 1px solid #dfe6ef;

        box-shadow:
            0 -8px 25px rgba(20,45,80,.10);

        z-index: 1200;

        padding-bottom:
            env(safe-area-inset-bottom);
    }


    .mobile-bottom-nav > a {

        position: relative;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 4px;

        min-width: 0;

        color: #526078;

        text-decoration: none;

        transition: color .2s ease;
    }


    .bottom-nav-icon {

        position: relative;

        width: 28px;
        height: 28px;

        display: grid;

        place-items: center;
    }


    .bottom-nav-icon svg {

        width: 27px;
        height: 27px;

        fill: none;

        stroke: currentColor;

        stroke-width: 1.7;

        stroke-linecap: round;

        stroke-linejoin: round;
    }


    .bottom-nav-label {

        font-size: 11px;

        line-height: 1;

        white-space: nowrap;
    }


    .mobile-bottom-nav > a.active {

        color: #0d5eea;

        font-weight: 700;
    }


    .mobile-bottom-nav > a.active::before {

        content: "";

        position: absolute;

        top: 0;

        left: 50%;

        transform: translateX(-50%);

        width: 32px;

        height: 3px;

        background: #0d5eea;

        border-radius:
            0 0 5px 5px;
    }


    .notification-dot {

        position: absolute;

        top: 1px;

        right: 0;

        width: 8px;
        height: 8px;

        border-radius: 50%;

        background: #ed5870;

        border: 2px solid #ffffff;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .mobile-bottom-nav {

        height: 68px;
    }


    .bottom-nav-icon {

        width: 25px;
        height: 25px;
    }


    .bottom-nav-icon svg {

        width: 24px;
        height: 24px;
    }


    .bottom-nav-label {

        font-size: 10px;
    }

}
/* =========================================================
   NYOSA FIND BURSARY MATCHES
   RESULTS PAGE
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.find-bursaries-page {
    width: 100%;
    min-height: 100vh;
    background: #f4f7fb;
    color: #172033;
}


/* =========================================================
   MATCH HEADER
========================================================= */

.match-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e5eaf1;
}

.match-header-content {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 46px;
}

.match-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #1a5fb4;
}

.match-header h1 {
    margin: 0;

    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #142033;
}

.match-header p {
    max-width: 700px;
    margin: 14px 0 0;

    font-size: 16px;
    line-height: 1.7;
    color: #667085;
}


/* =========================================================
   RESULTS SECTION
========================================================= */

.match-results-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 38px 0 60px;
}


/* =========================================================
   RESULTS TOOLBAR
========================================================= */

.results-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 28px;
}

.results-eyebrow {
    display: block;
    margin-bottom: 7px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #1a5fb4;
}

.results-toolbar h2 {
    margin: 0;

    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #172033;
}


/* =========================================================
   BUTTONS
========================================================= */

.secondary-button,
.primary-button,
.view-bursary-button,
.apply-bursary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border-radius: 10px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease;
}

.secondary-button {
    flex-shrink: 0;

    background: #ffffff;
    border: 1px solid #d9e0ea;
    color: #344054;
}

.secondary-button:hover {
    border-color: #1a5fb4;
    color: #1a5fb4;
    transform: translateY(-1px);
}

.primary-button {
    background: #1a5fb4;
    border: 1px solid #1a5fb4;
    color: #ffffff;
}

.primary-button:hover {
    background: #164f96;
    transform: translateY(-1px);
}


/* =========================================================
   LOADING / ERROR / EMPTY STATES
========================================================= */

.matches-state {
    width: 100%;
    padding: 58px 24px;

    text-align: center;

    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 18px;

    box-shadow:
        0 4px 18px rgba(16, 24, 40, 0.04);
}

.matches-state[hidden] {
    display: none;
}

.matches-state h3 {
    margin: 18px 0 8px;

    font-size: 20px;
    font-weight: 800;
    color: #172033;
}

.matches-state p {
    max-width: 540px;
    margin: 0 auto;

    font-size: 14px;
    line-height: 1.65;
    color: #667085;
}


/* =========================================================
   LOADING SPINNER
========================================================= */

.loading-spinner {
    width: 42px;
    height: 42px;

    margin: 0 auto;

    border: 4px solid #e7edf5;
    border-top-color: #1a5fb4;

    border-radius: 50%;

    animation: nyosa-spin 0.8s linear infinite;
}

@keyframes nyosa-spin {
    to {
        transform: rotate(360deg);
    }
}


/* =========================================================
   STATE ICON
========================================================= */

.state-icon {
    width: 48px;
    height: 48px;

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

    margin: 0 auto;

    border-radius: 50%;

    background: #edf4fc;

    font-size: 20px;
    font-weight: 800;
    color: #1a5fb4;
}

.state-icon.error {
    background: #fff1f0;
    color: #d92d20;
}

.matches-state .primary-button {
    margin-top: 22px;
}


/* =========================================================
   MATCH COUNT
========================================================= */

.match-count-bar {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 20px;
    padding: 14px 18px;

    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;

    color: #667085;
    font-size: 14px;
}

.match-count-bar strong {
    color: #1a5fb4;
    font-size: 18px;
    font-weight: 800;
}


/* =========================================================
   MATCH LIST
========================================================= */

.bursary-match-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   BURSARY CARD
========================================================= */

.bursary-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e1e7ef;
    border-radius: 18px;

    box-shadow:
        0 5px 20px rgba(16, 24, 40, 0.05);

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

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

    border-color: #cbd8e8;

    box-shadow:
        0 12px 30px rgba(16, 24, 40, 0.09);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.bursary-card-image {
    position: relative;

    width: 100%;
    height: 220px;

    overflow: hidden;

    background: #edf1f6;
}

.bursary-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.35s ease;
}

.bursary-card:hover
.bursary-card-image img {
    transform: scale(1.03);
}


/* =========================================================
   RECOMMENDED BADGE
========================================================= */

.qualified-badge {
    position: absolute;

    top: 14px;
    left: 14px;

    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 0 11px;

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.94);

    color: #17663a;

    font-size: 12px;
    font-weight: 800;

    box-shadow:
        0 4px 12px rgba(16, 24, 40, 0.12);

    backdrop-filter: blur(8px);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.bursary-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 22px;
}

.bursary-card-content h3 {
    margin: 0;

    color: #172033;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;

    letter-spacing: -0.015em;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.bursary-description {
    display: -webkit-box;

    margin: 12px 0 0;

    overflow: hidden;

    color: #667085;

    font-size: 14px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}


/* =========================================================
   META
========================================================= */

.bursary-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 18px;
}

.bursary-meta span {
    display: inline-flex;
    align-items: center;

    min-height: 30px;
    padding: 0 10px;

    border-radius: 8px;

    background: #f5f7fa;
    border: 1px solid #e7ebf0;

    color: #475467;

    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   CARD ACTIONS
========================================================= */

.bursary-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: auto;
    padding-top: 22px;
}

.view-bursary-button {
    flex: 1;

    background: #1a5fb4;
    border: 1px solid #1a5fb4;

    color: #ffffff;
}

.view-bursary-button:hover {
    background: #164f96;
    border-color: #164f96;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(26, 95, 180, 0.2);
}

.apply-bursary-button {
    flex: 1;

    background: #ffffff;
    border: 1px solid #d6dee9;

    color: #344054;
}

.apply-bursary-button:hover {
    border-color: #1a5fb4;
    color: #1a5fb4;

    transform: translateY(-1px);
}


/* =========================================================
   APPLIED BUTTON
========================================================= */

.applied-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 0 18px;

    border: 1px solid #b7dfc7;
    border-radius: 10px;

    background: #edf9f1;
    color: #17663a;

    font-size: 14px;
    font-weight: 700;
}


/* =========================================================
   SAVE BUTTON
========================================================= */

.bursary-action {
    cursor: pointer;
}

.bursary-action:disabled {
    cursor: default;
    opacity: 0.65;
}


/* =========================================================
   TRUST SECTION
========================================================= */

.match-page-trust {
    width: min(1180px, calc(100% - 40px));

    margin: 0 auto;

    padding: 0 0 60px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.match-page-trust > div {
    padding: 22px;

    background: #ffffff;

    border: 1px solid #e3e8ef;
    border-radius: 16px;
}

.match-page-trust > div > span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin-bottom: 14px;

    border-radius: 10px;

    background: #edf4fc;
}

.match-page-trust svg {
    width: 20px;
    height: 20px;

    fill: none;
    stroke: #1a5fb4;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.match-page-trust strong {
    display: block;

    margin-bottom: 5px;

    color: #172033;

    font-size: 14px;
    font-weight: 800;
}

.match-page-trust p {
    margin: 0;

    color: #667085;

    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   HIDDEN
========================================================= */

[hidden] {
    display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 850px) {

    .bursary-match-list {
        grid-template-columns: 1fr;
    }

    .match-page-trust {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .match-header-content {
        width: min(
            100% - 28px,
            1180px
        );

        padding: 36px 0 34px;
    }


    .match-header h1 {
        font-size: 30px;
    }


    .match-header p {
        font-size: 14px;
        line-height: 1.6;
    }


    .match-results-page {
        width: min(
            100% - 28px,
            1180px
        );

        padding: 26px 0 44px;
    }


    .results-toolbar {
        align-items: flex-start;
        flex-direction: column;

        gap: 18px;
    }


    .secondary-button {
        width: 100%;
    }


    .matches-state {
        padding: 44px 18px;
        border-radius: 15px;
    }


    .bursary-match-list {
        gap: 16px;
    }


    .bursary-card {
        border-radius: 15px;
    }


    .bursary-card-image {
        height: 190px;
    }


    .bursary-card-content {
        padding: 18px;
    }


    .bursary-card-content h3 {
        font-size: 18px;
    }


    .bursary-description {
        font-size: 13px;
        -webkit-line-clamp: 5;
    }


    .bursary-actions {
        flex-direction: column;
    }


    .view-bursary-button,
    .apply-bursary-button {
        width: 100%;
        flex: none;
    }


    .match-page-trust {
        width: min(
            100% - 28px,
            1180px
        );

        padding-bottom: 40px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .match-header h1 {
        font-size: 27px;
    }


    .results-toolbar h2 {
        font-size: 23px;
    }


    .bursary-card-image {
        height: 170px;
    }


    .bursary-card-content {
        padding: 16px;
    }

}
