/* Pro Physics grade-course module — v3.0.4
 * Scope: only the grade 7, 8 and 9 course pages.
 */
body.pph-grade-course-page{
  background:
    radial-gradient(circle at 8% 12%,rgba(25,197,216,.08),transparent 27%),
    radial-gradient(circle at 92% 8%,rgba(113,71,245,.08),transparent 28%),
    #f5f8fd!important;
  overflow-x:hidden;
}
body.pph-grade-course-page *{box-sizing:border-box}
body.pph-grade-course-page .pph-container{width:min(calc(100% - 32px),var(--pph-max,1240px));margin-inline:auto}

/* Remove the old theme chrome only on the three course pages. */
body.pph-grade-course-page.pph-grade-hide-theme-chrome :is(
  .whb-header,
  .whb-sticky-header,
  .wd-header,
  .main-header,
  #masthead:not(.pph-site-header),
  header.site-header:not(.pph-site-header),
  .header-wrapper:not(.pph-site-header),
  .header-banner,
  .wd-sticky-nav,
  .wd-sticky-nav-wrapper,
  .wd-sticky-nav-opener
){display:none!important}
body.pph-grade-course-page.pph-grade-hide-theme-chrome :is(
  #footer,
  footer.site-footer:not(.pph-grade-footer),
  .footer-container,
  .wd-footer,
  .main-footer,
  .prefooter,
  .wd-prefooter,
  .footer-sidebar,
  .copyrights-wrapper
){display:none!important}

