/* ============================================
   VERED COURSES — 23rd Century Student Panel
   Glassmorphism + Neon Accents + Fluid Motion
   RTL-First via logical properties
   ============================================ */

:root {
    --wdc-primary: #644184;
    --wdc-primary-light: #9261C1;
    --wdc-primary-dark: #4A2F63;
    --wdc-accent: #19C149;
    --wdc-accent-2: #9261C1;
    --wdc-success: #19C149;
    --wdc-success-glow: rgba(25, 193, 73, 0.3);
    --wdc-warning: #F9B712;
    --wdc-surface: rgba(255, 255, 255, 0.06);
    --wdc-surface-hover: rgba(255, 255, 255, 0.1);
    --wdc-glass: rgba(255, 255, 255, 0.08);
    --wdc-glass-border: rgba(255, 255, 255, 0.12);
    --wdc-glass-light: rgba(255, 255, 255, 0.85);
    --wdc-glass-light-border: rgba(255, 255, 255, 0.4);
    --wdc-dark-bg: #0F0E17;
    --wdc-dark-surface: #1A1A2E;
    --wdc-dark-card: #16213E;
    --wdc-text-primary: #FFFFFE;
    --wdc-text-secondary: rgba(255, 255, 255, 0.6);
    --wdc-text-dark: #282827;
    --wdc-text-muted: #848383;
    --wdc-radius: 16px;
    --wdc-radius-sm: 10px;
    --wdc-radius-xs: 6px;
    --wdc-shadow-glow: 0 0 30px rgba(100, 65, 132, 0.15);
    --wdc-shadow-card: 0 8px 32px rgba(0, 0, 0, 0.12);
    --wdc-shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.2);
    --wdc-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wdc-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --wdc-font: 'Rubik', sans-serif;
}

/* ===== ANIMATIONS ===== */

@keyframes wdc-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes wdc-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes wdc-scale-in {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes wdc-slide-right {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes wdc-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes wdc-pulse-glow {
    0%, 100% { box-shadow: 0 0 8px var(--wdc-success-glow); }
    50%      { box-shadow: 0 0 20px var(--wdc-success-glow), 0 0 40px rgba(25, 193, 73, 0.15); }
}

@keyframes wdc-progress-stripe {
    0%   { background-position: 0 0; }
    100% { background-position: 40px 0; }
}

@keyframes wdc-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

@keyframes wdc-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wdc-checkmark {
    0%   { stroke-dashoffset: 24; }
    100% { stroke-dashoffset: 0; }
}

@keyframes wdc-confetti {
    0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-50px) rotate(360deg); opacity: 0; }
}

/* ===== PROGRESS BAR ===== */

.wdc-progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(100, 65, 132, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.wdc-progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 1px solid rgba(100, 65, 132, 0.15);
    pointer-events: none;
}

.wdc-progress-bar-small {
    height: 6px;
}

.wdc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--wdc-primary), var(--wdc-accent), var(--wdc-primary));
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    animation: wdc-gradient-shift 3s ease infinite;
    position: relative;
}

.wdc-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 25%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 75%
    );
    background-size: 200% 100%;
    animation: wdc-shimmer 2s linear infinite;
}

.wdc-progress-text {
    font-size: 13px;
    color: var(--wdc-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== BUTTONS ===== */

.wdc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--wdc-radius-sm);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all var(--wdc-transition);
    position: relative;
    overflow: hidden;
    font-family: var(--wdc-font);
    letter-spacing: 0.3px;
}

.wdc-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--wdc-transition);
}

.wdc-btn:hover::before {
    opacity: 1;
}

.wdc-btn-primary {
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(100, 65, 132, 0.3);
}

.wdc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(100, 65, 132, 0.45);
    color: #fff;
}

.wdc-btn-primary:active {
    transform: translateY(0);
}

.wdc-btn-secondary {
    background: var(--wdc-glass);
    color: var(--wdc-text-primary);
    border: 1px solid var(--wdc-glass-border);
    backdrop-filter: blur(10px);
}

.wdc-btn-secondary:hover {
    background: var(--wdc-surface-hover);
    border-color: var(--wdc-primary-light);
    color: var(--wdc-text-primary);
}

.wdc-btn-glow {
    background: linear-gradient(135deg, var(--wdc-success), #478E60);
    color: #fff;
    box-shadow: 0 4px 20px rgba(25, 193, 73, 0.3);
}

.wdc-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(25, 193, 73, 0.45);
    color: #fff;
}

/* Light mode buttons */
.wdc-light .wdc-btn-secondary {
    background: rgba(100, 65, 132, 0.06);
    color: var(--wdc-primary-dark);
    border: 1px solid rgba(100, 65, 132, 0.2);
}

