/*
 * OPSWA / CANSWA Professional Development Centre
 * Shared styles used by the PDC homepage and all PDC course pages.
 */

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --pdc-navy: #062f4d;
    --pdc-navy-dark: #03253d;
    --pdc-navy-soft: #0c456d;
    --pdc-teal: #0f9aa5;
    --pdc-teal-dark: #087f89;
    --pdc-red: #cc2638;
    --pdc-red-dark: #ad1f30;

    --pdc-ink: #082f4d;
    --pdc-body: #52677a;
    --pdc-muted: #6c7f90;

    --pdc-white: #ffffff;
    --pdc-off-white: #f7fafc;
    --pdc-pale-blue: #eef6fa;
    --pdc-pale-teal: #eefafb;
    --pdc-line: #d8e4ec;

    --pdc-success: #168654;
    --pdc-warning: #c77d06;
    --pdc-danger: #b01f31;

    --pdc-radius-small: 8px;
    --pdc-radius: 14px;
    --pdc-radius-large: 22px;

    --pdc-shadow-small: 0 8px 24px rgba(3, 37, 61, 0.08);
    --pdc-shadow: 0 18px 48px rgba(3, 37, 61, 0.12);
    --pdc-shadow-large: 0 30px 80px rgba(3, 37, 61, 0.18);

    --pdc-header-height: 92px;
    --pdc-shell-width: 1440px;
}

/* =========================================================
   GLOBAL RESET AND BASE STYLES
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--pdc-header-height) + 22px);
}

body.pdc-standalone-page {
    margin: 0;
    overflow-x: hidden;
    background: var(--pdc-white);
    color: var(--pdc-body);
}

body.pdc-cart-open {
    overflow: hidden;
}

body.pdc-standalone-page,
body.pdc-standalone-page button,
body.pdc-standalone-page input,
body.pdc-standalone-page select,
body.pdc-standalone-page textarea {
    font-family:
        "Poppins",
        "Montserrat",
        Arial,
        Helvetica,
        sans-serif;
}

body.pdc-standalone-page *,
body.pdc-standalone-page *::before,
body.pdc-standalone-page *::after {
    box-sizing: border-box;
}

body.pdc-standalone-page img {
    max-width: 100%;
    height: auto;
}

body.pdc-standalone-page a {
    color: inherit;
}

.pdc-shell {
    width: min(
        calc(100% - 44px),
        var(--pdc-shell-width)
    );
    margin-right: auto;
    margin-left: auto;
}

.pdc-page {
    min-height: 60vh;
}

.pdc-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

[hidden] {
    display: none !important;
}

/* =========================================================
   SHARED BUTTONS
   ========================================================= */

.pdc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

.pdc-btn:hover,
.pdc-btn:focus-visible {
    transform: translateY(-1px);
}

.pdc-btn:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.25);
    outline-offset: 3px;
}

.pdc-btn-red {
    background: var(--pdc-red);
    color: var(--pdc-white);
    box-shadow: 0 10px 25px rgba(204, 38, 56, 0.2);
}

.pdc-btn-red:hover,
.pdc-btn-red:focus-visible {
    background: var(--pdc-red-dark);
    color: var(--pdc-white);
}

.pdc-btn-navy {
    background: var(--pdc-navy);
    color: var(--pdc-white);
    box-shadow: 0 10px 25px rgba(6, 47, 77, 0.18);
}

.pdc-btn-navy:hover,
.pdc-btn-navy:focus-visible {
    background: var(--pdc-navy-dark);
    color: var(--pdc-white);
}

.pdc-btn-outline {
    border-color: var(--pdc-navy);
    background: var(--pdc-white);
    color: var(--pdc-navy);
}

.pdc-btn-outline:hover,
.pdc-btn-outline:focus-visible {
    background: var(--pdc-pale-blue);
    color: var(--pdc-navy-dark);
}

/* =========================================================
   SHARED PDC HEADER
   ========================================================= */

.pdc-custom-header {
    position: sticky;
    top: 0;
    z-index: 10020;
    width: 100%;
    border-bottom: 1px solid var(--pdc-line);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 18px rgba(3, 37, 61, 0.04);
    backdrop-filter: blur(12px);
}

