/* ===== Wrapper ===== */
.lmni-courses-wrapper {
    direction: rtl;
    font-family: 'Tajawal', 'Segoe UI', sans-serif;
    margin: 24px 0;
}

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

.lmni-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: #1a1a2e;
}

.lmni-count {
    background: #f0f4ff;
    color: #4a6cf7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ===== Grid ===== */
.lmni-courses-grid {
    display: grid;
    gap: 22px;
}

.lmni-grid-1 .lmni-courses-grid { grid-template-columns: 1fr; }
.lmni-grid-2 .lmni-courses-grid { grid-template-columns: repeat(2, 1fr); }
.lmni-grid-3 .lmni-courses-grid { grid-template-columns: repeat(3, 1fr); }
.lmni-grid-4 .lmni-courses-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .lmni-grid-3 .lmni-courses-grid,
    .lmni-grid-4 .lmni-courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .lmni-courses-grid { grid-template-columns: 1fr !important; }
}

/* ===== Card ===== */
.lmni-course-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eef0f7;
}

.lmni-course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(74,108,247,0.14);
}

/* ===== Thumbnail ===== */
.lmni-card-thumb {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.lmni-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lmni-course-card:hover .lmni-card-thumb img {
    transform: scale(1.04);
}

/* ===== Status Badge ===== */
.lmni-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.status-enrolled    { background: #4a6cf7; }
.status-progress    { background: #f5a623; }
.status-finished    { background: #27ae60; }
.status-default     { background: #95a5a6; }

/* ===== Card Body ===== */
.lmni-card-body {
    padding: 16px;
}

.lmni-instructor {
    font-size: 12px;
    color: #888;
    display: block;
    margin-bottom: 6px;
}

.lmni-course-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
}

.lmni-course-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.lmni-course-title a:hover {
    color: #4a6cf7;
}

.lmni-excerpt {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
    line-height: 1.6;
}

/* ===== Progress Bar ===== */
.lmni-progress-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.lmni-progress-bar {
    flex: 1;
    height: 7px;
    background: #eef0f7;
    border-radius: 10px;
    overflow: hidden;
}

.lmni-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a6cf7, #7b9ff9);
    border-radius: 10px;
    transition: width 0.5s ease;
    min-width: 4px;
}

.lmni-progress-text {
    font-size: 12px;
    font-weight: 700;
    color: #4a6cf7;
    white-space: nowrap;
}

/* ===== Button ===== */
.lmni-btn-continue {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #4a6cf7, #6a8cfb);
    color: #fff !important;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.lmni-btn-continue:hover {
    opacity: 0.88;
}

/* ===== Notice ===== */
.lmni-notice {
    background: #f0f4ff;
    border-right: 4px solid #4a6cf7;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    color: #444;
}

.lmni-notice a { color: #4a6cf7; }
.lmni-error { border-color: #e74c3c; background: #fdf0ef; }
