/* Shared course detail layout. No third-party assets or frameworks. */
body.single-product{--py-course-blue:#3363b7;--py-course-line:#e4e7eb;--py-course-top:0px}body.single-product.admin-bar{--py-course-top:32px}.single-product #content>.ast-container{display:block;max-width:none;padding:0}.single-product .py-header{position:relative;z-index:5}.py-course-shell{color:#353a40;font-size:14px;width:100%;padding-bottom:48px}.py-course-container{width:calc(100% - 48px);max-width:1240px;margin-inline:auto}.py-course-breadcrumbs{padding-block:14px;font-size:12px}.py-course-breadcrumbs .woocommerce-breadcrumb{margin:0!important;color:#707780!important;line-height:1.8}.py-course-breadcrumbs a{color:#626b75!important;text-decoration:none}.py-course-breadcrumbs span{margin-inline:14px;color:#abb2b9}.py-course-grid{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:48px;align-items:start;isolation:isolate}.py-course-main{min-width:0}.py-course-hero{position:relative;background:#eaf1fb;padding:28px 0 24px;min-height:0}.py-course-hero:before{content:'';position:absolute;z-index:-1;inset:0;background:#eaf1fb;box-shadow:0 0 0 100vmax #eaf1fb;clip-path:inset(0 -100vmax)}.py-course-hero h1{font-size:26px;line-height:1.65;font-weight:700;color:#292e33;margin:0 0 14px;overflow-wrap:break-word;text-wrap:pretty}.py-course-meta{display:flex;align-items:center;gap:14px 22px;flex-wrap:wrap;color:#66707b;font-size:13px}.py-course-rating{text-decoration:none;color:#4b5c74}.py-course-rating>span{color:var(--py-course-blue);margin-inline-end:6px}.py-course-rating small{font-size:12px;color:#777}.py-course-level{border:1px solid #c5d4e8;padding:1px 9px;border-radius:4px;font-size:12px}.py-course-teacher{font-size:13px;margin:18px 0 0;color:#666}.py-course-teacher a{text-decoration:none;color:inherit}.py-course-lead{font-size:13px;line-height:1.9;color:#616d7a;margin-top:0}.py-course-lead p:last-child{margin-bottom:0}.py-course-tabs{position:sticky;top:var(--py-course-top);z-index:4;background:#fff;display:flex;flex-wrap:nowrap;justify-content:space-between;gap:18px;border-bottom:1px solid #d9dfe7;min-height:58px;align-items:stretch}.py-course-tabs a{display:flex;align-items:center;text-decoration:none;white-space:nowrap;color:#363b42;font-size:13px;padding:16px 0 13px;border-bottom:3px solid transparent}.py-course-tabs a:hover,.py-course-tabs a[aria-current]{color:var(--py-course-blue);border-color:var(--py-course-blue)}.py-course-section{padding:34px 0 28px;scroll-margin-top:calc(var(--py-course-top) + 76px)}.py-course-section h2{font-size:18px;font-weight:700;margin:0 0 22px}.py-course-section h3{font-size:16px;margin:22px 0 12px}.py-course-section p,.py-course-section li{line-height:2.1}.py-course-preview ul{list-style:none;margin:0;padding:0}.py-course-preview li{display:flex;gap:10px;padding:6px 0}.py-check{border:1px solid #b8c1cb;border-radius:50%;font-size:12px;color:#697987;flex:none;width:19px;height:19px;line-height:17px;text-align:center;margin-top:6px}.py-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.py-section-heading h2{margin-bottom:6px}.py-section-heading p{font-size:12px;color:#7b818a;margin:0}.py-toggle-all{background:none!important;border:0!important;color:var(--py-course-blue)!important;padding:8px 0!important;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.py-chapter{border:1px solid var(--py-course-line);border-radius:var(--py-radius-sm);margin:9px 0;overflow:hidden}.py-chapter summary{min-height:54px;display:flex;align-items:center;gap:16px;padding:13px 18px;background:#f7f8fa;cursor:pointer;list-style:none;font-weight:600;font-size:14px}.py-chapter summary::-webkit-details-marker{display:none}.py-chapter summary:after{content:'⌄';font-size:18px;font-weight:400;line-height:1;transition:transform .15s}.py-chapter[open] summary:after{transform:rotate(180deg)}.py-chapter summary small{margin-inline-start:auto;white-space:nowrap;font-size:11px;font-weight:400;color:#737d88}.py-chapter ol{list-style:none;margin:0;padding:0 18px}.py-chapter li{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid #edf0f4;font-size:13px}.py-lesson-icon{color:#778594;font-size:20px;flex:none}.py-chapter bdi{min-width:0;overflow-wrap:anywhere}.py-chapter .py-lesson-time{margin-inline-start:auto;white-space:nowrap;font-size:12px;color:#6a7580;float:none;flex-shrink:0}.py-materials{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px 18px;list-style:none;margin:0;padding:0}.py-materials li{display:flex;align-items:center;gap:10px;font-size:13px}.py-materials .py-material-icon{display:grid;place-items:center;color:#4c79bb;background:#edf3fc;border-radius:var(--py-radius-sm);width:32px;height:32px;flex:none;font-size:21px}.py-course-richtext{line-height:2.2;overflow-wrap:anywhere;color:#515b65}.py-course-richtext p{line-height:2.2}.py-course-richtext pre{direction:ltr;text-align:left}.py-two-col{display:grid;grid-template-columns:1fr 1fr;gap:32px}.py-two-col ul{margin:0;padding-inline-start:20px}.py-instructor-card{display:flex;gap:22px;align-items:start}.py-instructor-card h3{margin-top:0;color:var(--py-course-blue)}.py-instructor-card p{color:#66707b}.py-instructor-symbol{background:#eef3fa;color:#6283b0;display:grid;place-items:center;width:72px;height:72px;border-radius:50%;flex:none;font-size:40px}.py-course-sidebar{position:sticky;top:calc(var(--py-course-top) + 24px);padding-top:36px;z-index:2}.py-course-offer{padding:22px;background:white;border:1px solid #dce1e6;border-radius:var(--py-radius);box-shadow:0 2px 9px #202d4014}.py-course-cover{border-radius:var(--py-radius-sm);overflow:hidden;aspect-ratio:2/3;background:#eaf1f8}.py-course-cover img{width:100%;height:100%;object-fit:contain;display:block}.py-course-cover--empty{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#e8f2fb,#cddff3);color:#2a588c}.py-course-cover--empty>span{font-family:var(--py-code);font-size:40px;line-height:1.2;direction:ltr}.py-course-cover--empty strong{font-size:23px}.py-course-cover--empty small{font-size:11px}.py-price-heading{display:flex;align-items:center;justify-content:space-between;color:#686e76;font-size:12px;margin-top:16px}.py-sale-badge{background:#bb3b51;color:white;padding:0 7px;border-radius:3px}.py-course-price{font-size:23px;font-weight:700;margin:6px 0 16px;color:#2a3038;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.py-course-price del{font-size:14px;color:#7c8087;font-weight:400}.py-course-price ins{text-decoration:none;background:none}.py-course-price .woocommerce-Price-currencySymbol{font-size:13px;font-weight:400}.py-sale-clock{background:#fae7eb;color:#9c334b;border-radius:4px;padding:5px 8px;font-size:12px;text-align:center}.py-course-cta,.py-course-offer button.single_add_to_cart_button{background:var(--py-course-blue)!important;color:white!important;border-radius:var(--py-radius-sm)!important;width:100%;text-align:center;display:block;text-decoration:none;padding:12px 10px!important;font-weight:600;font-size:14px;min-height:48px;border:0}.py-course-offer .cart{margin:0!important}.py-course-offer .quantity{display:none!important}.py-offer-facts{list-style:none;margin:16px 0 0;padding:0;color:#777e87;font-size:12px}.py-offer-facts li{display:flex;gap:9px;align-items:center;line-height:2.3}.py-offer-facts li>span{font-size:17px;color:#8a929c}.py-purchase-status{font-size:13px;color:#667487;background:#f6f8fb;border-radius:var(--py-radius-sm);padding:10px;margin:12px 0 0}.py-course-draft{background:#fffaf0;border:1px solid #e6d7b5;border-radius:var(--py-radius-sm);padding:9px 14px;font-size:12px;color:#74684e;margin:0 0 12px}.py-course-categories a{display:inline-block;padding:5px 12px;background:#f3f6fa;border:1px solid #e7ebf1;border-radius:var(--py-radius-sm);margin:0 0 8px 8px;text-decoration:none;font-size:12px}.py-related{padding-top:40px}.py-related h2{font-size:21px}.py-course-shell #reviews,.py-course-shell #comments{width:100%}.py-course-shell #reviews .woocommerce-Reviews-title{display:none}.py-course-shell #reviews #comments ol.commentlist{padding:0}.py-course-shell #review_form_wrapper{margin-top:22px}.py-course-shell #review_form #respond textarea{border-radius:var(--py-radius-sm);border:1px solid #dce2e9}.py-course-shell #review_form #respond .form-submit input{background:var(--py-course-blue);border-radius:var(--py-radius-sm);color:white}.py-course-shell #review_form #reply-title{font-size:15px}
@media(max-width:1100px){.py-course-grid{grid-template-columns:minmax(0,1fr) 320px;gap:28px}.py-course-tabs{gap:15px;overflow-x:auto;justify-content:start}.py-course-tabs a{font-size:12px}.py-materials{grid-template-columns:repeat(2,minmax(0,1fr))}.py-course-hero h1{font-size:22px}.py-course-offer{padding:18px}}
@media(max-width:782px){body.single-product.admin-bar{--py-course-top:46px}.py-course-grid{display:flex;flex-direction:column;gap:0}.py-course-main{display:contents}.py-course-container{width:calc(100% - 32px)}.py-course-hero{order:0;width:100%;padding:20px 0;min-height:0}.py-course-hero h1{font-size:20px}.py-course-sidebar{order:1;position:static;padding:20px 0;width:100%}.py-course-tabs{order:2;width:100%;top:var(--py-course-top);min-height:52px;gap:22px}.py-course-tabs a{font-size:13px}.py-course-section{order:3;width:100%;padding:26px 0}.py-course-offer{display:grid;grid-template-columns:140px minmax(0,1fr);gap:0 18px;padding:16px}.py-course-cover{grid-column:1;grid-row:1/7;align-self:start}.py-price-heading,.py-course-price,.py-sale-clock,.py-course-cta,.py-course-offer .cart,.py-purchase-status,.py-offer-facts{grid-column:2}.py-price-heading{margin-top:0}.py-offer-facts{margin-top:10px}.py-course-cover--empty>span{font-size:25px}.py-course-cover--empty strong{font-size:18px}.py-course-cover--empty small{display:none}.py-course-breadcrumbs{padding-block:12px}.py-course-meta{font-size:12px}.py-course-section h2{font-size:18px}.py-course-richtext{font-size:14px}.py-course-tabs{box-shadow:0 1px 0 #e3e7ec}}
@media(max-width:480px){.py-course-offer{grid-template-columns:100px minmax(0,1fr);gap:0 12px}.py-course-price{font-size:19px}.py-course-cover--empty strong{font-size:14px}.py-course-cover--empty>span{font-size:20px}.py-materials{grid-template-columns:1fr 1fr;gap:16px 12px}.py-materials li{font-size:12px;gap:7px}.py-two-col{grid-template-columns:1fr;gap:22px}.py-chapter summary{padding:13px 12px;gap:8px}.py-chapter ol{padding-inline:12px}.py-chapter li{gap:7px}.py-chapter summary small{font-size:10px}.py-chapter .py-lesson-time{font-size:10px}.py-course-breadcrumbs .woocommerce-breadcrumb{font-size:10px}.py-course-breadcrumbs span{margin-inline:6px}.py-section-heading{gap:10px}.py-toggle-all{font-size:11px}}
@media(max-width:600px){body.single-product.admin-bar{--py-course-top:0px}}
@media(prefers-reduced-motion:reduce){.py-chapter summary:after{transition:none}}

.py-read-more{margin-top:18px}.py-read-more>summary{cursor:pointer;color:var(--py-course-blue);font-size:13px;min-height:44px;padding:10px 0}.py-course-richtext pre{padding:20px;border-radius:var(--py-radius-sm);background:#f4f7fb;color:#263d55;font-size:14px;line-height:1.9}

.py-chapter{border:1px solid #dae3ee;border-radius:var(--py-radius);overflow:hidden;margin-block:14px;background:#fff}.py-chapter[open]{border-color:#99b8da;box-shadow:0 4px 18px #123e6c09}.py-chapter summary{min-height:64px;transition:background .15s}.py-chapter summary:hover{background:#eaf2fc}.py-lesson-content{flex:1;min-width:0}.py-lesson-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.py-lesson-badges:empty{display:none}.py-lesson-badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:var(--py-radius-sm);font-size:11px;line-height:1.8;background:#edf4fb;color:#224f78;border:1px solid #cedeee}.py-lesson-badge[data-kind="exercise"],.py-lesson-badge[data-kind="source"]{background:#eef7f1;color:#245e3a;border-color:#cce4d3}.py-lesson-badge[data-kind="project"]{background:#f5effb;color:#65418b;border-color:#e0d3ed}.py-chapter summary:focus-visible{outline-offset:-4px}.py-chapter li{min-height:64px}

.py-sale-saving{color:#245b3c;font-size:12px;margin:0 0 14px}.py-sale-panel{grid-column:1/-1;border:1px solid #efd6de;background:#fff7f9;border-radius:var(--py-radius-sm);padding:14px;margin:0 0 16px;text-align:center}.py-sale-panel>strong{font-size:12px;color:#85334b}.py-sale-panel .py-sale-clock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;background:none;padding:10px 0;margin:0;direction:rtl}.py-sale-panel .py-sale-clock[hidden]{display:none}.py-count-unit{display:flex;flex-direction:column;border:1px solid #efdbe1;border-radius:var(--py-radius-sm);background:white;padding:6px 2px}.py-count-unit b{font-size:20px;font-variant-numeric:tabular-nums;color:#773049}.py-count-unit small{font-size:10px;color:#624551}.py-sale-dates{font-size:11px;line-height:2.2;color:#624551;margin:4px 0 0}.py-sale-dates>small{display:block}.py-course-price del{flex-basis:100%}.py-sale-badge{padding:3px 10px;border-radius:var(--py-radius);font-weight:700}.py-sale-saving{grid-column:2}

.py-sale-panel .py-sale-clock{grid-template-columns:repeat(3,minmax(0,1fr))}.py-cycle-note{font-size:10px;line-height:1.9;color:#624551;margin:2px 0 8px}

.py-sale-caption{font-size:11px;color:#624551;margin:6px 0 0}

.py-demo-reviews{border:1px dashed #aac2dd;border-radius:var(--py-radius);background:#f7faff;padding:20px;margin:20px 0}.py-demo-label{font-size:12px;color:#52647a}.py-demo-review{background:#fff;border:1px solid #e0e8f1;border-radius:var(--py-radius-sm);margin:12px 0;padding:18px}.py-demo-review h4{font-size:14px;margin:0 0 8px}.py-demo-review p{font-size:14px;margin:0}

/* Course metadata and accessible lesson controls. */
.py-course-level{display:inline-flex;align-items:center;gap:8px;background:#dfeafc;color:#214e90;border:1px solid #b9d0ef;padding:7px 12px;border-radius:var(--py-radius);font-size:12px;line-height:1.7}
.py-course-level .py-icon{width:19px;height:19px}.py-course-level strong{font-weight:700}
.py-chapter summary{background:#e9eff7}.py-chapter summary:hover{background:#dbe7f6}.py-chapter[open]>summary{background:#e1ebf8}
.py-chapter li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;align-items:center}
.py-lesson-icon{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d5dfeb;border-radius:50%;background:#f4f7fb;color:#62778f}
.py-lesson-icon .py-icon{width:18px;height:18px}
.py-lesson-free .py-lesson-icon{background:#e5f4ee;color:#227352;border-color:#bedfce}
.py-lesson-access{display:flex;align-items:center;gap:8px;white-space:nowrap}
.py-lesson-lock{display:inline-flex;color:#7a8796}.py-lesson-lock .py-icon{width:16px;height:16px}
.py-chapter .py-lesson-time{margin:0;font-variant-numeric:tabular-nums}
.py-preview-trigger{display:flex;align-items:center;gap:10px;flex-wrap:wrap;width:100%;text-align:start;background:transparent!important;border:0!important;color:#235a96!important;padding:7px 0!important;min-height:44px;font:inherit;cursor:pointer}
.py-preview-trigger:hover bdi{text-decoration:underline;text-underline-offset:4px}
.py-free-label{display:inline-flex;padding:2px 9px;border:1px solid #bcdccc;background:#edf8f1;color:#216749;border-radius:var(--py-radius);font-size:11px;white-space:nowrap}
.py-preview-trigger:focus-visible,.py-preview-close:focus-visible{outline:3px solid #b37708!important;outline-offset:3px}
.py-instructor-card{padding:28px;border:1px solid #d4e1f0;border-radius:var(--py-radius);background:linear-gradient(145deg,#f0f5fc,#fff);gap:26px}
.py-instructor-visual{width:140px;flex:0 0 140px}
.py-instructor-photo{width:140px;height:140px;aspect-ratio:1;object-fit:cover;display:block;border-radius:var(--py-radius);border:1px solid #d0deef}
.py-instructor-content{flex:1;min-width:0}.py-instructor-eyebrow{font-size:12px;color:#667d97}
.py-instructor-card h3{font-size:20px;margin:5px 0 15px;color:#25496e}
.py-instructor-bio p{text-align:justify;text-justify:inter-word;line-height:2.2;color:#536376;margin:0 0 12px;overflow-wrap:anywhere}.py-instructor-bio p:last-child{margin-bottom:0}
.py-preview-dialog{width:min(900px,calc(100vw - 32px));max-width:900px;max-height:90dvh;padding:20px;border:1px solid #d2dfed;border-radius:var(--py-radius);background:#fff;color:#23364c;overflow:auto;margin:auto;box-shadow:0 24px 80px #152c5940}
.py-preview-dialog::backdrop{background:#0b172ccc}.py-preview-header{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-bottom:14px}.py-preview-header h2{font-size:17px;margin:0;line-height:1.9}
.py-preview-close{display:grid;place-items:center;flex:none;min-width:44px;min-height:44px;border:1px solid #c9d8e8;border-radius:var(--py-radius-sm);background:#eff4fa!important;color:#294b72!important;padding:4px!important;font-size:27px;line-height:1}
.py-preview-player{aspect-ratio:16/9;background:#0e1725;border-radius:var(--py-radius-sm);overflow:hidden}.py-preview-player video,.py-preview-player iframe{display:block;width:100%;height:100%;border:0}
.py-preview-message{font-size:13px;color:#a03342;margin:10px 0}.py-preview-message:empty{display:none}.py-preview-help{font-size:12px;color:#6c7b8d;margin:12px 0 0}
@media(max-width:600px){.py-instructor-card{padding:20px;gap:18px;flex-direction:column}.py-instructor-visual{flex-basis:auto;width:112px}.py-instructor-photo{width:112px;height:112px}.py-instructor-card h3{font-size:18px}.py-chapter li{grid-template-columns:26px minmax(0,1fr);gap:7px 10px}.py-lesson-access{grid-column:2;justify-content:flex-end}.py-chapter .py-lesson-time{font-size:12px}.py-preview-dialog{padding:14px}.py-preview-header h2{font-size:14px}}

/* Course intro: local cover, player loaded only after explicit interaction. */
.py-course-intro.py-preview-trigger{position:relative;display:block;isolation:isolate;aspect-ratio:16/10;overflow:hidden;margin:0 0 22px;padding:0!important;border-radius:var(--py-radius);min-height:0;background:#102e4a!important;color:#fff!important;text-align:right;box-shadow:0 8px 24px #102e4a20}
.py-intro-art,.py-intro-image{position:absolute;inset:0;z-index:-2;background:radial-gradient(ellipse at 0% 0%,#147f86 0%,transparent 65%),linear-gradient(145deg,#17445b,#101f39)}
.py-intro-image img{width:100%;height:100%;object-fit:cover}
.py-course-intro:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#091a2c20 28%,#091a2c08 45%,#091a2ce8 100%)}
.py-intro-brand{position:absolute;top:18px;right:18px;font:700 13px/1.4 system-ui,sans-serif;letter-spacing:2px;text-align:right;color:#fff}
.py-intro-brand>span{display:block;margin-top:3px;letter-spacing:0;font:400 10px/1.7 Vazirmatn,sans-serif;color:#d0edf2}
.py-intro-orbit{position:absolute;width:230px;height:230px;border:1px solid #a5e8e32b;border-radius:50%;top:-95px;left:-100px;box-shadow:0 0 0 27px #a5e8e309,0 0 0 54px #a5e8e306}
.py-intro-code{position:absolute;left:24px;top:40px;width:106px;height:80px;border:1px solid #b3f9ec38;background:#0c243d55;border-radius:var(--py-radius-sm);transform:rotate(-10deg);text-align:left;padding:8px;box-shadow:0 14px 25px #06142233}
.py-intro-code i{display:inline-block;width:4px;height:4px;border-radius:50%;background:#6ea9b8;margin-right:4px;vertical-align:top}
.py-intro-code>span{display:block;font:700 34px/1.1 monospace;color:#88deca;text-align:center;direction:ltr}
.py-intro-play{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);display:grid;place-items:center;width:58px;height:58px;border:1px solid #ffffffb0;border-radius:50%;background:#ffffff;box-shadow:0 0 0 8px #ffffff15,0 8px 25px #0713234d;color:#184a6e;transition:box-shadow .2s,background .2s}
.py-intro-play svg{width:25px;height:25px;margin-left:3px}
.py-intro-caption{position:absolute;right:18px;bottom:19px;left:18px;display:flex;flex-direction:column;gap:2px;line-height:1.8}
.py-intro-caption strong{font-size:17px;color:#fff}
.py-intro-caption>span{font-size:11px;color:#d5e8ef}
.py-intro-corner{position:absolute;top:17px;left:14px;border:1px solid #ffffff3b;border-radius:var(--py-radius);padding:2px 8px;background:#07203455;color:#e2f3f4;font-size:9px}
.py-course-intro:hover .py-intro-play{background:#e4fbf5;box-shadow:0 0 0 11px #ffffff20,0 8px 25px #0713234d}
@media(max-width:782px){.py-course-offer--media.card{display:flex;flex-direction:column}.py-course-offer--media .py-course-intro{width:100%;margin-bottom:16px;aspect-ratio:16/9}.py-course-offer--media .py-price-heading{width:100%}.py-course-offer--media .py-course-price{align-self:flex-start}.py-course-offer--media .cart{width:100%}}
@media(prefers-reduced-motion:reduce){.py-intro-play{transition:none}}

/* Purchase pricing: keep WooCommerce price semantics and local currency data. */
.py-price-summary{grid-column:2;width:100%;min-width:0;margin:0 0 18px;padding:16px;border:1px solid #dfe8f1;border-radius:var(--py-radius);background:linear-gradient(145deg,#f8fbff,#f0f6fb);box-shadow:inset 0 1px 0 #fff}
.py-price-summary .py-price-heading{margin:0 0 16px;gap:10px;flex-wrap:wrap;font-size:14px;color:#25445f;line-height:1.7}
.py-price-title{display:inline-flex;align-items:center;gap:8px;font-weight:700}
.py-price-icon{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:var(--py-radius-sm);background:#e2edf8;color:#285a85;border:1px solid #d0e1f2}
.py-price-icon svg{width:20px;height:20px}
.py-price-summary .py-sale-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border:1px solid #f1bbcd;border-radius:var(--py-radius-sm);background:#fce8ef;color:#9c2450;font-size:12px;font-weight:800;line-height:1.5;white-space:nowrap}
.py-sale-badge svg{width:16px;height:16px;flex:none}
.py-price-summary .py-course-price{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:9px 8px;margin:0;width:100%;font-family:var(--py-font);font-variant-numeric:tabular-nums;line-height:1.5;color:#173d59}
.py-price-original-label{grid-column:1;grid-row:1;font-size:11px;font-weight:500;color:#596a7b}
.py-price-summary .py-course-price del{grid-column:2;grid-row:1;justify-self:end;font-size:14px;font-weight:500;color:#647487;opacity:1;text-decoration-thickness:1px;text-decoration-color:#8394a5}
.py-price-summary .py-course-price ins,.py-price-summary .py-course-price>.amount{grid-column:1/-1;justify-self:end;font-size:30px;font-weight:850;letter-spacing:-.6px;text-decoration:none;background:transparent;color:#173d59;max-width:100%}
.py-price-summary .amount,.py-price-summary .amount bdi{display:inline-flex;flex-direction:row-reverse;align-items:baseline;gap:6px;direction:rtl;unicode-bidi:isolate;white-space:nowrap}
.py-price-summary .woocommerce-Price-currencySymbol{font-size:12px;font-weight:600;letter-spacing:0;color:#4e667b}
.py-price-summary del .woocommerce-Price-currencySymbol{font-size:10px;font-weight:400}
.py-price-summary .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.py-price-summary .woocommerce-price-suffix{grid-column:1/-1;font-size:11px;font-weight:400;letter-spacing:0;color:#596a7b}
@media(max-width:480px){.py-price-summary{padding:14px}.py-price-summary .py-course-price ins,.py-price-summary .py-course-price>.amount{font-size:28px}.py-course-offer:not(.py-course-offer--media) .py-price-heading{font-size:12px}.py-course-offer:not(.py-course-offer--media) .py-price-summary{grid-column:1/-1}}

.py-price-summary del .amount{text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#8394a5}

/* Linked hero facts share the exact canonical choices used by catalog filters. */
.py-course-hero{container:py-course-hero / inline-size}
.py-hero-facets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;list-style:none;margin:16px 0 0;padding:0}
.py-hero-facets li{margin:0;padding:0;min-width:0;max-width:100%}
.py-hero-facets a,.py-hero-facets .py-student-badge{display:flex;align-items:center;gap:8px;height:100%;min-height:56px;padding:8px 10px;border:1px solid #cadbec;border-radius:var(--py-radius);background:#ffffffbd;color:#315678;text-decoration:none;box-shadow:0 2px 3px #173b6010}
.py-hero-facets .py-icon{width:20px;height:20px;flex:none;color:#38698f}
.py-hero-facets a>span,.py-hero-facets .py-student-badge>span{min-width:0;display:flex;flex-direction:column;gap:1px}
.py-hero-facets small{font-size:11px;line-height:1.6;color:#566d83;font-weight:500}
.py-hero-facets strong{font-size:12px;line-height:1.7;font-weight:600;color:#214865;overflow-wrap:break-word;word-break:normal}
.py-hero-facets a:hover{background:#fff;border-color:#7497bc}
.py-hero-facets a:focus-visible{outline:3px solid #b67c15;outline-offset:3px}
@media(max-width:767px){.py-hero-facets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.py-hero-facets a,.py-hero-facets .py-student-badge{height:100%;padding:8px}.py-hero-facets strong{font-size:12px}.py-hero-facets .py-icon{width:18px;height:18px}}
/* Size facts by the available content column, not the viewport beside the purchase card. */
@container py-course-hero (max-width:539px){.py-course-hero h1{font-size:20px}}
@container py-course-hero (min-width:540px){.py-course-hero h1{font-size:22px}.py-hero-facets{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container py-course-hero (min-width:780px){.py-course-hero h1{font-size:26px}.py-hero-facets{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Course identity, local vector icons and accessible sharing. */
.py-chapter-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.py-chapter-title>.py-icon{width:24px;height:24px;flex:none;color:#4672ae}
.py-chapter-title>span{min-width:0;line-height:1.9}
.py-chapter li{grid-template-columns:minmax(0,1fr) auto;align-items:start}
.py-lesson-heading{display:grid;grid-template-columns:28px minmax(0,1fr);gap:12px;align-items:start}
.py-lesson-heading>.py-lesson-icon{margin-top:8px;border-radius:var(--py-radius-sm)}
.py-lesson-heading>.py-lesson-icon .py-icon{width:20px;height:20px}
.py-lesson-heading>bdi{display:block;min-height:44px;padding-block:8px;line-height:28px}
.py-lesson-heading>.py-preview-trigger{padding:8px 0!important;min-height:44px;line-height:28px;align-items:flex-start;text-align:start}
.py-lesson-badges{margin-inline-start:34px;margin-top:2px}
.py-lesson-access{align-self:start;min-height:44px;align-items:center}
.py-materials .py-material-icon{width:36px;height:36px;border:1px solid #dce7f7;background:#eef4fc;border-radius:var(--py-radius)}
.py-material-icon .py-icon{width:22px;height:22px}
.py-offer-facts .py-icon{width:19px;height:19px;vertical-align:middle}
.py-course-promises{list-style:none;margin:0;padding:16px 0;border-top:1px solid #e7edf5;display:grid;gap:12px;grid-column:1/-1;width:100%}
.py-course-promises li{display:flex;align-items:center;gap:10px;color:#385269;font-size:12px;font-weight:600;line-height:1.9}
.py-course-promises .py-icon{width:23px;height:23px;flex:none;color:#24765a}
.py-course-share{width:100%;grid-column:1/-1;border:1px solid #dfe7f2;border-radius:var(--py-radius);background:#f8faff;overflow:hidden}
.py-course-share>summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 14px;color:#315781;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.py-course-share>summary::-webkit-details-marker{display:none}
.py-course-share>summary>.py-icon{width:19px;height:19px;flex:none}
.py-course-share>summary>.py-icon:last-child{margin-inline-start:auto;transition:transform .18s ease}
.py-course-share[open]>summary>.py-icon:last-child{transform:rotate(180deg)}
.py-share-panel{padding:0 12px 12px;border-top:1px solid #e4ebf6}
.py-share-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:12px 0}
.py-share-actions .py-share-action{appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:66px;padding:8px 2px;border:1px solid #dfe7f2;border-radius:var(--py-radius);background:#fff;color:#365a81;font:inherit;font-size:11px;font-weight:600;text-decoration:none;line-height:1.6;cursor:pointer;box-shadow:none}
.py-share-action .py-icon{width:23px;height:23px}
.py-share-actions .py-share-telegram{color:#17698c}
.py-share-actions .py-share-whatsapp{color:#237a54}
.py-share-actions .py-share-gmail{color:#a9433d}
.py-share-actions .py-share-action:hover{background:#edf3fc;border-color:#aebfd9}
.py-course-share summary:focus-visible,.py-share-action:focus-visible,.py-share-url:focus-visible{outline:3px solid #2d69b7;outline-offset:3px}
.py-share-link-label{display:block;color:#61728b;font-size:11px;margin-bottom:6px}
.py-course-share .py-share-url{width:100%;height:40px;min-width:0;padding:8px;border:1px solid #dfe7f2;border-radius:var(--py-radius-sm);background:#fff;color:#425875;font-family:Vazirmatn,sans-serif;font-size:11px;text-align:left;letter-spacing:0}
.py-share-status{min-height:0;margin:0;color:#236649;font-size:11px;line-height:1.9}
.py-share-status:not(:empty){margin-top:8px}
@media(max-width:480px){
 .py-chapter summary{gap:8px;padding:14px 10px}
 .py-chapter-title{gap:8px}
 .py-chapter-title>.py-icon{width:21px;height:21px}
 .py-chapter li{grid-template-columns:minmax(0,1fr);gap:2px}
 .py-lesson-access{grid-column:1;justify-content:flex-end;min-height:24px}
 .py-lesson-heading{gap:10px}
 .py-lesson-badges{margin-inline-start:38px}
}
@media(prefers-reduced-motion:reduce){.py-course-share>summary>.py-icon:last-child{transition:none}}



.py-lesson-heading .py-free-label{line-height:22px}

/* Keep the purchase card and its action reachable at every desktop scroll depth. */
.py-course-shell{--py-course-bottom:16px}
.py-purchase-actions{position:relative}
@media(min-width:783px){
 .py-course-sidebar{position:sticky;top:calc(var(--py-course-top) + 16px);margin-top:36px;padding-top:0}
 .py-course-offer{max-height:calc(100vh - var(--py-course-top) - 32px - var(--py-course-bottom));max-height:calc(100dvh - var(--py-course-top) - 32px - var(--py-course-bottom));overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#b6c9dc #f5f8fc;scrollbar-gutter:stable;scroll-padding-block:16px;overscroll-behavior-y:auto}
 .py-course-offer>*{flex-shrink:0}
 .py-purchase-actions{position:sticky;top:-22px;bottom:-22px;z-index:3;margin:0 -8px;padding:12px 8px;background:#fff;border-top:1px solid #e8edf4;box-shadow:0 -8px 12px #fff}
 .py-course-offer:focus-visible{outline:3px solid #b37708;outline-offset:3px}
}
@media(min-width:783px) and (max-width:1100px){.py-purchase-actions{top:-18px;bottom:-18px}}
.py-mobile-purchase[hidden]{display:none!important}
.py-mobile-purchase{display:none}
@media(max-width:782px){
 .py-purchase-actions{grid-column:2}
 .py-course-offer--media .py-purchase-actions{width:100%}
 .py-mobile-purchase{position:fixed;inset-inline:12px;bottom:var(--py-course-bottom);z-index:8;display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #ccd9e7;border-radius:var(--py-radius);background:#fff;box-shadow:0 3px 20px #163f6b24}
 .py-mobile-purchase>span{min-width:0;flex:1;font-size:11px;font-weight:600;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .py-mobile-purchase>a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;flex:none;padding:8px 12px;background:var(--py-course-blue);color:#fff;text-decoration:none;font-size:12px;font-weight:700;border-radius:var(--py-radius-sm)}
 .py-mobile-purchase .py-icon{width:18px;height:18px}
 #course-offer{scroll-margin-top:calc(var(--py-course-top) + 16px)}
}

/* Registration feedback. */
.py-enroll-notice[hidden],.py-enroll-dialog a[hidden]{display:none!important}
.py-enroll-notice{position:relative;padding:18px 16px 16px;border:1px solid #9ad5c6;border-inline-start:4px solid #12836a;background:#effbf6;border-radius:10px;color:#174c3d;margin-bottom:16px;text-align:start}
.py-enroll-notice strong{display:block;font-size:15px;padding-inline-end:20px}
.py-enroll-notice p{font-size:13px;line-height:1.9;margin:7px 0 10px}
.py-enroll-notice a{display:inline-flex;font-weight:750;color:#08654f!important;border-bottom:1px solid currentColor;text-decoration:none}
.py-enroll-notice button{position:absolute;inset-inline-end:3px;top:3px;width:32px;height:32px;border:0;background:transparent;color:#315b50;padding:0;font-size:25px}
.py-enroll-dialog{width:min(440px,calc(100% - 32px));max-height:calc(100dvh - 48px);padding:28px;border:1px solid #e0e6f0;border-radius:12px;box-shadow:0 24px 90px #101d3d38;color:#182844;background:#fff;font-family:inherit;text-align:center;overflow:auto}
.py-enroll-dialog::backdrop{background:#111d36a8;backdrop-filter:blur(3px)}
.py-enroll-close{position:absolute;top:8px;inset-inline-end:8px;width:40px;height:40px;border:0!important;background:#f2f5fa!important;color:#44516a!important;border-radius:8px;padding:0!important;font-size:26px}
.py-enroll-symbol{display:grid;place-items:center;width:58px;height:58px;margin:10px auto 18px;background:#eef3ff;color:#3768c5;border-radius:12px}
.py-enroll-symbol svg{width:30px;height:30px}
.py-enroll-dialog h2{font-size:19px;line-height:1.8;font-weight:800;margin:0 0 10px}
.py-enroll-dialog p{font-size:14px;line-height:2;color:#52617a;margin:0 0 22px}
.py-enroll-dialog .py-course-cta{display:flex;justify-content:center;text-decoration:none;padding:13px;background:#1768bd;color:#fff;border-radius:8px;font-weight:750}
.py-enroll-dismiss{margin-top:12px;padding:10px 18px;border:0;background:transparent;color:#52617a;font:inherit;font-size:13px}
.py-enrollment [aria-busy=true]{cursor:progress;opacity:.75}
.py-enroll-dialog :focus-visible,.py-enroll-notice :focus-visible{outline:3px solid #67a7ff;outline-offset:3px}
.py-course-shell .woocommerce-message,.py-course-shell .woocommerce-error,.py-course-shell .woocommerce-info{border-radius:10px;padding-block:18px;line-height:1.9;box-shadow:0 4px 16px #19325e08}

.py-enrollment .added_to_cart{display:none!important}

/* Enrollment metric: server-rendered, non-interactive, no fabricated rating/schema data. */
.py-hero-facets .py-student-badge>.py-icon,.py-hero-facets .py-student-badge bdi{color:#087064}.py-hero-facets .py-student-badge strong{font-variant-numeric:tabular-nums}.py-student-unit{font:inherit;color:inherit}

/* Content gutters belong to layout, independently of the selected palette. */
.py-course-main > .py-course-section{padding:32px 28px;border-bottom:1px solid var(--py-c-border,var(--py-course-line));box-sizing:border-box}
.py-course-main > .py-course-tabs{padding-inline:20px;overflow-x:auto;justify-content:flex-start;gap:22px;box-sizing:border-box}
@media(max-width:782px){.py-course-main > .py-course-section{padding:26px 16px}.py-course-main > .py-course-tabs{padding-inline:16px}}

/* Per-chapter lesson position is real server-rendered text, not a CSS counter. */
.py-chapter .py-lesson-number{display:inline-grid;place-items:center;flex:none;align-self:flex-start;min-width:26px;height:28px;margin-top:8px;padding-inline:4px;border-radius:4px;background:var(--py-c-raised,#edf1f7);color:var(--py-c-heading,#172b45);border:1px solid var(--py-c-border,#dce3eb);font-size:12px;font-weight:650;line-height:1;font-variant-numeric:tabular-nums}
.py-lesson-heading{grid-template-columns:26px minmax(0,1fr);gap:8px}
@media(max-width:600px){.py-chapter .py-lesson-number{min-width:23px;height:26px;font-size:11px}.py-lesson-heading{grid-template-columns:23px minmax(0,1fr);gap:6px}}
@media(prefers-reduced-motion:reduce){.py-chapter summary,.py-chapter summary:after{transition:none}}

/* Mobile lesson rows keep time beside the title and retain full, wrapping text. */
@media(max-width:600px){
 .py-chapter li{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;min-height:0;padding-block:10px;font-size:12px}
 .py-chapter .py-lesson-heading{grid-template-columns:22px minmax(0,1fr);gap:5px;align-items:start}
 .py-chapter .py-lesson-number{min-width:22px;height:22px;margin-top:0;padding-inline:2px;font-size:11px}
 .py-chapter .py-lesson-heading>.py-lesson-icon{width:20px;height:22px;margin-top:0;display:grid;place-items:center}
 .py-chapter .py-lesson-heading>.py-lesson-icon .py-icon{width:17px;height:17px}
 .py-chapter .py-lesson-heading>bdi{min-height:22px;padding-block:0;line-height:22px}
 .py-chapter .py-lesson-heading>.py-preview-trigger{padding:0!important;min-height:44px;line-height:22px;gap:4px;align-items:center}
 .py-chapter .py-lesson-access{grid-column:auto;align-self:start;align-items:center;justify-content:flex-end;min-height:22px;gap:4px}
 .py-chapter .py-lesson-time{font-size:10px;margin:0;line-height:22px}
 .py-chapter .py-lesson-lock .py-icon{width:12px;height:12px}
 .py-chapter .py-lesson-badges{gap:4px;margin-top:4px;margin-inline-start:27px}
 .py-chapter .py-lesson-badge{font-size:10px;padding:1px 5px;line-height:1.7}
 .py-chapter .py-free-label{font-size:10px;line-height:18px;padding:1px 5px}
}

/* Native anchor navigation keeps history, keyboard behavior and existing sticky offsets. */
@media(prefers-reduced-motion:no-preference){html:has(.py-course-shell){scroll-behavior:smooth}}
@media(prefers-reduced-motion:reduce){html:has(.py-course-shell){scroll-behavior:auto}}

/* Compact purchase card and a reusable editorial poster built from product fields. */
.py-course-offer .py-price-summary{padding:12px;margin-bottom:12px}
.py-course-offer .py-price-heading{margin-bottom:10px;font-size:13px}
.py-course-offer .py-price-icon{width:26px;height:26px}
.py-course-offer .py-price-icon svg{width:17px;height:17px}
.py-course-offer .py-course-price{gap:5px 8px}
.py-course-offer .py-price-summary .py-course-price ins,.py-course-offer .py-price-summary .py-course-price>.amount{font-size:24px;font-weight:750;letter-spacing:0}
.py-course-offer .py-price-summary .py-course-price del{font-size:12px}
.py-course-offer .py-price-summary .woocommerce-Price-currencySymbol{font-size:11px}
.py-course-offer .py-price-summary .py-sale-badge{padding:4px 6px;font-size:11px;font-weight:700}
.py-course-intro.py-intro-poster,.py-course-cover.py-course-poster{width:100%;aspect-ratio:2/3;margin:0 auto 16px;align-self:center;border:1px solid #36516d;box-shadow:0 6px 18px #071b3024}
.py-intro-poster .py-intro-image{opacity:1;background:none}
.py-intro-poster .py-intro-image img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.py-course-intro.py-intro-poster:after{display:none}
.py-intro-poster .py-intro-play{left:50%;top:50%;width:48px;height:48px;box-shadow:0 0 0 6px #ffffff24,0 3px 16px #00102066}
.py-intro-poster .py-intro-play svg{width:22px;height:22px;margin-left:2px}
.py-intro-fallback{position:absolute;inset:14px 14px auto;font:700 16px/1.8 var(--py-font);color:#fff}
@media(max-width:600px){.py-course-intro.py-intro-poster{width:100%}.py-course-offer .py-price-summary .py-course-price ins,.py-course-offer .py-price-summary .py-course-price>.amount{font-size:22px}}
@media(min-width:601px) and (max-width:782px){.py-course-offer--media.card{display:grid;grid-template-columns:200px minmax(0,1fr);gap:0 18px;align-items:start}.py-course-offer--media :is(.py-intro-poster,.py-course-poster){grid-column:1;grid-row:1/4;width:200px;margin:0;align-self:start}.py-course-offer--media .py-price-summary,.py-course-offer--media .py-sale-panel,.py-course-offer--media .py-purchase-actions{grid-column:2}.py-course-offer--media .py-offer-facts,.py-course-offer--media .py-course-promises,.py-course-offer--media .py-course-share{grid-column:1/-1}}

/* Responsive editorial sections: shared palette, compact rhythm, no content truncation. */
#page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews){padding:28px 24px;font-size:14px;line-height:2}
#page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews) h2{font-size:19px;line-height:1.75;font-weight:750;margin:0 0 18px;text-wrap:pretty}
#page .py-course-main>:is(#about,#prerequisites) h3{font-size:16px;line-height:1.8;margin:20px 0 10px;font-weight:700}
#page .py-materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#page .py-materials li{padding:12px;border:1px solid var(--py-c-border);border-radius:6px;align-items:start;font-size:13px;line-height:1.9;min-width:0;overflow-wrap:anywhere}
#page .py-materials .py-material-icon{width:30px;height:30px;border-radius:5px}
#page .py-materials .py-material-copy{display:block;flex:1;min-width:0}
#page .py-materials .py-icon{width:19px;height:19px}
#page #about .py-course-richtext{font-size:14px;line-height:2.05}
#page #about .py-course-richtext p{line-height:2.05;margin-bottom:14px}
#page #about .py-course-richtext>:last-child{margin-bottom:0}
#page #about .py-course-richtext pre{max-width:100%;overflow:auto;padding:14px;font-size:13px}
#page .py-course-audience{margin-top:20px;padding:16px 18px;background:var(--py-c-raised);border-radius:6px;border-inline-start:3px solid var(--py-c-link)}
#page #about .py-course-audience h3{margin:0 0 8px}
#page .py-course-audience ul{margin:0;padding-inline-start:18px}
#page .py-course-audience li,#page .py-course-requirement li{line-height:2;margin-block:5px}
#page #prerequisites{gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
#page .py-course-requirement{min-width:0;padding:18px;border:1px solid var(--py-c-border);border-radius:6px}
#page #prerequisites h2{display:flex;align-items:center;gap:9px;font-size:16px;margin-bottom:12px}
#page #prerequisites h2 .py-icon{width:21px;height:21px;flex:none;color:var(--py-c-link)}
#page .py-course-requirement .py-software-list{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
#page .py-software-list li{border:1px solid var(--py-c-border);border-radius:4px;background:var(--py-c-raised);padding:5px 9px;margin:0;font-size:12px;max-width:100%;overflow-wrap:anywhere}
#page #instructor .py-instructor-card{display:grid;grid-template-columns:112px minmax(0,1fr);align-items:start;gap:20px;padding:22px;background:var(--py-c-raised);border:1px solid var(--py-c-border);border-inline-start:3px solid var(--py-c-link);border-radius:8px}
#page #instructor .py-instructor-visual{width:112px;min-width:0}
#page #instructor .py-instructor-photo{width:112px;height:112px;border-radius:6px;border:1px solid var(--py-c-border);object-fit:cover}
#page .py-instructor-identity{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--py-c-border)}
#page #instructor .py-instructor-identity h3{display:flex;align-items:center;gap:8px;margin:0;font-size:19px;font-weight:750;line-height:1.8;color:var(--py-c-heading);overflow-wrap:anywhere}
#page #instructor .py-instructor-identity h3 .py-icon{width:22px;height:22px;flex:none;color:var(--py-c-link)}
#page #instructor .py-instructor-identity h3 span{min-width:0}
#page #instructor .py-instructor-bio p{font-size:14px;line-height:2.05;text-align:justify;margin:0 0 12px}
#page #instructor .py-instructor-bio p:last-child{margin-bottom:0}
#page .py-course-main>.py-course-categories{padding:18px 24px;border-bottom:0}
#page .py-course-categories h2{font-size:14px;margin-bottom:10px}
.single-product .py-related:not(:has(.products)){display:none}
.single-product .py-course-shell{padding-bottom:24px}
.single-product .py-site-footer{margin-top:0}
@media(max-width:1100px){
 #page #prerequisites{grid-template-columns:1fr}
 #page #instructor .py-instructor-card{grid-template-columns:88px minmax(0,1fr);padding:18px;gap:16px}
 #page #instructor .py-instructor-visual,#page #instructor .py-instructor-photo{width:88px}#page #instructor .py-instructor-photo{height:88px}
 #page #instructor .py-instructor-identity h3{font-size:18px}
}
@media(max-width:782px){
 #page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews){padding:24px 18px}
 #page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews) h2{font-size:17px;margin-bottom:14px}
 #page #prerequisites{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 #page #prerequisites h2{font-size:15px}
 #page #instructor .py-instructor-card{grid-template-columns:96px minmax(0,1fr)}
 #page #instructor .py-instructor-visual,#page #instructor .py-instructor-photo{width:96px}#page #instructor .py-instructor-photo{height:96px}
}
@media(max-width:600px){
 #page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews){padding:20px 14px;font-size:13px}
 #page .py-course-main>:is(.py-course-preview,#toc,#course-materials,#about,#prerequisites,#instructor,#course-reviews) h2{font-size:16px;margin-bottom:14px}
 #page .py-materials{grid-template-columns:1fr;gap:8px}#page .py-materials li{padding:10px;align-items:center;font-size:12px}
 #page #about .py-course-richtext,#page #instructor .py-instructor-bio p{font-size:13px}
 #page #about h3{font-size:15px}
 #page .py-course-audience{padding:12px;margin-top:16px}
 #page #prerequisites{grid-template-columns:1fr;gap:12px}#page .py-course-requirement{padding:14px}
 #page #instructor .py-instructor-card{grid-template-columns:64px minmax(0,1fr);padding:14px;gap:12px;align-items:center}
 #page #instructor .py-instructor-visual,#page #instructor .py-instructor-photo{width:64px}#page #instructor .py-instructor-photo{height:64px}
 #page #instructor .py-instructor-content{display:contents}
 #page .py-instructor-identity{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;border:0;margin:0;padding:0;gap:3px}
 #page #instructor .py-instructor-identity h3{font-size:16px;gap:6px}
 #page #instructor .py-instructor-identity h3 .py-icon{width:19px;height:19px}
 #page #instructor .py-instructor-bio{grid-column:1/-1;padding-top:12px;border-top:1px solid var(--py-c-border)}
 #page .py-course-main>.py-course-categories{padding:16px 14px}
 .single-product .py-course-shell{padding-bottom:16px}
}

/* One visual rhythm from learning outcomes through course reviews. */
#page .py-course-main>.py-course-preview .py-check{color:var(--py-c-link);border-color:var(--py-c-border);background:var(--py-c-raised)}
#page .py-course-main>.py-course-preview ul{margin-bottom:0}
#page .py-course-main>#toc .py-section-heading h2{margin-bottom:6px}

/* Purchase-card original price: joined label/value row, native Woo semantics retained. */
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price{grid-template-columns:auto minmax(0,1fr);gap:10px 0;align-items:stretch}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-price-original-label,
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del{box-sizing:border-box;min-height:44px;background:var(--py-c-raised);color:var(--py-c-priceold,var(--py-c-muted));border:1px solid var(--py-c-border);padding:9px 10px;align-self:stretch;margin:0}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-price-original-label{font-size:12px;font-weight:550;line-height:1.8;gap:6px;border-inline-end:0;border-radius:0 5px 5px 0;padding-inline-end:6px;white-space:nowrap}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-price-original-label:before{width:16px;height:16px}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del{display:flex;align-items:center;justify-content:flex-end;justify-self:stretch;min-width:0;font-size:18px;font-weight:650;line-height:1.5;opacity:1;text-decoration:none;border-inline-start:0;border-radius:5px 0 0 5px;padding-inline-start:6px}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del .amount{text-decoration-line:line-through;text-decoration-thickness:1px;text-decoration-color:currentColor;white-space:nowrap;gap:5px}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del .woocommerce-Price-currencySymbol{font-size:11px;font-weight:500;color:inherit}
html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price ins{margin:0;align-self:center;padding-top:2px}
@media(max-width:1199px){html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del{font-size:17px}}
@media(max-width:599px){html[data-py-theme] #page .py-course-offer .py-price-summary .py-price-original-label,html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del{min-height:42px;padding-block:8px}html[data-py-theme] #page .py-course-offer .py-price-summary .py-price-original-label{font-size:11px}html[data-py-theme] #page .py-course-offer .py-price-summary .py-course-price del{font-size:16px}}

/* Six selected Hero facts share one desktop row; narrower containers keep the shared 3/2-column rules. */
@container py-course-hero (min-width:780px){.py-hero-facets:has(>li:nth-child(6)){grid-template-columns:repeat(6,minmax(0,1fr))}}

/* Reading paragraphs share justification; the final line keeps the natural text direction. */
#page .py-course-shell :is(.py-course-lead,.py-course-richtext,.py-instructor-bio,.py-review-body) p{ text-align:justify; text-align-last:start; text-justify:inter-word; }

.py-course-subtitles{scroll-margin-top:calc(var(--py-course-top) + 100px);overflow-wrap:anywhere;line-height:2;padding:10px 12px;border-inline-start:2px solid var(--py-c-primary,var(--py-course-blue));background:var(--py-c-surface,#f6f9fd);border-radius:4px;font-size:13px}

/* Approved cover placement; countdown palette and timing remain shared. */
#page .py-course-offer>.py-course-media{position:relative;width:100%;min-width:0;aspect-ratio:2/3;margin:0 auto 16px;align-self:start;isolation:isolate}
#page .py-course-media>:is(.py-course-intro,.py-course-cover){width:100%;height:100%;margin:0}
#page .py-course-media>.py-sale-panel{position:absolute;inset:auto .20rem 8px;margin:0;z-index:2;box-sizing:border-box;min-width:0}
#page .py-course-media:has(>.py-sale-panel) .py-intro-play{top:calc(50% - 62px)}
@media(min-width:601px) and (max-width:782px){#page .py-course-offer>.py-course-media{grid-column:1;grid-row:1/4;width:100%;max-width:100%;margin:0}}
@media(max-width:600px){#page .py-course-offer>.py-course-media{grid-column:1/-1}}

/* Compact countdown stays inside the cover content area at every breakpoint. */
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel{padding:7px 8px}
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel>strong{font-size:11px;line-height:1.6}
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel .py-sale-clock{max-width:210px;gap:5px;padding-top:6px}
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel .py-count-unit{padding:4px 2px}
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel .py-count-unit b{font-size:18px;line-height:1.25}
html[data-py-theme] #page .py-course-offer .py-course-media>.py-sale-panel .py-count-unit small{font-size:9px;line-height:1.5}

/* Lesson labels remain readable even when the optional media service is unconfigured. */
html[data-py-theme] #page .py-chapter .py-lesson-media-actions{display:flex;flex-wrap:wrap;gap:6px 10px;min-width:0}
html[data-py-theme] #page .py-chapter .py-secure-lesson{display:flex;align-items:center;flex:1 1 auto;flex-wrap:wrap;gap:5px 10px;min-width:0;max-width:100%;min-height:44px;margin:0;padding:6px 0;border:0;border-radius:var(--py-radius-sm,4px);background:transparent;color:var(--py-c-text);box-shadow:none;font:500 13px/1.9 var(--py-font);text-align:start;white-space:normal;text-decoration:none;cursor:pointer;transition:color .15s ease}
html[data-py-theme] #page .py-chapter .py-secure-lesson:is(:hover,:focus,:active){background:transparent;color:var(--py-c-link);box-shadow:none}
html[data-py-theme] #page .py-chapter .py-secure-lesson>bdi{flex:1 1 180px;min-width:0;color:inherit;background:transparent;line-height:1.9;overflow-wrap:anywhere}
html[data-py-theme] #page .py-chapter .py-secure-lesson>span{flex:none;max-width:100%;padding:2px 7px;border:1px solid var(--py-c-border);border-radius:var(--py-radius-sm,4px);background:var(--py-c-raised);color:var(--py-c-link);font:500 10.5px/1.8 var(--py-font);white-space:normal}
html[data-py-theme] #page .py-chapter .py-secure-lesson--free>span{color:var(--py-c-success)}
html[data-py-theme] #page .py-chapter .py-secure-lesson:focus-visible{outline:2px solid var(--py-c-focus);outline-offset:3px}
@media(max-width:600px){html[data-py-theme] #page .py-chapter .py-secure-lesson{font-size:12px;padding:0;line-height:1.85}html[data-py-theme] #page .py-chapter .py-secure-lesson>bdi{flex-basis:150px}html[data-py-theme] #page .py-chapter .py-secure-lesson>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){html[data-py-theme] #page .py-chapter .py-secure-lesson{transition:none}}

/* Curriculum titles follow Persian UI flow; native bidi preserves Latin runs. */
.py-chapter .py-course-title-text{direction:rtl;unicode-bidi:isolate;text-align:right;min-width:0;max-width:100%;overflow-wrap:anywhere}

/* Align the outer column with the Hero; retain responsive section content insets. */
body.single-product{--py-course-column-gap:24px}
.py-course-grid{column-gap:var(--py-course-column-gap)}
.py-course-sidebar{margin-top:0}
@media(max-width:782px){.py-course-grid{column-gap:0}}