.admin-bar .pdc-custom-header {
    top: 32px;
}

.pdc-custom-header-inner {
    min-height: var(--pdc-header-height);
    display: grid;
    grid-template-columns:
        minmax(180px, 240px)
        minmax(0, 1fr)
        auto
        auto;
    align-items: center;
    gap: 25px;
}

/* Logo */

.pdc-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.pdc-logo-frame {
    width: 230px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.pdc-logo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

/* Mobile navigation button */

.pdc-menu-toggle {
    display: none;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--pdc-line);
    border-radius: 8px;
    background: var(--pdc-white);
    color: var(--pdc-navy);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

/* Main navigation */

.pdc-custom-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(17px, 2vw, 32px);
    min-width: 0;
}

.pdc-custom-nav > a,
.pdc-nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2c465c;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.pdc-custom-nav > a::after,
.pdc-nav-dropdown-toggle::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--pdc-teal);
    opacity: 0;
    transform: scaleX(0.65);
    transition:
        opacity 0.18s ease,
        transform 0.18s ease;
}

.pdc-custom-nav > a:hover::after,
.pdc-custom-nav > a:focus-visible::after,
.pdc-nav-dropdown-toggle:hover::after,
.pdc-nav-dropdown-toggle:focus-visible::after,
.pdc-nav-dropdown-toggle[aria-expanded="true"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.pdc-custom-nav > a:focus-visible,
.pdc-nav-dropdown-toggle:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.2);
    outline-offset: 6px;
    border-radius: 4px;
}

/* =========================================================
   COURSES DROPDOWN
   ========================================================= */

.pdc-nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.pdc-nav-dropdown-toggle {
    gap: 6px;
}

.pdc-nav-dropdown-chevron {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.pdc-nav-dropdown-toggle[aria-expanded="true"]
.pdc-nav-dropdown-chevron {
    transform: rotate(180deg);
}

.pdc-nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 13px);
    left: 50%;
    z-index: 10040;
    width: 370px;
    padding: 10px;
    border: 1px solid var(--pdc-line);
    border-radius: 15px;
    background: var(--pdc-white);
    box-shadow: var(--pdc-shadow-large);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 9px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.pdc-nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--pdc-line);
    border-left: 1px solid var(--pdc-line);
    background: var(--pdc-white);
    transform: translateX(-50%) rotate(45deg);
}

.pdc-nav-dropdown:hover .pdc-nav-dropdown-menu,
.pdc-nav-dropdown:focus-within .pdc-nav-dropdown-menu,
.pdc-nav-dropdown.is-open .pdc-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.pdc-nav-dropdown-menu a {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 11px 12px;
    border-radius: 11px;
    color: var(--pdc-ink);
    text-decoration: none;
    white-space: normal;
    transition:
        background-color 0.16s ease,
        color 0.16s ease;
}

.pdc-nav-dropdown-menu a:hover,
.pdc-nav-dropdown-menu a:focus-visible {
    background: var(--pdc-pale-teal);
    color: var(--pdc-navy-dark);
}

.pdc-nav-dropdown-menu a:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.2);
}

.pdc-nav-dropdown-menu strong {
    display: block;
    margin-bottom: 3px;
    color: var(--pdc-navy-dark);
    font-size: 14px;
    line-height: 1.25;
}

.pdc-nav-dropdown-menu small {
    display: block;
    color: var(--pdc-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
}

.pdc-nav-dropdown-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(15, 154, 165, 0.11);
    color: var(--pdc-teal);
}

.pdc-nav-dropdown-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

/* =========================================================
   HEADER CART BUTTON
   ========================================================= */

.pdc-cart-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 116px;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid var(--pdc-line);
    border-radius: 11px;
    background: var(--pdc-white);
    color: var(--pdc-navy);
    box-shadow: var(--pdc-shadow-small);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.pdc-cart-toggle:hover,
.pdc-cart-toggle:focus-visible {
    border-color: var(--pdc-teal);
    background: var(--pdc-pale-teal);
    transform: translateY(-1px);
}

.pdc-cart-toggle:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.2);
    outline-offset: 3px;
}

.pdc-cart-icon {
    display: inline-flex;
}