.wdc-light .wdc-btn-secondary:hover {
    background: rgba(100, 65, 132, 0.12);
    color: var(--wdc-primary-dark);
}

/* ===== MY COURSES GRID ===== */

.wdc-my-courses-wrap {
    font-family: var(--wdc-font);
    padding: 40px 0;
    animation: wdc-fade-in 0.5s ease;
}

.wdc-my-courses-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.wdc-my-courses-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--wdc-text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wdc-header-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    border-radius: var(--wdc-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdc-header-icon svg {
    width: 20px;
    height: 20px;
    color: #fff;
}

.wdc-courses-stats {
    display: flex;
    gap: 16px;
}

.wdc-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(100, 65, 132, 0.06);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--wdc-primary);
}

.wdc-stat-pill svg {
    width: 16px;
    height: 16px;
}

.wdc-my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin: 0;
}

/* ===== COURSE CARD ===== */

.wdc-course-card {
    background: #fff;
    border-radius: var(--wdc-radius);
    overflow: hidden;
    box-shadow: var(--wdc-shadow-card);
    transition: all var(--wdc-transition);
    position: relative;
    animation: wdc-fade-up 0.6s ease both;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.wdc-course-card:nth-child(2) { animation-delay: 0.1s; }
.wdc-course-card:nth-child(3) { animation-delay: 0.2s; }
.wdc-course-card:nth-child(4) { animation-delay: 0.3s; }
.wdc-course-card:nth-child(5) { animation-delay: 0.4s; }
.wdc-course-card:nth-child(6) { animation-delay: 0.5s; }

.wdc-course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wdc-shadow-elevated);
}

.wdc-course-card-image {
    position: relative;
    overflow: hidden;
}

.wdc-course-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.wdc-course-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.wdc-course-card:hover .wdc-course-card-image img {
    transform: scale(1.06);
}

.wdc-course-card-badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
}

.wdc-badge-progress {
    background: rgba(100, 65, 132, 0.85);
    color: #fff;
}

.wdc-badge-new {
    background: rgba(25, 193, 73, 0.85);
    color: #fff;
}

.wdc-badge-completed {
    background: rgba(25, 193, 73, 0.85);
    color: #fff;
    animation: wdc-pulse-glow 2s ease infinite;
}

.wdc-course-card-content {
    padding: 24px;
    padding-top: 32px;
    position: relative;
}

.wdc-course-card-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.wdc-course-card-title a {
    color: var(--wdc-text-dark);
    text-decoration: none;
    transition: color var(--wdc-transition);
}

.wdc-course-card-title a:hover {
    color: var(--wdc-primary);
}

.wdc-card-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.wdc-card-progress-label {
    font-size: 12px;
    color: var(--wdc-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wdc-card-progress-percent {
    font-size: 14px;
    font-weight: 800;
    color: var(--wdc-primary);
}

.wdc-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wdc-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--wdc-text-muted);
}

.wdc-card-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.wdc-card-meta-item svg {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.wdc-card-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    color: #fff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all var(--wdc-transition);
    box-shadow: 0 3px 12px rgba(100, 65, 132, 0.25);
}

.wdc-card-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(100, 65, 132, 0.4);
    color: #fff;
}

.wdc-card-action-btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--wdc-transition);
}

.wdc-card-action-btn:hover svg {
    transform: translateX(-3px);
}

