/* Course image styling */
.course-index-image {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 6px;
    display: block;
}

/* Course title */
.course-index-title {
    font-size: 0.9rem;
    font-weight: normal;
    color: #222;
    padding: 6px 0;
    margin-bottom: 6px;
    border-bottom: 1px solid #e0e0e0;
}








/* Not done = red circle 
.incompleted-circle {
    font-size: 20px !important;
    color: red !important;
}
*/


/* Done = green circle with tick */
.completioninfo.completion_complete i.fa-circle {
    font-size: 18px !important;
    color: green !important;
    position: relative;
}

/* White tick inside DONE circle */
.completioninfo.completion_complete i.fa-circle::after {
    content: "\f00c"; /* check icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1;
    pointer-events: none;
}


/* Not done = red circle with white X */
.completioninfo.completion_incomplete i.fa-circle {
    font-size: 18px !important;
    color: red !important;
    position: relative;
}

/* White X inside NOT DONE circle */
.completioninfo.completion_incomplete i.fa-circle::after {
    content: "\f00d"; /* fa-times icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
    font-weight: 900;
    color: white;
    font-size: 12px;
    position: absolute;
    top: 2px;
    left: 2px;
    width: 100%;
    height: 100%;
    text-align: center;
    line-height: 1;
    pointer-events: none;
}

.course-index-title-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.course-index-title-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* ✅ Green circle with white check */
.custom-completion-icon.complete {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: green;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* ❌ Red circle with white X */
.custom-completion-icon.incomplete {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
}

/* Clickable course title styling */
.course-index-title-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}
.course-index-title-link:hover {
    color: #007bff;
    text-decoration: underline;
}


/* Course home icon (placed at the very top of course index) */
.course-index-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: transparent;
    color: #333;
    text-decoration: none;
    margin-bottom: 8px;
    margin-left: 0;
    border: 1px solid transparent;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.course-index-home i.icon {
    font-size: 18px;
}

/* hover / focus */
.course-index-home:hover,
.course-index-home:focus {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #007bff;
    outline: none;
}

/* small screens: keep icon small */
@media (max-width: 480px) {
    .course-index-home { width: 30px; height: 30px; }
    .course-index-home i.icon { font-size: 16px; }
}

