/*
Theme Name: ACEF Prototype
Author: admin
Description: Responsive prototype theme for the Africa Civic Education Foundation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: acef-prototype
*/
:root{
    --navy:#11154f;
    --orange:#f58220;
    --gold:#f2a51a;
    --green:#0a9a55;
    --purple:#7d1f7a;
    --ink:#172033;
    --muted:#5d6678;
    --bg:#f7f8fb;
    --white:#fff;
    --border:#e4e7ee;
    --radius:18px;
    --shadow:0 14px 40px rgba(17,21,79,.10);
    --max:1180px}*{box-sizing:border-box}
    
html{
    scroll-behavior:smooth
}

body{
    margin:0;
    font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;
    color:var(--ink);
    background:#fff;
    line-height:1.65
}

img{
    max-width:100%;
    height:auto;
    display:block
}

a{
    color:var(--navy);
    text-decoration:none
}

a:hover{
    color:var(--orange)
}

.container{
    width:min(calc(100% - 36px),var(--max));
    margin-inline:auto
}

.site-header{
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.96);
    border-bottom:1px solid var(--border)
}

.admin-bar .site-header{
    top:32px
}

.header-inner{
    min-height:82px;
    display:flex;
    align-items:center;
    gap:26px
}

.brand{
    display:flex;
    align-items:center;
    min-width:210px
}

.custom-logo{
    max-height:66px;
    width:auto
}

.site-title{
    font-weight:800;
    font-size:1.2rem
}

.primary-nav{
    margin-left:auto
}

.primary-nav ul{
    display:flex;
    align-items:center;
    gap:4px;
    list-style:none;
    padding:0;
    margin:0
}

.primary-nav li{
    position:relative
}

.primary-nav a{
    display:block;
    padding:12px 10px;
    font-weight:650;
    font-size:.94rem
}

.primary-nav .menu-item-has-children>a:after{
    content:" ▾";
    font-size:.75em
}

.primary-nav .sub-menu{
    display:none;
    position:absolute;
    min-width:230px;
    left:0;
    top:100%;
    background:#fff;
    box-shadow:var(--shadow);
    border:1px solid var(--border);
    border-radius:12px;
    padding:8px;

    /* Long desktop dropdowns remain inside the viewport */

    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.primary-nav li:hover>.sub-menu,

.primary-nav li:focus-within>.sub-menu{
    display:block
}

.menu-toggle{
    display:none;
    border:1px solid var(--border);
    background:#fff;
    border-radius:10px;
    width:44px;
    height:44px
}

.hero{
    position:relative;
    overflow:hidden;
    background:linear-gradient(100deg,rgba(17,21,79,.97),rgba(17,21,79,.86) 55%,rgba(17,21,79,.38)),var(--hero-image,linear-gradient(135deg,#11154f,#7d1f7a));
    background-size:cover;
    background-position:center;
    color:#fff;
    min-height:630px;
    display:grid;
    align-items:center
}

.hero-content{
    max-width:760px;
    padding:90px 0;
    position:relative;
    z-index:1
}

.eyebrow{display:inline-flex;
    color:var(--gold);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.82rem
}

.hero h1,.page-hero h1{
    margin:18px 0;
    line-height:1.05;
    font-size:clamp(2.8rem,6vw,5.6rem);
    letter-spacing:-.045em
}

.hero p{
    font-size:clamp(1.05rem,2vw,1.28rem);
    max-width:680px;
    color:rgba(255,255,255,.9)
}

.button-row{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
    margin-top:30px
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:50px;
    padding:12px 22px;
    border-radius:10px;
    font-weight:800;
    border:2px solid transparent
}

.btn-primary{
    background:var(--orange);
    color:#fff
}

.btn-secondary{
    border-color:rgba(255,255,255,.72);
    color:#fff
}

.btn-dark{
    background:var(--navy);
    color:#fff
}

.section{
    padding:88px 0
}

.section-soft{
    background:var(--bg)
}

.section-dark{
    background:var(--navy);
    color:#fff
}

.section-title{
    max-width:760px;
    margin-bottom:38px
}

.section-title h2{
    font-size:clamp(2rem,4vw,3.35rem);
    line-height:1.12;
    margin:10px 0 14px;
    letter-spacing:-.035em
}

.section-title p{
    color:var(--muted);
    font-size:1.08rem
}

.section-dark .section-title p{
    color:rgba(255,255,255,.76)
}

.grid{display:grid;
    gap:24px
}

.grid-2{
    grid-template-columns:repeat(2,1fr)
}

.grid-3{
    grid-template-columns:repeat(3,1fr)
}

.grid-4{
    grid-template-columns:repeat(4,1fr)
}

.card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:28px;
    box-shadow:0 8px 30px rgba(17,21,79,.06)
}

.card h3{
    margin:10px 0 8px;
    font-size:1.35rem
}

.card p{
    color:var(--muted);
    margin:0
}

.programme-card{
    padding:0;
    overflow:hidden
}

.programme-card .image{
    aspect-ratio:16/10;
    background:linear-gradient(135deg,#11154f,#7d1f7a);
    background-size:cover;
    background-position:center
}

.programme-card .content{
    padding:26px
}

.more{
    display:inline-block;
    margin-top:18px;
    font-weight:800;
    color:var(--orange)
}



/* =========================================================
   PROGRAMME DETAIL PAGES
   ========================================================= */

.programme-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 84px;
    background:
        linear-gradient(
            135deg,
            rgba(17, 21, 79, 0.98),
            rgba(49, 56, 137, 0.94)
        );
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.programme-hero .eyebrow,
.programme-detail-hero .eyebrow {
    color: var(--gold);
}

.programme-hero h1 {
    max-width: 980px;
    margin: 16px 0 20px;
    color: #ffffff;
    font-size: clamp(2.8rem, 5.5vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.programme-hero-intro {
    max-width: 760px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.14rem;
    line-height: 1.75;
}

.programme-hero .btn {
    background: var(--orange);
    color: #ffffff;
}

.programme-hero .btn:hover,
.programme-hero .btn:focus-visible {
    background: #d96d12;
    color: #ffffff;
}

.programme-introduction .split,
.programme-overview .split,
.programme-audience .split {
    align-items: center;
}

.programme-introduction p,
.programme-overview p,
.programme-audience p,
.programme-development p {
    color: var(--muted);
}

.programme-highlight-card {
    padding: 38px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--orange);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.programme-highlight-card h3 {
    margin: 12px 0 12px;
    color: var(--ink);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.programme-highlight-card p {
    margin: 0;
    color: var(--muted);
}

.programme-overview .media-panel {
    position: relative;
    overflow: hidden;
}

.programme-overview .media-panel:not([style])::before {
    content: "ACEF Programme";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.programme-focus-card {
    position: relative;
    height: 100%;
    overflow: hidden;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.programme-focus-card:hover {
    transform: translateY(-5px);
    background: #fff8f1;
    border-color: rgba(245, 130, 32, 0.65);
    box-shadow: 0 16px 38px rgba(17, 21, 79, 0.12);
}

.programme-focus-card:hover h3 { color: var(--navy); }
.programme-focus-card:hover p { color: var(--ink); }
.programme-focus-card:hover .programme-number {
    background: var(--navy);
    color: #fff;
}

.programme-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 34px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(245, 130, 32, 0.12);
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 0.08em;
}

.programme-focus-card h3 {
    margin-top: 20px;
}

.programme-development .grid-2 .card {
    height: 100%;
}

/* IMPORTANT: Some programme templates use .programme-outcomes on a GRID,
   while the GBVF template uses .programme-outcomes on the entire SECTION.
   Card rules below therefore target .grid.programme-outcomes > div only,
   preventing the GBVF .container from becoming one giant hover card. */
.programme-outcomes {
    margin-top: 32px;
}

.grid.programme-outcomes > div,
.programme-outcome {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.grid.programme-outcomes > div strong,
.programme-outcome strong {
    display: block;
    color: var(--gold);
    font-size: 1.28rem;
}

.grid.programme-outcomes > div span,
.programme-outcome span {
    color: rgba(255, 255, 255, 0.86);
}

.grid.programme-outcomes > div,
.programme-outcome {
    transition: transform .22s ease, background-color .22s ease,
                border-color .22s ease, box-shadow .22s ease;
}

.grid.programme-outcomes > div:hover,
.programme-outcome:hover {
    transform: translateY(-5px);
    background: #f7f8fc;
    border-color: var(--gold);
    box-shadow: 0 16px 34px rgba(0,0,0,.20);
}

.grid.programme-outcomes > div:hover strong,
.programme-outcome:hover strong { color: var(--navy); }

.grid.programme-outcomes > div:hover span,
.programme-outcome:hover span { color: var(--ink); }

.programme-cta {
    background: #ffffff;
}

.programme-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
    padding: 42px;
    border: 1px solid var(--border);
    border-left: 6px solid var(--orange);
    border-radius: 22px;
    background: #fff7ef;
    box-shadow: 0 12px 36px rgba(17, 21, 79, 0.07);
}

.programme-cta-inner h2 {
    margin: 10px 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.programme-cta-inner p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

.programme-cta-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.programme-cta-action .btn {
    min-width: 160px;
    background: var(--navy);
    color: #ffffff;
}

.programme-cta-action .btn:hover,
.programme-cta-action .btn:focus-visible {
    background: var(--orange);
    color: #ffffff;
}

.split{
    display:grid;
    grid-template-columns:1.05fr .95fr;gap:48px;
    align-items:center
}

.media-panel{
    min-height:430px;
    border-radius:28px;
    background:linear-gradient(135deg,#11154f,#7d1f7a);
    background-size:cover;
    background-position:center;
    box-shadow:var(--shadow)
}

.check-list{
    list-style:none;
    padding:0
}

.check-list li{
    margin:12px 0;
    padding-left:30px;
    position:relative
}

.check-list li:before{
    content:"✓";
    position:absolute;
    left:0;
    color:var(--green);
    font-weight:900
}

.stat-strip{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px
}

.stat{
    border:1px solid rgba(255,255,255,.18);
    border-radius:16px;
    padding:24px;
    background:rgba(255,255,255,.06)
}

.stat strong{
    font-size:1.25rem;
    display:block;
    color:var(--gold)
}

.stat span{
    color:rgba(255,255,255,.8)
}

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px
}

.gallery-grid a{
    border-radius:16px;
    overflow:hidden;
    min-height:220px;
    background:var(--bg)
}

.gallery-grid img{
    width:100%;
    height:100%;
    object-fit:cover
}

.page-hero{
    background:linear-gradient(135deg,var(--navy),#313889);
    color:#fff;
    padding:90px 0 70px
}

.page-hero h1{
    font-size:clamp(2.6rem,5vw,4.8rem);
    margin-bottom:12px
}

.page-hero p{
    max-width:760px;
    font-size:1.12rem;
    color:rgba(255,255,255,.82)
}

.content-wrap{
    padding:70px 0 90px
}

.notice{
    border-left:5px solid var(--orange);
    background:#fff7ef;
    padding:20px 22px;
    border-radius:0 12px 12px 0
}

.faq details{
    border:1px solid var(--border);
    border-radius:12px;
    padding:18px 20px;
    margin-bottom:12px;
    background:#fff
}

.faq summary{
    font-weight:800;
    cursor:pointer
}

.portal-shell{
    background:var(--bg);
    padding:70px 0
}

.portal-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:28px
}

.portal-link{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:24px;
    min-height:160px
}

.portal-link strong{
    display:block;
    font-size:1.12rem;
    margin-bottom:8px
}

.portal-link span{
    color:var(--muted)
}

.contact-grid{
    display:grid;
    grid-template-columns:.8fr 1.2fr;gap:32px
}

.contact-box{
    background:var(--navy);
    color:#fff;
    border-radius:18px;
    padding:30px
}

.contact-box a{
    color:var(--gold)
}

.contact-form label{
    display:block;
    font-weight:750;
    margin-bottom:6px
}

.contact-form input, .contact-form textarea{
    width:100%;
    padding:13px 14px;
    border:1px solid var(--border);
    border-radius:10px;
    margin-bottom:15px
}

.contact-form textarea{
    min-height:150px
}

.site-footer{
    background:#0b0e34;
    color:#fff;
    padding:60px 0 22px
}

.footer-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 1fr 1.2fr;
    gap:34px
}

.site-footer p,.site-footer li{
    color:rgba(255,255,255,.7)
}

.site-footer ul{
    list-style:none;
    padding:0
}

.site-footer a{
    color:rgba(255,255,255,.82)
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.14);
    margin-top: 38px;
    padding-top: 22px;
    color: rgba(255,255,255,.58);
    font-size: .9rem;
}

/* =========================================================
   FOOTER SOCIAL MEDIA
   ========================================================= */

.footer-socials {
    margin-top: 28px;
}

.footer-socials h4 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.footer-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;

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

.footer-social-links a:hover,
.footer-social-links a:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.footer-social-links a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* =========================================================
   FOOTER BRAND / LOGO
   ========================================================= */

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 24px;
}

.footer-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 150px;
    max-height: 110px;
    object-fit: contain;
}

.footer-description {
    max-width: 320px;
    margin: 0;
    line-height: 1.7;
}

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

/* ---------- TABLET / MOBILE NAVIGATION ---------- */

@media (max-width: 980px) {

    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .brand {
        min-width: 0;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
        flex: 0 0 44px;
        cursor: pointer;
    }

    /*
     * Navigation is CLOSED by default below 980px.
     * navigation.js adds .open when the menu button is pressed.
     */
    .primary-nav {
        display: none;
        width: 100%;
        margin-left: 0;
        order: 3;

        /* KEEP THE NAVIGATION INSIDE THE VISIBLE VIEWPORT. */
        max-height: calc(100dvh - 100px);

        /* SCROLL THE MENU ITSELF WHEN ITS CONTENT IS TOO TALL. */
        overflow-y: auto;
        overflow-x: hidden;

        /* SMOOTHER TOUCH SCROLLING ON SUPPORTED DEVICES. */
        -webkit-overflow-scrolling: touch;

        /* PREVENT SCROLL CHAINING INTO THE PAGE BEHIND THE MENU.*/
        overscroll-behavior: contain;
    }

    .primary-nav.open {
        display: block;
    }

    .primary-nav > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
        padding: 12px 0 28px;
    }

    .primary-nav > ul > li {
        width: 100%;
    }

    .primary-nav a {
        width: 100%;
        padding: 12px 10px;
    }

    /*
     * MOBILE / SUB-MENUS SIT IN NORMAL DOCUMENT FLOW RATHER THAN FLOATING AS DESKTOP DROPDOWNS. 
     */
    .primary-nav .sub-menu {
        position: static;
        display: block;
        width: 100%;
        min-width: 0;
        padding: 0 0 0 18px;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .primary-nav .sub-menu a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-logo-image {
        max-width: 135px;
        max-height: 100px;
    }


    /* PROGRAMME DETAIL PAGES */

    .programme-hero {
        padding: 78px 0 70px;
    }

    .programme-hero h1 {
        font-size: clamp(2.8rem, 7vw, 4.4rem);
    }

    .programme-cta-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .programme-cta-action {
        justify-content: flex-start;
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 680px) {

    .admin-bar .site-header {
        top: 46px;
    }

    .section {
        padding: 64px 0;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .stat-strip,
    .gallery-grid,
    .portal-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 72px 0;
    }

    .footer-brand {
        align-items: flex-start;
    }

    .footer-logo-image {
        max-width: 120px;
        max-height: 90px;
    }

    .footer-description {
        max-width: 100%;
    }


    /* PROGRAMME DETAIL PAGES */

    .programme-hero {
        padding: 60px 0 56px;
    }

    .programme-hero h1 {
        margin-top: 12px;
        font-size: clamp(2.35rem, 11vw, 3.35rem);
    }

    .programme-hero-intro {
        font-size: 1rem;
        line-height: 1.65;
    }

    .programme-hero .btn,
    .programme-cta-action .btn {
        width: 100%;
    }

    .programme-highlight-card,
    .programme-cta-inner {
        padding: 28px 24px;
    }

    .grid.programme-outcomes > div,
    .programme-outcome {
        min-height: auto;
    }

    .programme-cta-action {
        width: 100%;
    }
}

.gallery-category {
    margin-bottom: 72px;
}

.gallery-category:last-child {
    margin-bottom: 0;
}

.gallery-category .section-title {
    margin-bottom: 28px;
}

.gallery-grid a {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid a:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(17, 21, 79, 0.15);
}

/* LEADERSHIP & TEAM STYLING */
.leadership-group {
    margin-top: 56px;
}

.leadership-group + .leadership-group {
    margin-top: 80px;
}

.leadership-card {
    overflow: hidden;
    text-align: center;
}

.leadership-image {
    min-height: 320px;
    background-color: #f1f3f8;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.leadership-card .content {
    padding: 28px 24px;
}

.leadership-card h3 {
    margin-bottom: 8px;
}

.leadership-role {
    margin: 0;
    font-weight: 700;
    color: #f28c00;
}

@media (max-width: 768px) {
    .leadership-image {
        min-height: 280px;
    }

    .leadership-group {
        margin-top: 40px;
    }

    .leadership-group + .leadership-group {
        margin-top: 56px;
    }
}

/* OUR PARTNERS PAGE STYLING */

.partner-grid {
    align-items: stretch;
}

.partner-card {
    overflow: hidden;
    text-align: center;
}

.partner-logo {
    min-height: 145px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(247, 148, 30, 0.08),
        rgba(17, 21, 79, 0.04)
    );
    border-bottom: 1px solid rgba(17, 21, 79, 0.08);
}

.partner-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 125px;
    object-fit: contain;
}

.partner-card .content {
    padding: 20px 22px 24px;
}

.partner-card h3 {
    margin-bottom: 12px;
}

.partner-card p {
    margin-bottom: 0;
}

.partner-feature-grid {
    align-items: start;
}

.partner-card-featured,
.partner-network-card {
    height: 100%;
}

.partner-network-card {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid #f7941e;
}

.partnership-principles {
    padding: 36px;
}

.partnership-principles h3 {
    margin-bottom: 22px;
}

@media (max-width: 768px) {
    .partner-logo {
        min-height: 160px;
        padding: 22px;
    }

    .partner-logo img {
        max-height: 105px;
    }

    .partner-network-card,
    .partnership-principles {
        padding: 28px;
    }
}

.partnership-principles {
    color: #11154f;
}

.partnership-principles h3 {
    color: #11154f;
}

.partnership-principles .check-list li {
    color: #374151;
}

/* CONTACT PAGE SOCIAL MEDIA LINKS */

.contact-socials {
    margin-top: 40px;
}

.contact-socials h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background-color: #ff851b;
    border-color: #ff851b;
    color: #ffffff;
    transform: translateY(-2px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #11154f;
    font-weight: 700;
    line-height: 1;
}

.social-icon-x {
    font-family: Arial, sans-serif;
}

.social-icon-linkedin {
    font-family: Arial, sans-serif;
    font-size: 13px;
}

@media (max-width: 600px) {
    .social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .social-link {
        justify-content: flex-start;
        width: 100%;
    }
}

/* COMMUNITY, TRAINING & EDUCATION PARTNERS */

.partner-section--community,
.partner-section--education {
    padding: 88px 0;
}

.partner-section--education {
    background: #f6f7fb;
}

.partner-grid--two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 42px;
}

.education-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.education-partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 220px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dfe3ec;
    border-radius: 22px;
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.education-partner-card:hover {
    transform: translateY(-5px);
    border-color: rgba(242, 145, 0, 0.45);
    box-shadow: 0 18px 40px rgba(14, 28, 58, 0.09);
}

.education-partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 125px;
    margin-bottom: 14px;
    padding: 14px;
    background: #faf8f5;
}

.education-partner-logo {
    display: block;
    width: 100%;
    max-width: 250px;
    height: 95px;
    object-fit: contain;
}

.education-partner-card h3 {
    margin: auto 0 0;
    color: #121c33;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* TABLET / iPAD */

@media (max-width: 980px) {
    .education-partner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* MOBILE PHONE */

@media (max-width: 700px) {
    .partner-section--community,
    .partner-section--education {
        padding: 64px 0;
    }

    .partner-grid--two-columns,
    .education-partner-grid {
        grid-template-columns: 1fr;
    }

    .education-partner-card {
        min-height: auto;
    }
}

/* HOMEPAGE BRAND HERO */

.hero--brand {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    padding: 90px 0;
    background:
        radial-gradient(
            circle at 85% 50%,
            rgba(255, 255, 255, 0.1),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #11154f 0%,
            #20286f 100%
        );
    color: #ffffff;
}

.hero-brand-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    align-items: center;
    gap: 56px;
}

.hero-brand-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-brand-content .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #f58220;
}

.hero-brand-content h1 {
    margin: 0 0 24px;
    max-width: 720px;
    color: #ffffff;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.hero-brand-content p {
    max-width: 680px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.12rem;
    line-height: 1.75;
}

.hero-brand-content .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-brand-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    padding: 42px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 30px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.22);
}