/* Circular Progress Ring on Card */
.wdc-circular-progress {
    position: absolute;
    top: -26px;
    inset-inline-start: 16px;
    z-index: 3;
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.wdc-circular-progress svg {
    width: 44px;
    height: 44px;
    transform: rotate(-90deg);
}

.wdc-circular-progress .wdc-ring-bg {
    fill: none;
    stroke: #EDEDED;
    stroke-width: 3;
}

.wdc-circular-progress .wdc-ring-fill {
    fill: none;
    stroke: url(#wdc-gradient-ring);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.wdc-circular-progress .wdc-ring-text {
    position: absolute;
    font-size: 11px;
    font-weight: 800;
    color: var(--wdc-primary);
}

/* ===== NO COURSES STATE ===== */

.wdc-no-courses {
    text-align: center;
    padding: 80px 20px;
    animation: wdc-fade-up 0.6s ease;
}

.wdc-no-courses-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(100, 65, 132, 0.1), rgba(25, 193, 73, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wdc-float 3s ease infinite;
}

.wdc-no-courses-icon svg {
    width: 48px;
    height: 48px;
    color: var(--wdc-primary);
}

.wdc-no-courses h3 {
    font-size: 22px;
    margin: 0 0 8px;
    color: var(--wdc-text-dark);
}

.wdc-no-courses p {
    color: var(--wdc-text-muted);
    margin: 0 0 24px;
    font-size: 15px;
}

.wdc-login-notice {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(100, 65, 132, 0.04), rgba(25, 193, 73, 0.04));
    border-radius: var(--wdc-radius);
    border: 1px dashed rgba(100, 65, 132, 0.2);
    animation: wdc-fade-up 0.6s ease;
}

.wdc-login-notice p {
    font-size: 16px;
    color: var(--wdc-text-muted);
}

.wdc-login-notice a {
    color: var(--wdc-primary);
    font-weight: 700;
}

/* ===== COURSE OVERVIEW / CURRICULUM ===== */

.wdc-course-overview {
    margin-top: 48px;
    font-family: var(--wdc-font);
    animation: wdc-fade-up 0.6s ease;
}

.wdc-course-progress-header {
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    border-radius: var(--wdc-radius);
    padding: 28px 32px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.wdc-course-progress-header::before {
    content: '';
    position: absolute;
    top: -50%;
    inset-inline-end: -10%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.wdc-course-progress-header .wdc-progress-bar {
    background: rgba(255, 255, 255, 0.2);
    height: 8px;
}

.wdc-course-progress-header .wdc-progress-fill {
    background: #fff;
    animation: none;
}

.wdc-course-progress-header .wdc-progress-fill::after {
    display: none;
}

.wdc-course-progress-header .wdc-progress-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.wdc-progress-header-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    opacity: 0.9;
}

.wdc-progress-header-big {
    color: #fff;
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 12px;
}

.wdc-start-learning-btn {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    padding: 14px 36px;
    border-radius: 50px;
    background: #fff;
    color: var(--wdc-primary);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.wdc-start-learning-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    color: var(--wdc-primary-dark);
}

.wdc-start-learning-btn svg {
    width: 20px;
    height: 20px;
}

.wdc-course-curriculum {
    margin: 24px 0;
}

.wdc-course-curriculum > h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--wdc-text-dark);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wdc-course-curriculum > h2 svg {
    width: 24px;
    height: 24px;
    color: var(--wdc-primary);
}

.wdc-curriculum-section {
    margin-bottom: 8px;
    border-radius: var(--wdc-radius-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    animation: wdc-fade-up 0.5s ease both;
}

.wdc-curriculum-section:nth-child(2) { animation-delay: 0.08s; }
.wdc-curriculum-section:nth-child(3) { animation-delay: 0.16s; }
.wdc-curriculum-section:nth-child(4) { animation-delay: 0.24s; }

.wdc-section-name {
    font-size: 15px;
    font-weight: 700;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F2F4F3, #EDE5F7);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--wdc-text-dark);
    border-bottom: 1px solid rgba(100, 65, 132, 0.08);
}

.wdc-section-name::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--wdc-primary), var(--wdc-accent));
    border-radius: 4px;
    flex-shrink: 0;
}

.wdc-lesson-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #fff;
}

.wdc-lesson-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    transition: all var(--wdc-transition);
    position: relative;
}

.wdc-lesson-item:last-child {
    border-bottom: none;
}

.wdc-lesson-item:hover {
    background: rgba(100, 65, 132, 0.03);
}

.wdc-lesson-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--wdc-transition);
}

.wdc-lesson-not_started .wdc-lesson-icon-wrap {
    background: rgba(148, 163, 184, 0.1);
}

.wdc-lesson-not_started .wdc-lesson-icon-wrap svg {
    color: #848383;
    width: 18px;
    height: 18px;
}

.wdc-lesson-in_progress .wdc-lesson-icon-wrap {
    background: rgba(100, 65, 132, 0.1);
}

.wdc-lesson-in_progress .wdc-lesson-icon-wrap svg {
    color: var(--wdc-primary);
    width: 18px;
    height: 18px;
}

