/* Google Fonts are now enqueued directly from the plugin instead of @import to improve FCP & LCP */

/* Global box-sizing & image scaling reset */
.edupro-container *,
.edupro-lesson-wrapper *,
.edupro-single-hero * {
    box-sizing: border-box;
}

.edupro-course-thumb,
.edupro-yt-lite img,
video,
iframe {
    max-width: 100%;
    display: block;
}

:root {
    --ep-primary: #4F46E5;
    --ep-hover: #4338CA;
    --ep-dark: #06b6d4;
    --ep-darker: #020617;
    --ep-light: #F8FAFC;
    --ep-border: #E2E8F0;
    --ep-success: #10B981;
    --ep-text: #475569;
    --ep-text-light: #000408;
    --ep-radius: 16px;
    --ep-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
}

body.single-edupro_course, body.single-edupro_lesson {
    background-color: #f1f5f9;
    font-family: 'Inter', sans-serif;
    color: var(--ep-text);
    -webkit-font-smoothing: antialiased;
}

.edupro-container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Typography */
.edupro-h1, .edupro-h2, .edupro-h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--ep-dark);
    line-height: 1.2;
}

.edupro-h1 { font-size: 2.5rem; margin-bottom: 20px; }
.edupro-h2 { font-size: 1.75rem; margin-bottom: 15px; }

/* ============================================================
   LESSON AUDIO PLAYER
   Premium custom-styled audio player card.
   ============================================================ */
.ep-audio-player {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 20px 24px 18px;
    margin: 28px 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 1px 0 rgba(255,255,255,0.05) inset;
    color: #f1f5f9;
    position: relative;
    overflow: hidden;
}
/* Subtle glow accent when playing */
.ep-audio-player.ep-playing::before {
    content: '';
    position: absolute;
    top: -40px; left: 50%;
    transform: translateX(-50%);
    width: 260px; height: 80px;
    background: radial-gradient(ellipse, rgba(79,70,229,0.35) 0%, transparent 70%);
    pointer-events: none;
}