.pdc-cart-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.pdc-cart-count {
    min-width: 25px;
    height: 25px;
    display: inline-grid;
    place-items: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--pdc-red);
    color: var(--pdc-white);
    font-size: 12px;
    font-weight: 800;
}

/* =========================================================
   HEADER ACCOUNT MENU
   ========================================================= */

.pdc-header-account {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pdc-header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 15px;
    border-radius: 8px;
    color: #4d4d4d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.pdc-header-login:hover,
.pdc-header-login:focus-visible {
    color: var(--pdc-teal-dark);
    background: var(--pdc-pale-teal);
}

.pdc-header-login:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.2);
}

.pdc-account-menu {
    position: relative;
}

.pdc-account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    max-width: 230px;
    padding: 7px 12px 7px 8px;
    border: 1px solid var(--pdc-line);
    border-radius: 11px;
    background: var(--pdc-white);
    color: var(--pdc-navy);
    font-weight: 700;
    cursor: pointer;
}

.pdc-account-toggle:hover,
.pdc-account-toggle:focus-visible,
.pdc-account-toggle[aria-expanded="true"] {
    border-color: var(--pdc-teal);
    background: var(--pdc-pale-teal);
}

.pdc-account-toggle:focus-visible {
    outline: 3px solid rgba(15, 154, 165, 0.2);
    outline-offset: 3px;
}

.pdc-account-avatar {
    flex: 0 0 auto;
    width: 35px;
    height: 35px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--pdc-teal);
    color: var(--pdc-white);
    font-size: 14px;
    font-weight: 800;
}

.pdc-account-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdc-account-chevron {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.18s ease;
}

.pdc-account-toggle[aria-expanded="true"] .pdc-account-chevron {
    transform: rotate(180deg);
}

.pdc-account-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10050;
    width: 290px;
    overflow: hidden;
    border: 1px solid var(--pdc-line);
    border-radius: 14px;
    background: var(--pdc-white);
    box-shadow: var(--pdc-shadow-large);
}

.pdc-account-dropdown-header {
    padding: 17px;
    border-bottom: 1px solid var(--pdc-line);
    background: var(--pdc-pale-teal);
}

.pdc-account-dropdown-header strong,
.pdc-account-dropdown-header span {
    display: block;
}

.pdc-account-dropdown-header strong {
    margin-bottom: 3px;
    color: var(--pdc-navy);
    font-size: 14px;
}

.pdc-account-dropdown-header span {
    overflow: hidden;
    color: var(--pdc-muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdc-account-dropdown nav {
    padding: 8px;
}

.pdc-account-dropdown nav a,
.pdc-account-signout {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 43px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--pdc-ink);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.pdc-account-dropdown nav a:hover,
.pdc-account-dropdown nav a:focus-visible {
    background: var(--pdc-pale-blue);
    color: var(--pdc-navy);
}

.pdc-account-dropdown nav a span,
.pdc-account-signout span {
    width: 20px;
    color: var(--pdc-teal);
    text-align: center;
}

.pdc-account-dropdown-footer {
    padding: 8px;
    border-top: 1px solid var(--pdc-line);
}

.pdc-account-signout {
    color: var(--pdc-danger);
}

.pdc-account-signout:hover,
.pdc-account-signout:focus-visible {
    background: #fff1f3;
    color: var(--pdc-danger);
}

/* =========================================================
   QUICK CART NOTIFICATION
   ========================================================= */

.pdc-cart-quick-wrap {
    position: absolute;
    top: calc(100% + 12px);
    right: max(22px, calc((100vw - var(--pdc-shell-width)) / 2));
    z-index: 10035;
}

.pdc-cart-quick {
    width: min(370px, calc(100vw - 30px));
    padding: 17px;
    border: 1px solid var(--pdc-line);
    border-radius: 14px;
    background: var(--pdc-white);
    box-shadow: var(--pdc-shadow-large);
}

.pdc-cart-quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.pdc-cart-quick-head strong {
    color: var(--pdc-navy);
}

.pdc-cart-quick-head span {
    color: var(--pdc-muted);
    font-size: 12px;
}

.pdc-cart-quick p {
    margin: 8px 0 14px;
    color: var(--pdc-body);
    font-size: 13px;
    line-height: 1.5;
}

.pdc-cart-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* =========================================================
   CART DRAWER
   ========================================================= */

.pdc-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(2, 24, 40, 0.58);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.pdc-cart-overlay.is-visible {
    opacity: 1;
}

.pdc-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 11010;
    width: min(470px, 100%);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
    background: var(--pdc-white);
    box-shadow: -18px 0 55px rgba(2, 24, 40, 0.22);
    transform: translateX(105%);
    transition: transform 0.26s ease;
}

.admin-bar .pdc-cart-drawer {
    top: 32px;
    height: calc(100dvh - 32px);
}

.pdc-cart-drawer.is-open {
    transform: translateX(0);
}

.pdc-cart-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--pdc-line);
}