.wdc-lesson-completed .wdc-lesson-icon-wrap {
    background: linear-gradient(135deg, var(--wdc-success), #478E60);
}

.wdc-lesson-completed .wdc-lesson-icon-wrap svg {
    color: #fff;
    width: 18px;
    height: 18px;
}

.wdc-lesson-locked .wdc-lesson-icon-wrap {
    background: rgba(148, 163, 184, 0.08);
}

.wdc-lesson-locked .wdc-lesson-icon-wrap svg {
    color: #EDEDED;
    width: 16px;
    height: 16px;
}

.wdc-lesson-link {
    flex: 1;
    text-decoration: none;
    color: var(--wdc-text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: color var(--wdc-transition);
}

a.wdc-lesson-link:hover {
    color: var(--wdc-primary);
}

.wdc-lesson-locked .wdc-lesson-link {
    color: #EDEDED;
}

.wdc-lesson-available-date {
    font-size: 11px;
    color: var(--wdc-primary);
    background: rgba(100, 65, 132, 0.08);
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

.wdc-lesson-duration {
    font-size: 12px;
    color: var(--wdc-text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wdc-lesson-duration svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}

/* ===== ENROLL CTA ===== */

.wdc-enroll-cta {
    text-align: center;
    padding: 48px 32px;
    background: linear-gradient(135deg, #F2F4F3, #EDE5F7, #E4F4E7);
    border-radius: var(--wdc-radius);
    border: 2px solid rgba(100, 65, 132, 0.12);
    margin-top: 32px;
    position: relative;
    overflow: hidden;
}

.wdc-enroll-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--wdc-primary), var(--wdc-accent), var(--wdc-primary));
    background-size: 200% 100%;
    animation: wdc-gradient-shift 3s ease infinite;
}

.wdc-course-price {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wdc-price-subtitle {
    color: var(--wdc-text-muted);
    font-size: 14px;
    margin-bottom: 24px;
}

/* ===== ACCESS DENIED / ERROR / LOCKED ===== */

.wdc-access-denied,
.wdc-error {
    text-align: center;
    padding: 80px 20px;
    font-family: var(--wdc-font);
    animation: wdc-fade-up 0.6s ease;
}

.wdc-lesson-locked-page {
    text-align: center;
    padding: 100px 20px;
    font-family: var(--wdc-font);
    animation: wdc-fade-up 0.6s ease;
}

.wdc-lock-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(100, 65, 132, 0.1), rgba(25, 193, 73, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wdc-float 3s ease infinite;
}

.wdc-lock-icon-wrap svg {
    width: 36px;
    height: 36px;
    color: var(--wdc-primary);
}

/* ===== LESSON PAGE (Elementor/theme template) ===== */

.wdc-lesson-locked-msg {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.wdc-lesson-locked-msg .wdc-lock-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 210, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdc-lesson-locked-msg p {
    font-size: 18px;
    color: #555;
    margin-bottom: 24px;
}

.wdc-lesson-video {
    margin-bottom: 24px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
}

.wdc-lesson-video iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.wdc-course-complete-msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #00E676, #00B0FF);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
}

.wdc-course-complete-msg svg {
    stroke: #fff;
}

.wdc-free-preview-cta {
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    background: #f0f7fc;
    border-radius: 12px;
    border: 2px dashed #2271b1;
}

.wdc-preview-cta-text {
    font-size: 16px;
    margin-bottom: 12px;
    color: #1d2327;
}

/* ===== LESSON NAV (inline course outline) ===== */

.wdc-lesson-nav {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 28px;
    overflow: hidden;
    font-family: var(--wdc-font, 'Heebo', sans-serif);
}

.wdc-lesson-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 8px;
}

.wdc-lesson-nav-course {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    text-decoration: none;
}

.wdc-lesson-nav-course:hover {
    color: #6C5CE7;
}

.wdc-lesson-nav-progress {
    font-size: 13px;
    font-weight: 700;
    color: #6C5CE7;
}

.wdc-lesson-nav-bar {
    height: 4px;
    background: #e8e8e8;
    margin: 0 20px 4px;
    border-radius: 2px;
    overflow: hidden;
}

.wdc-lesson-nav-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6C5CE7, #00D2FF);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.wdc-lesson-nav-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    font-family: inherit;
    border-top: 1px solid #f0f0f0;
}

.wdc-lesson-nav-toggle:hover {
    color: #1d2327;
    background: #fafafa;
}

.wdc-lesson-nav-list {
    display: none;
    border-top: 1px solid #e8e8e8;
    max-height: 400px;
    overflow-y: auto;
}

.wdc-nav-open .wdc-lesson-nav-list {
    display: block;
}

.wdc-lesson-nav-section {
    padding: 10px 20px 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
}

.wdc-lesson-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.wdc-lesson-nav-item:last-child {
    border-bottom: none;
}

.wdc-nav-item-current {
    background: #f0f7fc;
    border-inline-start: 3px solid #6C5CE7;
}

.wdc-nav-item-done {
    opacity: 0.7;
}

.wdc-nav-item-locked {
    opacity: 0.5;
}

.wdc-nav-item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdc-nav-item-icon svg {
    width: 16px;
    height: 16px;
}

.wdc-icon-done svg {
    stroke: #00C853;
}

.wdc-icon-lock svg {
    stroke: #bbb;
    width: 14px;
    height: 14px;
}

.wdc-icon-current svg {
    fill: #6C5CE7;
    width: 14px;
    height: 14px;
}

.wdc-nav-item-title {
    flex: 1;
    color: #1d2327;
    text-decoration: none;
}

a.wdc-nav-item-title:hover {
    color: #6C5CE7;
}

.wdc-nav-item-locked .wdc-nav-item-title {
    color: #999;
}

/* Sidebar variant — nav stays open and becomes a side panel */
.wdc-lesson-nav-sidebar .wdc-lesson-nav-list {
    display: block;
}

.wdc-lesson-nav-sidebar .wdc-lesson-nav-toggle {
    display: none;
}

@media (min-width: 992px) {
    .wdc-lesson-nav-sidebar {
        position: fixed;
        top: 0;
        inset-inline-start: 0;
        width: 320px;
        height: 100vh;
        border-radius: 0;
        margin: 0;
        z-index: 100;
        overflow-y: auto;
        border: none;
        border-inline-end: 1px solid #e0e0e0;
        box-shadow: 2px 0 12px rgba(0,0,0,0.06);
    }

    .wdc-lesson-nav-sidebar .wdc-lesson-nav-list {
        max-height: none;
    }

    /* Push content to the side */
    body:has(.wdc-lesson-nav-sidebar) .site-main,
    body:has(.wdc-lesson-nav-sidebar) .elementor {
        margin-inline-start: 320px;
    }
}

@media (max-width: 991px) {
    /* On mobile, sidebar variant behaves like top */
    .wdc-lesson-nav-sidebar .wdc-lesson-nav-list {
        display: none;
        max-height: 400px;
    }

    .wdc-lesson-nav-sidebar .wdc-lesson-nav-toggle {
        display: flex;
    }

    .wdc-lesson-nav-sidebar.wdc-nav-open .wdc-lesson-nav-list {
        display: block;
    }
}

/* ===== COURSE PLAYER ===== */

.wdc-player-wrap {
    display: flex;
    min-height: 100vh;
    font-family: var(--wdc-font);
    direction: rtl;
    background: var(--wdc-dark-bg);
}

/* Player Sidebar */
.wdc-player-sidebar {
    width: 340px;
    flex-shrink: 0;
    background: var(--wdc-dark-surface);
    color: var(--wdc-text-primary);
    overflow-y: auto;
    border-inline-end: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.wdc-player-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wdc-player-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.wdc-player-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.wdc-player-sidebar-header {
    padding: 24px;
    background: linear-gradient(180deg, rgba(100, 65, 132, 0.15), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
}

.wdc-back-to-course {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--wdc-primary-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    transition: color var(--wdc-transition);
}

.wdc-back-to-course svg {
    width: 16px;
    height: 16px;
}

.wdc-back-to-course:hover {
    color: var(--wdc-accent);
}

.wdc-sidebar-course-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--wdc-text-primary);
    margin: 0 0 16px;
    line-height: 1.4;
}

.wdc-sidebar-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wdc-sidebar-progress-wrap .wdc-progress-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    height: 6px;
    margin: 0;
}