/* Header row */
.ep-audio-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.ep-audio-icon {
    width: 42px; height: 42px;
    background: rgba(79,70,229,0.25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: #818cf8;
    border: 1px solid rgba(79,70,229,0.4);
}
.ep-audio-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ep-audio-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600;
    font-size: 0.95rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ep-audio-sub {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Speed buttons */
.ep-audio-speed {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.ep-speed-btn {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: #94a3b8;
    border-radius: 6px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    font-family: 'Inter', sans-serif !important;
}
.ep-speed-btn:hover  { background: rgba(79,70,229,0.25); color: #a5b4fc; border-color: rgba(79,70,229,0.4); }
.ep-speed-btn.active { background: #4F46E5; color: #fff; border-color: #4F46E5; }

/* Controls row */
.ep-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Play/Pause button */
.ep-play-btn {
    width: 44px; height: 44px;
    background: #4F46E5;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(79,70,229,0.45);
}
.ep-play-btn:hover {
    background: #4338CA;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(79,70,229,0.6);
}
.ep-play-btn:active { transform: scale(0.96); }

/* Time display */
.ep-time {
    font-size: 0.78rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
    font-family: 'Inter', sans-serif !important;
}

/* Seek bar */
.ep-seek-wrap {
    flex: 1;
    padding: 10px 0;
    cursor: pointer;
}
.ep-seek-track {
    position: relative;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    cursor: pointer;
}
.ep-seek-fill {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, #818cf8, #4F46E5);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}
.ep-seek-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px; height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #4F46E5, 0 2px 8px rgba(0,0,0,0.3);
    cursor: grab;
    transition: left 0.1s linear, transform 0.15s;
}
.ep-seek-thumb:hover,
.ep-seek-thumb:active { transform: translate(-50%, -50%) scale(1.3); cursor: grabbing; }

/* Mute button */
.ep-mute-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 4px;
    display: flex; align-items: center;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.ep-mute-btn:hover { color: #a5b4fc; background: rgba(255,255,255,0.06); }

/* Volume slider */
.ep-vol-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    background: rgba(255,255,255,0.12);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    flex-shrink: 0;
}
.ep-vol-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #4F46E5;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: transform 0.15s;
}
.ep-vol-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }
.ep-vol-slider::-moz-range-thumb {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: #4F46E5;
    cursor: pointer;
    border: 2px solid #fff;
}

/* Mobile responsive */
@media (max-width: 540px) {
    .ep-audio-player { padding: 16px 14px 14px; }
    .ep-audio-title  { font-size: 0.85rem; }
    .ep-vol-slider   { width: 56px; }
    .ep-audio-speed  { gap: 3px; }
    .ep-speed-btn    { padding: 3px 7px; font-size: 11px; }
    .ep-play-btn     { width: 40px; height: 40px; }
}
@media (max-width: 380px) {
    /* Stack volume below seek bar on very small phones */
    .ep-audio-controls { flex-wrap: wrap; }
    .ep-vol-slider, .ep-mute-btn { order: 10; }
    .ep-seek-wrap { min-width: 0; }
}

/* ============================================================
   LESSON CONTENT STYLES
   Goal: Use website fonts (Inter/Outfit) but RESPECT all
   spacing, alignment, and formatting that comes from MS Word.

   RULE: font-family uses !important to override Word fonts.
   Everything else (margins, line-height, etc.) does NOT use
   !important, so Word's inline styles take priority.
   ============================================================ */
.edupro-lesson-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--ep-text);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* --- Font Override: ONLY font-family uses !important --- */
.edupro-lesson-content,
.edupro-lesson-content * {
    font-family: 'Inter', sans-serif !important;
}
.edupro-lesson-content h1,
.edupro-lesson-content h2,
.edupro-lesson-content h3,
.edupro-lesson-content h4,
.edupro-lesson-content h5,
.edupro-lesson-content h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    color: var(--ep-dark);
}

/* --- Sensible FALLBACK spacing (no !important — Word inline wins) --- */
.edupro-lesson-content p {
    margin-bottom: 0.85em;
    line-height: 1.85;
}
.edupro-lesson-content h1 { font-size: 2rem    !important; margin-top: 1.6em; margin-bottom: 0.5em; line-height: 1.25; }
.edupro-lesson-content h2 { font-size: 1.6rem  !important; margin-top: 1.4em; margin-bottom: 0.4em; line-height: 1.25; }
.edupro-lesson-content h3 { font-size: 1.3rem  !important; margin-top: 1.2em; margin-bottom: 0.4em; line-height: 1.3;  }
.edupro-lesson-content h4 { font-size: 1.1rem  !important; margin-top: 1.0em; margin-bottom: 0.3em; }
.edupro-lesson-content h5 { font-size: 1rem    !important; margin-top: 0.9em; margin-bottom: 0.3em; }
.edupro-lesson-content h6 { font-size: 0.95rem !important; margin-top: 0.8em; margin-bottom: 0.3em; }

/* Lists */
.edupro-lesson-content ul,
.edupro-lesson-content ol { padding-left: 1.7em; margin-bottom: 0.9em; margin-top: 0.4em; }
.edupro-lesson-content li { margin-bottom: 0.35em; line-height: 1.7; }

/* Inline formatting */
.edupro-lesson-content strong,
.edupro-lesson-content b { font-weight: 700; }
.edupro-lesson-content em,
.edupro-lesson-content i { font-style: italic; }
.edupro-lesson-content u { text-decoration: underline; }

/* Horizontal rules (divider lines from Word) */
.edupro-lesson-content hr {
    border: none;
    border-top: 2px solid #e2e8f0;
    margin: 1.8em 0;
}

/* Blockquotes */
.edupro-lesson-content blockquote {
    border-left: 4px solid var(--ep-primary);
    padding: 10px 18px;
    margin: 1.2em 0 1.2em 0;
    color: #475569;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* Tables — make responsive with horizontal scroll on mobile */
.edupro-lesson-content .ep-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.2em 0;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.edupro-lesson-content table {
    width: 100%;
    min-width: 400px;
    border-collapse: collapse;
    font-size: 0.92rem;
}
.edupro-lesson-content th {
    background: #f1f5f9;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    color: var(--ep-dark);
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}
.edupro-lesson-content td {
    padding: 9px 14px;
    border: 1px solid #cbd5e1;
    vertical-align: top;
    line-height: 1.6;
}
.edupro-lesson-content tr:nth-child(even) td { background: #f8fafc; }
.edupro-lesson-content tr:hover td { background: #f0f6ff; }

/* Images */
.edupro-lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.8em 0;
}

/* Code / Pre */
.edupro-lesson-content pre,
.edupro-lesson-content code {
    font-family: 'Courier New', Courier, monospace !important;
    background: #1e293b;
    color: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.edupro-lesson-content pre {
    padding: 16px 20px;
    overflow-x: auto;
    margin: 1em 0;
    line-height: 1.6;
}
.edupro-lesson-content pre code {
    background: none;
    padding: 0;
}

/* Buttons */
.edupro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--ep-primary);
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.edupro-btn:hover {
    background: var(--ep-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.4);
    color: #fff;
}

.edupro-btn-outline {
    background: transparent;
    border: 2px solid var(--ep-border);
    color: var(--ep-text);
    box-shadow: none;
}
.edupro-btn-outline:hover {
    background: var(--ep-light);
    color: var(--ep-dark);
    border-color: #cbd5e1;
}

/* Fast YouTube Loader (Lite Embed) */
.edupro-yt-lite {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background-color: #000;
    cursor: pointer;
    border-radius: var(--ep-radius);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}
.edupro-yt-lite:hover .edupro-yt-playbtn {
    background-color: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}
.edupro-yt-lite img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.edupro-yt-lite:hover img {
    opacity: 1;
}
.edupro-yt-playbtn {
    width: 70px;
    height: 48px;
    background-color: rgba(33,33,33,0.9);
    border-radius: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 10;
}
.edupro-yt-playbtn::before {
    content: '';
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
}

/* Timeline Chapters */
.edupro-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 25px;
}
.edupro-timeline-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    width: 100%;
}
.edupro-timeline-card:hover {
    background: #fff;
    border-color: var(--ep-primary);
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}
.edupro-chapter-hidden {
    display: none !important;
}
.edupro-timeline-icon {
    background: #e0e7ff;
    color: var(--ep-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.edupro-timeline-card:hover .edupro-timeline-icon {
    background: var(--ep-primary);
    color: #fff;
}
.edupro-timeline-content {
    flex: 1;
    min-width: 0;
}
.edupro-timeline-time {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--ep-primary);
    font-size: 0.85rem;
    margin-bottom: 4px;
    background: #eef2ff;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
}
.edupro-timeline-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ep-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Lesson Modern Layout */
.edupro-lesson-wrapper { background: #f1f5f9; min-height: 100vh; padding-top: 40px; padding-bottom: 60px; }
.edupro-lesson-header { max-width: 1400px; margin: 0 auto; padding: 0 20px 20px 20px; }

.edupro-lesson-layout {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}
.edupro-lesson-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: #fff;
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow);
    border: 1px solid rgba(255,255,255,0.8);
    overflow: hidden;
    position: sticky;
    top: 30px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
}
.edupro-sidebar-header {
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid var(--ep-border);
    z-index: 10;
}
.edupro-sidebar-list {
    overflow-y: auto;
    flex: 1;
}
.edupro-sidebar-list::-webkit-scrollbar { width: 5px; }
.edupro-sidebar-list::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 10px; }

