/* Custom LifterLMS Dashboard Styles */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-llms-dashboard {
    min-height: 100vh;
    padding: 30px 0;
}

/* Top Section: Hero + Sidebar (2 columns) */
.dashboard-top-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 30px;
}

/* Hero Banner */
.dashboard-hero {
    background: #163146;
    border-radius: 15px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 250px;
}

.hero-content {
    flex: 1;
    max-width: 500px;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    font-weight: 400;
}

.hero-content h1 {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #ffffff;
    font-weight: 600;
}

.btn-learn-more {
    display: inline-block;
    background: #ffffff;
    color: #163146;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-learn-more:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.hero-image {
    flex: 0 0 300px;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 280px;
}

/* Sidebar: Competency Progress */
.dashboard-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.competency-progress {
    background: #ffffff;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    padding: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.section-header a {
    color: #335EF7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.section-header a:hover {
    color: #1e40af;
}

.competency-item {
    margin-bottom: 25px;
}

.competency-item:last-child {
    margin-bottom: 0;
}

.competency-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.competency-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    flex: 1;
    margin-right: 10px;
}

.percentage {
    font-size: 14px;
    color: #6B7280;
    font-weight: 600;
    flex-shrink: 0;
}

.competency-item .progress-bar {
    height: 6px;
    margin-bottom: 0;
}

/* Full Width Container for Stats */
.dashboard-full-width {
    max-width: 1400px;
    margin: 0 auto;
}

/* Statistics Cards - Full Width */
.dashboard-stats {
    display: flex;
    gap: 20px;
    width: 100%;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 0;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.stat-card img {
    width: 60px;
    height: 60px;
}

.stat-enrolled {
    background: #EEF4FF;
}

.stat-enrolled .stat-icon {
    background: #335EF7;
}

.stat-completed {
    background: #ECFDF5;
}

.stat-completed .stat-icon {
    background: #10B981;
}

.stat-badges {
    background: #FFF7ED;
}

.stat-badges .stat-icon {
    background: #F97316;
}

.stat-certificates {
    background: #F5F3FF;
}

.stat-certificates .stat-icon {
    background: #8B5CF6;
}

.stat-info {
    flex: 1;
    min-width: 0;
}

.stat-info p {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 5px;
    font-weight: 400;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Courses Section Container */
.dashboard-courses-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Courses Section */
.courses-section {
    margin-bottom: 40px;
}
.courses-section:last-child {
    margin-bottom: 0;
}
.courses-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 25px;
}

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.course-card {
    background: #ffffff;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.course-thumbnail {
    position: relative;
    overflow: hidden;
    background: #000; /* prevents grey flash */
}

/* Ensure image is always normal */
.course-thumbnail img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: initial;
    opacity: 1 !important;
    filter: none !important;
}

/* DARK OVERLAY (OFF by default) */
.course-thumbnail::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2;
}

/* PLAY ICON (OFF by default) */
.course-thumbnail::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 56px;
    height: 56px;
    background-image: url("/wp-content/themes/talemy-child/images/playcourse.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 3;
}

/* HOVER — ONLY WHEN USER HOVERS IMAGE */
.course-thumbnail:hover::before {
    opacity: 1;
}

.course-thumbnail:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Course Actions - Like & Bookmark */
.course-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.btn-favorite,
.btn-bookmark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
}

.course-card:hover .btn-favorite,
.course-card:hover .btn-bookmark {
    opacity: 1;
}
.btn-favorite:hover,
.btn-bookmark:hover {
    transform: scale(1.1);
}
/* Notification Toast */
.course-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #10B981;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.course-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.course-notification.error {
    background: #EF4444;
}
.btn-favorite .heart-icon {
    stroke: #EF4444;
    fill: none;
    transition: all 0.3s ease;
}

.btn-favorite.active .heart-icon {
    fill: #EF4444;
    stroke: #EF4444;
}

.btn-favorite:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-bookmark img {
    width: 18px;
    height: 18px;
}

.course-info {
    padding: 20px;
}

.course-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-instructor {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
}

.course-meta img {
    width: 18px;
    height: 18px;
}

