.pathway-section{background:#faf8f0;color:#174e40;scroll-margin-top:100px;padding:70px max(4%,24px)}
.pathway-shell{max-width:1500px;margin:auto}
.pathway-graphic{margin:0}
.pathway-graphic img{display:block;width:100%;height:auto;border-radius:20px}
.pathway-mobile-heading{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pathway-cards{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px}
.pathway-cards li{background:white;border:1px solid #e3e8dc;border-radius:18px;padding:26px 22px;min-width:0;position:relative}
.pathway-cards .pathway-number{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#174e40;color:white;font-size:16px;font-weight:700}
.pathway-cards svg{width:62px;height:62px;display:block;margin:20px 0;color:#174e40}
.pathway-cards h3{font-size:21px;line-height:1.45;margin:0 0 14px;color:#174e40;letter-spacing:-.4px}
.pathway-cards p{font-size:15px;line-height:1.85;margin:0;color:#52665a}
.pathway-cards-en{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.pathway-actions{display:flex;flex-wrap:wrap;gap:18px 28px;align-items:center;margin:30px 0 20px;padding-inline:26px}
.pathway-actions a{color:#174e40;text-underline-offset:5px;font-size:15px;font-weight:600}
.pathway-actions .btn{color:#fff;background:#174e40;border:1px solid #174e40}
.pathway-section .resource-link{color:#174e40;border-color:#dce3d4;background:transparent;margin:0 26px}
.pathway-section .resource-link span{color:#52665a}
.pathway-loop{padding:22px 28px;background:#174e40;border-radius:14px;margin:25px 0;color:white;display:flex;flex-wrap:wrap;gap:10px 24px;justify-content:space-between;align-items:center}
.pathway-loop p{margin:0;color:#e3e8da;font-size:15px}
.pathway-loop strong{font-size:20px}
.pathway-loop-en{display:none}
.pathway-section-ar .pathway-mobile-heading{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin-bottom:34px}
.pathway-section-ar .pathway-mobile-heading p{max-width:850px;color:#52665a}
/* Individual services are choices; only the commissioned programme has numbered stages. */
#expertise .service summary{grid-template-columns:minmax(0,1fr) 32px}
#expertise .service summary h3::before{display:none}
#expertise .service-body{padding-inline:20px 65px}
/* Keep long titles and text inside the viewport, including Android text autosizing. */
.pathway-section{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.pathway-shell{width:100%;min-width:0}
.pathway-mobile-heading,.pathway-cards li,.pathway-cards h3,.pathway-cards p{min-width:0;overflow-wrap:anywhere}
@media(max-width:1100px){
 .pathway-section{padding:58px 6%}
 .pathway-graphic{display:none}
 .pathway-mobile-heading{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;margin-bottom:30px}
 .pathway-mobile-heading{width:100%;max-width:100%}
 .pathway-mobile-heading h2{max-width:820px;margin-bottom:18px;font-size:clamp(29px,4vw,40px);line-height:1.3;letter-spacing:-.8px;overflow-wrap:anywhere}
 .pathway-mobile-heading p{font-size:17px;line-height:1.8;color:#52665a;max-width:760px}
 .pathway-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .pathway-cards-en{position:static;width:100%;max-width:100%;height:auto;overflow:visible;clip-path:none;white-space:normal}
 .pathway-cards li:last-child{grid-column:1/-1}
 .pathway-loop-en{display:flex}
 .pathway-actions{padding:0}
 .pathway-section .resource-link{margin:0}
}
@media(max-width:580px){
 .pathway-cards{grid-template-columns:minmax(0,1fr);gap:14px}
 .pathway-cards li{padding:24px;display:block;max-width:100%}
 .pathway-cards svg{display:none}
 .pathway-cards .pathway-number{margin-bottom:16px}
 .pathway-cards h3{font-size:22px;margin-bottom:12px}
 .pathway-cards p{font-size:16px;line-height:1.75}
 .pathway-mobile-heading p{font-size:16px;line-height:1.75}
 #expertise .service summary{grid-template-columns:minmax(0,1fr) 28px;padding-inline:8px}
 #expertise .service-body{padding-inline:8px 20px}
 .pathway-actions{align-items:stretch;flex-direction:column;gap:22px}
 .pathway-actions .btn{align-self:flex-start}
 .pathway-loop{padding:22px}
 .pathway-section .resource-link{padding:22px 0}
}

.service-menu-note{margin:30px 0 0;padding:22px 24px;border-inline-start:3px solid #ad9767;background:#e9eddf;color:#174e40;font-size:16px;line-height:1.8;overflow-wrap:anywhere}
.service-menu-note a{text-decoration:underline;text-underline-offset:4px;font-weight:600}
@media(max-width:580px){.service-menu-note{padding:20px;font-size:15px}}

/* Programme stages form one connected pathway. */
@media(min-width:1101px){
 .pathway-cards-ar{position:relative;padding-top:38px}
 .pathway-cards-ar::before{content:"";position:absolute;top:21px;inset-inline:10%;height:2px;background:#b79142}
 .pathway-cards-ar li{padding-top:30px}
 .pathway-cards-ar .pathway-number{position:absolute;top:-38px;inset-inline-start:calc(50% - 20px);z-index:1;box-shadow:0 0 0 5px #faf8f0}
}
@media(max-width:1100px){
 .pathway-cards{--stage-indent:66px;--stage-rail-centre:22px;position:relative;grid-template-columns:minmax(0,1fr);gap:26px;padding:0;padding-inline-start:var(--stage-indent);isolation:isolate}
 .pathway-cards::before{content:"";position:absolute;inset-inline-start:calc(var(--stage-rail-centre) - 1px);top:23px;bottom:26px;width:2px;background:#b79142;z-index:-1}
 .pathway-cards li{position:relative;display:block;padding:24px;max-width:100%;grid-column:auto}
 .pathway-cards .pathway-number{position:absolute;inset-inline-start:-66px;top:21px;width:44px;height:44px;margin:0;border:3px solid #faf8f0;box-shadow:0 0 0 1px #b79142;z-index:1}
 .pathway-cards li:not(:last-child)::after{content:"";position:absolute;inset-inline-start:calc(var(--stage-rail-centre) - var(--stage-indent) - 8px);bottom:-19.5px;width:14px;height:11px;border:0;background:#8b6f30;clip-path:polygon(0 0,100% 0,50% 100%);transform:none}
 html[dir=rtl] .pathway-cards li:not(:last-child)::after{transform:none}
 .pathway-cards svg{display:none}
 .pathway-cards h3{font-size:23px;line-height:1.4;margin-bottom:13px}
 .pathway-cards p{font-size:16px;line-height:1.8}
}
@media(max-width:580px){
 .pathway-cards{--stage-indent:53px;--stage-rail-centre:19px;padding-inline-start:var(--stage-indent);gap:23px}
 .pathway-cards::before{inset-inline-start:calc(var(--stage-rail-centre) - 1px);top:21px;bottom:24px}
 .pathway-cards .pathway-number{inset-inline-start:-53px;top:20px;width:38px;height:38px;font-size:14px}
 .pathway-cards li{padding:21px 18px}
 .pathway-cards li:not(:last-child)::after{bottom:-18px}
 .pathway-cards h3{font-size:21px;line-height:1.45}
 .pathway-cards p{font-size:15px;line-height:1.75}
}