.hero-brand-image img {
    display: block;
    width: 100%;
    max-width: 580px;
    max-height: 430px;
    object-fit: contain;
}

/* STUDENT HUB GATEWAY */

.portal-grid--gateway {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.portal-link--action {
    min-height: 260px;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.portal-link--action:hover {
    transform: translateY(-4px);
}

.portal-link--action:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

.portal-action {
    margin-top: auto;
    font-weight: 700;
}

@media (max-width: 700px) {
    .portal-grid--gateway {
        grid-template-columns: 1fr;
    }
}

/* MOBILE RESPONSIVE STYLING */

@media (max-width: 700px) {
    .portal-shell {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .notice {
        line-height: 1.6;
        padding: 1rem;
    }

    .portal-link--action {
        min-height: auto;
        padding: 1.25rem;
    }
}

/* NEW TABLET / iPAD RESPONSIVE STYLING */

@media (max-width: 980px) {
    .hero--brand {
        min-height: auto;
        padding: 76px 0;
    }

    .hero-brand-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .hero-brand-content {
        max-width: 780px;
    }

    .hero-brand-content h1 {
        max-width: 780px;
        font-size: clamp(3rem, 8vw, 4.6rem);
    }

    .hero-brand-image {
        min-height: 360px;
        max-width: 720px;
        width: 100%;
        padding: 36px;
    }

    .hero-brand-image img {
        max-height: 320px;
    }
}

/* NEW MOBILE STYLING FOR HERO IMAGE */

@media (max-width: 700px) {
    .hero--brand {
        padding: 58px 0;
    }

    .hero-brand-layout {
        gap: 34px;
    }

    .hero-brand-content h1 {
        margin-bottom: 20px;
        font-size: clamp(2.5rem, 12vw, 3.4rem);
        line-height: 1.06;
    }

    .hero-brand-content p {
        margin-bottom: 28px;
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-brand-content .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-brand-content .btn {
        width: 100%;
        text-align: center;
    }

    .hero-brand-image {
        min-height: 250px;
        padding: 24px;
        border-radius: 22px;
    }

    .hero-brand-image img {
        max-height: 230px;
    }
}

/* ABOUT ACEF PAGE SPACING */

.about-introduction {
    padding-top: 64px;
    padding-bottom: 72px;
}

.about-direction {
    padding-top: 72px;
    padding-bottom: 72px;
}

.about-values {
    padding-top: 72px;
    padding-bottom: 72px;
}

.about-values .section-title {
    margin-bottom: 36px;
}

.about-values .card {
    height: 100%;
}

.about-introduction .split {
    align-items: center;
    gap: 64px;
}

.about-introduction .section-title {
    margin-bottom: 26px;
}

.about-introduction .media-panel {
    min-height: 470px;
    background-size: cover;
    background-position: center;
}

@media (max-width: 980px) {
    .about-introduction .split {
        gap: 42px;
    }

    .about-introduction .media-panel {
        min-height: 400px;
    }
}

@media (max-width: 700px) {
    .about-introduction,
    .about-direction,
    .about-values {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .about-introduction .split {
        gap: 32px;
    }

    .about-introduction .media-panel {
        min-height: 320px;
    }

    .about-values .section-title {
        margin-bottom: 28px;
    }
}

/* =========================================================
   PUBLICATION BOOK IMAGES
   ========================================================= */

.publication-image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 420px;

    padding: 24px;

    overflow: hidden;
}

.publication-image img {
    display: block;

    width: 100%;
    max-width: 520px;
    height: 380px;

    object-fit: contain;
    object-position: center;

    margin: 0 auto;
}

/* FALLBACK SHOWN IF A PUBLICATION HAS UPLOADED IMAGE */

.publication-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 380px;

    padding: 24px;

    border: 1px dashed rgba(15, 23, 42, 0.20);
    border-radius: 18px;

    color: #64748b;
    text-align: center;
}

/* =========================================================
   PUBLICATION PARTNERS MARQUEE
   ========================================================= */

.publication-partners {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(15, 23, 42, 0.10);
}

.publication-partners-title {
    display: block;
    margin-bottom: 16px;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    color: #172033;
}


/* MARQUEE WINDOW */

.publication-marquee {
    position: relative;

    width: 100%;
    overflow: hidden;

    padding: 10px 0;

    isolation: isolate;
}


/* MOVING TRACK */

.publication-marquee-track {
    display: flex;
    align-items: center;

    width: max-content;

    animation: publicationMarquee 28s linear infinite;

    will-change: transform;
}


/* ONE COMPLETE COPY OF THE PARTNER LIST */

.publication-marquee-group {
    display: flex;
    align-items: center;

    flex: 0 0 auto;
}


/* INDIVIDUAL PARTNER */

.publication-partner-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding-right: 36px;

    flex: 0 0 auto;

    white-space: nowrap;
}


/* PARTNER LOGO */

.publication-partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 60px;
    height: 44px;

    flex: 0 0 auto;
}

.publication-partner-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/* PARTNER NAME */

.publication-partner-name {
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;

    color: #172033;
}


/* CONTINUOUS LOOP */

@keyframes publicationMarquee {

    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-50%, 0, 0);
    }

}


/* PAUSE ON HOVER / KEYBOARD */

.publication-marquee:hover .publication-marquee-track,
.publication-marquee:focus .publication-marquee-track,
.publication-marquee:focus-within .publication-marquee-track {
    animation-play-state: paused;
}


/* KEYBOARD FOCUS */

.publication-marquee:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
    border-radius: 8px;
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .publication-marquee {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
    }

    .publication-marquee-track {
        animation: none;
        transform: none;
        will-change: auto;
    }

}
/* =========================================================
   ABOUT ACEF — ORGANISATIONAL INFORMATION
   ========================================================= */


/* PURPOSE */

.about-purpose-panel {
    max-width: 900px;
    padding: 42px;
    border-left: 6px solid var(--orange);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.about-purpose-panel h2 {
    margin: 10px 0 14px;
}

.about-purpose-lead {
    max-width: 760px;
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.75;
}


/* MISSION & VISION */

.about-direction-card {
    position: relative;
    overflow: hidden;
}

.about-direction-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--orange);
}


/* ORGANISATIONAL GOAL */

.about-goal .section-title {
    max-width: 850px;
    margin-bottom: 0;
}


/* VALUES */

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.about-value-card {
    position: relative;
    min-height: 240px;
}

.about-value-number,
.about-work-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin-bottom: 20px;

    border-radius: 50%;

    background: var(--soft);
    color: var(--orange);

    font-size: 0.82rem;
    font-weight: 900;
}

.about-value-card h3,
.about-work-card h3 {
    margin-top: 0;
}


/* WHAT WE DO */

.about-work-card {
    position: relative;
    height: 100%;
}

.about-work-card ul {
    margin: 16px 0 0;
    padding-left: 20px;
}

