/* Homepage-only carousel. Covers retain their intrinsic 2:3 composition. */
.py-home-courses{display:none;margin:32px 0 38px;color:var(--py-c-text);min-width:0}
.py-hc-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.py-hc-heading>div{position:relative;padding-inline-start:46px;min-width:0}.py-hc-eyebrow{position:absolute;inset-inline-start:0;top:3px;display:grid;place-items:center;width:33px;height:33px;border-radius:11px;background:var(--py-c-raised);color:var(--py-c-link)}.py-hc-eyebrow svg{width:20px;height:20px}.py-hc-heading h2{font-size:23px;line-height:1.7;margin:0;color:var(--py-c-heading)}.py-hc-heading p{font-size:13px;line-height:1.9;color:var(--py-c-muted);margin:5px 0 0}.py-hc-all{display:inline-flex;align-items:center;gap:10px;flex:none;min-height:44px;font-size:13px;font-weight:600;color:var(--py-c-link);text-decoration:none!important}
.py-hc-stage{min-width:0;padding:4px 1px 9px;isolation:isolate}.py-hc-stage:not(.swiper-initialized){overflow-x:auto;scroll-snap-type:x mandatory}
#page .py-home-courses ul.py-hc-grid{display:flex;flex-wrap:nowrap;gap:0;align-items:stretch;list-style:none;padding:0;margin:0;box-sizing:content-box;height:auto}.py-hc-grid:before,.py-hc-grid:after{display:none!important}
#page .py-home-courses .py-hc-grid>li.py-hc-card{display:flex;flex-direction:column;float:none;flex-shrink:0;min-width:0;height:auto;margin:0;padding:var(--hc-cover-padding);box-sizing:border-box;border:1px solid var(--py-c-border);border-radius:16px;background:var(--py-c-surface);overflow:hidden;transition:border-color .2s,box-shadow .2s;scroll-snap-align:start}
#page .py-hc-stage:not(.swiper-initialized) .py-hc-card{width:calc((100% - (var(--hc-desktop) - 1)*var(--hc-gap))/var(--hc-desktop));margin-inline-end:var(--hc-gap)}
#page .py-hc-cover{position:relative;display:block;align-self:center;width:100%;aspect-ratio:2/3;border-radius:12px;overflow:hidden;background:var(--py-c-raised);text-decoration:none}#page .py-hc-cover img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;margin:0;border-radius:0;user-select:none}.py-hc-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;height:100%;color:var(--py-c-muted)}.py-hc-empty svg{width:40px;height:40px}
.py-hc-offer{grid-column:2;grid-row:2;align-self:center;justify-self:end;display:inline-flex;align-items:center;gap:4px;padding:4px 8px;border-radius:8px;background:var(--py-c-offerbg);color:var(--py-c-offerink);border:1px solid var(--py-c-offerborder);font-size:15px;font-weight:700;line-height:1.6;white-space:nowrap;box-shadow:0 3px 14px #0002}.py-hc-offer bdi{direction:ltr;unicode-bidi:isolate}
.py-hc-content{display:flex;flex-direction:column;flex:1;min-width:0;padding:10px 9px 9px}.py-hc-overlay{--py-c-heading:#fff;position:absolute;inset: auto 0 0;padding:56px 12px 13px;background:linear-gradient(180deg,transparent 0%,rgba(4,15,29,.82) 40%,rgba(4,15,29,.97) 100%);color:#f8fafc;text-shadow:0 1px 4px #0006}html[data-py-theme] #page .py-home-courses .py-hc-overlay h3{font-size:var(--hc-title-desktop);line-height:1.85;font-weight:var(--hc-title-weight);color:#fff;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.py-hc-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;list-style:none!important;margin:0!important;padding:0!important}.py-hc-meta li{display:flex;align-items:center;gap:4px;min-width:0;font-size:10px;color:#c9d8e9;margin:0}.py-hc-meta svg{width:14px;height:14px;flex:none;color:#9ccef1}.py-hc-bottom{margin-top:auto;min-width:0}#page .py-home-courses .price{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 8px;align-items:center;margin:0;padding-top:0;border-top:0;width:100%;font-size:20px;color:var(--py-c-heading);font-weight:700}
html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing{display:contents!important}html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing del{grid-column:1 / -1;grid-row:1;font-size:14px;min-height:34px;padding:5px 7px;flex-wrap:wrap;gap:2px 6px}html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing ins{grid-column:1;grid-row:2;font-size:19px;gap:5px}html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing ins:before{display:none}.py-home-courses .py-card-pricing>.amount{grid-column:1;grid-row:2}html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing .py-catalog-price-discount{display:none}
.py-hc-carousel{position:relative}.py-hc-controls{position:absolute;inset:0;display:block;margin:0;pointer-events:none;z-index:3}.py-home-courses [hidden]{display:none!important}.py-hc-arrows{display:contents}.py-hc-arrows [data-hc-prev]{right:8px}.py-hc-arrows [data-hc-next]{left:8px}.py-home-courses .py-hc-controls button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;pointer-events:auto;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;max-width:44px;max-height:44px;padding:0;border:1px solid var(--py-c-border);border-radius:13px;background:color-mix(in srgb,#fff var(--hc-nav-opacity,88%),transparent);backdrop-filter:blur(8px);color:#102a43;border-color:#ffffffd9;box-shadow:0 4px 14px #00132b35;cursor:pointer;font:inherit}.py-hc-arrows svg{width:18px;height:18px}.py-home-courses .py-hc-controls button:disabled{opacity:.55;cursor:default}.py-home-courses .py-hc-controls button:hover:not(:disabled){background:#fff;border-color:#fff;box-shadow:0 5px 18px #00132b35}.py-home-courses .py-hc-controls [data-hc-pause]{top:8px;right:8px;transform:none;font-size:11px;width:auto;max-width:none;padding:0 12px;white-space:nowrap}.py-home-courses :is(a,button):focus-visible{outline:3px solid var(--py-c-link);outline-offset:3px}
@media(hover:hover){#page .py-home-courses .py-hc-card:hover{border-color:var(--py-c-link);box-shadow:0 5px 18px #0e294714}}
@media(min-width:1025px){.py-home-courses.py-hc-visible-desktop{display:block}}
@media(min-width:601px) and (max-width:1024px){.py-home-courses.py-hc-visible-tablet{display:block}.py-home-courses{margin-block:26px 32px}.py-hc-heading h2{font-size:20px}.py-hc-heading p{font-size:12px}html[data-py-theme] #page .py-home-courses .py-hc-overlay h3{font-size:var(--hc-title-tablet)}#page .py-hc-stage:not(.swiper-initialized) .py-hc-card{width:calc((100% - (min(2,var(--hc-tablet)) - 1)*var(--hc-gap))/min(2,var(--hc-tablet)))}}
@media(max-width:600px){.py-home-courses.py-hc-visible-mobile{display:block}.py-home-courses{margin-block:22px 28px}.py-hc-heading{gap:10px;margin-bottom:12px;align-items:center}.py-hc-heading>div{padding-inline-start:0}.py-hc-eyebrow{display:none}.py-hc-heading h2{font-size:17px}.py-hc-heading p{font-size:11px;margin-top:3px}.py-hc-all{font-size:11px;gap:4px;min-height:40px}#page .py-hc-content{padding:8px 7px 7px}#page .py-hc-overlay{padding:40px 10px 11px}html[data-py-theme] #page .py-home-courses .py-hc-overlay h3{font-size:var(--hc-title-mobile);margin-bottom:6px}.py-hc-meta{gap:4px 8px;margin-bottom:0!important}.py-hc-meta li{font-size:10px}.py-hc-meta svg{width:13px;height:13px}#page .py-hc-stage:not(.swiper-initialized) .py-hc-card{width:calc((100% - (var(--hc-mobile) - 1)*var(--hc-gap))/var(--hc-mobile))}.py-hc-offer{font-size:13px;padding:4px 7px}html[data-py-theme] body #page .py-home-courses .products li.product .price .py-card-pricing ins{font-size:17px}}
@media(prefers-reduced-motion:reduce){.py-home-courses *{transition:none!important;animation:none!important}}

@media(min-width:769px) and (max-width:1024px){#page .py-hc-stage:not(.swiper-initialized) .py-hc-card{width:calc((100% - (var(--hc-tablet) - 1)*var(--hc-gap))/var(--hc-tablet))}}

/* Cover title uses a fixed light ink over a dark surface in every link state. */
html[data-py-theme] #page .py-home-courses .py-hc-cover:is(:link,:visited,:hover,:focus-visible) .py-hc-overlay h3{color:#fff;-webkit-text-fill-color:#fff}

/* Framed discovery shelf and local sorting controls. */
#page .py-home-courses{position:relative;padding:24px;border:1px solid var(--py-c-border);border-radius:24px;background:var(--py-c-surface);box-shadow:0 8px 34px #15385708}
#page .py-home-courses.py-hc-frame-tinted{background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--py-c-link) 7%,transparent),transparent 42%),radial-gradient(ellipse at 0 100%,color-mix(in srgb,var(--py-c-offerink) 4%,transparent),transparent 45%),var(--py-c-surface)}
.py-home-courses:before{content:'';position:absolute;inset:0 28px auto;height:2px;background:linear-gradient(90deg,transparent,var(--py-c-link),transparent);opacity:.4;pointer-events:none}
.py-home-courses .py-hc-heading{gap:18px;margin-bottom:20px}.py-home-courses .py-hc-heading h2{font-size:22px}.py-home-courses .py-hc-heading p{font-size:12px}
#page .py-home-courses .py-hc-all{display:inline-flex;align-items:center;justify-content:center;gap:12px;flex-shrink:0;min-height:46px;padding:7px 9px 7px 15px;border:1px solid color-mix(in srgb,var(--py-c-link) 25%,var(--py-c-border));border-radius:13px;background:color-mix(in srgb,var(--py-c-link) 7%,var(--py-c-surface));color:var(--py-c-link);font-size:12px;font-weight:600;line-height:1.7;box-shadow:0 3px 12px #15385706;transition:background .2s,border-color .2s}
.py-hc-all-arrow{display:grid;place-items:center;width:29px;height:29px;border-radius:9px;background:var(--py-c-surface);border:1px solid var(--py-c-border)}.py-hc-all-arrow svg{width:17px;height:17px;transition:transform .2s}
.py-hc-filters{display:flex;align-items:center;flex-wrap:wrap;gap:7px;padding:5px;width:fit-content;max-width:100%;margin-bottom:18px;border:1px solid var(--py-c-border);border-radius:14px;background:var(--py-c-raised)}
#page .py-home-courses .py-hc-filters button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 16px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;font-family:inherit;font-size:12px;font-weight:500;line-height:1.7;color:var(--py-c-muted);cursor:pointer;white-space:nowrap;transition:background .18s,color .18s,border-color .18s}
.py-hc-filters svg{width:17px;height:17px;flex:none}
#page .py-home-courses .py-hc-filters button[aria-pressed=true]{color:var(--py-c-link);background:var(--py-c-surface);border-color:var(--py-c-border);box-shadow:0 3px 9px #1538570a;font-weight:650}
@media(hover:hover){#page .py-home-courses .py-hc-filters button:hover{color:var(--py-c-link);background:var(--py-c-surface)}#page .py-home-courses .py-hc-all:hover{border-color:var(--py-c-link);background:color-mix(in srgb,var(--py-c-link) 12%,var(--py-c-surface))}.py-hc-all:hover svg{transform:translateX(-2px)}}
.py-hc-swapping .py-hc-stage{animation:py-hc-filter-reveal .24s ease-out}@keyframes py-hc-filter-reveal{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}
@media(min-width:601px) and (max-width:1024px){#page .py-home-courses{padding:18px;border-radius:20px}.py-home-courses .py-hc-heading h2{font-size:19px}#page .py-home-courses .py-hc-filters button{padding-inline:13px}}
@media(max-width:600px){#page .py-home-courses{padding:14px 10px;border-radius:18px}.py-home-courses:before{inset-inline:18px}.py-home-courses .py-hc-heading{gap:8px;align-items:flex-start;margin-bottom:14px}.py-home-courses .py-hc-heading h2{font-size:16px;line-height:1.85}.py-home-courses .py-hc-heading p{font-size:10px;line-height:1.9}#page .py-home-courses .py-hc-all{font-size:10px;min-height:40px;padding:5px 6px 5px 9px;gap:5px;border-radius:10px}.py-hc-all-arrow{width:25px;height:25px;border-radius:7px}.py-hc-all-arrow svg{width:15px;height:15px}.py-hc-filters{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);width:100%;box-sizing:border-box;gap:3px;padding:4px;margin-bottom:13px;border-radius:12px}#page .py-home-courses .py-hc-filters button{padding:8px 5px;min-height:42px;font-size:11px;gap:4px}.py-hc-filters svg{width:14px;height:14px}}
@media(max-width:360px){#page .py-home-courses .py-hc-filters button{font-size:10px}.py-hc-filters svg{display:none}}
@media(prefers-reduced-motion:reduce){.py-hc-swapping .py-hc-stage{animation:none}}

#page .py-home-courses .py-hc-filters button{min-width:0;max-width:100%}.py-hc-filters button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* One discovery toolbar: heading, sort switch and archive action share a baseline. */
#page .py-home-courses .py-hc-heading{display:flex;align-items:center;flex-wrap:nowrap;gap:16px}#page .py-hc-heading>.py-home-section-heading{flex:1;min-width:0}#page .py-hc-heading>.py-hc-sort-tools{position:relative;flex:0 1 auto;min-width:0}#page .py-hc-heading .py-hc-filters{margin:0;padding:4px;float:none;display:flex;width:auto;gap:3px}#page .py-hc-heading .py-hc-filters button{font-size:11px;min-height:40px;padding:8px 11px;gap:6px}#page .py-hc-heading .py-hc-all{flex:0 0 auto}#page .py-hc-sort-toggle{display:none}
@media(min-width:768px) and (max-width:1024px){#page .py-home-courses .py-hc-heading{gap:10px}#page .py-hc-heading .py-hc-filters button{padding:8px;font-size:10px;gap:4px}#page .py-hc-heading .py-hc-filters svg{width:14px;height:14px}}
@media(max-width:767px){#page .py-home-courses .py-hc-heading{gap:8px;align-items:center}#page .py-hc-heading .py-home-section-heading{padding-inline:0}#page .py-hc-heading .py-home-heading-copy h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.8}#page .py-hc-heading .py-home-heading-copy>p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}#page .py-hc-heading .py-hc-sort-tools{flex:0 1 auto;max-width:42%}#page .py-hc-sort-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-height:42px;max-width:100%;border:1px solid var(--py-c-border);border-radius:11px;padding:7px 8px;background:var(--py-c-raised);color:var(--py-c-heading);font:500 10px/1.6 var(--py-font);box-shadow:none;cursor:pointer}#page .py-hc-sort-toggle svg{width:14px;height:14px;flex:none}#page .py-hc-sort-toggle [data-hc-sort-label]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#page .py-hc-heading .py-hc-filters{display:none;position:absolute;inset-block-start:calc(100% + 8px);inset-inline-end:0;width:max-content;min-width:160px;max-width:220px;z-index:5;box-sizing:border-box;padding:5px;border:1px solid var(--py-c-border);border-radius:14px;background:var(--py-c-surface);box-shadow:0 12px 30px #00132b20}#page .py-hc-heading .py-hc-sort-tools.is-open .py-hc-filters{display:flex;flex-direction:column;animation:py-hc-reveal .18s ease-out}#page .py-hc-heading .py-hc-filters button{justify-content:flex-start;width:100%;font-size:12px;min-height:42px;padding:9px 12px}#page .py-hc-heading .py-hc-filters svg{display:block;width:16px;height:16px}#page .py-hc-heading .py-hc-all{min-height:42px;font-size:10px;padding:6px 7px;gap:5px}#page .py-hc-heading .py-hc-all-arrow{display:none}#page .py-hc-sort-toggle[aria-expanded=true]{border-color:var(--py-c-link);color:var(--py-c-link)}}
@media(max-width:360px){#page .py-hc-heading .py-home-heading-copy h2{font-size:14px}#page .py-hc-sort-toggle>svg:first-child{display:none}#page .py-home-courses .py-hc-heading{gap:6px}}

/* Verified student count remains a compact badge over the upper-left cover. */
#page .py-hc-students{position:absolute;top:10px;left:10px;display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 20px);box-sizing:border-box;padding:5px 9px 5px 6px;border:1px solid #ffffff40;border-radius:999px;background:linear-gradient(120deg,#082039f2,#123653e8);color:#fff;box-shadow:0 4px 16px #001a2b30;backdrop-filter:blur(8px);font:500 11px/1.8 var(--py-font);z-index:2;pointer-events:none}#page .py-hc-students svg{width:22px;height:22px;box-sizing:border-box;padding:4px;border:1px solid #ffffff24;border-radius:50%;background:#ffffff16;color:#d7eeff;flex:none}#page .py-hc-students>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#page .py-hc-students bdi{font-weight:700;font-variant-numeric:tabular-nums}@media(max-width:600px){#page .py-hc-students{top:8px;left:8px;max-width:calc(100% - 16px);font-size:10px;padding:4px 7px 4px 5px;gap:5px}#page .py-hc-students svg{width:20px;height:20px;padding:3px}}
