/* ===================================
   Course Grid & Cards
   =================================== */
.alms-courses-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}
.dashicons{
    color: #F57522;
}
.alms-courses-grid.alms-columns-1 {
    grid-template-columns: 1fr;
}

.alms-courses-grid.alms-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.alms-courses-grid.alms-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.alms-courses-grid.alms-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.alms-course-card {
    background: #fff;
    border: 1px solid #d6d8dd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.alms-course-card:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.alms-course-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #f3f4f6;
}

.alms-course-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.alms-course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.alms-course-card:hover .alms-course-image {
    transform: scale(1.05);
}

.alms-course-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0C1B54 0%, #3653d3 100%);
}

.alms-course-no-image .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: rgba(255,255,255,0.8);
}




.alms-course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alms-free-badge {
    background: #10b981;
    color: #fff;
}

.alms-sale-badge {
    background: #f59e0b;
    color: #fff;
}

.alms-enrolled-badge {
    background: #0C1B54;
    color: #fff;
    top: 50px;
}

.alms-course-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;

}

.alms-course-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.alms-difficulty {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alms-difficulty-beginner {
    background: #d1fae5;
    color: #065f46;
}

.alms-difficulty-intermediate {
    background: #dbeafe;
    color: #1e40af;
}

.alms-difficulty-advanced {
    background: #fef3c7;
    color: #92400e;
}

.alms-difficulty-expert {
    background: #fee2e2;
    color: #991b1b;
}

.alms-lesson-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6b7280;
}

.alms-lesson-count .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.alms-course-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    line-height: 1.4;
}

.alms-course-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.alms-course-title a:hover {
    color: #0C1B54;
}