.about-work-card li {
    margin-bottom: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.about-work-action {
    margin-top: 32px;
}


/* MOTTO */

.about-motto {
    padding-top: 56px;
    padding-bottom: 56px;

    background: var(--navy);
    color: var(--white);
}

.about-motto-inner {
    text-align: center;
}

.about-motto .eyebrow {
    color: var(--gold);
}

.about-motto blockquote {
    max-width: 900px;

    margin: 18px auto 0;

    color: var(--white);

    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;

    letter-spacing: -0.035em;
}


/* =========================================================
   ABOUT ACEF — RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .about-values-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 760px) {

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-purpose-panel {
        padding: 28px 22px;
    }

    .about-value-card {
        min-height: auto;
    }

    .about-work-action .btn {
        width: 100%;
        text-align: center;
    }

}


/* =========================================================
   PUBLICATION EXTRACT ACKNOWLEDGEMENT
   ========================================================= */

.publication-extract-note {
    margin-top: 18px;
    padding: 14px 16px;
    border-left: 4px solid var(--orange);
    border-radius: 0 8px 8px 0;
    background: rgba(245, 130, 32, 0.06);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.65;
    font-style: italic;
}

/* =========================================================
   ABOUT ACEF — PUBLICATION CONTENT COVERED
   FINAL POLISH
   ========================================================= */

.publication-covered-content {
    margin-top: 28px;
}

.publication-covered-content h4 {
    margin: 0 0 18px;
    color: #172033;
    font-size: 1rem;
    font-weight: 800;
}

.publication-covered-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 12px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.publication-covered-list li {
    position: relative;

    margin: 0;
    padding-left: 20px;

    color: #5d6678;
    line-height: 1.55;
}

.publication-covered-list li::before {
    content: "";
    position: absolute;

    left: 0;
    top: 0.67em;

    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #f58220;
}


/* ---------- TABLET ---------- */

@media (max-width: 980px) {

    .publication-covered-list {
        column-gap: 24px;
    }

}


/* ---------- MOBILE ---------- */

@media (max-width: 680px) {

    .publication-covered-content {
        margin-top: 24px;
    }

    .publication-covered-list {
        grid-template-columns: 1fr;
        gap: 11px;
    }

}

/* =========================================================
   ABOUT ACEF — INTERACTIVE CARD HOVER STATES
   ACCESSIBLE / COLOUR-BLIND FRIENDLY
   ========================================================= */


/* ---------------------------------------------------------
   ORGANISATIONAL VALUES
   --------------------------------------------------------- */

.about-value-card {
    position: relative;
    overflow: hidden;

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


/* ORANGE ACCENT LINE */
.about-value-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #f58220;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}


.about-value-card:hover,
.about-value-card:focus-within {
    transform: translateY(-6px);

    border-color: #f58220;

    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.12);

    background-color: #fffaf5;
}


.about-value-card:hover::before,
.about-value-card:focus-within::before {
    transform: scaleX(1);
}


/* NUMBER */
.about-value-card .about-value-number {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.about-value-card:hover .about-value-number,
.about-value-card:focus-within .about-value-number {
    color: #c45100;
    transform: translateX(4px);
}


/* HEADING */
.about-value-card h3 {
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.about-value-card:hover h3,
.about-value-card:focus-within h3 {
    color: #b54700;

    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: #f58220;
}


/* ---------------------------------------------------------
   OUR AREAS OF WORK
   --------------------------------------------------------- */

.about-work-card {
    position: relative;
    overflow: hidden;

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


/* ORANGE ACCENT LINE*/
.about-work-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background: #f58220;

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}


.about-work-card:hover,
.about-work-card:focus-within {
    transform: translateY(-6px);

    border-color: #f58220;

    box-shadow:
        0 16px 36px rgba(15, 23, 42, 0.12);

    background-color: #fffaf5;
}


.about-work-card:hover::before,
.about-work-card:focus-within::before {
    transform: scaleX(1);
}


/* NUMBER */
.about-work-card .about-work-number {
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.about-work-card:hover .about-work-number,
.about-work-card:focus-within .about-work-number {
    color: #c45100;
    transform: translateX(4px);
}


/* HEADING */
.about-work-card h3 {
    transition:
        color 0.25s ease,
        text-decoration-color 0.25s ease;
}

.about-work-card:hover h3,
.about-work-card:focus-within h3 {
    color: #b54700;

    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
    text-decoration-color: #f58220;
}


/* LIST BULLET */
.about-work-card li::marker {
    color: #64748b;
}

.about-work-card:hover li::marker,
.about-work-card:focus-within li::marker {
    color: #c45100;
}


/* ---------------------------------------------------------
   ACCESSIBILITY — REDUCED MOTION
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .about-value-card,
    .about-work-card,
    .about-value-card::before,
    .about-work-card::before,
    .about-value-number,
    .about-work-number {
        transition: none;
    }

    .about-value-card:hover,
    .about-value-card:focus-within,
    .about-work-card:hover,
    .about-work-card:focus-within {
        transform: none;
    }
}



/* =========================================================
   ACCESSIBLE CARD INTERACTIONS
   ========================================================= */

.section-dark .stat {
    transition: transform .22s ease, background-color .22s ease,
                border-color .22s ease, box-shadow .22s ease;
}
.section-dark .stat strong,
.section-dark .stat span { transition: color .22s ease; }
.section-dark .stat:hover {
    transform: translateY(-5px);
    background: #f7f8fc;
    border-color: var(--gold);
    box-shadow: 0 16px 34px rgba(0,0,0,.20);
}
.section-dark .stat:hover strong { color: var(--navy); }
.section-dark .stat:hover span { color: var(--ink); }

a.card {
    display:block;
    transition: transform .22s ease, border-color .22s ease,
                box-shadow .22s ease, background-color .22s ease;
}
a.card:hover {
    transform: translateY(-5px);
    background:#fff8f1;
    border-color:rgba(245,130,32,.65);
    box-shadow:0 16px 38px rgba(17,21,79,.12);
}
a.card:hover h3 { color:var(--navy); }
a.card:hover p { color:var(--ink); }
a.card:focus-visible {
    outline:3px solid var(--orange);
    outline-offset:4px;
}

.faq details {
    transition:border-color .2s ease, box-shadow .2s ease,
               background-color .2s ease;
}
.faq details:hover {
    border-color:rgba(245,130,32,.55);
    background:#fffaf5;
}
.faq details[open] {
    border-color:rgba(17,21,79,.24);
    box-shadow:0 10px 28px rgba(17,21,79,.07);
}
.faq summary:focus-visible {
    outline:3px solid var(--orange);
    outline-offset:5px;
    border-radius:4px;
}

@media (prefers-reduced-motion: reduce) {
    .programme-focus-card,
    .grid.programme-outcomes > div,
    .programme-outcome,
    .section-dark .stat,
    a.card,
    .faq details { transition:none; }

    .programme-focus-card:hover,
    .grid.programme-outcomes > div:hover,
    .programme-outcome:hover,
    .section-dark .stat:hover,
    a.card:hover { transform:none; }
}


/* =========================================================
   ACEF FINAL CARD INTERACTION & PARTNER SIZE FIXES
   22 SEPTEMBER 2026
   ========================================================= */


/* =========================================================
   1. STANDARD LIGHT CARD INTERACTIONS
   ========================================================= */

/*
 * Applies the same ACEF orange-tint interaction to cards
 * that are DIVs or ARTICLEs rather than links.
 */

.news-feature-card,
.impact-story-card,
.publication-card,
.partner-card,
.education-partner-card {
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


/* DESKTOP HOVER */

@media (hover: hover) and (pointer: fine) {

    .news-feature-card:hover,
    .impact-story-card:hover,
    .publication-card:hover,
    .partner-card:hover,
    .education-partner-card:hover {
        transform: translateY(-5px);
        background-color: #fff8f1;
        border-color: rgba(245, 130, 32, 0.65);
        box-shadow: 0 16px 38px rgba(17, 21, 79, 0.12);
    }

}


/* KEEP HEADINGS READABLE */

.news-feature-card:hover h3,
.impact-story-card:hover h3,
.publication-card:hover h3,
.partner-card:hover h3,
.education-partner-card:hover h3 {
    color: var(--navy);
}


/* KEEP PARAGRAPH TEXT READABLE */

.news-feature-card:hover p,
.impact-story-card:hover p,
.publication-card:hover p,
.partner-card:hover p,
.education-partner-card:hover p {
    color: var(--ink);
}


/* KEYBOARD ACCESSIBILITY */

.news-feature-card:focus-within,
.impact-story-card:focus-within,
.publication-card:focus-within,
.partner-card:focus-within,
.education-partner-card:focus-within {
    background-color: #fff8f1;
    border-color: var(--orange);
    box-shadow:
        0 0 0 3px rgba(245, 130, 32, 0.18),
        0 16px 38px rgba(17, 21, 79, 0.12);
}


/* =========================================================
   2. PROGRAMME FOCUS CARDS
   Preserve the Generic Management interaction everywhere
   ========================================================= */

.programme-focus-card {
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


@media (hover: hover) and (pointer: fine) {

    .programme-focus-card:hover {
        transform: translateY(-5px);
        background-color: #fff8f1;
        border-color: rgba(245, 130, 32, 0.65);
        box-shadow: 0 16px 38px rgba(17, 21, 79, 0.12);
    }

}


.programme-focus-card:hover h3 {
    color: var(--navy);
}


.programme-focus-card:hover p {
    color: var(--ink);
}


.programme-focus-card:hover .programme-number {
    background-color: var(--navy);
    color: #ffffff;
}


/* =========================================================
   3. BLUE PROGRAMME OUTCOME CARDS
   Individual card only — NOT the entire row
   ========================================================= */

.section-dark .grid.programme-outcomes > div,
.section-dark .programme-outcome {
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


@media (hover: hover) and (pointer: fine) {

    .section-dark .grid.programme-outcomes > div:hover,
    .section-dark .programme-outcome:hover {
        transform: translateY(-5px);

        background-color: #f7f8fc;

        border-color: var(--gold);

        box-shadow:
            0 16px 34px rgba(0, 0, 0, 0.20);
    }


    .section-dark .grid.programme-outcomes > div:hover strong,
    .section-dark .programme-outcome:hover strong {
        color: var(--navy);
    }


    .section-dark .grid.programme-outcomes > div:hover span,
    .section-dark .programme-outcome:hover span {
        color: var(--ink);
    }

}


/*
 * Important:
 * Nothing is applied to .programme-outcomes:hover itself.
 * Therefore neighbouring cards remain blue.
 */


/* =========================================================
   4. COMMUNITY / TRAINING / EDUCATION PARTNERS
   Reduce oversized cards and logo areas
   ========================================================= */

.education-partner-grid {
    gap: 22px;
}


/* MAIN PARTNER CARD */

.education-partner-card {
    min-height: 220px;

    padding: 20px;

    border-radius: 18px;
}


/* LOGO CONTAINER */

.education-partner-logo-wrap {
    height: 125px;

    margin-bottom: 18px;

    padding: 16px;

    border-radius: 12px;

    background-color: #faf8f5;
}


/* ACTUAL PARTNER LOGO */

.education-partner-logo {
    width: 100%;

    max-width: 200px;

    height: 88px;

    object-fit: contain;
}


/* PARTNER NAME */

.education-partner-card h3 {
    margin: auto 0 0;

    font-size: 1.08rem;

    line-height: 1.35;
}


/* OLDER PARTNER-CARD LAYOUT */

.partner-card .partner-logo {
    min-height: 145px;

    padding: 20px;
}


.partner-card .partner-logo img {
    max-height: 95px;
}


.partner-card .content {
    padding: 22px 20px 24px;
}


/* =========================================================
   5. NEWS & MEDIA CARDS
   ========================================================= */

.news-feature-card {
    height: 100%;
}


.news-feature-card .eyebrow {
    transition: color 0.22s ease;
}


.news-feature-card:hover .eyebrow {
    color: #c45100;
}


/* =========================================================
   6. IMPACT STORY CARDS
   ========================================================= */

.impact-story-card {
    height: 100%;
}


.impact-story-card .eyebrow,
.impact-story-status {
    transition: color 0.22s ease;
}


.impact-story-card:hover .eyebrow {
    color: #c45100;
}


.impact-story-card:hover .impact-story-status {
    color: var(--orange);
}


/* =========================================================
   7. NEWSLETTER / MEDIA BOOKLET CARDS
   ========================================================= */

.publication-card {
    height: 100%;
}


.publication-card .eyebrow {
    transition: color 0.22s ease;
}


.publication-card:hover .eyebrow {
    color: #c45100;
}


/* =========================================================
   8. TABLET PARTNER SIZING
   ========================================================= */

@media (max-width: 980px) {

    .education-partner-card {
        min-height: 220px;
    }


    .education-partner-logo-wrap {
        height: 115px;
    }


    .education-partner-logo {
        height: 80px;
        max-width: 180px;
    }

}


/* =========================================================
   9. MOBILE PARTNER SIZING
   ========================================================= */

@media (max-width: 700px) {

    .education-partner-card {
        min-height: auto;

        padding: 18px;
    }


    .education-partner-logo-wrap {
        height: 110px;

        margin-bottom: 16px;

        padding: 14px;
    }


    .education-partner-logo {
        height: 76px;

        max-width: 170px;
    }


    .partner-card .partner-logo {
        min-height: 120px;

        padding: 18px;
    }


    .partner-card .partner-logo img {
        max-height: 82px;
    }

}


/* =========================================================
   10. REDUCED MOTION ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .news-feature-card,
    .impact-story-card,
    .publication-card,
    .partner-card,
    .education-partner-card,
    .programme-focus-card,
    .grid.programme-outcomes > div,
    .programme-outcome {
        transition: none;
    }


    .news-feature-card:hover,
    .impact-story-card:hover,
    .publication-card:hover,
    .partner-card:hover,
    .education-partner-card:hover,
    .programme-focus-card:hover,
    .grid.programme-outcomes > div:hover,
    .programme-outcome:hover {
        transform: none;
    }

}

/* =========================================================
   BACK TO TOP BUTTON
   ========================================================= */

.back-to-top {
    position: fixed;

    right: 28px;
    bottom: 28px;

    z-index: 999;

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

    width: 52px;
    height: 52px;

    padding: 0;

    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;

    background-color: var(--navy);
    color: #ffffff;

    font-family: inherit;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transform: translateY(14px);

    box-shadow:
        0 10px 26px rgba(17, 21, 79, 0.24);

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}


/* VISIBLE AFTER SCROLLING */

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* HOVER */

@media (hover: hover) and (pointer: fine) {

    .back-to-top:hover {
        background-color: var(--orange);
        border-color: var(--orange);

        transform: translateY(-3px);

        box-shadow:
            0 14px 30px rgba(17, 21, 79, 0.28);
    }

}


/* KEYBOARD FOCUS */

.back-to-top:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* TABLET / MOBILE */

@media (max-width: 700px) {

    .back-to-top {
        right: 18px;
        bottom: 18px;

        width: 46px;
        height: 46px;

        font-size: 1.35rem;
    }

}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .back-to-top {
        transition:
            opacity 0.01ms,
            visibility 0.01ms;
    }

    .back-to-top,
    .back-to-top:hover,
    .back-to-top.is-visible {
        transform: none;
    }

}

/* =========================================================
   PARTNER CARD LOGO CONTROL
   ========================================================= */

.partner-card--compact,
.partner-card--publication {
    overflow: hidden;
}


/* ---------------------------------------------------------
   CONTROLLED LOGO AREA
   --------------------------------------------------------- */

.partner-logo-frame {
    width: 100%;
    height: 180px;

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

    padding: 28px;

    background: #ffffff;

    border-bottom: 1px solid rgba(17, 21, 84, 0.10);
}


/* ---------------------------------------------------------
   LOGO ITSELF

   Critical: LOGOS ARE CONTAINED RATHER THAN STRETCHED OR CROPPED.
   --------------------------------------------------------- */

.partner-logo-frame .partner-logo-image {
    display: block;

    width: auto !important;
    height: auto !important;

    max-width: 220px !important;
    max-height: 115px !important;

    object-fit: contain !important;

    margin: 0 auto;
}


/* ---------------------------------------------------------
   PARTNER CONTENT
   --------------------------------------------------------- */

.partner-card-content {
    padding: 28px;
}


.partner-card-content h3 {
    margin-top: 0;
    margin-bottom: 12px;
}


.partner-card-content p {
    margin-bottom: 0;
}


/* =========================================================
   CIVIC-EDUCATION PUBLICATION PARTNERS
   ========================================================= */

.partner-section--publication {
    padding: 80px 0;

    background: #f5f7fb;
}


.partner-grid--publication {
    display: grid;

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

    gap: 28px;

    margin-top: 40px;
}


/* ---------------------------------------------------------
   PARTNER TYPE
   --------------------------------------------------------- */

.partner-type {
    display: block;

    margin-bottom: 10px;

    color: #c95f00;

    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TEMPORARY LOGO PLACEHOLDER

   Used until the official organisation logos are added
   to the WordPress Media Library.
   --------------------------------------------------------- */

.partner-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 110px;
    height: 110px;

    border-radius: 50%;

    background: #f5f7fb;

    border: 2px solid #111554;

    color: #111554;

    font-size: 1.1rem;
    font-weight: 800;

    letter-spacing: 0.06em;
}


/* =========================================================
   PARTNER CARD INTERACTION
   ========================================================= */

.partner-card--compact,
.partner-card--publication {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}


.partner-card--compact:hover,
.partner-card--publication:hover {
    transform: translateY(-4px);

    background: #fff8f1;

    border-color: rgba(238, 118, 32, 0.38);

    box-shadow:
        0 14px 32px
        rgba(17, 21, 84, 0.10);
}


/*
 * KEEP LOGO ARE WHITE WHEN THE CARD IS HOVERED.
 * THIS GIVES LOGOS A CONSISTENT NEUTRAL BACKGROUND.
 */

.partner-card--compact:hover .partner-logo-frame,
.partner-card--publication:hover .partner-logo-frame {
    background: #ffffff;
}


/* =========================================================
   KEYBOARD ACCESSIBILITY
   ========================================================= */

.partner-card--compact:focus-within,
.partner-card--publication:focus-within {
    outline: 3px solid #111554;
    outline-offset: 4px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .partner-card--compact,
    .partner-card--publication {
        transition: none;
    }

    .partner-card--compact:hover,
    .partner-card--publication:hover {
        transform: none;
    }

}


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

@media (max-width: 980px) {

    .partner-grid--publication {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


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

@media (max-width: 680px) {

    .partner-grid--publication,
    .partner-grid--two-columns {
        grid-template-columns: 1fr;
    }


    .partner-logo-frame {
        height: 150px;

        padding: 24px;
    }


    .partner-logo-frame .partner-logo-image {
        max-width: 190px !important;
        max-height: 95px !important;
    }


    .partner-card-content {
        padding: 24px;
    }

}

/* =========================================================
   HOMEPAGE HERO — FINAL REDESIGN OVERRIDES
   ========================================================= */

.hero--home {
    background:
    radial-gradient(
        circle at 14% 18%,
        rgba(255, 255, 255, 0.12),
        transparent 30%
    ),
    linear-gradient(
        110deg,
        #d95f0b 0%,
        #d8640c 72%,
        #11154f 72.2%,
        #11154f 100%
    );

    color: #ffffff;
}


/* LAYOUT */

.hero--home .hero-brand-layout {
    display: grid;
    grid-template-columns:
    minmax(0, 1.15fr)
    minmax(380px, 0.85fr);

    align-items: center;
    gap: 54px;
}


/* HOMEPAGE TEXT */

.hero--home .hero-brand-content {
    max-width: 690px;
}

.hero--home .hero-brand-content .eyebrow {
    margin-bottom: 20px;

    color: #11154f;

    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.hero--home .hero-brand-content h1 {
    max-width: 820px;
    margin: 0 0 32px;

    color: #ffffff;

    font-size: clamp(2.65rem, 3.65vw, 3.75 rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}


/* Buttons */

.hero--home .btn-primary {
    background: #11154f;
    border-color: #11154f;
    color: #ffffff;
}

.hero--home .btn-primary:hover,
.hero--home .btn-primary:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #11154f;
}

.hero--home .btn-secondary {
    border-color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
}

.hero--home .btn-secondary:hover,
.hero--home .btn-secondary:focus-visible {
    background: #ffffff;
    border-color: #ffffff;
    color: #11154f;
}


/* =========================================================
   HOMEPAGE PHOTOGRAPH
   ========================================================= */

.hero--home .hero-brand-image {
    position: relative;

    width: 100%;
    min-height: 0;
    padding: 0;

    overflow: hidden;

    aspect-ratio: 5 / 4;

    background: transparent;

    border:
        5px solid
        rgba(255, 255, 255, 0.94);

    border-radius: 26px;

    box-shadow:
        0 28px 70px
        rgba(0, 0, 0, 0.28);
}


/* ORANGE ACCENT BEHIND PHOTOGRAPH */

.hero--home .hero-brand-image::before {
    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    right: -24px;
    bottom: -24px;

    z-index: 2;

    border-right: 14px solid #f58220;
    border-bottom: 14px solid #f58220;

    border-radius: 0 0 28px 0;

    pointer-events: none;
}


.hero--home .hero-brand-image img,
.hero--home .hero-brand-image .hero-home-photo {
    display: block;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    aspect-ratio: 5 / 4;

    object-fit: cover;
    object-position: center;

    border-radius: 20px;
}


/* =========================================================
   HOMEPAGE HERO — TABLET
   ========================================================= */

@media (max-width: 980px) {

    .hero--home {
        min-height: auto;

        padding: 72px 0;

        background:
            linear-gradient(
                155deg,
                #f58220 0%,
                #e97517 46%,
                #11154f 46.2%,
                #11154f 100%
            );
    }

    .hero--home .hero-brand-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero--home .hero-brand-content {
        max-width: 760px;
    }

    .hero--home .hero-brand-image {
        width: min(100%, 680px);

        aspect-ratio: 16 / 10;
    }

    .hero--home .hero-brand-image img,
    .hero--home .hero-brand-image .hero-home-photo {
        aspect-ratio: 16 / 10;
    }
}


/* =========================================================
   HOMEPAGE HERO — MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .hero--home {
        padding: 56px 0 64px;

        background:
            linear-gradient(
                165deg,
                #f58220 0%,
                #e97517 54%,
                #11154f 54.2%,
                #11154f 100%
            );
    }

    .hero--home .hero-brand-layout {
        gap: 38px;
    }

    .hero--home .hero-brand-content h1 {
        margin-bottom: 28px;

        font-size:
            clamp(
                2.35rem,
                11vw,
                3.25rem
            );
    }

    .hero--home .hero-brand-content .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero--home .hero-brand-content .btn {
        width: 100%;
    }

    .hero--home .hero-brand-image {
        aspect-ratio: 4 / 3;

        border-width: 4px;
        border-radius: 20px;
    }

    .hero--home .hero-brand-image img,
    .hero--home .hero-brand-image .hero-home-photo {
        aspect-ratio: 4 / 3;
        border-radius: 15px;
    }

}

/* =========================================================
   SITE HEADER — STRONGER ACEF BRAND PRESENCE
   ========================================================= */

.site-header .header-inner {
    min-height: 118px;
    gap: 32px;
}

.site-header .brand {
    flex: 0 0 auto;
    min-width: 250px;
}

.site-header .custom-logo-link {
    display: flex;
    align-items: center;
}

.site-header .custom-logo {
    display: block;

    width: auto;
    height: auto;

    max-width: 245px;
    max-height: 100px;

    object-fit: contain;
}


/* TABLET */

@media (max-width: 980px) {

    .site-header .header-inner {
        min-height: 94px;
    }

    .site-header .brand {
        min-width: 0;
    }

    .site-header .custom-logo {
        max-width: 205px;
        max-height: 82px;
    }

}


/* MOBILE */

@media (max-width: 680px) {

    .site-header .header-inner {
        min-height: 82px;
    }

    .site-header .custom-logo {
        max-width: 165px;
        max-height: 68px;
    }

}

/* HOMEPAGE HERO DESKTOP HEIGHT + SPACING ADJUSTMENT */
@media (min-width: 981px) {

    .hero--home {
        min-height: 0;
        padding: 54px 0;
    }

}

/* HOMEPAGE DESKTOP HEADLINE CORRECTION */
@media (min-width: 981px) {

    .hero--home .hero-brand-content h1 {
        max-width: 760px;

        font-size: 3.35rem;
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .hero--home .hero-brand-layout {
        align-items: center;
    }

    .hero--home .hero-brand-layout {
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(360px, 0.7fr);

    gap: 46px;
    align-items: center;
    }
}

/* =========================================================
   ACEF LOGO — FINAL DESKTOP BRAND EMPHASIS
   ========================================================= */

@media (min-width: 981px) {

    .site-header .brand {
        min-width: 285px;
    }

    .site-header .custom-logo {
        max-width: 275px;
        max-height: 112px;
    }

    .home .home-hero-brand {
        display: block;
    }

}




/* =========================================================
   ACEF ABOUT — SELF-CONTAINED REBUILD (October 2026)
   Append this entire block to the END of the existing style.css.
   Do NOT replace the global theme stylesheet.
   ========================================================= */
.acef-about { 
    --about-navy:#11154f;
    --about-orange:#f58220; 
    --about-ink:#172033; 
    --about-muted:#4c5668; 
    color:var(--about-ink);
}

.acef-about * {
    box-sizing:border-box;
}

.acef-about__hero { 
    padding:76px 0 80px; 
    background:linear-gradient(110deg,#cf5908 0%,#cf5908 73%,#11154f 73.2%); 
    color:#fff; 
}

.acef-about__hero-label { 
    display:block; 
    margin-bottom:12px; 
    font-size:.85rem; 
    letter-spacing:.13em; 
    font-weight:800; 
    text-transform:uppercase; 
    color:#fff;
}

.acef-about__hero h1 { 
    color:#fff; 
    font-size:clamp(3rem,6vw,5.3rem); 
    line-height:1.08; 
    letter-spacing:-.045em; 
    margin:0 0 16px;
}

.acef-about__hero p { 
    color:#fff; 
    font-size:clamp(1.05rem,2vw,1.3rem); 
    margin:0; 
    max-width:750px; 
}

.acef-about__section { 
    padding:76px 0;
}

.acef-about__section:nth-of-type(even) { 
    background:#f7f8fb;
}
.acef-about__intro { 
    background:#fff !important;
}

.acef-about__intro-grid { 
    display:grid; 
    grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); 
    gap:50px; 
    align-items:center;
}

.acef-about__label { 
    display:block; 
    color:#bc4c00; 
    text-transform:uppercase; 
    font-size:.85rem; 
    font-weight:850; 
    letter-spacing:.12em; 
    margin-bottom:12px;
}

.acef-about__intro h2 { 
    font-size:clamp(2.30rem,4.5vw,4.05rem); 
    line-height:1.12; 
    letter-spacing:-.04em; 
    margin:0 0 24px; 
    color:var(--about-ink);
}

.acef-about__intro p { 
    color:var(--about-muted); 
    font-size:1.02rem; 
    line-height:1.68;
}

.acef-about__intro-photo { 
    margin:0; 
    border:5px solid var(--about-navy); 
    border-bottom:9px solid var(--about-orange); 
    border-radius:24px; overflow:hidden; 
    box-shadow:0 18px 40px rgba(17,21,79,.12); 
    background:#fff; 
    align-self:center; 
}

.acef-about__intro-img { 
    display:block; 
    width:100%; 
    height:auto; 
    max-height:none; 
    object-fit:contain;
}

.acef-about__motto { 
    padding:56px 0; 
    background:linear-gradient(110deg,#c65308,#e97517 75%,#11154f 75.2%); 
    color:#fff; 
}

.acef-about__motto h2 { 
    color:#fff; 
    font-size:clamp(2rem,4vw,3.6rem); 
    line-height:1.15; 
    margin:0;
}

.acef-about__section-heading { 
    max-width:850px;
    margin-bottom:30px;
}

.acef-about__section-heading h2 { 
    color:var(--about-navy); 
    font-size:clamp(2rem,4vw,3.3rem); 
    line-height:1.15;
    margin:0 0 12px;
}

.acef-about__section-heading p { 
    color:var(--about-muted);
    margin:0; 
    font-size:1.05rem;
}

.acef-about__grid {
    display:grid; 
    gap:18px; 
    align-items:stretch;
}

.acef-about__grid--3 { 
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.acef-about__grid--4 { 
    grid-template-columns:repeat(4,minmax(0,1fr)); 
}

.acef-about__grid--5 { 
    grid-template-columns:repeat(5,minmax(0,1fr));
}

.acef-about__card { 
    min-width:0; 
    height:100%; 
    padding:26px 22px; 
    background:#fff; 
    border:1px solid #e2e5ed; 
    border-top:5px solid var(--about-orange); 
    border-radius:16px; 
    box-shadow:0 9px 24px rgba(17,21,79,.06);
}

.acef-about__number { 
    display:inline-flex; 
    align-items:center; 
    justify-content:center; 
    min-width:42px; 
    min-height:38px; 
    padding:4px 10px; 
    margin-bottom:16px; 
    border-radius:50px; 
    background:#fff0e3; 
    color:#a83e00; 
    font-size:.85rem; 
    font-weight:900;
}

.acef-about__card h3 { 
    margin:0 0 12px; 
    color:var(--about-navy); 
    font-size:1.22rem; 
    line-height:1.3; 
    overflow-wrap:anywhere;
}

.acef-about__card p { 
    margin:0; 
    color:var(--about-muted); 
    font-size:.97rem; 
    line-height:1.65; 
}

.acef-about__photos { 
    margin-top:18px;
}

.acef-about__photo { 
    margin:0; 
    min-width:0; 
    aspect-ratio:4/3; 
    overflow:hidden; 
    border-radius:14px; 
    background:#e9edf3; 
    border-bottom:5px solid var(--about-orange);
}

.acef-about__photo-img { 
    width:100%; 
    height:100%; 
    object-fit:cover; 
    display:block; 
}

.acef-about__action { 
    margin:28px 0 0; 
}

.acef-about__button { 
    display:inline-flex; 
    padding:13px 22px; 
    border-radius:10px; 
    background:var(--about-navy); 
    color:#fff; 
    font-weight:800;
}

.acef-about__button:hover,.acef-about__button:focus-visible { 
    background:#bd4f08; 
    color:#fff; 
}

.acef-about__button:focus-visible { 
    outline:3px solid var(--about-orange); 
    outline-offset:3px;
}

@media(max-width:1100px) { .acef-about__grid--4,.acef-about__grid--5 { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:800px) { .acef-about__intro-grid { grid-template-columns:1fr; gap:28px; } .acef-about__grid--3 { grid-template-columns:repeat(2,minmax(0,1fr)); } .acef-about__section { padding:58px 0; } }
@media(max-width:580px) { .acef-about__grid--3,.acef-about__grid--4,.acef-about__grid--5 { grid-template-columns:1fr; } .acef-about__hero { padding:56px 0; background:#c65308; } .acef-about__motto { background:#c65308; } .acef-about__card { padding:24px; } .acef-about__photo { aspect-ratio:16/10; } }

/* =========================================================
   ACEF ABOUT — VERIFIED VISUAL REFINEMENTS
   ========================================================= */

/* REDUCE EXCESSIVE WHITESPACE */

.acef-about .acef-about__section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.acef-about .acef-about__section-heading {
    margin-bottom: 24px;
}

.acef-about .acef-about__photos {
    margin-top: 16px;
}


/* ORANGE HOVER - CORRECT CARD CLASS */

.acef-about .acef-about__card {
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.acef-about .acef-about__card:hover {
    background-color: #ffd4ae;
    border-color: #e97517;
    border-top-color: #e97517;

    transform: translateY(-3px);

    box-shadow: 0 16px 36px rgba(17, 21, 79, 0.14);
}

/* KEEP TEXT READABLE ON ORANGE */

.acef-about .acef-about__card:hover h3,
.acef-about .acef-about__card:hover p {
    color: #11154f;
}


/* FIRST STRATEGIC OVERVIEW PHOTOGRAPH - ID 878 */

.acef-about
.acef-about__section--strategic
.acef-about__photo:first-child
.acef-about__photo-img {
    object-fit: contain;
    object-position: center;
    background-color: #f4f5f8;
}


/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .acef-about .acef-about__card {
        transition: none;
    }

    .acef-about .acef-about__card:hover {
        transform: none;
    }
}


/* =========================================================
   ACEF PROGRAMMES — LANDING PAGE DESIGN
   ========================================================= */

.acef-programmes {
    --programme-navy: #11154f;
    --programme-orange: #f58220;
    --programme-hover: #ffd4ae;
    --programme-text: #192236;
    color: var(--programme-text);
}

/* ORANGE AND NAVY HERO */

.acef-programmes .acef-programmes__hero {
    padding: 76px 0;
    background: linear-gradient(
        110deg,
        #e97517 0%,
        #f58220 73%,
        #11154f 73.2%,
        #11154f 100%
    );
    color: #fff;
}

.acef-programmes .acef-programmes__hero h1 {
    margin: 12px 0 16px;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 4.8rem);
    line-height: 1.08;
}

.acef-programmes .acef-programmes__hero p {
    max-width: 680px;
    margin: 0;
    color: #fff;
    font-size: 1.15rem;
}

.acef-programmes__eyebrow {
    display: block;
    color: #a64b00;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.acef-programmes__hero .acef-programmes__eyebrow {
    color: #11154f;
}

/* SECTION SPACING */

.acef-programmes .acef-programmes__section {
    padding: 62px 0 72px;
    background: #f7f8fb;
}

.acef-programmes__intro {
    margin-bottom: 30px;
}

.acef-programmes__intro h2 {
    margin: 10px 0 12px;
    color: #11154f;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.acef-programmes__intro p {
    max-width: 760px;
    margin: 0;
    color: #42506a;
}

/* THREE-COLUMN CARD GRID */

.acef-programmes .acef-programmes__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* CARDS */

.acef-programmes .acef-programmes__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4e7ef;
    border-top: 5px solid #f58220;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(17, 21, 79, 0.08);
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.acef-programmes .acef-programmes__card:hover,
.acef-programmes .acef-programmes__card:focus-within {
    background: #ffd4ae;
    box-shadow: 0 18px 38px rgba(17, 21, 79, 0.15);
    transform: translateY(-4px);
}

/* THUMBNAILS — NEVER CROP THE TEXT */

.acef-programmes .acef-programmes__image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 265px;
    padding: 12px;
    background: #fff;
    border-bottom: 1px solid #e4e7ef;
}

.acef-programmes .acef-programmes__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

.acef-programmes__placeholder {
    width: 100%;
    height: 100%;
    background: #eef0f6;
    border-radius: 10px;
}

/* CARD CONTENT */

.acef-programmes .acef-programmes__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    padding: 26px 24px 28px;
}

.acef-programmes__number {
    color: #b45100;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.acef-programmes__content h3 {
    margin: 0;
    color: #11154f;
    font-size: 1.3rem;
    line-height: 1.3;
}

.acef-programmes__content p {
    margin: 0 0 12px;
    color: #26334d;
    line-height: 1.65;
}

.acef-programmes__link,
.acef-programmes__pending {
    margin-top: auto;
    font-weight: 700;
}

.acef-programmes__link {
    color: #11154f;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.acef-programmes__link:hover,
.acef-programmes__link:focus-visible {
    color: #923d00;
}

.acef-programmes__pending {
    color: #394760;
    font-size: 0.92rem;
}

/* TABLET */

@media (max-width: 980px) {
    .acef-programmes .acef-programmes__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acef-programmes .acef-programmes__hero {
        padding: 60px 0;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .acef-programmes .acef-programmes__grid {
        grid-template-columns: 1fr;
    }

    .acef-programmes .acef-programmes__hero {
        padding: 48px 0;
        background: linear-gradient(
            150deg,
            #e97517 0%,
            #f58220 84%,
            #11154f 84.2%
        );
    }

    .acef-programmes .acef-programmes__section {
        padding: 42px 0 52px;
    }

    .acef-programmes .acef-programmes__image {
        height: 280px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .acef-programmes .acef-programmes__card {
        transition: none;
    }

    .acef-programmes .acef-programmes__card:hover,
    .acef-programmes .acef-programmes__card:focus-within {
        transform: none;
    }
}


/* ================================================
   ABOUT ACEF — INTEGRATED PHOTO CARDS
   ================================================ */

.acef-about .acef-about__card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.acef-about__card-content {
    flex: 1;
    padding: 24px 22px 26px;
}

.acef-about__card-photo {
    width: 100%;
    margin: 0;
    padding: 10px 12px 12px;
    background: #fff;
    border-top: 1px solid #e4e7ee;
}

.acef-about__card-img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

/* FOUR-COLUMN STRATEGIC OVERVIEW */
.acef-about__section--strategic
.acef-about__card-img {
    height: 155px;
}

/* FIVE-COLUMN ORGANISATIONAL VALUES */
.acef-about__section--values
.acef-about__card-img {
    height: 135px;
}

/* STRATEGIC OVERVIEW - FIRST PHOTOGRAPH */
.acef-about__section--strategic
.acef-about__card:first-child
.acef-about__card-img {
    object-fit: cover;
    object-position: center 40%;
    background: #f4f5f8;
}

/* GIVE PHOTOGRAPHS MORE SPACE ON SMALL SCREENS */
@media (max-width: 1100px) {
    .acef-about__section--strategic
    .acef-about__card-img,
    .acef-about__section--values
    .acef-about__card-img {
        height: 190px;
    }
}

@media (max-width: 580px) {
    .acef-about__card-img,
    .acef-about__section--strategic
    .acef-about__card-img,
    .acef-about__section--values
    .acef-about__card-img {
        height: 220px;
    }
}

/* =========================================================
   ACEF — BACK TO TOP BUTTON
   TEXT LABEL ENHANCEMENT
   ========================================================= */

.back-to-top {
    width: auto;
    min-width: 155px;
    height: 52px;

    padding: 0 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 999px;

    background-color: var(--navy);
    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

/* ARROW */

.back-to-top__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;
    line-height: 1;
}

/* TEXT */

.back-to-top__text {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1;
}

/* KEEP TEXT VISIBLE ON HOVER */

.back-to-top:hover,
.back-to-top:focus-visible {
    color: #ffffff;
}

/* MOBILE */

@media (max-width: 700px) {
    .back-to-top {
        width: auto;
        min-width: 135px;
        height: 46px;
        padding: 0 14px;
        gap: 8px;
        font-size: 0.85rem;
    }

    .back-to-top__text {
        font-size: 0.85rem;
    }

    .back-to-top__icon {
        font-size: 1.3rem;
    }
}

/* =========================================================
   ACEF PARTNERS — INTERACTIVE CATEGORY TABS
   ========================================================= */

/* KEEP INACTIVE PARTNERSHIP PANELS HIDDEN */
.acef-partner-panel[hidden] {
    display: none !important;
}

/* TAB NAVIGATION SECTION */
.acef-partner-tabs-section {
    padding: 55px 0 25px;
    background: #f7f9fc;
}

/* INTRODUCTORY CONTENT */
.acef-partner-tabs-intro {
    max-width: 780px;
    margin: 0 auto 35px;
    text-align: center;
}

.acef-partner-tabs-intro .eyebrow {
    color: #ef7900;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.acef-partner-tabs-intro h2 {
    color: #101b4d;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 12px 0 15px;
    line-height: 1.2;
}

.acef-partner-tabs-intro p {
    color: #48536b;
    font-size: 1rem;
    line-height: 1.8;
}

/* TAB BUTTON CONTAINER */
.acef-partner-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

/* INDIVIDUAL TAB BUTTONS*/
.acef-partner-tab {
    appearance: none;
    border: 2px solid var(--navy);
    border-radius: 12px;
    background: var(--navy);
    color: #ffffff;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* HOVER EFFECT */
.acef-partner-tab:hover {
    background: #253a80;
    border-color: #253a80;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ACTIVE TAB */
.acef-partner-tab.is-active,
.acef-partner-tab[aria-selected="true"] {
    background: var(--orange);
    border-color: var(--orange);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(239, 121, 0, 0.22);
}

/* KEEP ACTIVE TABS ORANGE ON HOVER*/
.acef-partner-tab.is-active:hover,
.acef-partner-tab[aria-selected="true"]:hover {
    background: #d96d00;
    border-color: #d96d00;
    color: #ffffff;
}

/* KEYBOARD ACCESSIBILITY  */
.acef-partner-tab:focus-visible {
    outline: 3px solid #ef7900;
    outline-offset: 4px;
}

/* SPACE BETWEEN TABS AND PARTNER CONTENT */
.acef-partner-tabs-section + .acef-partner-panel {
    padding-top: 45px;
}

.acef-partner-panel {
    scroll-margin-top: 150px;
}

/* TABLET SCREENS */
@media (max-width: 900px) {
    .acef-partner-tabs-section {
        padding: 45px 0 20px;
    }

    .acef-partner-tab {
        flex: 1 1 220px;
    }
}

/* MOBILE SCREENS*/
@media (max-width: 600px) {
    .acef-partner-tabs-section {
        padding: 35px 0 15px;
    }

    .acef-partner-tabs-intro {
        margin-bottom: 25px;
    }

    .acef-partner-tabs {
        gap: 10px;
    }

    .acef-partner-tab {
        flex: 1 1 100%;
        padding: 13px 16px;
        font-size: 0.9rem;
    }

    .acef-partner-tabs-section + .acef-partner-panel {
        padding-top: 30px;
    }
}

/* RESPECT REDUCED-MOTION PREFERENCES */
@media (prefers-reduced-motion: reduce) {
    .acef-partner-tab {
        transition: none;
    }

    .acef-partner-tab:hover {
        transform: none;
    }
}

/* =========================================================
   ACEF PARTNERS — UNIFIED TAB CONTENT SPACING
   ========================================================= */

/* USE ONE CONSISTENT BACKGROUND FOR THE TAB NAVIGATION */
.acef-partner-tabs-section {
    background: var(--bg);
    padding-bottom: 32px;
}

/* GIVE ALL SIX PARTNERSHIP PANELS CONSISTENT VERTICAL SPACING*/
.acef-partner-panel {
    padding-top: 56px;
    padding-bottom: 72px;
}

/* KEEP THE NAVIGATION-TO-CONTENT TRANSITION CONSISTENT */
.acef-partner-tabs-section + .acef-partner-panel {
    padding-top: 56px;
}

/* PRESERVE HIDDEN PANELS*/
.acef-partner-panel[hidden] {
    display: none !important;
}

/* MOBILE SPACING*/
@media (max-width: 680px) {
    .acef-partner-tabs-section {
        padding-bottom: 24px;
    }

    .acef-partner-panel,
    .acef-partner-tabs-section + .acef-partner-panel {
        padding-top: 40px;
        padding-bottom: 52px;
    }
}

/* =========================================================
   ACEF OUR PARTNERS — MATCH PROGRAMME HERO DESIGN
   REFERENCE: acef-gbvf.css
   ========================================================= */

.page-hero--partners {
    position: relative;
    overflow: hidden;

    display: block;

    min-height: 0;
    padding: 76px 0 82px;

    background: linear-gradient(
        110deg,
        #e97517 0%,
        #f58220 73%,
        #11154f 73.2%,
        #11154f 100%
    );

    color: #ffffff;
}

/* CONTENT CONTAINER */
.page-hero--partners .container {
    position: relative;
    z-index: 1;
}

/* EYEBROW LABEL */
.page-hero--partners .eyebrow {
    display: block;
    margin-bottom: 12px;

    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* HEADING - MATCH PROGRAMME TYPOGRAPHY*/
.page-hero--partners h1 {
    max-width: 850px;
    margin: 16px 0 20px;
    padding: 0;

    color: #ffffff;

    font-size: clamp(2.5rem, 4.7vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

/* REMOVE PREVIOUS DECORATIVE UNDERLINE */
.page-hero--partners h1::after {
    content: none;
}

/* DESCRIPTION - MATCH PROGRAMME TYPOGRAPHY */
.page-hero--partners p {
    max-width: 690px;
    margin: 0;

    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* TABLET */
@media (max-width: 980px) {
    .page-hero--partners {
        min-height: 0;
        padding: 60px 0;
    }
}

/* MOBILE */
@media (max-width: 680px) {
    .page-hero--partners {
        min-height: 0;
        padding: 48px 0;

        background: linear-gradient(
            150deg,
            #e97517 0%,
            #f58220 84%,
            #11154f 84.2%,
            #11154f 100%
        );
    }
}

/* =========================================================
   ACEF PARTNERS — UNIFIED PARTNERSHIP HEADINGS
   ========================================================= */

/* CONSISTENT HEADING TYPOGRAPHY */
.acef-partner-panel h2 {
    margin: 0 0 18px;
    color: var(--navy);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* CONSISTENT EYEBROW LABELS */
.acef-partner-panel .eyebrow,
.acef-partner-panel .section-eyebrow {
    display: block;
    margin: 0 0 14px;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

/* CONSISTENT INTRODUCTORY PARAGRAPHS */
.acef-partner-panel .section-title > p,
.acef-partner-panel .section-intro {
    max-width: 760px;
    margin: 0;
    color: #45516a;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* CONSISTENT HEADING GROUP SPACING */
.acef-partner-panel .section-title {
    margin-bottom: 32px;
}

/* PRESERVE HIDDEN TAB PANELS */
.acef-partner-panel[hidden] {
    display: none !important;
}

/* =========================================================
   ACEF PARTNERS — CONSISTENT CONTENT ALIGNMENT
   ========================================================= */

/* ALIGN BOTH CONTAINER TYPES CONSISTENTLY */
.acef-partner-panel > .container,
.acef-partner-panel > .site-container {
    width: min(100% - 40px, 1180px);
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

/* MATCH THE INTRODUCTORY HEADING SPACING */
.acef-partner-panel .section-title {
    margin-bottom: 32px;
}

/* PRESERVE HIDDEN PANELS */
.acef-partner-panel[hidden] {
    display: none !important;
}

/* MOBILE */
@media (max-width: 680px) {
    .acef-partner-panel > .container,
    .acef-partner-panel > .site-container {
        width: calc(100% - 32px);
    }
}

/* =========================================================
   ACEF PARTNERS — HYBRID DESIGN: PHASE 1
   Soft backgrounds and tighter section spacing
   ========================================================= */

/* KEEP THE TAB NAVIGATION WARM AND INVITING */
.acef-partner-tabs-section {
    background: #fff7ef;
}

/* GIVE EVERY PARTNERSHIP PANEL A COHESIVE BACKGROUND */
.acef-partner-panel {
    background: #f7f8fb;
}

/* ADD A SUBTLE ORANGE TRANSITION BETWEEN TABS AND CONTENT */
.acef-partner-panel {
    border-top: 4px solid var(--orange);
}

/* REDUCE EXCESS VERTICAL WHITESPACE */
.acef-partner-panel {
    padding-top: 44px;
    padding-bottom: 56px;
}

/* KEEP HIDDEN TAB PANELS HIDDEN */
.acef-partner-panel[hidden] {
    display: none !important;
}

/* MOBILE ADJUSTMENTS */
@media (max-width: 680px) {
    .acef-partner-panel {
        padding-top: 32px;
        padding-bottom: 40px;
    }
}

/* =========================================================
   ACEF PARTNERS — COMPACT PARTNERSHIP NAVIGATION
   ========================================================= */

/* REDUCE UNNECESSARY SPACE AROUND THE TAB NAVIGATION */
.acef-partner-tabs-section {
    padding-top: 28px;
    padding-bottom: 20px;
}

/* BRING THE HEADING, DESCRIPTION AND TABS CLOSER TOGETHER */
.acef-partner-tabs-intro {
    margin-bottom: 20px;
}

/* REDUCE EXCESSIVE SPACE BELOW THE NAVIGATION HEADING */
.acef-partner-tabs-intro h2 {
    margin-top: 8px;
    margin-bottom: 10px;
}

/* KEEP THE INTRODUCTION READABLE */
.acef-partner-tabs-intro p {
    line-height: 1.6;
}

/* COMPACT MOBILE LAYOUT */
@media (max-width: 680px) {
    .acef-partner-tabs-section {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    .acef-partner-tabs-intro {
        margin-bottom: 18px;
    }
}

/* =========================================================
   ACEF PROJECTS — BRANDED DIAGONAL HERO
   ========================================================= */

.page-hero--projects {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 0;
    padding: 76px 0 82px;

    background: linear-gradient(
        110deg,
        #e97517 0%,
        #f58220 73%,
        #11154f 73.2%,
        #11154f 100%
    );

    color: #ffffff;
}

.page-hero--projects .container {
    position: relative;
    z-index: 1;
}

.page-hero--projects .eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.page-hero--projects h1 {
    max-width: 850px;
    margin: 16px 0 20px;
    padding: 0;
    color: #ffffff;
    font-size: clamp(2.5rem, 4.7vw, 4.6rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.page-hero--projects h1::after {
    content: none;
}

.page-hero--projects p {
    max-width: 690px;
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.65;
}

/* TABLET */

@media (max-width: 980px) {
    .page-hero--projects {
        min-height: 0;
        padding: 60px 0;
    }
}

/* MOBILE */

@media (max-width: 680px) {
    .page-hero--projects {
        min-height: 0;
        padding: 48px 0;

        background: linear-gradient(
            150deg,
            #e97517 0%,
            #f58220 84%,
            #11154f 84.2%,
            #11154f 100%
        );
    }
}

/* =========================================================
   ACEF PROJECTS — FEATURED PROJECT CARDS
   ========================================================= */

.acef-projects-featured {
    padding: 56px 0 64px;
    background: #f7f8fb;
}

.acef-projects-featured .section-title {
    margin-bottom: 28px;
}

.acef-projects-featured .section-title h2 {
    color: var(--navy);
}

.acef-projects-featured .section-title .eyebrow {
    color: var(--orange);
}

.acef-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.acef-project-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e8ef;
    border-top: 5px solid var(--orange);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(17, 21, 79, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acef-project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(17, 21, 79, 0.11);
}

.acef-project-card__content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px;
}

.acef-project-card__label {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.acef-project-card h3 {
    margin: 0 0 14px;
    color: var(--navy);
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    line-height: 1.25;
}

.acef-project-card p {
    margin: 0 0 24px;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.65;
}

.acef-project-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto;
    padding: 12px 20px;
    background: var(--navy);
    color: #ffffff;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.acef-project-card__link:hover,
.acef-project-card__link:focus-visible {
    background: var(--orange);
    color: #ffffff;
}

@media (max-width: 760px) {
    .acef-projects-featured {
        padding: 40px 0 48px;
    }

    .acef-projects-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .acef-project-card__content {
        padding: 22px;
    }
}

/* =========================================================
   ACEF — GENERIC MANAGEMENT PARTICIPATION STATISTICS
   ========================================================= */

.acef-gm-participation {
    padding: 52px 0 58px;
    background: #fff7ef;
}

.acef-gm-participation .section-title {
    margin-bottom: 28px;
}

.acef-gm-participation .section-title h2 {
    color: var(--navy);
}

.acef-gm-participation .eyebrow {
    color: var(--orange);
}

.acef-gm-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.acef-gm-stat {
    padding: 28px 22px;
    background: #ffffff;
    border: 1px solid #e5e8ef;
    border-top: 5px solid var(--orange);
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(17, 21, 79, 0.06);
}

.acef-gm-stat--featured {
    background: var(--navy);
    border-color: var(--navy);
    border-top-color: var(--orange);
}

.acef-gm-stat__number {
    display: block;
    margin-bottom: 10px;
    color: var(--orange);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
}

.acef-gm-stat h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.2rem;
    line-height: 1.3;
}

.acef-gm-stat p {
    margin: 0;
    color: #596174;
    font-size: 0.95rem;
    line-height: 1.5;
}

.acef-gm-stat--featured h3,
.acef-gm-stat--featured p {
    color: #ffffff;
}

.acef-gm-participation__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin-top: 24px;
    padding: 18px 22px;
    background: #ffffff;
    border: 1px solid #e5e8ef;
    border-radius: 14px;
}

.acef-gm-participation__details p {
    margin: 0;
    color: var(--navy);
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 760px) {
    .acef-gm-participation {
        padding: 38px 0 44px;
    }

    .acef-gm-stats {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .acef-gm-stat {
        padding: 22px 18px;
    }

    .acef-gm-participation__details {
        flex-direction: column;
        gap: 10px;
        padding: 16px;
    }
}

/* =========================================================
   ACEF — NEW VENTURE CREATION PLACEHOLDER
   Page ID: 239
   ========================================================= */

body.page-id-239
.programme-overview .media-panel:not([style])::before {

    content: "NEW VENTURE CREATION";

    color: #ffffff;

    font-size: clamp(1.2rem, 2vw, 1.8rem);

    font-weight: 800;

    letter-spacing: 0.08em;

    text-align: center;

    padding: 24px;

    line-height: 1.4;
}

/* =========================================================
   ACEF — PROJECT DETAIL HERO BRAND UNIFORMITY
   Generic Management + New Venture Creation
   ========================================================= */

body.page-id-239 .programme-hero,
body:has(.acef-gm-participation) .programme-hero {

    background:
        linear-gradient(
            115deg,
            #11154f 0%,
            #11154f 72%,
            #f58220 72%,
            #f58220 100%
        );

    color: #ffffff;
}

/* ORANGE EYEBROW LABELS */

body.page-id-239 .programme-hero .eyebrow,
body:has(.acef-gm-participation) .programme-hero .eyebrow {
    color: #f58220;
}

/* KEEP HERO CONTENT READABLE */

body.page-id-239 .programme-hero .container,
body:has(.acef-gm-participation) .programme-hero .container {
    position: relative;
    z-index: 1;
}

/* MOBILE: KEEP ORANGE ACCENT AWAY FROM TEXT */

@media (max-width: 760px) {

    body.page-id-239 .programme-hero,
    body:has(.acef-gm-participation) .programme-hero {

        background:
            linear-gradient(
                115deg,
                #11154f 0%,
                #11154f 84%,
                #f58220 84%,
                #f58220 100%
            );
    }
}

/* =========================================================
   ACEF — PROJECT HERO HEIGHT UNIFORMITY
   Generic Management + New Venture Creation
   Reference: Children's Rights Advocacy
   ========================================================= */

/* DESKTOP */

body.page-id-239 .programme-hero,
body:has(.acef-gm-participation) .programme-hero {
    padding: 76px 0 82px;
}

/* PROGRAMME HEADINGS */

body.page-id-239 .programme-hero h1,
body:has(.acef-gm-participation) .programme-hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.8rem);
    line-height: 1.1;
    margin: 12px 0 16px;
    letter-spacing: -0.035em;
}

/* INTRODUCTION */

body.page-id-239 .programme-hero-intro,
body:has(.acef-gm-participation) .programme-hero-intro {
    margin-bottom: 22px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* TABLET */

@media (max-width: 980px) {

    body.page-id-239 .programme-hero,
    body:has(.acef-gm-participation) .programme-hero {
        padding: 60px 0;
    }

}

/* MOBILE */

@media (max-width: 680px) {

    body.page-id-239 .programme-hero,
    body:has(.acef-gm-participation) .programme-hero {
        padding: 48px 0;
    }

    body.page-id-239 .programme-hero h1,
    body:has(.acef-gm-participation) .programme-hero h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);
    }

    body.page-id-239 .programme-hero-intro,
    body:has(.acef-gm-participation) .programme-hero-intro {
        font-size: 0.98rem;
        line-height: 1.55;
    }

}

/* =========================================================
   ACEF — PROJECT DETAIL PAGE COLOUR SYSTEM
   Generic Management + New Venture Creation
   STEP 1: LIGHT-ORANGE GRADIENT
   ========================================================= */

/* LEARNING FOCUS / ENTREPRENEURSHIP SKILLS */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes),
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) {

    background: linear-gradient(
        135deg,
        #fffaf5 0%,
        #fff0df 55%,
        #ffe4c5 100%
    );

    padding-top: 64px;
    padding-bottom: 64px;

}

/* HEADINGS */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) h2,
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) h2 {

    color: #11154f;

}

/* CARDS */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .card,
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .card {

    background: #ffffff;

    border: 1px solid rgba(245, 130, 32, 0.18);

    box-shadow: 0 12px 30px rgba(17, 21, 79, 0.06);

}

/* MOBILE */

@media (max-width: 680px) {

    body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes),
    body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) {

        padding-top: 48px;
        padding-bottom: 48px;

    }

}

/* =========================================================
   ACEF — PROJECT FOCUS CARDS
   ACCESSIBLE SOFT-ORANGE HOVER EFFECT
   ========================================================= */

/* SMOOTH INTERACTION */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card,
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card {

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

}

/* HOVER + KEYBOARD FOCUS */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover,
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover {

    background-color: #ffe6cc;

    border-color: #e97517;

    transform: translateY(-4px);

    box-shadow: 0 16px 34px rgba(17, 21, 79, 0.12);

}

/* PRESERVE READABLE TEXT */

body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover h3,
body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover h3 {

    color: #11154f;

}

body.page-id-239 :is(:is(.programme-overview + .section-soft, .acef-gm-learning-outcomes), .acef-gm-learning-outcomes) .programme-focus-card:hover p,
body:has(.acef-gm-participation) :is(:is(.programme-overview + .section-soft, .acef-gm-learning-outcomes), .acef-gm-learning-outcomes) .programme-focus-card:hover p {

    color: #263247;

}

/* RESPECT REDUCED-MOTION PREFERENCES */

@media (prefers-reduced-motion: reduce) {

    body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card,
    body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card {

        transition: none;

    }

    body.page-id-239 :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover,
    body:has(.acef-gm-participation) :is(.programme-overview + .section-soft, .acef-gm-learning-outcomes) .programme-focus-card:hover {

        transform: none;

    }

}

/* =========================================================
   ACEF — PROJECT DEVELOPMENT SECTIONS
   Deep-orange background + compact spacing
   Generic Management + New Venture Creation
   ========================================================= */

/* SECTION BACKGROUND AND SPACING */

body.page-id-239 .programme-development,
body:has(.acef-gm-participation) .programme-development {
    background: linear-gradient(
        135deg,
        #e97517 0%,
        #f58220 100%
    );

    padding-top: 58px;
    padding-bottom: 62px;
}

/* SECTION EYEBROW */

body.page-id-239 .programme-development .eyebrow,
body:has(.acef-gm-participation) .programme-development .eyebrow {
    color: #ffffff;
}

/* SECTION HEADING */

body.page-id-239 .programme-development .section-title h2,
body:has(.acef-gm-participation) .programme-development .section-title h2 {
    color: #ffffff;
}

/* SECTION DESCRIPTION */

body.page-id-239 .programme-development .section-title p,
body:has(.acef-gm-participation) .programme-development .section-title p {
    color: #ffffff;
}

/* REDUCE SPACE BETWEEN INTRODUCTION AND CARDS */

body.page-id-239 .programme-development .section-title,
body:has(.acef-gm-participation) .programme-development .section-title {
    margin-bottom: 26px;
}

/* CONTENT CARDS */

body.page-id-239 .programme-development .card,
body:has(.acef-gm-participation) .programme-development .card {
    background: #fff9f2;
    border: 1px solid rgba(17, 21, 79, 0.14);
    box-shadow: 0 12px 28px rgba(17, 21, 79, 0.10);
    padding: 26px;
}

/* CARD HEADINGS */

body.page-id-239 .programme-development .card h3,
body:has(.acef-gm-participation) .programme-development .card h3 {
    color: #11154f;
}

/* CARD DESCRIPTIONS */

body.page-id-239 .programme-development .card p,
body:has(.acef-gm-participation) .programme-development .card p {
    color: #263247;
}

/* MOBILE */

@media (max-width: 680px) {

    body.page-id-239 .programme-development,
    body:has(.acef-gm-participation) .programme-development {
        padding-top: 46px;
        padding-bottom: 48px;
    }

    body.page-id-239 .programme-development .card,
    body:has(.acef-gm-participation) .programme-development .card {
        padding: 22px;
    }
}

/* =========================================================
   ACEF — PROJECT DETAIL FINAL CTA POLISH
   Generic Management + New Venture Creation
   ========================================================= */

/* COMPACT SECTION SPACING */

body.page-id-239 .programme-cta,
body:has(.acef-gm-participation) .programme-cta {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* REFINED CTA CONTAINER */

body.page-id-239 .programme-cta-inner,
body:has(.acef-gm-participation) .programme-cta-inner {
    box-shadow: 0 12px 32px rgba(17, 21, 79, 0.09);
}

/* CONTACT BUTTON */

body.page-id-239 .programme-cta-action .btn,
body:has(.acef-gm-participation) .programme-cta-action .btn {
    background: #f58220;
    color: #11154f;
    border: 2px solid #f58220;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

/* BUTTON HOVER + KEYBOARD FOCUS */

body.page-id-239 .programme-cta-action .btn:hover,
body.page-id-239 .programme-cta-action .btn:focus-visible,
body:has(.acef-gm-participation) .programme-cta-action .btn:hover,
body:has(.acef-gm-participation) .programme-cta-action .btn:focus-visible {
    background: #11154f;
    color: #ffffff;
    border-color: #11154f;
}

/* MOBILE */

@media (max-width: 680px) {

    body.page-id-239 .programme-cta,
    body:has(.acef-gm-participation) .programme-cta {
        padding-top: 38px;
        padding-bottom: 38px;
    }
}

/* =========================================================
   ACEF — PROJECT CTA WARM ORANGE ENHANCEMENT
   Generic Management + New Venture Creation
   ========================================================= */

/* SUBTLE ORANGE GRADIENT */

body.page-id-239 .programme-cta-inner,
body:has(.acef-gm-participation) .programme-cta-inner {

    background: linear-gradient(
    110deg,
    #fff0dc 0%,
    #ffdbb4 45%,
    #ffc58f 100%
);

}

/* KEEP CTA HEADING NAVY */

body.page-id-239 .programme-cta-inner h2,
body:has(.acef-gm-participation) .programme-cta-inner h2 {

    color: #11154f;

}

/* KEEP DESCRIPTION READABLE */

body.page-id-239 .programme-cta-inner p,
body:has(.acef-gm-participation) .programme-cta-inner p {

    color: #344054;

}

/* PRESERVE THE ORANGE BUTTON */

body.page-id-239 .programme-cta-action .btn,
body:has(.acef-gm-participation) .programme-cta-action .btn {

    background: #f58220;
    color: #11154f;
    border-color: #f58220;

}

/* BUTTON HOVER REMAINS NAVY */

body.page-id-239 .programme-cta-action .btn:hover,
body.page-id-239 .programme-cta-action .btn:focus-visible,
body:has(.acef-gm-participation) .programme-cta-action .btn:hover,
body:has(.acef-gm-participation) .programme-cta-action .btn:focus-visible {

    background: #11154f;
    color: #ffffff;
    border-color: #11154f;

}

/* =========================================================
   ACEF — PROJECTS LANDING PAGE CTA
   Navy + Orange Branded Design
   ========================================================= */

/* OUTER CTA SECTION */

.acef-projects .acef-projects-cta {
    background: #fff8f0;
    padding: 64px 0;
}

/* NAVY CTA CONTAINER */

.acef-projects .acef-projects-cta__inner {
    background: linear-gradient(
        135deg,
        #11154f 0%,
        #20266b 100%
    );

    border-top: 5px solid #f58220;
    border-radius: 22px;

    padding: 48px 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;

    box-shadow: 0 18px 42px rgba(17, 21, 79, 0.16);
}

/* TEXT CONTENT */

.acef-projects .acef-projects-cta__content {
    flex: 1;
    min-width: 0;
}

/* EYEBROW */

.acef-projects .acef-projects-cta__eyebrow {
    display: inline-block;
    color: #ffb66d;

    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;

    margin-bottom: 14px;
}

/* HEADING */

.acef-projects .acef-projects-cta__content h2 {
    color: #ffffff;

    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;

    margin: 0 0 16px;
}

/* DESCRIPTION */

.acef-projects .acef-projects-cta__content p {
    color: #f0f1fa;

    font-size: 1rem;
    line-height: 1.7;

    margin: 0;
    max-width: 640px;
}

/* BUTTON CONTAINER */

.acef-projects .acef-projects-cta__action {
    flex-shrink: 0;
}

/* CONTACT ACEF BUTTON */

.acef-projects .acef-projects-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #f58220;
    color: #11154f;

    border: 2px solid #f58220;
    border-radius: 10px;

    padding: 15px 24px;

    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* BUTTON HOVER */

.acef-projects .acef-projects-cta__button:hover {
    background: #ffffff;
    color: #11154f;
    border-color: #ffffff;

    transform: translateY(-2px);
}

/* KEYBOARD ACCESSIBILITY */

.acef-projects .acef-projects-cta__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* TABLET */

@media (max-width: 980px) {

    .acef-projects .acef-projects-cta__inner {
        padding: 40px;
        flex-direction: column;
        align-items: flex-start;
        gap: 26px;
    }

}

/* MOBILE */

@media (max-width: 680px) {

    .acef-projects .acef-projects-cta {
        padding: 44px 0;
    }

    .acef-projects .acef-projects-cta__inner {
        padding: 30px 24px;
        border-radius: 16px;
    }

    .acef-projects .acef-projects-cta__button {
        white-space: normal;
    }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .acef-projects .acef-projects-cta__button {
        transition: none;
    }

    .acef-projects .acef-projects-cta__button:hover {
        transform: none;
    }

}

/* =========================================================
   ACEF — PROJECTS LANDING PAGE
   STEP 2: LIGHT-ORANGE INTRO SECTION
   ========================================================= */

.acef-projects .acef-projects-intro {
    background: linear-gradient(
        135deg,
        #fff8f0 0%,
        #ffe9d1 50%,
        #ffd4a8 100%
    );

    padding-top: 58px;
    padding-bottom: 58px;
}

/* INTRO EYEBROW */

.acef-projects .acef-projects-intro .eyebrow {
    color: #9a4300;
}

/* INTRO HEADING */

.acef-projects .acef-projects-intro h2 {
    color: #11154f;
}

/* INTRO DESCRIPTION */

.acef-projects .acef-projects-intro p {
    color: #263247;
}

/* REMOVE EXCESSIVE TITLE SPACING */

.acef-projects .acef-projects-intro .section-title {
    margin-bottom: 0;
}

/* MOBILE */

@media (max-width: 680px) {

    .acef-projects .acef-projects-intro {
        padding-top: 44px;
        padding-bottom: 44px;
    }

}

/* =========================================================
   ACEF — PROJECTS LANDING PAGE
   STEP 3: DEEP-ORANGE FEATURED PROJECTS
   ========================================================= */

/* FEATURED PROJECTS SECTION */

.acef-projects .acef-projects-featured {
    background: linear-gradient(
        135deg,
        #e97517 0%,
        #f58220 100%
    );

    padding-top: 62px;
    padding-bottom: 66px;
}

/* SECTION EYEBROW */

.acef-projects .acef-projects-featured .section-title .eyebrow {
    color: #ffffff;
}

/* SECTION HEADING */

.acef-projects .acef-projects-featured .section-title h2 {
    color: #ffffff;
}

/* SECTION DESCRIPTION */

.acef-projects .acef-projects-featured .section-title p {
    color: #ffffff;
}

/* REDUCE SPACE ABOVE PROJECT CARDS */

.acef-projects .acef-projects-featured .section-title {
    margin-bottom: 30px;
}

/* PROJECT CARDS */

.acef-projects .acef-projects-featured .acef-project-card {
    background: #ffffff;
    border: 1px solid rgba(17, 21, 79, 0.12);

    box-shadow: 0 14px 32px rgba(17, 21, 79, 0.12);
}

/* CARD HEADINGS */

.acef-projects .acef-projects-featured .acef-project-card h3 {
    color: #11154f;
}

/* CARD DESCRIPTIONS */

.acef-projects .acef-projects-featured .acef-project-card p {
    color: #263247;
}

/* PROJECT LINKS */

.acef-projects .acef-projects-featured .acef-project-card__link {
    background: #11154f;
    color: #ffffff;
    border: 2px solid #11154f;
}

/* PROJECT LINKS — HOVER */

.acef-projects .acef-projects-featured .acef-project-card__link:hover {
    background: #252b70;
    color: #ffffff;
    border-color: #252b70;
}

/* KEYBOARD ACCESSIBILITY */

.acef-projects .acef-projects-featured .acef-project-card__link:focus-visible {
    outline: 3px solid #11154f;
    outline-offset: 4px;
}

/* MOBILE */

@media (max-width: 680px) {

    .acef-projects .acef-projects-featured {
        padding-top: 46px;
        padding-bottom: 50px;
    }

    .acef-projects .acef-projects-featured .section-title {
        margin-bottom: 24px;
    }
}

/* =========================================================
   ACEF — PROJECTS LANDING PAGE
   STEP 4: EXPLORE PROJECT BUTTON HOVER
   ========================================================= */

/* NORMAL BUTTON STATE */

.acef-projects .acef-projects-featured
.acef-project-card__link {
    background: #11154f;
    color: #ffffff;
    border: 2px solid #11154f;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

/* HOVER STATE */

.acef-projects .acef-projects-featured
.acef-project-card__link:hover {
    background: #f58220;
    color: #11154f;
    border-color: #f58220;

    transform: translateY(-3px);
}

/* KEYBOARD FOCUS */

.acef-projects .acef-projects-featured
.acef-project-card__link:focus-visible {
    outline: 3px solid #f58220;
    outline-offset: 4px;
}

/* ACCESSIBILITY — REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .acef-projects .acef-projects-featured
    .acef-project-card__link {
        transition: none;
    }

    .acef-projects .acef-projects-featured
    .acef-project-card__link:hover {
        transform: none;
    }

}

/* =========================================================
   ACEF HOMEPAGE — ORGANISATION NAME REFINEMENT
   ========================================================= */

.hero--home .hero-brand-content .eyebrow {
    font-size: clamp(1.15rem, 2.1vw, 1.65rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.5;
    color: #11154f;
}

/* ==========================================
   ACEF HOMEPAGE — DESKTOP IMAGE ENLARGEMENT
   ========================================== */

@media (min-width: 981px) {

    .hero--home .hero-brand-layout {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(0, 0.8fr);
    }

}

/* =========================================================
   ACEF ABOUT — COLOUR PROGRESSION
   SECTION 1: STRATEGIC OVERVIEW
   ========================================================= */

.acef-about .acef-about__section--strategic {
    background: linear-gradient(
        135deg,
        #fffaf5 0%,
        #fff0df 55%,
        #ffe4c5 100%
    );
}

/* =========================================================
   ACEF ABOUT — COLOUR PROGRESSION
   SECTION 2: CORE BUSINESS PROGRAMMES
   ========================================================= */

/* DARK-ORANGE SECTION BACKGROUND */

.acef-about .acef-about__section--programmes {
    background: linear-gradient(
        135deg,
        #c65308 0%,
        #d85d0b 55%,
        #e97517 100%
    );
}

/* WHITE SECTION LABEL */

.acef-about .acef-about__section--programmes
.acef-about__label {
    color: #ffffff;
}

/* WHITE SECTION HEADING*/

.acef-about .acef-about__section--programmes
.acef-about__section-heading h2 {
    color: #ffffff;
}

/* WHITE INTRODUCTORY PARAGRAPH */

.acef-about .acef-about__section--programmes
.acef-about__section-heading p {
    color: #ffffff;
}

/* =========================================================
   ACEF ABOUT — SECTION 2: CORE BUSINESS PROGRAMMES
   Explore Our Programmes button
   ========================================================= */

/* DEFAULT BUTTON APPEARANCE */
.acef-about .acef-about__section--programmes
.acef-about__button {
    background: #11154f;
    color: #ffffff;
    border: 2px solid #ffffff;
    transition: background-color 0.25s ease,
                color 0.25s ease;
}

/* HOVER APPEARANCE*/
.acef-about .acef-about__section--programmes
.acef-about__button:hover {
    background: #ffffff;
    color: #11154f;
}

/* KEYBOARD ACCESSIBILITY */
.acef-about .acef-about__section--programmes
.acef-about__button:focus-visible {
    background: #ffffff;
    color: #11154f;
    outline: 3px solid #11154f;
    outline-offset: 4px;
}

/* =========================================================
   ACEF ABOUT — COLOUR PROGRESSION
   SECTION 3: OUR APPROACH — NAVY BLUE
   ========================================================= */

.acef-about .acef-about__section--approach {
    background: linear-gradient(
        135deg,
        #11154f 0%,
        #191f68 55%,
        #252c7a 100%
    );
}

/* =========================================================
   ABOUT ACEF — OUR APPROACH
   Heading and introductory text contrast
   ========================================================= */

.acef-about .acef-about__section--approach
.acef-about__label {
    color: #ffffff;
}

.acef-about .acef-about__section--approach
.acef-about__section-heading h2 {
    color: #ffffff;
}

.acef-about .acef-about__section--approach
.acef-about__section-heading p {
    color: #ffffff;
}

/* =========================================================
   ACEF ABOUT — COLOUR PROGRESSION
   SECTION 4: ORGANISATIONAL VALUES — LIGHT ORANGE
   ========================================================= */

.acef-about .acef-about__section--values {
    background: linear-gradient(
        135deg,
        #fffaf5 0%,
        #fff0df 55%,
        #ffe4c5 100%
    );
}

/* =====================================================
   ACEF — RESOURCES PAGE
   Brand Colour Enhancement
   ===================================================== */

/* Resources section background */

.acef-resources {
    background: linear-gradient(
        135deg,
        #fffaf5 0%,
        #fff0df 55%,
        #ffe4c5 100%
    );
}

/* Resources cards */

.acef-resources .card {
    background: #ffffff;
    border: 1px solid #f1d5bc;
    border-top: 5px solid #f58220;
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(17, 21, 79, 0.06);
}

/* Card headings */

.acef-resources .card h3 {
    color: #11154f;
}

/* Card descriptions */

.acef-resources .card p {
    color: #344054;
}

/* Resources-specific hover */

.acef-resources a.card:hover {
    background: #fff8f1;
    border-color: #f58220;
    box-shadow: 0 16px 38px rgba(17, 21, 79, 0.12);
}

/* Keyboard accessibility */

.acef-resources a.card:focus-visible {
    outline: 3px solid #f58220;
    outline-offset: 4px;
}

/* =========================================================
   ACEF — RESOURCES PAGE
   BRANDED ORANGE + NAVY DIAGONAL HERO
   ========================================================= */

.page-hero--resources {
    position: relative;
    overflow: hidden;
    display: block;

    min-height: 0;
    padding: 76px 0 82px;

    background: linear-gradient(
        110deg,
        #e97517 0%,
        #f58220 73%,
        #11154f 73.2%,
        #11154f 100%
    );

    color: #ffffff;
}

/* =========================================================
   RESOURCES HERO — MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .page-hero--resources {
        min-height: 0;
        padding: 48px 0;

        background: linear-gradient(
            150deg,
            #e97517 0%,
            #f58220 84%,
            #11154f 84.2%,
            #11154f 100%
        );
    }

}

/* Resources hero — eyebrow text */

.page-hero--resources .eyebrow {
    color: #11154f;
}

/* =========================================================
   ACEF — NEWS & MEDIA PAGE
   BRANDED ORANGE + NAVY DIAGONAL HERO
   ========================================================= */

.page-hero--news {
    position: relative;
    overflow: hidden;
    display: block;

    min-height: 0;
    padding: 76px 0 82px;

    background: linear-gradient(
        110deg,
        #e97517 0%,
        #f58220 73%,
        #11154f 73.2%,
        #11154f 100%
    );

    color: #ffffff;
}

/* News & Media hero — eyebrow text */

.page-hero--news .eyebrow {
    color: #11154f;
}

/* =========================================================
   NEWS & MEDIA HERO — MOBILE
   ========================================================= */

@media (max-width: 680px) {

    .page-hero--news {
        min-height: 0;
        padding: 48px 0;

        background: linear-gradient(
            150deg,
            #e97517 0%,
            #f58220 84%,
            #11154f 84.2%,
            #11154f 100%
        );
    }

}

/* =========================================================
   ACEF NEWS & MEDIA — CTA BRAND COLOUR SYSTEM
   Matches the approved GBVF programme CTA design
   ========================================================= */

/* DIGITAL PUBLICATIONS + MEDIA ENQUIRIES */

.digital-publications .programme-cta-inner,
.news-cta .programme-cta-inner {

    background: linear-gradient(
        110deg,
        #fff0dc 0%,
        #ffdbb4 45%,
        #ffc58f 100%
    );

}

/* CTA HEADINGS — NAVY BLUE */

.digital-publications .programme-cta-inner h2,
.news-cta .programme-cta-inner h2 {

    color: #11154f;

}

/* CTA DESCRIPTIONS — DARK AND READABLE */

.digital-publications .programme-cta-inner p,
.news-cta .programme-cta-inner p {

    color: #344054;

}

/* =========================================================
   ACEF NEWS & MEDIA — LATEST UPDATES SPACING
   ========================================================= */

/* Reduce excessive vertical whitespace */

.news-section {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* Improve spacing around the empty-state message */

.news-section .news-empty-state {
    margin-top: 28px;
}

/* Mobile spacing */

@media (max-width: 680px) {

    .news-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .news-section .news-empty-state {
        margin-top: 22px;
    }

}

/* ============================================================
   ACEF NEWS & MEDIA — EMPTY STATE CARD
   Subtle light-orange styling
   ============================================================ */

.news-section .news-empty-state {
    background: linear-gradient(
        135deg,
        #fffaf5 0%,
        #fff0df 55%,
        #ffe4c5 100%
    );

    border: 1px solid #ffe4c5;
    border-left: 6px solid #f58220;
    border-radius: 18px;

    padding: 32px 36px;

    box-shadow: 0 10px 28px rgba(17, 21, 79, 0.06);
}

/* Empty-state heading */

.news-section .news-empty-state h3 {
    color: #11154f;
    margin: 12px 0;
    line-height: 1.3;
}

/* Empty-state description */

.news-section .news-empty-state p {
    color: #344054;
    line-height: 1.7;
    margin: 0;
}

/* Empty-state label */

.news-section .news-empty-state .eyebrow {
    color: #bd4f08;
}

/* Mobile adjustments */

@media (max-width: 680px) {

    .news-section .news-empty-state {
        padding: 26px 22px;
        border-radius: 14px;
    }

}

/* ============================================================
   ACEF NEWSLETTER — APPROVED ORANGE/NAVY HERO
   ============================================================ */

.page-hero--newsletter {
    background: linear-gradient(
        110deg,
        #f58220 0%,
        #f58220 74%,
        #11154f 74%,
        #11154f 100%
    );
}

.page-hero--newsletter .eyebrow {
    color: #11154f;
}

.page-hero--newsletter h1,
.page-hero--newsletter p {
    color: #ffffff;
}

/* ============================================================
   ACEF NEWSLETTER — FLIPHTML5 READER
   ============================================================ */

.publication-featured .flipbook-container {
    width: 100%;
    max-width: 1100px;
    margin: 32px auto 0;
    background: #ffffff;
    border: 2px solid #f58220;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(17, 21, 79, 0.12);
}

.publication-featured .flipbook-frame {
    display: block;
    width: 100%;
    height: 700px;
    border: none;
}

/* ============================================================
   ACEF NEWSLETTER — PUBLICATION CARDS
   ============================================================ */

.publication-featured .newsletter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: stretch;
    margin-top: 36px;
}

.publication-featured .newsletter-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid #f4d6b8;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(17, 21, 79, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.publication-featured .newsletter-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(17, 21, 79, 0.16);
}

/* Branded newsletter cover */

.publication-featured .newsletter-card-cover {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 250px;
    padding: 32px;
    background: linear-gradient(
        135deg,
        #f58220 0%,
        #f9a64c 65%,
        #11154f 65%,
        #11154f 100%
    );
}

.publication-featured .newsletter-card-cover .eyebrow {
    color: #11154f;
    font-weight: 800;
}

.publication-featured .newsletter-card-cover h3 {
    max-width: 85%;
    margin: 16px 0;
    color: #ffffff;
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    line-height: 1.3;
}

.publication-featured .newsletter-card-cover p {
    max-width: 80%;
    margin: 0;
    color: #ffffff;
    line-height: 1.6;
}

/* Newsletter information */

.publication-featured .newsletter-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 30px 32px;
}

.publication-featured .newsletter-card-content .eyebrow {
    color: #f58220;
    font-weight: 800;
}

.publication-featured .newsletter-card-content h3 {
    margin: 12px 0;
    color: #11154f;
    line-height: 1.35;
}

.publication-featured .newsletter-card-content p {
    margin: 0 0 24px;
    color: #344054;
    line-height: 1.7;
}

.publication-featured .newsletter-read-btn {
    margin-top: auto;
    padding: 13px 24px;
    background: #11154f;
    color: #ffffff;
    border: 2px solid #11154f;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.publication-featured .newsletter-read-btn:hover {
    background: #f58220;
    border-color: #f58220;
    color: #ffffff;
}

.publication-featured .newsletter-read-btn:focus-visible {
    outline: 3px solid #f58220;
    outline-offset: 4px;
}

/* ============================================================
   ACEF NEWSLETTER — INTERACTIVE FLIPHTML5 MODAL
   ============================================================ */

/* Ensure the modal stays hidden until activated */

.newsletter-modal[hidden] {
    display: none !important;
}

/* Main modal */

.newsletter-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* Dark background overlay */

.newsletter-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 45, 0.88);
}

/* Main reading window */

.newsletter-modal-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1250px;
    height: min(90vh, 950px);
    overflow: hidden;
    background: #ffffff;
    border: 2px solid #f58220;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

/* Reader header */

.newsletter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    background: linear-gradient(
        110deg,
        #f58220 0%,
        #f58220 72%,
        #11154f 72%,
        #11154f 100%
    );
}

.newsletter-modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    line-height: 1.35;
}

/* Close button */

.newsletter-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    padding: 0;
    background: #ffffff;
    color: #11154f;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.newsletter-modal-close:hover {
    background: #ffe0c0;
}

.newsletter-modal-close:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

/* FlipHTML5 reader */

.newsletter-modal-reader {
    flex: 1;
    min-height: 0;
    background: #f5f6fa;
}

.newsletter-modal-reader iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

/* Reader footer */

.newsletter-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 28px;
    background: #11154f;
    color: #ffffff;
}

.newsletter-modal-footer span {
    color: #ffffff;
    font-size: 0.9rem;
}

.newsletter-modal-footer a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.newsletter-modal-footer a:hover {
    color: #ffbd7c;
    text-decoration: underline;
}

/* Prevent background scrolling when reader is open */

body.newsletter-modal-open {
    overflow: hidden;
}

/* ============================================================
   ACEF NEWSLETTER — EXPANDABLE PUBLICATION CATEGORY
   ============================================================ */

#acef-newsletters[hidden] {
    display: none !important;
}

/* =============================================
   ACEF CONTACT FORM — ANTI-SPAM HONEYPOT
   ============================================= */

.acef-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* GENERIC MANAGEMENT LEARNERSHIP OVERIEW */
.programme-overview .acef-gm-overview-card {
    max-width: 920px;
    margin-inline: auto;
    padding: clamp(24px, 5vw, 56px);
    border-top: 5px solid #f58220;
    border-radius: 20px;
    background: #11154f;
    color: #fff;
    text-align: center;
}

.programme-overview .acef-gm-overview-card .eyebrow {
    color: #ffb469;
}

.programme-overview .acef-gm-overview-card h2,
.programme-overview .acef-gm-overview-card p {
    color: inherit;
}

.programme-overview .acef-gm-overview-card p {
    max-width: 65ch;
    margin-inline: auto;
}

.programme-overview .acef-gm-overview-card p:last-child {
    margin-bottom: 0;
}

/* New Venture Creation outcomes */
.section.acef-nvc-learning-outcomes {
    background: #11154f;
}

.section.acef-nvc-programme-outcomes {
    background: #fff0e0;
}

.acef-nvc-learning-outcomes .section-title h2 {
    color: #fff;
}

.acef-nvc-learning-outcomes .programme-focus-card,
.acef-nvc-programme-outcomes .programme-outcome {
    background: #fff;
    border: 1px solid #f4cba8;
}

.acef-nvc-learning-outcomes .programme-focus-card h3,
.acef-nvc-programme-outcomes .section-title h2,
.acef-nvc-programme-outcomes .programme-outcome strong {
    color: #11154f;
}

.acef-nvc-learning-outcomes .programme-focus-card p,
.acef-nvc-programme-outcomes .section-title p,
.acef-nvc-programme-outcomes .programme-outcome span {
    color: #263247;
}

@media (hover: hover) and (pointer: fine) {
    .acef-nvc-learning-outcomes .programme-focus-card:hover,
    .acef-nvc-programme-outcomes .programme-outcome:hover {
        background: #ffe6cc;
        border-color: #e97517;
        box-shadow: 0 16px 34px rgba(17, 21, 79, 0.12);
    }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .acef-nvc-learning-outcomes .programme-focus-card:hover,
    .acef-nvc-programme-outcomes .programme-outcome:hover {
        transform: translateY(-4px);
    }
}

/* Civic Education Booklets */
#programme-booklets .acef-booklet + .acef-booklet {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

#programme-booklets .acef-booklet-cover {
    display: block;
    width: min(100%, 32rem);
    height: auto;
    margin-bottom: 1.25rem;
}

#programme-booklets .acef-booklet h3 {
    margin: .5rem 0;
}

#programme-booklets .publication-covered-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 2rem;
    padding-left: 1.25rem;
    max-width: 64rem;
}

#programme-booklets .publication-partners {
    margin-top: 1.5rem;
}

#programme-booklets .acef-booklet-marquee {
    overflow: hidden;
    padding: .625rem 0;
}

#programme-booklets .acef-booklet-track {
    display: flex;
    width: max-content;
    min-width: 200%;
    animation: acefBookletPartners 28s linear infinite;
}

#programme-booklets .acef-booklet-group {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex: 1 0 auto;
}

#programme-booklets .acef-booklet-partner {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .875rem;
    margin-right: 1rem;
    border: 1px solid #e2e6ef;
    border-radius: .75rem;
    background: #fff;
    white-space: nowrap;
    font-weight: 700;
}

#programme-booklets .acef-booklet-partner img {
    display: block;
    width: 76px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
}

#programme-booklets .acef-booklet-marquee:hover .acef-booklet-track,
#programme-booklets .acef-booklet-marquee:focus .acef-booklet-track,
#programme-booklets .acef-booklet-pause:checked ~ .acef-booklet-marquee .acef-booklet-track {
    animation-play-state: paused;
}

#programme-booklets .acef-booklet-marquee:focus-visible {
    outline: 2px solid var(--orange, #f58220);
    outline-offset: 2px;
}

@keyframes acefBookletPartners {
    to { transform: translateX(-50%); }
}

@media (max-width: 680px) {
    #programme-booklets .publication-covered-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    #programme-booklets .acef-booklet-pause,
    #programme-booklets .acef-booklet-pause-label,
    #programme-booklets .acef-booklet-group[aria-hidden="true"] {
        display: none;
    }

    #programme-booklets .acef-booklet-marquee {
        overflow-x: auto;
    }

    #programme-booklets .acef-booklet-track {
        min-width: 0;
        animation: none;
    }
}

#programme-booklets .acef-booklets-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    min-height: 52px;
    padding: 10px 20px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background-color: var(--navy, #11154f);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 21, 79, 0.18);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

#programme-booklets .acef-booklets-back span[aria-hidden="true"] {
    font-size: 1.5rem;
    line-height: 1;
}

#programme-booklets .acef-booklets-back:hover,
#programme-booklets .acef-booklets-back:focus-visible {
    border-color: var(--orange, #f58220);
    color: #fff;
}