.edupro-sidebar-item {
    display: block;
    padding: 18px 24px;
    border-bottom: 1px solid #f8fafc;
    color: var(--ep-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    position: relative;
}
.edupro-sidebar-item:hover {
    background: #f8fafc;
    color: var(--ep-primary);
}
.edupro-sidebar-item.active {
    background: #EEF2FF;
    color: var(--ep-primary);
    font-weight: 600;
}
.edupro-sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--ep-primary);
}

.edupro-lesson-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow);
    padding: 40px;
}

/* Sticky Topbar & Offcanvas Curriculum Edge-to-Edge */
.edupro-sticky-topbar {
    display: none;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 900;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--ep-border);
}
.edupro-btn-toggle-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--ep-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.edupro-btn-toggle-menu:hover { background: #f1f5f9; }
.edupro-topbar-title {
    font-weight: 600;
    color: var(--ep-text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.edupro-btn-close-menu {
    background: transparent; border: none; cursor: pointer; color: var(--ep-text-light); padding: 4px; border-radius: 6px; transition: all 0.2s;
}
.edupro-btn-close-menu:hover { background: #fee2e2; color: #ef4444; }
.edupro-sidebar-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(4px); z-index: 999; opacity: 0; transition: opacity 0.3s;
}

/* Collapsed State (Desktop) */
.edupro-collapsed .edupro-sticky-topbar { display: flex; }
.edupro-collapsed .edupro-lesson-sidebar {
    position: fixed; top: 0; left: -350px; height: 100vh; border-radius: 0; border: none; z-index: 1000; transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 20px 0 50px rgba(0,0,0,0.1);
}
.edupro-collapsed .edupro-lesson-layout { gap: 0; }
.edupro-collapsed .edupro-lesson-header { display: none; }
.edupro-collapsed.edupro-lesson-wrapper { padding-top: 0; }

/* Offcanvas Open State */
.edupro-offcanvas-open .edupro-lesson-sidebar { left: 0; }
.edupro-offcanvas-open .edupro-sidebar-overlay { display: block; opacity: 1; }

.edupro-lesson-sidebar { transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1); }

/* Force offcanvas approach unconditionally on mobile and tablet */
@media(max-width: 1024px) {
    .edupro-lesson-header { display: none; } 
    .edupro-lesson-wrapper { padding-top: 0; }
    .edupro-sticky-topbar { display: flex; }
    .edupro-lesson-layout { flex-direction: column; padding-top: 20px; }
    .edupro-lesson-sidebar {
        position: fixed; top: 0; left: -360px; height: 100vh; max-width: 85vw; border-radius: 0; border: none; z-index: 1000; box-shadow: 20px 0 50px rgba(0,0,0,0.1); width: 320px;
    }
}
@media(max-width: 768px) {
    .edupro-topbar-title { display: none; }
    /* Zero out ALL side padding so lesson fills the full mobile screen width */
    .edupro-lesson-wrapper {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .edupro-lesson-layout {
        padding: 0 !important;
        gap: 0 !important;
        margin: 0 !important;
    }
    .edupro-lesson-main {
        padding: 10px 0 !important;   /* zero side padding — content fills screen */
        margin: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border-top: 1px solid var(--ep-border) !important;
        width: 100% !important;
    }
    /* Inner content area: small top/bottom rhythm but NO sides */
    .edupro-lesson-content,
    #edupro-docx-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .edupro-h1 { font-size: 2rem; }
    .edupro-h2 { font-size: 1.5rem; }
}

/* =============================================================
   LESSON PAGES — OVERRIDE THEME WRAPPER PADDING
   GeneratePress and many WordPress themes wrap page content in
   .site-content / .inside-article / .entry-content which add
   their own side padding, causing gaps on lesson pages.
   This zeroes those out ONLY on edupro_lesson pages.
   ============================================================= */
body.single-edupro_lesson .site-content,
body.single-edupro_lesson .content-area,
body.single-edupro_lesson .inside-article,
body.single-edupro_lesson .entry-content,
body.single-edupro_lesson .post-content,
body.single-edupro_lesson .entry,
body.single-edupro_lesson article,
body.single-edupro_lesson #content,
body.single-edupro_lesson #primary {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
/* Keep the sticky topbar's own horizontal padding so its content stays neat */
body.single-edupro_lesson .edupro-sticky-topbar {
    padding-left: 14px !important;
    padding-right: 14px !important;
}
/* Add comfortable side padding back inside the lesson text content only */
@media (max-width: 768px) {
    body.single-edupro_lesson .edupro-lesson-content {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    /* Docx container: full bleed on mobile */
    body.single-edupro_lesson #edupro-docx-container {
        padding: 10px 8px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        box-shadow: none !important;
        width: 100% !important;
        margin: 0 !important;
    }
    body.single-edupro_lesson #edupro-docx-container > * {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-shadow: none !important;
    }
}

/* ==================================================
   Login Page
================================================== */

.edupro-login-wrapper,
.edupro-login-wrapper * {
    box-sizing: border-box;
}

.edupro-login-wrapper {
    width: 100%;
    min-height: 620px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 35px 18px;
    position: relative;
    overflow: hidden;
}

/* Main cyber panel */
.edupro-login-shell {
    width: 100%;
    max-width: 980px;
    min-height: 520px;
    background: linear-gradient(135deg, rgba(12, 20, 38, 0.96), rgba(5, 10, 22, 0.97));
    border: 1px solid rgba(0, 210, 255, 0.35);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.42);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    overflow: hidden;
    position: relative;
}

.edupro-login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(0, 217, 255, 0.16), transparent 28%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.14), transparent 30%),
        linear-gradient(90deg, rgba(0, 217, 255, 0.045) 1px, transparent 1px),
        linear-gradient(rgba(0, 217, 255, 0.035) 1px, transparent 1px);
    background-size: auto, auto, 45px 45px, 45px 45px;
    pointer-events: none;
}

