/* =========================================================
   NYOSA V2
   BURSARY DETAIL
========================================================= */

.bursary-detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px 20px 70px;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.bursary-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-bottom: 22px;

    color: #7b8794;

    font-size: .82rem;
}

.bursary-breadcrumb a {
    color: #1a5fb4;
    text-decoration: none;
    font-weight: 700;
}

.bursary-breadcrumb strong {
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


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

.bursary-detail-hero {
    display: grid;

    grid-template-columns:
        minmax(280px, 420px)
        1fr;

    gap: 35px;

    align-items: center;

    background:
        linear-gradient(
            135deg,
            #edf8ff,
            #ffffff
        );

    border-radius: 22px;

    padding: 25px;

    margin-bottom: 30px;
}

.detail-image {
    position: relative;

    aspect-ratio: 16 / 10;

    border-radius: 16px;

    overflow: hidden;

    background: #e9eef4;
}

.detail-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.verified-label {
    position: absolute;

    left: 12px;
    bottom: 12px;

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

    color: #147a42;

    padding: 7px 11px;

    border-radius: 20px;

    font-size: .75rem;

    font-weight: 800;
}

.detail-category {
    color: #1a5fb4;

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .1em;
}

.detail-hero-content h1 {
    color: #183b63;

    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.1;

    margin: 10px 0 15px;
}

.detail-hero-content > p {
    color: #5f6f80;

    font-size: 1rem;

    line-height: 1.7;

    margin-bottom: 20px;
}


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

.detail-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.meta-box {
    display: flex;

    flex-direction: column;

    gap: 3px;

    background: white;

    border: 1px solid #dfe7ef;

    border-radius: 10px;

    padding: 10px 13px;
}

.meta-box span {
    color: #7b8794;

    font-size: .7rem;

    font-weight: 600;
}

.meta-box strong {
    color: #183b63;

    font-size: .82rem;
}

.meta-box.closing {
    border-color: #ffd6d6;

    background: #fff8f8;
}

.meta-box.closing strong {
    color: #c62828;
}


/* =========================================================
   LAYOUT
========================================================= */

.bursary-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        330px;

    gap: 25px;

    align-items: start;
}


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

.bursary-content {
    min-width: 0;
}

.detail-section {
    background: white;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 25px;

    margin-bottom: 18px;

    box-shadow:
        0 4px 15px rgba(0,0,0,.04);
}

.detail-section h2 {
    color: #183b63;

    font-size: 1.25rem;

    margin: 0 0 15px;

    padding-bottom: 12px;

    border-bottom: 1px solid #edf1f5;
}

.rich-content {
    color: #4b5563;

    font-size: .96rem;

    line-height: 1.8;
}

.rich-content p {
    margin-bottom: 12px;
}

.rich-content ul,
.rich-content ol {
    padding-left: 22px;

    margin-bottom: 15px;
}

.rich-content li {
    margin-bottom: 7px;
}

.warning-section {
    border-left: 4px solid #e5a000;
}


/* =========================================================
   SIDEBAR
========================================================= */

.bursary-sidebar {
    position: sticky;

    top: 90px;
}

.apply-card {
    background:
        linear-gradient(
            145deg,
            #1a5fb4,
            #2d87d8
        );

    color: white;

    border-radius: 18px;

    padding: 24px;

    margin-bottom: 15px;

    box-shadow:
        0 10px 30px rgba(26,95,180,.18);
}

.apply-label {
    font-size: .75rem;

    font-weight: 700;

    opacity: .85;
}

.apply-card h2 {
    font-size: 1.35rem;

    margin: 6px 0 10px;
}

.apply-card p {
    font-size: .86rem;

    line-height: 1.6;

    opacity: .9;

    margin-bottom: 18px;
}

.apply-button {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 8px;

    width: 100%;

    padding: 13px;

    border-radius: 10px;

    background: white;

    color: #1a5fb4;

    text-decoration: none;

    font-size: .82rem;

    font-weight: 800;
}