.alms-course-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.alms-course-instructors {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.alms-instructor {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
}

.alms-instructor img {
    border-radius: 50%;
}

.alms-course-footer {
    display: block;
    flex-direction: column;
    padding-top: 15px; 
    align-items: flex-start; 
  gap: 12px;   
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.alms-course-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.alms-price-free {
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.alms-price-regular {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
}

.alms-price-strikethrough {
    text-decoration: line-through;
    color: #9ca3af;
    font-size: 16px;
}

.alms-price-sale {
    font-size: 20px;
    font-weight: 700;
    color: #ef4444;
}

/* Buttons */
.alms-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    align-items: center;
    margin-top: 10px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.alms-btn-primary {
    background: #0C1B54;
    color: #fff;
}

.alms-btn-primary:hover {
    background: #3653d3;
    color: #fff;
}

.alms-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.alms-btn-secondary:hover {
    background: #4b5563;
}

.alms-btn-success {
    background: #10b981;
    color: #fff;
}

.alms-btn-success:hover {
    background: #059669;
}

.alms-btn-block {
    display: block;
    width: 100%;
}

/* No Courses Message */
.alms-no-courses {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* Login Required */
.alms-login-required {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.alms-login-required p {
    margin: 0;
    font-size: 16px;
}

.alms-login-required a {
    color: #0C1B54;
    font-weight: 600;
}

/* ===================================
   Single Course Page
   =================================== */
.alms-single-course {
    max-width: 1200px;
    margin: 0 auto;
}

.alms-course-header {
    background: linear-gradient(135deg, #0C1B54 0%, #3653d3 100%);
    color: #fff;
    padding: 60px 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.alms-course-header h1 {
    margin: 0 0 15px 0;
    font-size: 36px;
}

.alms-course-header .alms-course-excerpt {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 25px;
}

.alms-course-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.alms-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alms-stat-item .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.alms-course-main {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

.alms-course-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.alms-sidebar-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.alms-sidebar-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
}

.alms-enrollment-box {
    text-align: center;
}

.alms-enrollment-price {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.alms-enrollment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alms-progress-bar {
    background: #e5e7eb;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin: 15px 0;
}

.alms-progress-fill {
    background: linear-gradient(90deg, #10b981, #059669);
    height: 100%;
    transition: width 0.3s ease;
}

.alms-progress-text {
    text-align: center;
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
}

/* Course Content */
.alms-course-info {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}


.alms-course-info h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
}

.alms-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alms-lesson-list-item {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.alms-lesson-list-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.alms-lesson-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    text-decoration: none;
    color: #111827;
    transition: background 0.2s;
}

.alms-lesson-link:hover {
    background: #f9fafb;
}

.alms-lesson-number-badge {
    background: #e5e7eb;
    color: #374151;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.alms-lesson-info {
    flex: 1;
}


.alms-lesson-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}
.alms-lesson-title:hover {
   color: #222;
}
.alms-lesson-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #6b7280;
}

.alms-lesson-status-icon {
    color: #10b981;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.alms-lesson-locked {
    opacity: 0.6;
    pointer-events: none;
}

.alms-lesson-locked .alms-lesson-status-icon {
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 1024px) {
    .alms-course-main {
        grid-template-columns: 1fr;
    }
    
    .alms-course-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .alms-courses-grid.alms-columns-2,
    .alms-courses-grid.alms-columns-3,
    .alms-courses-grid.alms-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .alms-course-header {
        padding: 40px 20px;
    }
    
    .alms-course-header h1 {
        font-size: 28px;
    }
}

/* ===================================
   Student Dashboard
   =================================== */
.alms-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.alms-dashboard-header {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.alms-dashboard-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
}

.alms-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.alms-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
}

.alms-stat-card-value {
    font-size: 36px;
    font-weight: 700;
    color: #0C1B54;
    margin-bottom: 8px;
}

.alms-stat-card-label {
    color: #6b7280;
    font-size: 14px;
}

.alms-my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.alms-dashboard-course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.alms-dashboard-course-card h3 {
    padding: 20px;
    margin: 0;
    font-size: 18px;
}

.alms-dashboard-course-card h3 a {
    color: #111827;
    text-decoration: none;
}

.alms-dashboard-course-card h3 a:hover {
    color: #0C1B54;
}

.alms-dashboard-course-progress {
    padding: 0 20px 20px 20px;
}

/* ===================================
   Quiz Styles
   =================================== */
.alms-quiz-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.alms-quiz-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.alms-quiz-header h2 {
    margin: 0 0 10px 0;
}

.alms-quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 14px;
    color: #6b7280;
}

.alms-quiz-question {
    margin-bottom: 30px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
}

.alms-question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.alms-question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alms-answer-option {
    display: block;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.alms-answer-option:hover {
    border-color: #0C1B54;
    background: #eff6ff;
}

.alms-answer-option input[type="radio"] {
    margin-right: 12px;
}

.alms-quiz-submit {
    text-align: center;
    margin-top: 30px;
}

/* Loading State */
.alms-loading {
    text-align: center;
    padding: 40px;
}

.alms-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e5e7eb;
    border-top-color: #0C1B54;
    border-radius: 50%;
    animation: alms-spin 0.8s linear infinite;
}

@keyframes alms-spin {
    to { transform: rotate(360deg); }
}


/* Course Categories */
.alms-course-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.alms-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.alms-category-badge:hover {
    background: #dbeafe;
    color: #1e3a8a;
}

.alms-category-badge .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}









/* ===================================
   Student Dashboard Styles
   =================================== */
.alms-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.alms-dashboard-header {
    background: linear-gradient(135deg, #0C1B54 0%, #3653d3 100%) ;
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.alms-dashboard-welcome h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #ffffff;
}

.alms-dashboard-welcome p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.alms-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.alms-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.2s;
}

.alms-stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.alms-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alms-stat-icon .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
}

.alms-stat-content {
    flex: 1;
}

.alms-stat-card-value {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1;
    margin-bottom: 5px;
}

.alms-stat-card-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.alms-dashboard-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.alms-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.alms-section-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alms-section-header h2 .dashicons {
    color: #0C1B54;
}

.alms-my-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.alms-dashboard-course-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.alms-dashboard-course-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.alms-dashboard-course-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    background: #f3f4f6;
}

.alms-dashboard-course-thumbnail a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.alms-dashboard-course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alms-course-completed-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #10b981;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.alms-dashboard-course-info {
    padding: 20px;
}