.wdc-sidebar-progress-wrap .wdc-progress-text {
    color: var(--wdc-accent);
    font-size: 13px;
    font-weight: 800;
    min-width: 36px;
    text-align: end;
}

/* Sidebar Navigation */
.wdc-player-nav {
    padding: 12px 0;
}

.wdc-nav-section-title {
    padding: 20px 24px 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--wdc-primary-light);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wdc-nav-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(100, 65, 132, 0.2);
}

.wdc-nav-lessons {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wdc-nav-lesson {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    transition: all var(--wdc-transition);
    position: relative;
    cursor: pointer;
}

.wdc-nav-lesson::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    border-radius: 0 3px 3px 0;
    transition: background var(--wdc-transition);
}

.wdc-nav-lesson:hover {
    background: var(--wdc-surface);
}

.wdc-nav-lesson.wdc-nav-current {
    background: rgba(100, 65, 132, 0.12);
}

.wdc-nav-lesson.wdc-nav-current::before {
    background: linear-gradient(180deg, var(--wdc-primary), var(--wdc-accent));
}

.wdc-nav-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--wdc-transition);
}

.wdc-nav-lesson .wdc-nav-icon-wrap {
    background: var(--wdc-surface);
}

.wdc-nav-lesson .wdc-nav-icon-wrap svg {
    width: 16px;
    height: 16px;
    color: var(--wdc-text-secondary);
}