.course-progress-wrap {
    margin-bottom: 15px;
}

.progress-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #335EF7;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 12px;
    color: #6B7280;
    font-weight: 500;
}

/* Competency Progress Popup Styles */
/* View All Link with Arrow */
.view-all-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #335EF7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    color: #1e40af;
}
.view-all-link .arrow-icon {
    transition: transform 0.3s ease;
}

.view-all-link.expanded .arrow-icon {
    transform: rotate(90deg);
}

/* Load More Container */
.load-more-container {
    text-align: center;
    margin-top: 30px;
    grid-column: 1 / -1;
}

.btn-load-more {
    background: #ffffff;
    color: #335EF7;
    border: 2px solid #335EF7;
    padding: 12px 35px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-load-more:hover:not(:disabled) {
    background: #335EF7;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Spinner Animation */
.spinner {
    animation: rotate 2s linear infinite;
}

.spinner .path {
    stroke: #335EF7;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; }
    50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; }
}
.review-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}
.review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.competency-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.competency-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.competency-popup {
    background: #ffffff;
    width: 450px;
    max-width: 90vw;
    height: 100vh;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.competency-popup-overlay.active .competency-popup {
    transform: translateX(0);
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    border-bottom: 1px solid #E5E7EB;
    background: #ffffff;
    flex-shrink: 0;
}

.popup-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1F2937;
    margin: 0;
}

.close-popup {
    background: transparent;
    border: none;
    color: #6B7280;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-popup:hover {
    background: #F3F4F6;
    color: #1F2937;
}

.close-popup svg {
    width: 24px;
    height: 24px;
}

.popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.popup-content::-webkit-scrollbar {
    width: 8px;
}

.popup-content::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.popup-content::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background: #9CA3AF;
}

.popup-content .competency-item {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #F3F4F6;
}

.popup-content .competency-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popup-content .competency-header h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1F2937;
}

.popup-content .percentage {
    font-size: 15px;
    color: #000000;
    font-weight: 400;
}

.popup-content .progress-bar {
    height: 8px;
    background: #E5E7EB;
}

