/* ==========================================================================
   LearnDash Custom Lesson Page — style.css  (Glassmorphism Edition)
   ========================================================================== */

/* ── Reset ───────────────────────────────────────────────────────────────── */
.ldclp-page *,
.ldclp-page *::before,
.ldclp-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   PAGE BACKGROUND — soft gradient + floating blobs
   ========================================================================== */
.ldclp-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a2233;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #ffffff;
    background-image:
        /* Top-left blue */
        radial-gradient(ellipse 700px 500px at 5%   0%,   rgba(56,130,246,.22) 0%, transparent 65%),
        /* Top-right cyan */
        radial-gradient(ellipse 550px 450px at 95%  2%,   rgba(6,182,212,.18)  0%, transparent 60%),
        /* Center-right purple */
        radial-gradient(ellipse 500px 500px at 100% 55%,  rgba(109,40,217,.14) 0%, transparent 60%);
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
}

/* Hide default theme wrappers */
.ldclp-page #page,
.ldclp-page #content,
.ldclp-page .site-content,
.ldclp-page .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    max-width: none !important;
    box-shadow: none !important;
}

/* ── Glass mixin (applied via class) ─────────────────────────────────────── */
/* All "glass" surfaces share these properties */
.ldclp-glass {
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,.65);
}

/* ==========================================================================
   SITE HEADER
   ========================================================================== */
.ldclp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.30);
    box-shadow: 0 1px 24px rgba(30,64,175,.08);
}

.ldclp-header-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
}

/* Site logo / name */
.ldclp-site-logo {
    display: none;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

img.custom-logo {
    width: auto;
    height: 43px;
}

.ldclp-site-logo img { max-height: 43px; width: auto; display: block; }

.ldclp-site-name {
    font-size: 18px;
    font-weight: 800;
    color: #1a2233;
    letter-spacing: -.02em;
}

/* Primary nav */
.ldclp-header-nav { flex: 1; }

.ldclp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.ldclp-nav-list li a {
    display: block;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    border-radius: 50px;
    transition: background .15s, color .15s;
}

.ldclp-nav-list li a:hover {
    background: rgba(255,255,255,.20);
    color: #1a2233;
}

/* User area */
.ldclp-header-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ldclp-user-name {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.ldclp-header-btn {
    display: inline-block;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.40);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2233;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .15s, color .15s;
}

.ldclp-header-btn:hover {
    background: rgba(255,255,255,.28);
    color: #3b82f6;
}

/* ==========================================================================
   SITE FOOTER
   ========================================================================== */
.ldclp-footer {
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255,255,255,.25);
    padding: 22px 20px;
    margin-top: 0;
}

.ldclp-footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ldclp-footer-copy {
    font-size: 13px;
    color: #6b7280;
}

.ldclp-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ldclp-footer-links a {
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}

.ldclp-footer-links a:hover { color: #3b82f6; }

/* ── Outer wrapper ───────────────────────────────────────────────────────── */
.ldclp-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 20px 60px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   BACK TO COURSE BAR
   ========================================================================== */
.ldclp-back-bar {
    max-width: 1140px;
    margin: 0 auto 14px;
    padding: 0 20px;
}

.ldclp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 50px;
    padding: 8px 20px 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a2233;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(30,64,175,.10), inset 0 1px 0 rgba(255,255,255,.60);
    transition: background .15s, box-shadow .15s, color .15s;
}

.ldclp-back-btn:hover {
    background: rgba(255,255,255,.40);
    color: #3b82f6;
    box-shadow: 0 4px 16px rgba(30,64,175,.14);
}

.ldclp-back-btn svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
}

.ldclp-back-course-title {
    color: #6b7280;
    font-weight: 400;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */
.ldclp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

/* ── Breadcrumb pill ─────────────────────────────────────────────────────── */
.ldclp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    /* Glass */
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    color: #6b7280;
    box-shadow: 0 2px 12px rgba(99,130,190,.08), inset 0 1px 0 rgba(255,255,255,.40);
    text-decoration: none;
}