.pdc-cart-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--pdc-teal-dark);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pdc-cart-drawer-header h2 {
    margin: 0;
    color: var(--pdc-navy);
    font-size: 29px;
    line-height: 1.15;
}

.pdc-cart-close {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pdc-line);
    border-radius: 50%;
    background: var(--pdc-white);
    color: var(--pdc-navy);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.pdc-cart-close:hover,
.pdc-cart-close:focus-visible {
    background: var(--pdc-pale-blue);
}

.pdc-cart-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 9px;
    background: var(--pdc-pale-teal);
    color: var(--pdc-navy);
    font-size: 13px;
}

.pdc-cart-countdown,
#pdc-cart-countdown {
    font-size: 17px;
    font-variant-numeric: tabular-nums;
}

.pdc-cart-empty {
    padding: 38px 15px;
    text-align: center;
}

.pdc-cart-empty-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--pdc-pale-teal);
    color: var(--pdc-teal-dark);
    font-size: 25px;
    font-weight: 800;
}

.pdc-cart-empty h3 {
    margin: 0 0 8px;
    color: var(--pdc-navy);
    font-size: 19px;
}

.pdc-cart-empty p {
    margin: 0;
    color: var(--pdc-muted);
    font-size: 13px;
    line-height: 1.6;
}

.pdc-cart-items {
    display: grid;
    gap: 12px;
}

.pdc-cart-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
    border: 1px solid var(--pdc-line);
    border-radius: 12px;
    background: var(--pdc-white);
}

.pdc-cart-item-image {
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--pdc-pale-blue);
}

.pdc-cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdc-cart-item-content {
    min-width: 0;
}

.pdc-cart-item-title {
    margin: 0 0 3px;
    color: var(--pdc-navy);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
}

.pdc-cart-item-price {
    color: var(--pdc-muted);
    font-size: 12px;
}

.pdc-cart-item-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
}

.pdc-cart-quantity {
    display: inline-grid;
    grid-template-columns: 34px 37px 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--pdc-line);
    border-radius: 7px;
}

.pdc-cart-quantity button {
    height: 34px;
    border: 0;
    background: var(--pdc-pale-blue);
    color: var(--pdc-navy);
    font-size: 18px;
    cursor: pointer;
}

.pdc-cart-quantity button:hover,
.pdc-cart-quantity button:focus-visible {
    background: #dfeef5;
}

.pdc-cart-quantity span {
    text-align: center;
    color: var(--pdc-navy);
    font-size: 13px;
    font-weight: 750;
}

.pdc-cart-remove {
    border: 0;
    background: transparent;
    color: var(--pdc-danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.pdc-cart-summary {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--pdc-line);
}

.pdc-cart-summary > div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 9px;
    color: var(--pdc-body);
    font-size: 13px;
}

.pdc-cart-summary strong {
    color: var(--pdc-navy);
}

.pdc-cart-estimated-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--pdc-line);
    font-size: 15px !important;
}

.pdc-cart-summary p {
    margin: 10px 0 17px;
    color: var(--pdc-muted);
    font-size: 11px;
    line-height: 1.5;
}

.pdc-checkout-button {
    width: 100%;
}

.pdc-checkout-button.is-disabled {
    opacity: 0.48;
    pointer-events: none;
}

.pdc-cart-clear {
    width: 100%;
    margin-top: 9px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: var(--pdc-danger);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* =========================================================
   COURSE CARD CART CONTROLS
   ========================================================= */

.pdc-add-to-cart,
[data-pdc-add-cart] {
    width: 100%;
}

.pdc-card-cart-controls {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    min-height: 50px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--pdc-navy);
    color: var(--pdc-white);
}