.alms-dashboard-course-info h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.alms-dashboard-course-info h3 a {
    color: #111827;
    text-decoration: none;
}

.alms-dashboard-course-info h3 a:hover {
    color: #0C1B54;
}

.alms-dashboard-course-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 15px;
}

.alms-dashboard-course-progress {
    margin-bottom: 20px;
}

.alms-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #6b7280;
}

.alms-progress-percentage {
    font-weight: 700;
    color: #0C1B54;
}

.alms-dashboard-course-actions {
    margin-top: 15px;
}

.alms-empty-state {
    text-align: center;
    padding: 60px 20px;
}

.alms-empty-state .dashicons {
    font-size: 72px;
    width: 72px;
    height: 72px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.alms-empty-state h3 {
    margin: 0 0 10px 0;
    color: #374151;
}

.alms-empty-state p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Quiz Results Table */
.alms-quiz-results-table {
    overflow-x: auto;
}

.alms-quiz-results-table table {
    width: 100%;
    border-collapse: collapse;
}

.alms-quiz-results-table th,
.alms-quiz-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.alms-quiz-results-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alms-quiz-results-table tbody tr:hover {
    background: #f9fafb;
}

.alms-quiz-score {
    font-weight: 700;
    font-size: 16px;
}

.alms-score-pass {
    color: #10b981;
}

.alms-score-fail {
    color: #ef4444;
}

.alms-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.alms-status-passed {
    background: #d1fae5;
    color: #065f46;
}

.alms-status-failed {
    background: #fee2e2;
    color: #991b1b;
}

/* ===================================
   Quiz Page Styles
   =================================== */
.alms-quiz-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.alms-quiz-breadcrumb {
    margin-bottom: 20px;
}

.alms-quiz-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0C1B54;
    text-decoration: none;
    font-size: 14px;
}

.alms-quiz-breadcrumb a:hover {
    color: #3653d3;
}

.alms-quiz-container {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px;
}

.alms-quiz-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7eb;
}

.alms-quiz-header h2 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #111827;
}

.alms-quiz-description {
    color: #6b7280;
    margin-bottom: 25px;
}

.alms-quiz-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.alms-quiz-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.alms-quiz-info-item .dashicons {
    color: #0C1B54;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.alms-quiz-history {
    margin-top: 25px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.alms-quiz-history h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #111827;
}

.alms-performance-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.alms-perf-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alms-perf-label {
    font-size: 13px;
    color: #6b7280;
}