.ldclp-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .15s;
}

.ldclp-breadcrumb a:hover { color: #3b82f6; }

.ldclp-sep { color: #c0cce0; font-size: 9px; }

.ldclp-crumb-current { color: #1a2233; font-weight: 600; }

/* ── Meta pills ──────────────────────────────────────────────────────────── */
.ldclp-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ldclp-pill {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 12px rgba(99,130,190,.10);
    white-space: nowrap;
}

.ldclp-pill span { color: #9ca3af; margin-right: 3px; }

/* Quiz type badge */
.ldclp-pill--type {
    background: linear-gradient(135deg, rgba(219,234,254,.80), rgba(237,233,254,.80));
    border-color: rgba(191,219,254,.70);
    color: #3730a3;
    font-weight: 600;
}

/* ==========================================================================
   TWO-COLUMN GRID
   ========================================================================== */
.ldclp-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 920px) {
    .ldclp-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   VIDEO CARD
   ========================================================================== */
.ldclp-video-card {
    border-radius: 22px;
    overflow: hidden;
    background: #0f172a;
    box-shadow:
        0 8px 32px rgba(99,102,241,.18),
        0 2px 8px  rgba(0,0,0,.10);
    /* Thin glass border on top */
    border: 1px solid rgba(255,255,255,.18);
}

.ldclp-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg,
        #7dd3fc  0%,
        #38bdf8 25%,
        #0ea5e9 45%,
        #6366f1 70%,
        #c4b5fd 100%);
}

.ldclp-video-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 28% 38%, rgba(255,255,255,.18) 0%, transparent 55%),
        radial-gradient(ellipse at 72% 68%, rgba(99,102,241,.28) 0%, transparent 50%);
}

.ldclp-video-frame video,
.ldclp-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

/* Play button placeholder */
.ldclp-play-btn {
    position: relative;
    z-index: 2;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    border: 2px solid rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .2s, background .2s;
    box-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.ldclp-play-btn:hover {
    transform: scale(1.08);
    background: rgba(255,255,255,.32);
}

.ldclp-play-btn svg { width: 34px; height: 34px; fill: #fff; margin-left: 5px; }

/* Caption badge — glass */
.ldclp-caption {
    position: absolute;
    bottom: 52px;
    right: 18px;
    z-index: 5;
    background: rgba(15,23,42,.52);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 8px;
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,.15);
    pointer-events: none;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Controls bar */
.ldclp-controls {
    background: rgba(15,23,42,.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255,255,255,.07);
}

.ldclp-controls button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .72;
    transition: opacity .15s;
    flex-shrink: 0;
}

.ldclp-controls button:hover { opacity: 1; }
.ldclp-controls button svg { width: 20px; height: 20px; fill: #fff; }

/* Seek bar */
.ldclp-seekbar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,.18);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    outline: none;
}

.ldclp-seekbar:focus-visible {
    box-shadow: 0 0 0 3px rgba(99,102,241,.45);
}

.ldclp-seekbar-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #818cf8);
    border-radius: 2px;
    width: 0%;
    position: relative;
    pointer-events: none;
    transition: width .1s linear;
}

.ldclp-seekbar-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}

/* ==========================================================================
   TABS — glass card
   ========================================================================== */
.ldclp-tabs-wrap {
    margin-top: 16px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(30,64,175,.12),
        0 1px 4px  rgba(0,0,0,.08),
        inset 0 1px 0 rgba(255,255,255,.70);
    /* NOTE: no overflow:hidden — it blocks backdrop-filter on children */
}

.ldclp-tabs-nav {
    display: flex;
    border-bottom: 1px solid rgba(200,215,235,.25);
    overflow-x: auto;
    scrollbar-width: none;
    background: rgba(255,255,255,.07);
    border-radius: 20px 20px 0 0;
    padding: 15px;
    gap: 15px;
}