.pdc-card-cart-controls button {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: var(--pdc-white);
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.pdc-card-cart-controls button:hover,
.pdc-card-cart-controls button:focus-visible {
    background: rgba(255, 255, 255, 0.17);
}

.pdc-card-cart-status {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: var(--pdc-white);
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
}

/* =========================================================
   SHARED COURSE PAGE BODY
   ========================================================= */

.pdc-course-page-main {
    padding: 62px 0 76px;
    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(15, 154, 165, 0.12),
            transparent 34%
        ),
        radial-gradient(
            circle at 0 5%,
            rgba(204, 38, 56, 0.08),
            transparent 30%
        ),
        var(--pdc-white);
}

.pdc-course-page-shell {
    width: min(calc(100% - 44px), 1180px);
    margin-right: auto;
    margin-left: auto;
}

.pdc-course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 500px);
    align-items: start;
    gap: clamp(36px, 6vw, 80px);
}

.pdc-course-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--pdc-pale-teal);
    color: var(--pdc-teal-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pdc-course-title {
    margin: 17px 0 10px;
    color: var(--pdc-navy);
    font-size: clamp(40px, 5vw, 69px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
}

.pdc-course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    margin-bottom: 27px;
    color: var(--pdc-muted);
    font-size: 14px;
    font-weight: 600;
}

.pdc-course-price {
    color: var(--pdc-navy);
    font-weight: 800;
}

.pdc-course-description {
    max-width: 680px;
    color: var(--pdc-body);
    font-size: 16px;
    line-height: 1.75;
}

.pdc-course-description p {
    margin: 0 0 18px;
}

.pdc-course-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.pdc-course-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.pdc-course-feature-list li {
    position: relative;
    padding-left: 26px;
    color: var(--pdc-body);
    font-size: 13px;
    line-height: 1.5;
}

.pdc-course-feature-list li::before {
    content: "✓";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--pdc-teal);
    font-weight: 900;
}

.pdc-course-media-card {
    overflow: hidden;
    border: 1px solid var(--pdc-line);
    border-radius: var(--pdc-radius-large);
    background: var(--pdc-white);
    box-shadow: var(--pdc-shadow);
}

.pdc-course-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--pdc-pale-blue);
}

.pdc-course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pdc-course-enrolment {
    padding: 22px;
}

.pdc-course-enrolment h2,
.pdc-course-enrolment h3 {
    margin: 0 0 8px;
    color: var(--pdc-navy);
}

.pdc-course-enrolment p {
    margin: 0 0 16px;
    color: var(--pdc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.pdc-course-date-list {
    display: grid;
    gap: 9px;
    margin: 0 0 17px;
    padding: 0;
    list-style: none;
}

.pdc-course-date-list li {
    padding: 11px 12px;
    border: 1px solid var(--pdc-line);
    border-radius: 8px;
    background: var(--pdc-off-white);
    color: var(--pdc-navy);
    font-size: 13px;
    font-weight: 700;
}

/* =========================================================
   SHARED FOOTER
   ========================================================= */

.pdc-footer {
    padding: 66px 0 0;
    background: var(--pdc-navy-dark);
    color: #d9e7ef;
}

.pdc-footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) 0.8fr 1fr 1fr;
    gap: clamp(34px, 5vw, 74px);
    align-items: start;
}

.pdc-footer-logo-link {
    display: inline-flex;
    text-decoration: none;
}

.pdc-footer-logo-frame {
    width: 240px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.pdc-footer-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

.pdc-footer-brand p,
.pdc-footer-column p {
    color: #b9cfdd;
    font-size: 13px;
    line-height: 1.75;
}

.pdc-footer-brand p {
    max-width: 390px;
    margin: 17px 0 0;
}

.pdc-footer-column h3 {
    margin: 5px 0 18px;
    color: var(--pdc-white);
    font-size: 16px;
    font-weight: 750;
}

.pdc-footer-column > a {
    display: block;
    width: fit-content;
    margin-bottom: 11px;
    color: #d9e7ef;
    font-size: 13px;
    text-decoration: none;
}

.pdc-footer-column > a:hover,
.pdc-footer-column > a:focus-visible {
    color: var(--pdc-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pdc-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pdc-social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pdc-white);
    transition:
        background-color 0.18s ease,
        transform 0.18s ease;
}

.pdc-social-links a:hover,
.pdc-social-links a:focus-visible {
    background: var(--pdc-teal);
    transform: translateY(-2px);
}

.pdc-social-links a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.25);
}