.wdc-nav-current .wdc-nav-icon-wrap {
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
}

.wdc-nav-current .wdc-nav-icon-wrap svg {
    color: #fff;
}

.wdc-nav-completed .wdc-nav-icon-wrap {
    background: var(--wdc-success) !important;
}

.wdc-nav-completed .wdc-nav-icon-wrap svg {
    color: #fff !important;
}

.wdc-nav-locked .wdc-nav-icon-wrap {
    background: rgba(255, 255, 255, 0.04);
}

.wdc-nav-locked .wdc-nav-icon-wrap svg {
    color: rgba(255, 255, 255, 0.15);
}

.wdc-nav-lesson-info {
    flex: 1;
    min-width: 0;
}

.wdc-nav-lesson a,
.wdc-nav-lesson-info > span {
    display: block;
    color: var(--wdc-text-primary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--wdc-transition);
}

.wdc-nav-lesson a:hover {
    color: var(--wdc-accent);
}

.wdc-nav-locked .wdc-nav-lesson-info > span {
    color: rgba(255, 255, 255, 0.2);
}

.wdc-nav-lesson-meta {
    font-size: 11px;
    color: var(--wdc-text-secondary);
    margin-top: 2px;
}

/* Player Main Content */
.wdc-player-content {
    flex: 1;
    padding: 48px 56px;
    max-width: 960px;
    background: #fff;
    animation: wdc-fade-in 0.5s ease;
    overflow-y: auto;
}

.wdc-lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--wdc-text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.wdc-lesson-breadcrumb svg {
    width: 14px;
    height: 14px;
}

.wdc-lesson-breadcrumb a {
    color: var(--wdc-primary);
    text-decoration: none;
}

.wdc-lesson-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--wdc-primary), var(--wdc-accent-2));
    color: #fff;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
    margin-inline-end: 10px;
}

.wdc-lesson-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 32px;
    color: var(--wdc-text-dark);
    line-height: 1.3;
}

.wdc-lesson-content {
    line-height: 1.9;
    font-size: 16px;
    margin-bottom: 48px;
    color: #282827;
}

.wdc-lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--wdc-radius-sm);
    box-shadow: var(--wdc-shadow-card);
    margin: 16px 0;
}

.wdc-lesson-content iframe {
    max-width: 100%;
    border-radius: var(--wdc-radius-sm);
    box-shadow: var(--wdc-shadow-card);
}

.wdc-lesson-content h2,
.wdc-lesson-content h3 {
    color: var(--wdc-text-dark);
    margin-top: 32px;
}

.wdc-lesson-content blockquote {
    border-inline-start: 4px solid var(--wdc-primary);
    padding: 16px 20px;
    background: rgba(100, 65, 132, 0.04);
    border-radius: 0 var(--wdc-radius-xs) var(--wdc-radius-xs) 0;
    margin: 20px 0;
}

/* Lesson Actions */
.wdc-lesson-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 0;
    border-top: 2px solid rgba(0, 0, 0, 0.04);
    animation: wdc-fade-up 0.5s ease 0.2s both;
}

.wdc-completed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wdc-success);
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    background: rgba(25, 193, 73, 0.08);
    border-radius: var(--wdc-radius-sm);
    border: 1px solid rgba(25, 193, 73, 0.15);
}

.wdc-completed-badge svg {
    width: 22px;
    height: 22px;
}

#wdc-mark-complete {
    font-size: 15px;
    padding: 14px 36px;
    border-radius: var(--wdc-radius-sm);
}

.wdc-completion-celebration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
}

.wdc-confetti-piece {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    animation: wdc-confetti 1.5s ease forwards;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1024px) {
    .wdc-player-sidebar {
        width: 280px;
    }

    .wdc-player-content {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .wdc-player-wrap {
        flex-direction: column;
    }

    .wdc-player-sidebar {
        width: 100%;
        max-height: none;
        order: 2;
    }

    .wdc-player-content {
        padding: 24px 20px;
        order: 1;
    }

    .wdc-player-sidebar-header {
        position: relative;
    }

    .wdc-my-courses-grid {
        grid-template-columns: 1fr;
    }

    .wdc-my-courses-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .wdc-courses-stats {
        justify-content: center;
    }

    .wdc-lesson-title {
        font-size: 24px;
    }

    .wdc-lesson-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .wdc-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .wdc-card-action-btn {
        justify-content: center;
    }

    .wdc-course-progress-header {
        padding: 20px;
    }

    .wdc-progress-header-big {
        font-size: 28px;
    }

    /* Mobile sidebar toggle */
    .wdc-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        background: var(--wdc-dark-surface);
        color: var(--wdc-text-primary);
        border: none;
        width: 100%;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        font-family: var(--wdc-font);
    }

    .wdc-mobile-toggle svg {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 769px) {
    .wdc-mobile-toggle {
        display: none;
    }
}

/* ===== FREE PREVIEW ===== */

.wdc-lesson-free-badge {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--wdc-accent), #478E60);
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wdc-free-preview-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--wdc-accent);
    background: rgba(25, 193, 73, 0.12);
    padding: 5px 14px;
    border-radius: 50px;
    border: 1px solid rgba(25, 193, 73, 0.25);
    margin-top: 8px;
}

