/* Academy-style Popover */
#course-popover {
    position: fixed;
    display: none;
    width: 320px;
    background: #003049;
    /* Dark Footer Color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    z-index: 9998;
    border-radius: 8px;
    pointer-events: auto;
    color: white !important;
    /* Default text white */
}

/* Arrow Attempt */
#course-popover::before {
    content: "";
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #003049;
    /* Match BG */
    transform: rotate(45deg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: none;
}

#course-popover .popover-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff !important;
    /* White title */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

#course-popover .popover-meta {
    font-size: 0.8rem;
    color: #4ade80 !important;
    /* Light Green for visibility */
    margin-bottom: 0.75rem;
    font-weight: 600;
}

#course-popover .popover-desc {
    font-size: 0.9rem;
    color: #d1d5db !important;
    /* Light Grey */
    margin-bottom: 1rem;
    line-height: 1.5;
}

#course-popover .popover-features {
    margin-bottom: 1.25rem;
}

#course-popover .popover-feature-item {
    font-size: 0.85rem;
    color: #e5e7eb !important;
    /* Very light grey */
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
}

#course-popover .popover-feature-item i {
    color: #ef4444;
    /* Keep primary red accent or white? User asked for footer bg, accent might still be red */
    color: var(--primary);
    width: 20px;
    margin-right: 5px;
}

#course-popover .popover-actions {
    display: flex;
    gap: 10px;
}

#course-popover .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.6rem;
}

#course-popover .btn-outline-dark {
    color: white !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

#course-popover .btn-outline-dark:hover {
    background-color: white !important;
    color: var(--dark-color) !important;
}