.pdc-social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.pdc-recaptcha-notice {
    margin-top: 48px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #9fb9c9;
    font-size: 11px;
    line-height: 1.6;
}

.pdc-recaptcha-notice a {
    color: #cfe0ea;
}

.pdc-footer-bottom {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
    color: #9fb9c9;
    font-size: 12px;
}

/* =========================================================
   RESPONSIVE: MEDIUM DESKTOP
   ========================================================= */

@media (max-width: 1250px) {
    .pdc-custom-header-inner {
        grid-template-columns:
            minmax(150px, 190px)
            minmax(0, 1fr)
            auto
            auto;
        gap: 17px;
    }

    .pdc-logo-frame {
        width: 185px;
        height: 62px;
    }

    .pdc-custom-nav {
        gap: 18px;
    }

    .pdc-custom-nav > a,
    .pdc-nav-dropdown-toggle {
        font-size: 13px;
    }

    .pdc-cart-toggle {
        min-width: auto;
    }

    .pdc-cart-label {
        display: none;
    }

    .pdc-account-name {
        max-width: 100px;
    }
}

/* =========================================================
   RESPONSIVE: TABLET AND MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 980px) {
    :root {
        --pdc-header-height: 78px;
    }

    .admin-bar .pdc-custom-header {
        top: 46px;
    }

    .pdc-shell {
        width: min(calc(100% - 30px), var(--pdc-shell-width));
    }

    .pdc-custom-header-inner {
        min-height: var(--pdc-header-height);
        grid-template-columns: minmax(145px, 1fr) auto auto;
        gap: 10px;
    }

    .pdc-logo-frame {
        width: 175px;
        height: 58px;
    }

    .pdc-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        grid-column: 2;
    }

    .pdc-cart-toggle {
        grid-column: 3;
        min-width: 54px;
        width: 54px;
        min-height: 46px;
        padding: 8px;
    }

    .pdc-header-account {
        grid-column: 1 / -1;
        display: none;
    }

    .pdc-custom-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 10030;
        display: none;
        padding: 11px 20px 20px;
        border-top: 1px solid var(--pdc-line);
        background: var(--pdc-white);
        box-shadow: 0 22px 40px rgba(3, 37, 61, 0.12);
    }

    .pdc-custom-nav.is-open {
        display: block;
    }

    .pdc-custom-nav > a {
        display: flex;
        width: 100%;
        min-height: 48px;
        align-items: center;
        padding: 12px 4px;
        border-bottom: 1px solid var(--pdc-line);
    }

    .pdc-custom-nav > a::after {
        display: none;
    }

    .pdc-nav-dropdown {
        width: 100%;
        display: block;
    }

    .pdc-nav-dropdown-toggle {
        width: 100%;
        min-height: 48px;
        justify-content: space-between;
        padding: 12px 4px;
        border-bottom: 1px solid var(--pdc-line);
    }

    .pdc-nav-dropdown-toggle::after {
        display: none;
    }

    .pdc-nav-dropdown-menu {
        position: static;
        width: 100%;
        display: none;
        padding: 7px 0 10px 14px;
        border: 0;
        border-bottom: 1px solid var(--pdc-line);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .pdc-nav-dropdown-menu::before {
        display: none;
    }

    .pdc-nav-dropdown:hover .pdc-nav-dropdown-menu {
        display: none;
    }

    .pdc-nav-dropdown.is-open .pdc-nav-dropdown-menu {
        display: block;
        transform: none;
    }

    .pdc-nav-dropdown-menu a {
        min-height: 64px;
        margin: 4px 0;
        padding: 9px 10px;
    }

    .pdc-course-layout {
        grid-template-columns: 1fr;
    }

    .pdc-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE: MOBILE
   ========================================================= */