.wdc-nav-free-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--wdc-accent);
    background: rgba(25, 193, 73, 0.12);
    padding: 2px 8px;
    border-radius: 50px;
    margin-top: 2px;
}

.wdc-nav-free .wdc-nav-icon-wrap {
    background: rgba(25, 193, 73, 0.15) !important;
}

.wdc-nav-free .wdc-nav-icon-wrap svg {
    color: var(--wdc-accent) !important;
}

.wdc-free-preview-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 28px;
    background: linear-gradient(135deg, #F2F4F3, #EDE5F7, #E4F4E7);
    border-radius: var(--wdc-radius-sm);
    border: 1px solid rgba(100, 65, 132, 0.12);
    flex: 1;
}

.wdc-preview-cta-text {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--wdc-text-dark);
    flex: 1;
}

/* ===== LOGIN POPUP ===== */

.wdc-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #644184, #9261C1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wdc-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 65, 132, 0.4);
}

.wdc-login-btn svg {
    width: 16px;
    height: 16px;
}

.wdc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wdc-modal-overlay.wdc-modal-open {
    display: flex;
    animation: wdc-fade-in 0.25s;
}

@keyframes wdc-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wdc-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    animation: wdc-slide-up 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
    overflow: hidden;
}

@keyframes wdc-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.wdc-modal-close {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s;
    z-index: 2;
}

.wdc-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.wdc-modal-close svg {
    width: 18px;
    height: 18px;
    color: #666;
}

.wdc-modal-header {
    text-align: center;
    padding: 40px 32px 20px;
    background: linear-gradient(135deg, rgba(100, 65, 132, 0.06), rgba(25, 193, 73, 0.04));
}

.wdc-modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, #644184, #19C149);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wdc-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.wdc-modal-header h3 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    color: #282827;
}

.wdc-modal-header p {
    margin: 0;
    color: #848383;
    font-size: 14px;
}

.wdc-login-form {
    padding: 24px 32px;
}

.wdc-form-field {
    margin-bottom: 16px;
}

.wdc-form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #282827;
    margin-bottom: 6px;
}

.wdc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wdc-input-wrap svg {
    position: absolute;
    right: 14px;
    width: 18px;
    height: 18px;
    color: #C4C4C4;
    pointer-events: none;
    transition: color 0.2s;
}

.wdc-input-wrap input {
    width: 100%;
    padding: 12px 44px 12px 14px;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Rubik', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    direction: ltr;
    text-align: right;
}

.wdc-input-wrap input:focus {
    border-color: #644184;
    box-shadow: 0 0 0 3px rgba(100, 65, 132, 0.12);
}

.wdc-input-wrap input:focus + svg,
.wdc-input-wrap:focus-within svg {
    color: #644184;
}

.wdc-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 13px;
}

.wdc-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    cursor: pointer;
}

.wdc-remember input {
    accent-color: #644184;
}

.wdc-forgot {
    color: #644184;
    text-decoration: none;
    font-weight: 500;
}

.wdc-forgot:hover {
    text-decoration: underline;
}

.wdc-submit-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #644184, #9261C1);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wdc-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 65, 132, 0.35);
}

.wdc-submit-btn svg {
    width: 18px;
    height: 18px;
}

.wdc-modal-footer {
    text-align: center;
    padding: 16px 32px 24px;
    font-size: 14px;
    color: #666;
    border-top: 1px solid #F3F4F6;
}

.wdc-modal-footer a {
    color: #644184;
    font-weight: 700;
    text-decoration: none;
    margin-right: 4px;
}

.wdc-modal-footer a:hover {
    text-decoration: underline;
}

/* ===== LESSONS LIST SHORTCODE ===== */

.wdc-lessons-list-wrap {
    font-family: 'Rubik', sans-serif;
    direction: rtl;
    margin: 20px 0;
}

.wdc-lessons-list-header {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
    flex-direction: row;
}