.popup-content .progress-fill {
    background: linear-gradient(90deg, #335EF7 0%, #667eea 100%);
    transition: width 0.8s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .dashboard-top-section {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .course-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .dashboard-hero {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 20px;
    }
    
    .hero-image {
        flex: 0 0 auto;
    }
    
    .dashboard-stats {
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        gap: 12px;
    }
    
    .stat-card {
        flex: 0 0 calc(50% - 6px);
        padding: 18px 12px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon img {
        width: 26px;
        height: 26px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-hero {
        padding: 25px;
    }
    
    .hero-content h1 {
        font-size: 18px;
    }
    
    .competency-popup {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .custom-llms-dashboard {
        padding: 20px 0;
    }
    
    .dashboard-top-section,
    .dashboard-full-width,
    .dashboard-courses-section {
        padding: 0 15px;
    }
    
    .dashboard-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card {
        flex: 1 1 auto;
        width: 100%;
    }
    
    .hero-content h1 {
        font-size: 16px;
    }
    
    .courses-section h2 {
        font-size: 18px;
    }
}
/* No courses message */
.no-courses {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6B7280;
    font-size: 16px;
    background: #F9FAFB;
    border-radius: 12px;
}
/* ========================================
   COURSES PAGE SPECIFIC STYLES
   ======================================== */

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-dropdown label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

.sort-dropdown select {
    padding: 8px 35px 8px 15px;
    border: 1px solid #E1E5E9;
    border-radius: 6px;
    font-size: 14px;
    color: #000000;
    background: #ffffff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23666" d="M6 9L1 4h10z"/></svg>') no-repeat right 12px center;
    background-size: 12px;
    appearance: none;
    cursor: pointer;
}

/* Courses Page Container */
/* Fix courses page layout */
.courses-page .dashboard-full-width {
    margin-bottom: 20px;
}
.stud-dashboard-page .dashboard-full-width {
    padding: 0 20px 20px;
}
.courses-page-container {
    max-width: 1400px;
    margin: 0 auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}
.courses-sidebar {
    height: fit-content;
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 2px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
/* .filters-section {
    background: #ffffff;
    border: 1px solid #E1E5E9;
    border-radius: 12px;
    padding: 20px;
} */

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #E1E5E9;
}

.filters-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
}

.filter-count {
    background: #ff4d67;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 600;
}

.clear-filters {
    background: transparent;
    border: none;
    color: #ff4d67;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    padding: 0;
}

.clear-filters:hover {
    text-decoration: underline;
}

/* Filter Groups */
.filter-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #F3F4F6;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    cursor: pointer;
    text-align: left;
}

.filter-toggle svg {
    transition: transform 0.3s ease;
}

.filter-toggle.active svg {
    transform: rotate(180deg);
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Improve filter content scrolling */
.filter-content.active {
    max-height: 300px;
    overflow-y: auto;
    padding-top: 10px;
}
.filter-content.active::-webkit-scrollbar {
    width: 4px;
}

.filter-content.active::-webkit-scrollbar-track {
    background: #F3F4F6;
}

.filter-content.active::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 2px;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 13px;
    color: #4B5563;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border: 1.5px solid #D1D5DB;
    border-radius: 3px;
    cursor: pointer;
    accent-color: #000000;
}

.filter-checkbox input[type="checkbox"]:checked {
    background: #335EF7;
    border-color: #335EF7;
}

.filter-checkbox:hover {
    color: #000000;
}

/* Range Slider */
.range-slider {
    padding: 14px 0;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #335EF7 0%, #335EF7 100%, #E5E7EB 100%);
    outline: none;
    appearance: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #335EF7;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #335EF7;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 13px;
}
.range-values span:first-child {
    color: #9CA3AF;
}

.range-values span:last-child {
    color: #335EF7;
    font-weight: 600;
}

/* Courses Main Content */
.courses-main-content {
    flex: 1;
    min-width: 0; /* Important for flexbox */
}

/* Section Title Row */
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title-row h2 {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* 3 Column Grid for Courses Page */
.course-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Responsive for Courses Page */
@media (max-width: 1200px) {
    .courses-page-container {
        grid-template-columns: 1fr;
    }
    
    .courses-sidebar {
        position: static;
    }
    
    .course-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .course-grid-3 {
        grid-template-columns: 1fr;
    }
    
    .section-title-row {
        flex-wrap: wrap;
    }
}
/* Single Course Detail Page Styles */
.course-detail-page {
    min-height: 100vh;
    padding: 20px 40px;
}

.course-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.course-main-content {
    flex: 1;
    min-width: 0;
}

.course-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.course-breadcrumb a:hover {
    color: #007bff;
}

.course-breadcrumb .separator {
    color: #999;
}

.course-breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.course-header-left {
    flex: 1;
}

.course-title {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.course-meta-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.course-meta-info .separator {
    color: #ccc;
}

.instructor-name {
    font-weight: 500;
    color: #8B5CF6;
}

.course-stats-container {
    margin: 24px 0;
}

.course-stats {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 20px 30px;
    gap: 30px;
}

.course-stats .stat-item {
    display: flex;
    align-items: start;
    gap: 12px;
    flex: 1;
}

.course-stats .stat-item img {
    width: 24px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

.course-stats .stat-item div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.course-stats .stat-item strong {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.course-stats .stat-item span {
    font-size: 14px;
    color: #686E74;
    line-height: 1;
    padding-top: 4px;

}

.stat-divider {
    width: 1px;
    height: 60px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.course-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-share {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #686E74;
}
/* .btn-share svg {
    color: #686E74;
} */
.btn-share:hover {
    border-color: #007bff;
    color: #007bff;
}

.btn-enroll,
.btn-resume {
    padding: 10px 24px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}


.btn-enroll:hover,
.btn-resume:hover {
    background: #218838;
    color: white;
    text-decoration: none;
}
.btn-resume {
    background: #007bff;
}

.btn-resume:hover {
    background: #0056d2;
}
.course-banner {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #f0f0f0;
}

.course-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 2px solid #e8e8e8;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 0;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn:hover {
    color: #007bff;
}

.tab-btn.active {
    color: #007bff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.about-instructor-wrapper {
    display: flex;
    gap: 30px;
}

.about-course-section {
    flex: 1;
}

.about-instructor-section {
    width: 350px;
    flex-shrink: 0;
}

.about-course-section h2,
.about-instructor-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.course-description p {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.instructor-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.instructor-avatar {
    margin-bottom: 16px;
}

.instructor-avatar img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
}

.instructor-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.instructor-title {
    font-size: 13px;
    color: #666;
    margin: 0 0 12px 0;
}

.instructor-bio {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

.reviews-section {
    max-width: 800px;
}

.reviews-header {
    margin-bottom: 24px;
}

.reviews-summary {
    margin-bottom: 30px;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-number {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.reviews-count {
    font-size: 15px;
    color: #666;
}

/* Write Review Form */
.write-review-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.write-review-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #1a1a1a;
}

.write-review-section > p {
    font-size: 14px;
    color: #666;
    margin: 0 0 16px 0;
}
.review-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

.star-rating-input {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.star-rating-input .star {
    font-size: 32px;
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s;
}
.star-rating-input .star:hover,
.star-rating-input .star.active {
    color: #FFD700;
    transform: scale(1.1);
}
#review-text {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 20px;
}
#review-text:focus {
    outline: none;
    border-color: #007bff;
}
#review-text::placeholder {
    color: #999;
}
.btn-submit-review {
    background: #007bff;
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit-review:hover:not(:disabled) {
    background: #0056d2;
}
.btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-submit-review:hover {
    background: #0056d2;
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.review-header {
    margin-bottom: 12px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.reviewer-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.reviewer-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #1a1a1a;
}

.review-stars {
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-stars .star {
    font-size: 14px;
    color: #ddd;
}

.review-stars .star.filled {
    color: #FFD700;
}

.rating-value {
    font-size: 13px;
    color: #666;
    margin-left: 6px;
}

.review-content p {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
    background: white;
    border-radius: 12px;
}

.course-sidebar {
    width: 350px;
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.lectures-header {
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.lectures-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.lectures-header span {
    color: #666;
    font-weight: 400;
}

.lectures-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.lecture-item:hover {
    background: #e8f4f8;
    transform: translateX(4px);
}

.lecture-item.completed {
    background: #d4edda;
}

.lecture-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #ddd;
}

.lecture-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecture-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.lecture-number {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    flex-shrink: 0;
}

.lecture-title {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lecture-duration {
    font-size: 12px;
    color: #666;
    flex-shrink: 0;
}
.course-description p a.llms-button-primary.llms-course-continue-button {
    display: none;
}
.course-description a.llms-button-primary.llms-course-continue-button {
    padding: 0 20px !important;
}
@media (max-width: 1200px) {
    .course-detail-container {
        flex-direction: column;
    }
    
    .course-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
    }
    
    .about-instructor-wrapper {
        flex-direction: column;
    }
    
    .about-instructor-section {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .course-detail-page {
        padding: 15px;
    }
    
    .course-header {
        flex-direction: column;
        gap: 16px;
    }    
    .course-title {
        font-size: 22px;
    }
    
    .course-tabs {
        gap: 16px;
    }
}
@media (max-width: 992px) {
    .course-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
        padding: 20px;
    }   
    
    .course-stats .stat-item img {
        width: 24px;
        height: 22px;
    }
    
    .course-stats .stat-item strong {
        font-size: 20px;
    }
    
    .course-stats .stat-item span {
        font-size: 12px;
    }
    
    .stat-divider {
        display: none;
    }
}

/* Very Small Screens - Stack Vertically */
@media (max-width: 400px) {
    .course-stats {
        grid-template-columns: 1fr;
    }
}
/* Lesson Detail Page Styles - Figma Design */

.lesson-detail-page {
    background: #f8f9fa;
    min-height: 100vh;
    padding: 20px 40px;
}

.lesson-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Main Content */
.lesson-main-content {
    flex: 1;
    min-width: 0;
}

/* Breadcrumb */
.lesson-breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-breadcrumb a {
    color: #666;
    text-decoration: none;
}

.lesson-breadcrumb a:hover {
    color: #007bff;
}

.lesson-breadcrumb .separator {
    color: #999;
}

.lesson-breadcrumb .current {
    color: #1a1a1a;
    font-weight: 500;
}
/* Mark Complete Button Wrapper */
.lesson-complete-wrapper {
    margin: 10px 0;
    text-align: center;
}
/* Hide the default wrapper if LifterLMS adds one */
.llms-lesson-complete,
.llms-lesson-button-wrapper {
    display: inline-block;
    margin: 2px !important;
    padding: 2px !important;
}

/* Style the actual button */
.llms-lesson-complete .llms-complete-lesson-button,
.llms-complete-lesson-link,
.llms-button-primary.auto {
    padding: 14px 40px !important;
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.llms-complete-lesson-link:hover,
.llms-button-primary.auto:hover {
    background: #218838 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3) !important;
}

/* Completed state */
.llms-complete-lesson-link.done,
.llms-button-secondary {
    background: #6c757d !important;
    cursor: default !important;
}

.llms-complete-lesson-link.done:hover,
.llms-button-secondary:hover {
    transform: none !important;
    background: #6c757d !important;
}

/* Take Quiz Button */
.llms-button-primary {
    padding: 14px 40px !important;
    background: #007bff !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.llms-button-primary:hover {
    background: #0056d2 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3) !important;
}
.lesson-video-container p:not(:has(iframe)):not(:has(video)) {
    display: none;
}

.lesson-video-content > p:first-child:not(:has(*)) {
    display: none;
}
/* Video Container - no mark complete button inside */
.lesson-video-container {
    width: 100%;
    margin: 0 auto;
    background: transparent !important;
}
/* Remove any container backgrounds */
.lesson-video-container * {
    background-color: transparent !important;
}
/* Only the actual video controls can have background */
.plyr__controls,
.plyr__control {
    background: rgba(0, 0, 0, 0.7) !important;
}
.lesson-video-content {
    position: relative;
    width: 100%;
}
/* No video message */
.lesson-video-container .no-video-message {
    text-align: center;
    color: #999;
    padding: 40px;
}
.lesson-video-content iframe,
.lesson-video-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Iframe - maintain aspect ratio */
.lesson-video-container iframe,
.lesson-video-content iframe,
.llms-video-wrapper iframe {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    max-width: 100%;
    background: transparent !important;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}
/* For vertical videos, adjust aspect ratio */
.lesson-video-container iframe.vertical-video,
.lesson-video-content iframe.vertical-video {
    aspect-ratio: 9 / 16;
    max-width: 600px;
}
/* Force transparent backgrounds everywhere */
.lesson-video-container,
.lesson-video-container *,
.lesson-video-content,
.lesson-video-content *,
.llms-video-wrapper,
.llms-video-wrapper *,
.center-video,
.center-video *,
.video-container,
.video-container *,
.video-wrapper,
.video-wrapper *,
.plyr,
.plyr *,
.plyr__video-wrapper,
.plyr__video-wrapper * {
    background: transparent !important;
    background-color: transparent !important;
}
.plyr__poster {
    background: transparent !important;
}
/* Video wrapper for aspect ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.video-wrapper.vertical {
    max-width: 600px;
    margin: 0 auto;
}
.lesson-video-content,
.llms-video-wrapper,
.center-video {
    background: transparent !important;
    width: 100%;
    max-width: 100%;
}
/* Video element - remove black bars */
.lesson-video-container video,
.lesson-video-content video,
.llms-video-wrapper video {
   width: 100% !important;
    height: auto !important;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
/* Remove any video duplicates - only show first video */
.lesson-video-container .llms-video-wrapper:not(:first-of-type),
.lesson-video-content .llms-video-wrapper:not(:first-of-type) {
    display: none !important;
}
/* Lesson Header with Actions */
.lesson-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.lesson-main-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.lesson-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Lesson Like Button */
.btn-lesson-like {
    width: auto;
    padding: 0 12px;
    gap: 6px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.btn-lesson-like:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-lesson-like.liked {
    border-color: #ff6b6b;
    background: #fff5f5;
    color: #ff6b6b;
}

.btn-lesson-like.liked svg path {
    fill: #ff6b6b;
    stroke: #ff6b6b;
}

.btn-lesson-like svg {
    transition: transform 0.2s;
}

.btn-lesson-like:hover svg {
    transform: scale(1.1);
}

.btn-lesson-like:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.like-count {
    font-size: 14px;
    font-weight: 600;
}
.lesson-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.3s;
}

.lesson-notification.show {
    opacity: 1;
    transform: translateX(0);
}
/* Comments Section */
.lesson-comments-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.comments-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
}

/* Comment Form */
.comment-form-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.lesson-comment-form {
    flex: 1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

#comment-text {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 24px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

#comment-text:focus {
    outline: none;
    border-color: #007bff;
}

.btn-send-comment {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.btn-send-comment:hover {
    background: #0056d2;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.commenter-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.comment-date {
    font-size: 13px;
    color: #999;
}

.comment-text {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 12px 0;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.btn-comment-action {
    background: none;
    border: none;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.2s;
}

.btn-comment-action:hover {
    color: #007bff;
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 15px;
}

/* Sidebar: Lectures */
.lesson-sidebar {
    width: 350px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.lectures-header {
    background: white;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid #e8e8e8;
}

.lectures-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.lectures-header span {
    color: #666;
    font-weight: 400;
}

.lectures-list {
    background: white;
    padding: 12px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lecture-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lecture-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.2s;
}

.lecture-item:hover {
    background: #e8f4f8;
    transform: translateX(4px);
}

.lecture-item.active {
    background: #007bff;
    color: white;
}

.lecture-item.completed {
    background: #d4edda;
}

.lecture-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    background: #ddd;
}

.lecture-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lecture-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.lecture-number {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    flex-shrink: 0;
}

.lecture-title {
    font-size: 14px;
    color: inherit;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lecture-duration {
    font-size: 12px;
    color: inherit;
    opacity: 0.7;
    flex-shrink: 0;
}

/* Navigation Buttons */
.lesson-navigation {
    background: white;
    padding: 16px 20px;
    border-radius: 0 0 16px 16px;
    border-top: 1px solid #e8e8e8;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.btn-nav {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: white;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-nav:hover:not(:disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.btn-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .lesson-detail-container {
        flex-direction: column;
    }
    
    .lesson-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: 600px;
    }
}

@media (max-width: 768px) {
    .lesson-detail-page {
        padding: 15px;
    }
    
    .lesson-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .lesson-main-title {
        font-size: 20px;
    }
    
    .lesson-comments-section {
        padding: 20px;
    }
    
    .comment-form-wrapper {
        flex-direction: column;
    }
    
    .lesson-navigation {
        flex-direction: column;
    }
}
/* Reply Form */
.reply-form-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    padding-left: 52px;
}

.reply-comment-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.reply-text {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    min-height: 60px;
}

.reply-text:focus {
    outline: none;
    border-color: #007bff;
}

.reply-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.btn-cancel-reply,
.btn-submit-reply {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-cancel-reply {
    background: #f0f0f0;
    color: #666;
}

.btn-cancel-reply:hover {
    background: #e0e0e0;
}

.btn-submit-reply {
    background: #007bff;
    color: white;
}

.btn-submit-reply:hover {
    background: #0056d2;
}

/* Replies List */
.replies-list {
    margin-top: 16px;
    padding-left: 52px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.reply-item .comment-avatar img {
    width: 32px;
    height: 32px;
}

/* Like Button Styling */
.btn-like-comment {
    color: #666;
}

.btn-like-comment.liked {
    color: #ff6b6b;
}

.btn-like-comment svg {
    transition: transform 0.2s;
}

.btn-like-comment:hover svg {
    transform: scale(1.2);
}

.btn-reply {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Hide all button wrappers except the one inside lesson-complete-wrapper */
.llms-lesson-button-wrapper {
    display: none !important;
}

/* Show only the button inside our custom wrapper */
.lesson-complete-wrapper .llms-lesson-button-wrapper,
.lesson-complete-wrapper form,
.lesson-complete-wrapper button {
    display: block !important;
}