/* =====================================================
   css/ssapi.css  –  SSAPI project page
   (page layout + content, plus the shared banner and
   sidebar styles so the page works on its own)
   ===================================================== */

:root {
    --navy: #0b2352;
    --gold: #e1a80b;
    --transition: .25s ease;
    --ss-text: #1f3a68;
    --ss-muted: #5b6b86;
    --ss-border: #d8e1ee;
    --ss-cream: #fdf6e6;
}


/* =========================
   PAGE BANNER
========================= */

.page-banner {
    position: relative;
    width: 100%;
    height: 315px;
    overflow: hidden;
    background: #0b2352;
}

.banner-flex {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.banner-media {
    position: absolute;
    top: 0;
    right: 0;
    width: 82%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.banner-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.banner-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 40px 40px 70px;
    background: rgba(11, 35, 82, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.banner-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: -100px;
    width: 150px;
    height: 100%;
    background: rgba(11, 35, 82, 0.88);
    clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%);
    z-index: -1;
}

.banner-text h1 {
    margin: 0 0 22px 0;
    color: #ffffff;
    font-size: 36px;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: 1px;
}

.banner-text p {
    margin: 0 0 22px 0;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.6;
    max-width: 90%;
}

.banner-text .breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
    background: none;
    padding: 0;
    margin: 0;
}

.banner-text .breadcrumb a {
    color: #ffffff;
    text-decoration: none;
}

.banner-text .breadcrumb a:hover {
    color: #e1a80b;
}

.banner-text .breadcrumb .sep {
    color: #ffffff;
}

.banner-text .breadcrumb .current {
    color: #e1a80b;
    font-weight: 600;
}


/* =========================
   PAGE LAYOUT
   main (left) | sidebar + SSAPI card (right column)
   (to put the card above the sidebar, swap "side" and
    "card" in the grid-template-areas below)
========================= */

.ss-section {
    padding: 40px 0 60px;
    background: #fbfcff;
}

.ss-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    grid-template-areas:
        "main side"
        "main card";
    grid-template-rows: auto 1fr;
    column-gap: 36px;
    align-items: start;
}

.cbhe-side { grid-area: side; }
.ss-main   { grid-area: main; min-width: 0; }
.ss-card   { grid-area: card; }


/* =========================
   SIDEBAR
========================= */

.sidebar-menu {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.sidebar-menu h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    background: var(--navy);
}

.sidebar-menu h3.gold-edge {
    border-left: 4px solid var(--gold);
}

.sidebar-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
}

.sidebar-menu ul li a i:first-child {
    color: var(--navy);
    width: 18px;
    text-align: center;
}

.sidebar-menu ul li a:hover {
    background: #f5f7fb;
    color: var(--navy);
}

.sidebar-menu ul li.active a {
    background: var(--navy);
    color: var(--gold);
    font-weight: 700;
}

.sidebar-menu ul li.active a i:first-child {
    color: var(--gold);
}

.sidebar-menu ul li a .arrow {
    margin-left: auto;
    font-size: 11px;
    color: var(--navy);
    opacity: .6;
}

.sidebar-menu ul li.active a .arrow {
    color: var(--gold);
    opacity: 1;
}


/* =========================
   TITLE / INTRO
========================= */

.ss-title {
    position: relative;
    margin: 0 0 24px;
    padding-bottom: 14px;
    color: var(--navy);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
}

.ss-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: var(--gold);
}

.ss-subtitle {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.ss-intro {
    margin: 0 0 30px;
    color: var(--ss-text);
    font-size: 14.5px;
    line-height: 1.8;
}


/* =========================
   CONTENT BLOCKS (icon + text)
========================= */

.ss-block {
    display: flex;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid var(--ss-border);
}

.ss-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 19px;
    line-height: 46px;
    text-align: center;
}

.ss-block-body {
    flex: 1;
    min-width: 0;
}

.ss-block-body h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 46px;       /* aligns title with the icon circle */
    margin-top: -4px;
    margin-bottom: 2px;
}

.ss-block-body p {
    margin: 0;
    color: var(--ss-text);
    font-size: 13.5px;
    line-height: 1.75;
}


/* =========================
   MAJOR OBJECTIVES (numbered)
========================= */

.ss-objectives {
    list-style: none;
    counter-reset: obj;
    margin: 6px 0 0;
    padding: 0;
}

.ss-objectives li {
    position: relative;
    counter-increment: obj;
    padding: 10px 0 10px 32px;
    border-bottom: 1px dashed var(--ss-border);
    color: var(--ss-text);
    font-size: 13.5px;
    line-height: 1.65;
}

.ss-objectives li:last-child {
    border-bottom: 0;
}

.ss-objectives li::before {
    content: counter(obj);
    position: absolute;
    left: 0;
    top: 11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}


/* =========================
   IMPACT & CAPACITY BUILDING
========================= */

.ss-impact {
    margin: 10px -16px 0;
    padding: 22px 16px;
    background: var(--ss-cream);
    border-top: 0;
    border-radius: 8px;
}

.ss-bullets {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.ss-bullets li {
    position: relative;
    padding: 4px 0 4px 18px;
    color: var(--ss-text);
    font-size: 13.5px;
    line-height: 1.65;
}

.ss-bullets li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}


/* =========================
   PROJECT PARTNERS
========================= */

.ss-partners-block {
    border-top: 0;
    padding-top: 28px;
}

.ss-partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
    margin-top: 8px;
}

.ss-partners ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--ss-border);
    border-radius: 6px;
    overflow: hidden;
}

.ss-partners li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid #edf1f7;
    color: var(--ss-text);
    font-size: 13px;
    line-height: 1.45;
}

.ss-partners li:last-child {
    border-bottom: 0;
}

.ss-partners li i {
    flex: 0 0 auto;
    color: var(--navy);
    font-size: 15px;
}


/* =========================
   SSAPI INFO CARD (right)
========================= */

.ss-card {
    margin-bottom: 0;
    padding: 28px 24px 22px;
    background: var(--navy);
    border-radius: 8px;
    border-bottom: 4px solid var(--gold);
    box-shadow: 0 10px 24px rgba(11, 35, 82, .25);
    color: #fff;
    text-align: center;
}

.ss-card-logo {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 54px;
    line-height: 1;
}

.ss-card-title {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gold);
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.ss-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.ss-card-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    font-size: 14.5px;
    line-height: 1.4;
}

.ss-card-list li:last-child {
    border-bottom: 0;
}

.ss-card-list li i {
    flex: 0 0 26px;
    color: var(--gold);
    font-size: 22px;
    text-align: center;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1199px) {
    .ss-layout {
        grid-template-columns: minmax(0, 1fr) 270px;
        column-gap: 28px;
    }
}

@media (max-width: 991px) {
    .ss-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "main"
            "side"
            "card";
        grid-template-rows: auto;
    }

    .ss-impact {
        margin-left: 0;
        margin-right: 0;
    }

    /* banner on tablets / phones */
    .page-banner {
        height: auto;
        min-height: 315px;
    }

    .banner-media {
        width: 100%;
    }

    .banner-text {
        position: relative;
        width: 100%;
        padding: 40px 24px;
        background: rgba(11, 35, 82, 0.88);
    }

    .banner-text::after {
        display: none;
    }
}

@media (max-width: 600px) {
    .banner-text h1 {
        font-size: 28px;
    }

    .ss-title {
        font-size: 30px;
    }

    .ss-partners {
        grid-template-columns: 1fr;
    }
}