/* Left content */
.edupro-login-brand {
    padding: 45px 50px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.edupro-login-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(0, 217, 255, 0.12);
    border: 1px solid rgba(0, 217, 255, 0.35);
    color: #67e8f9;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 18px;
}

.edupro-login-brand h1 {
    color: #ffffff;
    font-size: 34px;
    line-height: 1.12;
    margin: 0 0 16px;
    font-weight: 900;
    letter-spacing: -0.7px;
}

.edupro-login-brand h1 span {
    color: #22d3ee;
}

.edupro-login-brand p {
    color: #cbd5e1;
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 470px;
    margin: 0 0 26px;
}

.edupro-login-points {
    display: grid;
    gap: 12px;
}

.edupro-login-point {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 700;
}

.edupro-login-point span {
    width: 25px;
    height: 25px;
    border-radius: 7px;
    background: rgba(34, 211, 238, 0.14);
    border: 1px solid rgba(34, 211, 238, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-size: 14px;
    font-weight: 900;
}

/* Right card */
.edupro-login-card-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
}

.edupro-login-card {
    width: 100%;
    max-width: 355px;
    background: #ffffff;
    border-radius: 20px;
    padding: 30px 32px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.edupro-login-card-header {
    text-align: center;
    margin-bottom: 24px;
}

.edupro-login-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 14px;
    border-radius: 15px;
    background: linear-gradient(135deg, #06b6d4, #4f46e5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.32);
}

.edupro-login-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.edupro-login-card p {
    margin: 0;
    color: #475569;
    font-size: 13.5px;
    font-weight: 600;
}

/* Alert */
.edupro-alert {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
    padding: 11px 13px;
    border-radius: 11px;
    font-size: 13.5px;
    margin-bottom: 16px;
    font-weight: 700;
}

/* Form */
.edupro-form-group {
    margin-bottom: 16px;
}

.edupro-label {
    display: block;
    margin-bottom: 7px;
    color: #1e293b !important;
    font-size: 13.5px;
    font-weight: 800;
}

/* Main input fix */
.edupro-login-wrapper input.edupro-input,
.edupro-login-wrapper input.edupro-input[type="text"],
.edupro-login-wrapper input.edupro-input[type="email"],
.edupro-login-wrapper input.edupro-input[type="password"] {
    width: 100% !important;
    height: 48px !important;
    padding: 0 14px !important;
    border-radius: 11px !important;
    border: 1px solid #cbd5e1 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #06b6d4 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 48px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.25s ease !important;
}

/* Placeholder fix */
.edupro-login-wrapper input.edupro-input::placeholder {
    color: #64748b !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #64748b !important;
    font-weight: 600 !important;
}

.edupro-login-wrapper input.edupro-input::-webkit-input-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.edupro-login-wrapper input.edupro-input::-moz-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

.edupro-login-wrapper input.edupro-input:-ms-input-placeholder {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Focus fix */
.edupro-login-wrapper input.edupro-input:focus,
.edupro-login-wrapper input.edupro-input:active {
    border-color: #06b6d4 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16) !important;
}

/* Browser autofill fix */
.edupro-login-wrapper input.edupro-input:-webkit-autofill,
.edupro-login-wrapper input.edupro-input:-webkit-autofill:hover,
.edupro-login-wrapper input.edupro-input:-webkit-autofill:focus,
.edupro-login-wrapper input.edupro-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #0f172a !important;
    color: #0f172a !important;
    caret-color: #06b6d4 !important;
    border-color: #06b6d4 !important;
}

/* Forgot password */
.edupro-login-row {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0 20px;
}

.edupro-login-row a,
.edupro-login-row a:visited {
    color: #0891b2 !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none !important;
}

.edupro-login-row a:hover {
    color: #4f46e5 !important;
}

/* Button */
.edupro-btn {
    width: 100% !important;
    height: 50px !important;
    border: none !important;
    border-radius: 13px !important;
    background: linear-gradient(135deg, #06b6d4, #4f46e5) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14.5px !important;
    font-weight: 900 !important;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(79, 70, 229, 0.32) !important;
    transition: all 0.25s ease;
}

.edupro-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.38) !important;
}

/* ==================================================
   Bright Account Exists Notice - Login Page
================================================== */

.edupro-login-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #ecfeff, #f8fafc) !important;
    border: 1px solid rgba(6, 182, 212, 0.55) !important;
    border-left: 5px solid #06b6d4 !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    margin: 0 0 22px 0 !important;
    box-shadow:
        0 14px 30px rgba(6, 182, 212, 0.16),
        inset 0 0 0 1px rgba(255, 255, 255, 0.85) !important;
}

.edupro-login-notice-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 11px;
    background: linear-gradient(135deg, #06b6d4, #4f46e5) !important;
    border: none !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(6, 182, 212, 0.26);
}

.edupro-login-notice-icon i {
    color: #ffffff !important;
    font-size: 15px;
}

.edupro-login-notice strong {
    display: block;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    font-size: 14.5px;
    font-weight: 900;
    margin-bottom: 4px;
    line-height: 1.25;
}

.edupro-login-notice span {
    display: block;
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
}