.ldclp-tabs-nav::-webkit-scrollbar { display: none; }

.ldclp-tab {
    padding: 14px 26px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.28);
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, background .2s, border-color .2s, box-shadow .2s;
    border-radius: 50px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ldclp-tab:hover {
    color: #1a2233;
    background: rgba(255,255,255,.38);
    border-color: rgba(255,255,255,.70);
    box-shadow: 0 2px 12px rgba(99,130,190,.14);
}

.ldclp-tab.active,
.ldclp-tab[aria-selected="true"] {
    color: #fff;
    background: linear-gradient(135deg, rgba(59,130,246,.85), rgba(99,102,241,.85));
    border-color: rgba(99,102,241,.50);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(59,130,246,.30), inset 0 1px 0 rgba(255,255,255,.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.ldclp-tab-pane { display: none; padding: 28px; }
.ldclp-tab-pane.active { display: block; }

.ldclp-tab-pane h2 {
    font-size: 18px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 14px;
}

.ldclp-tab-pane p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.75;
    margin: 0 0 10px;
}

.ldclp-lesson-content { font-size: 14px; color: #4b5563; line-height: 1.75; }
.ldclp-lesson-content p { margin: 0 0 12px; }
.ldclp-lesson-content ul,
.ldclp-lesson-content ol { margin: 0 0 12px 20px; }
.ldclp-lesson-content h3 { font-size: 15px; font-weight: 700; margin: 20px 0 8px; }

/* Takeaways */
.ldclp-takeaways { margin-top: 22px; }
.ldclp-takeaways strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a2233;
    margin-bottom: 10px;
}
.ldclp-takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ldclp-takeaways li {
    font-size: 13px;
    color: #4b5563;
    padding-left: 18px;
    position: relative;
    line-height: 1.6;
}
.ldclp-takeaways li::before { content: '•'; position: absolute; left: 5px; color: #3b82f6; }

.ldclp-transcript { font-size: 14px; color: #4b5563; line-height: 1.8; }

/* Notes */
.ldclp-notes-area {
    width: 100%;
    min-height: 160px;
    border: 1px solid rgba(200,215,235,.60);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    font-family: inherit;
    color: #1a2233;
    resize: vertical;
    outline: none;
    background: rgba(255,255,255,.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color .15s, box-shadow .15s;
}

.ldclp-notes-area:focus {
    border-color: rgba(147,197,253,.80);
    box-shadow: 0 0 0 3px rgba(59,130,246,.10);
}

.ldclp-notes-footer { display: flex; align-items: center; gap: 14px; margin-top: 12px; }

.ldclp-btn-save {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(59,130,246,.30);
    transition: box-shadow .15s, transform .15s;
}
.ldclp-btn-save:hover { box-shadow: 0 6px 20px rgba(59,130,246,.45); transform: translateY(-1px); }

.ldclp-notes-status { font-size: 13px; color: #22c55e; font-weight: 500; opacity: 0; transition: opacity .3s; }
.ldclp-notes-status.visible { opacity: 1; }

.ldclp-empty { font-size: 14px; color: #9ca3af; font-style: italic; }
.ldclp-empty a { color: #3b82f6; text-decoration: none; }
.ldclp-empty a:hover { text-decoration: underline; }

/* ==========================================================================
   SIDEBAR CARDS — glassmorphism
   ========================================================================== */
.ldclp-sidebar { display: flex; flex-direction: column; gap: 16px; }

/* Base glass card */
.ldclp-card {
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 22px;
    padding: 22px 24px;
    box-shadow:
        0 8px 32px rgba(30,64,175,.08),
        0 1px 4px  rgba(0,0,0,.05),
        inset 0 1px 0 rgba(255,255,255,.50);
    transition: box-shadow .2s;
}

.ldclp-card:hover {
    box-shadow:
        0 12px 40px rgba(30,64,175,.12),
        0 2px 8px  rgba(0,0,0,.07),
        inset 0 1px 0 rgba(255,255,255,.55);
}

.ldclp-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a2233;
    margin: 0 0 16px;
}

/* ── Progress ring card ──────────────────────────────────────────────────── */
.ldclp-card--progress {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(219,234,254,.15);
    border-color: rgba(147,197,253,.35);
}

.ldclp-ring-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}

.ldclp-ring-wrap svg { transform: rotate(-90deg); width: 100%; height: 100%; display: block; }

.ldclp-ring-track { fill: none; stroke: rgba(147,197,253,.30); stroke-width: 10; }

.ldclp-ring-fill {
    fill: none;
    stroke: url(#ldclpRingGrad);
    stroke-width: 10;
    stroke-linecap: round;
    transition: stroke-dashoffset .7s ease;
    filter: drop-shadow(0 0 6px rgba(56,189,248,.45));
}

.ldclp-ring-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #1a2233;
}

.ldclp-progress-info h3 { font-size: 14px; font-weight: 700; color: #1a2233; margin: 0 0 6px; line-height: 1.4; }
.ldclp-steps   { font-size: 12px; color: #6b7280; margin: 0 0 4px; }
.ldclp-milestone { font-size: 12px; color: #6b7280; margin: 0; }

/* ── Lesson Checklist ────────────────────────────────────────────────────── */
.ldclp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

.ldclp-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.ldclp-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 2px solid rgba(147,197,253,.60);
    background: rgba(255,255,255,.50);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, box-shadow .2s;
}

.ldclp-checkbox--done {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(99,102,241,.30);
}

.ldclp-checkbox svg { display: none; width: 11px; height: 11px; }
.ldclp-checkbox--done svg { display: block; }
.ldclp-checkbox svg path {
    fill: none;
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Downloads ───────────────────────────────────────────────────────────── */
.ldclp-downloads { display: flex; gap: 10px; flex-wrap: wrap; }

.ldclp-dl-item {
    flex: 1;
    min-width: 68px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #374151;
    background: rgba(255,255,255,.20);
    border: 1px solid rgba(255,255,255,.50);
    border-radius: 14px;
    padding: 14px 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}

.ldclp-dl-item:hover {
    background: rgba(239,246,255,.80);
    border-color: rgba(147,197,253,.60);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99,130,190,.14);
}

.ldclp-dl-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.80);
    border: 1px solid rgba(255,255,255,.90);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.ldclp-dl-icon svg { width: 20px; height: 20px; }
.ldclp-dl-label { font-size: 12px; font-weight: 600; text-align: center; color: #374151; }
.ldclp-dl-sub   { font-size: 11px; color: #9ca3af; }

.ldclp-empty-sm { font-size: 13px; color: #9ca3af; font-style: italic; margin: 0; }

/* ── Next Up card ────────────────────────────────────────────────────────── */
.ldclp-next-inner { display: flex; gap: 14px; align-items: center; }

.ldclp-next-thumb {
    width: 82px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.ldclp-next-thumb--placeholder {
    background: linear-gradient(135deg, #7dd3fc, #6366f1);
}

.ldclp-next-info p {
    font-size: 13px;
    font-weight: 600;
    color: #1a2233;
    margin: 0 0 10px;
    line-height: 1.4;
}

.ldclp-btn-start {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: 0 4px 14px rgba(59,130,246,.30);
    transition: box-shadow .15s, transform .15s;
}

.ldclp-btn-start:hover {
    color: #fff;
    box-shadow: 0 6px 20px rgba(59,130,246,.45);
    transform: translateY(-1px);
}

/* ==========================================================================
   QUIZ PAGE
   ========================================================================== */
.ldclp-type-sfwd-quiz .ldclp-quiz-wrap {
    background: rgba(255,255,255,.28);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(99,130,190,.10);
}

.ldclp-type-sfwd-quiz .ldclp-quiz-wrap h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a2233;
}

.ldclp-quiz-wrap .wpProQuiz_content,
.ldclp-quiz-content { font-size: 14px; color: #374151; line-height: 1.7; }

/* ==========================================================================
   MARK COMPLETE + STEP NAVIGATION (action bar)
   ========================================================================== */
.ldclp-action-bar {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* ── Mark complete wrapper — inherits LearnDash styles, overrides look ── */
.ldclp-complete-wrap {
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 18px;
    padding: 18px 24px;
    box-shadow: 0 4px 24px rgba(30,64,175,.10), inset 0 1px 0 rgba(255,255,255,.65);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* Override LearnDash's native complete button inside our wrapper */
.ldclp-complete-wrap input[type="submit"],
.ldclp-complete-wrap .learndash_mark_complete_button,
.ldclp-complete-wrap .ld-button,
.ldclp-complete-wrap button[name="completed"] {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(34,197,94,.35) !important;
    transition: box-shadow .15s, transform .15s !important;
}

.ldclp-complete-wrap input[type="submit"]:hover,
.ldclp-complete-wrap .learndash_mark_complete_button:hover,
.ldclp-complete-wrap .ld-button:hover,
.ldclp-complete-wrap button[name="completed"]:hover {
    box-shadow: 0 6px 22px rgba(34,197,94,.45) !important;
    transform: translateY(-1px) !important;
}

/* Manual complete button (PHP fallback) */
.ldclp-complete-btn {
    background: linear-gradient(135deg, rgba(34,197,94,.85), rgba(22,163,74,.85)) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.30) !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 16px rgba(34,197,94,.35), inset 0 1px 0 rgba(255,255,255,.25) !important;
    transition: box-shadow .15s, transform .15s !important;
}
.ldclp-complete-btn:hover {
    box-shadow: 0 6px 22px rgba(34,197,94,.50), inset 0 1px 0 rgba(255,255,255,.30) !important;
    transform: translateY(-1px) !important;
}

/* "Already completed" badge */
.ldclp-done-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,.18);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,.35);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 700;
}

/* ── Previous / Next step navigation ────────────────────────────────── */
.ldclp-step-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ldclp-nav-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border: 1px solid rgba(255,255,255,.70);
    border-radius: 18px;
    padding: 14px 20px;
    box-shadow: 0 4px 20px rgba(30,64,175,.10), inset 0 1px 0 rgba(255,255,255,.65);
    transition: background .15s, box-shadow .15s, transform .15s;
    color: #1a2233;
    font-size: 13px;
    line-height: 1.4;
    overflow: hidden;
}

.ldclp-nav-btn:hover {
    background: rgba(255,255,255,.38);
    box-shadow: 0 6px 24px rgba(30,64,175,.16);
    transform: translateY(-1px);
    color: #3b82f6;
}

.ldclp-nav-btn svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    opacity: .6;
}

.ldclp-nav-btn:hover svg { opacity: 1; }

.ldclp-nav-btn span {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ldclp-nav-btn small {
    font-size: 11px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}

.ldclp-nav-next {
    text-align: right;
    justify-content: flex-end;
}

.ldclp-nav-next span { align-items: flex-end; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
    .ldclp-wrap { padding: 16px 14px 56px; }
    .ldclp-topbar { flex-direction: column; align-items: flex-start; }
    .ldclp-card--progress { flex-direction: column; text-align: center; }
    .ldclp-next-inner { flex-direction: column; align-items: flex-start; }
    .ldclp-next-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .ldclp-caption { max-width: 80%; bottom: 44px; }
    .ldclp-step-nav { flex-direction: column; }
    .ldclp-nav-btn { text-align: left; }
    .ldclp-nav-next { text-align: left; justify-content: flex-start; }
    .ldclp-nav-next span { align-items: flex-start; }
    .ldclp-back-course-title { display: none; }
    .ldclp-header-inner { height: 56px; gap: 12px; }
    .ldclp-user-name { display: none; }
    .ldclp-footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .ldclp-footer-links { justify-content: center; }
}
