/* =====================================================
   css/eu_icm.css  –  EU – ICM 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;
    --eu-text: #1f2d4a;
    --eu-muted: #5b6b86;
    --eu-border: #d8e1ee;
    --eu-soft: #eef3fb;
}


/* =========================
   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 > span:not(.sep):not(.current) {
    color: #ffffff;
}

.banner-text .breadcrumb .current {
    color: #e1a80b;
    font-weight: 600;
}


/* =========================
   PAGE LAYOUT
========================= */

.eu-section {
    padding: 40px 0 60px;
    background: #fff;
}

.eu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;   /* content | sidebar (right) */
    gap: 40px;
    align-items: start;
}

.eu-main {
    min-width: 0;
}


/* =========================
   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;
}


/* =========================
   OUR COMMITMENT CARD
========================= */

.eu-commit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 24px 22px;
    background: var(--navy);
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(11, 35, 82, .22);
}

.eu-commit h3 {
    position: relative;
    margin: 0 0 14px;
    padding-bottom: 12px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
}

.eu-commit h3::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34px;
    height: 3px;
    background: var(--gold);
}

.eu-commit p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.eu-commit-icon {
    flex: 0 0 auto;
    color: var(--gold);
    font-size: 58px;
    line-height: 1;
}


/* =========================
   CONTACT US CARD
========================= */

.eu-contact {
    margin-bottom: 20px;
    padding: 18px 20px 20px;
    background: #fff;
    border: 1px solid var(--gold);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}

.eu-contact h3 {
    margin: 0 0 14px;
    color: var(--gold);
    font-size: 20px;
    font-weight: 700;
}

.eu-contact ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eu-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--eu-text);
    font-size: 13px;
    line-height: 1.5;
}

.eu-contact li:last-child {
    margin-bottom: 0;
}

.eu-contact a {
    color: var(--eu-text);
    text-decoration: none;
}

.eu-contact a:hover {
    color: var(--navy);
    text-decoration: underline;
}

.eu-contact .c-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-size: 12px;
    line-height: 26px;
    text-align: center;
}


/* =========================
   CONTENT BLOCKS (icon + text)
========================= */

.eu-block {
    display: flex;
    gap: 16px;
    padding: 24px 0;
}

.eu-block:first-child {
    padding-top: 0;
}

.eu-divided {
    border-top: 1px solid var(--eu-border);
}

.eu-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 22px;
    line-height: 52px;
    text-align: center;
}

.eu-block-body {
    flex: 1;
    min-width: 0;
}

.eu-block-body h2 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 21px;
    font-weight: 700;
    line-height: 52px;           /* aligns heading with the icon circle */
    margin-top: -6px;
    margin-bottom: 0;
}

.eu-block-body p {
    margin: 0 0 10px;
    color: var(--eu-text);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   PROGRAMME / ACTION BOX
========================= */

.eu-facts {
    display: flex;
    margin-top: 16px;
    background: #f7f9fc;
    border: 1px solid var(--eu-border);
    border-radius: 8px;
}

.eu-facts .fact {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
}

.eu-facts .fact + .fact {
    border-left: 1px solid var(--eu-border);
}

.fact-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 20px;
    line-height: 48px;
    text-align: center;
}

.eu-facts h3 {
    margin: 0 0 4px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.eu-facts p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================
   PARTNER INSTITUTIONS (numbered, 2 columns)
========================= */

.eu-partners {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--eu-border);
    border-radius: 6px;
}

.eu-plist {
    list-style: none;
    counter-reset: eu;
    margin: 0;
    padding: 0;
}

.eu-plist + .eu-plist {
    border-left: 1px solid var(--eu-border);
}

.eu-plist li {
    position: relative;
    counter-increment: eu;
    padding: 9px 12px 9px 52px;
    border-bottom: 1px solid #edf1f7;
    color: var(--eu-text);
    font-size: 13px;
    line-height: 1.45;
}

.eu-plist li:last-child {
    border-bottom: 0;
}

/* number badge */
.eu-plist li::before {
    content: counter(eu);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    padding: 4px 0;
    background: var(--eu-soft);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    border-radius: 3px;
}

/* the second list starts at 11 */
.eu-plist[start="11"] {
    counter-reset: eu 10;
}


/* =========================
   CLOSING NOTE
========================= */

.eu-note {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    background: var(--eu-soft);
    border: 1px solid var(--eu-border);
    border-radius: 6px;
}

.eu-note-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    font-size: 24px;
    line-height: 52px;
    text-align: center;
}

.eu-note p {
    margin: 0;
    color: var(--navy);
    font-size: 14.5px;
    line-height: 1.6;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .eu-layout {
        grid-template-columns: 1fr;
    }

    /* 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: 700px) {
    .eu-facts {
        flex-direction: column;
    }

    .eu-facts .fact + .fact {
        border-left: 0;
        border-top: 1px solid var(--eu-border);
    }

    .eu-partners {
        grid-template-columns: 1fr;
    }

    .eu-plist + .eu-plist {
        border-left: 0;
        border-top: 1px solid var(--eu-border);
    }
}

@media (max-width: 600px) {
    .banner-text h1 {
        font-size: 28px;
    }

    .eu-block-body h2 {
        font-size: 18px;
    }
}