/* Optional small login hint badge */
.edupro-login-notice .edupro-login-notice-action {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.10);
    color: #0891b2 !important;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.45px;
}


/* Mobile responsive */
@media (max-width: 900px) {
    .edupro-login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .edupro-login-brand {
        padding: 34px 28px 8px;
        text-align: center;
        align-items: center;
    }

    .edupro-login-brand h1 {
        font-size: 28px;
    }

    .edupro-login-brand p {
        font-size: 14px;
    }

    .edupro-login-points {
        display: none;
    }

    .edupro-login-card-wrap {
        padding: 22px;
    }
}

@media (max-width: 480px) {
    .edupro-login-wrapper {
        padding: 25px 12px;
        min-height: auto;
    }

    .edupro-login-shell {
        border-radius: 15px;
        min-height: auto;
    }

    .edupro-login-brand {
        padding: 28px 20px 5px;
    }

    .edupro-login-brand h1 {
        font-size: 25px;
    }

    .edupro-login-card-wrap {
        padding: 18px;
    }

    .edupro-login-card {
        padding: 26px 20px;
        border-radius: 17px;
    }

    .edupro-login-card h2 {
        font-size: 23px;
    }
}


.edupro-form-group {
    margin-bottom: 24px;
    text-align: left;
}
.edupro-label {
    display: block;
    font-weight: 600;
    color: var(--ep-dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.edupro-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--ep-border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: var(--ep-dark);
    background: #f8fafc;
    transition: all 0.2s;
    box-sizing: border-box;
    outline: none;
}
.edupro-input:focus {
    background: #ffffff;
    border-color: var(--ep-primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
.edupro-alert {
    padding: 15px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4F46E5 0%, #312e81 100%);
    border-left: 4px solid;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Dashboard & Course Grid UI */
.edupro-dashboard-header {
    background: linear-gradient(135deg, #4F46E5 0%, #312e81 100%);
    padding: 60px 40px;
    border-radius: 24px;
    color: #ffffff;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.3);
}
.edupro-dashboard-header .edupro-h1 {
    color: #ffffff;
    margin-bottom: 10px;
}
.edupro-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.edupro-course-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
}
.edupro-course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
}
.edupro-course-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}
.edupro-course-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.edupro-course-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ep-dark);
    line-height: 1.3;
}
.edupro-course-meta {
    font-size: 0.9rem;
    color: var(--ep-text-light);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}
.edupro-progress-container {
    background: #f1f5f9;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}
.edupro-progress-bar {
    background: var(--ep-primary);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}
.edupro-progress-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ep-primary);
    text-align: right;
    margin-bottom: 15px;
}
/* Mobile responsive styles are in edupro-mobile.css (enqueued separately) */
@media(max-width: 640px) {
    .edupro-h2, .edupro-alert { margin-left: 0; margin-right: 0; }
}