@media (max-width: 680px) {
    .pdc-custom-header-inner {
        grid-template-columns: minmax(120px, 1fr) auto auto;
    }

    .pdc-logo-frame {
        width: 145px;
        height: 54px;
    }

    .pdc-menu-toggle {
        padding: 9px 11px;
        font-size: 12px;
    }

    .pdc-cart-toggle {
        width: 47px;
        min-width: 47px;
    }

    .pdc-cart-count {
        position: absolute;
        top: -6px;
        right: -6px;
        min-width: 21px;
        height: 21px;
        font-size: 10px;
    }

    .pdc-course-page-main {
        padding: 42px 0 55px;
    }

    .pdc-course-page-shell {
        width: min(calc(100% - 28px), 1180px);
    }

    .pdc-course-title {
        font-size: clamp(36px, 12vw, 52px);
    }

    .pdc-course-feature-list {
        grid-template-columns: 1fr;
    }

    .pdc-course-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .pdc-course-actions .pdc-btn {
        width: 100%;
    }

    .pdc-cart-drawer {
        padding: 18px;
    }

    .pdc-cart-quick-wrap {
        right: 15px;
        left: 15px;
    }

    .pdc-cart-quick {
        width: 100%;
    }

    .pdc-footer {
        padding-top: 50px;
    }

    .pdc-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .pdc-footer-logo-frame {
        width: 210px;
    }

    .pdc-footer-bottom {
        min-height: 95px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
    }
}

/* =========================================================
   WORDPRESS ADMIN BAR MOBILE FIX
   ========================================================= */

@media screen and (max-width: 782px) {
    .admin-bar .pdc-custom-header {
        top: 46px;
    }

    .admin-bar .pdc-cart-drawer {
        top: 46px;
        height: calc(100dvh - 46px);
    }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .pdc-nav-dropdown-menu,
    .pdc-cart-drawer,
    .pdc-cart-overlay,
    .pdc-btn,
    .pdc-cart-toggle,
    .pdc-social-links a {
        transition: none;
    }
}
/* Prevent the PDC logo from being clipped */
.pdc-custom-header-inner {
    min-height: 96px;
    padding-top: 8px;
    padding-bottom: 8px;
    overflow: visible;
}

.pdc-brand {
    flex: 0 0 220px;
    display: flex;
    align-items: center;
    align-self: stretch;
    overflow: visible;
}

.pdc-logo-frame {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: visible;
}

.pdc-logo-image {
    display: block;
    width: auto;
    max-width: 215px;
    height: auto;
    max-height: 76px;
    object-fit: contain;
    object-position: left center;
}
.pdc-cart-toggle {
    min-width: 164px;
    justify-content: flex-start;
    gap: 11px;
    padding: 11px 15px;
}

.pdc-cart-header-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.pdc-cart-header-topline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdc-cart-header-summary {
    display: block;
    max-width: 128px;
    overflow: hidden;
    color: var(--pdc-muted);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdc-cart-toggle.has-items .pdc-cart-header-summary {
    color: var(--pdc-teal-dark);
}

@media (max-width: 720px) {
    .pdc-cart-toggle {
        min-width: auto;
    }

    .pdc-cart-header-summary,
    .pdc-cart-label {
        display: none;
    }
}
@media (max-width:1100px){
    .pdc-custom-header-inner{
        grid-template-columns:
            minmax(220px, 255px)
            auto
            minmax(0, 1fr)
            auto
            auto;
        column-gap:16px;
    }

    .pdc-brand{
        min-width:220px;
        max-width:255px;
        height:88px;
    }

    .pdc-logo-frame{
        height:88px;
    }

    .pdc-logo-image{
        width:100% !important;
        max-width:none !important;
        max-height:none !important;
        transform:scale(1.38);
        transform-origin:left center;
    }
}
.pdc-affiliate-button{
    width:100%;
    text-decoration:none;
}
/* Keep link-based navy buttons visually identical to button elements */
body.pdc-standalone-page a.pdc-btn.pdc-btn-navy,
body.pdc-standalone-page a.pdc-btn.pdc-btn-navy:link,
body.pdc-standalone-page a.pdc-btn.pdc-btn-navy:visited {
    color: #ffffff !important;
}

body.pdc-standalone-page a.pdc-btn.pdc-btn-navy:hover,
body.pdc-standalone-page a.pdc-btn.pdc-btn-navy:focus,
body.pdc-standalone-page a.pdc-btn.pdc-btn-navy:active {
    color: #ffffff !important;
}
/*
 * Courses dropdown is controlled exclusively through JavaScript.
 * This prevents hover from reopening it while smooth scrolling.
 */
.pdc-nav-dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(-6px);
}

