
/* =========================================
   BURSARIES PAGE - SDP PORTAL 2027
========================================= */

:root {
    --bursary-primary: #174b86;
    --bursary-secondary: #2879bd;
    --bursary-text: #202b38;
    --bursary-muted: #6b7785;
    --bursary-border: #e4eaf0;
    --bursary-light: #f5f8fc;
    --bursary-white: #ffffff;
}

/* =========================================
   PAGE INTRODUCTION
========================================= */

.bursary-page-intro {
    background: var(--bursary-light);
    padding: 65px 0 55px;
}

.bursary-intro-content {
    max-width: 760px;
}

.bursary-label {
    display: inline-block;
    color: var(--bursary-secondary);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.bursary-intro-content h1 {
    color: var(--bursary-text);
    font-family: "Manrope", sans-serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
}

.bursary-intro-content p {
    color: var(--bursary-muted);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 0;
    max-width: 620px;
}

/* =========================================
   COURSE SECTION
========================================= */

.course-section {
    padding: 65px 0 75px;
    background: var(--bursary-white);
}

.course-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.course-section-heading h2 {
    color: var(--bursary-text);
    font-family: "Manrope", sans-serif;
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
}

.course-section-heading p {
    color: var(--bursary-muted);
    font-size: 14px;
    margin-bottom: 0;
}

.course-total {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    background: var(--bursary-light);
    color: var(--bursary-primary);
    border-radius: 30px;
    padding: 9px 17px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

/* =========================================
   SEARCH AND FILTER
========================================= */

.course-controls {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 15px;
    margin-bottom: 30px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrap > i {
    position: absolute;
    left: 17px;
    color: #8492a2;
    font-size: 15px;
    pointer-events: none;
}

.search-input-wrap input,
.course-filter select {
    width: 100%;
    height: 52px;
    border: 1px solid var(--bursary-border);
    border-radius: 7px;
    background: var(--bursary-white);
    color: var(--bursary-text);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-wrap input {
    padding: 0 16px 0 45px;
}

.search-input-wrap input::placeholder {
    color: #9aa5b1;
}

.course-filter select {
    padding: 0 15px;
    cursor: pointer;
}

.search-input-wrap input:focus,
.course-filter select:focus {
    border-color: var(--bursary-secondary);
    box-shadow: 0 0 0 3px rgba(40, 121, 189, 0.10);
}

/* =========================================
   COURSE LIST
========================================= */

.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 104px;
    padding: 18px;
    border: 1px solid var(--bursary-border);
    border-radius: 8px;
    background: var(--bursary-white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.course-row:hover {
    border-color: #c5d7e9;
    box-shadow: 0 5px 16px rgba(23, 75, 134, 0.06);
}

.course-icon {
    display: flex;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: #edf4fb;
    color: var(--bursary-primary);
    font-size: 17px;
}

.course-details {
    flex: 1;
    min-width: 0;
}

.course-category {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--bursary-secondary);
    font-family: "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.course-category.business {
    color: #347b62;
}

.course-category.technology {
    color: #7656a7;
}

.course-category.engineering {
    color: #b17632;
}

.course-details h3 {
    color: var(--bursary-text);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    margin: 0;
    overflow-wrap: anywhere;
}

/* =========================================
   APPLY LINK
========================================= */

.course-apply {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--bursary-primary);
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.course-apply:hover {
    color: var(--bursary-secondary);
}

.course-apply i {
    font-size: 10px;
}

/* =========================================
   NO RESULTS
========================================= */

.no-courses {
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed var(--bursary-border);
    border-radius: 8px;
    background: var(--bursary-light);
}

.no-courses > i {
    color: #8a9bad;
    font-size: 28px;
    margin-bottom: 15px;
}

.no-courses h3 {
    color: var(--bursary-text);
    font-family: "Manrope", sans-serif;
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
}

.no-courses p {
    color: var(--bursary-muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.reset-courses {
    border: 0;
    border-radius: 5px;
    background: var(--bursary-primary);
    color: white;
    padding: 10px 18px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.reset-courses:hover {
    background: var(--bursary-secondary);
}

/* =========================================
   HELP SECTION
========================================= */

.course-help {
    padding: 40px 0;
    background: var(--bursary-light);
}

.course-help-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.course-help-content h2 {
    color: var(--bursary-text);
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 8px;
}

.course-help-content p {
    color: var(--bursary-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

.course-help-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--bursary-primary);
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.course-help-link:hover {
    color: var(--bursary-secondary);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 45px 0 20px;
    background: #142d48;
    color: white;
}

.footer-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 30px;
}

.footer-brand {
    max-width: 350px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.7;
}

.footer-partners h5 {
    color: white;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-logos img {
    display: block;
    max-width: 145px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: white;
    padding: 7px;
    border-radius: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 18px;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    margin: 0;
}

/* =========================================
   BACK TO TOP
========================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    border-radius: 50%;
    background: var(--bursary-primary);
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.back-to-top:hover {
    background: var(--bursary-secondary);
    color: white;
    transform: translateY(-3px);
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 991.98px) {
    .course-list {
        grid-template-columns: 1fr;
    }

    .course-section {
        padding: 55px 0 60px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 575.98px) {
    .bursary-page-intro {
        padding: 45px 0;
    }

    .bursary-intro-content h1 {
        font-size: 32px;
    }

    .course-section {
        padding: 45px 0 55px;
    }

    .course-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .course-section-heading h2 {
        font-size: 23px;
    }

    .course-controls {
        grid-template-columns: 1fr;
    }

    .course-row {
        gap: 12px;
        padding: 15px 12px;
    }

    .course-icon {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .course-details h3 {
        font-size: 13px;
    }

    .course-apply {
        font-size: 11px;
        gap: 5px;
    }

    .course-help-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 25px;
    }

    .footer-logos {
        flex-wrap: wrap;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 360px) {
    .course-row {
        flex-wrap: wrap;
    }

    .course-details {
        flex-basis: calc(100% - 55px);
    }

    .course-apply {
        margin-left: 50px;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

.course-apply:focus-visible,
.course-help-link:focus-visible,
.reset-courses:focus-visible,
.back-to-top:focus-visible {
    outline: 3px solid #f2b84b;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .course-row,
    .course-apply,
    .course-help-link,
    .back-to-top {
        transition: none;
    }
}