.apply-button:hover {
    background: #f2f7ff;
}

.no-application {
    padding: 12px;

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

    border-radius: 9px;

    font-size: .8rem;
}

.alert-button {
    width: 100%;

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

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

    color: white;

    padding: 12px;

    border-radius: 10px;

    font-weight: 700;

    margin-top: 10px;

    cursor: pointer;
}

.alert-button:hover {
    background: rgba(255,255,255,.18);
}


/* =========================================================
   SAFETY
========================================================= */

.safety-card {
    background: #fffaf0;

    border: 1px solid #f4dfaa;

    border-radius: 15px;

    padding: 18px;
}

.safety-card h3 {
    color: #7b5500;

    margin: 0 0 10px;

    font-size: .95rem;
}

.safety-card p {
    color: #725f34;

    font-size: .8rem;

    line-height: 1.6;

    margin-bottom: 8px;
}


/* =========================================================
   ALERT MODAL
========================================================= */

.alert-modal {
    display: none;

    position: fixed;

    inset: 0;

    z-index: 10000;

    padding: 20px;

    background: rgba(0,0,0,.6);

    align-items: center;

    justify-content: center;
}

.alert-modal.show {
    display: flex;
}

.alert-modal-content {
    position: relative;

    width: 100%;

    max-width: 560px;

    height: 530px;

    background: white;

    border-radius: 18px;

    overflow: hidden;

    box-shadow:
        0 25px 70px rgba(0,0,0,.25);

    padding-top: 45px;
}

.alert-modal-icon {
    text-align: center;

    font-size: 2rem;
}

.alert-modal-content h2 {
    text-align: center;

    color: #183b63;

    font-size: 1.35rem;

    margin: 7px 20px;
}

.alert-modal-content > p {
    text-align: center;

    color: #687586;

    font-size: .85rem;

    line-height: 1.5;

    padding: 0 25px;
}

.alert-modal-content iframe {
    width: 100%;

    height: 390px;

    border: none;
}

.alert-close {
    position: absolute;

    right: 12px;
    top: 10px;

    z-index: 2;

    width: 34px;
    height: 34px;

    border: none;

    border-radius: 50%;

    background: #edf1f5;

    color: #344054;

    font-size: 1.3rem;

    cursor: pointer;
}


/* =========================================================
   NOT FOUND
========================================================= */

.bursary-not-found {
    min-height: 60vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 30px;
}

.not-found-card {
    text-align: center;

    max-width: 500px;

    background: white;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.07);
}

.not-found-icon {
    font-size: 3rem;

    margin-bottom: 10px;
}

.not-found-card h1 {
    color: #183b63;

    margin-bottom: 10px;
}

.not-found-card p {
    color: #667085;

    line-height: 1.6;

    margin-bottom: 20px;
}

.not-found-card a {
    display: inline-block;

    background: #1a5fb4;

    color: white;

    text-decoration: none;

    padding: 11px 18px;

    border-radius: 9px;

    font-weight: 700;
}


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

@media (max-width: 850px) {

    .bursary-detail-hero {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .detail-image {
        max-width: 650px;
    }

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

    .bursary-sidebar {
        position: static;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 600px) {

    .bursary-detail-page {
        padding:
            15px
            10px
            50px;
    }

    .bursary-breadcrumb {
        font-size: .75rem;
    }

    .bursary-detail-hero {
        padding: 12px;

        border-radius: 16px;
    }

    .detail-hero-content {
        padding: 5px 5px 10px;
    }

    .detail-hero-content h1 {
        font-size: 1.9rem;
    }

    .detail-hero-content > p {
        font-size: .9rem;
    }

    .detail-section {
        padding: 18px;

        border-radius: 13px;
    }

    .detail-section h2 {
        font-size: 1.1rem;
    }

    .rich-content {
        font-size: .9rem;
    }

    .apply-card {
        padding: 20px;
    }

    .alert-modal {
        padding: 10px;
    }

    .alert-modal-content {
        height: 520px;
    }

}