.pdc-nav-dropdown.is-open .pdc-nav-dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0);
}

/* Explicitly neutralize older desktop hover rules. */
.pdc-nav-dropdown:hover .pdc-nav-dropdown-menu,
.pdc-nav-dropdown:focus-within .pdc-nav-dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* The deliberate open state must override hover neutralization. */
.pdc-nav-dropdown.is-open:hover .pdc-nav-dropdown-menu,
.pdc-nav-dropdown.is-open:focus-within .pdc-nav-dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
/* Full-width Education Dashboard */
.opswa-edu-shell{
    width:calc(100vw - 24px);
    max-width:none;
    margin:24px calc(50% - 50vw + 12px) 70px;
    padding:0;
    background:#fff;
}

.opswa-edu-layout{
    grid-template-columns:270px minmax(0,1fr);
}

/* Wider website management columns */
.opswa-edu-website-layout{
    grid-template-columns:minmax(390px, .9fr) minmax(620px, 1.8fr);
    gap:24px;
    align-items:start;
}

/* Keep directory course names readable */
.opswa-edu-website-course{
    min-width:0;
    padding:12px;
}

.opswa-edu-website-course > span:nth-child(2){
    min-width:0;
}

.opswa-edu-website-course strong{
    display:block;
    width:100%;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
    font-size:14px;
    line-height:1.35;
}

@media(max-width:1200px){
    .opswa-edu-website-layout{
        grid-template-columns:minmax(320px, .85fr) minmax(0, 1.5fr);
    }
}

@media(max-width:1050px){
    .opswa-edu-website-layout{
        grid-template-columns:1fr;
    }

    .opswa-edu-course-directory{
        position:static;
    }

    .opswa-edu-website-course-list{
        max-height:none;
    }
}

@media(max-width:850px){
    .opswa-edu-shell{
        width:calc(100% - 20px);
        margin:16px auto 50px;
    }

    .opswa-edu-layout{
        grid-template-columns:1fr;
    }
}
.opswa-edu-directory-tools > a,
.opswa-edu-website-top-actions .opswa-edu-button {
    background: #073763;
    color: #ffffff !important;
    border: 1px solid #073763;
    transition:
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease,
        transform .18s ease;
}

.opswa-edu-directory-tools > a:hover,
.opswa-edu-directory-tools > a:focus-visible,
.opswa-edu-website-top-actions .opswa-edu-button:hover,
.opswa-edu-website-top-actions .opswa-edu-button:focus-visible {
    background: #149da7;
    border-color: #149da7;
    color: #ffffff !important;
    transform: translateY(-1px);
}
.opswa-edu-course-copy {
    min-width: 0;
}

.opswa-edu-course-copy strong {
    display: block;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: normal;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
/* =========================================================
   PDC HEADER LOGO — LARGER AND MORE READABLE
   Keep this at the very end of pdc-shared.css.
   ========================================================= */

.pdc-custom-header-inner{
    min-height:110px;
    grid-template-columns:
        minmax(270px, 330px)
        auto
        minmax(0, 1fr)
        auto
        auto;
    column-gap:24px;
}

.pdc-brand{
    width:100%;
    min-width:270px;
    max-width:330px;
    height:100px;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.pdc-logo-frame{
    width:100%;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    overflow:hidden;
}

.pdc-logo-image{
    width:100% !important;
    height:auto !important;
    max-width:none !important;
    max-height:none !important;
    display:block;

    /*
     * The uploaded logo has transparent padding around the artwork.
     * Scaling it inside the clipped frame makes the lettering readable.
     */
    transform:scale(1.02);
    transform-origin:left center;

    object-fit:contain;
    object-position:left center;
}