.alms-perf-value {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.alms-quiz-locked,
.alms-quiz-empty {
    text-align: center;
    padding: 60px 20px;
}

.alms-quiz-locked .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.alms-quiz-locked h3 {
    margin: 0 0 10px 0;
    color: #111827;
}

.alms-quiz-question {
    margin-bottom: 35px;
    padding: 25px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.alms-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.alms-question-number {
    font-weight: 700;
    color: #0C1B54;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alms-question-points {
    background: #dbeafe;
    color: #1e40af;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.alms-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    line-height: 1.6;
}

.alms-question-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alms-answer-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.alms-answer-option:hover {
    border-color: #0C1B54;
    background: #eff6ff;
}

.alms-answer-option input[type="radio"] {
    margin: 0 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.alms-answer-option input[type="radio"]:checked + .alms-answer-text {
    font-weight: 600;
    color: #0C1B54;
}

.alms-answer-text {
    flex: 1;
    font-size: 16px;
    color: #374151;
}

.alms-short-answer-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s;
}

.alms-short-answer-input:focus {
    outline: none;
    border-color: #0C1B54;
    background: #eff6ff;
}

.alms-quiz-submit {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.alms-btn-large {
    padding: 18px 40px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.alms-btn-large .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
}

/* Responsive */
@media (max-width: 768px) {
    .alms-dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .alms-my-courses-grid {
        grid-template-columns: 1fr;
    }
    
    .alms-quiz-container {
        padding: 25px 20px;
    }
    
    .alms-quiz-header h2 {
        font-size: 24px;
    }
    
    .alms-quiz-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .alms-performance-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .alms-quiz-results-table {
        font-size: 14px;
    }
    
    .alms-quiz-results-table th,
    .alms-quiz-results-table td {
        padding: 10px;
    }
}




/* Section Blocks */
.alms-course-sections {
    margin-top: 20px;
}

.alms-section-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.alms-section-header-view {
    background: linear-gradient(135deg, #0C1B54 0%, #3653d3 100%);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alms-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alms-section-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.alms-section-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.alms-section-block .alms-lessons-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.alms-section-block .alms-lesson-list-item {
    border-bottom: 1px solid #e5e7eb;
}

.alms-section-block .alms-lesson-list-item:last-child {
    border-bottom: none;
}

/* Quizzes Section */
.alms-quizzes-section .alms-section-header-view {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.alms-quiz-list-item .alms-quiz-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alms-quiz-badge .dashicons {
    color: #fff;
    font-size: 18px;
}

/* Update lesson count in stats */
.alms-course-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .alms-section-header-view {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .alms-section-count {
        align-self: flex-end;
    }
}




/* Sidebar Sections */
.alms-sidebar-section {
    margin-bottom: 20px;
}

.alms-sidebar-section:last-child {
    margin-bottom: 0;
}

.alms-sidebar-section-title {
    font-weight: 700;
    font-size: 14px;
    color: #374151;
    padding: 10px 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.alms-sidebar-section-title .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.alms-sidebar-quiz-item .alms-sidebar-lesson-number {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.alms-sidebar-quiz-item .dashicons {
    color: #fff;
    font-size: 14px;
}













/* ===================================
   Single Lesson Page
   =================================== */
.alms-single-lesson {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Access Denied */
.alms-access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.alms-access-denied-content {
    text-align: center;
    padding: 40px;
}

.alms-access-denied .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #f59e0b;
    margin-bottom: 20px;
}

.alms-access-denied h2 {
    margin: 0 0 15px 0;
    color: #111827;
}

.alms-access-denied p {
    color: #6b7280;
    margin-bottom: 25px;
}

/* Breadcrumb */
.alms-lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 0;
    margin-bottom: 20px;
    font-size: 14px;
}

.alms-lesson-breadcrumb a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #0C1B54;
    text-decoration: none;
    transition: color 0.2s;
}

.alms-lesson-breadcrumb a:hover {
    color: #3653d3;
}

.alms-breadcrumb-separator {
    color: #9ca3af;
}

/* Lesson Main Layout */
.alms-lesson-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.alms-lesson-content-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 30px;
}

/* Lesson Header */
.alms-lesson-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.alms-lesson-header h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #111827;
}

.alms-lesson-meta-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.alms-lesson-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #6b7280;
}

.alms-lesson-meta-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.alms-completed-badge {
    background: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.alms-completed-badge .dashicons {
    color: #065f46;
}

/* Video Container */
.alms-lesson-video-container {
    margin-bottom: 30px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.alms-video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    width: 100%;
}

.alms-video-wrapper iframe,
.alms-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Audio Container */
.alms-lesson-audio-container {
    margin-bottom: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Text Content */
.alms-lesson-text-content {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
}

.alms-lesson-text-content h2,
.alms-lesson-text-content h3,
.alms-lesson-text-content h4 {
    color: #111827;
    margin-top: 30px;
    margin-bottom: 15px;
}

.alms-lesson-text-content p {
    margin-bottom: 15px;
}

.alms-lesson-text-content ul,
.alms-lesson-text-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.alms-lesson-text-content li {
    margin-bottom: 8px;
}

/* Resources */
.alms-lesson-resources {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
}

.alms-lesson-resources h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #111827;
}

.alms-lesson-resources h3 .dashicons {
    color: #0C1B54;
}

.alms-resources-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alms-resource-item {
    margin-bottom: 12px;
}

.alms-resource-item:last-child {
    margin-bottom: 0;
}

.alms-resource-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
}

.alms-resource-item a:hover {
    border-color: #0C1B54;
    background: #eff6ff;
    transform: translateX(5px);
}

.alms-resource-item .dashicons-media-default {
    color: #0C1B54;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.alms-resource-title {
    flex: 1;
    font-weight: 500;
}

.alms-resource-item .dashicons-download {
    color: #6b7280;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Lesson Actions */
.alms-lesson-actions {
    margin: 30px 0;
}

.alms-mark-complete-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    padding: 15px 30px;
}

.alms-mark-complete-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Lesson Navigation */
.alms-lesson-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.alms-nav-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s;
}

.alms-nav-btn:hover {
    border-color: #0C1B54;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.alms-next-lesson {
    justify-content: flex-end;
    text-align: right;
}

.alms-nav-btn .dashicons {
    color: #0C1B54;
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.alms-nav-btn-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.alms-nav-label {
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alms-nav-title {
    font-weight: 600;
    font-size: 14px;
    color: #111827;
}

/* Lesson Sidebar */
.alms-lesson-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.alms-sidebar-lessons-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.alms-sidebar-lesson-item {
    border-bottom: 1px solid #e5e7eb;
}

.alms-sidebar-lesson-item:last-child {
    border-bottom: none;
}

.alms-sidebar-lesson-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    text-decoration: none;
    color: #374151;
    transition: color 0.2s;
}

.alms-sidebar-lesson-item a:hover {
    color: #0C1B54;
}

.alms-sidebar-lesson-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f3f4f6;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    flex-shrink: 0;
}

.alms-sidebar-lesson-title {
    flex: 1;
    font-size: 14px;
}

.alms-sidebar-lesson-check {
    color: #10b981;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.alms-current-lesson {
    background: #eff6ff;
    margin: 0 -15px;
    padding: 0 15px;
    border-radius: 6px;
}

.alms-current-lesson a {
    color: #0C1B54;
    font-weight: 600;
}

.alms-current-lesson .alms-sidebar-lesson-number {
    background: #0C1B54;
    color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
    .alms-lesson-main {
        grid-template-columns: 1fr;
    }
    
    .alms-lesson-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .alms-lesson-content-area {
        padding: 20px;
    }
    
    .alms-lesson-header h1 {
        font-size: 24px;
    }
    
    .alms-lesson-navigation {
        grid-template-columns: 1fr;
    }
    
    .alms-next-lesson {
        text-align: left;
        justify-content: flex-start;
    }
}

/* Completion Notice */
.alms-completion-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 8px;
    color: #065f46;
    font-weight: 600;
    font-size: 16px;
}

.alms-completion-notice .dashicons {
    color: #10b981;
    font-size: 24px;
    width: 24px;
    height: 24px;
}







/* ===================================
  global
   =================================== */
/* Responsive layout for Account Settings */
/* Responsive layout for Account Settings */
@media (max-width: 768px) {
    .alms-account-settings {
        max-width: 100% !important;
        padding: 20px !important;
    }

    /* Make the grid single-column */
    .alms-account-settings > div:last-child { /* targets the grid container */
        display: block !important;
    }

    .alms-settings-sidebar,
    .alms-settings-content {
        width: 100% !important;
        margin: 0 0 20px 0;
    }

    /* Move sidebar to top */
    .alms-settings-sidebar {
        order: -1; /* ensures it appears before main content */
    }
}