.wdc-lessons-list-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #282827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wdc-lessons-list-header h3 svg {
    color: #478E60;
}

.wdc-lessons-list-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #848383;
    font-weight: 500;
}

.wdc-lessons-meta-sep {
    color: #D1D5DB;
}

.wdc-lessons-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #478E60;
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(71, 142, 96, 0.15);
}

.wdc-lessons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.wdc-lessons-grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #F2F4F3;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    transition: all 0.15s;
}

.wdc-lessons-grid-item:hover {
    background: #E4F4E7;
    border-color: rgba(71, 142, 96, 0.2);
}

.wdc-lessons-grid-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #478E60, #19C149);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wdc-lessons-grid-info {
    flex: 1;
    min-width: 0;
}

.wdc-lessons-grid-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #282827;
    line-height: 1.4;
}

.wdc-lessons-grid-duration {
    display: block;
    font-size: 12px;
    color: #848383;
    margin-top: 2px;
}

.wdc-lessons-grid-clickable {
    cursor: pointer;
}

.wdc-lessons-grid-clickable:hover {
    background: #E4F4E7;
    border-color: rgba(71, 142, 96, 0.2);
}

a.wdc-lessons-grid-title {
    text-decoration: none;
    color: #282827;
    transition: color 0.15s;
}

a.wdc-lessons-grid-title:hover {
    color: #478E60;
}

.wdc-lessons-grid-free {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #19C149, #478E60);
    padding: 3px 10px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .wdc-lessons-grid {
        grid-template-columns: 1fr;
    }

    .wdc-lessons-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== WHAT YOU'LL LEARN ===== */

.wdc-learn-list {
    columns: 2;
    column-gap: 32px;
    font-family: 'Rubik', sans-serif;
    direction: rtl;
}

.wdc-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #282827;
    margin-bottom: 12px;
    break-inside: avoid;
}

.wdc-learn-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #282827;
    margin-top: 3px;
}

@media (max-width: 768px) {
    .wdc-learn-list {
        columns: 1;
    }
}

/* ===== BUY BUTTON ===== */

.wdc-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #644184, #9261C1);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    direction: rtl;
}

.wdc-buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(100, 65, 132, 0.4);
    color: #fff;
}

.wdc-buy-button svg {
    width: 20px;
    height: 20px;
}

/* ===== FIELD CONTENT (wdc_field shortcode) ===== */

/*
 * הסתרת קונטיינר ריק:
 * הוסיפו את הקלאס  wdc-hide-empty  לקונטיינר הירוק ב-Elementor (מתקדם > CSS Classes).
 * אם אף שדה בתוכו לא הוזן (אין .wdc-field) — הקונטיינר כולו (כולל הרקע) לא יוצג.
 * עובד גם כשיש כמה שדות באותו קונטיינר: מספיק ששדה אחד מולא כדי שהתיבה תוצג.
 */
.wdc-hide-empty:not(:has(.wdc-field)) {
    display: none !important;
}

.wdc-field-content {
    font-family: 'Rubik', sans-serif;
    direction: rtl;
    line-height: 1.8;
    color: #282827;
}

.wdc-field-content p {
    margin: 0 0 1em;
}

.wdc-field-content p:last-child {
    margin-bottom: 0;
}

/* ===== SVG GRADIENT DEFS ===== */
/* Added via JS to body for SVG gradients */

/* ===== COURSE TEASER VIDEO ===== */
.wdc-teaser-video {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 24px;
}

/*
 * aspect-ratio הוא ברירת המחדל; בתוך אלמנטור הגובה נקבע בפיקסלים
 * על ידי הסקריפט שבשורטקוד, כי .elementor-widget-container מקבל
 * height:100% ומכווץ ווידג'ט שגובהו נגזר מיחס תצוגה.
 */
.wdc-teaser-video-frame {
    position: relative;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: var(--wdc-video-ratio, 16/9);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    background: #000;
}

.wdc-teaser-video-frame iframe,
.wdc-teaser-video-frame video,
.wdc-teaser-video-frame embed,
.wdc-teaser-video-frame object {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border: none;
    display: block;
}

/* עטיפות שמגיעות מקוד הטמעה מודבק או מ-oEmbed */
.wdc-teaser-video-frame > div,
.wdc-teaser-video-frame .wp-video,
.wdc-teaser-video-frame .wp-block-embed__wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    max-width: none !important;
}

/* אלמנטור: ביטול height:100% ושורת הרווח המיותרת */
.elementor-widget:has(.wdc-teaser-video) > .elementor-widget-container,
.elementor-widget-container:has(> .wdc-teaser-video) {
    height: auto !important;
}
