/* Course catalogue: crisp surfaces, distinct course colours, gentle motion. */
.pmx-home-brand .pmx-courses-grid{gap:26px;align-items:stretch}
.pmx-home-brand .pmx-courses-grid .pmx-card{--course-accent:#1479ba;--course-deep:#123e75;display:flex;flex-direction:column;border:1px solid #dce7f2;border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 8px 26px #173d6a09;transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.pmx-home-brand .pmx-courses-grid .pmx-card:nth-child(4n+2){--course-accent:#9660c9;--course-deep:#4a367e}.pmx-home-brand .pmx-courses-grid .pmx-card:nth-child(4n+3){--course-accent:#159b87;--course-deep:#10615e}.pmx-home-brand .pmx-courses-grid .pmx-card:nth-child(4n+4){--course-accent:#297ab7;--course-deep:#243f86}
.pmx-home-brand .pmx-courses-grid .pmx-card .pmx-card-image{height:182px;background:linear-gradient(125deg,var(--course-deep),var(--course-accent))!important;border-bottom:3px solid #ffd047;position:relative;isolation:isolate;overflow:hidden}
.pmx-home-brand .pmx-courses-grid .pmx-card-image::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 80% 20%,#ffffff1c,transparent 60%);z-index:0}
.pmx-home-brand .pmx-courses-grid .pmx-card-image svg{width:100%;height:100%;opacity:.8;transition:transform .7s ease,opacity .4s ease;transform-origin:center}
.pmx-home-brand .pmx-courses-grid .pmx-card-icon{width:62px;height:62px;border-radius:18px;background:#ffffff20;border:1px solid #ffffff70;box-shadow:0 8px 24px #051d3e25;z-index:1;transition:transform .4s ease,background .3s ease}
.pmx-home-brand .pmx-courses-grid .pmx-card-icon i{font-size:29px}
.pmx-home-brand .pmx-courses-grid .pmx-card-tag{left:20px;bottom:14px;padding:6px 12px;border-radius:8px;font-size:11px;letter-spacing:.5px;box-shadow:0 3px 10px #09244918;z-index:1}
.pmx-home-brand .pmx-courses-grid .pmx-card-body{padding:24px;flex:1;background:#fff}
.pmx-home-brand .pmx-courses-grid .pmx-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:0 0 16px;line-height:1.8}
.pmx-home-brand .pmx-courses-grid .pmx-card-title>a:first-child{font-size:17px;font-weight:700;color:#183957;min-width:0}
.pmx-home-brand .pmx-courses-grid .pmx-read-more{display:inline-flex;align-items:center;flex-shrink:0;white-space:nowrap;padding:6px 10px;border-radius:8px;background:#edf6ff;font-size:12px;color:#126ba5;transition:background .2s ease,color .2s ease}
.pmx-home-brand .pmx-courses-grid .pmx-read-more:hover{background:var(--course-deep);color:#fff}
.pmx-home-brand .pmx-courses-grid .pmx-card-desc{font-size:14px;color:#61758b;line-height:1.95;margin:0}
.pmx-home-brand .pmx-courses-grid .pmx-card:focus-within{border-color:var(--course-accent);box-shadow:0 0 0 3px #258ac323,0 12px 28px #173d6a12}
.pmx-home-brand .pmx-courses-grid a:focus-visible{outline:3px solid #f6c84c;outline-offset:3px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.pmx-home-brand .pmx-courses-grid .pmx-card:hover{transform:translateY(-6px);border-color:var(--course-accent);box-shadow:0 18px 38px #173d6a1c}.pmx-home-brand .pmx-courses-grid .pmx-card:hover svg{transform:scale(1.06) translateY(-3px);opacity:1}.pmx-home-brand .pmx-courses-grid .pmx-card:hover .pmx-card-icon{transform:translateY(-5px) rotate(-4deg);background:#ffffff30}}
@media(prefers-reduced-motion:no-preference){.pmx-courses-grid .pmx-course-enter{animation:pmxCourseEnter .65s both;animation-delay:var(--course-delay,0ms)}@keyframes pmxCourseEnter{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:767px){.pmx-home-brand .pmx-courses-grid{gap:18px}.pmx-home-brand .pmx-courses-grid .pmx-card{border-radius:17px}.pmx-home-brand .pmx-courses-grid .pmx-card .pmx-card-image{height:158px}.pmx-home-brand .pmx-courses-grid .pmx-card-body{padding:20px}.pmx-home-brand .pmx-courses-grid .pmx-card-title{flex-wrap:wrap;gap:8px}.pmx-home-brand .pmx-courses-grid .pmx-card-title>a:first-child{font-size:16px}.pmx-home-brand .pmx-courses-grid .pmx-card-desc{font-size:13px}}
@media(prefers-reduced-motion:reduce){.pmx-home-brand .pmx-courses-grid .pmx-card,.pmx-home-brand .pmx-courses-grid .pmx-card *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Read-more buttons retain a light surface in every interactive state. */
.pmx-home-brand .pmx-courses-grid .pmx-card-title a.pmx-read-more{background:#eaf5ff!important;color:#075a91!important;border:1px solid #c8e3f7;text-decoration:none!important}
.pmx-home-brand .pmx-courses-grid .pmx-card-title a.pmx-read-more:hover,.pmx-home-brand .pmx-courses-grid .pmx-card-title a.pmx-read-more:focus,.pmx-home-brand .pmx-courses-grid .pmx-card-title a.pmx-read-more:active{background:#d5edff!important;color:#064b7b!important;border-color:#8fc7ed;text-decoration:none!important}
/* Stable course cards: no entrance flashes or looping animations. */
.pmx-home-brand .pmx-courses-grid .pmx-card,.pmx-home-brand .pmx-courses-grid .pmx-card *,.pmx-home-brand .pmx-courses-grid .pmx-card::before,.pmx-home-brand .pmx-courses-grid .pmx-card::after{animation:none!important}
.pmx-home-brand .pmx-courses-grid .pmx-course-enter{opacity:1!important}
