.qy-entry-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#f3f7fc;border-radius:12px;margin:0 0 1.25rem}#professional-services .qy-entry-image{margin-top:1rem}#available-services .marketing-grid,#courses-seminars .marketing-grid{align-items:stretch}#available-services .marketing-card,#courses-seminars .marketing-card{min-width:0}#available-services .marketing-cta,#courses-seminars .marketing-cta{margin:.4rem .5rem .4rem 0} @media(max-width:640px){#available-services .marketing-grid,#courses-seminars .marketing-grid{grid-template-columns:1fr}}
/* Events page only. Append to the deployed events-entry.css; retain existing rules. */
body.marketing-body:has(#upcoming):has(#past){font-size:16px;line-height:1.6}
body.marketing-body:has(#upcoming):has(#past) .marketing-shell{width:min(1180px,calc(100% - 40px))}
body.marketing-body:has(#upcoming):has(#past) .marketing-hero{padding:28px 0 24px}
body.marketing-body:has(#upcoming):has(#past) .marketing-hero h1{font-family:Manrope,Inter,"Noto Sans SC",sans-serif;font-size:clamp(28px,3vw,40px);line-height:1.2;margin:0 0 12px}
body.marketing-body:has(#upcoming):has(#past) .marketing-hero p{font-size:16px;line-height:1.6;margin:0 0 16px}
body.marketing-body:has(#upcoming):has(#past) .marketing-hero nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:0}
body.marketing-body:has(#upcoming):has(#past) .marketing-hero nav a{display:inline-flex;padding:7px 14px;border:1px solid #cad8ea;border-radius:8px;background:white;color:#073b8c;font-size:16px;font-weight:600;text-decoration:none}
body.marketing-body:has(#upcoming):has(#past) main .marketing-section{padding:22px 0;scroll-margin-top:100px}
body.marketing-body:has(#upcoming):has(#past) main .marketing-section h2{font-family:Manrope,Inter,"Noto Sans SC",sans-serif;font-size:clamp(24px,2.4vw,30px);line-height:1.25;margin:0 0 16px}
body.marketing-body:has(#upcoming):has(#past) main .marketing-card{padding:20px;border-radius:16px;box-shadow:0 8px 24px rgba(24,67,118,.06)}
body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);gap:10px 24px;align-items:center;min-height:220px}
body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card> :not(img){grid-column:2;margin:0;min-width:0}
body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card>.qy-entry-image{grid-column:1;grid-row:1 / span 8;display:block;width:100%;height:190px;max-height:28svh;aspect-ratio:auto;object-fit:contain;margin:0;background:#f3f7fc}
body.marketing-body:has(#upcoming):has(#past) main .marketing-card h3{font-family:Manrope,Inter,"Noto Sans SC",sans-serif;font-size:22px;line-height:1.35;margin:0 0 8px}
body.marketing-body:has(#upcoming):has(#past) main .marketing-card p{font-size:16px;line-height:1.6;margin:0 0 10px}
body.marketing-body:has(#upcoming):has(#past) main .marketing-card .marketing-cta{justify-self:start;justify-content:center;padding:9px 16px;font-size:16px;line-height:1.4;border-radius:8px;min-height:44px;max-width:100%;white-space:normal;margin:0}
body.marketing-body:has(#upcoming):has(#past) #available-services .marketing-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
body.marketing-body:has(#upcoming):has(#past) #available-services .qy-entry-image{height:150px;aspect-ratio:auto;object-fit:contain;margin:0 0 14px}
body.marketing-body:has(#upcoming):has(#past) a:focus-visible{outline:3px solid #00a5dc;outline-offset:3px}
@media(max-width:700px){
 body.marketing-body:has(#upcoming):has(#past) .marketing-shell{width:calc(100% - 28px)}
 body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card{grid-template-columns:minmax(0,1fr);gap:10px;padding:16px;min-height:0}
 body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card> :not(img){grid-column:1}
 body.marketing-body:has(#upcoming):has(#past) :is(#upcoming,#past) .marketing-card>.qy-entry-image{grid-column:1;grid-row:auto;height:150px;max-height:24svh}
 body.marketing-body:has(#upcoming):has(#past) main .marketing-card h3{font-size:20px}
 body.marketing-body:has(#upcoming):has(#past) #available-services .marketing-grid{grid-template-columns:1fr}
}

/* R4: service artwork uses its natural ratio; course poster sizing stays unchanged. */
#professional-services .qy-entry-image,
#available-services .qy-entry-image,
body.marketing-body:has(#upcoming):has(#past) #available-services .qy-entry-image{
 display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;
 object-fit:contain;background:transparent;padding:0;border:0;
}
