.fhup-home .fh-programs--v3{--academic-red:#a5000d;--academic-deep:#720007;color:#281f20;background:#fff!important}.fhup-home .fh-programs--v3 .fh-heading-row{align-items:end;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.55fr);gap:clamp(45px,8vw,110px);padding-bottom:38px;border-bottom:3px solid var(--academic-red)!important}.fhup-home .fh-programs--v3 .fh-section-label,.fhup-home .fh-programs--v3 .fh-section-label span{color:var(--academic-red)!important}.fhup-home .fh-programs--v3 .fh-heading-row h2{max-width:850px;margin-top:16px;color:var(--academic-deep)!important;font-size:clamp(45px,5vw,68px);line-height:1.02}.fhup-home .fh-programs--v3 .fh-heading-row>p{margin-bottom:4px;color:#6d5d60!important;font-size:14px;line-height:1.75}.fhup-home .fh-programs--v3 .fh-program-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:42px}.fhup-home .fh-programs--v3 .fh-program-card,.fhup-home .fh-programs--v3 .fh-program-card:nth-child(2),.fhup-home .fh-programs--v3 .fh-program-card:nth-child(3){position:relative;display:flex;min-height:390px;flex-direction:column;padding:32px 34px 30px;overflow:hidden;color:#281f20!important;background:#fff!important;border:1px solid rgba(165,0,13,.17);box-shadow:0 12px 34px rgba(117,0,9,.06);transition:transform .25s,box-shadow .25s}.fhup-home .fh-programs--v3 .fh-program-card:before{position:absolute;top:0;right:0;left:0;height:5px;background:var(--academic-red);content:""}.fhup-home .fh-programs--v3 .fh-program-card:after{position:absolute;top:-88px;right:-88px;width:180px;height:180px;border:1px solid rgba(165,0,13,.1);border-radius:50%;content:""}.fhup-home .fh-programs--v3 .fh-program-card:hover{background:#fff!important;box-shadow:0 22px 48px rgba(117,0,9,.12);transform:translateY(-5px)}.fhup-home .fh-programs--v3 .fh-program-card__top{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between}.fhup-home .fh-programs--v3 .fh-program-card__top>span{color:var(--academic-red)!important;font-size:10px;font-weight:800;letter-spacing:.12em}.fhup-home .fh-programs--v3 .fh-program-card__top em{display:grid;width:44px;height:44px;place-items:center;border:1px solid rgba(165,0,13,.28);border-radius:50%;color:var(--academic-red);font-family:var(--fh-serif);font-size:15px;font-style:normal}.fhup-home .fh-programs--v3 .fh-program-card>small{position:relative;z-index:1;width:max-content;margin:38px 0 11px;padding:6px 9px;color:#fff!important;background:var(--academic-red);font-size:7px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.fhup-home .fh-programs--v3 .fh-program-card h3,.fhup-home .fh-programs--v3 .fh-program-card h3 *{position:relative;z-index:1;margin:0 0 20px;color:var(--academic-deep)!important;font-family:var(--fh-serif);font-size:clamp(29px,3vw,41px);font-weight:400;line-height:1.08}.fhup-home .fh-programs--v3 .fh-program-card__facts{position:relative;z-index:1;display:grid;grid-template-columns:.62fr 1.38fr;margin:0 0 19px;border-top:1px solid rgba(165,0,13,.15);border-bottom:1px solid rgba(165,0,13,.15)}.fhup-home .fh-programs--v3 .fh-program-card__facts>span{display:grid;gap:5px;padding:13px 13px 13px 0}.fhup-home .fh-programs--v3 .fh-program-card__facts>span+span{padding-left:15px;border-left:1px solid rgba(165,0,13,.15)}.fhup-home .fh-programs--v3 .fh-program-card__facts small{color:var(--academic-red);font-size:7px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.fhup-home .fh-programs--v3 .fh-program-card__facts strong{color:#4f4244;font-size:10px;font-weight:600;line-height:1.45}.fhup-home .fh-programs--v3 .fh-program-card>p{position:relative;z-index:1;margin:0 0 25px;color:#6b5c5f!important;font-size:12px;line-height:1.72}.fhup-home .fh-programs--v3 .fh-program-card__action{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:16px;border-top:1px solid rgba(165,0,13,.15);color:var(--academic-red)}.fhup-home .fh-programs--v3 .fh-program-card__action span{color:var(--academic-red)!important;font-size:8px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.fhup-home .fh-programs--v3 .fh-program-card__action b{font-size:18px;font-weight:400;transition:transform .2s}.fhup-home .fh-programs--v3 .fh-program-card:hover .fh-program-card__action b{transform:translateX(5px)}
.fhup-home .fh-research--v2{--research-red:#a5000d;--research-deep:#720007;position:relative;overflow:hidden;color:#fff;background:linear-gradient(135deg,var(--research-red),var(--research-deep))!important}.fhup-home .fh-research--v2:before{position:absolute;right:-220px;bottom:-310px;width:650px;height:650px;border:1px solid rgba(255,255,255,.1);border-radius:50%;content:""}.fhup-home .fh-research--v2 .fh-research__grid{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);gap:clamp(55px,8vw,120px);align-items:center}.fhup-home .fh-research--v2 .fh-section-label,.fhup-home .fh-research--v2 .fh-section-label span{color:#fff!important}.fhup-home .fh-research--v2 h2{max-width:650px;margin:19px 0 26px;color:#fff!important;font-family:var(--fh-serif);font-size:clamp(45px,5vw,70px);font-weight:400;letter-spacing:-.045em;line-height:1.02}.fhup-home .fh-research--v2 .fh-research__grid>div:first-child>p:not(.fh-section-label){max-width:570px;margin:0;color:rgba(255,255,255,.78);font-size:14px;line-height:1.8}.fhup-home .fh-research--v2 .fh-button{display:inline-flex;margin-top:33px;padding:16px 21px;border:1px solid #fff;color:var(--research-red);background:#fff;font-size:9px;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.fhup-home .fh-research--v2 .fh-button:hover{color:#fff;background:transparent}.fhup-home .fh-research--v2 .fh-research__links{display:grid;grid-template-columns:1fr 1fr;border:0;gap:12px}.fhup-home .fh-research--v2 .fh-research__links a{position:relative;display:grid;min-height:205px;grid-template-columns:38px 1fr;align-content:end;gap:7px 14px;padding:27px;border:1px solid rgba(255,255,255,.36);color:#fff;background:rgba(255,255,255,.07);font-family:inherit;transition:color .22s,background .22s,transform .22s}.fhup-home .fh-research--v2 .fh-research__links a:after{position:absolute;top:22px;right:22px;color:rgba(255,255,255,.72);content:"↗";font-size:18px}.fhup-home .fh-research--v2 .fh-research__links a:hover{padding-left:27px;color:var(--research-red);background:#fff;transform:translateY(-4px)}.fhup-home .fh-research--v2 .fh-research__links span{grid-row:1/3;align-self:end;color:#fff;font-size:9px;font-weight:800;letter-spacing:.1em}.fhup-home .fh-research--v2 .fh-research__links strong{align-self:end;font-family:var(--fh-serif);font-size:24px;font-weight:400;line-height:1.14}.fhup-home .fh-research--v2 .fh-research__links small{color:rgba(255,255,255,.68);font-size:9px;line-height:1.5}.fhup-home .fh-research--v2 .fh-research__links a:hover span,.fhup-home .fh-research--v2 .fh-research__links a:hover small{color:var(--research-red)}.fhup-home .fh-research--v2 .fh-research__links a:hover:after{color:var(--research-red)}
@media(max-width:900px){.fhup-home .fh-programs--v3 .fh-heading-row,.fhup-home .fh-research--v2 .fh-research__grid{grid-template-columns:1fr;gap:34px}.fhup-home .fh-research--v2 .fh-research__links{margin-top:10px}}
@media(max-width:680px){.fhup-home .fh-programs--v3 .fh-program-grid,.fhup-home .fh-research--v2 .fh-research__links{grid-template-columns:1fr}.fhup-home .fh-programs--v3 .fh-program-card,.fhup-home .fh-programs--v3 .fh-program-card:nth-child(2),.fhup-home .fh-programs--v3 .fh-program-card:nth-child(3){min-height:0;padding:28px 24px}.fhup-home .fh-programs--v3 .fh-program-card__facts{grid-template-columns:1fr}.fhup-home .fh-programs--v3 .fh-program-card__facts>span+span{padding-left:0;border-top:1px solid rgba(165,0,13,.15);border-left:0}.fhup-home .fh-research--v2 .fh-research__links a{min-height:170px}.fhup-home .fh-research--v2 h2{font-size:43px}}

/* Explicit contrast rules: these intentionally override the legacy homepage button styles. */
.fhup-home .fh-programs--v3 .fh-program-card__action {
    width: max-content;
    min-width: 170px;
    margin-top: auto;
    padding: 13px 16px;
    border: 1px solid var(--academic-red);
    color: #fff !important;
    background: var(--academic-red) !important;
}
.fhup-home .fh-programs--v3 .fh-program-card__action span,
.fhup-home .fh-programs--v3 .fh-program-card__action b {
    color: #fff !important;
}
.fhup-home .fh-programs--v3 .fh-program-card__action b {
    width: auto;
    height: auto;
    background: transparent !important;
}
.fhup-home .fh-programs--v3 .fh-program-card:hover .fh-program-card__action {
    color: #fff !important;
    background: var(--academic-deep) !important;
    border-color: var(--academic-deep);
}

/* Compact four-column programme catalogue. */
.fhup-home .fh-programs--v3 .fh-heading-row {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr);
    padding-bottom: 28px;
}
.fhup-home .fh-programs--v3 .fh-heading-row h2 {
    max-width: 760px;
    font-size: clamp(40px, 4vw, 58px);
}
.fhup-home .fh-programs--v3 .fh-program-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 30px;
}
.fhup-home .fh-programs--v3 .fh-program-card,
.fhup-home .fh-programs--v3 .fh-program-card:nth-child(2),
.fhup-home .fh-programs--v3 .fh-program-card:nth-child(3) {
    min-height: 0;
    padding: 25px 23px 23px;
}
.fhup-home .fh-programs--v3 .fh-program-card__top em {
    width: 38px;
    height: 38px;
    font-size: 13px;
}
.fhup-home .fh-programs--v3 .fh-program-card > small {
    margin: 25px 0 10px;
}
.fhup-home .fh-programs--v3 .fh-program-card h3,
.fhup-home .fh-programs--v3 .fh-program-card h3 * {
    min-height: 60px;
    margin-bottom: 15px;
    font-size: clamp(25px, 2vw, 31px);
}
.fhup-home .fh-programs--v3 .fh-program-card__facts {
    grid-template-columns: 1fr;
    margin-bottom: 14px;
}
.fhup-home .fh-programs--v3 .fh-program-card__facts > span {
    padding: 10px 0;
}
.fhup-home .fh-programs--v3 .fh-program-card__facts > span + span {
    padding: 10px 0;
    border-top: 1px solid rgba(165,0,13,.15);
    border-left: 0;
}
.fhup-home .fh-programs--v3 .fh-program-card__facts small {
    color: #8f000b !important;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .075em;
    line-height: 1.35;
}
.fhup-home .fh-programs--v3 .fh-program-card__facts strong {
    display: block;
    color: #33292a !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: normal;
}
body.fhup-home section.fh-programs--v3 .fh-program-card__facts {
    border-top-color: rgba(255,255,255,.25) !important;
    border-bottom-color: rgba(255,255,255,.25) !important;
}
body.fhup-home section.fh-programs--v3 .fh-program-card__facts > span + span {
    border-top-color: rgba(255,255,255,.25) !important;
}
body.fhup-home section.fh-programs--v3 .fh-program-card__facts small {
    color: rgba(255,255,255,.72) !important;
    opacity: 1 !important;
}
body.fhup-home section.fh-programs--v3 .fh-program-card__facts strong {
    color: #fff !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
body.fhup-home section.fh-programs--v3 .fh-program-card__top em {
    border-color: rgba(255,255,255,.35) !important;
    color: #fff !important;
    opacity: 1 !important;
}
.fhup-home .fh-programs--v3 .fh-program-card > p {
    display: -webkit-box;
    min-height: 61px;
    margin-bottom: 18px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    font-size: 11px;
    line-height: 1.65;
}
.fhup-home .fh-programs--v3 .fh-program-card__action {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
}
@media (max-width: 1180px) {
    .fhup-home .fh-programs--v3 .fh-program-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .fhup-home .fh-programs--v3 .fh-heading-row {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 16px;
        padding-bottom: 24px;
    }

    .fhup-home .fh-programs--v3 .fh-heading-row h2 {
        margin-bottom: 0;
        font-size: clamp(30px, 6vw, 46px);
        line-height: 1.12;
    }

    .fhup-home .fh-programs--v3 .fh-heading-row > p {
        max-width: 55ch;
        margin: 0;
    }
}

@media (max-width: 680px) {
    .fhup-home .fh-programs--v3 .fh-program-grid {
        grid-template-columns: 1fr;
    }
    .fhup-home .fh-programs--v3 .fh-program-card h3,
    .fhup-home .fh-programs--v3 .fh-program-card h3 * {
        min-height: 0;
    }
}
.fhup-home .fh-research--v2 a.fh-button,
.fhup-home .fh-research--v2 a.fh-button:visited {
    border-color: #fff !important;
    color: #fff !important;
    background: transparent !important;
}
.fhup-home .fh-research--v2 a.fh-button:hover,
.fhup-home .fh-research--v2 a.fh-button:focus-visible {
    border-color: #fff !important;
    color: var(--research-red) !important;
    background: #fff !important;
}