/* Suppress only the theme's duplicate page-title bar. */
body.pph-grade-course-page :is(.page-title:not(.pph-grade-hero *),.wd-page-title,.title-size-default,.page-title-default){display:none!important}
body.pph-grade-course-page :is(.main-page-wrapper,.site-content,.content-layout-wrapper,.website-wrapper,#page){min-width:0!important}
body.pph-grade-course-page :is(.main-page-wrapper,.site-content){padding-top:0!important}

/* Dedicated course hero. */
.pph-grade-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  padding:66px 0 58px;
  color:#fff;
  background:
    radial-gradient(circle at 12% 8%,rgba(75,226,234,.28),transparent 28%),
    radial-gradient(circle at 86% 16%,rgba(244,201,93,.18),transparent 25%),
    linear-gradient(135deg,#061733,#123c82 58%,#4d278f);
}
.pph-grade-hero::before,.pph-grade-hero::after{content:"";position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.pph-grade-hero::before{width:320px;height:320px;right:-125px;top:-145px;border:1px solid rgba(255,255,255,.13);box-shadow:0 0 0 42px rgba(255,255,255,.035),0 0 0 92px rgba(255,255,255,.02)}
.pph-grade-hero::after{width:250px;height:250px;left:-95px;bottom:-160px;background:radial-gradient(circle,rgba(25,197,216,.22),transparent 68%)}
.pph-grade-hero-inner{display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:46px}
.pph-grade-hero-copy>span{display:inline-flex;margin-bottom:11px;padding:7px 12px;border:1px solid rgba(255,255,255,.14);border-radius:999px;color:#9df2f5;background:rgba(255,255,255,.07);font-size:12px;font-weight:900}
.pph-grade-hero h1{max-width:820px;margin:0!important;color:#fff!important;font-size:clamp(31px,4.6vw,58px)!important;line-height:1.45!important;font-weight:950!important;letter-spacing:-.7px}
.pph-grade-hero p{max-width:730px;margin:14px 0 0!important;color:rgba(255,255,255,.72)!important;font-size:15px!important;line-height:2!important}
.pph-grade-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.pph-grade-hero-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 18px;border:1px solid rgba(255,255,255,.16);border-radius:14px;color:#fff!important;background:rgba(255,255,255,.08);font-size:13px;font-weight:900;text-decoration:none!important;transition:transform .2s ease,background .2s ease}
.pph-grade-hero-actions a:first-child{border:0;color:#0b2146!important;background:linear-gradient(135deg,#67e5e9,#f4d36d);box-shadow:0 15px 34px rgba(12,217,220,.18)}
.pph-grade-hero-actions a:hover{transform:translateY(-2px);background-color:rgba(255,255,255,.13)}
.pph-grade-hero-mark{display:grid;place-items:center;align-content:center;width:190px;height:190px;margin-inline:auto;border:1px solid rgba(255,255,255,.17);border-radius:45px;background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.05));box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 24px 60px rgba(1,15,43,.27);backdrop-filter:blur(14px);transform:rotate(-4deg)}
.pph-grade-hero-mark strong{display:block;color:#fff;font-size:76px;line-height:1;font-weight:950}
.pph-grade-hero-mark span{margin-top:7px;color:#f4d778;font-size:16px;font-weight:900}

/* Main course content. */
body.pph-grade-course-page :is(.container,.content-layout-wrapper,.site-content,.main-page-wrapper){max-width:none}
.pph-grade-course-content{
  width:min(calc(100% - 32px),1120px);
  margin:34px auto 72px;
  padding:30px;
  border:1px solid #dfe7f2;
  border-radius:30px;
  background:#fff;
  box-shadow:0 24px 65px rgba(18,43,88,.08);
  color:#263650;
  direction:rtl;
}
.pph-grade-course-content>*:first-child{margin-top:0!important}
.pph-grade-course-content :is(h2,h3,h4){scroll-margin-top:115px;color:#0b2146;line-height:1.65}
.pph-grade-course-content h2{margin:32px 0 17px;padding:16px 19px;border-radius:17px;color:#fff!important;background:radial-gradient(circle at 8% 0,rgba(58,225,232,.18),transparent 32%),linear-gradient(135deg,#081c40,#184a99 62%,#512b93);font-size:clamp(21px,3vw,30px)}
.pph-grade-course-content h3{margin:27px 0 13px;padding-bottom:10px;border-bottom:1px solid #e5ebf4;font-size:20px}
.pph-grade-course-content :is(p,li){color:#52617a;font-size:14px;line-height:2}
.pph-grade-course-content a{color:#2457ff}
.pph-grade-course-content :is(img,video){max-width:100%;height:auto;border-radius:17px}
.pph-grade-course-content :is(.vc_tta-container,.elementor-accordion,.accordion,.course-list,.lessons-list){overflow:hidden;border:1px solid #e0e8f3;border-radius:20px;background:#fff}
.pph-grade-course-content :is(.vc_tta-panel-heading,.elementor-tab-title,.accordion-title){border-bottom:1px solid #edf1f7!important;background:#f8faff!important}

/* Click-to-load Aparat video. */
.pph-grade-video{display:flex;align-items:center;justify-content:space-between;gap:22px;min-height:166px;margin:18px 0;padding:24px;border:1px solid #dce6f2;border-radius:21px;background:radial-gradient(circle at 8% 0,rgba(25,197,216,.12),transparent 34%),linear-gradient(135deg,#f8fbff,#fff);box-shadow:0 13px 35px rgba(20,49,94,.065)}
.pph-grade-video-copy{display:flex;align-items:center;gap:14px;min-width:0}
.pph-grade-video-copy>span{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;padding-right:3px;border-radius:50%;color:#fff;background:linear-gradient(135deg,#2457ff,#7147f5);box-shadow:0 13px 28px rgba(36,87,255,.22)}
.pph-grade-video-copy strong,.pph-grade-video-copy small{display:block}
.pph-grade-video-copy strong{color:#0d2347;font-size:15px}
.pph-grade-video-copy small{margin-top:5px;color:#748197;font-size:11px;line-height:1.8}
.pph-grade-video button{flex:0 0 auto;min-width:138px;min-height:47px;padding:9px 17px;border:0;border-radius:13px;color:#fff;background:linear-gradient(135deg,#2457ff,#7147f5);font:inherit;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 12px 27px rgba(36,87,255,.18)}
.pph-grade-video button:hover{filter:saturate(1.1);transform:translateY(-1px)}
.pph-grade-video.is-playing{display:block;min-height:0;padding:0;overflow:hidden;background:#07182f}
.pph-grade-video-frame{aspect-ratio:16/9;background:#07182f}
.pph-grade-video-frame iframe{display:block;width:100%;height:100%;border:0}
.pph-grade-video.is-playing .pph-lesson-progress-control{margin:0;border-radius:0;background:#f4f8fd}

/* Dedicated footer. */
.pph-grade-footer{position:relative;z-index:2;color:rgba(255,255,255,.72);background:radial-gradient(circle at 13% 0,rgba(25,197,216,.17),transparent 28%),linear-gradient(135deg,#06152d,#0c326f 62%,#321d72)}
.pph-grade-footer-grid{display:grid;grid-template-columns:minmax(260px,1.45fr) repeat(2,minmax(170px,1fr));gap:34px;padding-block:54px 45px}
.pph-grade-footer h2,.pph-grade-footer h3{color:#fff!important}
.pph-grade-footer h2{margin:10px 0 8px;font-size:23px}
.pph-grade-footer h3{margin:0 0 15px;font-size:15px}
.pph-grade-footer p{max-width:430px;margin:0;color:rgba(255,255,255,.64);font-size:12px;line-height:2}
.pph-grade-footer-brand>a{display:inline-flex;align-items:center;min-height:58px}
.pph-grade-footer-brand .pph-header-logo-image{display:block;max-width:110px;max-height:58px;object-fit:contain}
.pph-grade-footer-brand .pph-header-logo-mark{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#25cedd,#7450fa);font-size:31px}
.pph-grade-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.pph-grade-footer nav a,.pph-grade-footer-bottom a{color:rgba(255,255,255,.72)!important;text-decoration:none!important;font-size:12px;font-weight:750}
.pph-grade-footer nav a:hover,.pph-grade-footer-bottom a:hover{color:#fff!important}
.pph-grade-footer-bottom{border-top:1px solid rgba(255,255,255,.10);background:rgba(2,13,35,.18)}
.pph-grade-footer-bottom>div{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:62px;font-size:11px}

@media(max-width:1050px){
  .pph-grade-hero-inner{grid-template-columns:minmax(0,1fr) 160px;gap:28px}
  .pph-grade-hero-mark{width:150px;height:150px;border-radius:35px}.pph-grade-hero-mark strong{font-size:61px}
}
@media(max-width:760px){
  body.pph-grade-course-page .pph-container{width:calc(100% - 20px)}
  .pph-grade-hero{padding:42px 0 37px}.pph-grade-hero-inner{grid-template-columns:1fr}.pph-grade-hero-mark{display:none}
  .pph-grade-hero h1{font-size:31px!important}.pph-grade-hero p{font-size:13px!important}.pph-grade-hero-actions a{flex:1 1 160px}
  .pph-grade-course-content{width:calc(100% - 20px);margin:20px auto 47px;padding:16px;border-radius:22px}
  .pph-grade-course-content h2{padding:14px;font-size:21px}.pph-grade-course-content h3{font-size:18px}
  .pph-grade-video{align-items:stretch;flex-direction:column;min-height:0;padding:18px;border-radius:17px}.pph-grade-video button{width:100%}
  .pph-grade-footer-grid{grid-template-columns:1fr;gap:28px;padding-block:42px 34px}.pph-grade-footer-bottom>div{align-items:flex-start;flex-direction:column;justify-content:center;padding-block:14px}
}
@media(prefers-reduced-motion:reduce){.pph-grade-course-page *{scroll-behavior:auto!important;transition:none!important}}

/* Keep the course page one-column even if the theme normally adds a sidebar. */
body.pph-grade-course-page .content-layout-wrapper{display:block!important;margin:0!important}
body.pph-grade-course-page :is(.site-content .content-area,.main-page-wrapper .content-area,.content-layout-wrapper>main,.content-layout-wrapper>.site-content){width:100%!important;max-width:none!important;min-width:0!important}
body.pph-grade-course-page :is(.sidebar-container,.area-sidebar,.widget-area.sidebar,.shop-sidebar){display:none!important}


/* --------------------------------------------------------------------------
 * 3.0.3 visual refresh — page-scoped, query-free and commerce-safe.
 * ----------------------------------------------------------------------- */
body.pph-grade-course-page{
  --pph-grade-accent:#24c9dd;
  --pph-grade-accent-2:#6f52f5;
  --pph-grade-warm:#f4d36c;
  --pph-grade-ink:#071a3a;
  --pph-grade-soft:#edf5ff;
  background:
    radial-gradient(circle at 4% 8%,rgba(36,201,221,.10),transparent 24%),
    radial-gradient(circle at 96% 13%,rgba(111,82,245,.09),transparent 26%),
    linear-gradient(180deg,#f4f8ff 0,#f8faff 48%,#f2f7fd 100%)!important;
}
body.pph-grade-course-7{--pph-grade-accent:#16c8d7;--pph-grade-accent-2:#2e6cf6;--pph-grade-warm:#f1d46a}
body.pph-grade-course-8{--pph-grade-accent:#5fd5e1;--pph-grade-accent-2:#7b4ef3;--pph-grade-warm:#f7c85d}
body.pph-grade-course-9{--pph-grade-accent:#2ed5d9;--pph-grade-accent-2:#6545e8;--pph-grade-warm:#ffcc62}

.pph-grade-hero{
  min-height:530px;
  display:flex;
  align-items:center;
  padding:78px 0 72px;
  background:
    radial-gradient(circle at 12% 10%,color-mix(in srgb,var(--pph-grade-accent) 32%,transparent),transparent 28%),
    radial-gradient(circle at 88% 11%,rgba(244,211,108,.20),transparent 24%),
    linear-gradient(128deg,#04132e 0,#0d3475 48%,#42247f 100%);
}
.pph-grade-hero-grid{
  position:absolute;inset:0;z-index:-1;opacity:.22;pointer-events:none;
  background-image:linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom,rgba(0,0,0,.9),transparent 92%);
}
.pph-grade-hero-inner{grid-template-columns:minmax(0,1fr) 330px;gap:70px}
.pph-grade-hero-kicker{
  display:inline-flex;align-items:center;gap:8px;margin-bottom:15px;padding:8px 14px;border:1px solid rgba(255,255,255,.16);border-radius:999px;
  color:#aaf6f6;background:rgba(255,255,255,.075);font-size:12px;font-weight:950;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)
}
.pph-grade-hero-kicker span{color:var(--pph-grade-warm)}
.pph-grade-hero h1{max-width:800px;font-size:clamp(36px,5vw,64px)!important;line-height:1.35!important;text-shadow:0 14px 44px rgba(0,0,0,.18)}
.pph-grade-hero p{max-width:720px;margin-top:18px!important;font-size:15.5px!important;line-height:2.05!important}
.pph-grade-hero-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.pph-grade-hero-stats>div{display:flex;align-items:center;gap:8px;min-height:46px;padding:8px 12px;border:1px solid rgba(255,255,255,.13);border-radius:14px;background:rgba(255,255,255,.07);backdrop-filter:blur(10px)}
.pph-grade-hero-stats strong{color:#fff;font-size:13px;font-weight:950}
.pph-grade-hero-stats span{color:rgba(255,255,255,.62);font-size:10px;font-weight:800}
.pph-grade-hero-actions{margin-top:27px}
.pph-grade-hero-actions a{min-height:52px;padding-inline:21px;border-radius:15px}
.pph-grade-hero-actions a:first-child{gap:8px;background:linear-gradient(135deg,var(--pph-grade-accent),var(--pph-grade-warm));box-shadow:0 16px 36px color-mix(in srgb,var(--pph-grade-accent) 23%,transparent)}
.pph-grade-hero-visual{position:relative;display:grid;place-items:center;width:310px;height:310px;margin-inline:auto}
.pph-grade-hero-mark{position:relative;z-index:3;width:190px;height:190px;border-radius:54px;transform:rotate(-4deg);background:linear-gradient(145deg,rgba(255,255,255,.21),rgba(255,255,255,.06));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 30px 80px rgba(1,10,35,.35)}
.pph-grade-orbit{position:absolute;inset:50%;border:1px solid rgba(255,255,255,.24);border-radius:50%;transform:translate(-50%,-50%) rotate(-18deg)}
.pph-grade-orbit-one{width:285px;height:128px}
.pph-grade-orbit-two{width:128px;height:285px;transform:translate(-50%,-50%) rotate(38deg)}
.pph-grade-particle{position:absolute;z-index:4;width:12px;height:12px;border-radius:50%;background:var(--pph-grade-warm);box-shadow:0 0 22px color-mix(in srgb,var(--pph-grade-warm) 75%,transparent)}
.pph-grade-particle-one{right:18px;top:116px}.pph-grade-particle-two{left:38px;bottom:70px;width:9px;height:9px;background:var(--pph-grade-accent)}.pph-grade-particle-three{left:78px;top:32px;width:7px;height:7px;background:#fff}

.pph-course-jump-nav{position:sticky;top:78px;z-index:30;width:min(calc(100% - 32px),1120px);margin:-27px auto 22px;padding:9px;border:1px solid rgba(42,84,154,.12);border-radius:18px;background:rgba(255,255,255,.91);box-shadow:0 16px 44px rgba(16,43,87,.12);backdrop-filter:blur(16px)}
.pph-course-jump-nav-inner{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none}
.pph-course-jump-nav-inner::-webkit-scrollbar{display:none}
.pph-course-jump-nav strong{flex:0 0 auto;padding:0 10px;color:#44536c;font-size:11px}
.pph-course-jump-nav a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:40px;padding:8px 14px;border-radius:12px;color:#253653!important;background:#f3f7fc;font-size:11px;font-weight:900;text-decoration:none!important;transition:.2s ease}
.pph-course-jump-nav a:hover,.pph-course-jump-nav a:focus-visible{color:#fff!important;background:linear-gradient(135deg,var(--pph-grade-accent-2),var(--pph-grade-accent));transform:translateY(-1px)}

.pph-grade-course-content{
  counter-reset:pph-chapter;
  width:min(calc(100% - 32px),1120px);margin:0 auto 78px;padding:38px 42px;border:1px solid rgba(41,82,148,.11);border-radius:34px;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(251,253,255,.98));box-shadow:0 28px 80px rgba(15,42,84,.09),inset 0 1px 0 #fff;
}
.pph-grade-course-content::before{content:"نقشه کامل یادگیری";display:inline-flex;align-items:center;min-height:35px;margin-bottom:6px;padding:6px 12px;border-radius:999px;color:#2457a8;background:#edf5ff;font-size:10px;font-weight:950;letter-spacing:.1px}
.pph-grade-course-content h2{position:relative;isolation:isolate;counter-increment:pph-chapter;margin:40px 0 20px;padding:22px 76px 22px 22px;border:1px solid rgba(255,255,255,.09);border-radius:22px;overflow:hidden;background:radial-gradient(circle at 8% 0,color-mix(in srgb,var(--pph-grade-accent) 24%,transparent),transparent 36%),linear-gradient(135deg,#061936,#123f82 62%,#4a2787);box-shadow:0 17px 40px rgba(9,39,86,.16)}
.pph-grade-course-content h2::before{content:counter(pph-chapter,decimal-leading-zero);position:absolute;right:16px;top:50%;display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#071a35;background:linear-gradient(135deg,var(--pph-grade-accent),var(--pph-grade-warm));font-size:14px;font-weight:950;transform:translateY(-50%);box-shadow:0 10px 24px rgba(0,0,0,.16)}
.pph-grade-course-content h2::after{content:"";position:absolute;left:-45px;bottom:-65px;width:170px;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.10),transparent 68%);z-index:-1}
.pph-grade-course-content h3{position:relative;margin:24px 0 14px;padding:14px 52px 14px 16px;border:1px solid #e4ebf5;border-radius:16px;background:linear-gradient(135deg,#fff,#f6f9fe);box-shadow:0 8px 24px rgba(14,48,96,.045);font-size:18px}
.pph-grade-course-content h3::before{content:"✦";position:absolute;right:15px;top:50%;display:grid;place-items:center;width:27px;height:27px;border-radius:9px;color:#fff;background:linear-gradient(135deg,var(--pph-grade-accent),var(--pph-grade-accent-2));font-size:11px;transform:translateY(-50%)}
.pph-grade-course-content h4{margin:18px 0 10px;color:#233a63;font-size:15px}
.pph-grade-course-content :is(p,li){font-size:14px;line-height:2.15}
.pph-grade-course-content ul,.pph-grade-course-content ol{padding-right:24px}
.pph-grade-course-content li::marker{color:var(--pph-grade-accent-2);font-weight:900}
.pph-grade-course-content blockquote{margin:18px 0;padding:18px 20px;border:0;border-right:4px solid var(--pph-grade-accent);border-radius:16px;background:#f1f8ff;color:#3b526f}
.pph-grade-course-content :is(.vc_tta-container,.elementor-accordion,.accordion,.course-list,.lessons-list){margin:17px 0 24px;border-color:#dce6f2;border-radius:22px;box-shadow:0 13px 34px rgba(16,48,95,.055)}
.pph-grade-course-content :is(.vc_tta-panel-heading,.elementor-tab-title,.accordion-title){min-height:54px;background:linear-gradient(135deg,#fbfdff,#f2f7fd)!important}
.pph-grade-course-content :is(.vc_tta-panel-title>a,.elementor-tab-title,.accordion-title){font-weight:900!important;color:#203655!important}

.pph-grade-video{position:relative;overflow:hidden;min-height:180px;margin:20px 0;padding:26px 28px;border:1px solid rgba(36,87,255,.13);border-radius:24px;background:radial-gradient(circle at 10% 15%,color-mix(in srgb,var(--pph-grade-accent) 18%,transparent),transparent 31%),linear-gradient(135deg,#f7fbff,#fff);box-shadow:0 16px 44px rgba(17,51,101,.075)}
.pph-grade-video::after{content:"";position:absolute;left:-70px;bottom:-90px;width:220px;height:220px;border:1px solid rgba(36,87,255,.09);border-radius:50%;box-shadow:0 0 0 30px rgba(36,87,255,.025),0 0 0 66px rgba(36,87,255,.015);pointer-events:none}
.pph-grade-video-copy>span{width:58px;height:58px;flex-basis:58px;background:linear-gradient(135deg,var(--pph-grade-accent-2),var(--pph-grade-accent));box-shadow:0 14px 30px color-mix(in srgb,var(--pph-grade-accent-2) 25%,transparent)}
.pph-grade-video-copy strong{font-size:16px}.pph-grade-video-copy small{font-size:11px}
.pph-grade-video button{position:relative;z-index:2;min-width:150px;min-height:50px;border-radius:14px;background:linear-gradient(135deg,var(--pph-grade-accent-2),var(--pph-grade-accent));box-shadow:0 14px 30px color-mix(in srgb,var(--pph-grade-accent-2) 20%,transparent)}
.pph-grade-video.is-playing{border-radius:24px;box-shadow:0 22px 55px rgba(3,20,49,.20)}

@media(max-width:1050px){
  .pph-grade-hero-inner{grid-template-columns:minmax(0,1fr) 250px;gap:35px}
  .pph-grade-hero-visual{width:240px;height:240px}.pph-grade-orbit-one{width:228px;height:104px}.pph-grade-orbit-two{width:104px;height:228px}
}
@media(max-width:760px){
  .pph-grade-hero{min-height:auto;padding:50px 0 44px;text-align:center}
  .pph-grade-hero-inner{display:block}.pph-grade-hero-copy{display:flex;flex-direction:column;align-items:center}.pph-grade-hero-visual{display:none}
  .pph-grade-hero h1{font-size:34px!important;line-height:1.45!important}.pph-grade-hero p{font-size:13px!important}
  .pph-grade-hero-stats{justify-content:center}.pph-grade-hero-stats>div{flex:1 1 92px;justify-content:center;min-width:92px}
  .pph-grade-hero-actions{width:100%}.pph-grade-hero-actions a{flex:1 1 150px}
  .pph-course-jump-nav{top:66px;width:calc(100% - 20px);margin:-18px auto 16px;border-radius:15px}.pph-course-jump-nav strong{display:none}
  .pph-grade-course-content{width:calc(100% - 20px);padding:22px 15px;border-radius:24px}
  .pph-grade-course-content h2{margin-top:30px;padding:18px 61px 18px 14px;border-radius:18px;font-size:20px!important}.pph-grade-course-content h2::before{right:11px;width:38px;height:38px;border-radius:12px}
  .pph-grade-course-content h3{padding:13px 46px 13px 12px;font-size:16px}
  .pph-grade-video{padding:20px 16px}.pph-grade-video-copy{align-items:flex-start}.pph-grade-video-copy>span{width:48px;height:48px;flex-basis:48px}.pph-grade-video button{width:100%}
}
@media(max-width:380px){
  .pph-grade-hero h1{font-size:30px!important}.pph-grade-hero-stats{display:grid;grid-template-columns:1fr 1fr;width:100%}.pph-grade-hero-stats>div:last-child{grid-column:1/-1}
}


/* --------------------------------------------------------------------------
 * 3.0.4 course information card cleanup.
 * Classes are attached once by grade-course.js only inside the three pages.
 * ----------------------------------------------------------------------- */
body.pph-grade-course-page .pph-course-summary-panel{
  min-width:0!important;
  overflow:visible!important;
  padding-inline:2px!important;
}
body.pph-grade-course-page .pph-course-summary-title{
  margin:0 0 16px!important;
  padding:19px 22px!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:20px!important;
  color:#fff!important;
  background:
    radial-gradient(circle at 10% 0,color-mix(in srgb,var(--pph-grade-accent) 28%,transparent),transparent 35%),
    linear-gradient(135deg,#0a284b,#164b73 52%,#43248d)!important;
  box-shadow:0 15px 34px rgba(18,47,91,.16)!important;
  font-size:clamp(25px,3.1vw,36px)!important;
  line-height:1.55!important;
  font-weight:950!important;
  text-align:right!important;
}
body.pph-grade-course-page .pph-course-summary-description{
  display:block!important;
  max-width:100%!important;
  width:100%!important;
  margin:0 0 17px!important;
  padding:0 4px!important;
  overflow:visible!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  color:#65738a!important;
  font-size:13px!important;
  line-height:2.05!important;
  scrollbar-width:none!important;
}
body.pph-grade-course-page .pph-course-summary-description::-webkit-scrollbar{display:none!important}

body.pph-grade-course-page .pph-course-meta-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 18px!important;
  padding:0!important;
  border:0!important;
  overflow:visible!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.pph-grade-course-page .pph-course-meta-item{
  position:relative!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  gap:5px!important;
  min-width:0!important;
  min-height:92px!important;
  margin:0!important;
  padding:15px 50px 15px 13px!important;
  border:1px solid #e2e7f5!important;
  border-radius:18px!important;
  overflow:hidden!important;
  color:#1d3155!important;
  background:
    radial-gradient(circle at 95% 0,color-mix(in srgb,var(--pph-grade-accent) 14%,transparent),transparent 43%),
    linear-gradient(145deg,#fff,#f8faff)!important;
  box-shadow:0 9px 24px rgba(20,50,99,.055)!important;
  text-align:right!important;
}
body.pph-grade-course-page .pph-course-meta-item::before{
  content:"•";
  position:absolute;
  right:13px;
  top:50%;
  display:grid;
  place-items:center;
  width:29px;
  height:29px;
  border-radius:10px;
  color:#fff;
  background:linear-gradient(135deg,var(--pph-grade-accent-2),var(--pph-grade-accent));
  box-shadow:0 8px 18px color-mix(in srgb,var(--pph-grade-accent-2) 18%,transparent);
  font-size:13px;
  font-weight:900;
  transform:translateY(-50%);
}
body.pph-grade-course-page .pph-course-meta-instructor::before{content:"●"}
body.pph-grade-course-page .pph-course-meta-level::before{content:"▤"}
body.pph-grade-course-page .pph-course-meta-duration::before{content:"◷"}
body.pph-grade-course-page .pph-course-meta-lessons::before{content:"▦"}
body.pph-grade-course-page .pph-course-meta-updated::before{content:"↻"}
body.pph-grade-course-page .pph-course-meta-updated{grid-column:1/-1!important;min-height:78px!important}
body.pph-grade-course-page .pph-course-meta-item>*{
  max-width:100%!important;
  margin-top:0!important;
  margin-bottom:0!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
body.pph-grade-course-page .pph-course-meta-label,
body.pph-grade-course-page .pph-course-meta-item :is(small,.label,.meta-label){
  color:#7b879c!important;
  font-size:10px!important;
  line-height:1.65!important;
  font-weight:800!important;
}
body.pph-grade-course-page .pph-course-meta-value,
body.pph-grade-course-page .pph-course-meta-item :is(strong,b,.value,.meta-value){
  color:#172d51!important;
  font-size:13px!important;
  line-height:1.75!important;
  font-weight:950!important;
}

body.pph-grade-course-page .pph-course-summary-actions{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:12px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:visible!important;
}
body.pph-grade-course-page .pph-course-summary-actions .pph-course-summary-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:56px!important;
  margin:0!important;
  padding:11px 16px!important;
  border-radius:17px!important;
  font-size:13px!important;
  line-height:1.7!important;
  font-weight:950!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
body.pph-grade-course-page .pph-course-summary-button.is-primary{
  border:1px solid transparent!important;
  color:#fff!important;
  background:linear-gradient(135deg,#17bd72,#36d77f)!important;
  box-shadow:0 13px 27px rgba(29,190,113,.18)!important;
}
body.pph-grade-course-page .pph-course-summary-button.is-secondary{
  border:1px solid #ded8fa!important;
  color:#39256d!important;
  background:#fff!important;
}
body.pph-grade-course-page .pph-course-summary-more{
  grid-column:1/-1!important;
  min-height:46px!important;
  border:1px solid #e4e2f4!important;
  border-radius:15px!important;
  color:#5b4f7e!important;
  background:#faf9ff!important;
}
body.pph-grade-course-page .pph-course-summary-button:hover{
  transform:translateY(-1px)!important;
  filter:saturate(1.06)!important;
}

@media(max-width:980px){
  body.pph-grade-course-page .pph-course-meta-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:620px){
  body.pph-grade-course-page .pph-course-summary-title{padding:16px 17px!important;border-radius:17px!important;font-size:24px!important}
  body.pph-grade-course-page .pph-course-meta-grid{grid-template-columns:1fr!important;gap:10px!important}
  body.pph-grade-course-page .pph-course-meta-updated{grid-column:auto!important}
  body.pph-grade-course-page .pph-course-meta-item{min-height:76px!important;padding:13px 48px 13px 12px!important;border-radius:16px!important}
  body.pph-grade-course-page .pph-course-summary-actions{grid-template-columns:1fr!important;gap:10px!important}
  body.pph-grade-course-page .pph-course-summary-more{grid-column:auto!important}
}

/* --------------------------------------------------------------------------
 * 3.0.5 final course summary fit and action alignment.
 * Keeps the existing DOM and only constrains the current grade-page card.
 * ----------------------------------------------------------------------- */
body.pph-grade-course-page .pph-course-summary-panel{
  position:relative!important;
  inset:auto!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  margin:0!important;
  padding:0 18px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
  transform:none!important;
}
body.pph-grade-course-page .pph-course-summary-panel,
body.pph-grade-course-page .pph-course-summary-panel *{
  box-sizing:border-box!important;
  min-width:0;
}
body.pph-grade-course-page .pph-course-summary-panel>*{
  max-width:100%!important;
}
body.pph-grade-course-page .pph-course-summary-title{
  width:100%!important;
  max-width:100%!important;
  overflow:hidden!important;
}
body.pph-grade-course-page .pph-course-summary-description{
  padding-inline:6px!important;
  text-align:right!important;
}
body.pph-grade-course-page .pph-course-meta-grid,
body.pph-grade-course-page .pph-course-summary-actions{
  box-sizing:border-box!important;
  max-width:100%!important;
}
body.pph-grade-course-page .pph-course-summary-actions{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) 54px!important;
  gap:10px!important;
  align-items:stretch!important;
  overflow:hidden!important;
}
body.pph-grade-course-page .pph-course-summary-actions .pph-course-summary-button{
  position:relative!important;
  inset:auto!important;
  max-width:100%!important;
  overflow:hidden!important;
  white-space:normal!important;
  text-align:center!important;
  transform:none!important;
}
body.pph-grade-course-page .pph-course-summary-more{
  grid-column:auto!important;
  width:54px!important;
  min-width:54px!important;
  max-width:54px!important;
  min-height:56px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:17px!important;
  font-size:0!important;
  color:transparent!important;
}
body.pph-grade-course-page .pph-course-summary-more>*{
  opacity:0!important;
  font-size:0!important;
}
body.pph-grade-course-page .pph-course-summary-more::before{
  content:"♡"!important;
  position:absolute!important;
  inset:0!important;
  display:grid!important;
  place-items:center!important;
  color:#5c47a5!important;
  font-size:23px!important;
  line-height:1!important;
  font-family:Arial,sans-serif!important;
}
body.pph-grade-course-page .pph-course-summary-more:hover::before{
  content:"♥"!important;
  color:#7b4ef3!important;
}
body.pph-grade-course-page :is(.woocommerce-breadcrumb,.breadcrumbs,.wd-breadcrumbs,.yoast-breadcrumb){
  max-width:100%!important;
  padding-inline:18px!important;
  overflow-wrap:anywhere!important;
}

@media(max-width:980px){
  body.pph-grade-course-page .pph-course-summary-panel{padding-inline:10px!important}
}
@media(max-width:700px){
  body.pph-grade-course-page .pph-course-summary-panel{padding-inline:0!important}
  body.pph-grade-course-page .pph-course-summary-actions{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 48px!important;
    gap:8px!important;
  }
  body.pph-grade-course-page .pph-course-summary-more{
    width:48px!important;
    min-width:48px!important;
    max-width:48px!important;
    min-height:52px!important;
  }
  body.pph-grade-course-page .pph-course-summary-actions .pph-course-summary-button{
    min-height:52px!important;
    padding-inline:11px!important;
    font-size:12px!important;
  }
}
@media(max-width:480px){
  body.pph-grade-course-page .pph-course-summary-actions{
    grid-template-columns:1fr!important;
  }
  body.pph-grade-course-page .pph-course-summary-more{display:none!important}
}
