/* =====================================================================
   PHARMASKILLCRAFT - COURSE MEDIA, CURRICULUM, BRANDING
   Loaded after style.css / responsive.css (includes/header.php).
   Uses the existing colour variables so light/dark themes keep working.
===================================================================== */

/* ---------------------------------------------------------------
   LOGO
--------------------------------------------------------------- */

.brand-logo .psc-logo-img {
    display: block;
    height: 46px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.psc-logo-img.logo-light,
body.dark-mode .psc-logo-img.logo-dark {
    display: none !important;
}

body.dark-mode .psc-logo-img.logo-light {
    display: block !important;
}

.loader-logo.loader-logo-img {
    background: transparent !important;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
}

.loader-logo.loader-logo-img img {
    height: 64px;
    width: auto;
    display: block;
}

.footer-logo.footer-logo-img {
    display: inline-block;
    margin-bottom: 14px;
}

.footer-logo.footer-logo-img img {
    display: block;
    height: 58px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.footer-brand .footer-brand-name {
    display: block;
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom .footer-copyright {
    max-width: 720px;
    line-height: 1.6;
}

@media (max-width: 576px) {
    .brand-logo .psc-logo-img {
        height: 38px;
    }
    .footer-logo.footer-logo-img img {
        height: 50px;
    }
}


/* ---------------------------------------------------------------
   COURSE CARDS (courses page, category listing)
--------------------------------------------------------------- */

.course-card {
    display: flex;
    flex-direction: column;
}

.course-card .course-card-image {
    height: auto;
    aspect-ratio: 16 / 9;
}

.course-card .course-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-card .course-card-footer {
    margin-top: auto;
}

.course-card.is-enrolled {
    border-color: rgba(46, 152, 104, .35);
}

.course-enrolled-badge {
    position: absolute;
    left: 15px;
    bottom: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border-radius: 100px;
    background: rgba(46, 152, 104, .95);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .3px;
}

.course-card-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.psc-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 100px;
    background: var(--surface-2, #F0F5F8);
    color: var(--muted, #667085);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.psc-chip i { font-size: 11px; }
.psc-chip.video i { color: #0F8B8D; }
.psc-chip.pdf i { color: #D92D20; }
.psc-chip.ppt i { color: #E8590C; }
.psc-chip.class i { color: #123558; }

body.dark-mode .psc-chip.class i { color: #9fd6ff; }

.course-view-btn.is-continue {
    background: #2E9868;
}

.course-view-btn.is-continue:hover {
    background: #257d55;
}

.course-progress-mini {
    font-size: 11px;
    font-weight: 700;
    color: #2E9868;
}

.courses-empty-category {
    padding: 40px 25px;
    text-align: center;
    border: 1px dashed var(--border, #E4EAF0);
    border-radius: 20px;
    background: var(--surface, #fff);
}


/* ---------------------------------------------------------------
   COURSE DETAILS - HERO STATS
--------------------------------------------------------------- */

.course-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.course-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.course-hero-stat i {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .14);
    font-size: 14px;
}

.course-hero-stat.pdf i { background: rgba(217, 45, 32, .85); }
.course-hero-stat.ppt i { background: rgba(232, 89, 12, .85); }
.course-hero-stat.video i { background: rgba(15, 139, 141, .9); }

.course-hero-stat span {
    display: block;
    font-size: 11px;
    opacity: .75;
    line-height: 1.2;
}

.course-hero-stat strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.course-details-thumbnail img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}


/* ---------------------------------------------------------------
   COURSE DETAILS - LAYOUT
--------------------------------------------------------------- */

.psc-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.psc-details-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

@media (max-width: 1100px) {
    .psc-details-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 991px) {
    .psc-details-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .psc-details-sidebar {
        position: static;
    }
}


/* ---------------------------------------------------------------
   CURRICULUM ACCORDION
--------------------------------------------------------------- */

.psc-curriculum-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 22px;
}

.psc-access-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
}

.psc-access-note.locked {
    background: rgba(18, 53, 88, .06);
    color: #344054;
}

.psc-access-note.unlocked {
    background: rgba(46, 152, 104, .10);
    color: #2E9868;
}

body.dark-mode .psc-access-note.locked {
    background: rgba(255, 255, 255, .06);
    color: #c9d6de;
}

.psc-class {
    border: 1px solid var(--border, #E4EAF0);
    border-radius: 18px;
    background: var(--surface, #ffffff);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.psc-class[open] {
    border-color: rgba(15, 139, 141, .35);
    box-shadow: 0 14px 35px rgba(18, 53, 88, .08);
}

.psc-class > summary {
    list-style: none;
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) 34px;
    gap: 16px;
    align-items: center;
    padding: 14px;
    cursor: pointer;
}

.psc-class > summary::-webkit-details-marker {
    display: none;
}

.psc-class > summary:focus-visible {
    outline: 3px solid rgba(15, 139, 141, .45);
    outline-offset: -3px;
    border-radius: 18px;
}

.psc-class-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #123558, #0f8b8d);
}

.psc-class-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psc-class-thumb .psc-class-no {
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 3px 8px;
    border-radius: 7px;
    background: rgba(18, 53, 88, .88);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .4px;
}

.psc-class-thumb .psc-class-lock {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
    color: #123558;
    font-size: 11px;
}

.psc-class-head span.label {
    display: block;
    color: var(--secondary, #0F8B8D);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.psc-class-head h3 {
    margin: 0 0 5px;
    color: var(--primary, #123558);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.psc-class-head p {
    margin: 0 0 8px;
    color: var(--muted, #667085);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psc-class-head .psc-class-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.psc-class-toggle {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2, #F0F5F8);
    color: var(--primary, #123558);
    transition: transform .25s ease;
}

.psc-class[open] .psc-class-toggle {
    transform: rotate(180deg);
}

.psc-class-body {
    padding: 4px 14px 16px;
    border-top: 1px solid var(--border, #E4EAF0);
}

.psc-class-body .psc-group-title {
    margin: 14px 4px 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--muted, #667085);
}

.psc-resource {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--border, #E4EAF0);
    background: var(--surface, #ffffff);
    margin-bottom: 8px;
}

.psc-resource.is-locked {
    background: var(--surface-2, #F7F9FB);
}

.psc-resource-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.psc-resource-icon.video { background: rgba(15, 139, 141, .12); color: #0F8B8D; }
.psc-resource-icon.pdf { background: rgba(217, 45, 32, .10); color: #D92D20; }
.psc-resource-icon.ppt { background: rgba(232, 89, 12, .12); color: #E8590C; }

.psc-resource-icon .mini-lock {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #123558;
    color: #ffffff;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--surface, #fff);
}

.psc-resource-text {
    min-width: 0;
}

.psc-resource-text strong {
    display: block;
    color: var(--primary, #123558);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}

.psc-resource-text small {
    display: block;
    color: var(--muted, #667085);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 2px;
}

.psc-resource-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 9px;
    border: 0;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

a.psc-resource-action,
button.psc-resource-action {
    background: #123558;
    color: #ffffff;
}

a.psc-resource-action:hover,
button.psc-resource-action:hover {
    background: #0F8B8D;
    color: #ffffff;
}

.psc-resource-action.preview {
    background: rgba(15, 139, 141, .12);
    color: #0F8B8D;
}

.psc-resource-action.preview:hover {
    background: #0F8B8D;
    color: #fff;
}

span.psc-resource-action.locked {
    background: transparent;
    color: var(--muted, #667085);
    cursor: default;
    padding-right: 0;
}

.psc-class-empty {
    margin: 12px 4px 4px;
    color: var(--muted, #667085);
    font-size: 13px;
}

@media (max-width: 640px) {
    .psc-class > summary {
        grid-template-columns: 96px minmax(0, 1fr) 30px;
        gap: 12px;
        padding: 12px;
    }
    .psc-class-head h3 {
        font-size: 15px;
    }
    .psc-class-head p {
        display: none;
    }
    .psc-resource {
        grid-template-columns: 40px minmax(0, 1fr);
    }
    .psc-resource-action {
        grid-column: 2;
        justify-self: start;
    }
    span.psc-resource-action.locked {
        padding-left: 0;
    }
}

@media (max-width: 420px) {
    .psc-class > summary {
        grid-template-columns: minmax(0, 1fr) 30px;
    }
    .psc-class-thumb {
        grid-column: 1 / -1;
    }
}


/* ---------------------------------------------------------------
   SIDEBAR CARDS
--------------------------------------------------------------- */

.psc-side-card {
    border: 1px solid var(--border, #E4EAF0);
    border-radius: 20px;
    background: var(--surface, #ffffff);
    padding: 22px;
    box-shadow: 0 12px 35px rgba(18, 53, 88, .06);
}

.psc-side-card h3 {
    margin: 0 0 14px;
    color: var(--primary, #123558);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 9px;
}

.psc-side-card h3 i {
    color: var(--secondary, #0F8B8D);
}

.psc-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border, #EDF0F3);
    font-size: 13px;
}

.psc-summary-row:last-child {
    border-bottom: 0;
}

.psc-summary-row span {
    color: var(--muted, #667085);
}

.psc-summary-row strong {
    color: var(--primary, #123558);
    text-align: right;
}

.psc-summary-row strong.ok { color: #2E9868; }

.psc-related-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    margin: 0 -10px;
    border-radius: 14px;
    text-decoration: none;
    transition: background .2s ease;
}

.psc-related-item:hover {
    background: var(--surface-2, #F0F5F8);
}

.psc-related-item img {
    width: 92px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.psc-related-item small {
    display: block;
    color: var(--secondary, #0F8B8D);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.psc-related-item strong {
    display: block;
    color: var(--primary, #123558);
    font-size: 13px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psc-related-item span {
    display: block;
    color: var(--muted, #667085);
    font-size: 12px;
    font-weight: 700;
    margin-top: 3px;
}

.psc-related-empty {
    color: var(--muted, #667085);
    font-size: 13px;
    margin: 0;
}

.psc-side-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    color: var(--secondary, #0F8B8D);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.psc-help-card {
    background: linear-gradient(135deg, #123558, #0F8B8D);
    border: 0;
    color: #ffffff;
}

.psc-help-card h3,
.psc-help-card h3 i {
    color: #ffffff;
}

.psc-help-card p {
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    margin: 0 0 14px;
}

.psc-help-card a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #123558;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 991px) and (min-width: 600px) {
    .psc-details-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ---------------------------------------------------------------
   PREVIEW VIDEO MODAL
--------------------------------------------------------------- */

.psc-video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(8, 21, 33, .82);
}

.psc-video-modal.open {
    display: flex;
}

.psc-video-modal-box {
    width: min(900px, 100%);
    background: #0b1622;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}

.psc-video-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
}

.psc-video-modal-head button {
    border: 0;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
}

.psc-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.psc-video-frame iframe,
.psc-video-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ---------------------------------------------------------------
   LEARNING PAGE - CLASS MATERIALS
--------------------------------------------------------------- */

.learning-materials {
    padding: 6px 14px 12px;
}

.learning-material {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 10px;
    color: #344054;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.learning-material:hover {
    background: #F0F5F8;
    color: #123558;
}

.learning-material i {
    font-size: 15px;
    width: 18px;
    text-align: center;
}

.learning-material .fa-file-pdf { color: #D92D20; }
.learning-material .fa-file-powerpoint { color: #E8590C; }

body.dark-mode .learning-material { color: #c9d6de; }
body.dark-mode .learning-material:hover { background: rgba(255,255,255,.06); color: #fff; }


/* ---------------------------------------------------------------
   LEGAL PAGES (Terms & Conditions)
--------------------------------------------------------------- */

.psc-legal-hero {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, #123558 0%, #0b2742 55%, #0F8B8D 130%);
    color: #ffffff;
}

.psc-legal-hero .crumbs {
    display: flex;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    opacity: .85;
}

.psc-legal-hero .crumbs a {
    color: #ffffff;
    text-decoration: none;
}

.psc-legal-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    margin: 0 0 10px;
}

.psc-legal-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .8);
}

.psc-legal-body {
    padding: 60px 0 80px;
    background: var(--background, #F6F8FB);
}

.psc-legal-card {
    max-width: 880px;
    margin: 0 auto;
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, #E4EAF0);
    border-radius: 22px;
    padding: clamp(24px, 4vw, 44px);
    box-shadow: 0 12px 35px rgba(18, 53, 88, .06);
    color: var(--text, #17202A);
    line-height: 1.75;
    font-size: 15px;
}

.psc-legal-card h2 {
    margin: 30px 0 8px;
    color: var(--primary, #123558);
    font-size: 19px;
    font-weight: 800;
}

.psc-legal-card h2:first-of-type {
    margin-top: 18px;
}

.psc-legal-card p {
    margin: 0 0 10px;
}

.psc-legal-card ul {
    padding-left: 20px;
    margin: 0 0 10px;
}

.psc-legal-card a {
    color: var(--secondary, #0F8B8D);
    font-weight: 700;
}

.psc-legal-card .closing {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border, #E4EAF0);
    font-weight: 600;
}


/* ---------------------------------------------------------------
   PURCHASE CARD NOTE (course details)
--------------------------------------------------------------- */

.course-details-purchase-card .course-purchase-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px 18px;
    color: #667085;
    font-size: 12px;
    font-weight: 600;
}

.course-details-purchase-card .course-purchase-note i {
    color: #2E9868;
}


/* ---------------------------------------------------------------
   DARK MODE FIXES (navbar button, purchase card)
--------------------------------------------------------------- */

body.dark-mode .nav-cta {
    background: var(--secondary, #4fc7c9);
    color: #081521;
}

body.dark-mode .nav-cta:hover {
    background: #ffffff;
    color: #081521;
}

body.dark-mode .course-details-purchase-card {
    background: #101f2e;
    border-color: rgba(255, 255, 255, .10);
}

body.dark-mode .course-details-purchase-card .course-price-label,
body.dark-mode .course-details-purchase-card .course-purchase-note {
    color: #9daeb9;
}

body.dark-mode .psc-class-thumb .psc-class-lock {
    background: rgba(16, 31, 46, .92);
    color: #ffffff;
}


/* ---------------------------------------------------------------
   CHECKOUT (India ₹ + International US$)
--------------------------------------------------------------- */

.psc-checkout {
    padding: 120px 0 80px;
    background: var(--background, #F6F8FB);
}

.psc-checkout-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted, #667085);
    margin-bottom: 18px;
}

.psc-checkout-crumbs a { color: var(--muted, #667085); text-decoration: none; }
.psc-checkout-crumbs a:hover { color: var(--secondary, #0F8B8D); }
.psc-checkout-crumbs strong { color: var(--primary, #123558); }

.psc-checkout-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted, #98A2B3);
}

.psc-checkout-steps span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.psc-checkout-steps b,
.psc-checkout-steps .done i {
    width: 24px; height: 24px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; background: var(--surface-2, #EEF2F6); color: var(--muted, #667085);
}
.psc-checkout-steps .done { color: #2E9868; }
.psc-checkout-steps .done i { background: #2E9868; color: #fff; }
.psc-checkout-steps .active { color: var(--primary, #123558); }
.psc-checkout-steps .active b { background: #0F8B8D; color: #fff; }
.psc-checkout-steps .line { flex: 0 1 60px; height: 2px; background: var(--border, #E4EAF0); }

.psc-checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 26px;
    align-items: start;
}

.psc-checkout-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #E4EAF0);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(18, 53, 88, .07);
    overflow: hidden;
}

.psc-summary-image { aspect-ratio: 16 / 8; overflow: hidden; background: linear-gradient(135deg, #123558, #0F8B8D); }
.psc-summary-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.psc-summary-body { padding: 26px; }

.psc-summary-label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px; color: var(--secondary, #0F8B8D); margin-bottom: 6px; }

.psc-summary-body h1 { font-size: 23px; font-weight: 800; color: var(--primary, #123558); margin: 0 0 8px; line-height: 1.3; }

.psc-summary-body > p { color: var(--muted, #667085); font-size: 14px; margin: 0 0 16px; }

.psc-summary-includes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 9px; }
.psc-summary-includes li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text, #344054); }
.psc-summary-includes i { width: 18px; text-align: center; color: var(--secondary, #0F8B8D); }

.psc-summary-total {
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: 14px;
    background: rgba(15, 139, 141, .08);
    margin-bottom: 14px;
}
.psc-summary-total span { display: block; font-weight: 800; color: var(--primary, #123558); }
.psc-summary-total small { display: block; font-size: 12px; color: var(--muted, #667085); }
.psc-summary-total strong { font-size: 26px; font-weight: 900; color: #0F8B8D; white-space: nowrap; }

.psc-summary-student { font-size: 13px; color: var(--muted, #667085); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.psc-summary-student strong { color: var(--primary, #123558); }
.psc-summary-student span { flex-basis: 100%; padding-left: 20px; }

.psc-pay-card { padding: 28px; }
.psc-pay-card h2 { font-size: 21px; font-weight: 800; color: var(--primary, #123558); margin: 0 0 4px; }
.psc-pay-sub { color: var(--muted, #667085); font-size: 14px; margin: 0 0 18px; }

.psc-region { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.psc-region-option { position: relative; cursor: pointer; margin: 0; }
.psc-region-option input { position: absolute; opacity: 0; pointer-events: none; }
.psc-region-box {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto;
    column-gap: 12px; row-gap: 8px; align-items: center;
    padding: 14px; border-radius: 14px; border: 2px solid var(--border, #E4EAF0);
    background: var(--surface, #fff); transition: border-color .2s, background .2s, box-shadow .2s;
}
.psc-region-box strong { display: block; color: var(--primary, #123558); font-size: 15px; }
.psc-region-box small { display: block; color: var(--muted, #667085); font-size: 12px; }
.psc-region-box em { grid-column: 1 / -1; font-style: normal; font-weight: 900; font-size: 18px; color: var(--primary, #123558); }
.psc-region-flag {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
    background: var(--surface-2, #EEF2F6); color: var(--primary, #123558); font-weight: 900; font-size: 13px; letter-spacing: .5px;
}
.psc-region-option input:checked + .psc-region-box {
    border-color: #0F8B8D; background: rgba(15, 139, 141, .06); box-shadow: 0 8px 22px rgba(15, 139, 141, .14);
}
.psc-region-option input:checked + .psc-region-box .psc-region-flag { background: #0F8B8D; color: #fff; }
.psc-region-option input:focus-visible + .psc-region-box { outline: 3px solid rgba(15, 139, 141, .4); outline-offset: 2px; }
.psc-region-option.is-disabled { cursor: not-allowed; opacity: .55; }

.psc-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.psc-methods[hidden] { display: none; }
.psc-method {
    display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px;
    border: 1px solid var(--border, #E4EAF0); background: var(--surface, #fff);
}
.psc-method strong { display: block; color: var(--primary, #123558); font-size: 14px; }
.psc-method small { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted, #667085); font-size: 12px; }
.psc-method small .fa-brands { font-size: 22px; color: var(--primary, #123558); }
.psc-method-icon {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(18, 53, 88, .07); color: var(--primary, #123558); font-size: 17px;
}
.psc-method-icon.upi { background: rgba(46, 152, 104, .12); color: #2E9868; font-size: 12px; font-weight: 900; letter-spacing: .5px; }
.psc-method-icon.paypal { background: rgba(0, 48, 135, .10); color: #003087; font-size: 21px; }
.psc-text-badge { display: inline-flex; padding: 2px 7px; border-radius: 5px; border: 1px solid var(--border, #D0D5DD); font-size: 10px; font-weight: 800; color: var(--primary, #123558); }
.psc-intl-note { margin: 2px 0 0; font-size: 12px; color: var(--muted, #667085); display: flex; gap: 7px; align-items: flex-start; }

.psc-pay-button {
    width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 20px; border: 0; border-radius: 14px; cursor: pointer;
    background: linear-gradient(135deg, #F48942, #E2732B); color: #fff;
    font-size: 16px; font-weight: 800; box-shadow: 0 14px 30px rgba(244, 137, 66, .32);
    transition: transform .15s ease, box-shadow .15s ease;
}
.psc-pay-button:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(244, 137, 66, .38); }
.psc-pay-button:disabled { opacity: .7; cursor: progress; transform: none; }
.psc-pay-button.is-busy i::before { content: "\f110"; }
.psc-pay-button.is-busy i { animation: fa-spin 1s linear infinite; }

.psc-pay-message { min-height: 20px; margin: 10px 0 4px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted, #667085); }

.psc-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; margin: 6px 0 12px; font-size: 12px; color: var(--muted, #667085); }
.psc-trust i { color: #2E9868; margin-right: 4px; }

.psc-pay-terms { text-align: center; font-size: 12px; color: var(--muted, #98A2B3); margin: 0 0 10px; }
.psc-pay-terms a { color: var(--secondary, #0F8B8D); font-weight: 700; }
.psc-pay-cancel { display: block; text-align: center; font-size: 13px; color: var(--muted, #667085); }

body.dark-mode .psc-region-box { background: #101f2e; }
body.dark-mode .psc-method { background: #101f2e; }
body.dark-mode .psc-method-icon { background: rgba(255,255,255,.07); color: #eaf7f8; }
body.dark-mode .psc-method-icon.paypal { background: rgba(255,255,255,.10); color: #8fb6ff; }
body.dark-mode .psc-method small .fa-brands { color: #eaf7f8; }
body.dark-mode .psc-summary-includes li { color: #c9d6de; }

@media (max-width: 991px) {
    .psc-checkout-grid { grid-template-columns: minmax(0, 1fr); }
    .psc-checkout-pay { order: -1; }
}

@media (max-width: 520px) {
    .psc-checkout { padding-top: 100px; }
    .psc-checkout-steps { font-size: 11px; gap: 8px; }
    .psc-checkout-steps .line { flex-basis: 20px; }
    .psc-region { grid-template-columns: 1fr; }
    .psc-pay-card, .psc-summary-body { padding: 20px; }
    .psc-summary-image { display: none; }
}


/* =====================================================================
   PAGE BREADCRUMB BAR
   Used on Categories, Courses and Contact pages, where the hero
   banner is hidden and the main content follows the breadcrumb.
===================================================================== */

.psc-page-breadcrumb {
    background: #F6F8FB;
    border-top: 1px solid rgba(18, 53, 88, .06);
    border-bottom: 1px solid rgba(18, 53, 88, .08);
    padding: 18px 0;
}

.psc-breadcrumb-trail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #667085;
}

.psc-breadcrumb-trail a {
    color: #0F8B8D;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease;
}

.psc-breadcrumb-trail a:hover { color: #123558; }

.psc-breadcrumb-trail i { font-size: 10px; opacity: .7; }

.psc-breadcrumb-trail span { color: #123558; font-weight: 600; }

/* Content starts right after the breadcrumb: tighter top spacing */
.psc-page-breadcrumb + .categories-main-section,
.psc-page-breadcrumb + .courses-main-section,
.psc-page-breadcrumb + .contact-main-section {
    padding-top: 50px;
}

body.dark-mode .psc-page-breadcrumb {
    background: var(--surface, #101F2E);
    border-color: rgba(255, 255, 255, .08);
}

body.dark-mode .psc-breadcrumb-trail { color: #98A2B3; }
body.dark-mode .psc-breadcrumb-trail a { color: #5FD0D2; }
body.dark-mode .psc-breadcrumb-trail a:hover { color: #FFFFFF; }
body.dark-mode .psc-breadcrumb-trail span { color: #E6EDF3; }

/* Contact page: on tablet/mobile (single column) show the form first */
@media (max-width: 991px) {
    .psc-page-breadcrumb + .contact-main-section .contact-form-wrapper { order: -1; }
}

@media (max-width: 767px) {
    .psc-page-breadcrumb { padding: 14px 0; }
    .psc-breadcrumb-trail { font-size: 13px; gap: 8px; }
    .psc-page-breadcrumb + .categories-main-section,
    .psc-page-breadcrumb + .courses-main-section,
    .psc-page-breadcrumb + .contact-main-section {
        padding-top: 32px;
    }
}


/* =====================================================================
   NARRATED PRESENTATION PLAYER (learn-course.php)
   Fills the existing 16:9 lesson area; controls sit at the bottom.
===================================================================== */

.psc-pres {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: #07111d;
    color: #fff;
    outline: none;
}

.psc-pres:focus-visible { box-shadow: inset 0 0 0 2px #0F8B8D; }

.psc-pres-stage {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.psc-pres-canvas {
    display: block;
    max-width: 100%;
    max-height: 100%;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.psc-pres-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    background: #07111d;
}

.psc-pres-status.is-error { color: #FECDCA; }
.psc-pres-status[hidden] { display: none; }

.psc-pres-start {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 30px;
    border: 0;
    border-radius: 18px;
    background: rgba(7, 17, 29, .82);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .2s ease, background .2s ease;
}

.psc-pres-start:hover { background: rgba(15, 139, 141, .92); transform: translate(-50%, -50%) scale(1.03); }
.psc-pres-start[hidden] { display: none; }

.psc-pres-start-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F8B8D;
    font-size: 22px;
    padding-left: 4px;
    margin-bottom: 4px;
}

.psc-pres-start strong { font-size: 16px; font-weight: 700; }
.psc-pres-start small { font-size: 12px; color: rgba(255, 255, 255, .75); }

.psc-pres-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: 7px 14px;
    border-radius: 50px;
    background: rgba(7, 17, 29, .82);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

.psc-pres-hint[hidden] { display: none; }

.psc-pres-progress {
    height: 3px;
    background: rgba(255, 255, 255, .12);
    flex: 0 0 auto;
}

.psc-pres-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #0F8B8D;
}

.psc-pres-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #0B1A2A;
}

.psc-pres-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 36px;
    height: 36px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.psc-pres-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .10); }
.psc-pres-btn:disabled { opacity: .35; cursor: default; }
.psc-pres-btn[hidden] { display: none; }

.psc-pres-play { background: #0F8B8D; }
.psc-pres-play:hover:not(:disabled) { background: #12a3a5; }

.psc-pres-auto span { font-size: 12px; font-weight: 600; }
.psc-pres-auto { color: rgba(255, 255, 255, .55); }
.psc-pres-auto.is-on { color: #5FD0D2; }

.psc-pres-count {
    margin-left: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
}

.psc-pres-narr { margin-left: 6px; font-size: 12px; color: #5FD0D2; }
.psc-pres-narr[hidden] { display: none; }

.psc-pres-spacer { flex: 1 1 auto; }

/* Slides keep a full 16:9 area; the control bar sits below them */
.psc-pres-host { aspect-ratio: auto !important; }
.psc-pres-host > .psc-pres { position: relative; inset: auto; }
.psc-pres-host .psc-pres-stage { flex: none; aspect-ratio: 16 / 9; }

.psc-pres.is-fullscreen { position: fixed; inset: 0; }
.psc-pres.is-fullscreen .psc-pres-stage { flex: 1 1 auto; aspect-ratio: auto; }

@media (max-width: 575px) {
    .psc-pres-bar { gap: 2px; padding: 4px 6px; }
    .psc-pres-btn { min-width: 32px; height: 32px; padding: 0 6px; font-size: 14px; }
    .psc-pres-auto span { display: none; }
    .psc-pres-count { font-size: 12px; margin-left: 4px; }
    .psc-pres-narr { display: none; }
    .psc-pres-start { flex-direction: row; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 50px; white-space: nowrap; }
    .psc-pres-start-icon { width: 38px; height: 38px; font-size: 14px; margin: 0; }
    .psc-pres-start strong { font-size: 14px; }
    .psc-pres-start small { display: none; }
}

/* Lesson list + admin badges */
.learning-lesson-icon.is-presentation { background: rgba(244, 137, 66, .14); color: #E0782F; }
.learning-lesson-item.active:not(.completed) .learning-lesson-icon.is-presentation { background: #E0782F; color: #fff; }

/* "Mark Lesson Complete" pulse after a presentation ends */
@keyframes pscAttention {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 139, 141, .55); }
    50%      { box-shadow: 0 0 0 10px rgba(15, 139, 141, 0); }
}

.psc-attention { animation: pscAttention 1.2s ease-out 3; }