/* Single Course Enroll Page UI */
.edupro-single-hero {
    background: linear-gradient(135deg, #020617 0%, #1e1b4b 100%);
    padding: 80px 20px 100px 20px;
    margin-top: -20px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.edupro-single-hero .edupro-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.edupro-hero-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background-image: radial-gradient(circle at center, rgba(79, 70, 229, 0.15) 0%, transparent 70%);
    z-index: 1;
}
.edupro-hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.edupro-course-split {
    display: flex;
    gap: 40px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    align-items: flex-start;
}
.edupro-course-main-content {
    flex: 1;
    min-width: 0;
}
.edupro-content-block {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05);
    border: 1px solid #f1f5f9;
}
.edupro-course-sidebar {
    width: 380px;
    flex-shrink: 0;
    position: sticky;
    top: 40px;
}
.edupro-enroll-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.15);
    border: 1px solid #e2e8f0;
}
.edupro-price-display {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f1f5f9;
}
.edupro-price-display .edupro-currency {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ep-dark);
    margin-right: 5px;
}
.edupro-price-display .edupro-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--ep-dark);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}
.edupro-course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.edupro-course-features li {
    padding: 12px 0;
    color: var(--ep-text);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.edupro-curriculum-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
}
.edupro-lesson-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
    transition: background 0.2s;
}
.edupro-lesson-row:last-child {
    border-bottom: none;
}
.edupro-lesson-row:hover {
    background: #f8fafc;
}
.edupro-lesson-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.edupro-lesson-num {
    background: #e0e7ff;
    color: var(--ep-primary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
}
.edupro-demo-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

@media(max-width: 1024px) {
    .edupro-course-split { flex-direction: column; }
    .edupro-course-sidebar { width: 100%; position: static; margin-top: 30px; }
    .edupro-single-hero { padding: 60px 20px 80px 20px; display:flex; text-align: left; }
    .edupro-single-hero .edupro-container { align-items: flex-start; }
    .edupro-single-hero .edupro-h1 { font-size: 2.2rem; }
}
@media(max-width: 640px) {
    .edupro-content-block { padding: 20px 15px; border-radius: 16px; border: 1px solid var(--ep-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .edupro-enroll-card { padding: 20px 15px; border-radius: 16px; border: 1px solid var(--ep-border); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
    .edupro-lesson-row { padding: 12px; }
}

/* Pending Payment Notification Page - High-End Professional UI */
.edupro-pending-canvas {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f4ff 0%, #ffffff 50%, #f0f4ff 100%);
    position: relative;
    z-index: 10;
}

/* Subtle animated background element for premium feel */
.edupro-pending-canvas::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.05) 0px, transparent 50%);
    pointer-events: none;
}

.edupro-pending-card {
    background: #ffffff;
    padding: 60px 40px;
    border-radius: 28px;
    border: 1px solid #f1f5f9;
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.04), 
        0 4px 6px -2px rgba(0, 0, 0, 0.02),
        0 40px 80px -20px rgba(15, 23, 42, 0.1); /* Deep layered shadow */
    width: 100%;
    max-width: 620px;
    text-align: center;
    position: relative;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.edupro-pending-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 8px;
    background: linear-gradient(90deg, var(--ep-primary), #6366f1);
    border-radius: 28px 28px 0 0;
}

.edupro-pending-icon-wrap {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: #f8fafc;
    color: var(--ep-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 0 auto 28px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 4px 6px -1px rgba(79, 70, 229, 0.1);
}

.edupro-pending-card .edupro-h2 {
    font-size: 2.2rem;
    color: #1e293b;
    margin-bottom: 12px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.edupro-pending-card p {
    color: #475569;
    margin-bottom: 28px;
    line-height: 1.6;
    font-size: 1.05rem;
}

.edupro-pending-details-box {
    background: #fdfdfe;
    padding: 30px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    margin-bottom: 35px;
    text-align: left;
    color: #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.01);
}

.edupro-pending-details-box strong {
    color: var(--ep-primary);
    font-weight: 700;
}

.edupro-pending-details-header {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.edupro-pending-footer-text {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 30px;
    border-top: 1px solid #f1f5f9;
    padding-top: 25px;
}

@media (max-width: 768px) {
    .edupro-pending-canvas {
        padding: 40px 16px;
        min-height: 75vh;
    }
    .edupro-pending-card {
        padding: 40px 24px;
        border-radius: 24px;
    }
    .edupro-pending-card .edupro-h2 {
        font-size: 1.7rem;
    }
    .edupro-pending-details-box {
        padding: 24px 18px;
    }
}

/* ==========================================================
   Restore Rich Text Formatting (Google Docs / WP Editor)
   Fixes merged paragraphs, hidden bullets, and spacing
   ========================================================== */

/* 1. Restore Paragraph Spacing */
.edupro-content-block p,
.edupro-lesson-main p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* 2. Restore Bullet Points & Numbered Lists */
.edupro-content-block ul,
.edupro-lesson-main ul {
    list-style-type: disc !important;
    padding-left: 2.5em !important;
    margin-bottom: 1.5em;
}

.edupro-content-block ol,
.edupro-lesson-main ol {
    list-style-type: decimal !important;
    padding-left: 2.5em !important;
    margin-bottom: 1.5em;
}

.edupro-content-block li,
.edupro-lesson-main li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

/* Ensure our sidebar features list doesn't get bullets accidentally */
.edupro-course-features,
.edupro-course-features li {
    list-style: none !important;
    padding-left: 0 !important;
}

/* 3. Restore Heading Spacing & Sizes */
.edupro-content-block h1, .edupro-content-block h2, 
.edupro-content-block h3, .edupro-content-block h4,
.edupro-content-block h5, .edupro-content-block h6,
.edupro-lesson-main h1, .edupro-lesson-main h2, 
.edupro-lesson-main h3, .edupro-lesson-main h4,
.edupro-lesson-main h5, .edupro-lesson-main h6 {
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ep-darker);
}

.edupro-content-block h3, .edupro-lesson-main h3 { font-size: 1.5rem; }
.edupro-content-block h4, .edupro-lesson-main h4 { font-size: 1.25rem; }

/* 4. Ensure Bold and Links render properly */
.edupro-content-block strong,
.edupro-lesson-main strong,
.edupro-content-block b,
.edupro-lesson-main b {
    font-weight: 700;
    color: var(--ep-darker);
}

.edupro-content-block a,
.edupro-lesson-main a {
    color: var(--ep-primary);
    text-decoration: underline;
}

/* ==========================================================
   Advanced Student Dashboard (Dark Theme + Sidebar)
   ========================================================== */

.edupro-adv-dashboard {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 40px auto;
    background: #0B1121; /* Deep dark background matching catalog */
    border: 1px solid #1e293b;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    min-height: 75vh;
}

/* --- Sidebar --- */
.edupro-dash-sidebar {
    width: 280px;
    background: #0F172A;
    border-right: 1px solid #1e293b;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.edupro-user-widget {
    padding: 30px 24px;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 15px;
}

.edupro-avatar img {
    border-radius: 50%;
    border: 2px solid #4F46E5;
    width: 50px;
    height: 50px;
}

.edupro-user-info {
    display: flex;
    flex-direction: column;
}

.edupro-user-info .greeting {
    font-size: 0.85rem;
    color: #64748b;
}

.edupro-user-info .name {
    font-size: 1.05rem;
    color: #f8fafc;
    font-weight: 600;
}

.edupro-dash-nav {
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.edupro-dash-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.edupro-dash-nav a:hover, 
.edupro-dash-nav a.active {
    background: rgba(79, 70, 229, 0.1);
    color: #06b6d4; /* Cyan accent for active */
    border-left-color: #06b6d4;
}

.edupro-dash-nav a.logout-link {
    margin-top: auto;
    color: #ef4444;
}
.edupro-dash-nav a.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: #ef4444;
}

/* --- Main Content --- */
.edupro-dash-content {
    flex: 1;
    padding: 40px;
    min-width: 0;
}

.edupro-dash-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: #f8fafc;
    margin-top: 0;
    margin-bottom: 30px;
}

/* --- Stats Grid --- */
.edupro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.edupro-stat-card {
    background: #0F172A;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.edupro-stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edupro-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.edupro-stat-card .stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 4px;
}

.edupro-stat-card .stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

/* --- Welcome Banner (Purple) --- */
.edupro-welcome-banner {
    background: linear-gradient(135deg, #4F46E5 0%, #312e81 100%);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.4);
}

.edupro-welcome-banner h3 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin: 0 0 10px 0;
}

.edupro-welcome-banner p {
    color: #e0e7ff;
    margin: 0;
    font-size: 1.05rem;
    max-width: 500px;
    line-height: 1.5;
}

/* --- Dark Input Forms (Profile) --- */
.edupro-profile-card {
    background: #0F172A;
    border: 1px solid #1e293b;
    border-radius: 16px;
    padding: 30px;
}

.edupro-input.dark-input {
    background: #0B1121;
    border-color: #334155;
    color: #f8fafc;
}
.edupro-input.dark-input:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}
.edupro-label {
    color: #cbd5e1;
}

/* --- Order History Table --- */
.edupro-table-responsive {
    overflow-x: auto;
}
.edupro-dark-table {
    width: 100%;
    border-collapse: collapse;
    background: #0F172A;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #1e293b;
}
.edupro-dark-table th {
    background: #0B1121;
    color: #94a3b8;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid #1e293b;
}
.edupro-dark-table td {
    padding: 16px 20px;
    color: #cbd5e1;
    border-bottom: 1px solid #1e293b;
}
.edupro-dark-table tr:last-child td {
    border-bottom: none;
}

/* Keep the student dashboard's desktop layout independent of theme defaults. */
.edupro-adv-dashboard,
.edupro-adv-dashboard * {
    box-sizing: border-box;
}

.edupro-adv-dashboard .edupro-dash-nav svg {
    flex: 0 0 20px;
}

@media (max-width: 1100px) and (min-width: 769px) {
    .edupro-adv-dashboard {
        gap: 0;
        margin: 28px 20px;
    }

    .edupro-dash-sidebar {
        width: 240px;
    }

    .edupro-dash-content {
        padding: 30px;
    }

    .edupro-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ── EduPro Certificate and final course result ─────────────────── */
.edupro-certificate-shell{max-width:1160px;margin:36px auto;padding:18px}
.edupro-certificate-frame{background:linear-gradient(145deg,#0f172a,#111827);padding:14px;border-radius:24px;box-shadow:0 28px 80px rgba(2,6,23,.35)}
.edupro-certificate{position:relative;min-height:720px;padding:16px;text-align:center;background:#fff;color:#0f172a;border:0;border-radius:14px;overflow:hidden}
.edupro-certificate:before,.edupro-certificate:after{content:"";position:absolute;pointer-events:none}
.edupro-certificate:before{inset:16px;border:2px solid var(--cert-accent,#06b6d4);border-radius:10px;opacity:.9}
.edupro-certificate:after{inset:27px;border:1px solid #dbe4ef;border-radius:7px}
.edupro-cert-inner{position:relative;z-index:2;min-height:680px;padding:58px 72px 42px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;box-sizing:border-box}
.edupro-certificate.layout-modern{background:#fff;border:0;border-radius:14px}
.edupro-certificate.layout-modern:before{inset:16px;border:0;border-left:12px solid var(--cert-accent,#06b6d4);border-right:12px solid var(--cert-accent,#06b6d4);border-radius:0;opacity:1}
.edupro-certificate.layout-elegant{background:#fdfbf6}
.edupro-certificate.layout-elegant:before{inset:14px;border:2px solid #b08d57;border-radius:12px;opacity:1}
.edupro-certificate.layout-elegant:after{inset:23px;border:1px solid rgba(176,141,87,.45);border-radius:8px}
.edupro-cert-logo{max-width:105px;max-height:68px;width:auto;height:auto;object-fit:contain;margin:0 auto 10px}
.edupro-cert-seal{width:58px;height:58px;border:2px solid var(--cert-accent,#06b6d4);border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--cert-accent,#06b6d4);font-size:28px;font-weight:800;margin:0 auto 10px;background:#fff}
.edupro-cert-kicker{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:#64748b;font-weight:800;margin-top:2px}
.edupro-cert-title{font-family:'Outfit',sans-serif;font-size:42px;font-weight:800;line-height:1.08;color:var(--cert-accent,#06b6d4);margin:10px 0 8px}
.edupro-cert-subtitle{font-size:16px;color:#64748b;margin-bottom:18px}
.edupro-cert-name{font-family:'Outfit',sans-serif;font-size:40px;font-weight:800;color:#0f172a;margin:12px 0 6px}
.edupro-cert-line{width:290px;max-width:70%;height:2px;background:var(--cert-accent,#06b6d4);margin:0 auto 18px}
.edupro-cert-body{font-size:16px;color:#475569}
.edupro-cert-course{font-family:'Outfit',sans-serif;font-size:27px;font-weight:800;color:#0f172a;margin:12px auto 10px;max-width:900px}
.edupro-cert-grade{display:inline-flex;align-items:center;gap:12px;margin:13px 0 17px;padding:10px 18px;border:1px solid #cbd5e1;border-radius:999px;background:#f8fafc;color:#334155!important;font-size:16px;font-weight:700}
.edupro-cert-grade span{color:#475569!important}
.edupro-cert-grade strong{color:#0e7490!important;-webkit-text-fill-color:#0e7490!important;font-size:24px;font-weight:800!important;opacity:1!important}
.edupro-cert-meta{display:flex;justify-content:center;gap:42px;flex-wrap:wrap;font-size:12px;color:#475569;margin:2px 0 28px}
.edupro-cert-meta span{display:flex;flex-direction:column;gap:3px}
.edupro-cert-meta b{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#94a3b8}
.edupro-cert-bottom{width:100%;display:flex;align-items:flex-end;justify-content:space-between;gap:30px;margin-top:auto;padding-top:16px}
.edupro-cert-signature{min-width:230px;text-align:center;color:#0f172a!important}
.edupro-cert-signature img{display:block;max-width:170px;max-height:55px;object-fit:contain;margin:0 auto 4px}
.edupro-cert-sign-line{height:1px;background:#64748b;margin:4px auto 7px;width:210px;max-width:100%}
.edupro-cert-signature strong{display:block;color:#0f172a!important;font-weight:800!important;font-size:14px}
.edupro-cert-signature span{display:block;color:#64748b!important;font-size:11px;margin-top:3px}
.edupro-cert-verification{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:4px;color:#0f172a!important}
.edupro-cert-verification span{font-size:11px;text-transform:uppercase;letter-spacing:.1em;font-weight:800;color:var(--cert-accent,#06b6d4)!important}
.edupro-cert-verification small{font-size:11px;color:#64748b!important}
.edupro-cert-actions{display:flex;justify-content:center;margin-top:18px}
.edupro-cert-download{min-width:280px;margin:0;text-align:center;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.edupro-cert-download:hover{text-decoration:none!important;transform:translateY(-1px)}
.edupro-quiz-feedback{display:grid;gap:12px;margin:0 auto 28px;width:100%;max-width:900px;text-align:left}
.edupro-quiz-feedback-item{padding:15px 17px;border:1px solid #cbd5e1;border-left:4px solid #64748b;border-radius:12px;background:#f8fafc}
.edupro-quiz-feedback-item.is-correct{border-left-color:#10b981;background:#f0fdf4}
.edupro-quiz-feedback-item.is-wrong{border-left-color:#f59e0b;background:#fffbeb}
.edupro-quiz-feedback-title{font-weight:800;color:#0f172a;margin-bottom:5px}
.edupro-quiz-feedback-text,.edupro-quiz-answer,.edupro-quiz-explanation{color:#334155;line-height:1.55}
.edupro-quiz-answer{margin-bottom:7px}
.edupro-quiz-explanation{padding-top:8px;border-top:1px dashed #cbd5e1}
.edupro-quiz-explanation strong,.edupro-quiz-answer strong{color:#0f172a}
.edupro-quiz-explanation.is-missing{color:#64748b;font-style:italic}
.edupro-course-final-card,.edupro-course-result-card{padding:26px;border:1px solid #334155;border-radius:18px;background:linear-gradient(135deg,#0f172a,#111827);text-align:center;color:#e2e8f0}
.edupro-course-final-card h3,.edupro-course-result-card .result-heading{font-family:'Outfit',sans-serif;font-size:1.5rem;margin:0 0 10px;color:#f8fafc}.edupro-course-final-card p,.result-note{color:#94a3b8;margin:0 0 18px}
.edupro-course-result-card.passed{border-color:#10b981;background:linear-gradient(135deg,#052e2b,#0f172a)}.edupro-course-result-card.failed{border-color:#92400e}
.result-icon{font-size:2.5rem;margin-bottom:6px}.result-grade{font-size:1.2rem;margin:12px 0}.result-grade strong{font-size:1.8rem;color:#22d3ee}.edupro-finish-course-message{margin-top:12px;color:#fbbf24;font-weight:600}

/* Certificate-only printing: remove the WordPress theme/header/footer from the print canvas. */
@page{size:A4 landscape;margin:0}
@media print{
  html,body{background:#fff!important;margin:0!important;padding:0!important;width:100%!important;min-height:0!important}
  body *{visibility:hidden!important}
  .edupro-certificate-shell,.edupro-certificate-shell *{visibility:visible!important}
  .edupro-certificate-shell{position:fixed!important;inset:0!important;width:100vw!important;height:100vh!important;max-width:none!important;margin:0!important;padding:0!important;background:#fff!important;display:block!important}
  .edupro-certificate-frame{position:absolute!important;inset:0!important;margin:0!important;padding:0!important;background:#fff!important;border-radius:0!important;box-shadow:none!important}
  .edupro-certificate{position:absolute!important;left:3.5mm!important;top:3.5mm!important;width:290mm!important;height:203mm!important;min-height:0!important;max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:12px!important;border-radius:0!important;box-shadow:none!important;page-break-inside:avoid!important;break-inside:avoid!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .edupro-cert-inner{min-height:0!important;height:100%!important;padding:23mm 22mm 13mm!important;box-sizing:border-box!important}
  .edupro-cert-actions{display:none!important}
  .edupro-cert-title{font-size:34pt!important}
  .edupro-cert-name{font-size:30pt!important}
  .edupro-cert-course{font-size:19pt!important}
  .edupro-cert-grade{font-size:12pt!important;padding:7px 14px!important}
  .edupro-cert-grade strong{font-size:18pt!important}
  .edupro-cert-logo{max-width:80px!important;max-height:52px!important}
  .edupro-cert-seal{width:46px!important;height:46px!important;font-size:21px!important}
  .edupro-cert-bottom{margin-top:auto!important}
}
@media (max-width:700px){
  .edupro-certificate-shell{padding:10px}.edupro-certificate{min-height:620px}.edupro-cert-inner{padding:48px 28px 34px;min-height:580px}.edupro-cert-title{font-size:30px}.edupro-cert-name{font-size:32px}.edupro-cert-course{font-size:22px}.edupro-cert-meta{gap:12px}.edupro-cert-bottom{flex-direction:column;align-items:center}.edupro-cert-verification{align-items:center;text-align:center}.edupro-course-result-card,.edupro-course-final-card{padding:20px}
}


/* Certificate PDF download button */
.edupro-cert-download[aria-busy="true"] { opacity: .72; cursor: progress !important; }
